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.001147/0.001146, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001404/0.001404, allocations: 191.1 kB / 16.25 MB, free: 6.621 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.506/1.506, allocations: 205.1 MB / 222.1 MB, free: 4.699 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo): time 0.399/0.399, allocations: 54.93 MB / 324.4 MB, free: 84 kB / 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.001348/0.001348, allocations: 72.38 kB / 394.9 MB, free: 12.11 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1457/0.147, allocations: 59.59 MB / 454.5 MB, free: 472 kB / 382.1 MB Notification: Performance of NFInst.instantiate(Annex60.Controls.Continuous.Examples.LimPIDWithReset): time 0.2226/0.3697, allocations: 4.127 MB / 458.6 MB, free: 37.41 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002536/0.3723, allocations: 1.389 MB / 460 MB, free: 37.09 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000677/0.373, allocations: 29.09 kB / 460 MB, free: 37.09 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004218/0.3735, allocations: 93.28 kB / 460.1 MB, free: 37.09 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004526/0.374, allocations: 148.3 kB / 460.3 MB, free: 37.02 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001372/0.3754, allocations: 431 kB / 460.7 MB, free: 36.96 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001141/0.3765, allocations: 0.9738 MB / 461.7 MB, free: 36.64 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000773/0.3773, allocations: 464.2 kB / 462.1 MB, free: 36.43 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004072/0.3777, allocations: 339.2 kB / 462.4 MB, free: 36.25 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003619/0.3781, allocations: 343.1 kB / 462.8 MB, free: 36.05 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001347/0.3782, allocations: 91.78 kB / 462.9 MB, free: 36.05 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001362/0.3784, allocations: 91.47 kB / 463 MB, free: 36.05 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001582/0.3786, allocations: 179 kB / 463.1 MB, free: 35.92 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003405/0.3789, allocations: 399.7 kB / 463.5 MB, free: 35.64 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009894/0.3799, allocations: 1.042 MB / 464.6 MB, free: 35.21 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.3799, allocations: 0 / 464.6 MB, free: 35.21 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.674e-06/0.3799, allocations: 0.625 kB / 464.6 MB, free: 35.21 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.103e-05/0.38, allocations: 0 / 464.6 MB, free: 35.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.002022/0.382, allocations: 1.092 MB / 465.7 MB, free: 34.44 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.382, allocations: 8.5 kB / 465.7 MB, free: 34.44 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001683/0.3822, allocations: 87.62 kB / 465.8 MB, free: 34.4 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009226/0.3832, allocations: 0.5533 MB / 466.3 MB, free: 33.99 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.158e-05/0.3832, allocations: 46.41 kB / 466.4 MB, free: 33.97 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001143/0.3833, allocations: 69.53 kB / 466.4 MB, free: 33.95 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001372/0.3847, allocations: 0.6104 MB / 467 MB, free: 33.66 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.213e-05/0.3848, allocations: 10.78 kB / 467 MB, free: 33.65 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.302e-05/0.3848, allocations: 21.81 kB / 467.1 MB, free: 33.63 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.688e-05/0.3849, allocations: 15.56 kB / 467.1 MB, free: 33.63 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001291/0.3862, allocations: 465.2 kB / 467.5 MB, free: 33.47 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003395/0.3896, allocations: 2.038 MB / 469.6 MB, free: 32.23 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00116/0.3908, allocations: 446.6 kB / 470 MB, free: 32.05 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005318/0.3913, allocations: 247.4 kB / 470.3 MB, free: 31.95 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.551e-05/0.3914, allocations: 9.688 kB / 470.3 MB, free: 31.95 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006589/0.392, allocations: 259.5 kB / 470.5 MB, free: 31.83 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 3.306e-06/0.392, allocations: 0 / 470.5 MB, free: 31.83 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.001701/0.3938, allocations: 0.5837 MB / 471.1 MB, free: 31.58 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.299e-05/0.3938, allocations: 59.84 kB / 471.2 MB, free: 31.52 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006058/0.3944, allocations: 455.6 kB / 471.6 MB, free: 31.3 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.51e-05/0.3945, allocations: 36.39 kB / 471.6 MB, free: 31.26 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002366/0.3947, allocations: 331.7 kB / 472 MB, free: 31 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001445/0.3949, allocations: 159.4 kB / 472.1 MB, free: 30.87 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001857/0.3951, allocations: 106.5 kB / 472.2 MB, free: 30.81 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001005/0.3952, allocations: 363.2 kB / 472.6 MB, free: 30.47 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005471/0.3958, allocations: 178.9 kB / 472.7 MB, free: 30.4 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005684/0.3963, allocations: 255.5 kB / 473 MB, free: 30.25 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009532/0.3973, allocations: 454.4 kB / 473.4 MB, free: 29.98 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.392e-06/0.3973, allocations: 6.688 kB / 473.4 MB, free: 29.97 MB / 382.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00131/0.3987, allocations: 0.5713 MB / 474 MB, free: 29.7 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.258e-05/0.3987, allocations: 30.52 kB / 474 MB, free: 29.67 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/0.3987, allocations: 5.844 kB / 474.1 MB, free: 29.67 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.164e-05/0.3988, allocations: 5.906 kB / 474.1 MB, free: 29.67 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006758/0.3994, allocations: 110 kB / 474.2 MB, free: 29.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.508e-05/0.3995, allocations: 10.33 kB / 474.2 MB, free: 29.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005125/0.4, allocations: 64.31 kB / 474.2 MB, free: 29.62 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.967e-05/0.4001, allocations: 18.28 kB / 474.3 MB, free: 29.62 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006309/0.4007, allocations: 319.2 kB / 474.6 MB, free: 29.43 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004635/0.4012, allocations: 241.8 kB / 474.8 MB, free: 29.29 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008459/0.402, allocations: 443.1 kB / 475.2 MB, free: 29.01 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.068e-06/0.402, allocations: 4.672 kB / 475.2 MB, free: 29.01 MB / 382.1 MB Notification: Performance of matching and sorting (n=66) (initialization_lambda0): time 0.001131/0.4032, allocations: 0.552 MB / 475.8 MB, free: 28.74 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.02e-05/0.4032, allocations: 36.58 kB / 475.8 MB, free: 28.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.4032, allocations: 0 / 475.8 MB, free: 28.71 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.626e-06/0.4033, allocations: 5.438 kB / 475.8 MB, free: 28.71 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000581/0.4038, allocations: 109.2 kB / 475.9 MB, free: 28.7 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.168e-05/0.4039, allocations: 9.25 kB / 476 MB, free: 28.69 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004712/0.4044, allocations: 53.69 kB / 476 MB, free: 28.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.494e-05/0.4044, allocations: 21.28 kB / 476 MB, free: 28.66 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.0001999/0.4046, allocations: 211 kB / 476.2 MB, free: 28.45 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001056/0.4047, allocations: 60.7 kB / 476.3 MB, free: 28.42 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001984/0.4049, allocations: 65.36 kB / 476.4 MB, free: 28.38 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.127e-05/0.405, allocations: 7.547 kB / 476.4 MB, free: 28.38 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.902e-05/0.405, allocations: 0 / 476.4 MB, free: 28.38 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.734e-06/0.405, allocations: 4 kB / 476.4 MB, free: 28.38 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002181/0.4072, allocations: 1.18 MB / 477.5 MB, free: 27.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.4072, allocations: 0 / 477.5 MB, free: 27.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006844/0.4079, allocations: 96.88 kB / 477.6 MB, free: 27.69 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.442e-06/0.4079, allocations: 0 / 477.6 MB, free: 27.69 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.247e-05/0.408, allocations: 14.72 kB / 477.7 MB, free: 27.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.408, allocations: 3.344 kB / 477.7 MB, free: 27.68 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.408, allocations: 0.625 kB / 477.7 MB, free: 27.68 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001733/0.4097, allocations: 0.7602 MB / 478.4 MB, free: 27.28 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000218/0.41, allocations: 179.9 kB / 478.6 MB, free: 27.12 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.11e-05/0.4101, allocations: 10.22 kB / 478.6 MB, free: 27.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000436/0.4105, allocations: 28.3 kB / 478.6 MB, free: 27.11 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001246/0.4107, allocations: 36.44 kB / 478.7 MB, free: 27.1 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.688e-05/0.4107, allocations: 12.02 kB / 478.7 MB, free: 27.1 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000468/0.4112, allocations: 319.8 kB / 479 MB, free: 26.94 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4112, allocations: 2.656 kB / 479 MB, free: 26.94 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001115/0.4123, allocations: 256.7 kB / 479.2 MB, free: 26.86 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.0001705/0.4125, allocations: 111.4 kB / 479.4 MB, free: 26.77 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002171/0.4147, allocations: 0.7994 MB / 480.2 MB, free: 26.39 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.4147, allocations: 0 / 480.2 MB, free: 26.39 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005631/0.4153, allocations: 213.2 kB / 480.4 MB, free: 26.33 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001255/0.4166, allocations: 168.6 kB / 480.5 MB, free: 26.28 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00395/0.4205, allocations: 1.633 MB / 482.2 MB, free: 25.24 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003787/0.4209, allocations: 0.8981 MB / 483.1 MB, free: 24.53 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005157/0.4214, allocations: 75.41 kB / 483.1 MB, free: 24.51 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001562/0.4216, allocations: 42.94 kB / 483.2 MB, free: 24.5 MB / 382.1 MB Notification: Performance of SimCode: time 1.102e-06/0.4216, allocations: 3.938 kB / 483.2 MB, free: 24.5 MB / 382.1 MB Notification: Performance of Templates: time 0.01998/0.4416, allocations: 6.396 MB / 489.6 MB, free: 24.08 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)