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.001618/0.001618, allocations: 172.1 kB / 16.12 MB, free: 5.668 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06493/0.06493, 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.683/1.683, allocations: 205.4 MB / 236.2 MB, free: 10.18 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.0007932/0.0007932, allocations: 97.67 kB / 287 MB, free: 12.39 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 0.0005031/0.0005034, allocations: 12 kB / 347.6 MB, free: 15.61 MB / 298.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2803/0.2809, allocations: 49.99 MB / 397.6 MB, free: 34.61 MB / 298.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1219/0.4028, allocations: 81.43 MB / 479.1 MB, free: 1.062 MB / 346.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003268/0.4032, allocations: 87.94 kB / 479.1 MB, free: 0.9766 MB / 346.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.02803/0.4312, allocations: 9.363 MB / 488.5 MB, free: 7.605 MB / 362.8 MB Notification: Performance of FrontEnd: time 2.264e-06/0.4313, allocations: 0 / 488.5 MB, free: 7.605 MB / 362.8 MB Notification: Performance of Transformations before backend: time 4.955e-05/0.4314, allocations: 8 kB / 488.5 MB, free: 7.598 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.001343/0.4327, allocations: 0.6348 MB / 489.2 MB, free: 6.898 MB / 362.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.698e-05/0.4328, allocations: 8.031 kB / 489.2 MB, free: 6.891 MB / 362.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001643/0.4329, allocations: 32.56 kB / 489.2 MB, free: 6.859 MB / 362.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007427/0.4337, allocations: 352.1 kB / 489.5 MB, free: 6.477 MB / 362.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.98e-05/0.4337, allocations: 12.56 kB / 489.5 MB, free: 6.465 MB / 362.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.882e-05/0.4338, allocations: 12.38 kB / 489.6 MB, free: 6.453 MB / 362.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003603/0.4342, allocations: 158.7 kB / 489.7 MB, free: 6.285 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.4342, allocations: 0 / 489.7 MB, free: 6.285 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.67e-05/0.4342, allocations: 7.984 kB / 489.7 MB, free: 6.277 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.131e-06/0.4342, allocations: 3.938 kB / 489.7 MB, free: 6.273 MB / 362.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002008/0.4344, allocations: 79.81 kB / 489.8 MB, free: 6.195 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009775/0.4354, allocations: 0.5003 MB / 490.3 MB, free: 5.645 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000462/0.4359, allocations: 158.6 kB / 490.5 MB, free: 5.48 MB / 362.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001383/0.4361, allocations: 60.92 kB / 490.5 MB, free: 5.418 MB / 362.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.086e-05/0.4361, allocations: 4 kB / 490.5 MB, free: 5.414 MB / 362.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002798/0.4364, allocations: 139.2 kB / 490.7 MB, free: 5.266 MB / 362.8 MB Notification: Performance of pre-optimization done (n=18): time 2.024e-06/0.4364, allocations: 4 kB / 490.7 MB, free: 5.262 MB / 362.8 MB Notification: Performance of matching and sorting (n=18): time 0.0007/0.4371, allocations: 291.3 kB / 490.9 MB, free: 4.973 MB / 362.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.872e-05/0.4372, allocations: 110.8 kB / 491.1 MB, free: 4.84 MB / 362.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006107/0.4378, allocations: 420.4 kB / 491.5 MB, free: 4.422 MB / 362.8 MB Notification: Performance of collectPreVariables (initialization): time 3.95e-05/0.4379, allocations: 33.7 kB / 491.5 MB, free: 4.383 MB / 362.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001467/0.438, allocations: 160.5 kB / 491.7 MB, free: 4.219 MB / 362.8 MB Notification: Performance of collectInitialBindings (initialization): time 5.974e-05/0.4381, allocations: 51.38 kB / 491.7 MB, free: 4.168 MB / 362.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.476e-06/0.4381, allocations: 7.938 kB / 491.7 MB, free: 4.16 MB / 362.8 MB Notification: Performance of setup shared object (initialization): time 0.0001764/0.4383, allocations: 342.8 kB / 492.1 MB, free: 3.816 MB / 362.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001332/0.4385, allocations: 52.2 kB / 492.1 MB, free: 3.762 MB / 362.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002018/0.4387, allocations: 149 kB / 492.2 MB, free: 3.574 MB / 362.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003719/0.4391, allocations: 200.3 kB / 492.4 MB, free: 3.348 MB / 362.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.212e-06/0.4391, allocations: 3.938 kB / 492.4 MB, free: 3.344 MB / 362.8 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004908/0.4396, allocations: 233 kB / 492.7 MB, free: 3.109 MB / 362.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.197e-05/0.4396, allocations: 7.984 kB / 492.7 MB, free: 3.102 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.173e-05/0.4396, allocations: 8.25 kB / 492.7 MB, free: 3.094 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.903e-05/0.4396, allocations: 4 kB / 492.7 MB, free: 3.09 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001287/0.4398, allocations: 27.92 kB / 492.7 MB, free: 3.062 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.241e-05/0.4398, allocations: 4 kB / 492.7 MB, free: 3.059 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001763/0.44, allocations: 23.84 kB / 492.7 MB, free: 3.035 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.092e-05/0.44, allocations: 11.98 kB / 492.8 MB, free: 3.023 MB / 362.8 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.0003001/0.4403, allocations: 189.1 kB / 492.9 MB, free: 2.832 MB / 362.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.903e-05/0.4404, allocations: 35.61 kB / 493 MB, free: 2.797 MB / 362.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005324/0.4409, allocations: 248.9 kB / 493.2 MB, free: 2.551 MB / 362.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.017e-06/0.441, allocations: 7.984 kB / 493.2 MB, free: 2.543 MB / 362.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.441, allocations: 0 / 493.2 MB, free: 2.543 MB / 362.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.441, allocations: 0 / 493.2 MB, free: 2.543 MB / 362.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003747/0.4414, allocations: 325.2 kB / 493.5 MB, free: 2.176 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.367e-06/0.4414, allocations: 7.938 kB / 493.6 MB, free: 2.168 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.763e-05/0.4414, allocations: 12 kB / 493.6 MB, free: 2.156 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.4414, allocations: 0 / 493.6 MB, free: 2.156 MB / 362.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.021e-05/0.4415, allocations: 7.984 kB / 493.6 MB, free: 2.148 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.4415, allocations: 0 / 493.6 MB, free: 2.148 MB / 362.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.4415, allocations: 0 / 493.6 MB, free: 2.148 MB / 362.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004912/0.442, allocations: 281.2 kB / 493.8 MB, free: 1.855 MB / 362.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001393/0.4421, allocations: 124.7 kB / 494 MB, free: 1.715 MB / 362.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.101e-05/0.4422, allocations: 8 kB / 494 MB, free: 1.707 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000107/0.4423, allocations: 11.98 kB / 494 MB, free: 1.695 MB / 362.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.635e-05/0.4424, allocations: 19.92 kB / 494 MB, free: 1.676 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.759e-05/0.4424, allocations: 4 kB / 494 MB, free: 1.672 MB / 362.8 MB Notification: Performance of sorting global known variables: time 0.0003913/0.4428, allocations: 307 kB / 494.3 MB, free: 1.371 MB / 362.8 MB Notification: Performance of sort global known variables: time 1.834e-06/0.4428, allocations: 0 / 494.3 MB, free: 1.371 MB / 362.8 MB Notification: Performance of remove unused functions: time 0.0004196/0.4433, allocations: 83.86 kB / 494.4 MB, free: 1.289 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) * 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.001144/0.4444, allocations: 472.3 kB / 494.9 MB, free: 0.8477 MB / 362.8 MB Notification: Performance of simCode: created initialization part: time 0.0004788/0.4449, allocations: 167.8 kB / 495 MB, free: 0.6836 MB / 362.8 MB Notification: Performance of simCode: created event and clocks part: time 5.731e-06/0.4449, allocations: 4 kB / 495 MB, free: 0.6797 MB / 362.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001779/0.4451, allocations: 83.89 kB / 495.1 MB, free: 0.5977 MB / 362.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004748/0.4456, allocations: 69.77 kB / 495.2 MB, free: 0.5234 MB / 362.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001053/0.4467, allocations: 0.5619 MB / 495.7 MB, free: 15.93 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004522/0.4471, allocations: 0.7716 MB / 496.5 MB, free: 15.13 MB / 378.8 MB Notification: Performance of simCode: alias equations: time 0.0001746/0.4473, allocations: 50.27 kB / 496.6 MB, free: 15.09 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.219e-05/0.4474, allocations: 31.42 kB / 496.6 MB, free: 15.06 MB / 378.8 MB Notification: Performance of SimCode: time 5.72e-07/0.4474, allocations: 0 / 496.6 MB, free: 15.06 MB / 378.8 MB Notification: Performance of Templates: time 0.0101/0.4575, allocations: 4.217 MB / 0.4891 GB, free: 10.84 MB / 378.8 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)