Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.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.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chiSwi.TSet|chiSwi.chiCHWST|chiSwi.y",fileNamePrefix="Buildings_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 1.727/1.727, allocations: 387.2 MB / 394.5 MB, free: 13.68 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008945/0.0008945, allocations: 187.8 kB / 487 MB, free: 5.402 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.085/1.085, allocations: 221.3 MB / 0.7819 GB, free: 1.395 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008151/0.0008151, allocations: 85.86 kB / 0.9213 GB, free: 2.645 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 5.931e-06/5.971e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1661/0.1661, allocations: 142.3 MB / 1.205 GB, free: 26.26 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4358/0.6019, allocations: 149.9 MB / 1.352 GB, free: 15.94 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002035/0.6022, allocations: 90.25 kB / 1.352 GB, free: 15.94 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.003695/0.6059, allocations: 1.242 MB / 1.353 GB, free: 15.86 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 6.733e-06/0.6059, allocations: 2.062 kB / 1.353 GB, free: 15.86 MB / 0.8073 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.0002913/0.6062, allocations: 380.2 kB / 1.353 GB, free: 15.49 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.014e-05/0.6062, allocations: 8.906 kB / 1.353 GB, free: 15.49 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.388e-05/0.6063, allocations: 10.03 kB / 1.353 GB, free: 15.48 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.179e-05/0.6064, allocations: 173.5 kB / 1.353 GB, free: 15.28 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.017e-06/0.6064, allocations: 4.781 kB / 1.353 GB, free: 15.28 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.217e-05/0.6064, allocations: 3.25 kB / 1.353 GB, free: 15.28 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.912e-05/0.6065, allocations: 28.5 kB / 1.353 GB, free: 15.28 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001066/0.6066, allocations: 76.31 kB / 1.354 GB, free: 15.23 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.583e-06/0.6066, allocations: 3.906 kB / 1.354 GB, free: 15.22 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.112e-05/0.6066, allocations: 4.906 kB / 1.354 GB, free: 15.22 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.6067, allocations: 1 kB / 1.354 GB, free: 15.22 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003537/0.607, allocations: 303.1 kB / 1.354 GB, free: 14.98 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 6.829e-05/0.6071, allocations: 40.73 kB / 1.354 GB, free: 14.95 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.398e-05/0.6071, allocations: 21.2 kB / 1.354 GB, free: 14.95 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.556e-05/0.6072, allocations: 4.969 kB / 1.354 GB, free: 14.94 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.308e-05/0.6072, allocations: 32.17 kB / 1.354 GB, free: 14.9 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=4): time 1.012e-06/0.6072, allocations: 0 / 1.354 GB, free: 14.9 MB / 0.8073 GB Notification: Performance of matching and sorting (n=4): time 0.0001607/0.6073, allocations: 59.02 kB / 1.354 GB, free: 14.87 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.767e-05/0.6074, allocations: 77.92 kB / 1.354 GB, free: 14.77 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.303e-05/0.6074, allocations: 125.6 kB / 1.354 GB, free: 14.67 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.149e-05/0.6075, allocations: 27.27 kB / 1.354 GB, free: 14.64 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.266e-05/0.6075, allocations: 94.27 kB / 1.354 GB, free: 14.55 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.563e-05/0.6075, allocations: 13.33 kB / 1.354 GB, free: 14.55 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.869e-06/0.6075, allocations: 0 / 1.354 GB, free: 14.55 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 3.348e-05/0.6076, allocations: 322.8 kB / 1.355 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.904e-05/0.6076, allocations: 15.56 kB / 1.355 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.344e-05/0.6076, allocations: 28.81 kB / 1.355 GB, free: 14.21 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.883e-05/0.6077, allocations: 10.83 kB / 1.355 GB, free: 14.21 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.6077, allocations: 0 / 1.355 GB, free: 14.21 MB / 0.8073 GB Notification: Performance of matching and sorting (n=5) (initialization): time 9.744e-05/0.6078, allocations: 71.7 kB / 1.355 GB, free: 14.18 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.031e-05/0.6078, allocations: 5.406 kB / 1.355 GB, free: 14.18 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.046e-06/0.6078, allocations: 0 / 1.355 GB, free: 14.18 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.727e-06/0.6078, allocations: 0.875 kB / 1.355 GB, free: 14.18 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001048/0.6079, allocations: 12.08 kB / 1.355 GB, free: 14.18 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.468e-06/0.6079, allocations: 2.406 kB / 1.355 GB, free: 14.18 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.861e-05/0.608, allocations: 22.94 kB / 1.355 GB, free: 14.17 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.464e-06/0.608, allocations: 0.6562 kB / 1.355 GB, free: 14.17 MB / 0.8073 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 4.144e-05/0.6081, allocations: 109 kB / 1.355 GB, free: 14.06 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.969e-05/0.6081, allocations: 10.91 kB / 1.355 GB, free: 14.05 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.65e-05/0.6081, allocations: 11.22 kB / 1.355 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.6082, allocations: 1.672 kB / 1.355 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.765e-06/0.6082, allocations: 0 / 1.355 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.297e-06/0.6082, allocations: 4.969 kB / 1.355 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001175/0.6083, allocations: 171.6 kB / 1.355 GB, free: 13.88 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.6083, allocations: 4 kB / 1.355 GB, free: 13.87 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.469e-05/0.6084, allocations: 12.61 kB / 1.355 GB, free: 13.87 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.6084, allocations: 0.6562 kB / 1.355 GB, free: 13.87 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.236e-06/0.6084, allocations: 1.891 kB / 1.355 GB, free: 13.87 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.6084, allocations: 0 / 1.355 GB, free: 13.87 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.6084, allocations: 1.25 kB / 1.355 GB, free: 13.87 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001022/0.6085, allocations: 160.1 kB / 1.355 GB, free: 13.73 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.757e-05/0.6085, allocations: 87.33 kB / 1.355 GB, free: 13.63 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.092e-05/0.6086, allocations: 2.219 kB / 1.355 GB, free: 13.63 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001159/0.6087, allocations: 18.94 kB / 1.355 GB, free: 13.63 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.583e-05/0.6087, allocations: 17.38 kB / 1.355 GB, free: 13.62 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.671e-06/0.6088, allocations: 4.938 kB / 1.355 GB, free: 13.62 MB / 0.8073 GB Notification: Performance of sort global known variables: time 3.268e-05/0.6088, allocations: 96.72 kB / 1.355 GB, free: 13.54 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002033/0.609, allocations: 11.09 kB / 1.355 GB, free: 13.54 MB / 0.8073 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 7.381e-05/0.6091, allocations: 99 kB / 1.356 GB, free: 13.46 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 9.821e-05/0.6092, allocations: 36.52 kB / 1.356 GB, free: 13.46 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.6092, allocations: 0.875 kB / 1.356 GB, free: 13.46 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 3.592e-05/0.6092, allocations: 14.5 kB / 1.356 GB, free: 13.46 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001456/0.6094, allocations: 20.45 kB / 1.356 GB, free: 13.45 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002386/0.6096, allocations: 90.61 kB / 1.356 GB, free: 13.37 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001916/0.6098, allocations: 0.7067 MB / 1.356 GB, free: 28.67 MB / 0.823 GB Notification: Performance of SimCode: time 2.51e-07/0.6098, allocations: 0 / 1.356 GB, free: 28.67 MB / 0.823 GB Notification: Performance of Templates: time 0.002376/0.6122, allocations: 0.7847 MB / 1.357 GB, free: 28.61 MB / 0.823 GB make -j1 -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & ./Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.csv","../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches