Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Annex60_1.0.0_Annex60.Controls.Continuous.Examples.LimPIDWithReset.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/Annex60 1.0.0/package.mo", uses=false) Using package Annex60 with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/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(Annex60.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Controls.Continuous.Examples.LimPIDWithReset") translateModel(Annex60.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Controls.Continuous.Examples.LimPIDWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009332/0.0009332, allocations: 92.08 kB / 15.06 MB, free: 1.098 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.001499/0.0015, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.915/1.915, allocations: 205.4 MB / 222.1 MB, free: 5.883 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo): time 0.4584/0.4584, allocations: 55.01 MB / 325.4 MB, free: 0.6211 MB / 254.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: Annex60 requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005558/0.0005558, allocations: 12 kB / 396.6 MB, free: 11.79 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5429/0.5435, allocations: 60.72 MB / 457.4 MB, free: 37.83 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Annex60.Controls.Continuous.Examples.LimPIDWithReset): time 0.004557/0.5481, allocations: 3.522 MB / 460.9 MB, free: 37.57 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004255/0.5524, allocations: 1.353 MB / 462.2 MB, free: 37.41 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000547/0.553, allocations: 23.69 kB / 462.3 MB, free: 37.4 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003818/0.5534, allocations: 88.33 kB / 462.3 MB, free: 37.36 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000408/0.5538, allocations: 141.3 kB / 462.5 MB, free: 37.3 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00104/0.5549, allocations: 306.2 kB / 462.8 MB, free: 37.29 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000906/0.5558, allocations: 0.8575 MB / 463.6 MB, free: 36.87 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005344/0.5563, allocations: 299.4 kB / 463.9 MB, free: 36.76 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002821/0.5566, allocations: 233.8 kB / 464.2 MB, free: 36.66 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002708/0.5569, allocations: 241.5 kB / 464.4 MB, free: 36.54 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.806e-05/0.557, allocations: 25.69 kB / 464.4 MB, free: 36.54 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.031e-05/0.557, allocations: 23.22 kB / 464.4 MB, free: 36.54 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.22e-05/0.5571, allocations: 98.3 kB / 464.5 MB, free: 36.49 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001369/0.5573, allocations: 160.1 kB / 464.7 MB, free: 36.38 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006432/0.5579, allocations: 0.8133 MB / 465.5 MB, free: 36.21 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.227e-06/0.5579, allocations: 0.9688 kB / 465.5 MB, free: 36.21 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.956e-06/0.558, allocations: 0 / 465.5 MB, free: 36.21 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.868e-06/0.558, allocations: 0 / 465.5 MB, free: 36.21 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 148 * Number of variables: 148 Notification: Performance of Generate backend data structure: time 0.001822/0.5598, allocations: 0.9662 MB / 466.5 MB, free: 35.55 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.818e-05/0.5599, allocations: 12.53 kB / 466.5 MB, free: 35.54 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001616/0.56, allocations: 84.31 kB / 466.6 MB, free: 35.5 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009036/0.561, allocations: 0.5533 MB / 467.1 MB, free: 35.11 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.572e-05/0.561, allocations: 45.62 kB / 467.2 MB, free: 35.09 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.282e-05/0.5611, allocations: 58.5 kB / 467.2 MB, free: 35.07 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001086/0.5622, allocations: 0.615 MB / 467.8 MB, free: 34.78 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.384e-05/0.5623, allocations: 4.531 kB / 467.8 MB, free: 34.78 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.42e-05/0.5623, allocations: 26.75 kB / 467.9 MB, free: 34.76 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.661e-05/0.5623, allocations: 15.16 kB / 467.9 MB, free: 34.76 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000891/0.5632, allocations: 470.6 kB / 468.3 MB, free: 34.6 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002458/0.5657, allocations: 2.048 MB / 470.4 MB, free: 33.38 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007927/0.5665, allocations: 453 kB / 470.8 MB, free: 33.2 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004073/0.5669, allocations: 244 kB / 471.1 MB, free: 33.11 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.375e-05/0.567, allocations: 11.28 kB / 471.1 MB, free: 33.1 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005519/0.5676, allocations: 263.5 kB / 471.3 MB, free: 32.98 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 1.974e-06/0.5676, allocations: 0 / 471.3 MB, free: 32.98 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.001177/0.5688, allocations: 0.5996 MB / 471.9 MB, free: 32.73 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.608e-05/0.5688, allocations: 58.84 kB / 472 MB, free: 32.67 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004939/0.5693, allocations: 445.3 kB / 472.4 MB, free: 32.45 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.525e-05/0.5693, allocations: 37.05 kB / 472.5 MB, free: 32.41 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002396/0.5696, allocations: 333.1 kB / 472.8 MB, free: 32.15 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001192/0.5697, allocations: 168.4 kB / 473 MB, free: 32.02 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.366e-05/0.5698, allocations: 11.69 kB / 473 MB, free: 32.01 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001086/0.5699, allocations: 369.1 kB / 473.3 MB, free: 31.67 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003455/0.5702, allocations: 174.2 kB / 473.5 MB, free: 31.61 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003744/0.5706, allocations: 253.4 kB / 473.7 MB, free: 31.46 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000403/0.571, allocations: 223.9 kB / 474 MB, free: 31.34 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.571, allocations: 6.812 kB / 474 MB, free: 31.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009311/0.572, allocations: 0.5665 MB / 474.5 MB, free: 31.07 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001153/0.5721, allocations: 184 kB / 474.7 MB, free: 30.87 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.431e-05/0.5721, allocations: 5.891 kB / 474.7 MB, free: 30.87 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.293e-05/0.5721, allocations: 7.031 kB / 474.7 MB, free: 30.87 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004894/0.5726, allocations: 116.1 kB / 474.8 MB, free: 30.86 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.402e-05/0.5727, allocations: 4.656 kB / 474.8 MB, free: 30.86 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003547/0.573, allocations: 70.47 kB / 474.9 MB, free: 30.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.095e-05/0.5731, allocations: 21.48 kB / 474.9 MB, free: 30.81 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.035e-06/0.5731, allocations: 4.75 kB / 474.9 MB, free: 30.81 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008146/0.5739, allocations: 0.4927 MB / 475.4 MB, free: 30.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.5739, allocations: 2.688 kB / 475.4 MB, free: 30.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.294e-06/0.5739, allocations: 5.375 kB / 475.4 MB, free: 30.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003798/0.5743, allocations: 107.4 kB / 475.5 MB, free: 30.58 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.745e-06/0.5743, allocations: 7.312 kB / 475.6 MB, free: 30.58 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002667/0.5746, allocations: 65.27 kB / 475.6 MB, free: 30.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.071e-05/0.5747, allocations: 21.97 kB / 475.6 MB, free: 30.54 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition1,conWitRes.trigger.y,conNoRes.trigger.y,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conNoRes.conPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003297/0.575, allocations: 278.7 kB / 475.9 MB, free: 30.3 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.356e-05/0.5751, allocations: 60.39 kB / 476 MB, free: 30.27 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001351/0.5752, allocations: 69.41 kB / 476 MB, free: 30.22 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.504e-06/0.5752, allocations: 2.562 kB / 476 MB, free: 30.22 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.023e-05/0.5753, allocations: 4.781 kB / 476 MB, free: 30.22 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.468e-06/0.5753, allocations: 7.359 kB / 476.1 MB, free: 30.21 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001788/0.5771, allocations: 1.192 MB / 477.2 MB, free: 29.54 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.5771, allocations: 3.031 kB / 477.2 MB, free: 29.54 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004439/0.5775, allocations: 95.22 kB / 477.3 MB, free: 29.54 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.528e-06/0.5776, allocations: 0 / 477.3 MB, free: 29.54 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.642e-05/0.5776, allocations: 16.73 kB / 477.4 MB, free: 29.53 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.372e-06/0.5776, allocations: 0 / 477.4 MB, free: 29.53 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.5776, allocations: 4.875 kB / 477.4 MB, free: 29.52 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001171/0.5788, allocations: 0.7713 MB / 478.1 MB, free: 29.13 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001504/0.579, allocations: 173.9 kB / 478.3 MB, free: 28.97 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.306e-05/0.579, allocations: 11.34 kB / 478.3 MB, free: 28.96 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002582/0.5793, allocations: 29.16 kB / 478.3 MB, free: 28.96 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.28e-05/0.5794, allocations: 40.08 kB / 478.4 MB, free: 28.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.644e-05/0.5794, allocations: 18 kB / 478.4 MB, free: 28.94 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002914/0.5797, allocations: 313 kB / 478.7 MB, free: 28.79 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.5797, allocations: 0 / 478.7 MB, free: 28.79 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007013/0.5804, allocations: 254.4 kB / 479 MB, free: 28.71 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (plaWitRes.cap.T,plaWitRes.cap1.T,conWitRes.conPID.I.y,plaNoRes.cap.T,plaNoRes.cap1.T,conNoRes.conPID.I.y) * Number of discrete variables: 6 (conWitRes.trigger.y,$whenCondition2,$whenCondition1,conNoRes.trigger.y,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001603/0.5806, allocations: 118.1 kB / 479.1 MB, free: 28.61 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001299/0.5819, allocations: 0.7816 MB / 479.9 MB, free: 28.26 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.5819, allocations: 5.656 kB / 479.9 MB, free: 28.25 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004286/0.5824, allocations: 217.7 kB / 480.1 MB, free: 28.18 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008438/0.5832, allocations: 146.5 kB / 480.2 MB, free: 28.14 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002806/0.586, allocations: 1.642 MB / 481.9 MB, free: 27.15 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003338/0.5864, allocations: 0.8911 MB / 482.7 MB, free: 26.45 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003909/0.5868, allocations: 74.92 kB / 482.8 MB, free: 26.43 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001244/0.5869, allocations: 42.72 kB / 482.9 MB, free: 26.41 MB / 382.1 MB Notification: Performance of SimCode: time 1.021e-06/0.5869, allocations: 0 / 482.9 MB, free: 26.41 MB / 382.1 MB Notification: Performance of Templates: time 0.01433/0.6013, allocations: 5.904 MB / 488.8 MB, free: 26.02 MB / 382.1 MB make -j1 -f Annex60_1.0.0_Annex60.Controls.Continuous.Examples.LimPIDWithReset.makefile Environment - environmentSimulation: (rm -f Annex60_1.0.0_Annex60.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Annex60_1.0.0_Annex60.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Annex60_1.0.0_Annex60.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Annex60_1.0.0_Annex60.Controls.Continuous.Examples.LimPIDWithReset.sim & ./Annex60_1.0.0_Annex60.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > Annex60_1.0.0_Annex60.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) Environment - environmentSimulation: