Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Blocks.OnDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.OnDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Blocks.OnDelay") translateModel(ModelicaTest.Blocks.OnDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Blocks.OnDelay") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.003519/0.003519, allocations: 178.8 kB / 7.452 MB, free: 2.477 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.226/1.226, allocations: 170.6 MB / 178.4 MB, free: 15.86 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001846/0.001846, allocations: 115.9 kB / 217.7 MB, free: 8.629 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.1764/0.1764, allocations: 37.97 MB / 294.8 MB, free: 9.668 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.234e-06/7.394e-06, allocations: 1.594 kB / 349.5 MB, free: 37.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08997/0.08999, allocations: 48.7 MB / 398.2 MB, free: 5.695 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3633/0.4533, allocations: 73.81 MB / 472 MB, free: 13.52 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002251/0.4536, allocations: 58.28 kB / 472.1 MB, free: 13.52 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.005506/0.4591, allocations: 1.668 MB / 473.7 MB, free: 13.43 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.987e-06/0.4591, allocations: 0 / 473.7 MB, free: 13.43 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.00043/0.4596, allocations: 0.5256 MB / 474.3 MB, free: 12.91 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/0.4596, allocations: 15.69 kB / 474.3 MB, free: 12.91 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.816e-05/0.4597, allocations: 16.84 kB / 474.3 MB, free: 12.9 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.388e-05/0.4598, allocations: 166.8 kB / 474.5 MB, free: 12.7 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.158e-05/0.4599, allocations: 88.7 kB / 474.5 MB, free: 12.61 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.845e-05/0.4599, allocations: 14.25 kB / 474.6 MB, free: 12.61 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001751/0.4601, allocations: 68.12 kB / 474.6 MB, free: 12.6 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001735/0.4603, allocations: 120 kB / 474.7 MB, free: 12.54 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.654e-06/0.4603, allocations: 0 / 474.7 MB, free: 12.54 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.643e-05/0.4603, allocations: 3.875 kB / 474.7 MB, free: 12.54 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.61e-06/0.4603, allocations: 3.938 kB / 474.7 MB, free: 12.54 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005208/0.4608, allocations: 0.5006 MB / 475.2 MB, free: 12.13 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001562/0.461, allocations: 136.5 kB / 475.4 MB, free: 12.05 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.635e-05/0.4611, allocations: 83.67 kB / 475.5 MB, free: 12.03 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.372e-05/0.4611, allocations: 0 / 475.5 MB, free: 12.03 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002264/0.4614, allocations: 437.1 kB / 475.9 MB, free: 11.64 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 1.233e-06/0.4614, allocations: 4 kB / 475.9 MB, free: 11.63 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.0003186/0.4617, allocations: 186.8 kB / 476.1 MB, free: 11.59 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.119e-05/0.4618, allocations: 241.8 kB / 476.3 MB, free: 11.31 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.468e-05/0.4619, allocations: 124.9 kB / 476.4 MB, free: 11.21 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.129e-05/0.4619, allocations: 33.2 kB / 476.5 MB, free: 11.18 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.953e-05/0.4619, allocations: 91.06 kB / 476.6 MB, free: 11.1 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.342e-05/0.462, allocations: 41.77 kB / 476.6 MB, free: 11.08 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.356e-06/0.462, allocations: 0 / 476.6 MB, free: 11.08 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.024e-05/0.4621, allocations: 333.5 kB / 476.9 MB, free: 10.76 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.615e-05/0.4621, allocations: 44.59 kB / 477 MB, free: 10.76 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.117e-05/0.4622, allocations: 109.3 kB / 477.1 MB, free: 10.68 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000117/0.4624, allocations: 55.41 kB / 477.1 MB, free: 10.68 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.4624, allocations: 0 / 477.1 MB, free: 10.68 MB / 330.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002598/0.4626, allocations: 191.1 kB / 477.3 MB, free: 10.63 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.403e-05/0.4627, allocations: 3.219 kB / 477.3 MB, free: 10.63 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.4627, allocations: 3.188 kB / 477.3 MB, free: 10.63 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.69e-05/0.4627, allocations: 3.406 kB / 477.3 MB, free: 10.63 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.654e-05/0.4628, allocations: 14.34 kB / 477.3 MB, free: 10.62 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.58e-06/0.4628, allocations: 3.188 kB / 477.3 MB, free: 10.62 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001047/0.4629, allocations: 16.62 kB / 477.4 MB, free: 10.62 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.98e-05/0.4629, allocations: 6.406 kB / 477.4 MB, free: 10.62 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.onDelay1.u,$PRE.onDelay1.t_next,$PRE.onDelay3.u,$PRE.onDelay3.t_next,$PRE.onDelay2.u,$PRE.onDelay2.t_next,$whenCondition6,$whenCondition7,onDelay2.u,onDelay2.y,onDelay2.delaySignal,onDelay2.t_next,$whenCondition4,$whenCondition5,onDelay3.u,onDelay3.y,onDelay3.delaySignal,onDelay3.t_next,$whenCondition1,$whenCondition2,$whenCondition3,onDelay1.u,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,$PRE.booleanTable.y,booleanTable.y,$PRE.booleanTable.nextTime,booleanTable.nextTime,$PRE.booleanTable.index,booleanTable.index) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 5 * 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.0001475/0.4631, allocations: 270.5 kB / 477.6 MB, free: 10.37 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.136e-05/0.4631, allocations: 16.75 kB / 477.6 MB, free: 10.37 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.876e-05/0.4632, allocations: 14.58 kB / 477.7 MB, free: 10.37 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.4632, allocations: 7.094 kB / 477.7 MB, free: 10.36 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.4632, allocations: 3.938 kB / 477.7 MB, free: 10.36 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.4632, allocations: 3.219 kB / 477.7 MB, free: 10.36 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003969/0.4636, allocations: 437 kB / 478.1 MB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.4636, allocations: 0 / 478.1 MB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.697e-06/0.4636, allocations: 3.75 kB / 478.1 MB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.4636, allocations: 8 kB / 478.1 MB, free: 10.08 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.42e-05/0.4637, allocations: 14.61 kB / 478.1 MB, free: 10.08 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.4637, allocations: 3.594 kB / 478.1 MB, free: 10.08 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.4637, allocations: 3.938 kB / 478.1 MB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003187/0.464, allocations: 350.2 kB / 478.5 MB, free: 9.883 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.021e-05/0.4641, allocations: 88.11 kB / 478.6 MB, free: 9.781 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.423e-05/0.4641, allocations: 9.656 kB / 478.6 MB, free: 9.781 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000143/0.4643, allocations: 19.58 kB / 478.6 MB, free: 9.781 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.34e-05/0.4643, allocations: 17.27 kB / 478.6 MB, free: 9.781 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.104e-05/0.4644, allocations: 13.42 kB / 478.6 MB, free: 9.781 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.999e-05/0.4644, allocations: 102.6 kB / 478.7 MB, free: 9.703 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003022/0.4647, allocations: 57.17 kB / 478.8 MB, free: 9.699 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 22 (onDelay1.u,$whenCondition1,$whenCondition2,$whenCondition3,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,booleanTable.y,booleanTable.nextTime,booleanTable.index,$whenCondition4,$whenCondition5,onDelay3.u,onDelay3.y,onDelay3.delaySignal,onDelay3.t_next,$whenCondition6,$whenCondition7,onDelay2.u,onDelay2.y,onDelay2.delaySignal,onDelay2.t_next) * Number of discrete states: 16 (onDelay2.t_next,onDelay2.delaySignal,$whenCondition7,$whenCondition6,onDelay3.t_next,onDelay3.delaySignal,$whenCondition5,$whenCondition4,booleanTable.y,booleanTable.nextTime,booleanTable.index,$whenCondition3,onDelay1.t_next,onDelay1.delaySignal,$whenCondition2,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 6 * 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 Backend phase and start with SimCode phase: time 0.0001992/0.4649, allocations: 132.2 kB / 478.9 MB, free: 9.602 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002865/0.4652, allocations: 285.4 kB / 479.2 MB, free: 9.441 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.4652, allocations: 0 / 479.2 MB, free: 9.441 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002072/0.4654, allocations: 295.1 kB / 479.5 MB, free: 9.312 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001745/0.4656, allocations: 15.28 kB / 479.5 MB, free: 9.305 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000427/0.4661, allocations: 219.2 kB / 479.7 MB, free: 9.199 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001729/0.4662, allocations: 0.723 MB / 480.4 MB, free: 8.496 MB / 330.7 MB Notification: Performance of SimCode: time 8.51e-07/0.4662, allocations: 0 / 480.4 MB, free: 8.496 MB / 330.7 MB Notification: Performance of Templates: time 0.004016/0.4703, allocations: 1.907 MB / 482.3 MB, free: 8.293 MB / 330.7 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Blocks.OnDelay.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Blocks.OnDelay.sim & ./ModelicaTest_3.2.1_ModelicaTest.Blocks.OnDelay -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Blocks.OnDelay.pipe 2>&1)