Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.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.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chiSwi.TSet|chiSwi.chiCHWST|chiSwi.y",fileNamePrefix="Buildings_maint.7.0.x_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_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo): time 1.162/1.162, allocations: 249.4 MB / 256.7 MB, free: 7.082 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.001045/0.001045, allocations: 189.1 kB / 316 MB, free: 3.605 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9928/0.9928, allocations: 205.2 MB / 0.5667 GB, free: 15.71 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.0008239/0.0008239, allocations: 86.97 kB / 0.671 GB, free: 4.844 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.169e-06/5.189e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1279/0.1279, allocations: 106.3 MB / 0.8846 GB, free: 12.67 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.3862/0.5141, allocations: 133.4 MB / 1.015 GB, free: 5.332 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002249/0.5144, allocations: 91.23 kB / 1.015 GB, free: 5.277 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.003914/0.5183, allocations: 1.195 MB / 1.016 GB, free: 4.285 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 8.496e-06/0.5183, allocations: 4 kB / 1.016 GB, free: 4.281 MB / 0.6355 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.0003962/0.5187, allocations: 376.9 kB / 1.016 GB, free: 3.875 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.108e-05/0.5188, allocations: 13.05 kB / 1.016 GB, free: 3.863 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.579e-05/0.5188, allocations: 11.81 kB / 1.016 GB, free: 3.852 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001462/0.519, allocations: 178.9 kB / 1.017 GB, free: 3.637 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.156e-05/0.519, allocations: 3.812 kB / 1.017 GB, free: 3.637 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.191e-05/0.519, allocations: 4 kB / 1.017 GB, free: 3.633 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.79e-05/0.5191, allocations: 29.94 kB / 1.017 GB, free: 3.617 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001154/0.5192, allocations: 81.83 kB / 1.017 GB, free: 3.535 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.202e-06/0.5192, allocations: 0 / 1.017 GB, free: 3.535 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.162e-05/0.5192, allocations: 0 / 1.017 GB, free: 3.535 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.049e-06/0.5192, allocations: 4 kB / 1.017 GB, free: 3.531 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003871/0.5196, allocations: 306.6 kB / 1.017 GB, free: 3.219 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 6.879e-05/0.5197, allocations: 40.8 kB / 1.017 GB, free: 3.18 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.532e-05/0.5198, allocations: 19.61 kB / 1.017 GB, free: 3.164 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.562e-05/0.5198, allocations: 0 / 1.017 GB, free: 3.164 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.038e-05/0.5198, allocations: 38.64 kB / 1.017 GB, free: 3.117 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=4): time 8.82e-07/0.5198, allocations: 0 / 1.017 GB, free: 3.117 MB / 0.6355 GB Notification: Performance of matching and sorting (n=4): time 0.000167/0.52, allocations: 60.41 kB / 1.017 GB, free: 3.059 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.625e-05/0.52, allocations: 80.11 kB / 1.017 GB, free: 2.965 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.898e-05/0.5201, allocations: 115.2 kB / 1.017 GB, free: 2.852 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.583e-05/0.5202, allocations: 25.7 kB / 1.017 GB, free: 2.82 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.682e-05/0.5202, allocations: 95.55 kB / 1.018 GB, free: 2.727 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.813e-05/0.5202, allocations: 15.33 kB / 1.018 GB, free: 2.715 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.638e-06/0.5202, allocations: 0 / 1.018 GB, free: 2.715 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 8.113e-05/0.5203, allocations: 321.6 kB / 1.018 GB, free: 2.395 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.034e-05/0.5203, allocations: 14.69 kB / 1.018 GB, free: 2.387 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.775e-05/0.5204, allocations: 32.58 kB / 1.018 GB, free: 2.355 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.792e-05/0.5204, allocations: 11.25 kB / 1.018 GB, free: 2.348 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.5204, allocations: 0 / 1.018 GB, free: 2.348 MB / 0.6355 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001003/0.5205, allocations: 64.41 kB / 1.018 GB, free: 2.289 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 9.007e-06/0.5205, allocations: 4 kB / 1.018 GB, free: 2.285 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.356e-06/0.5206, allocations: 4 kB / 1.018 GB, free: 2.281 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.598e-06/0.5206, allocations: 4.031 kB / 1.018 GB, free: 2.277 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001044/0.5207, allocations: 11.98 kB / 1.018 GB, free: 2.266 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.366e-06/0.5207, allocations: 0 / 1.018 GB, free: 2.266 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.488e-05/0.5208, allocations: 15.98 kB / 1.018 GB, free: 2.25 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.803e-06/0.5208, allocations: 4 kB / 1.018 GB, free: 2.246 MB / 0.6355 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.906e-05/0.5209, allocations: 108.7 kB / 1.018 GB, free: 2.137 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.111e-05/0.5209, allocations: 15.88 kB / 1.018 GB, free: 2.121 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.581e-05/0.5209, allocations: 11.28 kB / 1.018 GB, free: 2.113 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-06/0.5209, allocations: 0 / 1.018 GB, free: 2.113 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.5209, allocations: 4 kB / 1.018 GB, free: 2.109 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.496e-06/0.521, allocations: 3.984 kB / 1.018 GB, free: 2.105 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001342/0.5211, allocations: 156.1 kB / 1.018 GB, free: 1.926 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.5211, allocations: 4.812 kB / 1.018 GB, free: 1.922 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.281e-05/0.5212, allocations: 15.98 kB / 1.018 GB, free: 1.906 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.5212, allocations: 0 / 1.018 GB, free: 1.906 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.373e-06/0.5212, allocations: 0 / 1.018 GB, free: 1.906 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.5212, allocations: 4 kB / 1.018 GB, free: 1.902 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.5212, allocations: 7.844 kB / 1.018 GB, free: 1.895 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000119/0.5213, allocations: 158.3 kB / 1.018 GB, free: 1.734 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 3.251e-05/0.5214, allocations: 84.95 kB / 1.019 GB, free: 1.633 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.271e-05/0.5214, allocations: 11.19 kB / 1.019 GB, free: 1.625 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001132/0.5215, allocations: 15.98 kB / 1.019 GB, free: 1.609 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.175e-05/0.5216, allocations: 7.984 kB / 1.019 GB, free: 1.602 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.574e-06/0.5216, allocations: 4 kB / 1.019 GB, free: 1.598 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.357e-05/0.5216, allocations: 94.27 kB / 1.019 GB, free: 1.512 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002014/0.5218, allocations: 19.94 kB / 1.019 GB, free: 1.492 MB / 0.6355 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 8.913e-05/0.5219, allocations: 99.25 kB / 1.019 GB, free: 1.383 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 9.668e-05/0.522, allocations: 33.55 kB / 1.019 GB, free: 1.363 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.193e-06/0.522, allocations: 4 kB / 1.019 GB, free: 1.359 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 3.361e-05/0.5221, allocations: 11.44 kB / 1.019 GB, free: 1.352 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001412/0.5222, allocations: 10.91 kB / 1.019 GB, free: 1.344 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002556/0.5225, allocations: 104.3 kB / 1.019 GB, free: 1.227 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002297/0.5227, allocations: 0.7071 MB / 1.02 GB, free: 0.4961 MB / 0.6355 GB Notification: Performance of SimCode: time 2.41e-07/0.5227, allocations: 0 / 1.02 GB, free: 0.4961 MB / 0.6355 GB Notification: Performance of Templates: time 0.002257/0.525, allocations: 0.7912 MB / 1.02 GB, free: 15.75 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile (rm -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & ./Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.csv","../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches