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.004931/0.004931, allocations: 103.2 kB / 15.73 MB, free: 6.035 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.001095/0.001095, allocations: 194.6 kB / 16.68 MB, free: 5.953 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.219/1.219, allocations: 205.1 MB / 222.5 MB, free: 4.492 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05444/0.05444, allocations: 10.73 MB / 280.6 MB, free: 10.41 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.001533/0.001533, allocations: 66.72 kB / 390.8 MB, free: 5.012 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2382/0.2398, allocations: 49.01 MB / 439.9 MB, free: 5.348 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge): time 0.002881/0.2427, allocations: 1.99 MB / 441.8 MB, free: 3.957 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001502/0.2442, allocations: 1.192 MB / 443 MB, free: 3.133 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001136/0.2443, allocations: 3.062 kB / 443 MB, free: 3.133 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008324/0.2452, allocations: 296.5 kB / 443.3 MB, free: 3.047 MB / 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.0003794/0.2456, allocations: 195 kB / 443.5 MB, free: 2.965 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000567/0.2462, allocations: 289.7 kB / 443.8 MB, free: 2.812 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003215/0.2465, allocations: 350.1 kB / 444.1 MB, free: 2.664 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001279/0.2466, allocations: 47.08 kB / 444.2 MB, free: 2.641 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001583/0.2468, allocations: 151.4 kB / 444.3 MB, free: 2.574 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001696/0.247, allocations: 151.7 kB / 444.5 MB, free: 2.512 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.353e-05/0.247, allocations: 21.34 kB / 444.5 MB, free: 2.508 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001908/0.2472, allocations: 108 kB / 444.6 MB, free: 2.484 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.08e-05/0.2473, allocations: 85.12 kB / 444.7 MB, free: 2.445 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.547e-05/0.2474, allocations: 126.2 kB / 444.8 MB, free: 2.355 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003851/0.2478, allocations: 377.9 kB / 445.2 MB, free: 2.203 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.2478, allocations: 0 / 445.2 MB, free: 2.203 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.2478, allocations: 0 / 445.2 MB, free: 2.203 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.541e-06/0.2478, allocations: 1.406 kB / 445.2 MB, free: 2.203 MB / 318.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.0007568/0.2486, allocations: 0.6652 MB / 445.9 MB, free: 1.609 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.154e-05/0.2486, allocations: 9.672 kB / 445.9 MB, free: 1.609 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.58e-05/0.2487, allocations: 32.14 kB / 445.9 MB, free: 1.594 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003417/0.249, allocations: 338.9 kB / 446.2 MB, free: 1.312 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.027e-05/0.2491, allocations: 13.25 kB / 446.2 MB, free: 1.305 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.642e-05/0.2491, allocations: 12.41 kB / 446.3 MB, free: 1.301 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002838/0.2494, allocations: 158.1 kB / 446.4 MB, free: 1.207 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.2494, allocations: 3.938 kB / 446.4 MB, free: 1.203 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.758e-05/0.2494, allocations: 2.141 kB / 446.4 MB, free: 1.203 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.314e-06/0.2494, allocations: 2.469 kB / 446.4 MB, free: 1.203 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000164/0.2496, allocations: 74.81 kB / 446.5 MB, free: 1.176 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005722/0.2502, allocations: 481.4 kB / 447 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003785/0.2506, allocations: 150.8 kB / 447.1 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001196/0.2507, allocations: 60.11 kB / 447.2 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.297e-05/0.2507, allocations: 2.984 kB / 447.2 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002461/0.251, allocations: 143 kB / 447.3 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of pre-optimization done (n=18): time 1.473e-06/0.251, allocations: 0 / 447.3 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of matching and sorting (n=18): time 0.0005325/0.2515, allocations: 289.6 kB / 447.6 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.256e-05/0.2516, allocations: 106.9 kB / 447.7 MB, free: 376 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000377/0.252, allocations: 415.2 kB / 448.1 MB, free: 128 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.81e-05/0.252, allocations: 32.73 kB / 448.1 MB, free: 92 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001144/0.2521, allocations: 163.6 kB / 448.3 MB, free: 15.94 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.24e-05/0.2522, allocations: 48.31 kB / 448.3 MB, free: 15.9 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.481e-05/0.2522, allocations: 51.81 kB / 448.4 MB, free: 15.86 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001232/0.2524, allocations: 343.1 kB / 448.7 MB, free: 15.52 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001162/0.2525, allocations: 49.14 kB / 448.8 MB, free: 15.5 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001684/0.2527, allocations: 155.5 kB / 448.9 MB, free: 15.34 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003107/0.253, allocations: 189.2 kB / 449.1 MB, free: 15.2 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.253, allocations: 1.438 kB / 449.1 MB, free: 15.2 MB / 334.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003486/0.2533, allocations: 230.1 kB / 449.3 MB, free: 15.07 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.388e-05/0.2534, allocations: 6.156 kB / 449.3 MB, free: 15.07 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.2534, allocations: 6.453 kB / 449.3 MB, free: 15.06 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.554e-05/0.2534, allocations: 7.094 kB / 449.4 MB, free: 15.06 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001064/0.2535, allocations: 35.17 kB / 449.4 MB, free: 15.05 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.594e-06/0.2535, allocations: 3.562 kB / 449.4 MB, free: 15.05 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001133/0.2536, allocations: 24.69 kB / 449.4 MB, free: 15.03 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.357e-05/0.2537, allocations: 8.562 kB / 449.4 MB, free: 15.03 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.0002/0.2539, allocations: 189.2 kB / 449.6 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.683e-05/0.2539, allocations: 29.91 kB / 449.6 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.124e-05/0.254, allocations: 34.34 kB / 449.7 MB, free: 14.83 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.254, allocations: 10.17 kB / 449.7 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.254, allocations: 1.219 kB / 449.7 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.254, allocations: 0 / 449.7 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002479/0.2543, allocations: 302.6 kB / 450 MB, free: 14.53 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.506e-06/0.2543, allocations: 3.984 kB / 450 MB, free: 14.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.187e-05/0.2543, allocations: 7.875 kB / 450 MB, free: 14.52 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.054e-05/0.2543, allocations: 0 / 450 MB, free: 14.52 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.426e-05/0.2544, allocations: 7.688 kB / 450 MB, free: 14.52 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.2544, allocations: 3.938 kB / 450 MB, free: 14.52 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.2544, allocations: 3.938 kB / 450 MB, free: 14.51 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004058/0.2548, allocations: 264.5 kB / 450.3 MB, free: 14.35 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.327e-05/0.2549, allocations: 108.8 kB / 450.4 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.402e-05/0.2549, allocations: 6.406 kB / 450.4 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.607e-05/0.255, allocations: 13.92 kB / 450.4 MB, free: 14.22 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.655e-05/0.2551, allocations: 13.89 kB / 450.4 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.78e-05/0.2551, allocations: 5.719 kB / 450.4 MB, free: 14.21 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002907/0.2554, allocations: 306.9 kB / 450.7 MB, free: 14.04 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2554, allocations: 4 kB / 450.7 MB, free: 14.04 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003002/0.2557, allocations: 69.14 kB / 450.8 MB, free: 14.02 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.0009093/0.2566, allocations: 429.2 kB / 451.2 MB, free: 13.74 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003393/0.257, allocations: 166.8 kB / 451.4 MB, free: 13.67 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.257, allocations: 8 kB / 451.4 MB, free: 13.66 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001467/0.2571, allocations: 79.28 kB / 451.4 MB, free: 13.63 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004084/0.2575, allocations: 70.05 kB / 451.5 MB, free: 13.59 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007028/0.2583, allocations: 498.9 kB / 452 MB, free: 13.27 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003055/0.2586, allocations: 0.7737 MB / 452.8 MB, free: 12.52 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001094/0.2587, allocations: 40.23 kB / 452.8 MB, free: 12.51 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.289e-05/0.2588, allocations: 34.52 kB / 452.8 MB, free: 12.49 MB / 334.1 MB Notification: Performance of SimCode: time 2.51e-07/0.2588, allocations: 0 / 452.8 MB, free: 12.49 MB / 334.1 MB Notification: Performance of Templates: time 0.007552/0.2663, allocations: 4.257 MB / 457.1 MB, free: 10.33 MB / 334.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.makefile (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)