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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001478/0.001478, allocations: 174.7 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.08167/0.08167, allocations: 10.65 MB / 23.91 MB, free: 1.379 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.616/1.616, allocations: 205.2 MB / 232.1 MB, free: 12.76 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.0008889/0.0008891, allocations: 89.14 kB / 282.6 MB, free: 13.57 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 4.11e-05/4.112e-05, allocations: 4 kB / 340.5 MB, free: 3.598 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.315/0.3151, allocations: 49.98 MB / 390.5 MB, free: 35.73 MB / 298.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1154/0.4305, allocations: 81.3 MB / 471.8 MB, free: 2.316 MB / 346.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002707/0.4308, allocations: 83.94 kB / 471.8 MB, free: 2.234 MB / 346.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.0267/0.4576, allocations: 9.322 MB / 481.2 MB, free: 8.906 MB / 362.8 MB Notification: Performance of FrontEnd: time 2.365e-06/0.4576, allocations: 4 kB / 481.2 MB, free: 8.902 MB / 362.8 MB Notification: Performance of Transformations before backend: time 3.428e-05/0.4577, allocations: 11.94 kB / 481.2 MB, free: 8.891 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.0009829/0.4587, allocations: 0.5721 MB / 481.8 MB, free: 8.258 MB / 362.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.732e-05/0.4587, allocations: 11.97 kB / 481.8 MB, free: 8.246 MB / 362.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.518e-05/0.4588, allocations: 35.58 kB / 481.8 MB, free: 8.211 MB / 362.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006412/0.4595, allocations: 352 kB / 482.1 MB, free: 7.824 MB / 362.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.33e-05/0.4595, allocations: 8.188 kB / 482.2 MB, free: 7.816 MB / 362.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.735e-05/0.4596, allocations: 8 kB / 482.2 MB, free: 7.809 MB / 362.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003219/0.4599, allocations: 159.9 kB / 482.3 MB, free: 7.641 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.4599, allocations: 0 / 482.3 MB, free: 7.641 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.115e-05/0.46, allocations: 0 / 482.3 MB, free: 7.641 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.063e-06/0.46, allocations: 4 kB / 482.3 MB, free: 7.637 MB / 362.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001495/0.4601, allocations: 68.36 kB / 482.4 MB, free: 7.57 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008276/0.461, allocations: 0.5124 MB / 482.9 MB, free: 7.008 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003499/0.4613, allocations: 146.8 kB / 483 MB, free: 6.855 MB / 362.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001041/0.4615, allocations: 56.86 kB / 483.1 MB, free: 6.797 MB / 362.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.052e-05/0.4615, allocations: 3.953 kB / 483.1 MB, free: 6.793 MB / 362.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002237/0.4617, allocations: 128.6 kB / 483.2 MB, free: 6.656 MB / 362.8 MB Notification: Performance of pre-optimization done (n=18): time 1.573e-06/0.4617, allocations: 4 kB / 483.2 MB, free: 6.652 MB / 362.8 MB Notification: Performance of matching and sorting (n=18): time 0.0004448/0.4622, allocations: 233.9 kB / 483.5 MB, free: 6.418 MB / 362.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.964e-05/0.4623, allocations: 114.7 kB / 483.6 MB, free: 6.281 MB / 362.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000505/0.4628, allocations: 399.5 kB / 484 MB, free: 5.891 MB / 362.8 MB Notification: Performance of collectPreVariables (initialization): time 3.5e-05/0.4628, allocations: 33.7 kB / 484 MB, free: 5.852 MB / 362.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001514/0.463, allocations: 160.5 kB / 484.2 MB, free: 5.688 MB / 362.8 MB Notification: Performance of collectInitialBindings (initialization): time 5.749e-05/0.4631, allocations: 51.48 kB / 484.2 MB, free: 5.637 MB / 362.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.015e-05/0.4631, allocations: 4 kB / 484.2 MB, free: 5.633 MB / 362.8 MB Notification: Performance of setup shared object (initialization): time 0.0001894/0.4633, allocations: 346.8 kB / 484.5 MB, free: 5.285 MB / 362.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.128e-05/0.4634, allocations: 44.23 kB / 484.6 MB, free: 5.238 MB / 362.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001973/0.4636, allocations: 145.4 kB / 484.7 MB, free: 5.055 MB / 362.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001217/0.4637, allocations: 63.91 kB / 484.8 MB, free: 4.992 MB / 362.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.4637, allocations: 4 kB / 484.8 MB, free: 4.988 MB / 362.8 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003398/0.4641, allocations: 225.1 kB / 485 MB, free: 4.762 MB / 362.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.357e-05/0.4641, allocations: 12.58 kB / 485 MB, free: 4.75 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.4641, allocations: 0 / 485 MB, free: 4.75 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.4641, allocations: 4 kB / 485 MB, free: 4.746 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001187/0.4643, allocations: 31.92 kB / 485.1 MB, free: 4.715 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.366e-05/0.4643, allocations: 7.938 kB / 485.1 MB, free: 4.707 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001308/0.4644, allocations: 32.08 kB / 485.1 MB, free: 4.676 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.826e-05/0.4644, allocations: 15.94 kB / 485.1 MB, free: 4.66 MB / 362.8 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.0001631/0.4646, allocations: 128.4 kB / 485.2 MB, free: 4.531 MB / 362.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.402e-05/0.4647, allocations: 35.56 kB / 485.3 MB, free: 4.496 MB / 362.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004309/0.4651, allocations: 248.6 kB / 485.5 MB, free: 4.242 MB / 362.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.4651, allocations: 4 kB / 485.5 MB, free: 4.238 MB / 362.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.503e-06/0.4651, allocations: 3.953 kB / 485.5 MB, free: 4.234 MB / 362.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.4651, allocations: 4 kB / 485.5 MB, free: 4.23 MB / 362.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002967/0.4654, allocations: 321.3 kB / 485.9 MB, free: 3.867 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-06/0.4655, allocations: 0 / 485.9 MB, free: 3.867 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.584e-05/0.4655, allocations: 12 kB / 485.9 MB, free: 3.855 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.4655, allocations: 0 / 485.9 MB, free: 3.855 MB / 362.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.892e-05/0.4655, allocations: 8 kB / 485.9 MB, free: 3.848 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-05/0.4656, allocations: 7.922 kB / 485.9 MB, free: 3.84 MB / 362.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.4656, allocations: 3.953 kB / 485.9 MB, free: 3.836 MB / 362.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003887/0.466, allocations: 266.7 kB / 486.1 MB, free: 3.559 MB / 362.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001194/0.4661, allocations: 128.6 kB / 486.3 MB, free: 3.414 MB / 362.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.233e-05/0.4662, allocations: 12.06 kB / 486.3 MB, free: 3.402 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000126/0.4663, allocations: 7.984 kB / 486.3 MB, free: 3.395 MB / 362.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.356e-05/0.4664, allocations: 15.98 kB / 486.3 MB, free: 3.379 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.682e-05/0.4664, allocations: 7.984 kB / 486.3 MB, free: 3.371 MB / 362.8 MB Notification: Performance of sorting global known variables: time 0.0003519/0.4667, allocations: 322.1 kB / 486.6 MB, free: 3.055 MB / 362.8 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4667, allocations: 4 kB / 486.6 MB, free: 3.051 MB / 362.8 MB Notification: Performance of remove unused functions: time 0.000369/0.4671, allocations: 80.05 kB / 486.7 MB, free: 2.973 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: 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.0009657/0.4681, allocations: 420.8 kB / 487.1 MB, free: 2.629 MB / 362.8 MB Notification: Performance of simCode: created initialization part: time 0.0003078/0.4684, allocations: 159.8 kB / 487.3 MB, free: 2.473 MB / 362.8 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.4684, allocations: 0.5 kB / 487.3 MB, free: 2.473 MB / 362.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001454/0.4686, allocations: 91 kB / 487.4 MB, free: 2.387 MB / 362.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003851/0.469, allocations: 68.02 kB / 487.4 MB, free: 2.32 MB / 362.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007362/0.4697, allocations: 403.2 kB / 487.8 MB, free: 1.902 MB / 362.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004243/0.4702, allocations: 0.7872 MB / 488.6 MB, free: 1.086 MB / 362.8 MB Notification: Performance of simCode: alias equations: time 0.0001564/0.4703, allocations: 50.94 kB / 488.7 MB, free: 1.035 MB / 362.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.103e-05/0.4704, allocations: 35.42 kB / 488.7 MB, free: 1.004 MB / 362.8 MB Notification: Performance of SimCode: time 4.21e-07/0.4704, allocations: 3.938 kB / 488.7 MB, free: 1 MB / 362.8 MB Notification: Performance of Templates: time 0.008779/0.4792, allocations: 4.238 MB / 492.9 MB, free: 12.77 MB / 378.8 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)