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.001063/0.00107, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001278/0.001278, allocations: 193.5 kB / 16.25 MB, free: 6.617 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.44/1.44, allocations: 205.1 MB / 222.1 MB, free: 4.734 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05417/0.05417, allocations: 10.74 MB / 280.2 MB, free: 10.68 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.001293/0.001293, allocations: 63.84 kB / 340 MB, free: 23.69 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08498/0.08629, allocations: 49.02 MB / 389.1 MB, free: 6.605 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge): time 0.003788/0.09011, allocations: 2.045 MB / 391.1 MB, free: 4.543 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002077/0.09222, allocations: 1.147 MB / 392.3 MB, free: 3.387 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002144/0.09247, allocations: 11.94 kB / 392.3 MB, free: 3.375 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009219/0.09344, allocations: 295.4 kB / 392.6 MB, free: 3.086 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005028/0.09395, allocations: 191.5 kB / 392.7 MB, free: 2.898 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007499/0.09471, allocations: 259.6 kB / 393 MB, free: 2.645 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004208/0.09514, allocations: 363.1 kB / 393.4 MB, free: 2.289 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001609/0.09531, allocations: 52.36 kB / 393.4 MB, free: 2.238 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000277/0.09559, allocations: 151.4 kB / 393.6 MB, free: 2.09 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002442/0.09585, allocations: 151.4 kB / 393.7 MB, free: 1.941 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.163e-05/0.09591, allocations: 20 kB / 393.7 MB, free: 1.922 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000267/0.09618, allocations: 103.9 kB / 393.8 MB, free: 1.82 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001331/0.09633, allocations: 103.7 kB / 393.9 MB, free: 1.719 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001598/0.09649, allocations: 123.2 kB / 394 MB, free: 1.598 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005483/0.09705, allocations: 371.1 kB / 394.4 MB, free: 1.234 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.613e-06/0.09707, allocations: 8 kB / 394.4 MB, free: 1.227 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.09708, allocations: 0 / 394.4 MB, free: 1.227 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.357e-06/0.09709, allocations: 0 / 394.4 MB, free: 1.227 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.001085/0.09818, allocations: 0.6728 MB / 395.1 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.09823, allocations: 8.031 kB / 395.1 MB, free: 496 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.847e-05/0.09833, allocations: 40.5 kB / 395.1 MB, free: 456 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004179/0.09876, allocations: 332.2 kB / 395.5 MB, free: 84 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.266e-05/0.09879, allocations: 12.12 kB / 395.5 MB, free: 72 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.366e-05/0.09882, allocations: 8 kB / 395.5 MB, free: 64 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003346/0.09916, allocations: 148.2 kB / 395.6 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.09918, allocations: 0 / 395.6 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.38e-05/0.09921, allocations: 11.98 kB / 395.6 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.09922, allocations: 4 kB / 395.6 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001853/0.09941, allocations: 67.91 kB / 395.7 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007819/0.1002, allocations: 0.4884 MB / 396.2 MB, free: 15.28 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004171/0.1006, allocations: 142.6 kB / 396.3 MB, free: 15.13 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001321/0.1008, allocations: 56.97 kB / 396.4 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.68e-05/0.1008, allocations: 4 kB / 396.4 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002842/0.1011, allocations: 143.2 kB / 396.5 MB, free: 14.92 MB / 302.1 MB Notification: Performance of pre-optimization done (n=18): time 2.034e-06/0.1011, allocations: 0 / 396.5 MB, free: 14.92 MB / 302.1 MB Notification: Performance of matching and sorting (n=18): time 0.0006518/0.1018, allocations: 289.1 kB / 396.8 MB, free: 14.63 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.529e-05/0.1019, allocations: 106.8 kB / 396.9 MB, free: 14.5 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004716/0.1023, allocations: 445.6 kB / 397.4 MB, free: 14.05 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.743e-05/0.1024, allocations: 29.7 kB / 397.4 MB, free: 14.02 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001392/0.1025, allocations: 164.4 kB / 397.5 MB, free: 13.85 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.584e-05/0.1026, allocations: 47.45 kB / 397.6 MB, free: 13.8 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.226e-05/0.1027, allocations: 49.7 kB / 397.6 MB, free: 13.75 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.1028, allocations: 346.7 kB / 398 MB, free: 13.4 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001128/0.1029, allocations: 52.14 kB / 398 MB, free: 13.35 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001756/0.1031, allocations: 156.4 kB / 398.2 MB, free: 13.16 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003055/0.1034, allocations: 192.4 kB / 398.4 MB, free: 12.94 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.1034, allocations: 0 / 398.4 MB, free: 12.94 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003987/0.1038, allocations: 229 kB / 398.6 MB, free: 12.71 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.1039, allocations: 8 kB / 398.6 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/0.1039, allocations: 0 / 398.6 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.617e-05/0.1039, allocations: 7.984 kB / 398.6 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000112/0.104, allocations: 35.92 kB / 398.6 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.018e-05/0.104, allocations: 7.938 kB / 398.7 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001242/0.1042, allocations: 20.09 kB / 398.7 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.59e-05/0.1042, allocations: 12 kB / 398.7 MB, free: 12.62 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,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.0002095/0.1044, allocations: 184.3 kB / 398.9 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.799e-05/0.1045, allocations: 27.62 kB / 398.9 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.692e-05/0.1045, allocations: 47.25 kB / 398.9 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.1045, allocations: 3.984 kB / 398.9 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.1046, allocations: 0 / 398.9 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.1046, allocations: 4 kB / 398.9 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002687/0.1048, allocations: 309.2 kB / 399.2 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.1049, allocations: 128 / 399.2 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.784e-05/0.1049, allocations: 12 kB / 399.3 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.1049, allocations: 0 / 399.3 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.091e-05/0.1049, allocations: 11.98 kB / 399.3 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.1049, allocations: 0 / 399.3 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.1049, allocations: 0 / 399.3 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004302/0.1054, allocations: 271.1 kB / 399.5 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.648e-05/0.1055, allocations: 108.7 kB / 399.6 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.899e-05/0.1055, allocations: 7.984 kB / 399.6 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.06e-05/0.1056, allocations: 8 kB / 399.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.903e-05/0.1057, allocations: 15.98 kB / 399.7 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.218e-05/0.1057, allocations: 7.984 kB / 399.7 MB, free: 11.52 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003022/0.106, allocations: 323.1 kB / 400 MB, free: 11.21 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.106, allocations: 0 / 400 MB, free: 11.21 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003319/0.1064, allocations: 63.94 kB / 400.1 MB, free: 11.15 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000954/0.1073, allocations: 452.1 kB / 400.5 MB, free: 10.8 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000393/0.1077, allocations: 167.7 kB / 400.7 MB, free: 10.63 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.1078, allocations: 0 / 400.7 MB, free: 10.63 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000154/0.1079, allocations: 76.47 kB / 400.7 MB, free: 10.56 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004223/0.1083, allocations: 78.58 kB / 400.8 MB, free: 10.48 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007987/0.1092, allocations: 0.5629 MB / 401.4 MB, free: 9.895 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003186/0.1095, allocations: 0.7791 MB / 402.2 MB, free: 9.09 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001438/0.1096, allocations: 54.92 kB / 402.2 MB, free: 9.035 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.537e-05/0.1097, allocations: 27.44 kB / 402.2 MB, free: 9.008 MB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1097, allocations: 0 / 402.2 MB, free: 9.008 MB / 302.1 MB Notification: Performance of Templates: time 0.008145/0.1179, allocations: 4.231 MB / 406.5 MB, free: 4.773 MB / 302.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)