Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(IDEAS.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter") translateModel(IDEAS.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006117/0.006117, allocations: 100.9 kB / 15.73 MB, free: 6.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001317/0.001317, allocations: 196.5 kB / 16.68 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.454/1.454, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.837/0.837, allocations: 132.2 MB / 422.7 MB, free: 1.688 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001569/0.001569, allocations: 63.89 kB / 0.5813 GB, free: 7.578 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4792/0.4808, allocations: 80.2 MB / 0.6597 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.003451/0.4843, allocations: 1.602 MB / 0.6612 GB, free: 9.266 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001172/0.4855, allocations: 0.6131 MB / 0.6618 GB, free: 8.84 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001365/0.4857, allocations: 2.75 kB / 0.6618 GB, free: 8.84 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0002058/0.4859, allocations: 20.81 kB / 0.6618 GB, free: 8.824 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0003112/0.4862, allocations: 45.64 kB / 0.6619 GB, free: 8.797 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005826/0.4868, allocations: 120.4 kB / 0.662 GB, free: 8.73 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0003919/0.4872, allocations: 185.3 kB / 0.6622 GB, free: 8.656 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001447/0.4874, allocations: 35.52 kB / 0.6622 GB, free: 8.633 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002307/0.4876, allocations: 86.59 kB / 0.6623 GB, free: 8.598 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000186/0.4878, allocations: 84.16 kB / 0.6624 GB, free: 8.562 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 5.517e-05/0.4879, allocations: 14.38 kB / 0.6624 GB, free: 8.562 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001096/0.488, allocations: 22.52 kB / 0.6624 GB, free: 8.562 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001036/0.4881, allocations: 35.12 kB / 0.6624 GB, free: 8.543 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001268/0.4882, allocations: 73.05 kB / 0.6625 GB, free: 8.504 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002872/0.4885, allocations: 169.7 kB / 0.6627 GB, free: 8.383 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.4885, allocations: 0 / 0.6627 GB, free: 8.383 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.432e-06/0.4885, allocations: 0 / 0.6627 GB, free: 8.383 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.306e-06/0.4886, allocations: 1.25 kB / 0.6627 GB, free: 8.383 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0007101/0.4893, allocations: 0.5554 MB / 0.6632 GB, free: 7.82 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.4893, allocations: 8.812 kB / 0.6632 GB, free: 7.82 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.664e-05/0.4894, allocations: 19.97 kB / 0.6633 GB, free: 7.812 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003386/0.4898, allocations: 248.8 kB / 0.6635 GB, free: 7.555 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.421e-05/0.4898, allocations: 11 kB / 0.6635 GB, free: 7.551 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.694e-05/0.4898, allocations: 11.16 kB / 0.6635 GB, free: 7.551 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002985/0.4901, allocations: 120 kB / 0.6636 GB, free: 7.469 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.4902, allocations: 0 / 0.6636 GB, free: 7.469 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.211e-05/0.4902, allocations: 2.625 kB / 0.6636 GB, free: 7.469 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.191e-06/0.4902, allocations: 1.5 kB / 0.6636 GB, free: 7.469 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002123/0.4904, allocations: 70.27 kB / 0.6637 GB, free: 7.438 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007116/0.4911, allocations: 420.6 kB / 0.6641 GB, free: 7.043 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002259/0.4914, allocations: 87.19 kB / 0.6642 GB, free: 6.988 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001757/0.4916, allocations: 79.19 kB / 0.6643 GB, free: 6.945 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.565e-05/0.4916, allocations: 1.156 kB / 0.6643 GB, free: 6.945 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002537/0.4919, allocations: 174.2 kB / 0.6644 GB, free: 6.793 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=10): time 2.414e-06/0.4919, allocations: 96 / 0.6644 GB, free: 6.793 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10): time 0.0007192/0.4926, allocations: 355.2 kB / 0.6648 GB, free: 6.586 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.574e-05/0.4927, allocations: 172.2 kB / 0.6649 GB, free: 6.387 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001512/0.4928, allocations: 173.9 kB / 0.6651 GB, free: 6.246 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.38e-05/0.4929, allocations: 36.8 kB / 0.6651 GB, free: 6.207 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.516e-05/0.4929, allocations: 112.5 kB / 0.6652 GB, free: 6.098 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.564e-05/0.493, allocations: 22.94 kB / 0.6653 GB, free: 6.078 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.551e-05/0.493, allocations: 39.98 kB / 0.6653 GB, free: 6.051 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 5.155e-05/0.4931, allocations: 327.1 kB / 0.6656 GB, free: 5.727 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001315/0.4932, allocations: 53.11 kB / 0.6657 GB, free: 5.703 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001459/0.4934, allocations: 108.8 kB / 0.6658 GB, free: 5.605 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002697/0.4936, allocations: 313.4 kB / 0.6661 GB, free: 5.297 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.4937, allocations: 3.938 kB / 0.6661 GB, free: 5.293 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004775/0.4941, allocations: 340.7 kB / 0.6664 GB, free: 5.055 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.193e-05/0.4942, allocations: 121.2 kB / 0.6665 GB, free: 4.922 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.4942, allocations: 5.344 kB / 0.6665 GB, free: 4.918 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.943e-05/0.4942, allocations: 2.844 kB / 0.6665 GB, free: 4.918 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001128/0.4944, allocations: 25.11 kB / 0.6665 GB, free: 4.906 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.538e-06/0.4944, allocations: 2.406 kB / 0.6665 GB, free: 4.906 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001094/0.4945, allocations: 21.23 kB / 0.6666 GB, free: 4.895 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.724e-05/0.4945, allocations: 12.31 kB / 0.6666 GB, free: 4.891 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 8 (combiTimeTableWriter.str,$PRE.combiTimeTableWriter.str,csvWriter.str,$PRE.csvWriter.str,combiTimeTableWriter.sampleTrigger,$whenCondition2,csvWriter.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001483/0.4947, allocations: 201.7 kB / 0.6668 GB, free: 4.691 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.092e-05/0.4947, allocations: 17.12 kB / 0.6668 GB, free: 4.684 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.163e-05/0.4948, allocations: 20.8 kB / 0.6668 GB, free: 4.66 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.4948, allocations: 5.141 kB / 0.6668 GB, free: 4.656 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.4948, allocations: 1.312 kB / 0.6668 GB, free: 4.656 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.4948, allocations: 0 / 0.6668 GB, free: 4.656 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006755/0.4955, allocations: 0.5858 MB / 0.6674 GB, free: 4.152 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.4955, allocations: 0 / 0.6674 GB, free: 4.152 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.712e-05/0.4956, allocations: 9.688 kB / 0.6674 GB, free: 4.152 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.4956, allocations: 0 / 0.6674 GB, free: 4.152 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.285e-05/0.4956, allocations: 9.172 kB / 0.6674 GB, free: 4.148 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.474e-06/0.4956, allocations: 0 / 0.6674 GB, free: 4.148 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.4956, allocations: 5.062 kB / 0.6674 GB, free: 4.145 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005283/0.4962, allocations: 403.2 kB / 0.6678 GB, free: 3.855 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.069e-05/0.4962, allocations: 88.02 kB / 0.6679 GB, free: 3.754 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.96e-05/0.4962, allocations: 4.531 kB / 0.6679 GB, free: 3.754 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001159/0.4964, allocations: 14.23 kB / 0.6679 GB, free: 3.746 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.163e-05/0.4964, allocations: 11.73 kB / 0.6679 GB, free: 3.738 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.685e-05/0.4965, allocations: 5.156 kB / 0.6679 GB, free: 3.738 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 9.32e-05/0.4966, allocations: 134.7 kB / 0.668 GB, free: 3.633 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4966, allocations: 0 / 0.668 GB, free: 3.633 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.00031/0.4969, allocations: 46.28 kB / 0.6681 GB, free: 3.617 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$whenCondition2,combiTimeTableWriter.str,combiTimeTableWriter.sampleTrigger,csvWriter.str,csvWriter.sampleTrigger) * Number of discrete states: 4 (combiTimeTableWriter.str,$whenCondition2,csvWriter.str,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002198/0.4971, allocations: 118 kB / 0.6682 GB, free: 3.523 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004254/0.4975, allocations: 371.6 kB / 0.6685 GB, free: 3.199 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.4975, allocations: 0 / 0.6685 GB, free: 3.199 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001996/0.4978, allocations: 206.1 kB / 0.6687 GB, free: 3.027 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003152/0.4981, allocations: 24.61 kB / 0.6688 GB, free: 3.02 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005556/0.4986, allocations: 290 kB / 0.669 GB, free: 2.812 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001449/0.4988, allocations: 0.7119 MB / 0.6697 GB, free: 2.098 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.309e-05/0.4989, allocations: 20.34 kB / 0.6698 GB, free: 2.09 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.241e-05/0.4989, allocations: 17.66 kB / 0.6698 GB, free: 2.078 MB / 0.4981 GB Notification: Performance of SimCode: time 2.2e-07/0.4989, allocations: 0 / 0.6698 GB, free: 2.078 MB / 0.4981 GB Notification: Performance of Templates: time 0.005095/0.504, allocations: 2.074 MB / 0.6718 GB, free: 1.023 MB / 0.4981 GB make -j1 -f IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.makefile (rm -f IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.sim & ./IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)