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/Complex 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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.01317/0.01317, allocations: 169.5 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7918/0.7918, allocations: 132.3 MB / 148.1 MB, free: 252 kB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.514/1.514, allocations: 223.2 MB / 403.2 MB, free: 6.777 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000901/0.000901, allocations: 99.92 kB / 485.5 MB, free: 14.16 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003227/0.0003227, allocations: 8 kB / 0.5641 GB, free: 2.129 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3821/0.3824, allocations: 81.57 MB / 0.6437 GB, free: 39.29 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1573/0.5398, allocations: 113.2 MB / 0.7543 GB, free: 6.773 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002636/0.5401, allocations: 79.95 kB / 0.7544 GB, free: 6.695 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.0143/0.5544, allocations: 5.093 MB / 0.7593 GB, free: 1.578 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.956e-06/0.5545, allocations: 0 / 0.7593 GB, free: 1.578 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.171e-05/0.5545, allocations: 3.938 kB / 0.7593 GB, free: 1.574 MB / 0.5261 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.0006813/0.5552, allocations: 0.5367 MB / 0.7599 GB, free: 0.9648 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.98e-05/0.5552, allocations: 15.97 kB / 0.7599 GB, free: 0.9492 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.831e-05/0.5553, allocations: 19.81 kB / 0.7599 GB, free: 0.9297 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003514/0.5557, allocations: 226.8 kB / 0.7601 GB, free: 0.668 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.591e-05/0.5557, allocations: 8 kB / 0.7601 GB, free: 0.6602 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.44e-05/0.5557, allocations: 12 kB / 0.7601 GB, free: 0.6484 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003183/0.5561, allocations: 117.6 kB / 0.7602 GB, free: 0.5273 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.565e-05/0.5561, allocations: 7.938 kB / 0.7603 GB, free: 0.5195 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.041e-05/0.5561, allocations: 0 / 0.7603 GB, free: 0.5195 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.576e-06/0.5561, allocations: 4 kB / 0.7603 GB, free: 0.5156 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002278/0.5564, allocations: 79.94 kB / 0.7603 GB, free: 448 kB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008571/0.5573, allocations: 428.5 kB / 0.7607 GB, free: 15.97 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002127/0.5575, allocations: 90.53 kB / 0.7608 GB, free: 15.87 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 3.046e-05/0.5575, allocations: 0 / 0.7608 GB, free: 15.87 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003552/0.5579, allocations: 186.9 kB / 0.761 GB, free: 15.66 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=10): time 4.588e-06/0.5579, allocations: 3.984 kB / 0.761 GB, free: 15.66 MB / 0.5417 GB Notification: Performance of matching and sorting (n=10): time 0.0009151/0.5588, allocations: 0.5146 MB / 0.7615 GB, free: 15.09 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001245/0.559, allocations: 166.2 kB / 0.7617 GB, free: 14.89 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001821/0.5591, allocations: 150.4 kB / 0.7618 GB, free: 14.73 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 3.511e-05/0.5592, allocations: 33.7 kB / 0.7618 GB, free: 14.7 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 9.81e-05/0.5593, allocations: 108.4 kB / 0.7619 GB, free: 14.58 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 3.518e-05/0.5593, allocations: 31.59 kB / 0.762 GB, free: 14.55 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.251e-05/0.5594, allocations: 4.281 kB / 0.762 GB, free: 14.55 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001366/0.5595, allocations: 326.8 kB / 0.7623 GB, free: 14.22 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001356/0.5596, allocations: 55.91 kB / 0.7623 GB, free: 14.16 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001868/0.5598, allocations: 106.8 kB / 0.7625 GB, free: 14.04 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002231/0.5601, allocations: 182.8 kB / 0.7626 GB, free: 13.83 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.5601, allocations: 0 / 0.7626 GB, free: 13.83 MB / 0.5417 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005544/0.5606, allocations: 356.1 kB / 0.763 GB, free: 13.45 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.000102/0.5608, allocations: 110.8 kB / 0.7631 GB, free: 13.32 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.123e-05/0.5608, allocations: 11.92 kB / 0.7631 GB, free: 13.31 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.831e-05/0.5608, allocations: 0 / 0.7631 GB, free: 13.31 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000128/0.5609, allocations: 20.25 kB / 0.7631 GB, free: 13.29 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.665e-05/0.561, allocations: 15.88 kB / 0.7631 GB, free: 13.27 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001083/0.5611, allocations: 19.84 kB / 0.7631 GB, free: 13.25 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.341e-05/0.5611, allocations: 8 kB / 0.7631 GB, free: 13.25 MB / 0.5417 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 ($PRE.combiTimeTableWriter.str,combiTimeTableWriter.str,$PRE.csvWriter.str,csvWriter.str,$whenCondition2,combiTimeTableWriter.sampleTrigger,$whenCondition1,csvWriter.sampleTrigger) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001842/0.5613, allocations: 189.2 kB / 0.7633 GB, free: 13.04 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.301e-05/0.5613, allocations: 23.8 kB / 0.7633 GB, free: 13.02 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.482e-05/0.5614, allocations: 13.41 kB / 0.7634 GB, free: 13 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/0.5614, allocations: 8 kB / 0.7634 GB, free: 12.99 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.5614, allocations: 0 / 0.7634 GB, free: 12.99 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.5614, allocations: 3.953 kB / 0.7634 GB, free: 12.98 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008585/0.5623, allocations: 0.5798 MB / 0.7639 GB, free: 12.34 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.5623, allocations: 3.984 kB / 0.7639 GB, free: 12.33 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.995e-05/0.5624, allocations: 19.94 kB / 0.764 GB, free: 12.31 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.5624, allocations: 0 / 0.764 GB, free: 12.31 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.643e-05/0.5624, allocations: 11.98 kB / 0.764 GB, free: 12.3 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.502e-06/0.5624, allocations: 0 / 0.764 GB, free: 12.3 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.5624, allocations: 3.953 kB / 0.764 GB, free: 12.3 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005775/0.563, allocations: 406.7 kB / 0.7644 GB, free: 11.87 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 5.586e-05/0.5631, allocations: 92.92 kB / 0.7645 GB, free: 11.76 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.53e-05/0.5631, allocations: 4 kB / 0.7645 GB, free: 11.76 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001206/0.5633, allocations: 11.98 kB / 0.7645 GB, free: 11.75 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.984e-05/0.5633, allocations: 15.89 kB / 0.7645 GB, free: 11.73 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.285e-05/0.5634, allocations: 11.98 kB / 0.7645 GB, free: 11.72 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001099/0.5635, allocations: 128.2 kB / 0.7646 GB, free: 11.59 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.61e-07/0.5635, allocations: 4 kB / 0.7646 GB, free: 11.59 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002972/0.5638, allocations: 43.94 kB / 0.7647 GB, free: 11.55 MB / 0.5417 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002988/0.5641, allocations: 126.7 kB / 0.7648 GB, free: 11.42 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0005144/0.5646, allocations: 365.5 kB / 0.7651 GB, free: 11.01 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.694e-06/0.5646, allocations: 3.938 kB / 0.7651 GB, free: 11.01 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0002506/0.5649, allocations: 210.8 kB / 0.7653 GB, free: 10.78 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000256/0.5652, allocations: 12.69 kB / 0.7653 GB, free: 10.76 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006598/0.5658, allocations: 310.6 kB / 0.7656 GB, free: 10.43 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003188/0.5662, allocations: 0.7121 MB / 0.7663 GB, free: 9.691 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 6.907e-05/0.5662, allocations: 20.53 kB / 0.7664 GB, free: 9.672 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.454e-05/0.5663, allocations: 15.42 kB / 0.7664 GB, free: 9.66 MB / 0.5417 GB Notification: Performance of SimCode: time 5.01e-07/0.5663, allocations: 11.88 kB / 0.7664 GB, free: 9.648 MB / 0.5417 GB Notification: Performance of Templates: time 0.00525/0.5715, allocations: 1.886 MB / 0.7682 GB, free: 7.793 MB / 0.5417 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)