Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.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.PIDHysteresisTimer,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.PIDHysteresisTimer") translateModel(Buildings.Controls.Continuous.Examples.PIDHysteresisTimer,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.PIDHysteresisTimer") [: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.346/1.346, allocations: 249.4 MB / 256.7 MB, free: 7.02 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.001254/0.001254, allocations: 181.2 kB / 316 MB, free: 3.527 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.392/1.392, allocations: 205.2 MB / 0.5667 GB, free: 15.59 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.001089/0.001088, allocations: 94.52 kB / 0.671 GB, free: 4.715 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.993e-06/7.013e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2291/0.2292, allocations: 106.3 MB / 0.8846 GB, free: 12.63 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6459/0.8751, allocations: 139.7 MB / 1.021 GB, free: 15.05 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002287/0.8753, allocations: 80.75 kB / 1.021 GB, free: 15.01 MB / 0.6511 GB Notification: Performance of FrontEnd: time 0.02026/0.8956, allocations: 7.222 MB / 1.028 GB, free: 9.082 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 3.8e-05/0.8957, allocations: 8 kB / 1.028 GB, free: 9.074 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: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.001189/0.8969, allocations: 0.6465 MB / 1.029 GB, free: 8.414 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/0.897, allocations: 12.03 kB / 1.029 GB, free: 8.402 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001309/0.8971, allocations: 51.34 kB / 1.029 GB, free: 8.352 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006643/0.8978, allocations: 399 kB / 1.029 GB, free: 7.984 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.032e-05/0.8978, allocations: 15.94 kB / 1.029 GB, free: 7.969 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.188e-05/0.8979, allocations: 27.06 kB / 1.029 GB, free: 7.945 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005192/0.8984, allocations: 224.5 kB / 1.029 GB, free: 7.812 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006378/0.899, allocations: 340.5 kB / 1.03 GB, free: 7.539 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.098e-05/0.8991, allocations: 0 / 1.03 GB, free: 7.539 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.768e-05/0.8991, allocations: 0 / 1.03 GB, free: 7.539 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.372e-05/0.8991, allocations: 8 kB / 1.03 GB, free: 7.531 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00213/0.9013, allocations: 1.303 MB / 1.031 GB, free: 6.402 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004928/0.9018, allocations: 208.7 kB / 1.031 GB, free: 6.262 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002179/0.902, allocations: 124 kB / 1.031 GB, free: 6.184 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 4.639e-05/0.9021, allocations: 0.5469 kB / 1.031 GB, free: 6.184 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000283/0.9024, allocations: 160 kB / 1.032 GB, free: 6.055 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=33): time 1.884e-06/0.9024, allocations: 0 / 1.032 GB, free: 6.055 MB / 0.6511 GB Notification: Performance of matching and sorting (n=33): time 0.0006378/0.903, allocations: 249.7 kB / 1.032 GB, free: 5.867 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001291/0.9032, allocations: 143.3 kB / 1.032 GB, free: 5.699 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003238/0.9035, allocations: 273.9 kB / 1.032 GB, free: 5.48 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 4.793e-05/0.9035, allocations: 33.33 kB / 1.032 GB, free: 5.445 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001385/0.9037, allocations: 182.1 kB / 1.032 GB, free: 5.281 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 8.394e-05/0.9038, allocations: 96.38 kB / 1.032 GB, free: 5.199 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.426e-05/0.9038, allocations: 4 kB / 1.032 GB, free: 5.195 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0002519/0.9041, allocations: 352.1 kB / 1.033 GB, free: 4.859 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001539/0.9042, allocations: 86.12 kB / 1.033 GB, free: 4.812 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001996/0.9044, allocations: 152.8 kB / 1.033 GB, free: 4.688 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001752/0.9046, allocations: 103.6 kB / 1.033 GB, free: 4.621 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.9046, allocations: 0 / 1.033 GB, free: 4.621 MB / 0.6511 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0004547/0.9051, allocations: 289.7 kB / 1.033 GB, free: 4.402 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.231e-05/0.9051, allocations: 11.98 kB / 1.033 GB, free: 4.391 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.9051, allocations: 0 / 1.033 GB, free: 4.391 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.059e-05/0.9052, allocations: 4 kB / 1.033 GB, free: 4.387 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002997/0.9055, allocations: 67.97 kB / 1.034 GB, free: 4.324 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.632e-06/0.9055, allocations: 4 kB / 1.034 GB, free: 4.32 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002407/0.9057, allocations: 43.77 kB / 1.034 GB, free: 4.277 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.707e-05/0.9058, allocations: 15.55 kB / 1.034 GB, free: 4.266 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.con.offHys.entryTime,con.offHys.entryTime,$PRE.con.onTimer.entryTime,con.onTimer.entryTime,$PRE.con.offTimer.entryTime,con.offTimer.entryTime,con.on,$PRE.con.hys.y,con.hys.y,con.and3.u1,con.con.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 43 * 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.0001295/0.9059, allocations: 120.5 kB / 1.034 GB, free: 4.145 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.569e-05/0.906, allocations: 39.53 kB / 1.034 GB, free: 4.105 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.124e-05/0.9061, allocations: 40.56 kB / 1.034 GB, free: 4.082 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.9061, allocations: 4 kB / 1.034 GB, free: 4.078 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.735e-06/0.9061, allocations: 0 / 1.034 GB, free: 4.078 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.756e-06/0.9061, allocations: 7.984 kB / 1.034 GB, free: 4.07 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009629/0.9071, allocations: 0.7384 MB / 1.034 GB, free: 3.465 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.9071, allocations: 0 / 1.034 GB, free: 3.465 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002868/0.9074, allocations: 51.95 kB / 1.035 GB, free: 3.414 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.143e-06/0.9074, allocations: 7.984 kB / 1.035 GB, free: 3.406 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.475e-05/0.9074, allocations: 7.688 kB / 1.035 GB, free: 3.402 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.406e-06/0.9074, allocations: 0 / 1.035 GB, free: 3.402 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.9074, allocations: 3.938 kB / 1.035 GB, free: 3.398 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006282/0.9081, allocations: 494.8 kB / 1.035 GB, free: 3.023 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001365/0.9082, allocations: 140.5 kB / 1.035 GB, free: 2.883 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.536e-05/0.9083, allocations: 0 / 1.035 GB, free: 2.883 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002478/0.9085, allocations: 32.03 kB / 1.035 GB, free: 2.852 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.586e-05/0.9086, allocations: 27.64 kB / 1.035 GB, free: 2.828 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.968e-05/0.9087, allocations: 7.938 kB / 1.035 GB, free: 2.824 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0002114/0.9089, allocations: 213.9 kB / 1.035 GB, free: 2.66 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003443/0.9092, allocations: 71.75 kB / 1.036 GB, free: 2.59 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (con.con.I.y,cap.T) * Number of discrete variables: 9 (con.on,$whenCondition3,$whenCondition2,$whenCondition1,con.offHys.entryTime,con.onTimer.entryTime,con.offTimer.entryTime,con.hys.y,con.and3.u1) * Number of discrete states: 1 (con.hys.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001785/0.9094, allocations: 115.1 kB / 1.036 GB, free: 2.469 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0004366/0.9099, allocations: 241.5 kB / 1.036 GB, free: 2.312 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.9099, allocations: 0 / 1.036 GB, free: 2.312 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001848/0.9101, allocations: 125 kB / 1.036 GB, free: 2.227 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004538/0.9105, allocations: 71.86 kB / 1.036 GB, free: 2.168 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001281/0.9118, allocations: 0.5497 MB / 1.037 GB, free: 1.652 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005425/0.9124, allocations: 0.8609 MB / 1.037 GB, free: 0.7695 MB / 0.6511 GB Notification: Performance of SimCode: time 2.4e-07/0.9124, allocations: 0 / 1.037 GB, free: 0.7695 MB / 0.6511 GB Notification: Performance of Templates: time 0.008142/0.9205, allocations: 3.826 MB / 1.041 GB, free: 12.98 MB / 0.6667 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.sim & ./Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_Continuous_Examples_PIDHysteresisTimer.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresisTimer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches