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.0009949/0.0009948, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001218/0.001218, allocations: 194.3 kB / 16.25 MB, free: 6.625 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.425/1.425, allocations: 205.1 MB / 222.1 MB, free: 4.695 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05663/0.05663, allocations: 10.74 MB / 280.2 MB, free: 10.66 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.001526/0.001527, allocations: 63.91 kB / 340 MB, free: 23.69 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09923/0.1008, allocations: 49.03 MB / 389.1 MB, free: 6.598 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On): time 0.003495/0.1043, allocations: 2.041 MB / 391.1 MB, free: 4.539 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001892/0.1062, allocations: 1.158 MB / 392.3 MB, free: 3.371 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001203/0.1064, allocations: 4 kB / 392.3 MB, free: 3.367 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007476/0.1071, allocations: 267.4 kB / 392.5 MB, free: 3.105 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003918/0.1075, allocations: 175.5 kB / 392.7 MB, free: 2.934 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006468/0.1082, allocations: 267.6 kB / 393 MB, free: 2.672 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003319/0.1085, allocations: 343.1 kB / 393.3 MB, free: 2.336 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001273/0.1087, allocations: 52.38 kB / 393.4 MB, free: 2.285 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001608/0.1088, allocations: 139.5 kB / 393.5 MB, free: 2.148 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001569/0.109, allocations: 143.4 kB / 393.6 MB, free: 2.008 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.911e-05/0.1091, allocations: 16 kB / 393.6 MB, free: 1.992 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001752/0.1092, allocations: 103.9 kB / 393.7 MB, free: 1.891 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.932e-05/0.1093, allocations: 75.73 kB / 393.8 MB, free: 1.816 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001212/0.1095, allocations: 123.3 kB / 393.9 MB, free: 1.695 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000369/0.1098, allocations: 351.1 kB / 394.3 MB, free: 1.352 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.1099, allocations: 4 kB / 394.3 MB, free: 1.348 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1099, allocations: 0 / 394.3 MB, free: 1.348 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.173e-06/0.1099, allocations: 0 / 394.3 MB, free: 1.348 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.0008791/0.1108, allocations: 0.6454 MB / 394.9 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.492e-05/0.1108, allocations: 11.89 kB / 394.9 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.239e-05/0.1109, allocations: 36.55 kB / 395 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003627/0.1113, allocations: 316.2 kB / 395.3 MB, free: 256 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.935e-05/0.1113, allocations: 16.12 kB / 395.3 MB, free: 240 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.619e-05/0.1113, allocations: 16 kB / 395.3 MB, free: 224 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003031/0.1116, allocations: 148.1 kB / 395.5 MB, free: 60 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.794e-06/0.1116, allocations: 0 / 395.5 MB, free: 60 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.764e-05/0.1117, allocations: 4 kB / 395.5 MB, free: 56 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-06/0.1117, allocations: 4 kB / 395.5 MB, free: 52 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001723/0.1119, allocations: 67.97 kB / 395.5 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006473/0.1125, allocations: 492 kB / 396 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003236/0.1129, allocations: 130.8 kB / 396.1 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001172/0.113, allocations: 68.77 kB / 396.2 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.563e-05/0.113, allocations: 0 / 396.2 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002523/0.1133, allocations: 127.3 kB / 396.3 MB, free: 15.11 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.473e-06/0.1133, allocations: 0 / 396.3 MB, free: 15.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005454/0.1138, allocations: 257.2 kB / 396.6 MB, free: 14.85 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.807e-05/0.1139, allocations: 114.8 kB / 396.7 MB, free: 14.71 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003823/0.1143, allocations: 384.4 kB / 397.1 MB, free: 14.33 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.557e-05/0.1143, allocations: 33.7 kB / 397.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.963e-05/0.1144, allocations: 156.4 kB / 397.3 MB, free: 14.13 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.144e-05/0.1145, allocations: 47.39 kB / 397.3 MB, free: 14.08 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.917e-05/0.1146, allocations: 45.7 kB / 397.4 MB, free: 14.03 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001241/0.1147, allocations: 350.7 kB / 397.7 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001036/0.1148, allocations: 43.98 kB / 397.7 MB, free: 13.64 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001736/0.115, allocations: 148.5 kB / 397.9 MB, free: 13.45 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002966/0.1153, allocations: 192.4 kB / 398.1 MB, free: 13.23 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.736e-06/0.1153, allocations: 0 / 398.1 MB, free: 13.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003819/0.1157, allocations: 217.2 kB / 398.3 MB, free: 13.01 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/0.1157, allocations: 8.25 kB / 398.3 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.1157, allocations: 4 kB / 398.3 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.382e-05/0.1158, allocations: 4 kB / 398.3 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001251/0.1159, allocations: 35.92 kB / 398.3 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.134e-05/0.1159, allocations: 4 kB / 398.3 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001115/0.116, allocations: 23.83 kB / 398.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.522e-05/0.1161, allocations: 11.94 kB / 398.4 MB, free: 12.92 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.0001941/0.1163, allocations: 176 kB / 398.5 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.294e-05/0.1163, allocations: 31.66 kB / 398.6 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.201e-05/0.1164, allocations: 35.06 kB / 398.6 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.1164, allocations: 0 / 398.6 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.1164, allocations: 0 / 398.6 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.1164, allocations: 0 / 398.6 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002487/0.1167, allocations: 301.3 kB / 398.9 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-06/0.1167, allocations: 0 / 398.9 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.512e-05/0.1167, allocations: 15.88 kB / 398.9 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.1167, allocations: 4 kB / 398.9 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.718e-05/0.1167, allocations: 7.984 kB / 398.9 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.1168, allocations: 0 / 398.9 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.1168, allocations: 0 / 398.9 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003846/0.1171, allocations: 243.6 kB / 399.2 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.982e-05/0.1172, allocations: 100.8 kB / 399.3 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.512e-05/0.1173, allocations: 12 kB / 399.3 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.635e-05/0.1174, allocations: 11.98 kB / 399.3 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.163e-05/0.1174, allocations: 11.98 kB / 399.3 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.722e-05/0.1175, allocations: 8 kB / 399.3 MB, free: 11.89 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002705/0.1177, allocations: 287 kB / 399.6 MB, free: 11.61 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.1177, allocations: 0 / 399.6 MB, free: 11.61 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003093/0.1181, allocations: 67.83 kB / 399.7 MB, free: 11.55 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.0009399/0.119, allocations: 444 kB / 400.1 MB, free: 11.21 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003592/0.1194, allocations: 159.4 kB / 400.2 MB, free: 11.06 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.1194, allocations: 0 / 400.2 MB, free: 11.06 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001551/0.1195, allocations: 71.91 kB / 400.3 MB, free: 10.99 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004076/0.12, allocations: 70.67 kB / 400.4 MB, free: 10.92 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007662/0.1207, allocations: 0.5126 MB / 400.9 MB, free: 10.38 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000325/0.1211, allocations: 0.7636 MB / 401.7 MB, free: 9.586 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001228/0.1212, allocations: 46.23 kB / 401.7 MB, free: 9.539 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.289e-05/0.1213, allocations: 31.42 kB / 401.7 MB, free: 9.508 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1213, allocations: 0 / 401.7 MB, free: 9.508 MB / 302.1 MB Notification: Performance of Templates: time 0.007789/0.1291, allocations: 4.028 MB / 405.8 MB, free: 5.477 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)