Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.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_On,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On") translateModel(IndustrialControlSystems.Logical.Timers.Examples.testT_On,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001253/0.001253, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00135/0.00135, allocations: 191.9 kB / 16.13 MB, free: 6.699 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.579/1.579, allocations: 205.1 MB / 222 MB, free: 5.004 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05355/0.05355, allocations: 10.74 MB / 280.1 MB, free: 10.96 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.001384/0.001384, allocations: 67.89 kB / 339.9 MB, free: 23.82 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09111/0.09251, allocations: 49.02 MB / 388.9 MB, free: 6.738 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On): time 0.003603/0.09616, allocations: 2.041 MB / 390.9 MB, free: 4.68 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001757/0.09795, allocations: 1.17 MB / 392.1 MB, free: 3.5 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001018/0.09807, allocations: 3.938 kB / 392.1 MB, free: 3.496 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007703/0.09884, allocations: 263.4 kB / 392.3 MB, free: 3.238 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003458/0.0992, allocations: 175.5 kB / 392.5 MB, free: 3.066 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006132/0.09982, allocations: 263.5 kB / 392.8 MB, free: 2.809 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003221/0.1002, allocations: 343.1 kB / 393.1 MB, free: 2.473 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001249/0.1003, allocations: 40.39 kB / 393.2 MB, free: 2.434 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001634/0.1005, allocations: 127.4 kB / 393.3 MB, free: 2.309 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001399/0.1006, allocations: 135.4 kB / 393.4 MB, free: 2.176 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.027e-05/0.1006, allocations: 12 kB / 393.4 MB, free: 2.164 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001791/0.1008, allocations: 87.94 kB / 393.5 MB, free: 2.078 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.844e-05/0.1009, allocations: 63.75 kB / 393.6 MB, free: 2.016 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000127/0.1011, allocations: 115.3 kB / 393.7 MB, free: 1.902 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003701/0.1014, allocations: 331.2 kB / 394 MB, free: 1.578 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.1014, allocations: 0 / 394 MB, free: 1.578 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1015, allocations: 0 / 394 MB, free: 1.578 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.1015, allocations: 0 / 394 MB, free: 1.578 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.001035/0.1025, allocations: 0.6535 MB / 394.7 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.898e-05/0.1026, allocations: 12.03 kB / 394.7 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.763e-05/0.1026, allocations: 28.56 kB / 394.7 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004054/0.1031, allocations: 328.2 kB / 395 MB, free: 476 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.087e-05/0.1031, allocations: 8.125 kB / 395 MB, free: 468 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.062e-05/0.1031, allocations: 12 kB / 395 MB, free: 456 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003144/0.1034, allocations: 152.1 kB / 395.2 MB, free: 288 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.1035, allocations: 0 / 395.2 MB, free: 288 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.812e-05/0.1035, allocations: 4 kB / 395.2 MB, free: 284 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.496e-06/0.1035, allocations: 7.984 kB / 395.2 MB, free: 276 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001676/0.1037, allocations: 71.89 kB / 395.3 MB, free: 204 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006781/0.1044, allocations: 476.2 kB / 395.7 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003446/0.1047, allocations: 146.7 kB / 395.9 MB, free: 15.53 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001176/0.1048, allocations: 60.83 kB / 395.9 MB, free: 15.47 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.546e-05/0.1049, allocations: 4 kB / 395.9 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002771/0.1052, allocations: 134 kB / 396.1 MB, free: 15.32 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.533e-06/0.1052, allocations: 0 / 396.1 MB, free: 15.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005801/0.1058, allocations: 261.2 kB / 396.3 MB, free: 15.06 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.647e-05/0.1058, allocations: 110.8 kB / 396.4 MB, free: 14.93 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003971/0.1062, allocations: 380.4 kB / 396.8 MB, free: 14.55 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.532e-05/0.1063, allocations: 33.7 kB / 396.8 MB, free: 14.51 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001077/0.1064, allocations: 156.4 kB / 397 MB, free: 14.35 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.056e-05/0.1064, allocations: 47.39 kB / 397 MB, free: 14.3 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.331e-05/0.1065, allocations: 49.7 kB / 397.1 MB, free: 14.25 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001222/0.1066, allocations: 346.7 kB / 397.4 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001065/0.1067, allocations: 43.98 kB / 397.5 MB, free: 13.86 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001699/0.1069, allocations: 148.5 kB / 397.6 MB, free: 13.67 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002959/0.1072, allocations: 192.4 kB / 397.8 MB, free: 13.45 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.1072, allocations: 0 / 397.8 MB, free: 13.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003528/0.1076, allocations: 221.1 kB / 398 MB, free: 13.23 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.336e-05/0.1076, allocations: 8 kB / 398 MB, free: 13.22 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.184e-06/0.1076, allocations: 4 kB / 398 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.187e-05/0.1077, allocations: 0 / 398 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001263/0.1078, allocations: 31.92 kB / 398.1 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.04e-05/0.1078, allocations: 7.938 kB / 398.1 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001151/0.1079, allocations: 24.08 kB / 398.1 MB, free: 13.15 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.593e-05/0.1079, allocations: 15.94 kB / 398.1 MB, free: 13.14 MB / 302.1 MB Warning: Assuming fixed start value for the following 3 variables: timer.Q:DISCRETE(flow=false fixed = true ) "status of the timer" type: Boolean timer.run:DISCRETE(fixed = true ) "Flag: true while the timer is counting" 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: 22 ($PRE.timer.Sd,timer.startTime,$PRE.timer.startTime,$PRE.timer.Q,timer.Q,$PRE.timer.run,timer.run,$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,timer.Sd) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0002035/0.1082, allocations: 172 kB / 398.3 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.535e-05/0.1082, allocations: 27.62 kB / 398.3 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.362e-05/0.1083, allocations: 35.02 kB / 398.3 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.1083, allocations: 0 / 398.3 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.1083, allocations: 8.109 kB / 398.3 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.1083, allocations: 4 kB / 398.3 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002451/0.1086, allocations: 301.3 kB / 398.6 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.1086, allocations: 0 / 398.6 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.453e-05/0.1086, allocations: 8 kB / 398.6 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.1086, allocations: 0 / 398.6 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.764e-05/0.1086, allocations: 8 kB / 398.7 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.1086, allocations: 0 / 398.7 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.1086, allocations: 3.984 kB / 398.7 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003988/0.1091, allocations: 243.5 kB / 398.9 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.62e-05/0.1092, allocations: 104.8 kB / 399 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.42e-05/0.1092, allocations: 7.984 kB / 399 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.719e-05/0.1093, allocations: 15.97 kB / 399 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.313e-05/0.1094, allocations: 11.98 kB / 399 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.957e-05/0.1094, allocations: 8 kB / 399 MB, free: 12.11 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002792/0.1097, allocations: 283 kB / 399.3 MB, free: 11.83 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1097, allocations: 0 / 399.3 MB, free: 11.83 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003107/0.11, allocations: 71.84 kB / 399.4 MB, free: 11.76 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: 13 ($whenCondition3,$whenCondition2,$whenCondition1,timer.Q,timer.tr,timer.run,timer.startTime,timer.Sd,SetSignal.combiTimeTable.nextTimeEvent,SetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.y,ResetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 6 (timer.Sd,timer.startTime,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 (16): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0009726/0.111, allocations: 440.2 kB / 399.8 MB, free: 11.43 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003341/0.1113, allocations: 147.4 kB / 400 MB, free: 11.29 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.1113, allocations: 0 / 400 MB, free: 11.29 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001596/0.1115, allocations: 68.42 kB / 400 MB, free: 11.22 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004115/0.1119, allocations: 80.95 kB / 400.1 MB, free: 11.14 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007955/0.1127, allocations: 0.5137 MB / 400.6 MB, free: 10.6 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003906/0.1131, allocations: 0.7638 MB / 401.4 MB, free: 9.809 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001207/0.1133, allocations: 42.27 kB / 401.4 MB, free: 9.766 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.562e-05/0.1133, allocations: 31.42 kB / 401.5 MB, free: 9.734 MB / 302.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1133, allocations: 0 / 401.5 MB, free: 9.734 MB / 302.1 MB Notification: Performance of Templates: time 0.007603/0.1209, allocations: 3.885 MB / 405.3 MB, free: 5.848 MB / 302.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.sim & ./IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe 2>&1)