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.00107/0.00107, allocations: 172.8 kB / 16.12 MB, free: 5.691 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05905/0.05905, allocations: 10.76 MB / 27.63 MB, free: 1.855 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.611/1.611, allocations: 205.4 MB / 236.2 MB, free: 10.17 MB / 202.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008702/0.0008701, allocations: 93.25 kB / 287 MB, free: 12.4 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 0.0003854/0.0003854, allocations: 12 kB / 347.6 MB, free: 15.63 MB / 298.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2369/0.2373, allocations: 49.99 MB / 397.6 MB, free: 34.61 MB / 298.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09877/0.3361, allocations: 81.45 MB / 479.1 MB, free: 1.043 MB / 346.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002668/0.3364, allocations: 83.95 kB / 479.2 MB, free: 0.9609 MB / 346.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.0253/0.3617, allocations: 9.228 MB / 488.4 MB, free: 7.723 MB / 362.8 MB Notification: Performance of FrontEnd: time 2.254e-06/0.3618, allocations: 0 / 488.4 MB, free: 7.723 MB / 362.8 MB Notification: Performance of Transformations before backend: time 4.432e-05/0.3618, allocations: 11.98 kB / 488.4 MB, free: 7.711 MB / 362.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.00104/0.3629, allocations: 0.623 MB / 489 MB, free: 7.023 MB / 362.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/0.3629, allocations: 12.03 kB / 489 MB, free: 7.012 MB / 362.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000107/0.363, allocations: 24.66 kB / 489.1 MB, free: 6.988 MB / 362.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000612/0.3637, allocations: 336.2 kB / 489.4 MB, free: 6.621 MB / 362.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.905e-05/0.3637, allocations: 12.55 kB / 489.4 MB, free: 6.609 MB / 362.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.009e-05/0.3637, allocations: 16.31 kB / 489.4 MB, free: 6.594 MB / 362.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003233/0.3641, allocations: 158.7 kB / 489.6 MB, free: 6.426 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.287e-06/0.3641, allocations: 4 kB / 489.6 MB, free: 6.422 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.884e-05/0.3641, allocations: 0 / 489.6 MB, free: 6.422 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.786e-06/0.3641, allocations: 4 kB / 489.6 MB, free: 6.418 MB / 362.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001763/0.3643, allocations: 71.95 kB / 489.6 MB, free: 6.348 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007966/0.3651, allocations: 496.3 kB / 490.1 MB, free: 5.812 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000324/0.3655, allocations: 151.6 kB / 490.3 MB, free: 5.656 MB / 362.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000136/0.3656, allocations: 56.83 kB / 490.3 MB, free: 5.598 MB / 362.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.418e-05/0.3656, allocations: 4 kB / 490.3 MB, free: 5.594 MB / 362.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002444/0.3659, allocations: 145.3 kB / 490.5 MB, free: 5.441 MB / 362.8 MB Notification: Performance of pre-optimization done (n=17): time 1.783e-06/0.3659, allocations: 0 / 490.5 MB, free: 5.441 MB / 362.8 MB Notification: Performance of matching and sorting (n=17): time 0.0005756/0.3665, allocations: 269.2 kB / 490.7 MB, free: 5.172 MB / 362.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.858e-05/0.3666, allocations: 114.8 kB / 490.9 MB, free: 5.035 MB / 362.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004717/0.367, allocations: 384.4 kB / 491.2 MB, free: 4.652 MB / 362.8 MB Notification: Performance of collectPreVariables (initialization): time 3.177e-05/0.3671, allocations: 33.7 kB / 491.3 MB, free: 4.613 MB / 362.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001177/0.3672, allocations: 152.5 kB / 491.4 MB, free: 4.457 MB / 362.8 MB Notification: Performance of collectInitialBindings (initialization): time 4.815e-05/0.3673, allocations: 43.45 kB / 491.5 MB, free: 4.414 MB / 362.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.997e-06/0.3673, allocations: 4 kB / 491.5 MB, free: 4.41 MB / 362.8 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.3674, allocations: 346.7 kB / 491.8 MB, free: 4.062 MB / 362.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001286/0.3676, allocations: 55.91 kB / 491.9 MB, free: 4.008 MB / 362.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001818/0.3677, allocations: 149.9 kB / 492 MB, free: 3.82 MB / 362.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00033/0.3681, allocations: 196.3 kB / 492.2 MB, free: 3.598 MB / 362.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.3681, allocations: 0 / 492.2 MB, free: 3.598 MB / 362.8 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004034/0.3685, allocations: 221.1 kB / 492.4 MB, free: 3.375 MB / 362.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.629e-05/0.3685, allocations: 4 kB / 492.4 MB, free: 3.371 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.3685, allocations: 8.25 kB / 492.4 MB, free: 3.363 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/0.3686, allocations: 4 kB / 492.4 MB, free: 3.359 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000133/0.3687, allocations: 31.92 kB / 492.5 MB, free: 3.328 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.258e-05/0.3687, allocations: 11.92 kB / 492.5 MB, free: 3.316 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001348/0.3689, allocations: 19.94 kB / 492.5 MB, free: 3.297 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.757e-05/0.3689, allocations: 8 kB / 492.5 MB, free: 3.289 MB / 362.8 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.0002365/0.3691, allocations: 188 kB / 492.7 MB, free: 3.098 MB / 362.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.327e-05/0.3692, allocations: 31.62 kB / 492.7 MB, free: 3.066 MB / 362.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004557/0.3697, allocations: 244.6 kB / 492.9 MB, free: 2.824 MB / 362.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.97e-06/0.3697, allocations: 3.984 kB / 493 MB, free: 2.82 MB / 362.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.3697, allocations: 0 / 493 MB, free: 2.82 MB / 362.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.848e-06/0.3697, allocations: 0 / 493 MB, free: 2.82 MB / 362.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002887/0.37, allocations: 313.3 kB / 493.3 MB, free: 2.465 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.37, allocations: 4 kB / 493.3 MB, free: 2.461 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.651e-05/0.3701, allocations: 8 kB / 493.3 MB, free: 2.453 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.3701, allocations: 4 kB / 493.3 MB, free: 2.449 MB / 362.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.973e-05/0.3701, allocations: 7.984 kB / 493.3 MB, free: 2.441 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.3701, allocations: 7.938 kB / 493.3 MB, free: 2.434 MB / 362.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.3701, allocations: 0 / 493.3 MB, free: 2.434 MB / 362.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004201/0.3705, allocations: 261.1 kB / 493.5 MB, free: 2.16 MB / 362.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001105/0.3707, allocations: 112.7 kB / 493.7 MB, free: 2.031 MB / 362.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.606e-05/0.3707, allocations: 12 kB / 493.7 MB, free: 2.02 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.901e-05/0.3708, allocations: 15.98 kB / 493.7 MB, free: 2.004 MB / 362.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.535e-05/0.3709, allocations: 7.984 kB / 493.7 MB, free: 1.996 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.054e-05/0.3709, allocations: 11.98 kB / 493.7 MB, free: 1.984 MB / 362.8 MB Notification: Performance of sorting global known variables: time 0.0003496/0.3713, allocations: 279 kB / 494 MB, free: 1.715 MB / 362.8 MB Notification: Performance of sort global known variables: time 2e-07/0.3713, allocations: 0 / 494 MB, free: 1.715 MB / 362.8 MB Notification: Performance of remove unused functions: time 0.000419/0.3717, allocations: 83.86 kB / 494.1 MB, free: 1.633 MB / 362.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) * 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.001023/0.3727, allocations: 463.4 kB / 494.5 MB, free: 1.199 MB / 362.8 MB Notification: Performance of simCode: created initialization part: time 0.0003867/0.3731, allocations: 159.8 kB / 494.7 MB, free: 1.043 MB / 362.8 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3731, allocations: 0 / 494.7 MB, free: 1.043 MB / 362.8 MB Notification: Performance of simCode: created simulation system equations: time 0.00017/0.3733, allocations: 83.89 kB / 494.7 MB, free: 0.9609 MB / 362.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004238/0.3737, allocations: 65.42 kB / 494.8 MB, free: 0.8945 MB / 362.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008427/0.3746, allocations: 0.5192 MB / 495.3 MB, free: 348 kB / 362.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003663/0.375, allocations: 0.768 MB / 496.1 MB, free: 15.54 MB / 378.8 MB Notification: Performance of simCode: alias equations: time 0.0001443/0.3751, allocations: 50.5 kB / 496.1 MB, free: 15.49 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.722e-05/0.3752, allocations: 31.42 kB / 496.2 MB, free: 15.46 MB / 378.8 MB Notification: Performance of SimCode: time 3.5e-07/0.3752, allocations: 0 / 496.2 MB, free: 15.46 MB / 378.8 MB Notification: Performance of Templates: time 0.008591/0.3838, allocations: 4.025 MB / 0.4885 GB, free: 11.44 MB / 378.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)