Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.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_Fedge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge") translateModel(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001131/0.001131, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001156/0.001156, allocations: 172.7 kB / 15.95 MB, free: 208 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.892/1.892, allocations: 205.4 MB / 222.1 MB, free: 5.895 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05636/0.05636, allocations: 10.75 MB / 281.1 MB, free: 10.79 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.0005112/0.0005114, allocations: 14.97 kB / 341.6 MB, free: 23.87 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09678/0.09731, allocations: 50.01 MB / 391.6 MB, free: 5.789 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge): time 0.002206/0.09955, allocations: 1.645 MB / 393.3 MB, free: 4.133 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001716/0.1013, allocations: 1.101 MB / 394.4 MB, free: 3.023 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001233/0.1014, allocations: 7.938 kB / 394.4 MB, free: 3.016 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008017/0.1023, allocations: 271.4 kB / 394.7 MB, free: 2.75 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004368/0.1027, allocations: 167.5 kB / 394.8 MB, free: 2.586 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008419/0.1036, allocations: 243.5 kB / 395.1 MB, free: 2.348 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005189/0.1041, allocations: 307.1 kB / 395.4 MB, free: 2.047 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002132/0.1043, allocations: 52.36 kB / 395.4 MB, free: 1.996 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001955/0.1045, allocations: 127.4 kB / 395.5 MB, free: 1.871 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002159/0.1047, allocations: 127.5 kB / 395.7 MB, free: 1.746 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.558e-05/0.1048, allocations: 4 kB / 395.7 MB, free: 1.742 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002706/0.1051, allocations: 91.86 kB / 395.8 MB, free: 1.652 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001259/0.1052, allocations: 67.75 kB / 395.8 MB, free: 1.586 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001046/0.1053, allocations: 69.58 kB / 395.9 MB, free: 1.512 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005431/0.1059, allocations: 275.7 kB / 396.2 MB, free: 1.242 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.837e-06/0.1059, allocations: 0 / 396.2 MB, free: 1.242 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1059, allocations: 7.938 kB / 396.2 MB, free: 1.234 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.162e-06/0.1059, allocations: 0 / 396.2 MB, free: 1.234 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.001322/0.1072, allocations: 0.6145 MB / 396.8 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.618e-05/0.1073, allocations: 8.031 kB / 396.8 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.327e-05/0.1074, allocations: 31.62 kB / 396.8 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005333/0.1079, allocations: 315.2 kB / 397.1 MB, free: 180 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.358e-05/0.108, allocations: 12.19 kB / 397.1 MB, free: 168 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.536e-05/0.108, allocations: 19.98 kB / 397.2 MB, free: 148 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004291/0.1085, allocations: 153.2 kB / 397.3 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.018e-05/0.1085, allocations: 3.984 kB / 397.3 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.781e-05/0.1085, allocations: 3.953 kB / 397.3 MB, free: 15.97 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.299e-05/0.1086, allocations: 4 kB / 397.3 MB, free: 15.97 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002258/0.1088, allocations: 68.34 kB / 397.4 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009771/0.1098, allocations: 0.489 MB / 397.9 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004501/0.1102, allocations: 150.6 kB / 398 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001181/0.1104, allocations: 52.97 kB / 398.1 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.1e-05/0.1104, allocations: 4 kB / 398.1 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003321/0.1108, allocations: 137.9 kB / 398.2 MB, free: 15 MB / 302.1 MB Notification: Performance of pre-optimization done (n=18): time 1.754e-06/0.1108, allocations: 4 kB / 398.2 MB, free: 15 MB / 302.1 MB Notification: Performance of matching and sorting (n=18): time 0.0005775/0.1114, allocations: 285.1 kB / 398.5 MB, free: 14.71 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.893e-05/0.1114, allocations: 106.8 kB / 398.6 MB, free: 14.59 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004542/0.1119, allocations: 416.5 kB / 399 MB, free: 14.16 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.447e-05/0.1119, allocations: 29.7 kB / 399 MB, free: 14.13 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001358/0.1121, allocations: 164.4 kB / 399.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.92e-05/0.1121, allocations: 47.44 kB / 399.2 MB, free: 13.91 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.295e-06/0.1121, allocations: 4 kB / 399.2 MB, free: 13.91 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001772/0.1123, allocations: 350.8 kB / 399.6 MB, free: 13.56 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001078/0.1124, allocations: 48.2 kB / 399.6 MB, free: 13.51 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001936/0.1126, allocations: 148.4 kB / 399.8 MB, free: 13.32 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001367/0.1128, allocations: 55.94 kB / 399.8 MB, free: 13.27 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.1128, allocations: 0 / 399.8 MB, free: 13.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004513/0.1133, allocations: 229 kB / 400.1 MB, free: 13.04 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/0.1133, allocations: 4 kB / 400.1 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.1133, allocations: 4 kB / 400.1 MB, free: 13.03 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.816e-05/0.1133, allocations: 4 kB / 400.1 MB, free: 13.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001117/0.1134, allocations: 39.91 kB / 400.1 MB, free: 12.99 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.285e-05/0.1135, allocations: 8.188 kB / 400.1 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001161/0.1136, allocations: 31.91 kB / 400.2 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.732e-05/0.1136, allocations: 8 kB / 400.2 MB, free: 12.94 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.0002442/0.1139, allocations: 188.3 kB / 400.3 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.138e-05/0.1139, allocations: 27.67 kB / 400.4 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.283e-05/0.114, allocations: 39.27 kB / 400.4 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.882e-05/0.114, allocations: 4 kB / 400.4 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.077e-06/0.114, allocations: 3.984 kB / 400.4 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.1141, allocations: 0 / 400.4 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003455/0.1144, allocations: 301.4 kB / 400.7 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.1144, allocations: 0 / 400.7 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.841e-05/0.1145, allocations: 11.98 kB / 400.7 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.746e-06/0.1145, allocations: 0 / 400.7 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.638e-05/0.1145, allocations: 4 kB / 400.7 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.1145, allocations: 0 / 400.7 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.031e-06/0.1145, allocations: 0 / 400.7 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004263/0.1149, allocations: 271.7 kB / 401 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001023/0.115, allocations: 116.6 kB / 401.1 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.616e-05/0.1151, allocations: 11.98 kB / 401.1 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.715e-05/0.1152, allocations: 8 kB / 401.1 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.357e-05/0.1153, allocations: 15.97 kB / 401.1 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.498e-05/0.1153, allocations: 8 kB / 401.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003298/0.1156, allocations: 307 kB / 401.4 MB, free: 11.56 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1156, allocations: 0 / 401.4 MB, free: 11.56 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003506/0.116, allocations: 63.91 kB / 401.5 MB, free: 11.5 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.0009492/0.117, allocations: 447.3 kB / 401.9 MB, free: 11.16 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004508/0.1174, allocations: 156.2 kB / 402.1 MB, free: 11.01 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.1174, allocations: 0 / 402.1 MB, free: 11.01 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001492/0.1176, allocations: 75.91 kB / 402.2 MB, free: 10.93 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003992/0.118, allocations: 73.52 kB / 402.2 MB, free: 10.86 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008769/0.1189, allocations: 0.5272 MB / 402.8 MB, free: 10.3 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003832/0.1193, allocations: 0.7755 MB / 403.5 MB, free: 9.5 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001298/0.1194, allocations: 46.92 kB / 403.6 MB, free: 9.457 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.818e-05/0.1195, allocations: 23.44 kB / 403.6 MB, free: 9.434 MB / 302.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1195, allocations: 0 / 403.6 MB, free: 9.434 MB / 302.1 MB Notification: Performance of Templates: time 0.008722/0.1283, allocations: 3.891 MB / 407.5 MB, free: 5.539 MB / 302.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.makefile Environment - environmentSimulation: (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.sim & ./IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe 2>&1) Environment - environmentSimulation: