Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001021/0.001021, allocations: 82.64 kB / 20.68 MB, free: 3.816 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001023/0.001023, allocations: 181 kB / 24.09 MB, free: 420 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9826/0.9826, allocations: 177.1 MB / 204.5 MB, free: 5.488 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.882/1.882, allocations: 377.9 MB / 0.6239 GB, free: 8.398 MB / 0.5886 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|TSet.y|plaWitRes.temSen.T|plaNoRes.temSen.T|conWitRes.conPID.trigger|conWitRes.conPID.controlError|conNoRes.conPID.controlError",fileNamePrefix="Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset") translateModel(Buildings.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|TSet.y|plaWitRes.temSen.T|plaNoRes.temSen.T|conWitRes.conPID.trigger|conWitRes.conPID.controlError|conNoRes.conPID.controlError",fileNamePrefix="Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.703e-06/1.703e-06, allocations: 0.9844 kB / 0.812 GB, free: 1.34 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.654e-05/1.824e-05, allocations: 2.312 kB / 0.812 GB, free: 1.336 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.005915/0.005934, allocations: 3.942 MB / 0.8158 GB, free: 13.39 MB / 0.7761 GB Notification: Performance of NFInst.instExpressions: time 0.003471/0.009405, allocations: 1.349 MB / 0.8171 GB, free: 12.04 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006428/0.01005, allocations: 35.75 kB / 0.8172 GB, free: 12 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0003024/0.01035, allocations: 127.6 kB / 0.8173 GB, free: 11.88 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 0.0004879/0.01084, allocations: 194.5 kB / 0.8175 GB, free: 11.69 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.00087/0.01171, allocations: 415.3 kB / 0.8179 GB, free: 11.28 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.001183/0.01289, allocations: 0.9761 MB / 0.8188 GB, free: 10.3 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005246/0.01342, allocations: 290.6 kB / 0.8191 GB, free: 10 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007305/0.01415, allocations: 0.5028 MB / 0.8196 GB, free: 9.496 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003344/0.01448, allocations: 235.8 kB / 0.8198 GB, free: 9.266 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 0.0001141/0.01459, allocations: 88 kB / 0.8199 GB, free: 9.18 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001136/0.01471, allocations: 89.03 kB / 0.82 GB, free: 9.094 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 0.0001346/0.01484, allocations: 179.3 kB / 0.8202 GB, free: 8.918 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 0.0002482/0.01509, allocations: 247.4 kB / 0.8204 GB, free: 8.676 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0006781/0.01577, allocations: 0.5726 MB / 0.8209 GB, free: 8.102 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.264e-06/0.01577, allocations: 0 / 0.8209 GB, free: 8.102 MB / 0.7761 GB Notification: Performance of FrontEnd: time 6.51e-07/0.01577, allocations: 1.969 kB / 0.8209 GB, free: 8.102 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 1.066e-05/0.01578, allocations: 0 / 0.8209 GB, free: 8.102 MB / 0.7761 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.001424/0.01721, allocations: 1.158 MB / 0.8221 GB, free: 6.898 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.01725, allocations: 9.156 kB / 0.8221 GB, free: 6.891 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001875/0.01744, allocations: 136.4 kB / 0.8222 GB, free: 6.758 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006971/0.01813, allocations: 0.5365 MB / 0.8227 GB, free: 6.188 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.915e-05/0.01817, allocations: 41.69 kB / 0.8228 GB, free: 6.148 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.804e-05/0.01826, allocations: 62.25 kB / 0.8228 GB, free: 6.09 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006675/0.01893, allocations: 499 kB / 0.8233 GB, free: 5.559 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.908e-05/0.01895, allocations: 192 / 0.8233 GB, free: 5.559 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.497e-05/0.01899, allocations: 28.38 kB / 0.8233 GB, free: 5.531 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.702e-05/0.01901, allocations: 16.75 kB / 0.8234 GB, free: 5.516 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003412/0.01935, allocations: 183.1 kB / 0.8235 GB, free: 5.336 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00208/0.02143, allocations: 1.718 MB / 0.8252 GB, free: 3.574 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003974/0.02183, allocations: 253.6 kB / 0.8255 GB, free: 3.312 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001621/0.02199, allocations: 109 kB / 0.8256 GB, free: 3.203 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.781e-05/0.02202, allocations: 8.5 kB / 0.8256 GB, free: 3.195 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002413/0.02226, allocations: 163.9 kB / 0.8257 GB, free: 3.023 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=49): time 3.166e-06/0.02226, allocations: 3.984 kB / 0.8257 GB, free: 3.02 MB / 0.7761 GB Notification: Performance of matching and sorting (n=49): time 0.0005502/0.02281, allocations: 348.6 kB / 0.8261 GB, free: 2.676 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.454e-05/0.02285, allocations: 60.55 kB / 0.8261 GB, free: 2.605 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003876/0.02323, allocations: 443 kB / 0.8265 GB, free: 2.156 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 4.017e-05/0.02327, allocations: 38.2 kB / 0.8266 GB, free: 2.113 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002514/0.02353, allocations: 384 kB / 0.8269 GB, free: 1.734 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001308/0.02366, allocations: 174.5 kB / 0.8271 GB, free: 1.562 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001419/0.0238, allocations: 100.5 kB / 0.8272 GB, free: 1.457 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0002124/0.02401, allocations: 0.5365 MB / 0.8277 GB, free: 0.9102 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000127/0.02414, allocations: 86.95 kB / 0.8278 GB, free: 0.8203 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001999/0.02434, allocations: 197.8 kB / 0.828 GB, free: 0.582 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003167/0.02465, allocations: 275.1 kB / 0.8283 GB, free: 284 kB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.02466, allocations: 3.938 kB / 0.8283 GB, free: 280 kB / 0.7761 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0005139/0.02517, allocations: 404.5 kB / 0.8287 GB, free: 15.86 MB / 0.7917 GB Notification: Performance of prepare postOptimizeDAE: time 3.263e-05/0.0252, allocations: 37.7 kB / 0.8287 GB, free: 15.82 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.126e-05/0.02522, allocations: 4 kB / 0.8287 GB, free: 15.81 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.278e-05/0.02523, allocations: 4.938 kB / 0.8287 GB, free: 15.81 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000338/0.02557, allocations: 115.8 kB / 0.8288 GB, free: 15.7 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.112e-06/0.02557, allocations: 5.031 kB / 0.8288 GB, free: 15.69 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001843/0.02576, allocations: 59.55 kB / 0.8289 GB, free: 15.63 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.648e-05/0.02578, allocations: 13.12 kB / 0.8289 GB, free: 15.62 MB / 0.7917 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 (conNoRes.conPID.I.trigger_internal,conWitRes.trigger.y,conNoRes.trigger.y,TSet.T_start,$PRE.TSet.T_start,TSet.count,$PRE.TSet.count,$whenCondition1,$whenCondition2) * 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.0001721/0.02595, allocations: 184.5 kB / 0.8291 GB, free: 15.43 MB / 0.7917 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.975e-05/0.02603, allocations: 68.77 kB / 0.8291 GB, free: 15.36 MB / 0.7917 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.208e-05/0.02613, allocations: 65.44 kB / 0.8292 GB, free: 15.3 MB / 0.7917 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.02613, allocations: 12.94 kB / 0.8292 GB, free: 15.29 MB / 0.7917 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.02614, allocations: 0 / 0.8292 GB, free: 15.29 MB / 0.7917 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.845e-06/0.02615, allocations: 7.922 kB / 0.8292 GB, free: 15.28 MB / 0.7917 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000971/0.02712, allocations: 0.7637 MB / 0.8299 GB, free: 14.48 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.02712, allocations: 3.938 kB / 0.83 GB, free: 14.48 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003171/0.02744, allocations: 91.89 kB / 0.83 GB, free: 14.39 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.02744, allocations: 0 / 0.83 GB, free: 14.39 MB / 0.7917 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.717e-05/0.02747, allocations: 20.42 kB / 0.8301 GB, free: 14.37 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.02747, allocations: 0.5625 kB / 0.8301 GB, free: 14.37 MB / 0.7917 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/0.02747, allocations: 7.938 kB / 0.8301 GB, free: 14.36 MB / 0.7917 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006153/0.02809, allocations: 0.5149 MB / 0.8306 GB, free: 13.83 MB / 0.7917 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001414/0.02823, allocations: 91.5 kB / 0.8307 GB, free: 13.74 MB / 0.7917 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.281e-05/0.02827, allocations: 8.594 kB / 0.8307 GB, free: 13.73 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001658/0.02844, allocations: 20.73 kB / 0.8307 GB, free: 13.71 MB / 0.7917 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.692e-05/0.02851, allocations: 40.36 kB / 0.8307 GB, free: 13.67 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.136e-05/0.02853, allocations: 17.03 kB / 0.8307 GB, free: 13.66 MB / 0.7917 GB Notification: Performance of sorting global known variables: time 0.0002065/0.02873, allocations: 275 kB / 0.831 GB, free: 13.39 MB / 0.7917 GB Notification: Performance of sort global known variables: time 9e-08/0.02873, allocations: 0 / 0.831 GB, free: 13.39 MB / 0.7917 GB Notification: Performance of remove unused functions: time 0.0004136/0.02915, allocations: 147.2 kB / 0.8311 GB, free: 13.25 MB / 0.7917 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (conNoRes.conPID.I.y,plaNoRes.cap1.T,plaNoRes.cap.T,conWitRes.conPID.I.y,plaWitRes.cap1.T,plaWitRes.cap.T) * Number of discrete variables: 6 (conWitRes.trigger.y,$whenCondition2,$whenCondition1,TSet.count,TSet.T_start,conNoRes.trigger.y) * 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.0001209/0.02927, allocations: 117.8 kB / 0.8313 GB, free: 13.13 MB / 0.7917 GB Notification: Performance of simCode: created initialization part: time 0.0004079/0.02968, allocations: 316.2 kB / 0.8316 GB, free: 12.8 MB / 0.7917 GB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.02968, allocations: 8.656 kB / 0.8316 GB, free: 12.8 MB / 0.7917 GB Notification: Performance of simCode: created simulation system equations: time 0.0001772/0.02986, allocations: 128.2 kB / 0.8317 GB, free: 12.67 MB / 0.7917 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005765/0.03043, allocations: 153.3 kB / 0.8318 GB, free: 12.52 MB / 0.7917 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001648/0.03208, allocations: 1.165 MB / 0.833 GB, free: 11.32 MB / 0.7917 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.128e-05/0.03217, allocations: 129.9 kB / 0.8331 GB, free: 11.17 MB / 0.7917 GB Notification: Performance of simCode: alias equations: time 0.0001485/0.03232, allocations: 64.53 kB / 0.8332 GB, free: 11.1 MB / 0.7917 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002248/0.03255, allocations: 186.1 kB / 0.8333 GB, free: 10.92 MB / 0.7917 GB Notification: Performance of SimCode: time 6.91e-07/0.03255, allocations: 0 / 0.8333 GB, free: 10.92 MB / 0.7917 GB Notification: Performance of Templates: time 0.009142/0.04169, allocations: 6.348 MB / 0.8395 GB, free: 4.73 MB / 0.7917 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & ./Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_Continuous_Examples_LimPIDWithReset.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.231931007001549]