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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008556/0.0008556, allocations: 99.86 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000882/0.0008821, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.231/1.231, allocations: 205.4 MB / 222.1 MB, free: 5.664 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05344/0.05344, allocations: 10.73 MB / 281.1 MB, free: 10.57 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004623/0.0004624, allocations: 15.19 kB / 341.6 MB, free: 23.87 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07794/0.07841, allocations: 50.01 MB / 391.6 MB, free: 5.793 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge): time 0.002532/0.08099, allocations: 1.645 MB / 393.2 MB, free: 4.137 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001762/0.08279, allocations: 1.058 MB / 394.3 MB, free: 3.07 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001627/0.08298, allocations: 11.88 kB / 394.3 MB, free: 3.059 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000764/0.08375, allocations: 263.4 kB / 394.6 MB, free: 2.801 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003738/0.08413, allocations: 167.6 kB / 394.7 MB, free: 2.637 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000678/0.08482, allocations: 247.4 kB / 395 MB, free: 2.395 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003285/0.08516, allocations: 211.6 kB / 395.2 MB, free: 2.188 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001199/0.08529, allocations: 48.36 kB / 395.2 MB, free: 2.141 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001935/0.08549, allocations: 119.5 kB / 395.3 MB, free: 2.023 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001733/0.08567, allocations: 131.5 kB / 395.5 MB, free: 1.895 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.214e-05/0.08571, allocations: 8 kB / 395.5 MB, free: 1.887 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001812/0.0859, allocations: 75.88 kB / 395.6 MB, free: 1.812 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.545e-05/0.086, allocations: 71.73 kB / 395.6 MB, free: 1.742 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.878e-05/0.08608, allocations: 73.52 kB / 395.7 MB, free: 1.664 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003119/0.0864, allocations: 283.6 kB / 396 MB, free: 1.387 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.545e-06/0.08641, allocations: 0 / 396 MB, free: 1.387 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.08642, allocations: 0 / 396 MB, free: 1.387 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.558e-06/0.08643, allocations: 0 / 396 MB, free: 1.387 MB / 286.1 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.001067/0.08751, allocations: 0.6145 MB / 396.6 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.861e-05/0.08756, allocations: 8.031 kB / 396.6 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001213/0.0877, allocations: 43.52 kB / 396.6 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005029/0.08821, allocations: 323.1 kB / 397 MB, free: 316 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.665e-05/0.08824, allocations: 12.17 kB / 397 MB, free: 304 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.466e-05/0.08827, allocations: 12 kB / 397 MB, free: 292 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002839/0.08856, allocations: 153.3 kB / 397.1 MB, free: 124 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.08858, allocations: 0 / 397.1 MB, free: 124 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.004e-05/0.08861, allocations: 11.89 kB / 397.1 MB, free: 112 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.08862, allocations: 4 kB / 397.1 MB, free: 108 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001532/0.08878, allocations: 64.33 kB / 397.2 MB, free: 44 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006645/0.08945, allocations: 496.8 kB / 397.7 MB, free: 15.51 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003698/0.08984, allocations: 146.8 kB / 397.8 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.515e-05/0.08987, allocations: 4 kB / 397.8 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002455/0.09012, allocations: 141.9 kB / 398 MB, free: 15.2 MB / 302.1 MB Notification: Performance of pre-optimization done (n=18): time 1.714e-06/0.09014, allocations: 0 / 398 MB, free: 15.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=18): time 0.0005719/0.09071, allocations: 362.2 kB / 398.3 MB, free: 14.82 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.134e-05/0.09079, allocations: 106.8 kB / 398.4 MB, free: 14.7 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004344/0.09123, allocations: 445.6 kB / 398.9 MB, free: 14.25 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.322e-05/0.09126, allocations: 33.7 kB / 398.9 MB, free: 14.21 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001098/0.09138, allocations: 168.5 kB / 399.1 MB, free: 14.04 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.156e-05/0.09142, allocations: 39.45 kB / 399.1 MB, free: 14 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.839e-06/0.09144, allocations: 8 kB / 399.1 MB, free: 13.99 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.09156, allocations: 350.8 kB / 399.5 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000109/0.09168, allocations: 44.2 kB / 399.5 MB, free: 13.6 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001617/0.09185, allocations: 152.4 kB / 399.6 MB, free: 13.41 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001407/0.09201, allocations: 71.86 kB / 399.7 MB, free: 13.34 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.09202, allocations: 0 / 399.7 MB, free: 13.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003753/0.0924, allocations: 225.3 kB / 399.9 MB, free: 13.11 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.09242, allocations: 8 kB / 399.9 MB, free: 13.1 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.09244, allocations: 0 / 399.9 MB, free: 13.1 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.322e-05/0.09245, allocations: 4 kB / 399.9 MB, free: 13.1 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001089/0.09257, allocations: 31.92 kB / 400 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.646e-06/0.09259, allocations: 7.984 kB / 400 MB, free: 13.06 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001295/0.09272, allocations: 27.75 kB / 400 MB, free: 13.03 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.551e-05/0.09274, allocations: 12 kB / 400 MB, free: 13.02 MB / 302.1 MB Warning: Assuming fixed start value for the following 3 variables: timer.Sd:DISCRETE(fixed = true ) type: Boolean timer.Q:DISCRETE(flow=false fixed = true ) "status of the timer" type: Boolean timer.tr:DISCRETE(flow=false 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.0002083/0.09296, allocations: 180.3 kB / 400.2 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.065e-05/0.09301, allocations: 35.56 kB / 400.2 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.33e-05/0.09307, allocations: 35.28 kB / 400.3 MB, free: 12.76 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.09309, allocations: 4.047 kB / 400.3 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/0.0931, allocations: 8.094 kB / 400.3 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.09311, allocations: 0 / 400.3 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002493/0.09336, allocations: 313.4 kB / 400.6 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.09337, allocations: 4 kB / 400.6 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.388e-05/0.09341, allocations: 7.938 kB / 400.6 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.152e-06/0.09342, allocations: 4 kB / 400.6 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.431e-05/0.09344, allocations: 3.984 kB / 400.6 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.09345, allocations: 4 kB / 400.6 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.09345, allocations: 0 / 400.6 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003884/0.09385, allocations: 259.7 kB / 400.9 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.616e-05/0.09394, allocations: 120.6 kB / 401 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.501e-05/0.094, allocations: 8 kB / 401 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.504e-05/0.0941, allocations: 11.98 kB / 401 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.845e-05/0.09416, allocations: 15.98 kB / 401 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.84e-05/0.09418, allocations: 4 kB / 401 MB, free: 11.92 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003029/0.09449, allocations: 323.1 kB / 401.3 MB, free: 11.61 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.0945, allocations: 0 / 401.3 MB, free: 11.61 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003153/0.09482, allocations: 68.05 kB / 401.4 MB, free: 11.54 MB / 302.1 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,ResetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 9 * 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.0008993/0.09572, allocations: 451 kB / 401.8 MB, free: 11.2 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003236/0.09606, allocations: 147.8 kB / 402 MB, free: 11.05 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.09607, allocations: 0 / 402 MB, free: 11.05 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001388/0.09622, allocations: 79.89 kB / 402.1 MB, free: 10.97 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003263/0.09655, allocations: 70.47 kB / 402.1 MB, free: 10.91 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007647/0.09733, allocations: 0.5385 MB / 402.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003123/0.09766, allocations: 0.7833 MB / 403.5 MB, free: 9.531 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001292/0.09779, allocations: 54.92 kB / 403.5 MB, free: 9.477 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.786e-05/0.09786, allocations: 23.44 kB / 403.5 MB, free: 9.453 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.09787, allocations: 4 kB / 403.5 MB, free: 9.449 MB / 302.1 MB Notification: Performance of Templates: time 0.007315/0.1052, allocations: 3.923 MB / 407.5 MB, free: 5.523 MB / 302.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: