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.009/0.009, allocations: 103.2 kB / 15.73 MB, free: 6.004 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.001829/0.001829, allocations: 188.6 kB / 16.67 MB, free: 5.93 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.671/1.671, allocations: 205.1 MB / 222.5 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05964/0.05964, allocations: 10.74 MB / 280.6 MB, free: 1.277 MB / 222.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.001708/0.001708, allocations: 69.73 kB / 390.8 MB, free: 45.97 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1091, allocations: 49.03 MB / 439.9 MB, free: 3.805 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Redge): time 0.003587/0.1128, allocations: 1.983 MB / 441.8 MB, free: 1.805 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001946/0.1147, allocations: 1.178 MB / 443 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002403/0.115, allocations: 3.938 kB / 443 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008254/0.1159, allocations: 295.2 kB / 443.3 MB, free: 332 kB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0005381/0.1164, allocations: 215 kB / 443.5 MB, free: 120 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008518/0.1173, allocations: 282.2 kB / 443.8 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005725/0.1179, allocations: 351.1 kB / 444.1 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001698/0.1181, allocations: 64.3 kB / 444.2 MB, free: 15.43 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002941/0.1184, allocations: 143.5 kB / 444.3 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002473/0.1186, allocations: 155.4 kB / 444.5 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.931e-05/0.1187, allocations: 20 kB / 444.5 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000289/0.119, allocations: 107.9 kB / 444.6 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001304/0.1191, allocations: 87.73 kB / 444.7 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001573/0.1193, allocations: 131.1 kB / 444.8 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006417/0.1199, allocations: 382.8 kB / 445.2 MB, free: 14.43 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.1199, allocations: 4 kB / 445.2 MB, free: 14.42 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.12, allocations: 0 / 445.2 MB, free: 14.42 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.535e-05/0.12, allocations: 0 / 445.2 MB, free: 14.42 MB / 334.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.001289/0.1213, allocations: 0.6684 MB / 445.9 MB, free: 13.7 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.007e-05/0.1213, allocations: 12.03 kB / 445.9 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001656/0.1215, allocations: 44.34 kB / 445.9 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005777/0.1221, allocations: 340.2 kB / 446.3 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.763e-05/0.1221, allocations: 12.12 kB / 446.3 MB, free: 13.26 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.714e-05/0.1222, allocations: 8 kB / 446.3 MB, free: 13.25 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000359/0.1225, allocations: 156 kB / 446.4 MB, free: 13.08 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/0.1226, allocations: 0 / 446.4 MB, free: 13.08 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.642e-05/0.1226, allocations: 11.98 kB / 446.4 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.1226, allocations: 0 / 446.4 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001961/0.1228, allocations: 71.91 kB / 446.5 MB, free: 13 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009124/0.1237, allocations: 0.4885 MB / 447 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000429/0.1242, allocations: 142.6 kB / 447.1 MB, free: 12.31 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001439/0.1243, allocations: 61.02 kB / 447.2 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.364e-05/0.1244, allocations: 4 kB / 447.2 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002809/0.1247, allocations: 133.4 kB / 447.3 MB, free: 12.11 MB / 334.1 MB Notification: Performance of pre-optimization done (n=18): time 2.415e-06/0.1247, allocations: 0 / 447.3 MB, free: 12.11 MB / 334.1 MB Notification: Performance of matching and sorting (n=18): time 0.0006924/0.1254, allocations: 293.1 kB / 447.6 MB, free: 11.81 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.989e-05/0.1255, allocations: 106.8 kB / 447.7 MB, free: 11.68 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005613/0.1261, allocations: 445.6 kB / 448.2 MB, free: 11.24 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.451e-05/0.1261, allocations: 29.7 kB / 448.2 MB, free: 11.2 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001502/0.1263, allocations: 164.4 kB / 448.4 MB, free: 11.04 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.856e-05/0.1263, allocations: 47.44 kB / 448.4 MB, free: 10.99 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.611e-05/0.1264, allocations: 49.7 kB / 448.5 MB, free: 10.93 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001655/0.1266, allocations: 346.7 kB / 448.8 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001184/0.1267, allocations: 52.2 kB / 448.8 MB, free: 10.54 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001915/0.1269, allocations: 148.6 kB / 449 MB, free: 10.35 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003469/0.1273, allocations: 188.4 kB / 449.2 MB, free: 10.13 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.481e-06/0.1273, allocations: 7.984 kB / 449.2 MB, free: 10.12 MB / 334.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004477/0.1278, allocations: 221 kB / 449.4 MB, free: 9.902 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.195e-05/0.1278, allocations: 12.25 kB / 449.4 MB, free: 9.891 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.787e-06/0.1278, allocations: 7.922 kB / 449.4 MB, free: 9.883 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.152e-05/0.1278, allocations: 4 kB / 449.4 MB, free: 9.879 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001186/0.128, allocations: 35.92 kB / 449.5 MB, free: 9.844 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.604e-05/0.128, allocations: 4 kB / 449.5 MB, free: 9.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001511/0.1281, allocations: 19.84 kB / 449.5 MB, free: 9.82 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.146e-05/0.1282, allocations: 11.98 kB / 449.5 MB, free: 9.809 MB / 334.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.0002508/0.1284, allocations: 204.4 kB / 449.7 MB, free: 9.598 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.318e-05/0.1285, allocations: 27.62 kB / 449.7 MB, free: 9.57 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.131e-05/0.1286, allocations: 43.2 kB / 449.8 MB, free: 9.531 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.462e-05/0.1286, allocations: 4 kB / 449.8 MB, free: 9.527 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.637e-06/0.1286, allocations: 0 / 449.8 MB, free: 9.527 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.1286, allocations: 3.938 kB / 449.8 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003187/0.1289, allocations: 305.3 kB / 450.1 MB, free: 9.176 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.1289, allocations: 0 / 450.1 MB, free: 9.176 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.905e-05/0.129, allocations: 4 kB / 450.1 MB, free: 9.172 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.129, allocations: 8 kB / 450.1 MB, free: 9.164 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.03e-05/0.129, allocations: 7.984 kB / 450.1 MB, free: 9.156 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.129, allocations: 4 kB / 450.1 MB, free: 9.152 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.129, allocations: 0 / 450.1 MB, free: 9.152 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004673/0.1295, allocations: 264.6 kB / 450.3 MB, free: 8.879 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.01e-05/0.1296, allocations: 104.8 kB / 450.4 MB, free: 8.758 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.378e-05/0.1297, allocations: 3.984 kB / 450.5 MB, free: 8.754 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.213e-05/0.1298, allocations: 16 kB / 450.5 MB, free: 8.738 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.774e-05/0.1298, allocations: 15.92 kB / 450.5 MB, free: 8.723 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.474e-05/0.1299, allocations: 11.98 kB / 450.5 MB, free: 8.711 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003584/0.1302, allocations: 323.1 kB / 450.8 MB, free: 8.395 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1302, allocations: 0 / 450.8 MB, free: 8.395 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003594/0.1306, allocations: 67.84 kB / 450.9 MB, free: 8.328 MB / 334.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.001083/0.1317, allocations: 444.4 kB / 451.3 MB, free: 8.004 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000393/0.1321, allocations: 155.8 kB / 451.5 MB, free: 7.852 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.1321, allocations: 0 / 451.5 MB, free: 7.852 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000168/0.1323, allocations: 75.91 kB / 451.5 MB, free: 7.777 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004293/0.1327, allocations: 78.3 kB / 451.6 MB, free: 7.707 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009549/0.1337, allocations: 0.5046 MB / 452.1 MB, free: 7.172 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004369/0.1341, allocations: 0.7714 MB / 452.9 MB, free: 6.375 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001763/0.1343, allocations: 54.92 kB / 452.9 MB, free: 6.32 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.68e-05/0.1344, allocations: 23.44 kB / 453 MB, free: 6.297 MB / 334.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1344, allocations: 0 / 453 MB, free: 6.297 MB / 334.1 MB Notification: Performance of Templates: time 0.01033/0.1447, allocations: 4.317 MB / 457.3 MB, free: 1.984 MB / 334.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)