Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 1.77/1.77, allocations: 387.2 MB / 394.5 MB, free: 13.32 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001021/0.001021, allocations: 194 kB / 487 MB, free: 0.7383 MB / 378.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.127/1.127, allocations: 221.3 MB / 0.7819 GB, free: 6.906 MB / 0.573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007826/0.0007826, allocations: 97.5 kB / 0.9213 GB, free: 43.74 MB / 0.6198 GB Notification: Performance of FrontEnd - loaded program: time 5.51e-06/5.551e-06, allocations: 0 / 1.066 GB, free: 7.625 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4792/0.4792, allocations: 142.3 MB / 1.205 GB, free: 72.57 MB / 0.7917 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1517/0.631, allocations: 155.1 MB / 1.357 GB, free: 8.164 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001818/0.6312, allocations: 84.42 kB / 1.357 GB, free: 8.082 MB / 0.8542 GB Notification: Performance of FrontEnd: time 0.02807/0.6593, allocations: 12.02 MB / 1.368 GB, free: 12.12 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 3.627e-05/0.6593, allocations: 12 kB / 1.369 GB, free: 12.11 MB / 0.8698 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.001234/0.6606, allocations: 0.8879 MB / 1.369 GB, free: 11.17 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.008e-05/0.6606, allocations: 8.031 kB / 1.369 GB, free: 11.16 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001271/0.6607, allocations: 87.05 kB / 1.369 GB, free: 11.08 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000712/0.6615, allocations: 0.5289 MB / 1.37 GB, free: 10.51 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.375e-05/0.6615, allocations: 24.53 kB / 1.37 GB, free: 10.48 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.052e-05/0.6616, allocations: 36 kB / 1.37 GB, free: 10.45 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006796/0.6623, allocations: 401.7 kB / 1.37 GB, free: 10.06 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007829/0.663, allocations: 0.517 MB / 1.371 GB, free: 9.512 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2e-05/0.6631, allocations: 3.938 kB / 1.371 GB, free: 9.508 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.25e-05/0.6631, allocations: 0 / 1.371 GB, free: 9.508 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.353e-05/0.6631, allocations: 16 kB / 1.371 GB, free: 9.492 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002574/0.6657, allocations: 1.996 MB / 1.373 GB, free: 7.445 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004733/0.6662, allocations: 307.1 kB / 1.373 GB, free: 7.141 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002848/0.6665, allocations: 204.5 kB / 1.373 GB, free: 6.938 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.628e-05/0.6665, allocations: 4.438 kB / 1.373 GB, free: 6.934 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003462/0.6669, allocations: 224.5 kB / 1.374 GB, free: 6.703 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=50): time 1.693e-06/0.6669, allocations: 4 kB / 1.374 GB, free: 6.699 MB / 0.8698 GB Notification: Performance of matching and sorting (n=50): time 0.0006022/0.6675, allocations: 391.3 kB / 1.374 GB, free: 6.309 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.665e-05/0.6676, allocations: 166.7 kB / 1.374 GB, free: 6.109 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003388/0.6679, allocations: 349 kB / 1.374 GB, free: 5.758 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 3.527e-05/0.668, allocations: 29.7 kB / 1.375 GB, free: 5.723 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001312/0.6681, allocations: 252.3 kB / 1.375 GB, free: 5.473 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001064/0.6682, allocations: 165.5 kB / 1.375 GB, free: 5.309 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.236e-05/0.6682, allocations: 0 / 1.375 GB, free: 5.309 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.000111/0.6684, allocations: 366.8 kB / 1.375 GB, free: 4.941 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002311/0.6686, allocations: 145.3 kB / 1.375 GB, free: 4.797 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00029/0.6689, allocations: 247.1 kB / 1.376 GB, free: 4.523 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002543/0.6692, allocations: 169.5 kB / 1.376 GB, free: 4.359 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.6692, allocations: 0 / 1.376 GB, free: 4.359 MB / 0.8698 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0006524/0.6698, allocations: 459.8 kB / 1.376 GB, free: 3.902 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.203e-05/0.6698, allocations: 8 kB / 1.376 GB, free: 3.895 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.982e-06/0.6698, allocations: 1 kB / 1.376 GB, free: 3.895 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.318e-05/0.6699, allocations: 8 kB / 1.376 GB, free: 3.887 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004946/0.6704, allocations: 123.8 kB / 1.376 GB, free: 3.766 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.6704, allocations: 7.906 kB / 1.376 GB, free: 3.758 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003941/0.6708, allocations: 75.64 kB / 1.376 GB, free: 3.684 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.691e-05/0.6708, allocations: 19.98 kB / 1.376 GB, free: 3.664 MB / 0.8698 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.000105/0.6709, allocations: 116.9 kB / 1.377 GB, free: 3.543 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.942e-05/0.671, allocations: 62.22 kB / 1.377 GB, free: 3.484 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001092/0.6711, allocations: 53.2 kB / 1.377 GB, free: 3.426 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.578e-06/0.6711, allocations: 8 kB / 1.377 GB, free: 3.418 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.6712, allocations: 3.984 kB / 1.377 GB, free: 3.414 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.6712, allocations: 0 / 1.377 GB, free: 3.414 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001294/0.6725, allocations: 1.099 MB / 1.378 GB, free: 2.273 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.6725, allocations: 4.438 kB / 1.378 GB, free: 2.27 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005261/0.673, allocations: 119.8 kB / 1.378 GB, free: 2.152 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.673, allocations: 0 / 1.378 GB, free: 2.152 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.191e-05/0.6731, allocations: 9.188 kB / 1.378 GB, free: 2.145 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.6731, allocations: 0 / 1.378 GB, free: 2.145 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.6731, allocations: 0 / 1.378 GB, free: 2.145 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008655/0.6739, allocations: 0.7166 MB / 1.379 GB, free: 1.406 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001727/0.6741, allocations: 176.3 kB / 1.379 GB, free: 1.215 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.654e-05/0.6742, allocations: 8.031 kB / 1.379 GB, free: 1.207 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003805/0.6746, allocations: 47.95 kB / 1.379 GB, free: 1.16 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.987e-05/0.6747, allocations: 36.38 kB / 1.379 GB, free: 1.125 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.839e-05/0.6747, allocations: 12.81 kB / 1.379 GB, free: 1.113 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.0002505/0.675, allocations: 267.2 kB / 1.379 GB, free: 0.8555 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0003888/0.6754, allocations: 143.4 kB / 1.379 GB, free: 0.7148 MB / 0.8698 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.0001241/0.6755, allocations: 107.8 kB / 1.379 GB, free: 0.6016 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0005616/0.6761, allocations: 413.2 kB / 1.38 GB, free: 200 kB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.6761, allocations: 0 / 1.38 GB, free: 200 kB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002845/0.6764, allocations: 209.7 kB / 1.38 GB, free: 15.98 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005811/0.6769, allocations: 108 kB / 1.38 GB, free: 15.89 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002419/0.6794, allocations: 1.256 MB / 1.381 GB, free: 14.6 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005026/0.6799, allocations: 0.952 MB / 1.382 GB, free: 13.62 MB / 0.8855 GB Notification: Performance of SimCode: time 2.4e-07/0.6799, allocations: 0 / 1.382 GB, free: 13.62 MB / 0.8855 GB Notification: Performance of Templates: time 0.01101/0.6909, allocations: 6.576 MB / 1.389 GB, free: 7.211 MB / 0.8855 GB make -j1 -f Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.makefile (rm -f Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & ./Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_Continuous_Examples_LimPIDWithReset.csv","../files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches