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.00107/0.00107, allocations: 108.5 kB / 16.41 MB, free: 6.406 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.001139/0.001139, allocations: 192.3 kB / 17.35 MB, free: 5.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.292/1.292, allocations: 205.1 MB / 223.2 MB, free: 12.2 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05929/0.05929, allocations: 10.74 MB / 281.3 MB, free: 1.289 MB / 222.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.001402/0.001402, allocations: 69.88 kB / 391.5 MB, free: 45.99 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07006/0.07147, allocations: 49.02 MB / 440.5 MB, free: 3.828 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge): time 0.002827/0.07433, allocations: 1.994 MB / 442.5 MB, free: 1.816 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001405/0.07575, allocations: 1.174 MB / 443.7 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001095/0.07587, allocations: 7.938 kB / 443.7 MB, free: 0.625 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006908/0.07657, allocations: 295.2 kB / 444 MB, free: 344 kB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0003512/0.07693, allocations: 207.3 kB / 444.2 MB, free: 136 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006423/0.07759, allocations: 290 kB / 444.5 MB, free: 15.86 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003602/0.07796, allocations: 363.1 kB / 444.8 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001373/0.07811, allocations: 52.31 kB / 444.9 MB, free: 15.45 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000174/0.07829, allocations: 147.4 kB / 445 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001743/0.07847, allocations: 147.4 kB / 445.2 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.192e-05/0.07852, allocations: 16 kB / 445.2 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002107/0.07874, allocations: 119.8 kB / 445.3 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001082/0.07886, allocations: 87.75 kB / 445.4 MB, free: 14.94 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001307/0.07899, allocations: 135.2 kB / 445.5 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004181/0.07942, allocations: 382.7 kB / 445.9 MB, free: 14.43 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.07943, allocations: 4 kB / 445.9 MB, free: 14.43 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.07944, allocations: 0 / 445.9 MB, free: 14.43 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.706e-06/0.07946, allocations: 0 / 445.9 MB, free: 14.43 MB / 334.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.0009567/0.08042, allocations: 0.6723 MB / 446.6 MB, free: 13.7 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.615e-05/0.08046, allocations: 8.031 kB / 446.6 MB, free: 13.69 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.835e-05/0.08055, allocations: 40.47 kB / 446.6 MB, free: 13.65 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004214/0.08097, allocations: 336.1 kB / 447 MB, free: 13.28 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.315e-05/0.08101, allocations: 12.12 kB / 447 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.604e-05/0.08104, allocations: 8 kB / 447 MB, free: 13.26 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003166/0.08136, allocations: 156 kB / 447.1 MB, free: 13.09 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.08138, allocations: 0 / 447.1 MB, free: 13.09 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.022e-05/0.08141, allocations: 8 kB / 447.1 MB, free: 13.09 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.08143, allocations: 7.984 kB / 447.1 MB, free: 13.08 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001805/0.08161, allocations: 67.91 kB / 447.2 MB, free: 13.01 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006856/0.08231, allocations: 492.2 kB / 447.7 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004229/0.08274, allocations: 150.6 kB / 447.8 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000131/0.08289, allocations: 56.97 kB / 447.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.653e-05/0.08292, allocations: 4 kB / 447.9 MB, free: 12.26 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000267/0.08319, allocations: 133.4 kB / 448 MB, free: 12.12 MB / 334.1 MB Notification: Performance of pre-optimization done (n=18): time 1.814e-06/0.08321, allocations: 4 kB / 448 MB, free: 12.12 MB / 334.1 MB Notification: Performance of matching and sorting (n=18): time 0.0006013/0.08382, allocations: 285.1 kB / 448.3 MB, free: 11.83 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.185e-05/0.08389, allocations: 114.8 kB / 448.4 MB, free: 11.7 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005211/0.08442, allocations: 445.6 kB / 448.9 MB, free: 11.25 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.754e-05/0.08445, allocations: 29.7 kB / 448.9 MB, free: 11.21 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001462/0.0846, allocations: 164.4 kB / 449 MB, free: 11.05 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.718e-05/0.08466, allocations: 43.45 kB / 449.1 MB, free: 11 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.286e-05/0.08474, allocations: 53.7 kB / 449.1 MB, free: 10.95 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.08489, allocations: 346.7 kB / 449.5 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001263/0.08503, allocations: 48.2 kB / 449.5 MB, free: 10.55 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001853/0.08522, allocations: 148.7 kB / 449.7 MB, free: 10.36 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003262/0.08555, allocations: 192.4 kB / 449.9 MB, free: 10.14 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.08557, allocations: 0 / 449.9 MB, free: 10.14 MB / 334.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004091/0.08598, allocations: 237.1 kB / 450.1 MB, free: 9.906 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/0.08601, allocations: 8 kB / 450.1 MB, free: 9.898 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.399e-05/0.08603, allocations: 0 / 450.1 MB, free: 9.898 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/0.08605, allocations: 7.938 kB / 450.1 MB, free: 9.891 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000119/0.08617, allocations: 35.92 kB / 450.1 MB, free: 9.855 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.111e-05/0.08619, allocations: 7.984 kB / 450.1 MB, free: 9.848 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001251/0.08632, allocations: 19.84 kB / 450.2 MB, free: 9.828 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.619e-05/0.08634, allocations: 8 kB / 450.2 MB, free: 9.82 MB / 334.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,timer.run,$PRE.timer.run,timer.startTime,$PRE.timer.startTime,$PRE.timer.Q,timer.Q,$PRE.timer.tr,timer.tr,$PRE.ResetSignal.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.SetSignal.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition1,ResetSignal.combiTimeTable.nextTimeEventScaled,$PRE.ResetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.combiTimeTable.nextTimeEvent,ResetSignal.y,SetSignal.combiTimeTable.nextTimeEventScaled,$PRE.SetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.combiTimeTable.nextTimeEvent,SetSignal.y) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002171/0.08657, allocations: 200.5 kB / 450.4 MB, free: 9.613 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.945e-05/0.08662, allocations: 27.62 kB / 450.4 MB, free: 9.586 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.376e-05/0.08669, allocations: 31.28 kB / 450.4 MB, free: 9.559 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.75e-06/0.08671, allocations: 3.984 kB / 450.4 MB, free: 9.555 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.08671, allocations: 4 kB / 450.4 MB, free: 9.551 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.028e-05/0.0868, allocations: 104.7 kB / 450.5 MB, free: 9.43 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.489e-05/0.08687, allocations: 15.92 kB / 450.6 MB, free: 9.414 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001002/0.08698, allocations: 8 kB / 450.6 MB, free: 9.406 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.18e-05/0.08704, allocations: 15.92 kB / 450.6 MB, free: 9.391 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004549/0.0875, allocations: 297.7 kB / 450.9 MB, free: 9.094 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0005021/0.08801, allocations: 409.6 kB / 451.3 MB, free: 8.68 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001548/0.08818, allocations: 79.89 kB / 451.3 MB, free: 8.602 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003574/0.08855, allocations: 331.1 kB / 451.7 MB, free: 8.277 MB / 334.1 MB Notification: Performance of Backend: time 4.71e-07/0.08856, allocations: 0 / 451.7 MB, free: 8.277 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001483/0.09005, allocations: 0.5238 MB / 452.2 MB, free: 7.863 MB / 334.1 MB Notification: Performance of SimCode: time 0.001039/0.0911, allocations: 0.9588 MB / 453.2 MB, free: 6.859 MB / 334.1 MB Notification: Performance of Templates: time 0.008447/0.09956, allocations: 4.399 MB / 457.6 MB, free: 2.461 MB / 334.1 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)