Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset") translateModel(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.795/0.795, allocations: 141.7 MB / 154.3 MB, free: 15.48 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001032/0.001032, allocations: 181.7 kB / 187.3 MB, free: 11.89 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.442/1.442, allocations: 221.3 MB / 441.4 MB, free: 4.633 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.0008925/0.0008925, allocations: 97.3 kB / 0.5124 GB, free: 24.21 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001682/0.001682, allocations: 273.2 kB / 0.5939 GB, free: 7.945 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 4.033e-05/4.037e-05, allocations: 4 kB / 0.6834 GB, free: 12.23 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4203/0.4204, allocations: 82.78 MB / 0.7643 GB, free: 108.6 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1186/0.539, allocations: 110.5 MB / 0.8722 GB, free: 14 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000208/0.5392, allocations: 76.36 kB / 0.8723 GB, free: 13.93 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.009189/0.5484, allocations: 3.523 MB / 0.8757 GB, free: 10.41 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.853e-06/0.5485, allocations: 0 / 0.8757 GB, free: 10.41 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.95e-05/0.5485, allocations: 7.938 kB / 0.8757 GB, free: 10.41 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0006204/0.5491, allocations: 442.6 kB / 0.8761 GB, free: 9.93 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.947e-05/0.5492, allocations: 8.906 kB / 0.8761 GB, free: 9.922 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.184e-05/0.5493, allocations: 15.81 kB / 0.8762 GB, free: 9.906 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003038/0.5496, allocations: 230.6 kB / 0.8764 GB, free: 9.641 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.058e-05/0.5496, allocations: 11.95 kB / 0.8764 GB, free: 9.629 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.717e-05/0.5496, allocations: 12 kB / 0.8764 GB, free: 9.617 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002408/0.5499, allocations: 139.3 kB / 0.8765 GB, free: 9.461 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.151e-05/0.5499, allocations: 0 / 0.8765 GB, free: 9.461 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.08e-05/0.5499, allocations: 8 kB / 0.8765 GB, free: 9.453 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.191e-06/0.55, allocations: 3.938 kB / 0.8765 GB, free: 9.449 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001067/0.5501, allocations: 43.94 kB / 0.8766 GB, free: 9.406 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001068/0.5511, allocations: 0.7668 MB / 0.8773 GB, free: 8.574 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 8.522e-05/0.5512, allocations: 30.58 kB / 0.8774 GB, free: 8.535 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.107e-05/0.5513, allocations: 20.86 kB / 0.8774 GB, free: 8.512 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.067e-05/0.5513, allocations: 0 / 0.8774 GB, free: 8.512 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001682/0.5515, allocations: 126.6 kB / 0.8775 GB, free: 8.363 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=11): time 1.112e-06/0.5515, allocations: 0 / 0.8775 GB, free: 8.363 MB / 0.5417 GB Notification: Performance of matching and sorting (n=11): time 0.000236/0.5517, allocations: 101.4 kB / 0.8776 GB, free: 8.258 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.908e-05/0.5518, allocations: 136.5 kB / 0.8777 GB, free: 8.094 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001617/0.552, allocations: 178 kB / 0.8779 GB, free: 7.914 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.055e-05/0.552, allocations: 29.77 kB / 0.8779 GB, free: 7.879 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.000121/0.5522, allocations: 135.9 kB / 0.8781 GB, free: 7.742 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 3.287e-05/0.5522, allocations: 31.55 kB / 0.8781 GB, free: 7.711 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.835e-06/0.5522, allocations: 4 kB / 0.8781 GB, free: 7.707 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001339/0.5523, allocations: 334.7 kB / 0.8784 GB, free: 7.371 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.574e-05/0.5524, allocations: 28.38 kB / 0.8784 GB, free: 7.34 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001154/0.5525, allocations: 133 kB / 0.8786 GB, free: 7.16 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.687e-05/0.5526, allocations: 43.92 kB / 0.8786 GB, free: 7.117 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.5526, allocations: 4 kB / 0.8786 GB, free: 7.113 MB / 0.5417 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002502/0.5529, allocations: 177.1 kB / 0.8788 GB, free: 6.934 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.5529, allocations: 12.44 kB / 0.8788 GB, free: 6.922 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.212e-05/0.5529, allocations: 8 kB / 0.8788 GB, free: 6.914 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.512e-05/0.5529, allocations: 4 kB / 0.8788 GB, free: 6.91 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000133/0.5531, allocations: 31.98 kB / 0.8788 GB, free: 6.879 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.083e-05/0.5531, allocations: 7.938 kB / 0.8788 GB, free: 6.871 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001426/0.5533, allocations: 27.89 kB / 0.8789 GB, free: 6.844 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.285e-05/0.5533, allocations: 11.94 kB / 0.8789 GB, free: 6.832 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,intWitRes1.trigger,$whenCondition1,$whenCondition3,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,intDef.trigger_internal,intNoReset.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * 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 8.457e-05/0.5534, allocations: 137.8 kB / 0.879 GB, free: 6.691 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.119e-05/0.5534, allocations: 15.81 kB / 0.879 GB, free: 6.676 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.255e-05/0.5534, allocations: 17.53 kB / 0.879 GB, free: 6.664 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.5535, allocations: 4 kB / 0.879 GB, free: 6.66 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.5535, allocations: 3.984 kB / 0.8791 GB, free: 6.656 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.5535, allocations: 0 / 0.8791 GB, free: 6.656 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006055/0.5541, allocations: 0.4898 MB / 0.8795 GB, free: 6.109 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.5541, allocations: 4 kB / 0.8795 GB, free: 6.105 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001227/0.5542, allocations: 23.92 kB / 0.8796 GB, free: 6.082 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.5542, allocations: 4 kB / 0.8796 GB, free: 6.078 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.393e-05/0.5543, allocations: 3.984 kB / 0.8796 GB, free: 6.074 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.396e-06/0.5543, allocations: 4 kB / 0.8796 GB, free: 6.07 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.5543, allocations: 0 / 0.8796 GB, free: 6.07 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003087/0.5546, allocations: 357.3 kB / 0.8799 GB, free: 5.68 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 5.366e-05/0.5547, allocations: 96.8 kB / 0.88 GB, free: 5.566 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.869e-05/0.5547, allocations: 11.95 kB / 0.88 GB, free: 5.555 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001694/0.5549, allocations: 24.02 kB / 0.88 GB, free: 5.531 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.788e-05/0.5549, allocations: 11.98 kB / 0.88 GB, free: 5.52 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.177e-06/0.5549, allocations: 4.125 kB / 0.8801 GB, free: 5.516 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 9.772e-05/0.555, allocations: 136.4 kB / 0.8802 GB, free: 5.383 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.2e-07/0.555, allocations: 0 / 0.8802 GB, free: 5.383 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.00029/0.5553, allocations: 31.98 kB / 0.8802 GB, free: 5.352 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (intWitRes2.y,intWitRes1.y,intNoReset.y,intDef.y) * Number of discrete variables: 6 (booleanPulse.y,$whenCondition3,$whenCondition1,booleanPulse.pulseStart,intWitRes1.trigger,$whenCondition2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001336/0.5555, allocations: 111.5 kB / 0.8803 GB, free: 5.234 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0001678/0.5557, allocations: 91.78 kB / 0.8804 GB, free: 5.145 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.5557, allocations: 0 / 0.8804 GB, free: 5.145 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 7.326e-05/0.5557, allocations: 37 kB / 0.8804 GB, free: 5.109 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004195/0.5562, allocations: 61.16 kB / 0.8805 GB, free: 5.051 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004531/0.5566, allocations: 252.5 kB / 0.8807 GB, free: 4.77 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002634/0.5569, allocations: 0.7324 MB / 0.8815 GB, free: 4.012 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 6.921e-05/0.557, allocations: 13.55 kB / 0.8815 GB, free: 3.996 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.93e-05/0.557, allocations: 19.44 kB / 0.8815 GB, free: 3.977 MB / 0.5417 GB Notification: Performance of SimCode: time 1.503e-06/0.557, allocations: 0 / 0.8815 GB, free: 3.977 MB / 0.5417 GB Notification: Performance of Templates: time 0.004188/0.5612, allocations: 1.764 MB / 0.8832 GB, free: 2.238 MB / 0.5417 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)