Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Blocks.OnDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.OnDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.OnDelay") translateModel(ModelicaTest.Blocks.OnDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_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.2+maint.om/package.mo): time 0.003267/0.003267, allocations: 188.3 kB / 7.462 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.243/1.243, allocations: 194.2 MB / 202.1 MB, free: 8.641 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001818/0.001818, allocations: 119.3 kB / 247.1 MB, free: 6.355 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.1717/0.1717, allocations: 39.94 MB / 331.9 MB, free: 4.871 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 7.854e-06/7.895e-06, allocations: 0 / 392.8 MB, free: 75.88 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1102, allocations: 54.87 MB / 447.6 MB, free: 20.99 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3553/0.4656, allocations: 80.19 MB / 0.5155 GB, free: 10.05 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002713/0.4659, allocations: 64.58 kB / 0.5155 GB, free: 10.05 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.006805/0.4727, allocations: 1.655 MB / 0.5171 GB, free: 9.969 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.053e-05/0.4728, allocations: 1.969 kB / 0.5171 GB, free: 9.969 MB / 346.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.0005019/0.4733, allocations: 0.5271 MB / 0.5177 GB, free: 9.445 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/0.4733, allocations: 11.94 kB / 0.5177 GB, free: 9.441 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.804e-05/0.4734, allocations: 18.97 kB / 0.5177 GB, free: 9.434 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001118/0.4735, allocations: 173.9 kB / 0.5178 GB, free: 9.23 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.607e-05/0.4736, allocations: 90.7 kB / 0.5179 GB, free: 9.137 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.704e-05/0.4737, allocations: 12.14 kB / 0.5179 GB, free: 9.137 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001806/0.4738, allocations: 62.89 kB / 0.518 GB, free: 9.133 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002071/0.4741, allocations: 123.9 kB / 0.5181 GB, free: 9.074 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.4741, allocations: 9 kB / 0.5181 GB, free: 9.066 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.235e-05/0.4741, allocations: 4.031 kB / 0.5181 GB, free: 9.066 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.03e-05/0.4741, allocations: 5.188 kB / 0.5181 GB, free: 9.062 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005804/0.4747, allocations: 0.4893 MB / 0.5186 GB, free: 8.66 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001921/0.4749, allocations: 136.1 kB / 0.5187 GB, free: 8.582 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001205/0.475, allocations: 87.17 kB / 0.5188 GB, free: 8.559 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.542e-05/0.4751, allocations: 9.312 kB / 0.5188 GB, free: 8.551 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002933/0.4754, allocations: 429.4 kB / 0.5193 GB, free: 8.16 MB / 346.7 MB Notification: Performance of pre-optimization done (n=22): time 1.984e-06/0.4754, allocations: 0 / 0.5193 GB, free: 8.16 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.0004124/0.4758, allocations: 189 kB / 0.5194 GB, free: 8.117 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.153e-05/0.4759, allocations: 245.1 kB / 0.5197 GB, free: 7.836 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.801e-05/0.476, allocations: 124.1 kB / 0.5198 GB, free: 7.738 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.484e-05/0.476, allocations: 33.11 kB / 0.5198 GB, free: 7.707 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.532e-05/0.4761, allocations: 88.62 kB / 0.5199 GB, free: 7.625 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.44e-05/0.4761, allocations: 43.59 kB / 0.5199 GB, free: 7.605 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.086e-05/0.4761, allocations: 1.094 kB / 0.5199 GB, free: 7.605 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.949e-05/0.4762, allocations: 323 kB / 0.5202 GB, free: 7.293 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.648e-05/0.4763, allocations: 51.7 kB / 0.5203 GB, free: 7.289 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001103/0.4764, allocations: 112.3 kB / 0.5204 GB, free: 7.207 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001417/0.4766, allocations: 51.02 kB / 0.5205 GB, free: 7.207 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.4766, allocations: 1.375 kB / 0.5205 GB, free: 7.207 MB / 346.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003195/0.4769, allocations: 193.1 kB / 0.5206 GB, free: 7.152 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.881e-05/0.4769, allocations: 6.281 kB / 0.5206 GB, free: 7.152 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/0.4769, allocations: 6.406 kB / 0.5207 GB, free: 7.148 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.637e-05/0.477, allocations: 2.719 kB / 0.5207 GB, free: 7.148 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.7e-05/0.477, allocations: 9.438 kB / 0.5207 GB, free: 7.148 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/0.4771, allocations: 7.797 kB / 0.5207 GB, free: 7.145 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001156/0.4772, allocations: 18.33 kB / 0.5207 GB, free: 7.141 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.381e-05/0.4772, allocations: 11.92 kB / 0.5207 GB, free: 7.141 MB / 346.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.0001484/0.4774, allocations: 257.8 kB / 0.5209 GB, free: 6.898 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.697e-05/0.4774, allocations: 16.97 kB / 0.521 GB, free: 6.895 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.995e-05/0.4775, allocations: 11.75 kB / 0.521 GB, free: 6.887 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.4775, allocations: 3.312 kB / 0.521 GB, free: 6.887 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.4775, allocations: 9.281 kB / 0.521 GB, free: 6.879 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.4775, allocations: 4.75 kB / 0.521 GB, free: 6.875 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005193/0.478, allocations: 433.1 kB / 0.5214 GB, free: 6.605 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.478, allocations: 5.969 kB / 0.5214 GB, free: 6.602 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.324e-05/0.478, allocations: 6.531 kB / 0.5214 GB, free: 6.598 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.538e-06/0.4781, allocations: 5.812 kB / 0.5214 GB, free: 6.594 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.969e-05/0.4781, allocations: 11.64 kB / 0.5214 GB, free: 6.594 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.4781, allocations: 1.984 kB / 0.5214 GB, free: 6.594 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.788e-06/0.4781, allocations: 1.312 kB / 0.5214 GB, free: 6.594 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004403/0.4786, allocations: 341.2 kB / 0.5218 GB, free: 6.406 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.554e-05/0.4786, allocations: 89.56 kB / 0.5218 GB, free: 6.305 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.4e-05/0.4787, allocations: 11.66 kB / 0.5219 GB, free: 6.305 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000157/0.4788, allocations: 23.97 kB / 0.5219 GB, free: 6.301 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001062/0.4789, allocations: 20.91 kB / 0.5219 GB, free: 6.297 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.008e-05/0.479, allocations: 11.38 kB / 0.5219 GB, free: 6.297 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.551e-05/0.479, allocations: 100.3 kB / 0.522 GB, free: 6.223 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003714/0.4794, allocations: 54.56 kB / 0.5221 GB, free: 6.219 MB / 346.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.0002428/0.4797, allocations: 142.6 kB / 0.5222 GB, free: 6.121 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000411/0.4801, allocations: 291.2 kB / 0.5225 GB, free: 5.957 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.4801, allocations: 1.062 kB / 0.5225 GB, free: 5.957 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003158/0.4804, allocations: 285.6 kB / 0.5227 GB, free: 5.832 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001927/0.4806, allocations: 17.95 kB / 0.5228 GB, free: 5.824 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005089/0.4811, allocations: 222.7 kB / 0.523 GB, free: 5.715 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002019/0.4814, allocations: 0.7291 MB / 0.5237 GB, free: 5.008 MB / 346.7 MB Notification: Performance of SimCode: time 1.473e-06/0.4814, allocations: 0 / 0.5237 GB, free: 5.008 MB / 346.7 MB Notification: Performance of Templates: time 0.004998/0.4864, allocations: 1.891 MB / 0.5255 GB, free: 4.109 MB / 346.7 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Blocks.OnDelay.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Blocks.OnDelay.sim & ./ModelicaTest_3.2.2_ModelicaTest.Blocks.OnDelay -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Blocks.OnDelay.pipe 2>&1)