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.001431/0.001431, 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.001922/0.001922, allocations: 189.2 kB / 16.14 MB, free: 6.652 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.529/1.529, allocations: 205.1 MB / 222 MB, free: 4.754 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05426/0.05426, allocations: 10.74 MB / 280.1 MB, free: 10.68 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.001272/0.001272, allocations: 63.91 kB / 339.9 MB, free: 23.76 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1045, allocations: 49.02 MB / 388.9 MB, free: 6.676 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge): time 0.003424/0.108, allocations: 2.034 MB / 390.9 MB, free: 4.625 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001872/0.1099, allocations: 1.174 MB / 392.1 MB, free: 3.441 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000113/0.11, allocations: 7.938 kB / 392.1 MB, free: 3.434 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007845/0.1109, allocations: 287.4 kB / 392.4 MB, free: 3.152 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003822/0.1112, allocations: 191.5 kB / 392.6 MB, free: 2.965 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006823/0.1119, allocations: 263.5 kB / 392.8 MB, free: 2.707 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003401/0.1123, allocations: 355.1 kB / 393.2 MB, free: 2.359 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001424/0.1124, allocations: 44.39 kB / 393.2 MB, free: 2.316 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001795/0.1126, allocations: 135.4 kB / 393.3 MB, free: 2.184 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001518/0.1128, allocations: 143.4 kB / 393.5 MB, free: 2.043 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.209e-05/0.1128, allocations: 8 kB / 393.5 MB, free: 2.035 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001937/0.113, allocations: 91.94 kB / 393.6 MB, free: 1.945 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.476e-05/0.1131, allocations: 83.66 kB / 393.7 MB, free: 1.863 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000119/0.1133, allocations: 111.3 kB / 393.8 MB, free: 1.754 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003713/0.1136, allocations: 375 kB / 394.1 MB, free: 1.387 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.1136, allocations: 0 / 394.1 MB, free: 1.387 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.1137, allocations: 0 / 394.1 MB, free: 1.387 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.1137, allocations: 0 / 394.1 MB, free: 1.387 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.0009943/0.1147, allocations: 0.6768 MB / 394.8 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.12e-05/0.1147, allocations: 8.031 kB / 394.8 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.243e-05/0.1148, allocations: 36.5 kB / 394.9 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000388/0.1152, allocations: 336.2 kB / 395.2 MB, free: 244 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.925e-05/0.1152, allocations: 12.12 kB / 395.2 MB, free: 232 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.75e-05/0.1152, allocations: 12 kB / 395.2 MB, free: 220 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003128/0.1156, allocations: 148.2 kB / 395.4 MB, free: 56 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.217e-06/0.1156, allocations: 0 / 395.4 MB, free: 56 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.992e-05/0.1156, allocations: 11.98 kB / 395.4 MB, free: 44 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.1156, allocations: 0 / 395.4 MB, free: 44 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001882/0.1158, allocations: 71.92 kB / 395.4 MB, free: 15.97 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007166/0.1165, allocations: 496.1 kB / 395.9 MB, free: 15.44 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000414/0.117, allocations: 154.6 kB / 396.1 MB, free: 15.28 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001263/0.1171, allocations: 56.97 kB / 396.1 MB, free: 15.22 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.486e-05/0.1171, allocations: 0 / 396.1 MB, free: 15.22 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002754/0.1174, allocations: 138 kB / 396.3 MB, free: 15.07 MB / 302.1 MB Notification: Performance of pre-optimization done (n=18): time 1.513e-06/0.1174, allocations: 0 / 396.3 MB, free: 15.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=18): time 0.0006313/0.1181, allocations: 289.1 kB / 396.5 MB, free: 14.79 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001142/0.1182, allocations: 110.8 kB / 396.7 MB, free: 14.65 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000458/0.1187, allocations: 445.6 kB / 397.1 MB, free: 14.21 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.712e-05/0.1187, allocations: 33.7 kB / 397.1 MB, free: 14.17 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001322/0.1188, allocations: 164.4 kB / 397.3 MB, free: 14 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.585e-05/0.1189, allocations: 43.44 kB / 397.3 MB, free: 13.96 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.769e-05/0.119, allocations: 49.7 kB / 397.4 MB, free: 13.9 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001551/0.1191, allocations: 350.7 kB / 397.7 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001123/0.1192, allocations: 48.2 kB / 397.8 MB, free: 13.5 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001815/0.1194, allocations: 160.3 kB / 397.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003089/0.1197, allocations: 184.4 kB / 398.1 MB, free: 13.09 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.1198, allocations: 0 / 398.1 MB, free: 13.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004962/0.1203, allocations: 233.2 kB / 398.3 MB, free: 12.86 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.661e-05/0.1203, allocations: 8 kB / 398.3 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.1203, allocations: 0 / 398.3 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.485e-05/0.1203, allocations: 11.92 kB / 398.3 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001119/0.1204, allocations: 27.98 kB / 398.4 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.001e-05/0.1205, allocations: 7.938 kB / 398.4 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001387/0.1206, allocations: 19.84 kB / 398.4 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.603e-05/0.1206, allocations: 12 kB / 398.4 MB, free: 12.77 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.0002249/0.1209, allocations: 188.4 kB / 398.6 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.699e-05/0.1209, allocations: 31.62 kB / 398.6 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.138e-05/0.121, allocations: 39.2 kB / 398.7 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.121, allocations: 0 / 398.7 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.742e-06/0.121, allocations: 0 / 398.7 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-06/0.121, allocations: 0 / 398.7 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003083/0.1213, allocations: 313.2 kB / 399 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.1213, allocations: 4 kB / 399 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.48e-05/0.1214, allocations: 8 kB / 399 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.013e-06/0.1214, allocations: 0 / 399 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.826e-05/0.1214, allocations: 8.109 kB / 399 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.1214, allocations: 4 kB / 399 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.1214, allocations: 0 / 399 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004363/0.1219, allocations: 271 kB / 399.3 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.304e-05/0.122, allocations: 104.7 kB / 399.4 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.126e-05/0.122, allocations: 15.98 kB / 399.4 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.927e-05/0.1221, allocations: 8 kB / 399.4 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.731e-05/0.1222, allocations: 15.97 kB / 399.4 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.972e-05/0.1222, allocations: 4 kB / 399.4 MB, free: 11.68 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003331/0.1226, allocations: 327.1 kB / 399.7 MB, free: 11.37 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.1226, allocations: 0 / 399.7 MB, free: 11.37 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004798/0.1231, allocations: 67.92 kB / 399.8 MB, free: 11.3 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.001438/0.1245, allocations: 449.3 kB / 400.2 MB, free: 10.96 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004609/0.125, allocations: 154.8 kB / 400.4 MB, free: 10.81 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.085e-06/0.125, allocations: 0 / 400.4 MB, free: 10.81 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001688/0.1252, allocations: 79.91 kB / 400.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004558/0.1256, allocations: 69.77 kB / 400.5 MB, free: 10.66 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000979/0.1266, allocations: 0.5646 MB / 401.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000437/0.1271, allocations: 0.7794 MB / 401.9 MB, free: 9.27 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001424/0.1272, allocations: 50.94 kB / 401.9 MB, free: 9.219 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.634e-05/0.1273, allocations: 27.44 kB / 401.9 MB, free: 9.191 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1273, allocations: 4 kB / 402 MB, free: 9.188 MB / 302.1 MB Notification: Performance of Templates: time 0.008438/0.1358, allocations: 4.079 MB / 406 MB, free: 5.105 MB / 302.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge.makefile (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)