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.0009366/0.0009366, allocations: 80.94 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.001199/0.001199, allocations: 177 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.9399/0.9399, allocations: 177.1 MB / 203.8 MB, free: 5.484 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.203/2.203, allocations: 438.8 MB / 0.6826 GB, free: 13.64 MB / 0.6511 GB " [Timeout remaining time 178] 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.142e-06/1.142e-06, allocations: 0 / 0.8385 GB, free: 14.3 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 9.858e-06/1.1e-05, allocations: 2.312 kB / 0.8385 GB, free: 14.3 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.003441/0.003452, allocations: 3.955 MB / 0.8424 GB, free: 10.32 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.001868/0.00532, allocations: 1.374 MB / 0.8437 GB, free: 8.941 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002237/0.005544, allocations: 31.81 kB / 0.8438 GB, free: 8.91 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 0.0002418/0.005786, allocations: 130.7 kB / 0.8439 GB, free: 8.781 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 0.0002312/0.006017, allocations: 190.2 kB / 0.8441 GB, free: 8.594 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005236/0.006541, allocations: 419.3 kB / 0.8445 GB, free: 8.184 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0005908/0.007131, allocations: 0.9746 MB / 0.8454 GB, free: 7.207 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003057/0.007437, allocations: 298.6 kB / 0.8457 GB, free: 6.891 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003687/0.007806, allocations: 0.5028 MB / 0.8462 GB, free: 6.387 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002045/0.00801, allocations: 235.2 kB / 0.8464 GB, free: 6.156 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 6.984e-05/0.00808, allocations: 88 kB / 0.8465 GB, free: 6.07 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 6.202e-05/0.008142, allocations: 84 kB / 0.8466 GB, free: 5.988 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 9.034e-05/0.008232, allocations: 179.3 kB / 0.8468 GB, free: 5.812 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 0.0001509/0.008383, allocations: 247.4 kB / 0.847 GB, free: 5.57 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0004123/0.008796, allocations: 0.5759 MB / 0.8476 GB, free: 4.992 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 1.383e-06/0.008797, allocations: 0 / 0.8476 GB, free: 4.992 MB / 0.8073 GB Notification: Performance of FrontEnd: time 4.71e-07/0.008797, allocations: 0 / 0.8476 GB, free: 4.992 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 4.127e-06/0.008802, allocations: 0 / 0.8476 GB, free: 4.992 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.0009161/0.009718, allocations: 0.976 MB / 0.8485 GB, free: 3.98 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 2.732e-05/0.009745, allocations: 8.625 kB / 0.8485 GB, free: 3.973 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.507e-05/0.00984, allocations: 100.9 kB / 0.8486 GB, free: 3.875 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004485/0.01029, allocations: 425.3 kB / 0.849 GB, free: 3.43 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.632e-05/0.01031, allocations: 41.69 kB / 0.8491 GB, free: 3.391 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.714e-05/0.01037, allocations: 64.31 kB / 0.8491 GB, free: 3.328 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004068/0.01078, allocations: 486 kB / 0.8496 GB, free: 2.816 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.47e-05/0.01079, allocations: 192 / 0.8496 GB, free: 2.816 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.955e-05/0.01082, allocations: 28.38 kB / 0.8496 GB, free: 2.789 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.518e-06/0.01083, allocations: 15.94 kB / 0.8496 GB, free: 2.773 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001996/0.01103, allocations: 162.3 kB / 0.8498 GB, free: 2.613 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001477/0.01251, allocations: 1.29 MB / 0.851 GB, free: 1.285 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002588/0.01277, allocations: 233.5 kB / 0.8513 GB, free: 1.047 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.54e-05/0.01286, allocations: 98.28 kB / 0.8514 GB, free: 0.9453 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.487e-05/0.01289, allocations: 8.5 kB / 0.8514 GB, free: 0.9375 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001603/0.01305, allocations: 170.2 kB / 0.8515 GB, free: 0.7617 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=49): time 1.423e-06/0.01305, allocations: 4 kB / 0.8515 GB, free: 0.7578 MB / 0.8073 GB Notification: Performance of matching and sorting (n=49): time 0.0002958/0.01335, allocations: 258 kB / 0.8518 GB, free: 0.5 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.923e-05/0.01338, allocations: 59.91 kB / 0.8518 GB, free: 436 kB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000205/0.01358, allocations: 379.2 kB / 0.8522 GB, free: 40 kB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 3.587e-05/0.01362, allocations: 37.78 kB / 0.8522 GB, free: 15.99 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001107/0.01373, allocations: 278 kB / 0.8525 GB, free: 15.72 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 7.901e-05/0.01381, allocations: 174.5 kB / 0.8527 GB, free: 15.55 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.306e-05/0.01389, allocations: 90.3 kB / 0.8528 GB, free: 15.46 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 8.927e-05/0.01398, allocations: 378.5 kB / 0.8531 GB, free: 15.08 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.825e-05/0.01406, allocations: 78.98 kB / 0.8532 GB, free: 14.99 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000112/0.01417, allocations: 172.3 kB / 0.8534 GB, free: 14.79 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000196/0.01436, allocations: 255.2 kB / 0.8536 GB, free: 14.51 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.01437, allocations: 4 kB / 0.8536 GB, free: 14.51 MB / 0.823 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0002621/0.01463, allocations: 317.8 kB / 0.8539 GB, free: 14.18 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 2.569e-05/0.01465, allocations: 37.7 kB / 0.8539 GB, free: 14.14 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.01466, allocations: 0 / 0.8539 GB, free: 14.14 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.066e-05/0.01467, allocations: 4 kB / 0.8539 GB, free: 14.13 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002402/0.01491, allocations: 115.8 kB / 0.8541 GB, free: 14.02 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.97e-06/0.01491, allocations: 4.25 kB / 0.8541 GB, free: 14.02 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001225/0.01504, allocations: 59.59 kB / 0.8541 GB, free: 13.96 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.766e-05/0.01506, allocations: 16 kB / 0.8541 GB, free: 13.94 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.0001087/0.01516, allocations: 137.7 kB / 0.8543 GB, free: 13.8 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.089e-05/0.0152, allocations: 43.95 kB / 0.8543 GB, free: 13.75 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.146e-05/0.01527, allocations: 65.44 kB / 0.8544 GB, free: 13.69 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.01527, allocations: 8 kB / 0.8544 GB, free: 13.68 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.804e-06/0.01527, allocations: 0 / 0.8544 GB, free: 13.68 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-06/0.01528, allocations: 3.984 kB / 0.8544 GB, free: 13.68 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005465/0.01582, allocations: 0.5835 MB / 0.855 GB, free: 13.07 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.01582, allocations: 4 kB / 0.855 GB, free: 13.07 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002124/0.01604, allocations: 87.89 kB / 0.855 GB, free: 12.98 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.559e-06/0.01604, allocations: 4 kB / 0.855 GB, free: 12.98 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.619e-05/0.01606, allocations: 8 kB / 0.8551 GB, free: 12.97 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.01606, allocations: 7.984 kB / 0.8551 GB, free: 12.96 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.01606, allocations: 3.984 kB / 0.8551 GB, free: 12.96 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003264/0.01639, allocations: 402.8 kB / 0.8554 GB, free: 12.55 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 8.304e-05/0.01647, allocations: 71.42 kB / 0.8555 GB, free: 12.48 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.196e-05/0.0165, allocations: 8 kB / 0.8555 GB, free: 12.47 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001069/0.01661, allocations: 20.05 kB / 0.8555 GB, free: 12.45 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.104e-05/0.01666, allocations: 44.36 kB / 0.8556 GB, free: 12.41 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.227e-05/0.01667, allocations: 8 kB / 0.8556 GB, free: 12.4 MB / 0.823 GB Notification: Performance of sorting global known variables: time 0.0001066/0.01678, allocations: 164.7 kB / 0.8557 GB, free: 12.24 MB / 0.823 GB Notification: Performance of sort global known variables: time 7e-08/0.01678, allocations: 0 / 0.8557 GB, free: 12.24 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0002293/0.01701, allocations: 147.6 kB / 0.8559 GB, free: 12.09 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 7.595e-05/0.01709, allocations: 96.3 kB / 0.856 GB, free: 11.99 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.000251/0.01734, allocations: 293.5 kB / 0.8563 GB, free: 11.69 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.01734, allocations: 4 kB / 0.8563 GB, free: 11.68 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001127/0.01745, allocations: 116.7 kB / 0.8564 GB, free: 11.56 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003345/0.01779, allocations: 155.2 kB / 0.8565 GB, free: 11.42 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001446/0.01923, allocations: 1.108 MB / 0.8576 GB, free: 10.27 MB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.766e-05/0.01931, allocations: 133.9 kB / 0.8577 GB, free: 10.12 MB / 0.823 GB Notification: Performance of simCode: alias equations: time 0.0001393/0.01945, allocations: 60.53 kB / 0.8578 GB, free: 10.06 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001974/0.01965, allocations: 157.3 kB / 0.8579 GB, free: 9.906 MB / 0.823 GB Notification: Performance of SimCode: time 5.11e-07/0.01965, allocations: 0 / 0.8579 GB, free: 9.906 MB / 0.823 GB Notification: Performance of Templates: time 0.008023/0.02767, allocations: 6.246 MB / 0.864 GB, free: 3.809 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 -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.076491632964462]