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.001413/0.001413, allocations: 172.4 kB / 16.11 MB, free: 5.695 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.07433/0.07433, allocations: 10.76 MB / 27.63 MB, free: 1.895 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.597/1.597, 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.0008404/0.0008403, allocations: 90.33 kB / 287 MB, free: 12.4 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 0.0004697/0.0004697, allocations: 12 kB / 347.6 MB, free: 15.63 MB / 298.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2863/0.2868, allocations: 49.99 MB / 397.6 MB, free: 34.62 MB / 298.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1107/0.3976, allocations: 81.44 MB / 479.1 MB, free: 1.07 MB / 346.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003195/0.3979, allocations: 87.95 kB / 479.1 MB, free: 0.9844 MB / 346.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.02656/0.4245, allocations: 9.406 MB / 488.6 MB, free: 7.57 MB / 362.8 MB Notification: Performance of FrontEnd: time 2.535e-06/0.4246, allocations: 8 kB / 488.6 MB, free: 7.562 MB / 362.8 MB Notification: Performance of Transformations before backend: time 2.561e-05/0.4246, allocations: 4 kB / 488.6 MB, free: 7.559 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.0009974/0.4256, allocations: 0.6426 MB / 489.2 MB, free: 6.852 MB / 362.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.851e-05/0.4257, allocations: 8.031 kB / 489.2 MB, free: 6.844 MB / 362.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.961e-05/0.4258, allocations: 32.56 kB / 489.2 MB, free: 6.812 MB / 362.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006535/0.4264, allocations: 364.1 kB / 489.6 MB, free: 6.418 MB / 362.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.705e-05/0.4265, allocations: 4.562 kB / 489.6 MB, free: 6.414 MB / 362.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.006e-05/0.4265, allocations: 12.38 kB / 489.6 MB, free: 6.402 MB / 362.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00033/0.4269, allocations: 162.7 kB / 489.8 MB, free: 6.23 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/0.4269, allocations: 0 / 489.8 MB, free: 6.23 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.212e-05/0.4269, allocations: 7.984 kB / 489.8 MB, free: 6.223 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.323e-06/0.4269, allocations: 4 kB / 489.8 MB, free: 6.219 MB / 362.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000178/0.4271, allocations: 67.97 kB / 489.9 MB, free: 6.152 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007839/0.4279, allocations: 0.5119 MB / 490.4 MB, free: 5.59 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004302/0.4283, allocations: 158.8 kB / 490.5 MB, free: 5.426 MB / 362.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001402/0.4285, allocations: 60.77 kB / 490.6 MB, free: 5.363 MB / 362.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.556e-05/0.4285, allocations: 4 kB / 490.6 MB, free: 5.359 MB / 362.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002676/0.4288, allocations: 141.2 kB / 490.7 MB, free: 5.211 MB / 362.8 MB Notification: Performance of pre-optimization done (n=18): time 1.774e-06/0.4288, allocations: 4 kB / 490.7 MB, free: 5.207 MB / 362.8 MB Notification: Performance of matching and sorting (n=18): time 0.0006359/0.4295, allocations: 289.1 kB / 491 MB, free: 4.918 MB / 362.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.538e-05/0.4295, allocations: 110.8 kB / 491.1 MB, free: 4.785 MB / 362.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005525/0.4301, allocations: 441.6 kB / 491.6 MB, free: 4.344 MB / 362.8 MB Notification: Performance of collectPreVariables (initialization): time 3.429e-05/0.4301, allocations: 37.7 kB / 491.6 MB, free: 4.301 MB / 362.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001371/0.4303, allocations: 160.4 kB / 491.7 MB, free: 4.137 MB / 362.8 MB Notification: Performance of collectInitialBindings (initialization): time 4.596e-05/0.4303, allocations: 51.33 kB / 491.8 MB, free: 4.086 MB / 362.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.576e-06/0.4304, allocations: 8 kB / 491.8 MB, free: 4.078 MB / 362.8 MB Notification: Performance of setup shared object (initialization): time 0.0001682/0.4305, allocations: 346.8 kB / 492.1 MB, free: 3.73 MB / 362.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001151/0.4307, allocations: 52.14 kB / 492.2 MB, free: 3.676 MB / 362.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002092/0.4309, allocations: 148.5 kB / 492.3 MB, free: 3.488 MB / 362.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003417/0.4312, allocations: 200.3 kB / 492.5 MB, free: 3.262 MB / 362.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.419e-06/0.4312, allocations: 3.938 kB / 492.5 MB, free: 3.258 MB / 362.8 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004375/0.4317, allocations: 233.1 kB / 492.8 MB, free: 3.023 MB / 362.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.894e-05/0.4317, allocations: 4 kB / 492.8 MB, free: 3.02 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.388e-06/0.4317, allocations: 4 kB / 492.8 MB, free: 3.016 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.913e-05/0.4318, allocations: 4 kB / 492.8 MB, free: 3.012 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001206/0.4319, allocations: 31.92 kB / 492.8 MB, free: 2.98 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.154e-05/0.4319, allocations: 4 kB / 492.8 MB, free: 2.977 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001356/0.432, allocations: 32.2 kB / 492.8 MB, free: 2.945 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.848e-05/0.4321, allocations: 12 kB / 492.9 MB, free: 2.934 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.0002621/0.4323, allocations: 193 kB / 493 MB, free: 2.738 MB / 362.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.63e-05/0.4324, allocations: 27.62 kB / 493.1 MB, free: 2.711 MB / 362.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004936/0.4329, allocations: 264.8 kB / 493.3 MB, free: 2.445 MB / 362.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.002e-06/0.4329, allocations: 4 kB / 493.3 MB, free: 2.441 MB / 362.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.4329, allocations: 0 / 493.3 MB, free: 2.441 MB / 362.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.4329, allocations: 0 / 493.3 MB, free: 2.441 MB / 362.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003651/0.4333, allocations: 329.2 kB / 493.7 MB, free: 2.07 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.4333, allocations: 4 kB / 493.7 MB, free: 2.066 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.578e-05/0.4334, allocations: 8 kB / 493.7 MB, free: 2.059 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.4334, allocations: 0 / 493.7 MB, free: 2.059 MB / 362.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.053e-05/0.4334, allocations: 11.98 kB / 493.7 MB, free: 2.047 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.4334, allocations: 0 / 493.7 MB, free: 2.047 MB / 362.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.4334, allocations: 0 / 493.7 MB, free: 2.047 MB / 362.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004511/0.4339, allocations: 285.2 kB / 494 MB, free: 1.75 MB / 362.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002/0.4341, allocations: 124.7 kB / 494.1 MB, free: 1.609 MB / 362.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.419e-05/0.4342, allocations: 11.98 kB / 494.1 MB, free: 1.598 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001002/0.4343, allocations: 12 kB / 494.1 MB, free: 1.586 MB / 362.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.631e-05/0.4343, allocations: 11.97 kB / 494.1 MB, free: 1.574 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.274e-05/0.4344, allocations: 12 kB / 494.1 MB, free: 1.562 MB / 362.8 MB Notification: Performance of sorting global known variables: time 0.0003816/0.4347, allocations: 323.1 kB / 494.4 MB, free: 1.25 MB / 362.8 MB Notification: Performance of sort global known variables: time 1.523e-06/0.4348, allocations: 0 / 494.4 MB, free: 1.25 MB / 362.8 MB Notification: Performance of remove unused functions: time 0.0003826/0.4351, allocations: 83.88 kB / 494.5 MB, free: 1.168 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.001037/0.4362, allocations: 460.3 kB / 495 MB, free: 0.7422 MB / 362.8 MB Notification: Performance of simCode: created initialization part: time 0.0004069/0.4366, allocations: 176.1 kB / 495.1 MB, free: 0.5703 MB / 362.8 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.4366, allocations: 0 / 495.1 MB, free: 0.5703 MB / 362.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001629/0.4368, allocations: 83.91 kB / 495.2 MB, free: 500 kB / 362.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004551/0.4373, allocations: 77.5 kB / 495.3 MB, free: 420 kB / 362.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000981/0.4382, allocations: 0.5815 MB / 495.9 MB, free: 15.8 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004265/0.4387, allocations: 0.7755 MB / 496.7 MB, free: 15 MB / 378.8 MB Notification: Performance of simCode: alias equations: time 0.0001566/0.4388, allocations: 50.94 kB / 496.7 MB, free: 14.95 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.351e-05/0.4389, allocations: 35.42 kB / 496.7 MB, free: 14.91 MB / 378.8 MB Notification: Performance of SimCode: time 2.71e-07/0.4389, allocations: 0 / 496.7 MB, free: 14.91 MB / 378.8 MB Notification: Performance of Templates: time 0.008674/0.4476, allocations: 4.279 MB / 0.4893 GB, free: 10.64 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)