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.001034/0.001034, allocations: 174.6 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.05657/0.05657, allocations: 10.66 MB / 23.92 MB, free: 1.609 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.709/1.709, allocations: 205.2 MB / 232.1 MB, free: 12.75 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.0008897/0.0008896, allocations: 94.39 kB / 282.6 MB, free: 13.56 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 2.944e-05/2.944e-05, allocations: 0 / 340.5 MB, free: 3.598 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3138/0.3138, allocations: 49.99 MB / 390.5 MB, free: 35.72 MB / 298.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1178/0.4317, allocations: 81.3 MB / 471.8 MB, free: 2.301 MB / 346.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002457/0.432, allocations: 87.94 kB / 471.9 MB, free: 2.215 MB / 346.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.02627/0.4583, allocations: 9.143 MB / 481 MB, free: 9.066 MB / 362.8 MB Notification: Performance of FrontEnd: time 1.823e-06/0.4584, allocations: 0 / 481 MB, free: 9.066 MB / 362.8 MB Notification: Performance of Transformations before backend: time 3.009e-05/0.4584, allocations: 12 kB / 481 MB, free: 9.055 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.0009084/0.4593, allocations: 0.5719 MB / 481.6 MB, free: 8.422 MB / 362.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.081e-05/0.4594, allocations: 12.03 kB / 481.6 MB, free: 8.41 MB / 362.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.731e-05/0.4595, allocations: 31.58 kB / 481.6 MB, free: 8.379 MB / 362.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000605/0.4601, allocations: 328.1 kB / 482 MB, free: 8.02 MB / 362.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.014e-05/0.4602, allocations: 8.172 kB / 482 MB, free: 8.012 MB / 362.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.821e-05/0.4602, allocations: 16 kB / 482 MB, free: 7.996 MB / 362.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003024/0.4605, allocations: 152 kB / 482.1 MB, free: 7.836 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.4605, allocations: 0 / 482.1 MB, free: 7.836 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.406e-05/0.4606, allocations: 4 kB / 482.1 MB, free: 7.832 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.077e-06/0.4606, allocations: 4 kB / 482.1 MB, free: 7.828 MB / 362.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001656/0.4607, allocations: 68.25 kB / 482.2 MB, free: 7.762 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008519/0.4616, allocations: 0.493 MB / 482.7 MB, free: 7.219 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002664/0.4619, allocations: 134.7 kB / 482.8 MB, free: 7.078 MB / 362.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000113/0.462, allocations: 56.84 kB / 482.9 MB, free: 7.02 MB / 362.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.977e-05/0.462, allocations: 4 kB / 482.9 MB, free: 7.016 MB / 362.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002288/0.4623, allocations: 127.3 kB / 483 MB, free: 6.879 MB / 362.8 MB Notification: Performance of pre-optimization done (n=17): time 1.533e-06/0.4623, allocations: 0 / 483 MB, free: 6.879 MB / 362.8 MB Notification: Performance of matching and sorting (n=17): time 0.0004314/0.4627, allocations: 211 kB / 483.2 MB, free: 6.668 MB / 362.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.14e-05/0.4628, allocations: 106.8 kB / 483.3 MB, free: 6.539 MB / 362.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000453/0.4633, allocations: 350.9 kB / 483.7 MB, free: 6.188 MB / 362.8 MB Notification: Performance of collectPreVariables (initialization): time 2.643e-05/0.4633, allocations: 33.7 kB / 483.7 MB, free: 6.148 MB / 362.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001306/0.4635, allocations: 156.4 kB / 483.8 MB, free: 5.988 MB / 362.8 MB Notification: Performance of collectInitialBindings (initialization): time 5.718e-05/0.4635, allocations: 47.44 kB / 483.9 MB, free: 5.941 MB / 362.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.866e-06/0.4635, allocations: 4 kB / 483.9 MB, free: 5.938 MB / 362.8 MB Notification: Performance of setup shared object (initialization): time 0.000193/0.4637, allocations: 342.8 kB / 484.2 MB, free: 5.594 MB / 362.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.936e-05/0.4638, allocations: 43.98 kB / 484.3 MB, free: 5.551 MB / 362.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001868/0.464, allocations: 150.9 kB / 484.4 MB, free: 5.363 MB / 362.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001223/0.4642, allocations: 55.97 kB / 484.5 MB, free: 5.309 MB / 362.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.4642, allocations: 0 / 484.5 MB, free: 5.309 MB / 362.8 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003581/0.4645, allocations: 221 kB / 484.7 MB, free: 5.086 MB / 362.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.782e-05/0.4646, allocations: 9.484 kB / 484.7 MB, free: 5.078 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.128e-05/0.4646, allocations: 8 kB / 484.7 MB, free: 5.07 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.061e-05/0.4646, allocations: 4 kB / 484.7 MB, free: 5.066 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001551/0.4648, allocations: 35.92 kB / 484.7 MB, free: 5.031 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.106e-05/0.4648, allocations: 0 / 484.7 MB, free: 5.031 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001241/0.4649, allocations: 23.97 kB / 484.8 MB, free: 5.008 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.064e-05/0.465, allocations: 15.98 kB / 484.8 MB, free: 4.992 MB / 362.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.0001822/0.4651, allocations: 131.2 kB / 484.9 MB, free: 4.855 MB / 362.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.367e-05/0.4652, allocations: 31.61 kB / 484.9 MB, free: 4.824 MB / 362.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000424/0.4656, allocations: 228.4 kB / 485.2 MB, free: 4.598 MB / 362.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.063e-06/0.4656, allocations: 4 kB / 485.2 MB, free: 4.594 MB / 362.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.4657, allocations: 3.938 kB / 485.2 MB, free: 4.59 MB / 362.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.206e-05/0.4657, allocations: 7.984 kB / 485.2 MB, free: 4.582 MB / 362.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003391/0.466, allocations: 305.4 kB / 485.5 MB, free: 4.234 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.466, allocations: 8 kB / 485.5 MB, free: 4.227 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.931e-05/0.4661, allocations: 15.98 kB / 485.5 MB, free: 4.211 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.325e-06/0.4661, allocations: 0 / 485.5 MB, free: 4.211 MB / 362.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.75e-05/0.4661, allocations: 4 kB / 485.5 MB, free: 4.207 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.4661, allocations: 0 / 485.5 MB, free: 4.207 MB / 362.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.4661, allocations: 0 / 485.5 MB, free: 4.207 MB / 362.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003657/0.4665, allocations: 250.5 kB / 485.8 MB, free: 3.945 MB / 362.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001402/0.4667, allocations: 124.7 kB / 485.9 MB, free: 3.805 MB / 362.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.645e-05/0.4667, allocations: 7.938 kB / 485.9 MB, free: 3.797 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.666e-05/0.4668, allocations: 15.98 kB / 485.9 MB, free: 3.781 MB / 362.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.279e-05/0.4669, allocations: 15.98 kB / 485.9 MB, free: 3.766 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.795e-05/0.4669, allocations: 7.984 kB / 485.9 MB, free: 3.758 MB / 362.8 MB Notification: Performance of sorting global known variables: time 0.0003508/0.4673, allocations: 282.1 kB / 486.2 MB, free: 3.48 MB / 362.8 MB Notification: Performance of sort global known variables: time 4.01e-07/0.4673, allocations: 0 / 486.2 MB, free: 3.48 MB / 362.8 MB Notification: Performance of remove unused functions: time 0.0003981/0.4677, allocations: 72.19 kB / 486.3 MB, free: 3.41 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) * 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.001087/0.4688, allocations: 431.7 kB / 486.7 MB, free: 3.059 MB / 362.8 MB Notification: Performance of simCode: created initialization part: time 0.0003178/0.4691, allocations: 147.8 kB / 486.8 MB, free: 2.914 MB / 362.8 MB Notification: Performance of simCode: created event and clocks part: time 4.479e-06/0.4691, allocations: 0 / 486.8 MB, free: 2.914 MB / 362.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001289/0.4693, allocations: 71.92 kB / 486.9 MB, free: 2.844 MB / 362.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003969/0.4697, allocations: 75.52 kB / 487 MB, free: 2.77 MB / 362.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007389/0.4704, allocations: 371.2 kB / 487.3 MB, free: 2.383 MB / 362.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000469/0.4709, allocations: 0.7679 MB / 488.1 MB, free: 1.582 MB / 362.8 MB Notification: Performance of simCode: alias equations: time 0.0001473/0.4711, allocations: 50.03 kB / 488.2 MB, free: 1.531 MB / 362.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.237e-05/0.4711, allocations: 31.42 kB / 488.2 MB, free: 1.504 MB / 362.8 MB Notification: Performance of SimCode: time 2.5e-07/0.4711, allocations: 4 kB / 488.2 MB, free: 1.5 MB / 362.8 MB Notification: Performance of Templates: time 0.00955/0.4807, allocations: 3.991 MB / 492.2 MB, free: 13.52 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)