Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.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.PIDHysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|con.u_s|con.u_m|con.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis") translateModel(Buildings.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|con.u_s|con.u_m|con.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis") [: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.391/1.391, allocations: 249.4 MB / 256.7 MB, free: 15.83 MB / 218.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: 180.5 kB / 316 MB, free: 7.219 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.6/1.6, allocations: 205.1 MB / 0.5667 GB, free: 23.55 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.001096/0.001096, allocations: 94.12 kB / 0.671 GB, free: 0.8906 MB / 0.4948 GB Notification: Performance of FrontEnd - loaded program: time 6.833e-06/6.853e-06, allocations: 0 / 0.7807 GB, free: 432 kB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5764/0.5765, allocations: 106.3 MB / 0.8846 GB, free: 76.31 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1738/0.7503, allocations: 137.6 MB / 1.019 GB, free: 2.473 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002641/0.7507, allocations: 75.95 kB / 1.019 GB, free: 2.398 MB / 0.6667 GB Notification: Performance of FrontEnd: time 0.01801/0.7687, allocations: 6.607 MB / 1.025 GB, free: 11.77 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 3.093e-05/0.7688, allocations: 8 kB / 1.025 GB, free: 11.76 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.0008465/0.7696, allocations: 0.6113 MB / 1.026 GB, free: 11.11 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.83e-05/0.7697, allocations: 8.031 kB / 1.026 GB, free: 11.1 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.918e-05/0.7698, allocations: 47.44 kB / 1.026 GB, free: 11.05 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006149/0.7704, allocations: 375.3 kB / 1.026 GB, free: 10.64 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.195e-05/0.7704, allocations: 12 kB / 1.027 GB, free: 10.63 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.645e-05/0.7705, allocations: 20 kB / 1.027 GB, free: 10.61 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000397/0.7709, allocations: 185.3 kB / 1.027 GB, free: 10.43 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004763/0.7714, allocations: 296.9 kB / 1.027 GB, free: 10.11 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.738e-05/0.7714, allocations: 0 / 1.027 GB, free: 10.11 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.877e-05/0.7714, allocations: 0 / 1.027 GB, free: 10.11 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.515e-05/0.7714, allocations: 8 kB / 1.027 GB, free: 10.1 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001816/0.7733, allocations: 1.189 MB / 1.028 GB, free: 8.848 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003856/0.7737, allocations: 158.2 kB / 1.028 GB, free: 8.688 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001692/0.7738, allocations: 93.45 kB / 1.028 GB, free: 8.594 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 3.931e-05/0.7739, allocations: 192 / 1.028 GB, free: 8.594 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.614e-05/0.7739, allocations: 38.69 kB / 1.028 GB, free: 8.547 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=22): time 9.72e-07/0.7739, allocations: 0 / 1.028 GB, free: 8.547 MB / 0.6823 GB Notification: Performance of matching and sorting (n=22): time 0.0005024/0.7745, allocations: 203.2 kB / 1.029 GB, free: 8.348 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001284/0.7746, allocations: 170.1 kB / 1.029 GB, free: 8.145 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003555/0.775, allocations: 262.1 kB / 1.029 GB, free: 7.887 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 3.579e-05/0.775, allocations: 29.7 kB / 1.029 GB, free: 7.852 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001672/0.7752, allocations: 172 kB / 1.029 GB, free: 7.676 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 7.924e-05/0.7753, allocations: 74.84 kB / 1.029 GB, free: 7.602 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.206e-05/0.7753, allocations: 0 / 1.029 GB, free: 7.602 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0002147/0.7755, allocations: 346.8 kB / 1.03 GB, free: 7.254 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001267/0.7756, allocations: 67.94 kB / 1.03 GB, free: 7.188 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002146/0.7759, allocations: 135.7 kB / 1.03 GB, free: 7.027 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001483/0.776, allocations: 76.62 kB / 1.03 GB, free: 6.953 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.776, allocations: 0 / 1.03 GB, free: 6.953 MB / 0.6823 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004217/0.7765, allocations: 245.8 kB / 1.03 GB, free: 6.707 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.7765, allocations: 8 kB / 1.03 GB, free: 6.699 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.7765, allocations: 4 kB / 1.03 GB, free: 6.695 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.018e-05/0.7766, allocations: 4 kB / 1.03 GB, free: 6.691 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002582/0.7769, allocations: 55.84 kB / 1.03 GB, free: 6.637 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.186e-05/0.7769, allocations: 4 kB / 1.03 GB, free: 6.633 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002353/0.7771, allocations: 39.95 kB / 1.03 GB, free: 6.594 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.725e-05/0.7772, allocations: 11.98 kB / 1.03 GB, free: 6.582 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 ($PRE.con.hys.y,con.hys.y,con.PID.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * 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.0001059/0.7773, allocations: 115 kB / 1.03 GB, free: 6.465 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.566e-05/0.7773, allocations: 35.53 kB / 1.03 GB, free: 6.43 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.818e-05/0.7774, allocations: 35.16 kB / 1.03 GB, free: 6.395 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.7775, allocations: 4 kB / 1.03 GB, free: 6.391 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.075e-05/0.7775, allocations: 0 / 1.03 GB, free: 6.391 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.732e-06/0.7775, allocations: 0 / 1.03 GB, free: 6.391 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004436/0.7779, allocations: 369.8 kB / 1.031 GB, free: 5.992 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.7779, allocations: 0 / 1.031 GB, free: 5.992 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002622/0.7782, allocations: 43.98 kB / 1.031 GB, free: 5.934 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.7782, allocations: 3.984 kB / 1.031 GB, free: 5.93 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.85e-05/0.7783, allocations: 0 / 1.031 GB, free: 5.93 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.699e-06/0.7783, allocations: 4 kB / 1.031 GB, free: 5.926 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.7783, allocations: 3.938 kB / 1.031 GB, free: 5.922 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005898/0.7789, allocations: 400.6 kB / 1.031 GB, free: 5.516 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001581/0.779, allocations: 144.5 kB / 1.031 GB, free: 5.355 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.606e-05/0.7791, allocations: 7.984 kB / 1.031 GB, free: 5.348 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002354/0.7793, allocations: 23.98 kB / 1.031 GB, free: 5.324 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.333e-05/0.7794, allocations: 19.97 kB / 1.031 GB, free: 5.305 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.498e-05/0.7795, allocations: 8 kB / 1.031 GB, free: 5.297 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.0002366/0.7797, allocations: 208.6 kB / 1.032 GB, free: 5.098 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0003483/0.7801, allocations: 67.69 kB / 1.032 GB, free: 5.031 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (con.PID.I.y,cap.T) * Number of discrete variables: 1 (con.hys.y) * Number of discrete states: 1 (con.hys.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0001874/0.7802, allocations: 107.2 kB / 1.032 GB, free: 4.918 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.000328/0.7806, allocations: 171.3 kB / 1.032 GB, free: 4.754 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.7806, allocations: 4.25 kB / 1.032 GB, free: 4.75 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001438/0.7807, allocations: 95.92 kB / 1.032 GB, free: 4.656 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000444/0.7812, allocations: 56.14 kB / 1.032 GB, free: 4.598 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001173/0.7824, allocations: 0.4976 MB / 1.033 GB, free: 4.07 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000558/0.7829, allocations: 0.8374 MB / 1.033 GB, free: 3.207 MB / 0.6823 GB Notification: Performance of SimCode: time 2.91e-07/0.783, allocations: 0 / 1.033 GB, free: 3.207 MB / 0.6823 GB Notification: Performance of Templates: time 0.2819/1.065, allocations: 3.363 MB / 1.037 GB, free: 207.4 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.sim & ./Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_Continuous_Examples_PIDHysteresis.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches