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.0008775/0.0008773, allocations: 91.3 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.01071/0.01071, allocations: 174.3 kB / 16.27 MB, free: 6.676 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.811/1.811, allocations: 205.4 MB / 222.4 MB, free: 5.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05658/0.05658, allocations: 10.75 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.0005367/0.0005367, allocations: 12.83 kB / 342.2 MB, free: 23.49 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1284/0.1289, allocations: 50.01 MB / 392.2 MB, free: 5.422 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge): time 0.002857/0.1318, allocations: 1.691 MB / 393.9 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001941/0.1338, allocations: 1.151 MB / 395.1 MB, free: 2.559 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001146/0.1339, allocations: 3.938 kB / 395.1 MB, free: 2.555 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008115/0.1348, allocations: 287.3 kB / 395.4 MB, free: 2.273 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003853/0.1352, allocations: 187.5 kB / 395.6 MB, free: 2.09 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006708/0.1358, allocations: 263.6 kB / 395.8 MB, free: 1.832 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004103/0.1363, allocations: 355 kB / 396.2 MB, free: 1.484 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001447/0.1364, allocations: 48.38 kB / 396.2 MB, free: 1.438 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001626/0.1366, allocations: 123.5 kB / 396.3 MB, free: 1.316 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001989/0.1368, allocations: 139.4 kB / 396.5 MB, free: 1.18 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.876e-05/0.1368, allocations: 8 kB / 396.5 MB, free: 1.172 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001909/0.137, allocations: 91.88 kB / 396.6 MB, free: 1.082 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001139/0.1371, allocations: 79.72 kB / 396.6 MB, free: 1.004 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001296/0.1373, allocations: 133 kB / 396.8 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004122/0.1377, allocations: 366.9 kB / 397.1 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.1377, allocations: 0 / 397.1 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1377, allocations: 4 kB / 397.1 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.291e-06/0.1377, allocations: 0 / 397.1 MB, free: 0.5039 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.001118/0.1389, allocations: 0.6186 MB / 397.8 MB, free: 15.82 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.791e-05/0.1389, allocations: 12.03 kB / 397.8 MB, free: 15.81 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.622e-05/0.139, allocations: 36.47 kB / 397.8 MB, free: 15.78 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004829/0.1395, allocations: 332.1 kB / 398.1 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.857e-05/0.1396, allocations: 16.12 kB / 398.1 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.517e-05/0.1396, allocations: 12 kB / 398.2 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003099/0.1399, allocations: 148.2 kB / 398.3 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.194e-05/0.1399, allocations: 7.938 kB / 398.3 MB, free: 15.22 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.329e-05/0.1399, allocations: 7.984 kB / 398.3 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.785e-06/0.14, allocations: 4 kB / 398.3 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001816/0.1401, allocations: 67.91 kB / 398.4 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007162/0.1409, allocations: 496.2 kB / 398.9 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004233/0.1413, allocations: 154.6 kB / 399 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001241/0.1414, allocations: 56.97 kB / 399.1 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.881e-05/0.1415, allocations: 0 / 399.1 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000278/0.1418, allocations: 146.1 kB / 399.2 MB, free: 14.23 MB / 302.1 MB Notification: Performance of pre-optimization done (n=18): time 1.493e-06/0.1418, allocations: 0 / 399.2 MB, free: 14.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=18): time 0.0006047/0.1424, allocations: 281.1 kB / 399.5 MB, free: 13.95 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.299e-05/0.1425, allocations: 110.8 kB / 399.6 MB, free: 13.82 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005153/0.143, allocations: 449.5 kB / 400 MB, free: 13.37 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.329e-05/0.1431, allocations: 33.7 kB / 400.1 MB, free: 13.33 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001403/0.1432, allocations: 164.4 kB / 400.2 MB, free: 13.16 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.682e-05/0.1433, allocations: 39.45 kB / 400.3 MB, free: 13.12 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.326e-05/0.1433, allocations: 33.7 kB / 400.3 MB, free: 13.09 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001726/0.1435, allocations: 354.7 kB / 400.6 MB, free: 12.73 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001079/0.1436, allocations: 40.22 kB / 400.7 MB, free: 12.69 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001931/0.1438, allocations: 156.4 kB / 400.8 MB, free: 12.5 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003238/0.1442, allocations: 188.4 kB / 401 MB, free: 12.28 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.1442, allocations: 0 / 401 MB, free: 12.28 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004009/0.1446, allocations: 237 kB / 401.3 MB, free: 12.04 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/0.1446, allocations: 4 kB / 401.3 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.178e-06/0.1446, allocations: 4 kB / 401.3 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.875e-05/0.1447, allocations: 4 kB / 401.3 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001057/0.1448, allocations: 31.92 kB / 401.3 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.733e-06/0.1448, allocations: 4 kB / 401.3 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001188/0.1449, allocations: 27.83 kB / 401.3 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.473e-05/0.1449, allocations: 8.219 kB / 401.3 MB, free: 11.96 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.0002477/0.1452, allocations: 196.5 kB / 401.5 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.007e-05/0.1452, allocations: 27.62 kB / 401.6 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.94e-05/0.1453, allocations: 39.28 kB / 401.6 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.1453, allocations: 3.938 kB / 401.6 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.1454, allocations: 0 / 401.6 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.1454, allocations: 7.984 kB / 401.6 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002849/0.1457, allocations: 309.2 kB / 401.9 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.1457, allocations: 0 / 401.9 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.203e-05/0.1457, allocations: 8 kB / 401.9 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.1457, allocations: 0 / 401.9 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.718e-05/0.1457, allocations: 8 kB / 401.9 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.1457, allocations: 3.984 kB / 401.9 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.1458, allocations: 0 / 401.9 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004281/0.1462, allocations: 270.8 kB / 402.2 MB, free: 11.03 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.353e-05/0.1463, allocations: 112.7 kB / 402.3 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.435e-05/0.1463, allocations: 8 kB / 402.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.157e-05/0.1464, allocations: 15.98 kB / 402.3 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.953e-05/0.1465, allocations: 7.984 kB / 402.3 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.17e-05/0.1465, allocations: 8 kB / 402.3 MB, free: 10.86 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000328/0.1468, allocations: 327.1 kB / 402.7 MB, free: 10.54 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1469, allocations: 0 / 402.7 MB, free: 10.54 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003127/0.1472, allocations: 67.92 kB / 402.7 MB, free: 10.48 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.001029/0.1482, allocations: 447.8 kB / 403.2 MB, free: 10.14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003496/0.1486, allocations: 155.7 kB / 403.3 MB, free: 9.984 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.1486, allocations: 0 / 403.3 MB, free: 9.984 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001477/0.1487, allocations: 76.47 kB / 403.4 MB, free: 9.91 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005786/0.1493, allocations: 73.56 kB / 403.5 MB, free: 9.84 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008612/0.1502, allocations: 0.5659 MB / 404 MB, free: 9.246 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003812/0.1506, allocations: 0.7755 MB / 404.8 MB, free: 8.445 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001398/0.1507, allocations: 58.91 kB / 404.9 MB, free: 8.387 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.893e-05/0.1508, allocations: 35.38 kB / 404.9 MB, free: 8.352 MB / 302.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1508, allocations: 0 / 404.9 MB, free: 8.352 MB / 302.1 MB Notification: Performance of Templates: time 0.008925/0.1597, allocations: 4.044 MB / 408.9 MB, free: 4.305 MB / 302.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: