==3453959== Memcheck, a memory error detector ==3453959== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==3453959== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info ==3453959== Command: /data/blackswan/ripley/R/R-devel-vg/bin/exec/R --vanilla --no-echo ==3453959== > library(catnet) > cnet <- cnNew(nodes = c("a", "b", "c"), cats = list(c("1", + "2"), c("1", "2"), c("1", "2")), parents = list(NULL, c(1), + c(1, 2)), probs .... [TRUNCATED] > set.seed(123) > cnet1 <- cnRandomCatnet(numnodes = 4, maxParents = 2, + numCategories = 2) > cnet1 A catNetwork object with 4 nodes, 2 parents, 2 categories, Likelihood = 0 , Complexity = 8 . > myNodes <- c("a", "s", "p", "q", "r", "t", "u") > myEdges <- list(a = list(edges = NULL), s = list(edges = c("p", + "q")), p = list(edges = c("q")), q = list(edges = c("r")), + r = list(ed .... [TRUNCATED] > cnet2 <- cnCatnetFromEdges(nodes = myNodes, edges = myEdges, + numCategories = 2) > cnNumNodes(cnet1) [1] 4 > cnNodes(cnet1) [1] "N1" "N2" "N3" "N4" > cnEdges(cnet1) $N1 [1] "N2" $N3 [1] "N2" "N4" > cnParents(cnet1) $N2 [1] "N1" "N3" $N4 [1] "N3" > cnMatParents(cnet1) N1 N2 N3 N4 N1 0 0 0 0 N2 1 0 1 0 N3 0 0 0 0 N4 0 0 1 0 > cnMatEdges(cnet1) [,1] [,2] [1,] "N1" "N2" [2,] "N3" "N2" [3,] "N3" "N4" > cnPlotProb(cnet1) Node[N1], Parents: []C1 0.679 []C2 0.321 Node[N2], Parents: N1 N3 [ C1 C1]C1 0.542 [ C1 C1]C2 0.458 [ C1 C2]C1 0.103 [ C1 C2]C2 0.897 [ C2 C1]C1 0.855 [ C2 C1]C2 0.145 [ C2 C2]C1 0.256 [ C2 C2]C2 0.744 Node[N3], Parents: []C1 0.563 []C2 0.437 Node[N4], Parents: N3 [ C1]C1 0.392 [ C1]C2 0.608 [ C2]C1 0.481 [ C2]C2 0.519 > cnComplexity(cnet1) [1] 8 > cnOrder(cnet1) [1] 1 3 4 2 > cnOrder(cnet1@parents) [1] 1 3 4 2 > set.seed(456) > cnet2 <- cnRandomCatnet(numnodes = 10, maxParents = 3, + numCategories = 2) > cnEdges(cnet2) $N2 [1] "N7" "N8" $N3 [1] "N6" $N4 [1] "N9" $N5 [1] "N6" "N8" $N6 [1] "N10" $N10 [1] "N1" > pcnet2 <- dag2cpdag(cnet2) add N1 -> N10 add N7 -> N2 add N9 -> N4 add N10 -> N6 > cnEdges(pcnet2) $N1 [1] "N10" $N2 [1] "N7" "N8" $N3 [1] "N6" $N4 [1] "N9" $N5 [1] "N6" "N8" $N6 [1] "N10" $N7 [1] "N2" $N9 [1] "N4" $N10 [1] "N1" "N6" > set.seed(456) > cnet3 <- cnRandomCatnet(cnNumNodes(cnet2), maxParents = 2, + numCategories = 2) > cnet3@nodes <- cnet2@nodes > cnCompare(object1 = cnet2, object2 = cnet3) Edges: TP = 1, FP = 3, FN = 7, F-score = 0.221393, Hamming: (FP+FN) = 10, exp = 16, Skeleton: TP = 1, FP = 3, FN = 7, Order: FP = 0, FN = 0, Markov blanket: FP = 0, FN = 2 > samples1 <- cnSamples(object = cnet1, numsamples = 100, + output = "matrix") > dim(samples1) [1] 4 100 > samples1 <- cnSamples(object = cnet1, numsamples = 100, + output = "frame") ==3453959== Invalid read of size 4 ==3453959== at 0x1738C8AB: RCatnet::genSamples(SEXPREC*, SEXPREC*, SEXPREC*) (packages/tests-vg/catnet/src/rcatnet.cpp:581) ==3453959== by 0x173886B4: catnetSamples (packages/tests-vg/catnet/src/catnet_rexport.cpp:714) ==3453959== by 0x4A08B1: R_doDotCall (svn/R-devel/src/main/dotcode.c:877) ==3453959== by 0x4A0E0B: do_dotcall (svn/R-devel/src/main/dotcode.c:1551) ==3453959== by 0x4D7AEB: bcEval (svn/R-devel/src/main/eval.c:7128) ==3453959== by 0x4F1DAF: Rf_eval (svn/R-devel/src/main/eval.c:750) ==3453959== by 0x4F370D: R_execClosure (svn/R-devel/src/main/eval.c:1920) ==3453959== by 0x4F477A: R_execMethod (svn/R-devel/src/main/eval.c:2096) ==3453959== by 0x48A24C0: R_dispatchGeneric (svn/R-devel/src/library/methods/src/methods_list_dispatch.c:1153) ==3453959== by 0x53A862: do_standardGeneric (svn/R-devel/src/main/objects.c:1280) ==3453959== by 0x4E50A4: bcEval (svn/R-devel/src/main/eval.c:7085) ==3453959== by 0x4F1DAF: Rf_eval (svn/R-devel/src/main/eval.c:750) ==3453959== Address 0x126c8ff0 is 8 bytes after a block of size 7,960 alloc'd ==3453959== at 0x484086F: malloc (/builddir/build/BUILD/valgrind-3.18.1/coregrind/m_replacemalloc/vg_replace_malloc.c:381) ==3453959== by 0x5311B0: GetNewPage (svn/R-devel/src/main/memory.c:974) ==3453959== by 0x531F86: CONS_NR (svn/R-devel/src/main/memory.c:2475) ==3453959== by 0x4D852D: bcEval (svn/R-devel/src/main/eval.c:7071) ==3453959== by 0x4F1DAF: Rf_eval (svn/R-devel/src/main/eval.c:750) ==3453959== by 0x4F370D: R_execClosure (svn/R-devel/src/main/eval.c:1920) ==3453959== by 0x4F4462: Rf_applyClosure (svn/R-devel/src/main/eval.c:1846) ==3453959== by 0x4E30B9: bcEval (svn/R-devel/src/main/eval.c:7096) ==3453959== by 0x4F1DAF: Rf_eval (svn/R-devel/src/main/eval.c:750) ==3453959== by 0x4F370D: R_execClosure (svn/R-devel/src/main/eval.c:1920) ==3453959== by 0x4F4462: Rf_applyClosure (svn/R-devel/src/main/eval.c:1846) ==3453959== by 0x4E30B9: bcEval (svn/R-devel/src/main/eval.c:7096) ==3453959== ==3453959== Invalid read of size 4 ==3453959== at 0x1738C8CB: RCatnet::genSamples(SEXPREC*, SEXPREC*, SEXPREC*) (packages/tests-vg/catnet/src/rcatnet.cpp:582) ==3453959== by 0x173886B4: catnetSamples (packages/tests-vg/catnet/src/catnet_rexport.cpp:714) ==3453959== by 0x4A08B1: R_doDotCall (svn/R-devel/src/main/dotcode.c:877) ==3453959== by 0x4A0E0B: do_dotcall (svn/R-devel/src/main/dotcode.c:1551) ==3453959== by 0x4D7AEB: bcEval (svn/R-devel/src/main/eval.c:7128) ==3453959== by 0x4F1DAF: Rf_eval (svn/R-devel/src/main/eval.c:750) ==3453959== by 0x4F370D: R_execClosure (svn/R-devel/src/main/eval.c:1920) ==3453959== by 0x4F477A: R_execMethod (svn/R-devel/src/main/eval.c:2096) ==3453959== by 0x48A24C0: R_dispatchGeneric (svn/R-devel/src/library/methods/src/methods_list_dispatch.c:1153) ==3453959== by 0x53A862: do_standardGeneric (svn/R-devel/src/main/objects.c:1280) ==3453959== by 0x4E50A4: bcEval (svn/R-devel/src/main/eval.c:7085) ==3453959== by 0x4F1DAF: Rf_eval (svn/R-devel/src/main/eval.c:750) ==3453959== Address 0x126c8ff0 is 8 bytes after a block of size 7,960 alloc'd ==3453959== at 0x484086F: malloc (/builddir/build/BUILD/valgrind-3.18.1/coregrind/m_replacemalloc/vg_replace_malloc.c:381) ==3453959== by 0x5311B0: GetNewPage (svn/R-devel/src/main/memory.c:974) ==3453959== by 0x531F86: CONS_NR (svn/R-devel/src/main/memory.c:2475) ==3453959== by 0x4D852D: bcEval (svn/R-devel/src/main/eval.c:7071) ==3453959== by 0x4F1DAF: Rf_eval (svn/R-devel/src/main/eval.c:750) ==3453959== by 0x4F370D: R_execClosure (svn/R-devel/src/main/eval.c:1920) ==3453959== by 0x4F4462: Rf_applyClosure (svn/R-devel/src/main/eval.c:1846) ==3453959== by 0x4E30B9: bcEval (svn/R-devel/src/main/eval.c:7096) ==3453959== by 0x4F1DAF: Rf_eval (svn/R-devel/src/main/eval.c:750) ==3453959== by 0x4F370D: R_execClosure (svn/R-devel/src/main/eval.c:1920) ==3453959== by 0x4F4462: Rf_applyClosure (svn/R-devel/src/main/eval.c:1846) ==3453959== by 0x4E30B9: bcEval (svn/R-devel/src/main/eval.c:7096) ==3453959== > dim(samples1) [1] 100 4 > samples2 <- cnSamples(object = cnet1, numsamples = 10, + perturbations = c(0, 0, 1, 2)) > numnodes <- cnNumNodes(cnet2) > samples3 <- cnSamples(object = cnet2, numsamples = 12, + output = "matrix") > samples3[numnodes - 2, ] <- rep(NA, 12) > samples3[numnodes - 1, ] <- rep(NA, 12) > samples3[numnodes, ] <- rep(NA, 12) > newsamples <- cnPredict(object = cnet2, data = samples3) > set.seed(789) > cnet2 <- cnRandomCatnet(numnodes = 10, maxParents = 2, + numCategories = 2) > nodeOrder <- order(runif(cnNumNodes(cnet2))) > cnet2 A catNetwork object with 10 nodes, 2 parents, 2 categories, Likelihood = 0 , Complexity = 11 . > samples <- cnSamples(object = cnet2, numsamples = 100, + output = "frame") > netlist <- cnSearchOrder(data = samples, perturbations = NULL, + maxParentSet = 2, maxComplexity = 20, nodeOrder, parentsPool = NULL, + fi .... [TRUNCATED] > bnet <- cnFind(netlist, 20) > bnet A catNetwork object with 10 nodes, 2 parents, 2 categories, Likelihood = -5.304304 , Complexity = 20 . > set.seed(123) > nnodes <- 12 > cnet <- cnRandomCatnet(numnodes = nnodes, maxParents = 5, + numCategories = 2) > norder <- cnOrder(cnet) > parPool <- vector("list", nnodes) > for (i in 1:nnodes) parPool[[i]] <- 1:(nnodes - 1) > fixparPool <- vector("list", nnodes) > for (i in 3:nnodes) fixparPool[[i]] <- c(1, 2) > samples <- cnSamples(cnet, numsamples = 200) ==3453959== Conditional jump or move depends on uninitialised value(s) ==3453959== at 0x4341B6: R_IsNA (svn/R-devel/src/main/arithmetic.c:135) ==3453959== by 0x1738C8B4: RCatnet::genSamples(SEXPREC*, SEXPREC*, SEXPREC*) (packages/tests-vg/catnet/src/rcatnet.cpp:581) ==3453959== by 0x173886B4: catnetSamples (packages/tests-vg/catnet/src/catnet_rexport.cpp:714) ==3453959== by 0x4A08B1: R_doDotCall (svn/R-devel/src/main/dotcode.c:877) ==3453959== by 0x4A0E0B: do_dotcall (svn/R-devel/src/main/dotcode.c:1551) ==3453959== by 0x4D7AEB: bcEval (svn/R-devel/src/main/eval.c:7128) ==3453959== by 0x4F1DAF: Rf_eval (svn/R-devel/src/main/eval.c:750) ==3453959== by 0x4F370D: R_execClosure (svn/R-devel/src/main/eval.c:1920) ==3453959== by 0x4F477A: R_execMethod (svn/R-devel/src/main/eval.c:2096) ==3453959== by 0x48A24C0: R_dispatchGeneric (svn/R-devel/src/library/methods/src/methods_list_dispatch.c:1153) ==3453959== by 0x53A862: do_standardGeneric (svn/R-devel/src/main/objects.c:1280) ==3453959== by 0x4E50A4: bcEval (svn/R-devel/src/main/eval.c:7085) ==3453959== Uninitialised value was created by a heap allocation ==3453959== at 0x484086F: malloc (/builddir/build/BUILD/valgrind-3.18.1/coregrind/m_replacemalloc/vg_replace_malloc.c:381) ==3453959== by 0x532B84: Rf_allocVector3 (svn/R-devel/src/main/memory.c:2836) ==3453959== by 0x4C208A: Rf_mkCharLenCE.part.0 (svn/R-devel/src/main/envir.c:4285) ==3453959== by 0x540DE9: do_paste (svn/R-devel/src/main/paste.c:253) ==3453959== by 0x4D7AEB: bcEval (svn/R-devel/src/main/eval.c:7128) ==3453959== by 0x4F1DAF: Rf_eval (svn/R-devel/src/main/eval.c:750) ==3453959== by 0x4F370D: R_execClosure (svn/R-devel/src/main/eval.c:1920) ==3453959== by 0x4F4462: Rf_applyClosure (svn/R-devel/src/main/eval.c:1846) ==3453959== by 0x4E30B9: bcEval (svn/R-devel/src/main/eval.c:7096) ==3453959== by 0x4F1DAF: Rf_eval (svn/R-devel/src/main/eval.c:750) ==3453959== by 0x4F370D: R_execClosure (svn/R-devel/src/main/eval.c:1920) ==3453959== by 0x4F4462: Rf_applyClosure (svn/R-devel/src/main/eval.c:1846) ==3453959== ==3453959== Conditional jump or move depends on uninitialised value(s) ==3453959== at 0x1738C8D0: RCatnet::genSamples(SEXPREC*, SEXPREC*, SEXPREC*) (packages/tests-vg/catnet/src/rcatnet.cpp:581) ==3453959== by 0x173886B4: catnetSamples (packages/tests-vg/catnet/src/catnet_rexport.cpp:714) ==3453959== by 0x4A08B1: R_doDotCall (svn/R-devel/src/main/dotcode.c:877) ==3453959== by 0x4A0E0B: do_dotcall (svn/R-devel/src/main/dotcode.c:1551) ==3453959== by 0x4D7AEB: bcEval (svn/R-devel/src/main/eval.c:7128) ==3453959== by 0x4F1DAF: Rf_eval (svn/R-devel/src/main/eval.c:750) ==3453959== by 0x4F370D: R_execClosure (svn/R-devel/src/main/eval.c:1920) ==3453959== by 0x4F477A: R_execMethod (svn/R-devel/src/main/eval.c:2096) ==3453959== by 0x48A24C0: R_dispatchGeneric (svn/R-devel/src/library/methods/src/methods_list_dispatch.c:1153) ==3453959== by 0x53A862: do_standardGeneric (svn/R-devel/src/main/objects.c:1280) ==3453959== by 0x4E50A4: bcEval (svn/R-devel/src/main/eval.c:7085) ==3453959== by 0x4F1DAF: Rf_eval (svn/R-devel/src/main/eval.c:750) ==3453959== Uninitialised value was created by a heap allocation ==3453959== at 0x484086F: malloc (/builddir/build/BUILD/valgrind-3.18.1/coregrind/m_replacemalloc/vg_replace_malloc.c:381) ==3453959== by 0x532B84: Rf_allocVector3 (svn/R-devel/src/main/memory.c:2836) ==3453959== by 0x4C208A: Rf_mkCharLenCE.part.0 (svn/R-devel/src/main/envir.c:4285) ==3453959== by 0x540DE9: do_paste (svn/R-devel/src/main/paste.c:253) ==3453959== by 0x4D7AEB: bcEval (svn/R-devel/src/main/eval.c:7128) ==3453959== by 0x4F1DAF: Rf_eval (svn/R-devel/src/main/eval.c:750) ==3453959== by 0x4F370D: R_execClosure (svn/R-devel/src/main/eval.c:1920) ==3453959== by 0x4F4462: Rf_applyClosure (svn/R-devel/src/main/eval.c:1846) ==3453959== by 0x4E30B9: bcEval (svn/R-devel/src/main/eval.c:7096) ==3453959== by 0x4F1DAF: Rf_eval (svn/R-devel/src/main/eval.c:750) ==3453959== by 0x4F370D: R_execClosure (svn/R-devel/src/main/eval.c:1920) ==3453959== by 0x4F4462: Rf_applyClosure (svn/R-devel/src/main/eval.c:1846) ==3453959== ==3453959== Conditional jump or move depends on uninitialised value(s) ==3453959== at 0x1738C8DE: RCatnet::genSamples(SEXPREC*, SEXPREC*, SEXPREC*) (packages/tests-vg/catnet/src/rcatnet.cpp:582) ==3453959== by 0x173886B4: catnetSamples (packages/tests-vg/catnet/src/catnet_rexport.cpp:714) ==3453959== by 0x4A08B1: R_doDotCall (svn/R-devel/src/main/dotcode.c:877) ==3453959== by 0x4A0E0B: do_dotcall (svn/R-devel/src/main/dotcode.c:1551) ==3453959== by 0x4D7AEB: bcEval (svn/R-devel/src/main/eval.c:7128) ==3453959== by 0x4F1DAF: Rf_eval (svn/R-devel/src/main/eval.c:750) ==3453959== by 0x4F370D: R_execClosure (svn/R-devel/src/main/eval.c:1920) ==3453959== by 0x4F477A: R_execMethod (svn/R-devel/src/main/eval.c:2096) ==3453959== by 0x48A24C0: R_dispatchGeneric (svn/R-devel/src/library/methods/src/methods_list_dispatch.c:1153) ==3453959== by 0x53A862: do_standardGeneric (svn/R-devel/src/main/objects.c:1280) ==3453959== by 0x4E50A4: bcEval (svn/R-devel/src/main/eval.c:7085) ==3453959== by 0x4F1DAF: Rf_eval (svn/R-devel/src/main/eval.c:750) ==3453959== Uninitialised value was created by a heap allocation ==3453959== at 0x484086F: malloc (/builddir/build/BUILD/valgrind-3.18.1/coregrind/m_replacemalloc/vg_replace_malloc.c:381) ==3453959== by 0x532B84: Rf_allocVector3 (svn/R-devel/src/main/memory.c:2836) ==3453959== by 0x4C208A: Rf_mkCharLenCE.part.0 (svn/R-devel/src/main/envir.c:4285) ==3453959== by 0x540DE9: do_paste (svn/R-devel/src/main/paste.c:253) ==3453959== by 0x4D7AEB: bcEval (svn/R-devel/src/main/eval.c:7128) ==3453959== by 0x4F1DAF: Rf_eval (svn/R-devel/src/main/eval.c:750) ==3453959== by 0x4F370D: R_execClosure (svn/R-devel/src/main/eval.c:1920) ==3453959== by 0x4F4462: Rf_applyClosure (svn/R-devel/src/main/eval.c:1846) ==3453959== by 0x4E30B9: bcEval (svn/R-devel/src/main/eval.c:7096) ==3453959== by 0x4F1DAF: Rf_eval (svn/R-devel/src/main/eval.c:750) ==3453959== by 0x4F370D: R_execClosure (svn/R-devel/src/main/eval.c:1920) ==3453959== by 0x4F4462: Rf_applyClosure (svn/R-devel/src/main/eval.c:1846) ==3453959== > eval <- cnSearchOrder(data = samples, perturbations = NULL, + maxParentSet = 2, maxComplexity = 200, nodeOrder = norder, + parentsPool = p .... [TRUNCATED] > eval Number of nodes = 12, Sample size = 200, Number of networks = 2 Processing time = 2.903 > set.seed(345) > cnet6 <- cnRandomCatnet(numnodes = 12, maxParents = 5, + numCategories = 2) > samples <- cnSamples(object = cnet6, numsamples = 100, + output = "matrix") > eval <- cnSearchOrder(data = samples, perturbations = NULL, + maxParentSet = 2, parentSizes = NULL, maxComplexity = 0, + nodeOrder = order .... [TRUNCATED] > anet <- cnFindAIC(object = eval) > anet A catNetwork object with 12 nodes, 2 parents, 2 categories, Likelihood = -6.990462 , Complexity = 32 . > bnet <- cnFindBIC(object = eval, numsamples = dim(samples)[2]) > bnet A catNetwork object with 12 nodes, 2 parents, 2 categories, Likelihood = -7.189682 , Complexity = 20 . > plot(eval@complexity, eval@loglik, xlab = "Complexity", + ylab = "Log-likelihood", main = "Model selection: AIC and BIC complexities in red and ..." ... [TRUNCATED] > abline(v = anet@complexity, lty = 2, col = "red") > abline(v = bnet@complexity, lty = 3, col = "blue") > set.seed(345) > samples <- cnSamples(object = cnet6, numsamples = 100, + output = "matrix") > netlist <- cnSearchSA(data = samples, perturbations = NULL, + maxParentSet = 2, parentSizes = NULL, maxComplexity = 20, + parentsPool = NU .... [TRUNCATED] > bnet <- cnFind(netlist@nets, cnComplexity(cnet6)) > bnet A catNetwork object with 12 nodes, 2 parents, 2 categories, Likelihood = -7.189745 , Complexity = 20 . > set.seed(678) > numnodes <- 16 > numcats <- 3 > maxpars <- 2 > cnet8 <- cnRandomCatnet(numnodes, maxpars, numcats) > ps <- cnSamples(cnet8, 500) > mpars <- cnMatParents(cnet8) > for (j in 1:numnodes) if (sum(mpars[, j]) > 0) break > if (j < numnodes) cnet8@categories[[j]] <- cnet8@categories[[j]][1:(numcats - + 1)] > cnet8 <- cnSetProb(cnet8, ps) > ps <- cnSamples(cnet8, 500) > res8 <- cnSearchOrder(data = ps, perturbations = NULL, + maxParentSet = maxpars, parentSizes = NULL, maxComplexity = 0, + nodeOrder = cnOr .... [TRUNCATED] > anet8 <- cnFind(res8, cnComplexity(cnet8)) > cnCompare(cnet8, anet8) Edges: TP = 7, FP = 0, FN = 0, F-score = 1.000000 > edgeHisto <- 0.5 + mpars/4 > res9 <- cnSearchSA(data = ps, perturbations = NULL, + maxParentSet = 1, parentSizes = NULL, maxComplexity = 0, + parentsPool = NULL, fixed .... [TRUNCATED] > anet9 <- cnFind(res9, cnComplexity(cnet8)) > cnCompare(cnet8, anet9) Edges: TP = 4, FP = 7, FN = 3, F-score = 0.719703, Hamming: (FP+FN) = 10, exp = 20, Skeleton: TP = 5, FP = 6, FN = 2, Order: FP = 1, FN = 1, Markov blanket: FP = 0, FN = 2 > cnSetSeed(3456) > ncats <- 2 > cn <- cnRandomCatnet(20, 3, ncats, p.delta1 = 0.1, + p.delta2 = 0.2) > norder <- cnOrder(cn) > numnodes <- cnNumNodes(cn) > mpars <- cnMatParents(cn) > numsamples <- 100 > pert <- as.data.frame(matrix(rbinom(numnodes * numsamples, + 1, p = 0.25), ncol = numnodes)) > for (j in 1:numsamples) for (i in 1:numnodes) { + if (pert[j, i]) + pert[j, i] <- 1 + floor(runif(1) * ncats) + for (ip in cn@paren .... [TRUNCATED] > ps <- cnSamples(cn, numsamples, pert, as.index = TRUE) > klmat <- cnEdgeDistanceKL(ps, pert) > fscore1 <- NULL > fscore2 <- NULL > for (ntrials in 1:4) { + numiter <- 50 + sares1 <- cnSearchSA(data = ps, perturbations = pert, maxParentSet = 2, + parentSizes = NU .... [TRUNCATED] > pl <- list(`No Prior` = fscore1, `KL-dist Prior` = fscore2) > boxplot(pl, ylab = "F-score") *** Run successfully completed *** > proc.time() user system elapsed 339.852 1.037 341.024 ==3453959== ==3453959== HEAP SUMMARY: ==3453959== in use at exit: 64,109,527 bytes in 21,260 blocks ==3453959== total heap usage: 33,190,257 allocs, 33,168,997 frees, 1,528,393,220 bytes allocated ==3453959== ==3453959== LEAK SUMMARY: ==3453959== definitely lost: 0 bytes in 0 blocks ==3453959== indirectly lost: 0 bytes in 0 blocks ==3453959== possibly lost: 0 bytes in 0 blocks ==3453959== still reachable: 64,109,527 bytes in 21,260 blocks ==3453959== suppressed: 0 bytes in 0 blocks ==3453959== Reachable blocks (those to which a pointer was found) are not shown. ==3453959== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==3453959== ==3453959== For lists of detected and suppressed errors, rerun with: -s ==3453959== ERROR SUMMARY: 1526 errors from 5 contexts (suppressed: 0 from 0)