Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chiSwi.TSet|chiSwi.chiCHWST|chiSwi.y",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chiSwi.TSet|chiSwi.chiCHWST|chiSwi.y",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") [: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 10.0.0-master/package.mo): time 1.688/1.688, allocations: 390.4 MB / 397.7 MB, free: 15.5 MB / 318.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009101/0.0009101, allocations: 189.8 kB / 490.8 MB, free: 6.434 MB / 398.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.037/1.037, allocations: 221.4 MB / 0.7863 GB, free: 1.879 MB / 0.545 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000799/0.000799, allocations: 88.89 kB / 0.9264 GB, free: 2.457 MB / 0.6856 GB Notification: Performance of FrontEnd - loaded program: time 5.38e-06/5.4e-06, allocations: 4 kB / 1.072 GB, free: 186.4 MB / 0.7637 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1631/0.1632, allocations: 143 MB / 1.212 GB, free: 43.97 MB / 0.7637 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4389/0.6021, allocations: 150.7 MB / 1.359 GB, free: 17.82 MB / 0.8262 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001916/0.6023, allocations: 90.62 kB / 1.359 GB, free: 17.82 MB / 0.8262 GB Notification: Performance of FrontEnd: time 0.003407/0.6057, allocations: 1.238 MB / 1.36 GB, free: 17.74 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.53e-06/0.6057, allocations: 7.438 kB / 1.36 GB, free: 17.73 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0003714/0.6061, allocations: 377.2 kB / 1.36 GB, free: 33.37 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 2.809e-05/0.6061, allocations: 7.688 kB / 1.36 GB, free: 33.37 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.381e-05/0.6062, allocations: 14.17 kB / 1.36 GB, free: 33.36 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.281e-05/0.6063, allocations: 175.9 kB / 1.361 GB, free: 33.16 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.608e-06/0.6063, allocations: 0 / 1.361 GB, free: 33.16 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.284e-05/0.6063, allocations: 3.844 kB / 1.361 GB, free: 33.16 MB / 0.8419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.603e-05/0.6064, allocations: 28.78 kB / 1.361 GB, free: 33.16 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.813e-05/0.6065, allocations: 74.42 kB / 1.361 GB, free: 33.11 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.352e-06/0.6065, allocations: 0 / 1.361 GB, free: 33.11 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.095e-05/0.6065, allocations: 3.781 kB / 1.361 GB, free: 33.11 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.6065, allocations: 3.906 kB / 1.361 GB, free: 33.1 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003375/0.6069, allocations: 306.8 kB / 1.361 GB, free: 32.86 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 5.854e-05/0.6069, allocations: 41.69 kB / 1.361 GB, free: 32.83 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.883e-05/0.607, allocations: 17.27 kB / 1.361 GB, free: 32.82 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.105e-05/0.607, allocations: 0 / 1.361 GB, free: 32.82 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.353e-05/0.607, allocations: 38.98 kB / 1.361 GB, free: 32.79 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=4): time 8.01e-07/0.607, allocations: 0 / 1.361 GB, free: 32.79 MB / 0.8419 GB Notification: Performance of matching and sorting (n=4): time 0.0001365/0.6072, allocations: 57.48 kB / 1.361 GB, free: 32.75 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.696e-05/0.6072, allocations: 79.41 kB / 1.361 GB, free: 32.66 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.398e-05/0.6073, allocations: 127.1 kB / 1.361 GB, free: 32.55 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.076e-05/0.6073, allocations: 29.7 kB / 1.361 GB, free: 32.52 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 3.511e-05/0.6073, allocations: 93.38 kB / 1.361 GB, free: 32.43 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 1.395e-05/0.6073, allocations: 12.84 kB / 1.361 GB, free: 32.43 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.967e-06/0.6073, allocations: 0 / 1.361 GB, free: 32.43 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 8.62e-05/0.6074, allocations: 321.2 kB / 1.362 GB, free: 32.11 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.59e-05/0.6075, allocations: 11.06 kB / 1.362 GB, free: 32.11 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.697e-05/0.6075, allocations: 26.38 kB / 1.362 GB, free: 32.1 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.946e-05/0.6075, allocations: 20.64 kB / 1.362 GB, free: 32.09 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.173e-06/0.6075, allocations: 0 / 1.362 GB, free: 32.09 MB / 0.8419 GB Notification: Performance of matching and sorting (n=5) (initialization): time 8.472e-05/0.6076, allocations: 65.69 kB / 1.362 GB, free: 32.06 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 7.214e-06/0.6076, allocations: 7.719 kB / 1.362 GB, free: 32.06 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.286e-06/0.6077, allocations: 0 / 1.362 GB, free: 32.06 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.026e-06/0.6077, allocations: 0 / 1.362 GB, free: 32.06 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.681e-05/0.6078, allocations: 11.03 kB / 1.362 GB, free: 32.06 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.976e-06/0.6078, allocations: 3.938 kB / 1.362 GB, free: 32.05 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.528e-05/0.6079, allocations: 23.2 kB / 1.362 GB, free: 32.05 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.714e-06/0.6079, allocations: 8.406 kB / 1.362 GB, free: 32.04 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($PRE.chiSwi.hysteresis.y,chiSwi.hysteresis.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 5.345e-05/0.6079, allocations: 101 kB / 1.362 GB, free: 31.94 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.771e-05/0.608, allocations: 8.406 kB / 1.362 GB, free: 31.93 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.643e-05/0.608, allocations: 15.02 kB / 1.362 GB, free: 31.93 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-06/0.608, allocations: 0 / 1.362 GB, free: 31.93 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.608, allocations: 4 kB / 1.362 GB, free: 31.92 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.608, allocations: 0.7031 kB / 1.362 GB, free: 31.92 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001059/0.6081, allocations: 165.9 kB / 1.362 GB, free: 31.76 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.6081, allocations: 8.609 kB / 1.362 GB, free: 31.75 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.684e-05/0.6082, allocations: 10.27 kB / 1.362 GB, free: 31.75 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.442e-06/0.6082, allocations: 0 / 1.362 GB, free: 31.75 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.846e-06/0.6082, allocations: 1.359 kB / 1.362 GB, free: 31.75 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.02e-07/0.6082, allocations: 0 / 1.362 GB, free: 31.75 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.6082, allocations: 4 kB / 1.362 GB, free: 31.75 MB / 0.8419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001137/0.6084, allocations: 167.8 kB / 1.362 GB, free: 31.61 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 1.782e-05/0.6084, allocations: 82.05 kB / 1.362 GB, free: 31.51 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.948e-05/0.6084, allocations: 0.5625 kB / 1.362 GB, free: 31.51 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000106/0.6085, allocations: 19.11 kB / 1.362 GB, free: 31.51 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.795e-05/0.6086, allocations: 12.83 kB / 1.362 GB, free: 31.51 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.77e-06/0.6086, allocations: 4.609 kB / 1.362 GB, free: 31.51 MB / 0.8419 GB Notification: Performance of sort global known variables: time 4.432e-05/0.6086, allocations: 95.91 kB / 1.363 GB, free: 31.43 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0001863/0.6088, allocations: 11.59 kB / 1.363 GB, free: 31.43 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (chiSwi.hysteresis.y) * Number of discrete states: 1 (chiSwi.hysteresis.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 6.72e-05/0.6089, allocations: 99.98 kB / 1.363 GB, free: 31.34 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 8.565e-05/0.609, allocations: 35.19 kB / 1.363 GB, free: 31.34 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 9.42e-07/0.609, allocations: 0 / 1.363 GB, free: 31.34 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 2.924e-05/0.609, allocations: 24.17 kB / 1.363 GB, free: 31.34 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001332/0.6091, allocations: 1.219 kB / 1.363 GB, free: 31.34 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002144/0.6094, allocations: 97.56 kB / 1.363 GB, free: 31.26 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002521/0.6096, allocations: 0.7024 MB / 1.364 GB, free: 30.56 MB / 0.8419 GB Notification: Performance of SimCode: time 2.31e-07/0.6096, allocations: 0 / 1.364 GB, free: 30.56 MB / 0.8419 GB Notification: Performance of Templates: time 0.002153/0.6118, allocations: 0.797 MB / 1.364 GB, free: 30.5 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & ./Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.csv","../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches