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.000962/0.0009621, allocations: 104.8 kB / 16.35 MB, free: 6.289 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.001036/0.001036, allocations: 192.7 kB / 17.29 MB, free: 5.863 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.301/1.301, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05643/0.05643, allocations: 10.73 MB / 281.3 MB, free: 1.305 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.001419/0.001419, allocations: 67.91 kB / 342 MB, free: 4.441 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2284/0.2299, allocations: 49 MB / 391 MB, free: 49.93 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge): time 0.002979/0.2329, allocations: 1.998 MB / 393 MB, free: 48.55 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001655/0.2345, allocations: 1.184 MB / 394.2 MB, free: 47.73 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001127/0.2347, allocations: 2.75 kB / 394.2 MB, free: 47.73 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008039/0.2355, allocations: 300.3 kB / 394.5 MB, free: 47.65 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.0004268/0.2359, allocations: 196.1 kB / 394.7 MB, free: 47.57 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000682/0.2366, allocations: 289.5 kB / 394.9 MB, free: 47.42 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003787/0.237, allocations: 356.4 kB / 395.3 MB, free: 47.27 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000141/0.2372, allocations: 46.72 kB / 395.3 MB, free: 47.25 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001836/0.2374, allocations: 143 kB / 395.5 MB, free: 47.19 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001919/0.2376, allocations: 153.8 kB / 395.6 MB, free: 47.12 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.964e-05/0.2376, allocations: 19.09 kB / 395.6 MB, free: 47.12 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002167/0.2378, allocations: 108.1 kB / 395.7 MB, free: 47.1 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.854e-05/0.2379, allocations: 84 kB / 395.8 MB, free: 47.06 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001107/0.238, allocations: 130.3 kB / 396 MB, free: 46.97 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000597/0.2386, allocations: 373.6 kB / 396.3 MB, free: 46.82 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.2387, allocations: 1.531 kB / 396.3 MB, free: 46.82 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.2387, allocations: 0 / 396.3 MB, free: 46.82 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.602e-06/0.2387, allocations: 0 / 396.3 MB, free: 46.82 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.0008829/0.2396, allocations: 0.6629 MB / 397 MB, free: 46.23 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.727e-05/0.2396, allocations: 9.25 kB / 397 MB, free: 46.23 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.493e-05/0.2397, allocations: 32.5 kB / 397 MB, free: 46.21 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003901/0.2401, allocations: 337.7 kB / 397.4 MB, free: 45.93 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.414e-05/0.2401, allocations: 17.83 kB / 397.4 MB, free: 45.92 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.707e-05/0.2402, allocations: 8.109 kB / 397.4 MB, free: 45.92 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002975/0.2405, allocations: 155.9 kB / 397.5 MB, free: 45.83 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.2405, allocations: 0 / 397.5 MB, free: 45.83 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.922e-05/0.2405, allocations: 6.781 kB / 397.5 MB, free: 45.83 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.253e-06/0.2405, allocations: 10.39 kB / 397.6 MB, free: 45.82 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001759/0.2407, allocations: 69.61 kB / 397.6 MB, free: 45.8 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006508/0.2414, allocations: 490 kB / 398.1 MB, free: 45.43 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003983/0.2418, allocations: 142.9 kB / 398.2 MB, free: 45.37 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001259/0.2419, allocations: 60.08 kB / 398.3 MB, free: 45.34 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.387e-05/0.2419, allocations: 2.094 kB / 398.3 MB, free: 45.34 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002565/0.2422, allocations: 141.3 kB / 398.4 MB, free: 45.26 MB / 318.1 MB Notification: Performance of pre-optimization done (n=18): time 1.653e-06/0.2422, allocations: 0 / 398.4 MB, free: 45.26 MB / 318.1 MB Notification: Performance of matching and sorting (n=18): time 0.0005969/0.2428, allocations: 290.4 kB / 398.7 MB, free: 45.14 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.8e-05/0.2429, allocations: 112.5 kB / 398.8 MB, free: 45.01 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004221/0.2433, allocations: 419 kB / 399.2 MB, free: 44.8 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.111e-05/0.2433, allocations: 33.38 kB / 399.3 MB, free: 44.77 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.19e-05/0.2434, allocations: 160.2 kB / 399.4 MB, free: 44.63 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.057e-05/0.2435, allocations: 50.56 kB / 399.5 MB, free: 44.59 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.474e-05/0.2436, allocations: 46.06 kB / 399.5 MB, free: 44.56 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.964e-05/0.2436, allocations: 353.6 kB / 399.9 MB, free: 44.23 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001095/0.2438, allocations: 50.12 kB / 399.9 MB, free: 44.21 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001344/0.2439, allocations: 142.8 kB / 400.1 MB, free: 44.07 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002764/0.2442, allocations: 192.8 kB / 400.2 MB, free: 43.92 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.407e-06/0.2442, allocations: 2.031 kB / 400.2 MB, free: 43.92 MB / 318.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0003621/0.2446, allocations: 229.8 kB / 400.5 MB, free: 43.79 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/0.2446, allocations: 5.625 kB / 400.5 MB, free: 43.79 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.2446, allocations: 2.375 kB / 400.5 MB, free: 43.79 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.605e-05/0.2446, allocations: 3.656 kB / 400.5 MB, free: 43.79 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001054/0.2447, allocations: 31.33 kB / 400.5 MB, free: 43.78 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.644e-06/0.2447, allocations: 3.469 kB / 400.5 MB, free: 43.78 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001121/0.2449, allocations: 29.11 kB / 400.5 MB, free: 43.76 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.567e-05/0.2449, allocations: 8.156 kB / 400.6 MB, free: 43.76 MB / 318.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.0001784/0.2451, allocations: 192.7 kB / 400.7 MB, free: 43.6 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.549e-05/0.2451, allocations: 34.75 kB / 400.8 MB, free: 43.58 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.429e-05/0.2452, allocations: 33.97 kB / 400.8 MB, free: 43.55 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.2452, allocations: 1.906 kB / 400.8 MB, free: 43.55 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.2452, allocations: 1.062 kB / 400.8 MB, free: 43.55 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.2452, allocations: 0 / 400.8 MB, free: 43.55 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002181/0.2454, allocations: 298.6 kB / 401.1 MB, free: 43.27 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.2454, allocations: 4 kB / 401.1 MB, free: 43.26 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.364e-05/0.2455, allocations: 10.75 kB / 401.1 MB, free: 43.26 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.764e-06/0.2455, allocations: 1.062 kB / 401.1 MB, free: 43.26 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.707e-05/0.2455, allocations: 11.39 kB / 401.1 MB, free: 43.25 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.2455, allocations: 0 / 401.1 MB, free: 43.25 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.2455, allocations: 1.094 kB / 401.1 MB, free: 43.25 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003919/0.2459, allocations: 259.5 kB / 401.4 MB, free: 43.09 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.289e-05/0.246, allocations: 112.7 kB / 401.5 MB, free: 42.97 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.686e-05/0.2461, allocations: 10.39 kB / 401.5 MB, free: 42.96 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.869e-05/0.2461, allocations: 9.75 kB / 401.5 MB, free: 42.96 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.619e-05/0.2462, allocations: 14.09 kB / 401.5 MB, free: 42.95 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.08e-05/0.2462, allocations: 9.672 kB / 401.5 MB, free: 42.95 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002733/0.2465, allocations: 303.5 kB / 401.8 MB, free: 42.78 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2465, allocations: 0 / 401.8 MB, free: 42.78 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003258/0.2468, allocations: 69.45 kB / 401.9 MB, free: 42.76 MB / 318.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.0009208/0.2478, allocations: 449.8 kB / 402.3 MB, free: 42.55 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003452/0.2481, allocations: 160.7 kB / 402.5 MB, free: 42.48 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.2482, allocations: 0 / 402.5 MB, free: 42.48 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001483/0.2483, allocations: 75.06 kB / 402.6 MB, free: 42.45 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003884/0.2487, allocations: 92.09 kB / 402.7 MB, free: 42.4 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006669/0.2494, allocations: 492 kB / 403.1 MB, free: 42.08 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001794/0.2496, allocations: 0.7662 MB / 403.9 MB, free: 41.35 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001166/0.2497, allocations: 52.86 kB / 404 MB, free: 41.32 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.315e-05/0.2498, allocations: 30.12 kB / 404 MB, free: 41.31 MB / 318.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2498, allocations: 0 / 404 MB, free: 41.31 MB / 318.1 MB Notification: Performance of Templates: time 0.007384/0.2572, allocations: 4.237 MB / 408.2 MB, free: 39.11 MB / 318.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 -s gbode -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_OffDelay_Fedge.pipe 2>&1)