Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.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_Fedge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge") translateModel(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.006753/0.006753, allocations: 169.5 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.07553/0.07553, allocations: 10.74 MB / 26.59 MB, free: 2.266 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.523/1.523, allocations: 205.4 MB / 235.2 MB, free: 196 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: 82.17 kB / 285.9 MB, free: 10.73 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003562/0.0003562, allocations: 8 kB / 346.4 MB, free: 5.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1177/0.1181, allocations: 49.99 MB / 396.4 MB, free: 3.094 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.312/0.4301, allocations: 81.38 MB / 477.8 MB, free: 14.88 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002588/0.4304, allocations: 87.31 kB / 477.9 MB, free: 14.84 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02162/0.4521, allocations: 9.314 MB / 487.2 MB, free: 7.203 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.175e-06/0.4521, allocations: 0 / 487.2 MB, free: 7.203 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.567e-05/0.4521, allocations: 12.12 kB / 487.2 MB, free: 7.191 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.0009311/0.4531, allocations: 0.6391 MB / 487.8 MB, free: 6.512 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.661e-05/0.4531, allocations: 8.031 kB / 487.8 MB, free: 6.504 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.459e-05/0.4532, allocations: 31.62 kB / 487.9 MB, free: 6.473 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005773/0.4538, allocations: 335 kB / 488.2 MB, free: 6.145 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.5e-05/0.4538, allocations: 11.94 kB / 488.2 MB, free: 6.137 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.051e-05/0.4539, allocations: 11.19 kB / 488.2 MB, free: 6.129 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002997/0.4542, allocations: 157.8 kB / 488.4 MB, free: 5.996 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.204e-05/0.4542, allocations: 0 / 488.4 MB, free: 5.996 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.192e-05/0.4542, allocations: 7.984 kB / 488.4 MB, free: 5.988 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.192e-06/0.4543, allocations: 0 / 488.4 MB, free: 5.988 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001679/0.4544, allocations: 73.02 kB / 488.4 MB, free: 5.941 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008035/0.4552, allocations: 0.5089 MB / 489 MB, free: 5.469 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004091/0.4557, allocations: 155.2 kB / 489.1 MB, free: 5.344 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.911e-05/0.4557, allocations: 3.938 kB / 489.1 MB, free: 5.34 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000255/0.456, allocations: 141.2 kB / 489.3 MB, free: 5.219 MB / 346.7 MB Notification: Performance of pre-optimization done (n=18): time 1.543e-06/0.456, allocations: 0 / 489.3 MB, free: 5.219 MB / 346.7 MB Notification: Performance of matching and sorting (n=18): time 0.0005986/0.4566, allocations: 373.2 kB / 489.6 MB, free: 4.898 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.409e-05/0.4566, allocations: 106.8 kB / 489.7 MB, free: 4.77 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004051/0.4571, allocations: 388 kB / 490.1 MB, free: 4.465 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.402e-05/0.4571, allocations: 32.14 kB / 490.1 MB, free: 4.43 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001124/0.4572, allocations: 164.5 kB / 490.3 MB, free: 4.316 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.618e-05/0.4573, allocations: 50.36 kB / 490.3 MB, free: 4.273 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.387e-06/0.4573, allocations: 3.75 kB / 490.3 MB, free: 4.273 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001048/0.4574, allocations: 348.9 kB / 490.7 MB, free: 3.938 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001064/0.4575, allocations: 52.2 kB / 490.7 MB, free: 3.898 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001536/0.4577, allocations: 143.4 kB / 490.9 MB, free: 3.742 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000139/0.4578, allocations: 72.39 kB / 490.9 MB, free: 3.699 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.4578, allocations: 0 / 490.9 MB, free: 3.699 MB / 346.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003416/0.4582, allocations: 235.1 kB / 491.2 MB, free: 3.512 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.583e-05/0.4582, allocations: 11.95 kB / 491.2 MB, free: 3.5 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.4582, allocations: 0 / 491.2 MB, free: 3.5 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.197e-05/0.4583, allocations: 4 kB / 491.2 MB, free: 3.496 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001126/0.4584, allocations: 31.92 kB / 491.2 MB, free: 3.465 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.389e-05/0.4584, allocations: 4 kB / 491.2 MB, free: 3.461 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001282/0.4585, allocations: 27.52 kB / 491.3 MB, free: 3.438 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.651e-05/0.4586, allocations: 15.5 kB / 491.3 MB, free: 3.426 MB / 346.7 MB Warning: Assuming fixed start value for the following 3 variables: timer.Sd:DISCRETE(fixed = true ) type: Boolean timer.Q:DISCRETE(fixed = true ) "status of the timer" 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: 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 () * Number of clocked 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.000282/0.4588, allocations: 171.5 kB / 491.4 MB, free: 3.273 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.644e-05/0.4589, allocations: 35.59 kB / 491.5 MB, free: 3.238 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000466/0.4594, allocations: 266.1 kB / 491.7 MB, free: 3.039 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.4594, allocations: 0 / 491.7 MB, free: 3.039 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.376e-06/0.4594, allocations: 12.08 kB / 491.7 MB, free: 3.027 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.4594, allocations: 0 / 491.7 MB, free: 3.027 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002675/0.4597, allocations: 322.2 kB / 492.1 MB, free: 2.715 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.4597, allocations: 0 / 492.1 MB, free: 2.715 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.227e-05/0.4597, allocations: 8 kB / 492.1 MB, free: 2.707 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.536e-06/0.4597, allocations: 4 kB / 492.1 MB, free: 2.703 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.772e-05/0.4598, allocations: 7.609 kB / 492.1 MB, free: 2.699 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.4598, allocations: 4 kB / 492.1 MB, free: 2.695 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.4598, allocations: 0 / 492.1 MB, free: 2.695 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003653/0.4602, allocations: 277.2 kB / 492.4 MB, free: 2.461 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001044/0.4603, allocations: 123.8 kB / 492.5 MB, free: 2.328 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.809e-05/0.4603, allocations: 9.25 kB / 492.5 MB, free: 2.324 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.385e-05/0.4604, allocations: 15.92 kB / 492.5 MB, free: 2.309 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.27e-05/0.4605, allocations: 11.23 kB / 492.5 MB, free: 2.301 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.653e-05/0.4605, allocations: 15.98 kB / 492.5 MB, free: 2.285 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002751/0.4608, allocations: 301.7 kB / 492.8 MB, free: 2.059 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4608, allocations: 0 / 492.8 MB, free: 2.059 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003713/0.4612, allocations: 92.05 kB / 492.9 MB, free: 1.977 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: 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) * Number of clocked states: 0 () * 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.001003/0.4622, allocations: 451.7 kB / 493.3 MB, free: 1.578 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003768/0.4626, allocations: 170.5 kB / 493.5 MB, free: 1.453 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.555e-05/0.4626, allocations: 0 / 493.5 MB, free: 1.453 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001479/0.4628, allocations: 84.66 kB / 493.6 MB, free: 1.395 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000377/0.4631, allocations: 71.64 kB / 493.7 MB, free: 1.336 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008011/0.464, allocations: 0.5618 MB / 494.2 MB, free: 0.8164 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001901/0.4642, allocations: 0.7785 MB / 495 MB, free: 16 kB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001644/0.4643, allocations: 50.23 kB / 495.1 MB, free: 15.96 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.376e-05/0.4644, allocations: 30.88 kB / 495.1 MB, free: 15.94 MB / 362.7 MB Notification: Performance of SimCode: time 2.51e-07/0.4644, allocations: 0 / 495.1 MB, free: 15.94 MB / 362.7 MB Notification: Performance of Templates: time 0.008076/0.4725, allocations: 4.156 MB / 499.2 MB, free: 11.79 MB / 362.7 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.sim & ./IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe 2>&1)