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/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.0009573/0.0009573, allocations: 80.75 kB / 19.94 MB, free: 4.547 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.0009866/0.0009866, allocations: 181 kB / 23.36 MB, free: 1.133 MB / 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.9601/0.9601, allocations: 177.1 MB / 203.8 MB, free: 5.473 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.487/2.487, allocations: 438.8 MB / 0.6827 GB, free: 13.58 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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=5007,variableFilter="time|TSet.y|plaWitRes.temSen.T|plaNoRes.temSen.T|conWitRes.conPID.trigger|conWitRes.conPID.controlError|conNoRes.conPID.controlError",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset") translateModel(Buildings.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5007,variableFilter="time|TSet.y|plaWitRes.temSen.T|plaNoRes.temSen.T|conWitRes.conPID.trigger|conWitRes.conPID.controlError|conNoRes.conPID.controlError",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.382e-06/1.382e-06, allocations: 0 / 0.8386 GB, free: 14.19 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.779e-05/1.918e-05, allocations: 2.312 kB / 0.8386 GB, free: 14.19 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.003976/0.003995, allocations: 3.994 MB / 0.8425 GB, free: 10.17 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.001967/0.005962, allocations: 1.398 MB / 0.8438 GB, free: 8.766 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002493/0.006211, allocations: 31.81 kB / 0.8439 GB, free: 8.734 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 0.0002564/0.006467, allocations: 122.8 kB / 0.844 GB, free: 8.613 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 0.0002404/0.006708, allocations: 190.2 kB / 0.8442 GB, free: 8.426 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.000539/0.007247, allocations: 419.3 kB / 0.8446 GB, free: 8.016 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0006245/0.007871, allocations: 0.9668 MB / 0.8455 GB, free: 7.047 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003333/0.008205, allocations: 302.6 kB / 0.8458 GB, free: 6.727 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003868/0.008591, allocations: 0.5067 MB / 0.8463 GB, free: 6.219 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002288/0.00882, allocations: 231.2 kB / 0.8465 GB, free: 5.992 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 7.73e-05/0.008898, allocations: 88 kB / 0.8466 GB, free: 5.906 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 6.895e-05/0.008967, allocations: 84 kB / 0.8467 GB, free: 5.824 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 9.274e-05/0.009059, allocations: 183.4 kB / 0.8469 GB, free: 5.645 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 0.0001548/0.009214, allocations: 247.4 kB / 0.8471 GB, free: 5.402 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0004802/0.009694, allocations: 0.5642 MB / 0.8476 GB, free: 4.836 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.009698, allocations: 3.984 kB / 0.8476 GB, free: 4.832 MB / 0.8073 GB Notification: Performance of FrontEnd: time 1.042e-06/0.009699, allocations: 3.938 kB / 0.8476 GB, free: 4.828 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 6.943e-06/0.009706, allocations: 0 / 0.8476 GB, free: 4.828 MB / 0.8073 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.000985/0.01069, allocations: 0.9682 MB / 0.8486 GB, free: 3.824 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.681e-05/0.01073, allocations: 16.61 kB / 0.8486 GB, free: 3.809 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001036/0.01083, allocations: 104.9 kB / 0.8487 GB, free: 3.707 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004582/0.01129, allocations: 421.2 kB / 0.8491 GB, free: 3.266 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.005e-05/0.01132, allocations: 45.69 kB / 0.8492 GB, free: 3.223 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.98e-05/0.01138, allocations: 60.38 kB / 0.8492 GB, free: 3.164 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004437/0.01182, allocations: 493.9 kB / 0.8497 GB, free: 2.645 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.677e-05/0.01184, allocations: 4.188 kB / 0.8497 GB, free: 2.641 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.019e-05/0.01187, allocations: 24.38 kB / 0.8497 GB, free: 2.617 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.058e-05/0.01188, allocations: 15.94 kB / 0.8497 GB, free: 2.602 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002173/0.0121, allocations: 162.3 kB / 0.8499 GB, free: 2.441 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001597/0.01369, allocations: 1.283 MB / 0.8511 GB, free: 1.121 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002627/0.01396, allocations: 233.1 kB / 0.8514 GB, free: 0.8867 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.795e-05/0.01406, allocations: 102.3 kB / 0.8515 GB, free: 0.7812 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.446e-05/0.01408, allocations: 8.5 kB / 0.8515 GB, free: 0.7734 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001737/0.01425, allocations: 170.2 kB / 0.8516 GB, free: 0.5977 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=49): time 1.643e-06/0.01426, allocations: 0 / 0.8516 GB, free: 0.5977 MB / 0.8073 GB Notification: Performance of matching and sorting (n=49): time 0.0003075/0.01456, allocations: 258 kB / 0.8519 GB, free: 348 kB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.461e-05/0.0146, allocations: 63.91 kB / 0.8519 GB, free: 268 kB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000232/0.01483, allocations: 383.2 kB / 0.8523 GB, free: 15.87 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 2.468e-05/0.01485, allocations: 33.7 kB / 0.8523 GB, free: 15.83 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 0.00012/0.01497, allocations: 282.1 kB / 0.8526 GB, free: 15.55 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 8.114e-05/0.01506, allocations: 174.4 kB / 0.8528 GB, free: 15.38 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.674e-05/0.01514, allocations: 94.3 kB / 0.8529 GB, free: 15.29 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 9.68e-05/0.01524, allocations: 370.6 kB / 0.8532 GB, free: 14.91 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.367e-05/0.01532, allocations: 78.98 kB / 0.8533 GB, free: 14.83 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001145/0.01544, allocations: 164.4 kB / 0.8534 GB, free: 14.64 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002165/0.01565, allocations: 255.2 kB / 0.8537 GB, free: 14.36 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.01566, allocations: 0 / 0.8537 GB, free: 14.36 MB / 0.823 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0002845/0.01594, allocations: 337.9 kB / 0.854 GB, free: 14.01 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 2.67e-05/0.01597, allocations: 37.64 kB / 0.854 GB, free: 13.96 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.01597, allocations: 0 / 0.854 GB, free: 13.96 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.117e-05/0.01598, allocations: 4 kB / 0.854 GB, free: 13.96 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003039/0.01629, allocations: 133.1 kB / 0.8542 GB, free: 13.83 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.072e-06/0.01629, allocations: 7.938 kB / 0.8542 GB, free: 13.82 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001222/0.01642, allocations: 47.72 kB / 0.8542 GB, free: 13.78 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.017e-05/0.01644, allocations: 16 kB / 0.8542 GB, free: 13.76 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 (conNoRes.conPID.I.trigger_internal,TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,conNoRes.trigger.y,conWitRes.trigger.y,$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.0001121/0.01655, allocations: 139.7 kB / 0.8544 GB, free: 13.62 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.397e-05/0.01659, allocations: 51.94 kB / 0.8544 GB, free: 13.57 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.181e-05/0.01666, allocations: 69.38 kB / 0.8545 GB, free: 13.5 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.327e-06/0.01667, allocations: 4 kB / 0.8545 GB, free: 13.5 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/0.01667, allocations: 3.938 kB / 0.8545 GB, free: 13.49 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.581e-06/0.01668, allocations: 3.984 kB / 0.8545 GB, free: 13.49 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005657/0.01724, allocations: 0.5797 MB / 0.8551 GB, free: 12.89 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.01724, allocations: 0 / 0.8551 GB, free: 12.89 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003616/0.0176, allocations: 113.7 kB / 0.8552 GB, free: 12.78 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.039e-06/0.01761, allocations: 7.938 kB / 0.8552 GB, free: 12.77 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.893e-05/0.01763, allocations: 7.938 kB / 0.8552 GB, free: 12.76 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.01763, allocations: 4 kB / 0.8552 GB, free: 12.76 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.01763, allocations: 0 / 0.8552 GB, free: 12.76 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003744/0.01801, allocations: 402.8 kB / 0.8556 GB, free: 12.35 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 8.805e-05/0.0181, allocations: 67.42 kB / 0.8556 GB, free: 12.28 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.435e-05/0.01813, allocations: 12 kB / 0.8557 GB, free: 12.27 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000115/0.01824, allocations: 19.98 kB / 0.8557 GB, free: 12.25 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.933e-05/0.0183, allocations: 36.44 kB / 0.8557 GB, free: 12.21 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.595e-05/0.01832, allocations: 11.98 kB / 0.8557 GB, free: 12.2 MB / 0.823 GB Notification: Performance of sorting global known variables: time 0.0001144/0.01843, allocations: 160.7 kB / 0.8559 GB, free: 12.04 MB / 0.823 GB Notification: Performance of sort global known variables: time 8e-08/0.01843, allocations: 0 / 0.8559 GB, free: 12.04 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0002423/0.01868, allocations: 143.6 kB / 0.856 GB, free: 11.9 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 8.628e-05/0.01876, allocations: 98.91 kB / 0.8561 GB, free: 11.8 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0002685/0.01903, allocations: 297.5 kB / 0.8564 GB, free: 11.49 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 5.641e-06/0.01904, allocations: 4 kB / 0.8564 GB, free: 11.49 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001204/0.01916, allocations: 120.6 kB / 0.8565 GB, free: 11.36 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003711/0.01953, allocations: 160 kB / 0.8567 GB, free: 11.21 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001585/0.02111, allocations: 1.096 MB / 0.8577 GB, free: 10.08 MB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.08e-05/0.02119, allocations: 133.9 kB / 0.8579 GB, free: 9.926 MB / 0.823 GB Notification: Performance of simCode: alias equations: time 0.0001562/0.02135, allocations: 68.53 kB / 0.8579 GB, free: 9.855 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002236/0.02157, allocations: 161.3 kB / 0.8581 GB, free: 9.699 MB / 0.823 GB Notification: Performance of SimCode: time 7.91e-07/0.02158, allocations: 0 / 0.8581 GB, free: 9.699 MB / 0.823 GB Notification: Performance of Templates: time 0.008895/0.03047, allocations: 6.426 MB / 0.8644 GB, free: 3.43 MB / 0.823 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.makefile [Timeout 300] (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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/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.427315250039101]