Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge") translateModel(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge") [: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.3+maint.om/package.mo): time 0.004083/0.004083, allocations: 182.2 kB / 7.454 MB, free: 2.516 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.08686/0.08686, allocations: 10.58 MB / 18.46 MB, free: 2.184 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.838/1.838, allocations: 205.2 MB / 226.5 MB, free: 0.5273 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000978/0.0009781, allocations: 86.62 kB / 276.9 MB, free: 1.832 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.003e-05/1.005e-05, allocations: 0 / 332.9 MB, free: 9.723 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4153/0.4154, allocations: 49.99 MB / 382.9 MB, free: 39.18 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1199/0.5354, allocations: 80.55 MB / 463.5 MB, free: 7.324 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002596/0.5357, allocations: 91.92 kB / 463.6 MB, free: 7.234 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.02753/0.5632, allocations: 8.855 MB / 472.4 MB, free: 14.38 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.183e-05/0.5634, allocations: 4 kB / 472.4 MB, free: 14.38 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.001337/0.5647, allocations: 0.5796 MB / 473 MB, free: 13.73 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.042e-05/0.5648, allocations: 8.031 kB / 473 MB, free: 13.73 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001838/0.565, allocations: 39.53 kB / 473.1 MB, free: 13.69 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008526/0.5658, allocations: 339.9 kB / 473.4 MB, free: 13.31 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.113e-05/0.5659, allocations: 11.94 kB / 473.4 MB, free: 13.3 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.042e-05/0.5659, allocations: 15.98 kB / 473.4 MB, free: 13.29 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002038/0.5661, allocations: 60.17 kB / 473.5 MB, free: 13.23 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002981/0.5665, allocations: 137.1 kB / 473.6 MB, free: 13.08 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.5665, allocations: 4 kB / 473.6 MB, free: 13.07 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.564e-05/0.5665, allocations: 3.984 kB / 473.6 MB, free: 13.07 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.885e-06/0.5665, allocations: 0 / 473.6 MB, free: 13.07 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009463/0.5675, allocations: 487.2 kB / 474.1 MB, free: 12.56 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003194/0.5678, allocations: 122.7 kB / 474.2 MB, free: 12.43 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000107/0.5679, allocations: 52.94 kB / 474.3 MB, free: 12.38 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.554e-05/0.568, allocations: 0 / 474.3 MB, free: 12.38 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002104/0.5682, allocations: 124.2 kB / 474.4 MB, free: 12.24 MB / 362.7 MB Notification: Performance of pre-optimization done (n=18): time 1.873e-06/0.5682, allocations: 0 / 474.4 MB, free: 12.24 MB / 362.7 MB Notification: Performance of matching and sorting (n=18): time 0.0005106/0.5687, allocations: 193.7 kB / 474.6 MB, free: 12.05 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.844e-05/0.5688, allocations: 106.8 kB / 474.7 MB, free: 11.92 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005258/0.5693, allocations: 379.6 kB / 475.1 MB, free: 11.55 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.43e-05/0.5694, allocations: 33.7 kB / 475.1 MB, free: 11.51 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.627e-05/0.5695, allocations: 116.5 kB / 475.2 MB, free: 11.39 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.278e-05/0.5695, allocations: 43.58 kB / 475.2 MB, free: 11.34 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.767e-06/0.5695, allocations: 0 / 475.2 MB, free: 11.34 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001721/0.5697, allocations: 346.8 kB / 475.6 MB, free: 11 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.557e-05/0.5698, allocations: 44.44 kB / 475.6 MB, free: 10.95 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001678/0.57, allocations: 140.3 kB / 475.8 MB, free: 10.77 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001228/0.5701, allocations: 61.06 kB / 475.8 MB, free: 10.71 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.179e-06/0.5701, allocations: 4 kB / 475.8 MB, free: 10.71 MB / 362.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003628/0.5705, allocations: 209.1 kB / 476 MB, free: 10.5 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/0.5705, allocations: 4 kB / 476 MB, free: 10.49 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.5705, allocations: 5.5 kB / 476 MB, free: 10.49 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.02e-05/0.5706, allocations: 4 kB / 476 MB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001268/0.5707, allocations: 27.92 kB / 476.1 MB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.029e-05/0.5707, allocations: 7.984 kB / 476.1 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001558/0.5709, allocations: 19.84 kB / 476.1 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.066e-05/0.5709, allocations: 12.12 kB / 476.1 MB, free: 10.42 MB / 362.7 MB Warning: Assuming fixed start value for the following 3 variables: timer.Sd:DISCRETE(fixed = false ) type: Boolean timer.Q:DISCRETE(fixed = false ) "status of the timer" type: Boolean timer.tr:DISCRETE(fixed = false ) "residual time" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 23 ($PRE.timer.Sd,timer.Sd,$PRE.timer.run,timer.run,$PRE.timer.startTime,timer.startTime,$PRE.timer.Q,timer.Q,$PRE.timer.tr,timer.tr,$whenCondition3,$PRE.ResetSignal.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.SetSignal.combiTimeTable.nextTimeEvent,$whenCondition1,ResetSignal.y,ResetSignal.combiTimeTable.nextTimeEvent,$PRE.ResetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.y,SetSignal.combiTimeTable.nextTimeEvent,$PRE.SetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 27 * 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 0.000184/0.5711, allocations: 124.5 kB / 476.2 MB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.813e-05/0.5712, allocations: 31.62 kB / 476.3 MB, free: 10.26 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004646/0.5716, allocations: 207.6 kB / 476.5 MB, free: 10.06 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.975e-06/0.5717, allocations: 11.94 kB / 476.5 MB, free: 10.05 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.5717, allocations: 4 kB / 476.5 MB, free: 10.04 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.5717, allocations: 0 / 476.5 MB, free: 10.04 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003092/0.572, allocations: 290 kB / 476.8 MB, free: 9.723 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.572, allocations: 0 / 476.8 MB, free: 9.723 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.389e-05/0.5721, allocations: 15.84 kB / 476.8 MB, free: 9.707 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.5721, allocations: 1.969 kB / 476.8 MB, free: 9.707 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.028e-05/0.5721, allocations: 7.984 kB / 476.8 MB, free: 9.699 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.5721, allocations: 128 / 476.8 MB, free: 9.699 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/0.5721, allocations: 4 kB / 476.8 MB, free: 9.695 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004266/0.5726, allocations: 220.6 kB / 477 MB, free: 9.461 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001201/0.5727, allocations: 132.6 kB / 477.1 MB, free: 9.312 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.186e-05/0.5728, allocations: 7.984 kB / 477.1 MB, free: 9.305 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001139/0.5729, allocations: 11.98 kB / 477.2 MB, free: 9.293 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.218e-05/0.573, allocations: 7.984 kB / 477.2 MB, free: 9.285 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.095e-05/0.573, allocations: 12 kB / 477.2 MB, free: 9.273 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0003514/0.5734, allocations: 295.1 kB / 477.5 MB, free: 8.98 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004107/0.5738, allocations: 83.98 kB / 477.5 MB, free: 8.898 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition3,$whenCondition2,$whenCondition1,timer.Q,timer.tr,timer.run,timer.startTime,timer.Sd,SetSignal.y,SetSignal.combiTimeTable.nextTimeEvent,SetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.y,ResetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 6 (timer.Sd,timer.run,SetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEvent,SetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.0009412/0.5747, allocations: 342.1 kB / 477.9 MB, free: 8.609 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003537/0.5751, allocations: 151.8 kB / 478 MB, free: 8.461 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.5751, allocations: 4.5 kB / 478 MB, free: 8.457 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001612/0.5753, allocations: 75.94 kB / 478.1 MB, free: 8.383 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004684/0.5757, allocations: 70.58 kB / 478.2 MB, free: 8.316 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009775/0.5767, allocations: 401.9 kB / 478.6 MB, free: 7.902 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006429/0.5774, allocations: 0.8177 MB / 479.4 MB, free: 7.059 MB / 362.7 MB Notification: Performance of SimCode: time 5.31e-07/0.5774, allocations: 3.938 kB / 479.4 MB, free: 7.055 MB / 362.7 MB Notification: Performance of Templates: time 0.009511/0.5869, allocations: 3.9 MB / 483.3 MB, free: 3.16 MB / 362.7 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.sim & ./IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.pipe 2>&1)