Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.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/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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(Buildings.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset") translateModel(Buildings.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.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.01033/0.01033, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.001667/0.001667, allocations: 195.6 kB / 16.67 MB, free: 5.52 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.542/1.542, allocations: 205.1 MB / 222.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.396/1.396, allocations: 251.7 MB / 0.5094 GB, free: 420 kB / 430.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.001701/0.001701, allocations: 71.89 kB / 0.7257 GB, free: 4.703 MB / 0.5606 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7488/0.7505, allocations: 104.7 MB / 0.828 GB, free: 2.609 MB / 0.6231 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.005739/0.7563, allocations: 4.146 MB / 0.832 GB, free: 14.44 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.00296/0.7593, allocations: 1.388 MB / 0.8334 GB, free: 13.04 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006088/0.7599, allocations: 23.88 kB / 0.8334 GB, free: 13.02 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.0004014/0.7603, allocations: 130.8 kB / 0.8336 GB, free: 12.89 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.0004806/0.7609, allocations: 174.4 kB / 0.8337 GB, free: 12.72 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.001028/0.7619, allocations: 415.1 kB / 0.8341 GB, free: 12.32 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.001024/0.763, allocations: 0.9554 MB / 0.835 GB, free: 11.36 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007013/0.7637, allocations: 461.6 kB / 0.8355 GB, free: 10.89 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004821/0.7642, allocations: 334.7 kB / 0.8358 GB, free: 10.56 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004271/0.7646, allocations: 334.3 kB / 0.8361 GB, free: 10.23 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0001317/0.7647, allocations: 88 kB / 0.8362 GB, free: 10.15 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000121/0.7649, allocations: 92 kB / 0.8363 GB, free: 10.06 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0001778/0.765, allocations: 179.4 kB / 0.8365 GB, free: 9.883 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.0004264/0.7655, allocations: 398.1 kB / 0.8368 GB, free: 9.492 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.001329/0.7668, allocations: 1.061 MB / 0.8379 GB, free: 8.43 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 8.657e-06/0.7668, allocations: 4 kB / 0.8379 GB, free: 8.426 MB / 0.6387 GB Notification: Performance of FrontEnd: time 2.415e-06/0.7668, allocations: 0 / 0.8379 GB, free: 8.426 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 1.425e-05/0.7669, allocations: 0 / 0.8379 GB, free: 8.426 MB / 0.6387 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.00215/0.769, allocations: 1.069 MB / 0.8389 GB, free: 7.297 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 5.181e-05/0.7691, allocations: 12.03 kB / 0.8389 GB, free: 7.285 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001673/0.7693, allocations: 87.91 kB / 0.839 GB, free: 7.199 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001109/0.7704, allocations: 0.5612 MB / 0.8396 GB, free: 6.602 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.984e-05/0.7704, allocations: 45.69 kB / 0.8396 GB, free: 6.559 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001196/0.7706, allocations: 60.38 kB / 0.8397 GB, free: 6.5 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001174/0.7717, allocations: 0.604 MB / 0.8403 GB, free: 5.871 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.868e-05/0.7718, allocations: 3.938 kB / 0.8403 GB, free: 5.867 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.2e-05/0.7719, allocations: 28 kB / 0.8403 GB, free: 5.84 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.453e-05/0.7719, allocations: 16 kB / 0.8403 GB, free: 5.824 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00108/0.773, allocations: 461 kB / 0.8408 GB, free: 5.375 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003182/0.7762, allocations: 1.989 MB / 0.8427 GB, free: 3.312 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009317/0.7771, allocations: 441.2 kB / 0.8431 GB, free: 2.871 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004726/0.7776, allocations: 243.1 kB / 0.8433 GB, free: 2.633 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 3.334e-05/0.7777, allocations: 8.375 kB / 0.8434 GB, free: 2.625 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005463/0.7782, allocations: 265.2 kB / 0.8436 GB, free: 2.355 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=49): time 2.655e-06/0.7782, allocations: 0 / 0.8436 GB, free: 2.355 MB / 0.6387 GB Notification: Performance of matching and sorting (n=49): time 0.001319/0.7795, allocations: 0.5766 MB / 0.8442 GB, free: 1.777 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.96e-05/0.7796, allocations: 63.83 kB / 0.8442 GB, free: 1.703 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005184/0.7801, allocations: 442.7 kB / 0.8447 GB, free: 1.262 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 5.152e-05/0.7802, allocations: 37.7 kB / 0.8447 GB, free: 1.219 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002558/0.7805, allocations: 328.2 kB / 0.845 GB, free: 0.8945 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001638/0.7806, allocations: 169.5 kB / 0.8452 GB, free: 0.7266 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001593/0.7808, allocations: 98.16 kB / 0.8453 GB, free: 0.625 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001985/0.781, allocations: 366.8 kB / 0.8456 GB, free: 264 kB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003994/0.7814, allocations: 165 kB / 0.8458 GB, free: 96 kB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000461/0.7819, allocations: 249.8 kB / 0.846 GB, free: 15.83 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008278/0.7827, allocations: 452 kB / 0.8464 GB, free: 15.36 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.7828, allocations: 0 / 0.8464 GB, free: 15.36 MB / 0.6544 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001075/0.7838, allocations: 0.5624 MB / 0.847 GB, free: 14.78 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 5.779e-05/0.7839, allocations: 37.64 kB / 0.847 GB, free: 14.73 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.927e-06/0.7839, allocations: 0 / 0.847 GB, free: 14.73 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.525e-05/0.784, allocations: 4 kB / 0.847 GB, free: 14.73 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005061/0.7845, allocations: 115.8 kB / 0.8471 GB, free: 14.62 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.063e-05/0.7845, allocations: 4.25 kB / 0.8471 GB, free: 14.61 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003488/0.7849, allocations: 59.56 kB / 0.8472 GB, free: 14.55 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.081e-05/0.7849, allocations: 16 kB / 0.8472 GB, free: 14.54 MB / 0.6544 GB 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.0003248/0.7852, allocations: 217.6 kB / 0.8474 GB, free: 14.32 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.489e-05/0.7853, allocations: 59.28 kB / 0.8475 GB, free: 14.26 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000162/0.7855, allocations: 65.58 kB / 0.8475 GB, free: 14.2 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/0.7855, allocations: 8 kB / 0.8475 GB, free: 14.19 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.428e-06/0.7855, allocations: 4 kB / 0.8475 GB, free: 14.18 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.666e-06/0.7856, allocations: 7.984 kB / 0.8476 GB, free: 14.18 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001843/0.7874, allocations: 1.17 MB / 0.8487 GB, free: 12.95 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.7874, allocations: 0 / 0.8487 GB, free: 12.95 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004735/0.7879, allocations: 91.89 kB / 0.8488 GB, free: 12.86 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.708e-06/0.7879, allocations: 0 / 0.8488 GB, free: 12.86 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.632e-05/0.788, allocations: 19.98 kB / 0.8488 GB, free: 12.84 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.788, allocations: 0 / 0.8488 GB, free: 12.84 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/0.788, allocations: 4 kB / 0.8488 GB, free: 12.84 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00147/0.7894, allocations: 0.7611 MB / 0.8496 GB, free: 12.06 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00021/0.7897, allocations: 176.3 kB / 0.8497 GB, free: 11.87 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.102e-05/0.7897, allocations: 8 kB / 0.8497 GB, free: 11.86 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002875/0.79, allocations: 23.97 kB / 0.8497 GB, free: 11.84 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000105/0.7901, allocations: 40.33 kB / 0.8498 GB, free: 11.79 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.937e-05/0.7902, allocations: 12 kB / 0.8498 GB, free: 11.78 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0003778/0.7906, allocations: 314.8 kB / 0.8501 GB, free: 11.48 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7906, allocations: 0 / 0.8501 GB, free: 11.48 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0005082/0.7911, allocations: 143.4 kB / 0.8502 GB, free: 11.34 MB / 0.6544 GB 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.7913, allocations: 123 kB / 0.8504 GB, free: 11.21 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0009722/0.7922, allocations: 481 kB / 0.8508 GB, free: 10.73 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.7923, allocations: 0.5 kB / 0.8508 GB, free: 10.73 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0004368/0.7927, allocations: 218.4 kB / 0.851 GB, free: 10.52 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008017/0.7935, allocations: 159.7 kB / 0.8512 GB, free: 10.37 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002864/0.7964, allocations: 1.33 MB / 0.8525 GB, free: 9.004 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005276/0.7969, allocations: 0.8898 MB / 0.8533 GB, free: 8.086 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0002764/0.7972, allocations: 64.58 kB / 0.8534 GB, free: 8.02 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001233/0.7973, allocations: 47.42 kB / 0.8534 GB, free: 7.973 MB / 0.6544 GB Notification: Performance of SimCode: time 7.61e-07/0.7974, allocations: 0 / 0.8534 GB, free: 7.973 MB / 0.6544 GB Notification: Performance of Templates: time 0.01287/0.8102, allocations: 6.012 MB / 0.8593 GB, free: 2.039 MB / 0.6544 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & ./Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)