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/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001147/0.001147, allocations: 110.3 kB / 16.37 MB, free: 6.012 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.001158/0.001158, allocations: 194.6 kB / 17.31 MB, free: 5.613 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.28/1.28, allocations: 205.1 MB / 223.2 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05504/0.05504, allocations: 10.73 MB / 281.3 MB, free: 1.316 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: 64.47 kB / 342 MB, free: 4.457 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2059/0.2074, allocations: 49.01 MB / 391 MB, free: 49.98 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On): time 0.003033/0.2104, allocations: 1.995 MB / 393 MB, free: 48.6 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001431/0.2119, allocations: 1.174 MB / 394.2 MB, free: 47.8 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.314e-05/0.212, allocations: 6.688 kB / 394.2 MB, free: 47.79 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006985/0.2127, allocations: 282.3 kB / 394.5 MB, free: 47.71 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.0003726/0.2131, allocations: 187 kB / 394.6 MB, free: 47.63 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00059/0.2137, allocations: 292.3 kB / 394.9 MB, free: 47.48 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003321/0.214, allocations: 343.1 kB / 395.3 MB, free: 47.34 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001333/0.2141, allocations: 49.95 kB / 395.3 MB, free: 47.32 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001605/0.2143, allocations: 142 kB / 395.4 MB, free: 47.25 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001654/0.2145, allocations: 140.6 kB / 395.6 MB, free: 47.2 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.351e-05/0.2145, allocations: 16.56 kB / 395.6 MB, free: 47.2 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000207/0.2147, allocations: 103.3 kB / 395.7 MB, free: 47.17 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000104/0.2148, allocations: 78.05 kB / 395.8 MB, free: 47.13 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.445e-05/0.215, allocations: 117.3 kB / 395.9 MB, free: 47.05 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000409/0.2154, allocations: 355.2 kB / 396.2 MB, free: 46.91 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.2154, allocations: 1.125 kB / 396.2 MB, free: 46.91 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2154, allocations: 4 kB / 396.2 MB, free: 46.9 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.2154, allocations: 0 / 396.2 MB, free: 46.9 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.0008169/0.2162, allocations: 0.641 MB / 396.9 MB, free: 46.33 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.556e-05/0.2163, allocations: 12.92 kB / 396.9 MB, free: 46.32 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.291e-05/0.2163, allocations: 35.19 kB / 396.9 MB, free: 46.3 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003432/0.2167, allocations: 324.2 kB / 397.2 MB, free: 46.03 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.978e-05/0.2167, allocations: 18.91 kB / 397.3 MB, free: 46.02 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.307e-05/0.2167, allocations: 8.672 kB / 397.3 MB, free: 46.02 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002826/0.217, allocations: 157 kB / 397.4 MB, free: 45.93 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.2171, allocations: 0 / 397.4 MB, free: 45.93 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.825e-05/0.2171, allocations: 6.438 kB / 397.4 MB, free: 45.92 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.052e-06/0.2171, allocations: 3.094 kB / 397.4 MB, free: 45.92 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001714/0.2173, allocations: 67.02 kB / 397.5 MB, free: 45.9 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000589/0.2179, allocations: 480.9 kB / 398 MB, free: 45.54 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002981/0.2182, allocations: 139.5 kB / 398.1 MB, free: 45.47 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001136/0.2183, allocations: 56.39 kB / 398.2 MB, free: 45.45 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.5e-05/0.2183, allocations: 6.469 kB / 398.2 MB, free: 45.44 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002411/0.2186, allocations: 131.9 kB / 398.3 MB, free: 45.36 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 2.525e-06/0.2186, allocations: 3.984 kB / 398.3 MB, free: 45.36 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005304/0.2191, allocations: 267.3 kB / 398.6 MB, free: 45.25 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.044e-05/0.2192, allocations: 108.1 kB / 398.7 MB, free: 45.12 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003613/0.2195, allocations: 384.9 kB / 399 MB, free: 44.93 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.886e-05/0.2196, allocations: 33.09 kB / 399.1 MB, free: 44.89 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.785e-05/0.2197, allocations: 155.1 kB / 399.2 MB, free: 44.75 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.431e-05/0.2197, allocations: 50.47 kB / 399.3 MB, free: 44.71 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.751e-05/0.2198, allocations: 49.47 kB / 399.3 MB, free: 44.68 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.97e-05/0.2198, allocations: 345.5 kB / 399.7 MB, free: 44.36 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.545e-05/0.2199, allocations: 47 kB / 399.7 MB, free: 44.34 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001318/0.2201, allocations: 137.3 kB / 399.8 MB, free: 44.21 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002539/0.2203, allocations: 192.5 kB / 400 MB, free: 44.06 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/0.2203, allocations: 1 kB / 400 MB, free: 44.06 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003169/0.2206, allocations: 218.6 kB / 400.2 MB, free: 43.94 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.313e-05/0.2207, allocations: 7.156 kB / 400.3 MB, free: 43.94 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.2207, allocations: 1.469 kB / 400.3 MB, free: 43.94 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.518e-05/0.2207, allocations: 8.438 kB / 400.3 MB, free: 43.93 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001141/0.2208, allocations: 34.55 kB / 400.3 MB, free: 43.92 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.626e-06/0.2208, allocations: 3.062 kB / 400.3 MB, free: 43.92 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001085/0.2209, allocations: 24.73 kB / 400.3 MB, free: 43.91 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.631e-05/0.221, allocations: 16.66 kB / 400.3 MB, free: 43.9 MB / 318.1 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.0001686/0.2211, allocations: 173.5 kB / 400.5 MB, free: 43.75 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.25e-05/0.2212, allocations: 33.17 kB / 400.5 MB, free: 43.73 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.629e-05/0.2213, allocations: 29.52 kB / 400.6 MB, free: 43.71 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.2213, allocations: 2.562 kB / 400.6 MB, free: 43.71 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.2213, allocations: 3.938 kB / 400.6 MB, free: 43.7 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.2213, allocations: 0 / 400.6 MB, free: 43.7 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001992/0.2215, allocations: 291.1 kB / 400.9 MB, free: 43.42 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.2215, allocations: 1.125 kB / 400.9 MB, free: 43.42 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.21e-05/0.2215, allocations: 6.281 kB / 400.9 MB, free: 43.42 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.2215, allocations: 5.094 kB / 400.9 MB, free: 43.41 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.623e-05/0.2216, allocations: 14.2 kB / 400.9 MB, free: 43.4 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.043e-06/0.2216, allocations: 5.25 kB / 400.9 MB, free: 43.4 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.2216, allocations: 0 / 400.9 MB, free: 43.4 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003703/0.2219, allocations: 244.5 kB / 401.1 MB, free: 43.25 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.603e-05/0.222, allocations: 108.9 kB / 401.2 MB, free: 43.13 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.185e-05/0.2221, allocations: 6.25 kB / 401.2 MB, free: 43.13 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.202e-05/0.2221, allocations: 8.797 kB / 401.3 MB, free: 43.12 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.545e-05/0.2222, allocations: 21.89 kB / 401.3 MB, free: 43.11 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.876e-05/0.2222, allocations: 5.75 kB / 401.3 MB, free: 43.11 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002505/0.2225, allocations: 283.2 kB / 401.6 MB, free: 42.94 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2225, allocations: 1.094 kB / 401.6 MB, free: 42.94 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003136/0.2228, allocations: 58.78 kB / 401.6 MB, free: 42.93 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: 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.0009367/0.2237, allocations: 450.9 kB / 402.1 MB, free: 42.72 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003481/0.2241, allocations: 158.2 kB / 402.2 MB, free: 42.65 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.2241, allocations: 0 / 402.2 MB, free: 42.65 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001358/0.2243, allocations: 63.89 kB / 402.3 MB, free: 42.62 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003795/0.2246, allocations: 90.7 kB / 402.4 MB, free: 42.57 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006302/0.2253, allocations: 453.2 kB / 402.8 MB, free: 42.27 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001945/0.2255, allocations: 0.7668 MB / 403.6 MB, free: 41.54 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001072/0.2256, allocations: 41.89 kB / 403.6 MB, free: 41.52 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.875e-05/0.2257, allocations: 29.7 kB / 403.6 MB, free: 41.5 MB / 318.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2257, allocations: 0 / 403.6 MB, free: 41.5 MB / 318.1 MB Notification: Performance of Templates: time 0.00728/0.233, allocations: 4.077 MB / 407.7 MB, free: 39.46 MB / 318.1 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 -s gbode -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe 2>&1)