Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.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_On,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On") translateModel(IndustrialControlSystems.Logical.Timers.Examples.testT_On,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00589/0.00589, allocations: 170.6 kB / 15.11 MB, free: 5.969 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05937/0.05937, allocations: 10.74 MB / 26.59 MB, free: 2.238 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.45/1.45, allocations: 205.4 MB / 235.2 MB, free: 188 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008857/0.0008857, allocations: 90.98 kB / 285.9 MB, free: 10.62 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003181/0.0003183, allocations: 12 kB / 346.4 MB, free: 5.168 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1102, allocations: 50 MB / 396.4 MB, free: 3.074 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3397/0.45, allocations: 81.38 MB / 477.8 MB, free: 14.82 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002456/0.4502, allocations: 88.11 kB / 477.9 MB, free: 14.79 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02191/0.4722, allocations: 9.185 MB / 487.1 MB, free: 7.277 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.785e-06/0.4722, allocations: 0 / 487.1 MB, free: 7.277 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.316e-05/0.4723, allocations: 8 kB / 487.1 MB, free: 7.27 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: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.0008737/0.4731, allocations: 0.6285 MB / 487.7 MB, free: 6.598 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.325e-05/0.4732, allocations: 12.03 kB / 487.7 MB, free: 6.586 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.306e-05/0.4733, allocations: 31.7 kB / 487.7 MB, free: 6.555 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005182/0.4738, allocations: 330.3 kB / 488.1 MB, free: 6.234 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.412e-05/0.4738, allocations: 4.188 kB / 488.1 MB, free: 6.23 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.449e-05/0.4739, allocations: 11.19 kB / 488.1 MB, free: 6.223 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002677/0.4741, allocations: 160.7 kB / 488.2 MB, free: 6.086 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.4741, allocations: 0 / 488.2 MB, free: 6.086 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.977e-05/0.4742, allocations: 7.5 kB / 488.2 MB, free: 6.082 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.4742, allocations: 0 / 488.2 MB, free: 6.082 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001588/0.4743, allocations: 76.03 kB / 488.3 MB, free: 6.031 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006355/0.475, allocations: 497 kB / 488.8 MB, free: 5.578 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002988/0.4753, allocations: 142.4 kB / 488.9 MB, free: 5.469 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.822e-05/0.4753, allocations: 4 kB / 488.9 MB, free: 5.465 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002197/0.4756, allocations: 135.5 kB / 489.1 MB, free: 5.344 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 1.883e-06/0.4756, allocations: 0 / 489.1 MB, free: 5.344 MB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.0005412/0.4761, allocations: 354.4 kB / 489.4 MB, free: 5.039 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.371e-05/0.4762, allocations: 110.8 kB / 489.5 MB, free: 4.906 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003326/0.4765, allocations: 353.3 kB / 489.9 MB, free: 4.625 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.218e-05/0.4765, allocations: 33.08 kB / 489.9 MB, free: 4.59 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.763e-05/0.4766, allocations: 159 kB / 490.1 MB, free: 4.477 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.751e-05/0.4767, allocations: 45.83 kB / 490.1 MB, free: 4.438 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.625e-06/0.4767, allocations: 2.812 kB / 490.1 MB, free: 4.438 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.44e-05/0.4768, allocations: 339.4 kB / 490.4 MB, free: 4.109 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.751e-05/0.4769, allocations: 52.88 kB / 490.5 MB, free: 4.078 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001336/0.477, allocations: 148.5 kB / 490.6 MB, free: 3.914 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001261/0.4772, allocations: 73.98 kB / 490.7 MB, free: 3.867 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.4772, allocations: 0 / 490.7 MB, free: 3.867 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003476/0.4775, allocations: 225.8 kB / 490.9 MB, free: 3.688 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.579e-05/0.4776, allocations: 8 kB / 490.9 MB, free: 3.68 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.4776, allocations: 0 / 490.9 MB, free: 3.68 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.604e-05/0.4776, allocations: 8.25 kB / 490.9 MB, free: 3.672 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001303/0.4777, allocations: 34.92 kB / 491 MB, free: 3.641 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.137e-06/0.4778, allocations: 4 kB / 491 MB, free: 3.637 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000117/0.4779, allocations: 27.08 kB / 491 MB, free: 3.613 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.486e-05/0.4779, allocations: 8 kB / 491 MB, free: 3.605 MB / 346.7 MB Warning: Assuming fixed start value for the following 3 variables: timer.Q:DISCRETE(fixed = true ) "status of the timer" type: Boolean timer.run:DISCRETE(fixed = true ) "Flag: true while the timer is counting" type: Boolean timer.tr:DISCRETE(fixed = true ) "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: 22 ($PRE.timer.Sd,$PRE.timer.startTime,timer.startTime,$PRE.timer.Q,timer.Q,$PRE.timer.run,timer.run,$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,timer.Sd,SetSignal.combiTimeTable.nextTimeEvent,$PRE.SetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0001865/0.4781, allocations: 186.5 kB / 491.2 MB, free: 3.438 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.031e-05/0.4781, allocations: 27.67 kB / 491.2 MB, free: 3.41 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004074/0.4785, allocations: 246.9 kB / 491.5 MB, free: 3.227 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.4786, allocations: 4 kB / 491.5 MB, free: 3.223 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.351e-06/0.4786, allocations: 0 / 491.5 MB, free: 3.223 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.4786, allocations: 3.984 kB / 491.5 MB, free: 3.219 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000215/0.4788, allocations: 314.5 kB / 491.8 MB, free: 2.91 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.4788, allocations: 0 / 491.8 MB, free: 2.91 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.256e-05/0.4789, allocations: 12 kB / 491.8 MB, free: 2.898 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.4789, allocations: 0 / 491.8 MB, free: 2.898 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.812e-05/0.4789, allocations: 7.562 kB / 491.8 MB, free: 2.895 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.4789, allocations: 0 / 491.8 MB, free: 2.895 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.4789, allocations: 3.984 kB / 491.8 MB, free: 2.891 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003452/0.4793, allocations: 257 kB / 492.1 MB, free: 2.672 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.673e-05/0.4794, allocations: 125.1 kB / 492.2 MB, free: 2.539 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.344e-05/0.4794, allocations: 7.375 kB / 492.2 MB, free: 2.535 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.009e-05/0.4795, allocations: 11.98 kB / 492.2 MB, free: 2.523 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.054e-05/0.4796, allocations: 14.3 kB / 492.2 MB, free: 2.512 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.556e-05/0.4796, allocations: 10.61 kB / 492.2 MB, free: 2.504 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000244/0.4798, allocations: 281.6 kB / 492.5 MB, free: 2.293 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.4798, allocations: 3.938 kB / 492.5 MB, free: 2.289 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003301/0.4802, allocations: 71.19 kB / 492.6 MB, free: 2.227 MB / 346.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: 13 ($whenCondition3,$whenCondition2,$whenCondition1,timer.Q,timer.tr,timer.run,timer.startTime,timer.Sd,SetSignal.combiTimeTable.nextTimeEvent,SetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.y,ResetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 6 (timer.Sd,timer.startTime,SetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEvent,SetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0009136/0.4811, allocations: 460.4 kB / 493 MB, free: 1.816 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00032/0.4814, allocations: 160.5 kB / 493.2 MB, free: 1.699 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.4814, allocations: 0 / 493.2 MB, free: 1.699 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000167/0.4816, allocations: 89.17 kB / 493.3 MB, free: 1.637 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003501/0.482, allocations: 71.23 kB / 493.3 MB, free: 1.582 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007017/0.4827, allocations: 0.5151 MB / 493.8 MB, free: 1.094 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001966/0.4829, allocations: 0.7755 MB / 494.6 MB, free: 296 kB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001242/0.483, allocations: 50.5 kB / 494.7 MB, free: 244 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.155e-05/0.4831, allocations: 34.42 kB / 494.7 MB, free: 212 kB / 346.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4831, allocations: 3.938 kB / 494.7 MB, free: 208 kB / 346.7 MB Notification: Performance of Templates: time 0.007773/0.4909, allocations: 3.965 MB / 498.7 MB, free: 12.25 MB / 362.7 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.sim & ./IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe 2>&1)