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.001063/0.001063, allocations: 176.2 kB / 7.643 MB, free: 1.414 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05996/0.05996, allocations: 10.66 MB / 18.73 MB, free: 1.316 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.546/1.546, allocations: 205.3 MB / 226.9 MB, free: 7.961 MB / 186.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008552/0.0008551, allocations: 98.41 kB / 277.3 MB, free: 5.488 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 1.53e-05/1.54e-05, allocations: 0 / 333.5 MB, free: 28.49 MB / 250.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07907/0.0791, allocations: 50 MB / 383.5 MB, free: 10.44 MB / 282.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3396/0.4187, allocations: 80.93 MB / 464.5 MB, free: 3.938 MB / 330.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002539/0.419, allocations: 88.66 kB / 464.6 MB, free: 3.891 MB / 330.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.02543/0.4445, allocations: 9.075 MB / 473.6 MB, free: 12.41 MB / 346.8 MB Notification: Performance of FrontEnd: time 1.322e-06/0.4445, allocations: 4 kB / 473.6 MB, free: 12.4 MB / 346.8 MB Notification: Performance of Transformations before backend: time 2.595e-05/0.4446, allocations: 11.56 kB / 473.6 MB, free: 12.39 MB / 346.8 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.0008356/0.4454, allocations: 0.5608 MB / 474.2 MB, free: 11.79 MB / 346.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.996e-05/0.4455, allocations: 12.03 kB / 474.2 MB, free: 11.77 MB / 346.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.726e-05/0.4456, allocations: 31.58 kB / 474.2 MB, free: 11.74 MB / 346.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005677/0.4461, allocations: 328.8 kB / 474.6 MB, free: 11.42 MB / 346.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.478e-05/0.4462, allocations: 11.98 kB / 474.6 MB, free: 11.41 MB / 346.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.997e-05/0.4462, allocations: 8 kB / 474.6 MB, free: 11.4 MB / 346.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001656/0.4464, allocations: 57.48 kB / 474.6 MB, free: 11.36 MB / 346.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002418/0.4466, allocations: 136.2 kB / 474.8 MB, free: 11.24 MB / 346.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.4467, allocations: 0 / 474.8 MB, free: 11.24 MB / 346.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.33e-05/0.4467, allocations: 4 kB / 474.8 MB, free: 11.24 MB / 346.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.4467, allocations: 3.953 kB / 474.8 MB, free: 11.23 MB / 346.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007116/0.4474, allocations: 466.6 kB / 475.2 MB, free: 10.82 MB / 346.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002342/0.4477, allocations: 128.7 kB / 475.4 MB, free: 10.72 MB / 346.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.293e-05/0.4478, allocations: 59.92 kB / 475.4 MB, free: 10.68 MB / 346.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.192e-05/0.4478, allocations: 0 / 475.4 MB, free: 10.68 MB / 346.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002117/0.448, allocations: 124 kB / 475.5 MB, free: 10.57 MB / 346.8 MB Notification: Performance of pre-optimization done (n=17): time 1.323e-06/0.448, allocations: 0 / 475.5 MB, free: 10.57 MB / 346.8 MB Notification: Performance of matching and sorting (n=17): time 0.0005149/0.4486, allocations: 210.4 kB / 475.7 MB, free: 10.39 MB / 346.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.137e-05/0.4486, allocations: 110.8 kB / 475.9 MB, free: 10.26 MB / 346.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003935/0.449, allocations: 332 kB / 476.2 MB, free: 9.996 MB / 346.8 MB Notification: Performance of collectPreVariables (initialization): time 2.47e-05/0.4491, allocations: 29.02 kB / 476.2 MB, free: 9.965 MB / 346.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001085/0.4492, allocations: 153.7 kB / 476.4 MB, free: 9.855 MB / 346.8 MB Notification: Performance of collectInitialBindings (initialization): time 4.28e-05/0.4492, allocations: 42.89 kB / 476.4 MB, free: 9.82 MB / 346.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.023e-06/0.4493, allocations: 0 / 476.4 MB, free: 9.82 MB / 346.8 MB Notification: Performance of setup shared object (initialization): time 0.0001225/0.4494, allocations: 343.4 kB / 476.7 MB, free: 9.488 MB / 346.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.619e-05/0.4495, allocations: 36.52 kB / 476.8 MB, free: 9.469 MB / 346.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001357/0.4496, allocations: 152.6 kB / 476.9 MB, free: 9.301 MB / 346.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001014/0.4497, allocations: 49.95 kB / 477 MB, free: 9.27 MB / 346.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.4497, allocations: 0 / 477 MB, free: 9.27 MB / 346.8 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002822/0.45, allocations: 203 kB / 477.2 MB, free: 9.102 MB / 346.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.809e-05/0.45, allocations: 12.2 kB / 477.2 MB, free: 9.09 MB / 346.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.4501, allocations: 4.047 kB / 477.2 MB, free: 9.086 MB / 346.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.983e-05/0.4501, allocations: 7.984 kB / 477.2 MB, free: 9.078 MB / 346.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001407/0.4502, allocations: 31.92 kB / 477.2 MB, free: 9.047 MB / 346.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.967e-06/0.4502, allocations: 4 kB / 477.2 MB, free: 9.043 MB / 346.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001263/0.4504, allocations: 19.83 kB / 477.2 MB, free: 9.023 MB / 346.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.758e-05/0.4504, allocations: 11.38 kB / 477.3 MB, free: 9.016 MB / 346.8 MB Warning: Assuming fixed start value for the following 3 variables: timer.Q:DISCRETE(fixed = false ) "status of the timer" type: Boolean timer.run:DISCRETE(fixed = false ) "Flag: true while the timer is counting" 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: 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 () * 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.0001686/0.4506, allocations: 123.2 kB / 477.4 MB, free: 8.887 MB / 346.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.348e-05/0.4506, allocations: 26.91 kB / 477.4 MB, free: 8.863 MB / 346.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004258/0.4511, allocations: 234.6 kB / 477.6 MB, free: 8.68 MB / 346.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.4511, allocations: 4 kB / 477.6 MB, free: 8.676 MB / 346.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.4511, allocations: 0 / 477.6 MB, free: 8.676 MB / 346.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.4511, allocations: 0 / 477.6 MB, free: 8.676 MB / 346.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002667/0.4514, allocations: 277.7 kB / 477.9 MB, free: 8.41 MB / 346.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.4514, allocations: 4 kB / 477.9 MB, free: 8.406 MB / 346.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.737e-05/0.4514, allocations: 12 kB / 477.9 MB, free: 8.395 MB / 346.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.4514, allocations: 0 / 477.9 MB, free: 8.395 MB / 346.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.27e-05/0.4515, allocations: 7.984 kB / 477.9 MB, free: 8.387 MB / 346.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.4515, allocations: 3.938 kB / 477.9 MB, free: 8.383 MB / 346.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.4515, allocations: 3.984 kB / 477.9 MB, free: 8.379 MB / 346.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000383/0.4519, allocations: 253.4 kB / 478.2 MB, free: 8.156 MB / 346.8 MB Notification: Performance of postOpt removeConstants (simulation): time 9.597e-05/0.452, allocations: 115.9 kB / 478.3 MB, free: 8.031 MB / 346.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.259e-05/0.452, allocations: 11.19 kB / 478.3 MB, free: 8.023 MB / 346.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001012/0.4522, allocations: 19.88 kB / 478.3 MB, free: 8.004 MB / 346.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.65e-05/0.4522, allocations: 14.98 kB / 478.3 MB, free: 7.992 MB / 346.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.677e-05/0.4522, allocations: 7.984 kB / 478.4 MB, free: 7.984 MB / 346.8 MB Notification: Performance of sorting global known variables: time 0.0002832/0.4525, allocations: 256.8 kB / 478.6 MB, free: 7.793 MB / 346.8 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4525, allocations: 4 kB / 478.6 MB, free: 7.789 MB / 346.8 MB Notification: Performance of remove unused functions: time 0.0003563/0.4529, allocations: 71.16 kB / 478.7 MB, free: 7.723 MB / 346.8 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) * 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.0009064/0.4538, allocations: 387.1 kB / 479.1 MB, free: 7.348 MB / 346.8 MB Notification: Performance of simCode: created initialization part: time 0.0003054/0.4541, allocations: 138.4 kB / 479.2 MB, free: 7.25 MB / 346.8 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.4541, allocations: 0 / 479.2 MB, free: 7.25 MB / 346.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001148/0.4543, allocations: 76.48 kB / 479.3 MB, free: 7.199 MB / 346.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000412/0.4547, allocations: 59.89 kB / 479.3 MB, free: 7.152 MB / 346.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006505/0.4553, allocations: 370.3 kB / 479.7 MB, free: 6.824 MB / 346.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003166/0.4557, allocations: 0.7715 MB / 480.5 MB, free: 6.035 MB / 346.8 MB Notification: Performance of simCode: alias equations: time 0.0001397/0.4558, allocations: 46.05 kB / 480.5 MB, free: 5.992 MB / 346.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.784e-05/0.4559, allocations: 23.44 kB / 480.5 MB, free: 5.969 MB / 346.8 MB Notification: Performance of SimCode: time 2.284e-06/0.4559, allocations: 4 kB / 480.5 MB, free: 5.965 MB / 346.8 MB Notification: Performance of Templates: time 0.008329/0.4642, allocations: 3.715 MB / 484.2 MB, free: 2.262 MB / 346.8 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)