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.0007802/0.0007801, allocations: 87.42 kB / 15.07 MB, free: 1.082 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.000886/0.0008861, allocations: 168.7 kB / 15.95 MB, free: 200 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.642/1.642, allocations: 205.4 MB / 222.1 MB, free: 5.648 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05339/0.05339, allocations: 10.75 MB / 281.1 MB, free: 10.54 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.0005421/0.0005422, allocations: 12 kB / 341.6 MB, free: 23.85 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1134, allocations: 50.01 MB / 391.6 MB, free: 5.766 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge): time 0.0024/0.1158, allocations: 1.649 MB / 393.3 MB, free: 4.105 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001774/0.1176, allocations: 1.097 MB / 394.4 MB, free: 3 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001096/0.1177, allocations: 7.938 kB / 394.4 MB, free: 2.992 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007614/0.1185, allocations: 275.4 kB / 394.7 MB, free: 2.723 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003794/0.1189, allocations: 175.5 kB / 394.8 MB, free: 2.551 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006439/0.1195, allocations: 243.5 kB / 395.1 MB, free: 2.312 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003354/0.1199, allocations: 307.1 kB / 395.4 MB, free: 2.012 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001403/0.12, allocations: 56.36 kB / 395.4 MB, free: 1.957 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001626/0.1202, allocations: 123.5 kB / 395.6 MB, free: 1.836 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000176/0.1204, allocations: 135.4 kB / 395.7 MB, free: 1.703 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.64e-05/0.1204, allocations: 4 kB / 395.7 MB, free: 1.699 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001729/0.1206, allocations: 91.92 kB / 395.8 MB, free: 1.609 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001055/0.1207, allocations: 71.75 kB / 395.9 MB, free: 1.539 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.66e-05/0.1208, allocations: 73.5 kB / 395.9 MB, free: 1.461 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003341/0.1211, allocations: 283.6 kB / 396.2 MB, free: 1.184 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.1211, allocations: 0 / 396.2 MB, free: 1.184 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.063e-06/0.1211, allocations: 4 kB / 396.2 MB, free: 1.18 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.1212, allocations: 0 / 396.2 MB, free: 1.18 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.001003/0.1222, allocations: 0.6185 MB / 396.8 MB, free: 0.5 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/0.1222, allocations: 12.02 kB / 396.8 MB, free: 500 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.914e-05/0.1223, allocations: 35.53 kB / 396.9 MB, free: 464 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003979/0.1227, allocations: 319.2 kB / 397.2 MB, free: 108 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.573e-05/0.1227, allocations: 16.17 kB / 397.2 MB, free: 92 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.391e-05/0.1228, allocations: 15.94 kB / 397.2 MB, free: 76 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003003/0.1231, allocations: 153.2 kB / 397.4 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.797e-06/0.1231, allocations: 0 / 397.4 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.503e-05/0.1231, allocations: 3.953 kB / 397.4 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.265e-06/0.1231, allocations: 4 kB / 397.4 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001588/0.1233, allocations: 68.33 kB / 397.4 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006515/0.124, allocations: 0.489 MB / 397.9 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003804/0.1244, allocations: 146.8 kB / 398.1 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001164/0.1245, allocations: 60.83 kB / 398.1 MB, free: 15.08 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.456e-05/0.1245, allocations: 4 kB / 398.1 MB, free: 15.08 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000266/0.1248, allocations: 133.9 kB / 398.3 MB, free: 14.94 MB / 302.1 MB Notification: Performance of pre-optimization done (n=18): time 1.543e-06/0.1248, allocations: 0 / 398.3 MB, free: 14.94 MB / 302.1 MB Notification: Performance of matching and sorting (n=18): time 0.0005704/0.1254, allocations: 281.1 kB / 398.5 MB, free: 14.66 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.717e-05/0.1255, allocations: 110.8 kB / 398.6 MB, free: 14.52 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004519/0.1259, allocations: 441.6 kB / 399.1 MB, free: 14.08 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.619e-05/0.126, allocations: 41.64 kB / 399.1 MB, free: 14.04 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001165/0.1261, allocations: 164.3 kB / 399.3 MB, free: 13.87 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.41e-05/0.1261, allocations: 47.44 kB / 399.3 MB, free: 13.82 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.546e-06/0.1262, allocations: 8 kB / 399.3 MB, free: 13.81 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.1263, allocations: 350.8 kB / 399.7 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001071/0.1264, allocations: 44.22 kB / 399.7 MB, free: 13.42 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000182/0.1266, allocations: 152.4 kB / 399.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001402/0.1268, allocations: 63.92 kB / 399.9 MB, free: 13.16 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.1268, allocations: 4 kB / 399.9 MB, free: 13.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003885/0.1272, allocations: 225.1 kB / 400.2 MB, free: 12.93 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.477e-05/0.1272, allocations: 4 kB / 400.2 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.1272, allocations: 4 kB / 400.2 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.1272, allocations: 4 kB / 400.2 MB, free: 12.92 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001219/0.1274, allocations: 31.92 kB / 400.2 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.658e-06/0.1274, allocations: 12.23 kB / 400.2 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001185/0.1275, allocations: 27.73 kB / 400.2 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.692e-05/0.1275, allocations: 12 kB / 400.2 MB, free: 12.84 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,$PRE.timer.run,timer.run,$PRE.timer.startTime,timer.startTime,$PRE.timer.Q,timer.Q,$PRE.timer.tr,timer.tr,$whenCondition3,$PRE.ResetSignal.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.SetSignal.combiTimeTable.nextTimeEvent,$whenCondition1,ResetSignal.y,ResetSignal.combiTimeTable.nextTimeEvent,$PRE.ResetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.y,SetSignal.combiTimeTable.nextTimeEvent,$PRE.SetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.combiTimeTable.nextTimeEventScaled) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002326/0.1278, allocations: 188.4 kB / 400.4 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.17e-05/0.1278, allocations: 31.62 kB / 400.5 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.803e-05/0.1279, allocations: 35.28 kB / 400.5 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.1279, allocations: 0 / 400.5 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.1279, allocations: 0 / 400.5 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.1279, allocations: 3.938 kB / 400.5 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002747/0.1282, allocations: 313.3 kB / 400.8 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/0.1282, allocations: 0 / 400.8 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.615e-05/0.1282, allocations: 11.98 kB / 400.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.1283, allocations: 0 / 400.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.563e-05/0.1283, allocations: 4 kB / 400.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.532e-06/0.1283, allocations: 0 / 400.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.1283, allocations: 4.125 kB / 400.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004109/0.1287, allocations: 267.4 kB / 401.1 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.829e-05/0.1288, allocations: 116.6 kB / 401.2 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.691e-05/0.1288, allocations: 11.98 kB / 401.2 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.559e-05/0.1289, allocations: 8 kB / 401.2 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.906e-05/0.129, allocations: 15.92 kB / 401.2 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.149e-05/0.129, allocations: 15.98 kB / 401.2 MB, free: 11.73 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003304/0.1294, allocations: 319.1 kB / 401.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1294, allocations: 0 / 401.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003109/0.1297, allocations: 67.92 kB / 401.6 MB, free: 11.36 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009805/0.1307, allocations: 439.5 kB / 402.1 MB, free: 11.03 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003426/0.131, allocations: 156 kB / 402.2 MB, free: 10.88 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1311, allocations: 0 / 402.2 MB, free: 10.88 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001686/0.1312, allocations: 75.91 kB / 402.3 MB, free: 10.8 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003724/0.1316, allocations: 69.31 kB / 402.4 MB, free: 10.74 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000781/0.1324, allocations: 0.535 MB / 402.9 MB, free: 10.18 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003552/0.1328, allocations: 0.7794 MB / 403.7 MB, free: 9.371 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001301/0.1329, allocations: 54.86 kB / 403.7 MB, free: 9.316 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.229e-05/0.133, allocations: 27.44 kB / 403.7 MB, free: 9.289 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.133, allocations: 0 / 403.7 MB, free: 9.289 MB / 302.1 MB Notification: Performance of Templates: time 0.00779/0.1408, allocations: 3.934 MB / 407.7 MB, free: 5.352 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: