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/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) 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) Running command: translateModel(Buildings.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|plaWitRes.temSen.T|plaNoRes.temSen.T|conWitRes.conPID.trigger|conWitRes.conPID.controlError|conNoRes.conPID.controlError",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset") translateModel(Buildings.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|plaWitRes.temSen.T|plaNoRes.temSen.T|conWitRes.conPID.trigger|conWitRes.conPID.controlError|conNoRes.conPID.controlError",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.418/1.418, allocations: 249.4 MB / 256.7 MB, free: 7.043 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00106/0.00106, allocations: 185.2 kB / 316 MB, free: 3.473 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.429/1.429, allocations: 205.2 MB / 0.5667 GB, free: 15.58 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001065/0.001065, allocations: 88.19 kB / 0.671 GB, free: 4.703 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.062e-06/6.082e-06, allocations: 0 / 0.7807 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1778/0.1778, allocations: 106.3 MB / 0.8845 GB, free: 12.61 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4963/0.6742, allocations: 138.8 MB / 1.02 GB, free: 15.88 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002148/0.6744, allocations: 78.81 kB / 1.02 GB, free: 15.84 MB / 0.6511 GB Notification: Performance of FrontEnd: time 0.03117/0.7056, allocations: 12.24 MB / 1.032 GB, free: 5.789 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 3.973e-05/0.7057, allocations: 16 kB / 1.032 GB, free: 5.773 MB / 0.6511 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.001383/0.7071, allocations: 0.8872 MB / 1.033 GB, free: 4.883 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 3.403e-05/0.7071, allocations: 8.031 kB / 1.033 GB, free: 4.875 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001362/0.7073, allocations: 86.95 kB / 1.033 GB, free: 4.789 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007495/0.708, allocations: 0.5253 MB / 1.034 GB, free: 4.328 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.59e-05/0.7081, allocations: 20 kB / 1.034 GB, free: 4.309 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.656e-05/0.7081, allocations: 43.48 kB / 1.034 GB, free: 4.27 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007112/0.7089, allocations: 389 kB / 1.034 GB, free: 4.055 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008361/0.7097, allocations: 0.5221 MB / 1.035 GB, free: 3.652 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.505e-05/0.7097, allocations: 3.984 kB / 1.035 GB, free: 3.648 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.758e-05/0.7098, allocations: 7.297 kB / 1.035 GB, free: 3.645 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.568e-05/0.7098, allocations: 20 kB / 1.035 GB, free: 3.625 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002727/0.7126, allocations: 1.983 MB / 1.037 GB, free: 2.113 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004803/0.713, allocations: 310.2 kB / 1.037 GB, free: 1.918 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002898/0.7133, allocations: 211.9 kB / 1.037 GB, free: 1.793 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 4.46e-05/0.7134, allocations: 8.375 kB / 1.037 GB, free: 1.785 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003493/0.7138, allocations: 229.6 kB / 1.037 GB, free: 1.621 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=50): time 2.093e-06/0.7138, allocations: 3.938 kB / 1.037 GB, free: 1.617 MB / 0.6511 GB Notification: Performance of matching and sorting (n=50): time 0.0006409/0.7144, allocations: 388.1 kB / 1.038 GB, free: 1.34 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.009e-05/0.7145, allocations: 166.6 kB / 1.038 GB, free: 1.141 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003932/0.7149, allocations: 351.1 kB / 1.038 GB, free: 0.8711 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 3.771e-05/0.7149, allocations: 25.7 kB / 1.038 GB, free: 0.8398 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001518/0.7151, allocations: 251.7 kB / 1.038 GB, free: 0.6172 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001106/0.7152, allocations: 166.6 kB / 1.039 GB, free: 484 kB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.137e-05/0.7152, allocations: 0 / 1.039 GB, free: 484 kB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001222/0.7154, allocations: 361.3 kB / 1.039 GB, free: 136 kB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002233/0.7156, allocations: 143.6 kB / 1.039 GB, free: 60 kB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003004/0.7159, allocations: 257.6 kB / 1.039 GB, free: 15.85 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002534/0.7162, allocations: 163.5 kB / 1.039 GB, free: 15.76 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.7162, allocations: 4 kB / 1.039 GB, free: 15.76 MB / 0.6667 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.000666/0.7168, allocations: 467.4 kB / 1.04 GB, free: 15.42 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/0.7169, allocations: 4 kB / 1.04 GB, free: 15.42 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.714e-06/0.7169, allocations: 4 kB / 1.04 GB, free: 15.41 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/0.7169, allocations: 4 kB / 1.04 GB, free: 15.41 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005452/0.7175, allocations: 127.9 kB / 1.04 GB, free: 15.29 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.315e-05/0.7175, allocations: 7.984 kB / 1.04 GB, free: 15.28 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004149/0.7179, allocations: 67.56 kB / 1.04 GB, free: 15.21 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.048e-05/0.718, allocations: 27.17 kB / 1.04 GB, free: 15.19 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition1,conWitRes.conPID.trigger,conNoRes.trigger.y,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conNoRes.conPID.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001203/0.7181, allocations: 117.5 kB / 1.04 GB, free: 15.07 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.976e-05/0.7182, allocations: 51.34 kB / 1.04 GB, free: 15.02 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001143/0.7183, allocations: 61.56 kB / 1.04 GB, free: 14.99 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.089e-06/0.7183, allocations: 4 kB / 1.04 GB, free: 14.99 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.7183, allocations: 0 / 1.04 GB, free: 14.99 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.7183, allocations: 48 / 1.04 GB, free: 14.99 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00137/0.7197, allocations: 1.114 MB / 1.041 GB, free: 14.16 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.7197, allocations: 3.938 kB / 1.041 GB, free: 14.16 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005557/0.7203, allocations: 118.2 kB / 1.042 GB, free: 14.05 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.352e-06/0.7203, allocations: 4 kB / 1.042 GB, free: 14.05 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.148e-05/0.7203, allocations: 0 / 1.042 GB, free: 14.05 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.7203, allocations: 4 kB / 1.042 GB, free: 14.04 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.7203, allocations: 0 / 1.042 GB, free: 14.04 MB / 0.6667 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008965/0.7212, allocations: 0.7118 MB / 1.042 GB, free: 13.54 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001894/0.7214, allocations: 179.3 kB / 1.042 GB, free: 13.38 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.471e-05/0.7215, allocations: 4 kB / 1.042 GB, free: 13.38 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003958/0.7219, allocations: 47.88 kB / 1.042 GB, free: 13.33 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.124e-05/0.722, allocations: 38.69 kB / 1.042 GB, free: 13.3 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.42e-05/0.7221, allocations: 11.75 kB / 1.043 GB, free: 13.29 MB / 0.6667 GB Notification: Performance of sort global known variables: time 0.0002657/0.7223, allocations: 271.2 kB / 1.043 GB, free: 13.09 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0004505/0.7228, allocations: 135.5 kB / 1.043 GB, free: 12.96 MB / 0.6667 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.conPID.trigger,$whenCondition2,$whenCondition1,conNoRes.trigger.y,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001614/0.723, allocations: 116.9 kB / 1.043 GB, free: 12.84 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0006154/0.7236, allocations: 410.6 kB / 1.043 GB, free: 12.56 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.7236, allocations: 0 / 1.043 GB, free: 12.56 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0002745/0.7239, allocations: 200.3 kB / 1.044 GB, free: 12.43 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006286/0.7245, allocations: 114.1 kB / 1.044 GB, free: 12.34 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002726/0.7273, allocations: 1.251 MB / 1.045 GB, free: 11.17 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006556/0.7279, allocations: 0.948 MB / 1.046 GB, free: 10.19 MB / 0.6667 GB Notification: Performance of SimCode: time 3.3e-07/0.7279, allocations: 4 kB / 1.046 GB, free: 10.19 MB / 0.6667 GB Notification: Performance of Templates: time 0.01194/0.7399, allocations: 6.571 MB / 1.052 GB, free: 3.688 MB / 0.6667 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 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_Continuous_Examples_LimPIDWithReset.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches