Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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) 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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(IndustrialControlSystems.Logical.Timers.Examples.testT_On,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On") translateModel(IndustrialControlSystems.Logical.Timers.Examples.testT_On,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001244/0.001244, allocations: 183.2 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05626/0.05626, allocations: 10.75 MB / 27.48 MB, free: 1.867 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.377/1.377, allocations: 205.1 MB / 235.7 MB, free: 11.74 MB / 202.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001018/0.001018, allocations: 106.3 kB / 285.5 MB, free: 12.86 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 0.0009811/0.0009811, allocations: 52.06 kB / 345.3 MB, free: 0.9766 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2289/0.2299, allocations: 49.02 MB / 394.3 MB, free: 35.56 MB / 298.8 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On): time 0.002974/0.2329, allocations: 2.04 MB / 396.3 MB, free: 33.51 MB / 298.8 MB Notification: Performance of NFInst.instExpressions: time 0.001563/0.2345, allocations: 1.167 MB / 397.5 MB, free: 32.33 MB / 298.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001052/0.2346, allocations: 3.938 kB / 397.5 MB, free: 32.33 MB / 298.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0007139/0.2353, allocations: 263.4 kB / 397.8 MB, free: 32.07 MB / 298.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0003119/0.2356, allocations: 175.5 kB / 397.9 MB, free: 31.9 MB / 298.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005204/0.2362, allocations: 269 kB / 398.2 MB, free: 31.64 MB / 298.8 MB Notification: Performance of NFFlatten.flatten: time 0.0002408/0.2364, allocations: 343.1 kB / 398.5 MB, free: 31.3 MB / 298.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000114/0.2365, allocations: 48.38 kB / 398.6 MB, free: 31.26 MB / 298.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001119/0.2367, allocations: 127.4 kB / 398.7 MB, free: 31.13 MB / 298.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001221/0.2368, allocations: 135.4 kB / 398.8 MB, free: 31 MB / 298.8 MB Notification: Performance of NFPackage.collectConstants: time 2.777e-05/0.2368, allocations: 11.94 kB / 398.9 MB, free: 30.99 MB / 298.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001397/0.237, allocations: 83.95 kB / 398.9 MB, free: 30.91 MB / 298.8 MB Notification: Performance of NFScalarize.scalarize: time 6.813e-05/0.237, allocations: 63.8 kB / 399 MB, free: 30.84 MB / 298.8 MB Notification: Performance of NFVerifyModel.verify: time 7.912e-05/0.2371, allocations: 111.2 kB / 399.1 MB, free: 30.73 MB / 298.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0002829/0.2374, allocations: 341 kB / 399.4 MB, free: 30.4 MB / 298.8 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.2374, allocations: 0 / 399.4 MB, free: 30.4 MB / 298.8 MB Notification: Performance of FrontEnd: time 8.62e-07/0.2374, allocations: 0 / 399.4 MB, free: 30.4 MB / 298.8 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.2375, allocations: 0 / 399.4 MB, free: 30.4 MB / 298.8 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.0008515/0.2383, allocations: 0.642 MB / 400.1 MB, free: 29.7 MB / 298.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.2384, allocations: 15.97 kB / 400.1 MB, free: 29.68 MB / 298.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.474e-05/0.2384, allocations: 28.56 kB / 400.1 MB, free: 29.66 MB / 298.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003564/0.2388, allocations: 320.3 kB / 400.4 MB, free: 29.3 MB / 298.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.806e-05/0.2388, allocations: 12.12 kB / 400.5 MB, free: 29.29 MB / 298.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.135e-05/0.2389, allocations: 12 kB / 400.5 MB, free: 29.28 MB / 298.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002608/0.2391, allocations: 156.1 kB / 400.6 MB, free: 29.11 MB / 298.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.838e-06/0.2391, allocations: 0 / 400.6 MB, free: 29.11 MB / 298.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.562e-05/0.2392, allocations: 0 / 400.6 MB, free: 29.11 MB / 298.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.2392, allocations: 4 kB / 400.6 MB, free: 29.11 MB / 298.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001442/0.2393, allocations: 71.89 kB / 400.7 MB, free: 29.04 MB / 298.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005699/0.2399, allocations: 484.2 kB / 401.2 MB, free: 28.52 MB / 298.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000276/0.2402, allocations: 138.7 kB / 401.3 MB, free: 28.37 MB / 298.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001019/0.2403, allocations: 60.83 kB / 401.4 MB, free: 28.31 MB / 298.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.863e-05/0.2403, allocations: 4 kB / 401.4 MB, free: 28.3 MB / 298.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002089/0.2405, allocations: 137.2 kB / 401.5 MB, free: 28.16 MB / 298.8 MB Notification: Performance of pre-optimization done (n=17): time 1.503e-06/0.2406, allocations: 0 / 401.5 MB, free: 28.16 MB / 298.8 MB Notification: Performance of matching and sorting (n=17): time 0.0004756/0.241, allocations: 269 kB / 401.8 MB, free: 27.89 MB / 298.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.495e-05/0.2411, allocations: 106.8 kB / 401.9 MB, free: 27.76 MB / 298.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002988/0.2414, allocations: 384.4 kB / 402.2 MB, free: 27.38 MB / 298.8 MB Notification: Performance of collectPreVariables (initialization): time 1.924e-05/0.2414, allocations: 33.7 kB / 402.3 MB, free: 27.34 MB / 298.8 MB Notification: Performance of collectInitialEqns (initialization): time 8.804e-05/0.2415, allocations: 164.4 kB / 402.4 MB, free: 27.17 MB / 298.8 MB Notification: Performance of collectInitialBindings (initialization): time 3.508e-05/0.2415, allocations: 43.45 kB / 402.5 MB, free: 27.12 MB / 298.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.918e-05/0.2416, allocations: 41.7 kB / 402.5 MB, free: 27.08 MB / 298.8 MB Notification: Performance of setup shared object (initialization): time 9.974e-05/0.2417, allocations: 350.7 kB / 402.9 MB, free: 26.73 MB / 298.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.622e-05/0.2418, allocations: 39.98 kB / 402.9 MB, free: 26.69 MB / 298.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000143/0.242, allocations: 151.5 kB / 403 MB, free: 26.5 MB / 298.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002701/0.2422, allocations: 192.4 kB / 403.2 MB, free: 26.28 MB / 298.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.2423, allocations: 4 kB / 403.2 MB, free: 26.28 MB / 298.8 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003152/0.2426, allocations: 221.1 kB / 403.5 MB, free: 26.05 MB / 298.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.2426, allocations: 7.938 kB / 403.5 MB, free: 26.05 MB / 298.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.794e-06/0.2426, allocations: 4 kB / 403.5 MB, free: 26.04 MB / 298.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.284e-05/0.2427, allocations: 4 kB / 403.5 MB, free: 26.04 MB / 298.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001299/0.2428, allocations: 27.92 kB / 403.5 MB, free: 26.01 MB / 298.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.166e-05/0.2428, allocations: 8.188 kB / 403.5 MB, free: 26 MB / 298.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001036/0.2429, allocations: 27.83 kB / 403.5 MB, free: 25.98 MB / 298.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.433e-05/0.2429, allocations: 11.94 kB / 403.5 MB, free: 25.96 MB / 298.8 MB Warning: Assuming fixed start value for the following 3 variables: timer.Q:DISCRETE(flow=false fixed = true ) "status of the timer" type: Boolean timer.run:DISCRETE(fixed = true ) "Flag: true while the timer is counting" 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: 22 ($PRE.timer.Sd,timer.startTime,$PRE.timer.startTime,$PRE.timer.Q,timer.Q,$PRE.timer.run,timer.run,$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,timer.Sd) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0002052/0.2431, allocations: 176 kB / 403.7 MB, free: 25.79 MB / 298.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.765e-05/0.2432, allocations: 27.62 kB / 403.7 MB, free: 25.76 MB / 298.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.779e-05/0.2433, allocations: 35.08 kB / 403.8 MB, free: 25.72 MB / 298.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.2433, allocations: 3.938 kB / 403.8 MB, free: 25.72 MB / 298.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.2433, allocations: 4 kB / 403.8 MB, free: 25.71 MB / 298.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.389e-06/0.2433, allocations: 3.984 kB / 403.8 MB, free: 25.71 MB / 298.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002298/0.2435, allocations: 289.4 kB / 404.1 MB, free: 25.38 MB / 298.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.2435, allocations: 4.125 kB / 404.1 MB, free: 25.38 MB / 298.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.12e-05/0.2436, allocations: 8 kB / 404.1 MB, free: 25.37 MB / 298.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.2436, allocations: 0 / 404.1 MB, free: 25.37 MB / 298.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.461e-05/0.2436, allocations: 4 kB / 404.1 MB, free: 25.36 MB / 298.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.2436, allocations: 0 / 404.1 MB, free: 25.36 MB / 298.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.2436, allocations: 0 / 404.1 MB, free: 25.36 MB / 298.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006438/0.2443, allocations: 0.9064 MB / 405 MB, free: 24.4 MB / 298.8 MB Notification: Performance of postOpt removeConstants (simulation): time 5.634e-05/0.2443, allocations: 104.8 kB / 405.1 MB, free: 24.28 MB / 298.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.899e-05/0.2444, allocations: 11.94 kB / 405.1 MB, free: 24.27 MB / 298.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.944e-05/0.2445, allocations: 15.92 kB / 405.1 MB, free: 24.25 MB / 298.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.196e-05/0.2445, allocations: 11.98 kB / 405.1 MB, free: 24.24 MB / 298.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.701e-05/0.2445, allocations: 8 kB / 405.1 MB, free: 24.23 MB / 298.8 MB Notification: Performance of sorting global known variables: time 0.0002112/0.2448, allocations: 279 kB / 405.4 MB, free: 23.96 MB / 298.8 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2448, allocations: 0 / 405.4 MB, free: 23.96 MB / 298.8 MB Notification: Performance of remove unused functions: time 0.0003669/0.2451, allocations: 67.91 kB / 405.5 MB, free: 23.89 MB / 298.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition3,$whenCondition2,$whenCondition1,timer.Q,timer.tr,timer.run,timer.startTime,timer.Sd,SetSignal.combiTimeTable.nextTimeEvent,SetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.y,ResetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 6 (timer.Sd,timer.startTime,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 (16): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0008438/0.246, allocations: 452.3 kB / 405.9 MB, free: 23.47 MB / 298.8 MB Notification: Performance of simCode: created initialization part: time 0.0002759/0.2463, allocations: 147.8 kB / 406.1 MB, free: 23.33 MB / 298.8 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.2463, allocations: 0 / 406.1 MB, free: 23.33 MB / 298.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001199/0.2464, allocations: 67.98 kB / 406.1 MB, free: 23.26 MB / 298.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003794/0.2468, allocations: 71.38 kB / 406.2 MB, free: 23.19 MB / 298.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006544/0.2475, allocations: 0.6731 MB / 406.9 MB, free: 22.48 MB / 298.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000156/0.2476, allocations: 0.7717 MB / 407.6 MB, free: 21.68 MB / 298.8 MB Notification: Performance of simCode: alias equations: time 0.0001061/0.2477, allocations: 46.23 kB / 407.7 MB, free: 21.63 MB / 298.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.839e-05/0.2478, allocations: 23.44 kB / 407.7 MB, free: 21.61 MB / 298.8 MB Notification: Performance of SimCode: time 2.11e-07/0.2478, allocations: 0 / 407.7 MB, free: 21.61 MB / 298.8 MB Notification: Performance of Templates: time 0.006277/0.2541, allocations: 3.995 MB / 411.7 MB, free: 17.61 MB / 298.8 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.sim & ./IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe 2>&1)