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.001829/0.001829, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002189/0.002189, allocations: 194.8 kB / 16.53 MB, free: 6.664 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.697/1.697, allocations: 205.1 MB / 222.4 MB, free: 4.594 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo): time 0.3968/0.3968, allocations: 54.94 MB / 324.7 MB, free: 15.99 MB / 270.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.001859/0.00186, allocations: 71.91 kB / 395.3 MB, free: 11.81 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1463/0.1482, allocations: 59.6 MB / 454.9 MB, free: 152 kB / 382.1 MB Notification: Performance of NFInst.instantiate(Annex60.Controls.Continuous.Examples.LimPIDWithReset): time 0.2731/0.4213, allocations: 4.103 MB / 459 MB, free: 38.23 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003037/0.4244, allocations: 1.44 MB / 460.5 MB, free: 37.75 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004517/0.4249, allocations: 26.09 kB / 460.5 MB, free: 37.74 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000367/0.4253, allocations: 128.3 kB / 460.6 MB, free: 37.65 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003434/0.4257, allocations: 184 kB / 460.8 MB, free: 37.52 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008747/0.4266, allocations: 461.5 kB / 461.2 MB, free: 37.24 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007535/0.4273, allocations: 0.9766 MB / 462.2 MB, free: 36.71 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006043/0.4279, allocations: 460.2 kB / 462.7 MB, free: 36.51 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002923/0.4282, allocations: 334.8 kB / 463 MB, free: 36.33 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002699/0.4285, allocations: 337.2 kB / 463.3 MB, free: 36.14 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001018/0.4286, allocations: 93.28 kB / 463.4 MB, free: 36.14 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001011/0.4287, allocations: 90.72 kB / 463.5 MB, free: 36.14 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001198/0.4288, allocations: 192.1 kB / 463.7 MB, free: 36 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002474/0.4291, allocations: 393 kB / 464.1 MB, free: 35.73 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006915/0.4298, allocations: 1.052 MB / 465.1 MB, free: 35.29 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.4298, allocations: 4.812 kB / 465.1 MB, free: 35.28 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.4298, allocations: 0 / 465.1 MB, free: 35.28 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.18e-05/0.4298, allocations: 1.125 kB / 465.1 MB, free: 35.28 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.001788/0.4316, allocations: 1.082 MB / 466.2 MB, free: 34.52 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.242e-05/0.4317, allocations: 8.75 kB / 466.2 MB, free: 34.52 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000144/0.4318, allocations: 90.81 kB / 466.3 MB, free: 34.48 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000719/0.4326, allocations: 0.5588 MB / 466.9 MB, free: 34.06 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.186e-05/0.4326, allocations: 42.97 kB / 466.9 MB, free: 34.04 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001005/0.4327, allocations: 65.11 kB / 467 MB, free: 34.02 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009929/0.4337, allocations: 0.6176 MB / 467.6 MB, free: 33.72 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.409e-05/0.4338, allocations: 3.906 kB / 467.6 MB, free: 33.72 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.415e-05/0.4338, allocations: 23.75 kB / 467.6 MB, free: 33.7 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.644e-05/0.4338, allocations: 14.34 kB / 467.6 MB, free: 33.7 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008716/0.4347, allocations: 468.6 kB / 468.1 MB, free: 33.54 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002451/0.4372, allocations: 2.04 MB / 470.1 MB, free: 32.3 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000808/0.438, allocations: 449.4 kB / 470.6 MB, free: 32.12 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003853/0.4384, allocations: 236.5 kB / 470.8 MB, free: 32.03 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.622e-05/0.4384, allocations: 9.188 kB / 470.8 MB, free: 32.03 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000559/0.439, allocations: 263 kB / 471.1 MB, free: 31.9 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 2.735e-06/0.439, allocations: 0 / 471.1 MB, free: 31.9 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.001162/0.4402, allocations: 0.5862 MB / 471.7 MB, free: 31.66 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.612e-05/0.4402, allocations: 58.31 kB / 471.7 MB, free: 31.6 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000385/0.4406, allocations: 456.7 kB / 472.2 MB, free: 31.37 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.031e-05/0.4407, allocations: 39.2 kB / 472.2 MB, free: 31.33 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001682/0.4408, allocations: 322.4 kB / 472.5 MB, free: 31.07 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.09e-05/0.4409, allocations: 167.5 kB / 472.7 MB, free: 30.95 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001187/0.4411, allocations: 92.53 kB / 472.8 MB, free: 30.89 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001147/0.4412, allocations: 367.8 kB / 473.1 MB, free: 30.55 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003518/0.4415, allocations: 177.6 kB / 473.3 MB, free: 30.48 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003682/0.4419, allocations: 252.2 kB / 473.6 MB, free: 30.34 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007096/0.4426, allocations: 458.4 kB / 474 MB, free: 30.06 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/0.4427, allocations: 7.812 kB / 474 MB, free: 30.06 MB / 382.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009159/0.4436, allocations: 0.5598 MB / 474.6 MB, free: 29.79 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.905e-05/0.4436, allocations: 38.73 kB / 474.6 MB, free: 29.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.4436, allocations: 7.438 kB / 474.6 MB, free: 29.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.324e-05/0.4437, allocations: 5.844 kB / 474.6 MB, free: 29.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004615/0.4441, allocations: 110.7 kB / 474.7 MB, free: 29.74 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.086e-05/0.4442, allocations: 8.969 kB / 474.7 MB, free: 29.74 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003042/0.4445, allocations: 56.95 kB / 474.8 MB, free: 29.71 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.199e-05/0.4445, allocations: 17.19 kB / 474.8 MB, free: 29.7 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000418/0.4449, allocations: 320 kB / 475.1 MB, free: 29.52 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003234/0.4453, allocations: 240.8 kB / 475.4 MB, free: 29.37 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005939/0.4459, allocations: 441 kB / 475.8 MB, free: 29.09 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.473e-06/0.4459, allocations: 0.6562 kB / 475.8 MB, free: 29.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=66) (initialization_lambda0): time 0.0008092/0.4467, allocations: 0.5566 MB / 476.3 MB, free: 28.82 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.402e-05/0.4467, allocations: 35.3 kB / 476.4 MB, free: 28.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.4467, allocations: 3.031 kB / 476.4 MB, free: 28.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.452e-06/0.4468, allocations: 5.875 kB / 476.4 MB, free: 28.79 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000372/0.4471, allocations: 108.1 kB / 476.5 MB, free: 28.78 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.705e-06/0.4471, allocations: 10.64 kB / 476.5 MB, free: 28.78 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002574/0.4474, allocations: 46.73 kB / 476.5 MB, free: 28.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.742e-05/0.4474, allocations: 16.16 kB / 476.6 MB, free: 28.75 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 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,conNoRes.trigger.y,conWitRes.trigger.y,$whenCondition1,$whenCondition2,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000143/0.4476, allocations: 221.2 kB / 476.8 MB, free: 28.54 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.481e-05/0.4477, allocations: 57.59 kB / 476.8 MB, free: 28.51 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001167/0.4478, allocations: 65.44 kB / 476.9 MB, free: 28.46 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.194e-06/0.4478, allocations: 9.719 kB / 476.9 MB, free: 28.46 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.227e-05/0.4478, allocations: 0 / 476.9 MB, free: 28.46 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.327e-06/0.4478, allocations: 3.141 kB / 476.9 MB, free: 28.46 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001568/0.4494, allocations: 1.18 MB / 478.1 MB, free: 27.78 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.4494, allocations: 0 / 478.1 MB, free: 27.78 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004291/0.4499, allocations: 92.73 kB / 478.2 MB, free: 27.78 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.828e-06/0.4499, allocations: 6.562 kB / 478.2 MB, free: 27.77 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.248e-05/0.4499, allocations: 10.69 kB / 478.2 MB, free: 27.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.56e-06/0.4499, allocations: 4.719 kB / 478.2 MB, free: 27.77 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.4499, allocations: 0 / 478.2 MB, free: 27.77 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001199/0.4511, allocations: 0.7637 MB / 479 MB, free: 27.36 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001416/0.4513, allocations: 176.4 kB / 479.1 MB, free: 27.2 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.362e-05/0.4514, allocations: 12.47 kB / 479.2 MB, free: 27.19 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002661/0.4516, allocations: 22.14 kB / 479.2 MB, free: 27.19 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.718e-05/0.4517, allocations: 35.97 kB / 479.2 MB, free: 27.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.414e-05/0.4517, allocations: 11.92 kB / 479.2 MB, free: 27.18 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003003/0.4521, allocations: 320.7 kB / 479.5 MB, free: 27.02 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4521, allocations: 0 / 479.5 MB, free: 27.02 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006555/0.4527, allocations: 258.7 kB / 479.8 MB, free: 26.95 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 (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.0001629/0.4529, allocations: 110.1 kB / 479.9 MB, free: 26.85 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001442/0.4543, allocations: 0.7966 MB / 480.7 MB, free: 26.48 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.4544, allocations: 0 / 480.7 MB, free: 26.48 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003738/0.4547, allocations: 211.5 kB / 480.9 MB, free: 26.42 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000835/0.4556, allocations: 168.5 kB / 481.1 MB, free: 26.37 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002662/0.4583, allocations: 1.37 MB / 482.4 MB, free: 25.6 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003249/0.4586, allocations: 0.8877 MB / 483.3 MB, free: 24.89 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003469/0.4589, allocations: 76.38 kB / 483.4 MB, free: 24.87 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001045/0.4591, allocations: 43.94 kB / 483.4 MB, free: 24.86 MB / 382.1 MB Notification: Performance of SimCode: time 7.52e-07/0.4591, allocations: 0 / 483.4 MB, free: 24.86 MB / 382.1 MB Notification: Performance of Templates: time 0.01614/0.4752, allocations: 6.5 MB / 489.9 MB, free: 24.44 MB / 382.1 MB make -j1 -f Annex60_1.0.0_Annex60.Controls.Continuous.Examples.LimPIDWithReset.makefile (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)