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.00822/0.00822, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001784/0.001784, allocations: 189.4 kB / 16.67 MB, free: 5.934 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.363/1.363, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7786/0.7786, allocations: 132.2 MB / 422.7 MB, free: 6.543 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001136/0.001136, allocations: 62.62 kB / 0.5813 GB, free: 23.84 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1541/0.1553, allocations: 80.21 MB / 0.6597 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.003842/0.1591, allocations: 1.597 MB / 0.6612 GB, free: 8.691 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001355/0.1605, allocations: 0.6194 MB / 0.6618 GB, free: 8.066 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.831e-05/0.1606, allocations: 0 / 0.6618 GB, free: 8.066 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001862/0.1609, allocations: 23.86 kB / 0.6619 GB, free: 8.043 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002793/0.1612, allocations: 47.7 kB / 0.6619 GB, free: 7.996 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005371/0.1617, allocations: 111.8 kB / 0.662 GB, free: 7.887 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0003399/0.1621, allocations: 187.6 kB / 0.6622 GB, free: 7.703 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001492/0.1622, allocations: 37.08 kB / 0.6622 GB, free: 7.664 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001891/0.1624, allocations: 87.69 kB / 0.6623 GB, free: 7.578 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001741/0.1626, allocations: 83.72 kB / 0.6624 GB, free: 7.496 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 5.415e-05/0.1627, allocations: 16 kB / 0.6624 GB, free: 7.48 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 9.788e-05/0.1628, allocations: 31.98 kB / 0.6624 GB, free: 7.449 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001022/0.1629, allocations: 23.92 kB / 0.6625 GB, free: 7.426 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001396/0.163, allocations: 75.64 kB / 0.6625 GB, free: 7.352 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003205/0.1634, allocations: 175.3 kB / 0.6627 GB, free: 7.18 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.1634, allocations: 0 / 0.6627 GB, free: 7.18 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.212e-06/0.1634, allocations: 0 / 0.6627 GB, free: 7.18 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.039e-05/0.1634, allocations: 3.938 kB / 0.6627 GB, free: 7.176 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.0008705/0.1643, allocations: 0.5562 MB / 0.6632 GB, free: 6.547 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.1644, allocations: 12.03 kB / 0.6632 GB, free: 6.535 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.744e-05/0.1644, allocations: 20.84 kB / 0.6633 GB, free: 6.516 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004407/0.1649, allocations: 240.7 kB / 0.6635 GB, free: 6.242 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.093e-05/0.1649, allocations: 8.375 kB / 0.6635 GB, free: 6.234 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.435e-05/0.165, allocations: 20.36 kB / 0.6635 GB, free: 6.215 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004092/0.1654, allocations: 109.7 kB / 0.6636 GB, free: 6.102 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.968e-06/0.1654, allocations: 0 / 0.6636 GB, free: 6.102 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.633e-05/0.1655, allocations: 8 kB / 0.6636 GB, free: 6.094 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.151e-06/0.1655, allocations: 0 / 0.6636 GB, free: 6.094 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000274/0.1658, allocations: 71.88 kB / 0.6637 GB, free: 6.023 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000848/0.1666, allocations: 416.6 kB / 0.6641 GB, free: 5.566 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002693/0.1669, allocations: 94.56 kB / 0.6642 GB, free: 5.465 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002455/0.1672, allocations: 76.81 kB / 0.6643 GB, free: 5.387 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.927e-05/0.1672, allocations: 3.984 kB / 0.6643 GB, free: 5.383 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003611/0.1676, allocations: 182.9 kB / 0.6644 GB, free: 5.18 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=10): time 1.893e-06/0.1676, allocations: 0 / 0.6644 GB, free: 5.18 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10): time 0.0008383/0.1684, allocations: 348.8 kB / 0.6648 GB, free: 4.82 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.667e-05/0.1686, allocations: 166.2 kB / 0.6649 GB, free: 4.621 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002287/0.1688, allocations: 176 kB / 0.6651 GB, free: 4.438 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.028e-05/0.1688, allocations: 33.7 kB / 0.6651 GB, free: 4.398 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 9.668e-05/0.169, allocations: 112.3 kB / 0.6652 GB, free: 4.281 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.675e-05/0.169, allocations: 23.84 kB / 0.6653 GB, free: 4.258 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001019/0.1691, allocations: 45.69 kB / 0.6653 GB, free: 4.207 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001452/0.1693, allocations: 331 kB / 0.6656 GB, free: 3.875 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002066/0.1695, allocations: 47.97 kB / 0.6657 GB, free: 3.828 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002706/0.1698, allocations: 102.8 kB / 0.6658 GB, free: 3.703 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005233/0.1703, allocations: 316.9 kB / 0.6661 GB, free: 3.332 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.1703, allocations: 0 / 0.6661 GB, free: 3.332 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0007745/0.1711, allocations: 348.2 kB / 0.6664 GB, free: 2.961 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.792e-05/0.1712, allocations: 118.8 kB / 0.6665 GB, free: 2.82 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.226e-05/0.1712, allocations: 8 kB / 0.6665 GB, free: 2.812 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.129e-05/0.1713, allocations: 4 kB / 0.6665 GB, free: 2.809 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001513/0.1714, allocations: 19.92 kB / 0.6665 GB, free: 2.789 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.353e-06/0.1715, allocations: 3.938 kB / 0.6666 GB, free: 2.785 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000137/0.1716, allocations: 23.89 kB / 0.6666 GB, free: 2.762 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.928e-05/0.1716, allocations: 11.98 kB / 0.6666 GB, free: 2.75 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.0002038/0.1719, allocations: 194.4 kB / 0.6668 GB, free: 2.539 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.341e-05/0.1719, allocations: 23.91 kB / 0.6668 GB, free: 2.516 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.058e-05/0.172, allocations: 13.41 kB / 0.6668 GB, free: 2.496 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.172, allocations: 3.984 kB / 0.6668 GB, free: 2.492 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.722e-06/0.172, allocations: 3.938 kB / 0.6668 GB, free: 2.488 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.172, allocations: 0 / 0.6668 GB, free: 2.488 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009853/0.173, allocations: 0.5759 MB / 0.6674 GB, free: 1.844 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.928e-06/0.173, allocations: 0 / 0.6674 GB, free: 1.844 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.865e-05/0.1731, allocations: 19.92 kB / 0.6674 GB, free: 1.824 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.1731, allocations: 0 / 0.6674 GB, free: 1.824 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.619e-05/0.1732, allocations: 7.984 kB / 0.6674 GB, free: 1.816 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.417e-06/0.1732, allocations: 4 kB / 0.6674 GB, free: 1.812 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.618e-06/0.1732, allocations: 3.938 kB / 0.6674 GB, free: 1.809 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007596/0.1739, allocations: 402.7 kB / 0.6678 GB, free: 1.387 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.889e-05/0.174, allocations: 96.95 kB / 0.6679 GB, free: 1.273 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.632e-05/0.1741, allocations: 8 kB / 0.6679 GB, free: 1.266 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001637/0.1743, allocations: 7.984 kB / 0.6679 GB, free: 1.258 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.011e-05/0.1743, allocations: 11.92 kB / 0.6679 GB, free: 1.246 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.849e-05/0.1744, allocations: 15.98 kB / 0.6679 GB, free: 1.23 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001264/0.1745, allocations: 123.2 kB / 0.668 GB, free: 1.109 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.91e-07/0.1745, allocations: 3.938 kB / 0.6681 GB, free: 1.105 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004826/0.175, allocations: 36 kB / 0.6681 GB, free: 1.07 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.0002825/0.1753, allocations: 123.1 kB / 0.6682 GB, free: 0.9453 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0006553/0.176, allocations: 365.4 kB / 0.6686 GB, free: 0.5391 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.176, allocations: 0.5 kB / 0.6686 GB, free: 0.5391 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000314/0.1763, allocations: 206.7 kB / 0.6687 GB, free: 320 kB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004734/0.1768, allocations: 29.23 kB / 0.6688 GB, free: 296 kB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007064/0.1775, allocations: 291.7 kB / 0.6691 GB, free: 15.98 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002508/0.1778, allocations: 0.7079 MB / 0.6697 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 6.683e-05/0.1779, allocations: 24.48 kB / 0.6698 GB, free: 15.22 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.371e-05/0.1779, allocations: 15.42 kB / 0.6698 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of SimCode: time 2.7e-07/0.1779, allocations: 0 / 0.6698 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of Templates: time 0.007075/0.185, allocations: 2.07 MB / 0.6718 GB, free: 13.16 MB / 0.5137 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)