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.0007792/0.0007791, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.01084/0.01084, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.667/1.667, allocations: 205.4 MB / 222.4 MB, free: 5.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05767/0.05767, allocations: 10.74 MB / 281.5 MB, free: 10.45 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.000549/0.000549, allocations: 20.22 kB / 342.2 MB, free: 23.5 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1212/0.1217, allocations: 50 MB / 392.2 MB, free: 5.422 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On): time 0.00287/0.1246, allocations: 1.695 MB / 393.9 MB, free: 3.715 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002111/0.1268, allocations: 1.143 MB / 395.1 MB, free: 2.562 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001607/0.127, allocations: 4 kB / 395.1 MB, free: 2.559 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008239/0.1278, allocations: 259.4 kB / 395.3 MB, free: 2.305 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004195/0.1282, allocations: 179.5 kB / 395.5 MB, free: 2.129 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007468/0.129, allocations: 259.5 kB / 395.8 MB, free: 1.875 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003869/0.1294, allocations: 335.1 kB / 396.1 MB, free: 1.547 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001516/0.1295, allocations: 48.38 kB / 396.1 MB, free: 1.5 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001667/0.1297, allocations: 123.4 kB / 396.3 MB, free: 1.379 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001785/0.1299, allocations: 123.4 kB / 396.4 MB, free: 1.258 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.836e-05/0.1299, allocations: 8 kB / 396.4 MB, free: 1.25 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001977/0.1302, allocations: 91.88 kB / 396.5 MB, free: 1.16 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001097/0.1303, allocations: 55.77 kB / 396.5 MB, free: 1.105 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001289/0.1304, allocations: 133 kB / 396.7 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003928/0.1308, allocations: 335.1 kB / 397 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.1308, allocations: 0 / 397 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1308, allocations: 0 / 397 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.729e-06/0.1308, allocations: 0 / 397 MB, free: 0.6406 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.00094/0.1318, allocations: 0.6065 MB / 397.6 MB, free: 15.97 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.01e-05/0.1318, allocations: 12.03 kB / 397.6 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.681e-05/0.1319, allocations: 32.55 kB / 397.6 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004148/0.1323, allocations: 320.2 kB / 398 MB, free: 15.58 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.167e-05/0.1324, allocations: 16.12 kB / 398 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.013e-05/0.1324, allocations: 12 kB / 398 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003667/0.1328, allocations: 156 kB / 398.1 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.187e-05/0.1328, allocations: 0 / 398.1 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.12e-05/0.1328, allocations: 0 / 398.1 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.036e-05/0.1329, allocations: 4 kB / 398.1 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001649/0.133, allocations: 71.89 kB / 398.2 MB, free: 15.31 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007382/0.1338, allocations: 488.1 kB / 398.7 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000345/0.1341, allocations: 142.7 kB / 398.8 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001272/0.1343, allocations: 56.83 kB / 398.9 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.099e-05/0.1343, allocations: 8 kB / 398.9 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002662/0.1346, allocations: 123.3 kB / 399 MB, free: 14.44 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.994e-06/0.1346, allocations: 4 kB / 399 MB, free: 14.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.000588/0.1352, allocations: 264.1 kB / 399.3 MB, free: 14.17 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.039e-05/0.1353, allocations: 110.7 kB / 399.4 MB, free: 14.04 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004442/0.1357, allocations: 384.5 kB / 399.8 MB, free: 13.65 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.574e-05/0.1358, allocations: 29.7 kB / 399.8 MB, free: 13.62 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001228/0.1359, allocations: 156.4 kB / 399.9 MB, free: 13.46 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.267e-05/0.136, allocations: 51.38 kB / 400 MB, free: 13.41 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.306e-05/0.136, allocations: 29.7 kB / 400 MB, free: 13.37 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001713/0.1362, allocations: 346.8 kB / 400.4 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001106/0.1363, allocations: 47.97 kB / 400.4 MB, free: 12.98 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002101/0.1365, allocations: 144.6 kB / 400.5 MB, free: 12.79 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003345/0.1369, allocations: 192.3 kB / 400.7 MB, free: 12.57 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.1369, allocations: 0 / 400.7 MB, free: 12.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004038/0.1373, allocations: 217.2 kB / 400.9 MB, free: 12.36 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.138e-05/0.1373, allocations: 8 kB / 401 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.545e-06/0.1374, allocations: 0 / 401 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.209e-05/0.1374, allocations: 7.984 kB / 401 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001374/0.1375, allocations: 31.92 kB / 401 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.338e-06/0.1375, allocations: 4 kB / 401 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001201/0.1377, allocations: 23.84 kB / 401 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.895e-05/0.1377, allocations: 15.94 kB / 401 MB, free: 12.27 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.0002195/0.1379, allocations: 176.3 kB / 401.2 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.894e-05/0.138, allocations: 27.62 kB / 401.2 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.96e-05/0.1381, allocations: 31.08 kB / 401.3 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.013e-06/0.1381, allocations: 11.97 kB / 401.3 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.1381, allocations: 0 / 401.3 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.1381, allocations: 0 / 401.3 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002828/0.1384, allocations: 301.3 kB / 401.6 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/0.1384, allocations: 0 / 401.6 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.23e-05/0.1384, allocations: 15.92 kB / 401.6 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.1385, allocations: 0 / 401.6 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.746e-05/0.1385, allocations: 8 kB / 401.6 MB, free: 11.65 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.1385, allocations: 0 / 401.6 MB, free: 11.65 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.1385, allocations: 0 / 401.6 MB, free: 11.65 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004121/0.1389, allocations: 244.6 kB / 401.8 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.925e-05/0.139, allocations: 112.7 kB / 401.9 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.291e-05/0.1391, allocations: 8 kB / 401.9 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.711e-05/0.1392, allocations: 11.98 kB / 402 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.655e-05/0.1392, allocations: 11.98 kB / 402 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.263e-05/0.1393, allocations: 7.984 kB / 402 MB, free: 11.22 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002917/0.1396, allocations: 286.9 kB / 402.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1396, allocations: 0 / 402.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003451/0.1399, allocations: 63.92 kB / 402.3 MB, free: 10.88 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.001024/0.1409, allocations: 447.1 kB / 402.8 MB, free: 10.54 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003496/0.1413, allocations: 147.8 kB / 402.9 MB, free: 10.39 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.1413, allocations: 0 / 402.9 MB, free: 10.39 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001433/0.1415, allocations: 72.41 kB / 403 MB, free: 10.32 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004469/0.1419, allocations: 73.31 kB / 403 MB, free: 10.25 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008732/0.1428, allocations: 0.515 MB / 403.6 MB, free: 9.707 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003839/0.1432, allocations: 0.7677 MB / 404.3 MB, free: 8.91 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001245/0.1433, allocations: 50.5 kB / 404.4 MB, free: 8.863 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.021e-05/0.1434, allocations: 35.36 kB / 404.4 MB, free: 8.828 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1434, allocations: 0 / 404.4 MB, free: 8.828 MB / 302.1 MB Notification: Performance of Templates: time 0.00818/0.1516, allocations: 3.845 MB / 408.3 MB, free: 4.98 MB / 302.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: