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.001322/0.001322, allocations: 113.9 kB / 16.42 MB, free: 6.465 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.001352/0.001352, allocations: 187.9 kB / 17.35 MB, free: 5.715 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.2 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.0567/0.0567, allocations: 10.74 MB / 281.3 MB, free: 1.285 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.001452/0.001452, allocations: 72.36 kB / 391.5 MB, free: 45.99 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07701/0.07847, allocations: 49.02 MB / 440.5 MB, free: 3.816 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On): time 0.002778/0.08129, allocations: 1.986 MB / 442.5 MB, free: 1.812 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001367/0.08267, allocations: 1.174 MB / 443.7 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001114/0.08279, allocations: 0 / 443.7 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006974/0.0835, allocations: 283.2 kB / 444 MB, free: 360 kB / 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.0003386/0.08385, allocations: 202.2 kB / 444.2 MB, free: 160 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005796/0.08443, allocations: 275 kB / 444.4 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003509/0.0848, allocations: 355.1 kB / 444.8 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001468/0.08495, allocations: 44.33 kB / 444.8 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002366/0.0852, allocations: 143.4 kB / 445 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002515/0.08546, allocations: 143.4 kB / 445.1 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.008e-05/0.08552, allocations: 16 kB / 445.1 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002045/0.08573, allocations: 107.9 kB / 445.2 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001039/0.08584, allocations: 83.67 kB / 445.3 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001145/0.08596, allocations: 119.3 kB / 445.4 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004111/0.08638, allocations: 350.9 kB / 445.8 MB, free: 14.55 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.08639, allocations: 0 / 445.8 MB, free: 14.55 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.0864, allocations: 0 / 445.8 MB, free: 14.55 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.312e-06/0.08641, allocations: 0 / 445.8 MB, free: 14.55 MB / 334.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.0009549/0.08737, allocations: 0.6458 MB / 446.4 MB, free: 13.84 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.08742, allocations: 15.89 kB / 446.4 MB, free: 13.83 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.826e-05/0.0875, allocations: 32.56 kB / 446.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004155/0.08792, allocations: 328.1 kB / 446.8 MB, free: 13.44 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.715e-05/0.08796, allocations: 12.12 kB / 446.8 MB, free: 13.43 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.588e-05/0.08799, allocations: 12 kB / 446.8 MB, free: 13.41 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000308/0.08831, allocations: 152 kB / 447 MB, free: 13.25 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.08833, allocations: 7.938 kB / 447 MB, free: 13.24 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.966e-05/0.08835, allocations: 0 / 447 MB, free: 13.24 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.203e-06/0.08836, allocations: 4 kB / 447 MB, free: 13.24 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000183/0.08855, allocations: 71.89 kB / 447 MB, free: 13.17 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006778/0.08924, allocations: 472.4 kB / 447.5 MB, free: 12.66 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003298/0.08958, allocations: 138.8 kB / 447.6 MB, free: 12.51 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001287/0.08972, allocations: 60.83 kB / 447.7 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.135e-05/0.08975, allocations: 0 / 447.7 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002527/0.09001, allocations: 135.2 kB / 447.8 MB, free: 12.3 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.563e-06/0.09002, allocations: 4 kB / 447.8 MB, free: 12.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005663/0.09059, allocations: 259.3 kB / 448.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.263e-05/0.09065, allocations: 106.8 kB / 448.2 MB, free: 11.91 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004047/0.09106, allocations: 388.4 kB / 448.6 MB, free: 11.52 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.465e-05/0.0911, allocations: 33.7 kB / 448.6 MB, free: 11.48 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001066/0.09121, allocations: 152.4 kB / 448.8 MB, free: 11.33 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.134e-05/0.09126, allocations: 43.53 kB / 448.8 MB, free: 11.29 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.472e-05/0.09133, allocations: 49.7 kB / 448.8 MB, free: 11.23 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001286/0.09146, allocations: 354.7 kB / 449.2 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001091/0.09158, allocations: 39.98 kB / 449.2 MB, free: 10.84 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001744/0.09176, allocations: 144.2 kB / 449.4 MB, free: 10.65 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003022/0.09207, allocations: 188.3 kB / 449.6 MB, free: 10.44 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.09209, allocations: 3.938 kB / 449.6 MB, free: 10.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003881/0.09248, allocations: 225.2 kB / 449.8 MB, free: 10.21 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.832e-05/0.09251, allocations: 8 kB / 449.8 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.945e-05/0.09253, allocations: 4 kB / 449.8 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/0.09255, allocations: 7.938 kB / 449.8 MB, free: 10.19 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001307/0.09269, allocations: 31.92 kB / 449.8 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.242e-05/0.09271, allocations: 4 kB / 449.8 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001209/0.09283, allocations: 19.84 kB / 449.8 MB, free: 10.13 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.688e-05/0.09286, allocations: 11.98 kB / 449.9 MB, free: 10.12 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.0002208/0.09309, allocations: 180.2 kB / 450 MB, free: 9.934 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.922e-05/0.09314, allocations: 31.62 kB / 450.1 MB, free: 9.902 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.066e-05/0.09321, allocations: 27.08 kB / 450.1 MB, free: 9.871 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.09322, allocations: 4 kB / 450.1 MB, free: 9.867 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.09323, allocations: 3.984 kB / 450.1 MB, free: 9.863 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.251e-05/0.09331, allocations: 100.8 kB / 450.2 MB, free: 9.746 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.686e-05/0.09336, allocations: 11.94 kB / 450.2 MB, free: 9.734 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001034/0.09347, allocations: 11.98 kB / 450.2 MB, free: 9.723 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.152e-05/0.09352, allocations: 11.98 kB / 450.2 MB, free: 9.711 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004262/0.09396, allocations: 281.7 kB / 450.5 MB, free: 9.43 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0004431/0.09441, allocations: 393.7 kB / 450.9 MB, free: 9.031 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001353/0.09456, allocations: 75.91 kB / 451 MB, free: 8.957 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002746/0.09485, allocations: 275 kB / 451.2 MB, free: 8.691 MB / 334.1 MB Notification: Performance of Backend: time 4.41e-07/0.09486, allocations: 0 / 451.2 MB, free: 8.691 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001447/0.09631, allocations: 0.5313 MB / 451.8 MB, free: 8.281 MB / 334.1 MB Notification: Performance of SimCode: time 0.001009/0.09733, allocations: 0.9026 MB / 452.7 MB, free: 7.328 MB / 334.1 MB Notification: Performance of Templates: time 0.008328/0.1057, allocations: 4.208 MB / 456.9 MB, free: 3.125 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)