Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset") translateModel(Buildings.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.216/2.216, allocations: 391.2 MB / 407 MB, free: 10.94 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001246/0.001246, allocations: 191.5 kB / 499.1 MB, free: 4.699 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.57/1.57, allocations: 222.9 MB / 0.7948 GB, free: 15.84 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001104/0.001105, allocations: 115.6 kB / 0.9329 GB, free: 7.129 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 50.67 kB / 1.081 GB, free: 218 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3247/0.326, allocations: 140.6 MB / 1.218 GB, free: 117.4 MB / 0.823 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.004575/0.3306, allocations: 4.137 MB / 1.222 GB, free: 113.2 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.002168/0.3328, allocations: 1.286 MB / 1.223 GB, free: 111.9 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003324/0.3332, allocations: 23.88 kB / 1.223 GB, free: 111.9 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 0.0002887/0.3335, allocations: 87.22 kB / 1.223 GB, free: 111.8 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 0.0003141/0.3338, allocations: 162.7 kB / 1.224 GB, free: 111.6 MB / 0.823 GB Notification: Performance of NFTyping.typeClassSections: time 0.000769/0.3346, allocations: 378.5 kB / 1.224 GB, free: 111.3 MB / 0.823 GB Notification: Performance of NFFlatten.flatten: time 0.0006424/0.3352, allocations: 0.889 MB / 1.225 GB, free: 110.4 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005221/0.3358, allocations: 430.1 kB / 1.225 GB, free: 109.9 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002332/0.336, allocations: 278.7 kB / 1.226 GB, free: 109.7 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002479/0.3363, allocations: 302.3 kB / 1.226 GB, free: 109.4 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 7.081e-05/0.3363, allocations: 40 kB / 1.226 GB, free: 109.3 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 7.403e-05/0.3364, allocations: 44 kB / 1.226 GB, free: 109.3 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 8.7e-05/0.3365, allocations: 135.4 kB / 1.226 GB, free: 109.2 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 0.0002175/0.3367, allocations: 342 kB / 1.226 GB, free: 108.8 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 0.0005708/0.3373, allocations: 0.991 MB / 1.227 GB, free: 107.8 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.3373, allocations: 0 / 1.227 GB, free: 107.8 MB / 0.823 GB Notification: Performance of FrontEnd: time 6.71e-07/0.3373, allocations: 3.938 kB / 1.227 GB, free: 107.8 MB / 0.823 GB Notification: Performance of Transformations before backend: time 8.276e-06/0.3373, allocations: 0 / 1.227 GB, free: 107.8 MB / 0.823 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.001571/0.3389, allocations: 1.078 MB / 1.228 GB, free: 106.7 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/0.339, allocations: 15.98 kB / 1.228 GB, free: 106.7 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001204/0.3391, allocations: 80 kB / 1.228 GB, free: 106.6 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006921/0.3398, allocations: 0.5495 MB / 1.229 GB, free: 106 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.942e-05/0.3398, allocations: 49.62 kB / 1.229 GB, free: 106 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.185e-05/0.3399, allocations: 56.38 kB / 1.229 GB, free: 105.9 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008247/0.3408, allocations: 0.6079 MB / 1.23 GB, free: 105.3 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.094e-05/0.3408, allocations: 3.906 kB / 1.23 GB, free: 105.3 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.578e-05/0.3408, allocations: 31.98 kB / 1.23 GB, free: 105.2 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.023e-05/0.3409, allocations: 12 kB / 1.23 GB, free: 105.2 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008144/0.3417, allocations: 461 kB / 1.23 GB, free: 104.8 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002291/0.344, allocations: 2.008 MB / 1.232 GB, free: 102.7 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007719/0.3448, allocations: 445.3 kB / 1.233 GB, free: 102.3 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003695/0.3451, allocations: 238.9 kB / 1.233 GB, free: 102 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 4.229e-05/0.3452, allocations: 4.438 kB / 1.233 GB, free: 102 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005599/0.3458, allocations: 273.1 kB / 1.233 GB, free: 101.7 MB / 0.823 GB Notification: Performance of pre-optimization done (n=49): time 2.886e-06/0.3458, allocations: 0 / 1.233 GB, free: 101.7 MB / 0.823 GB Notification: Performance of matching and sorting (n=49): time 0.001108/0.3469, allocations: 0.5805 MB / 1.234 GB, free: 101.1 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.411e-05/0.3469, allocations: 63.83 kB / 1.234 GB, free: 101.1 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003804/0.3473, allocations: 438.1 kB / 1.234 GB, free: 100.6 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 2.666e-05/0.3474, allocations: 33.7 kB / 1.234 GB, free: 100.6 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 0.000151/0.3475, allocations: 328.9 kB / 1.234 GB, free: 100.3 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 8.393e-05/0.3476, allocations: 161.7 kB / 1.235 GB, free: 100.1 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000117/0.3477, allocations: 94.25 kB / 1.235 GB, free: 100 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 7.565e-05/0.3478, allocations: 366.8 kB / 1.235 GB, free: 99.65 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003235/0.3481, allocations: 169 kB / 1.235 GB, free: 99.48 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003503/0.3485, allocations: 253.7 kB / 1.235 GB, free: 99.21 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006736/0.3492, allocations: 456 kB / 1.236 GB, free: 98.73 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.54e-06/0.3492, allocations: 4 kB / 1.236 GB, free: 98.73 MB / 0.823 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0008397/0.35, allocations: 0.5664 MB / 1.236 GB, free: 98.15 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 3.609e-05/0.3501, allocations: 38.83 kB / 1.236 GB, free: 98.11 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.3501, allocations: 4 kB / 1.236 GB, free: 98.1 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.661e-05/0.3501, allocations: 4 kB / 1.237 GB, free: 98.1 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004405/0.3506, allocations: 111.8 kB / 1.237 GB, free: 97.99 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.115e-05/0.3506, allocations: 4 kB / 1.237 GB, free: 97.98 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003009/0.3509, allocations: 67.59 kB / 1.237 GB, free: 97.92 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.399e-05/0.3509, allocations: 20 kB / 1.237 GB, free: 97.9 MB / 0.823 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.0001932/0.3511, allocations: 211.1 kB / 1.237 GB, free: 97.68 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.589e-05/0.3512, allocations: 55.28 kB / 1.237 GB, free: 97.63 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001615/0.3514, allocations: 65.59 kB / 1.237 GB, free: 97.56 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.151e-06/0.3514, allocations: 7.984 kB / 1.237 GB, free: 97.55 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.3514, allocations: 0 / 1.237 GB, free: 97.55 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.3514, allocations: 3.984 kB / 1.237 GB, free: 97.55 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001349/0.3527, allocations: 1.177 MB / 1.238 GB, free: 96.31 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.3528, allocations: 0 / 1.238 GB, free: 96.31 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004209/0.3532, allocations: 95.88 kB / 1.238 GB, free: 96.21 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.079e-06/0.3532, allocations: 4 kB / 1.238 GB, free: 96.21 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.85e-05/0.3532, allocations: 12 kB / 1.238 GB, free: 96.2 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.265e-06/0.3532, allocations: 4 kB / 1.238 GB, free: 96.2 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.3533, allocations: 0 / 1.238 GB, free: 96.2 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00553/0.3588, allocations: 4.197 MB / 1.242 GB, free: 91.85 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001346/0.3589, allocations: 168.4 kB / 1.243 GB, free: 91.66 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.634e-05/0.359, allocations: 8 kB / 1.243 GB, free: 91.66 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002702/0.3593, allocations: 35.91 kB / 1.243 GB, free: 91.62 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001072/0.3594, allocations: 36.39 kB / 1.243 GB, free: 91.59 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.544e-05/0.3594, allocations: 12 kB / 1.243 GB, free: 91.57 MB / 0.823 GB Notification: Performance of sorting global known variables: time 0.0002579/0.3597, allocations: 310.9 kB / 1.243 GB, free: 91.27 MB / 0.823 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3597, allocations: 0 / 1.243 GB, free: 91.27 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0005378/0.3602, allocations: 199.4 kB / 1.243 GB, free: 91.08 MB / 0.823 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.0001191/0.3604, allocations: 115.1 kB / 1.243 GB, free: 90.96 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.000787/0.3611, allocations: 481 kB / 1.244 GB, free: 90.48 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.3612, allocations: 4 kB / 1.244 GB, free: 90.48 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.0003544/0.3615, allocations: 218.4 kB / 1.244 GB, free: 90.26 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007252/0.3623, allocations: 146.6 kB / 1.244 GB, free: 90.12 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002484/0.3648, allocations: 1.934 MB / 1.246 GB, free: 88.15 MB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002732/0.365, allocations: 0.902 MB / 1.247 GB, free: 87.21 MB / 0.823 GB Notification: Performance of simCode: alias equations: time 0.0002945/0.3653, allocations: 72.58 kB / 1.247 GB, free: 87.14 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001331/0.3655, allocations: 47.42 kB / 1.247 GB, free: 87.1 MB / 0.823 GB Notification: Performance of SimCode: time 5.91e-07/0.3655, allocations: 0 / 1.247 GB, free: 87.1 MB / 0.823 GB Notification: Performance of Templates: time 0.01026/0.3757, allocations: 6.96 MB / 1.254 GB, free: 80.22 MB / 0.823 GB make -j1 -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.makefile (rm -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & ./Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)