Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.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.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TWat.y.1.|per.TWatMax|assWatTem.assMes.u",fileNamePrefix="Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature") translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TWat.y.1.|per.TWatMax|assWatTem.assMes.u",fileNamePrefix="Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature") [: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.867/1.867, allocations: 387.2 MB / 394.5 MB, free: 13.67 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.001019/0.001019, allocations: 180.5 kB / 487 MB, free: 5.375 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.237/1.237, allocations: 221.3 MB / 0.7819 GB, free: 1.371 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.0009118/0.0009117, allocations: 111.1 kB / 0.9213 GB, free: 2.625 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 7.424e-06/7.444e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.227/0.2271, allocations: 142.3 MB / 1.205 GB, free: 26.27 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5877/0.8148, allocations: 154.1 MB / 1.356 GB, free: 15.65 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002534/0.8151, allocations: 91.14 kB / 1.356 GB, free: 15.65 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.02558/0.8407, allocations: 10.01 MB / 1.366 GB, free: 11.3 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 2.219e-05/0.8407, allocations: 12 kB / 1.366 GB, free: 11.29 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005593/0.8413, allocations: 0.5673 MB / 1.366 GB, free: 10.71 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.8414, allocations: 17.02 kB / 1.366 GB, free: 10.69 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.551e-05/0.8414, allocations: 43.44 kB / 1.366 GB, free: 10.65 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004775/0.8419, allocations: 348.3 kB / 1.367 GB, free: 10.3 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.806e-05/0.842, allocations: 7.906 kB / 1.367 GB, free: 10.29 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.13e-05/0.842, allocations: 4 kB / 1.367 GB, free: 10.29 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.452e-05/0.8421, allocations: 37.23 kB / 1.367 GB, free: 10.27 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001191/0.8422, allocations: 70.61 kB / 1.367 GB, free: 10.2 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/0.8422, allocations: 0 / 1.367 GB, free: 10.2 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.369e-05/0.8422, allocations: 0 / 1.367 GB, free: 10.2 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.59e-06/0.8423, allocations: 4 kB / 1.367 GB, free: 10.2 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005113/0.8428, allocations: 443.4 kB / 1.367 GB, free: 9.801 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001039/0.8429, allocations: 63.83 kB / 1.367 GB, free: 9.742 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.122e-05/0.8429, allocations: 23.67 kB / 1.367 GB, free: 9.723 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.328e-05/0.843, allocations: 7.938 kB / 1.367 GB, free: 9.715 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.984e-05/0.843, allocations: 70.69 kB / 1.367 GB, free: 9.645 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=6): time 1.223e-06/0.8431, allocations: 3.938 kB / 1.367 GB, free: 9.641 MB / 0.8073 GB Notification: Performance of matching and sorting (n=6): time 0.0002015/0.8433, allocations: 106.8 kB / 1.367 GB, free: 9.543 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.387e-05/0.8433, allocations: 55.41 kB / 1.367 GB, free: 9.477 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004198/0.8437, allocations: 458.3 kB / 1.368 GB, free: 9.117 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.902e-05/0.8437, allocations: 29.7 kB / 1.368 GB, free: 9.082 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 5.941e-05/0.8438, allocations: 141.5 kB / 1.368 GB, free: 8.961 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.029e-05/0.8438, allocations: 15.8 kB / 1.368 GB, free: 8.945 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.227e-06/0.8439, allocations: 0 / 1.368 GB, free: 8.945 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 8.649e-05/0.8439, allocations: 353.9 kB / 1.368 GB, free: 8.609 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.824e-05/0.844, allocations: 52.92 kB / 1.368 GB, free: 8.578 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.301e-05/0.8441, allocations: 86.52 kB / 1.368 GB, free: 8.504 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001863/0.8443, allocations: 64.02 kB / 1.369 GB, free: 8.461 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.8443, allocations: 4.031 kB / 1.369 GB, free: 8.457 MB / 0.8073 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.000305/0.8446, allocations: 209.4 kB / 1.369 GB, free: 8.281 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.324e-05/0.8447, allocations: 4 kB / 1.369 GB, free: 8.277 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.8447, allocations: 4 kB / 1.369 GB, free: 8.273 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.292e-05/0.8447, allocations: 64 / 1.369 GB, free: 8.273 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000119/0.8448, allocations: 31.05 kB / 1.369 GB, free: 8.246 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.482e-06/0.8448, allocations: 7.984 kB / 1.369 GB, free: 8.238 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001231/0.845, allocations: 16.02 kB / 1.369 GB, free: 8.223 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.624e-05/0.845, allocations: 4 kB / 1.369 GB, free: 8.219 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$PRE.TWat.tab.nextTimeEvent,$PRE.assWatTem.hys.y,assWatTem.hys.y,TWat.tab.nextTimeEvent,$PRE.TWat.tab.nextTimeEventScaled,TWat.tab.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * 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 6.094e-05/0.8451, allocations: 117 kB / 1.369 GB, free: 8.105 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.935e-05/0.8451, allocations: 43.44 kB / 1.369 GB, free: 8.062 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001933/0.8453, allocations: 127.9 kB / 1.369 GB, free: 7.957 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.8453, allocations: 0 / 1.369 GB, free: 7.957 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.8453, allocations: 0 / 1.369 GB, free: 7.957 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.8453, allocations: 4 kB / 1.369 GB, free: 7.953 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001924/0.8455, allocations: 276.2 kB / 1.369 GB, free: 7.691 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.8455, allocations: 0 / 1.369 GB, free: 7.691 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.097e-05/0.8456, allocations: 7.906 kB / 1.369 GB, free: 7.684 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.8456, allocations: 0 / 1.369 GB, free: 7.684 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.063e-05/0.8456, allocations: 3.984 kB / 1.369 GB, free: 7.68 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.8456, allocations: 0 / 1.369 GB, free: 7.68 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.8456, allocations: 7.938 kB / 1.369 GB, free: 7.672 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001398/0.8458, allocations: 133.8 kB / 1.369 GB, free: 7.535 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 6.906e-05/0.8458, allocations: 124.5 kB / 1.37 GB, free: 7.398 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.532e-05/0.8459, allocations: 11.92 kB / 1.37 GB, free: 7.387 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.31e-05/0.846, allocations: 7.984 kB / 1.37 GB, free: 7.379 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.194e-05/0.846, allocations: 11.67 kB / 1.37 GB, free: 7.371 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.446e-06/0.8461, allocations: 4 kB / 1.37 GB, free: 7.367 MB / 0.8073 GB Notification: Performance of sort global known variables: time 0.0002656/0.8463, allocations: 338.5 kB / 1.37 GB, free: 7.109 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002762/0.8466, allocations: 55.25 kB / 1.37 GB, free: 7.059 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: 4 ($whenCondition1,assWatTem.hys.y,TWat.tab.nextTimeEvent,TWat.tab.nextTimeEventScaled) * Number of discrete states: 3 (assWatTem.hys.y,TWat.tab.nextTimeEvent,TWat.tab.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0006778/0.8473, allocations: 353.3 kB / 1.37 GB, free: 6.805 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001691/0.8475, allocations: 100.9 kB / 1.37 GB, free: 6.73 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.8475, allocations: 8.062 kB / 1.37 GB, free: 6.723 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 4.95e-05/0.8475, allocations: 30 kB / 1.37 GB, free: 6.703 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000311/0.8479, allocations: 47.61 kB / 1.371 GB, free: 6.672 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000692/0.8486, allocations: 456.2 kB / 1.371 GB, free: 6.258 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003174/0.8489, allocations: 0.8355 MB / 1.372 GB, free: 21.4 MB / 0.823 GB Notification: Performance of SimCode: time 2.8e-07/0.8489, allocations: 0 / 1.372 GB, free: 21.4 MB / 0.823 GB Notification: Performance of Templates: time 0.005789/0.8547, allocations: 2.654 MB / 1.374 GB, free: 18.8 MB / 0.823 GB make -j1 -f Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.makefile (rm -f Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.pipe ; mkfifo Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.pipe >> ../files/Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.sim & ./Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterTemperature.csv","../files/Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterTemperature.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches