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.007923/0.007923, allocations: 98.39 kB / 15.73 MB, free: 5.98 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.001653/0.001653, allocations: 193.6 kB / 16.67 MB, free: 5.91 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.592/1.592, allocations: 205.1 MB / 222.6 MB, free: 4.348 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05825/0.05825, allocations: 10.74 MB / 280.6 MB, free: 10.25 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.001948/0.001948, allocations: 67.89 kB / 390.8 MB, free: 5.004 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4761/0.478, allocations: 49.02 MB / 439.8 MB, free: 5.34 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On): time 0.004624/0.4827, allocations: 2.001 MB / 441.8 MB, free: 3.934 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002431/0.4852, allocations: 1.177 MB / 443 MB, free: 3.121 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000279/0.4855, allocations: 1.375 kB / 443 MB, free: 3.121 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00113/0.4866, allocations: 280.4 kB / 443.3 MB, free: 3.039 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.0006609/0.4873, allocations: 191.6 kB / 443.5 MB, free: 2.957 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009927/0.4883, allocations: 282.7 kB / 443.8 MB, free: 2.809 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007213/0.489, allocations: 343 kB / 444.1 MB, free: 2.66 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001898/0.4892, allocations: 47.7 kB / 444.1 MB, free: 2.637 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003548/0.4896, allocations: 141.2 kB / 444.3 MB, free: 2.574 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002368/0.4898, allocations: 144.4 kB / 444.4 MB, free: 2.512 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.93e-05/0.4899, allocations: 21.25 kB / 444.4 MB, free: 2.508 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003418/0.4902, allocations: 106.9 kB / 444.6 MB, free: 2.48 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001221/0.4904, allocations: 71.83 kB / 444.6 MB, free: 2.449 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001331/0.4905, allocations: 119.6 kB / 444.7 MB, free: 2.363 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006012/0.4911, allocations: 358.3 kB / 445.1 MB, free: 2.219 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.4911, allocations: 0.6094 kB / 445.1 MB, free: 2.219 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.4911, allocations: 1.562 kB / 445.1 MB, free: 2.219 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.319e-05/0.4912, allocations: 0 / 445.1 MB, free: 2.219 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.001052/0.4922, allocations: 0.6575 MB / 445.7 MB, free: 1.625 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.834e-05/0.4923, allocations: 14.58 kB / 445.8 MB, free: 1.621 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.067e-05/0.4924, allocations: 31.64 kB / 445.8 MB, free: 1.605 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004356/0.4928, allocations: 325.6 kB / 446.1 MB, free: 1.332 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.508e-05/0.4928, allocations: 13.48 kB / 446.1 MB, free: 1.324 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.109e-05/0.4929, allocations: 12.86 kB / 446.1 MB, free: 1.32 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003542/0.4932, allocations: 150 kB / 446.3 MB, free: 1.23 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.4933, allocations: 5.125 kB / 446.3 MB, free: 1.227 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.165e-05/0.4933, allocations: 5.75 kB / 446.3 MB, free: 1.223 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.216e-06/0.4933, allocations: 3.219 kB / 446.3 MB, free: 1.223 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002035/0.4935, allocations: 68.52 kB / 446.4 MB, free: 1.199 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008093/0.4943, allocations: 475.2 kB / 446.8 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003749/0.4947, allocations: 140.2 kB / 447 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001624/0.4949, allocations: 56.41 kB / 447 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.383e-05/0.4949, allocations: 6.984 kB / 447 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000303/0.4952, allocations: 136.4 kB / 447.2 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.543e-06/0.4953, allocations: 0 / 447.2 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006626/0.4959, allocations: 270.8 kB / 447.4 MB, free: 0.543 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.849e-05/0.496, allocations: 108.4 kB / 447.5 MB, free: 428 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006263/0.4967, allocations: 381.2 kB / 447.9 MB, free: 232 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.613e-05/0.4967, allocations: 33.23 kB / 447.9 MB, free: 196 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001208/0.4968, allocations: 155.1 kB / 448.1 MB, free: 48 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.506e-05/0.4969, allocations: 50.36 kB / 448.1 MB, free: 4 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001017/0.497, allocations: 55.92 kB / 448.2 MB, free: 15.96 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002017/0.4972, allocations: 346.6 kB / 448.5 MB, free: 15.62 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00013/0.4974, allocations: 44.12 kB / 448.6 MB, free: 15.6 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002101/0.4976, allocations: 140.5 kB / 448.7 MB, free: 15.45 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000394/0.498, allocations: 195 kB / 448.9 MB, free: 15.3 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.642e-06/0.498, allocations: 5.188 kB / 448.9 MB, free: 15.29 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005042/0.4985, allocations: 219.4 kB / 449.1 MB, free: 15.17 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.964e-05/0.4986, allocations: 9.219 kB / 449.1 MB, free: 15.17 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/0.4986, allocations: 2.219 kB / 449.1 MB, free: 15.17 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.575e-05/0.4986, allocations: 3.469 kB / 449.1 MB, free: 15.17 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000179/0.4988, allocations: 35.05 kB / 449.2 MB, free: 15.16 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.335e-05/0.4988, allocations: 3.812 kB / 449.2 MB, free: 15.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001735/0.499, allocations: 24.53 kB / 449.2 MB, free: 15.14 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.551e-05/0.499, allocations: 15.5 kB / 449.2 MB, free: 15.14 MB / 334.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.0003137/0.4994, allocations: 174.3 kB / 449.4 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.469e-05/0.4994, allocations: 29.06 kB / 449.4 MB, free: 14.97 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.095e-05/0.4995, allocations: 37.66 kB / 449.4 MB, free: 14.94 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.4995, allocations: 2.406 kB / 449.4 MB, free: 14.94 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.4995, allocations: 128 / 449.4 MB, free: 14.94 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.4996, allocations: 8 kB / 449.5 MB, free: 14.93 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003794/0.4999, allocations: 295.9 kB / 449.7 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.993e-06/0.5, allocations: 0 / 449.7 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.775e-05/0.5, allocations: 6.719 kB / 449.8 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.5, allocations: 1.375 kB / 449.8 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.587e-05/0.5, allocations: 7.609 kB / 449.8 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.5, allocations: 3.938 kB / 449.8 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.5001, allocations: 0 / 449.8 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004852/0.5005, allocations: 259.1 kB / 450 MB, free: 14.47 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.272e-05/0.5007, allocations: 104 kB / 450.1 MB, free: 14.36 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.298e-05/0.5007, allocations: 7.281 kB / 450.1 MB, free: 14.36 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.84e-05/0.5008, allocations: 7.828 kB / 450.1 MB, free: 14.35 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.562e-05/0.5009, allocations: 14.48 kB / 450.1 MB, free: 14.34 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.316e-05/0.5009, allocations: 5.125 kB / 450.2 MB, free: 14.34 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004603/0.5014, allocations: 283.5 kB / 450.4 MB, free: 14.18 MB / 334.1 MB Notification: Performance of sort global known variables: time 5.199e-06/0.5014, allocations: 0 / 450.4 MB, free: 14.18 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004337/0.5018, allocations: 66.36 kB / 450.5 MB, free: 14.16 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: 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.001235/0.5031, allocations: 430.8 kB / 450.9 MB, free: 13.88 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004183/0.5035, allocations: 153.3 kB / 451.1 MB, free: 13.82 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.5035, allocations: 0 / 451.1 MB, free: 13.82 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002003/0.5037, allocations: 76.92 kB / 451.1 MB, free: 13.78 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005233/0.5043, allocations: 68.36 kB / 451.2 MB, free: 13.75 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009948/0.5053, allocations: 471.2 kB / 451.7 MB, free: 13.43 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000467/0.5058, allocations: 0.7794 MB / 452.4 MB, free: 12.68 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001868/0.506, allocations: 37.89 kB / 452.5 MB, free: 12.67 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.934e-05/0.5061, allocations: 29.3 kB / 452.5 MB, free: 12.66 MB / 334.1 MB Notification: Performance of SimCode: time 8.12e-07/0.5061, allocations: 0 / 452.5 MB, free: 12.66 MB / 334.1 MB Notification: Performance of Templates: time 0.01208/0.5182, allocations: 4.105 MB / 456.6 MB, free: 10.57 MB / 334.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 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe 2>&1)