Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Boilers.Examples.BoilerPolynomial.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.Fluid.Boilers.Examples.BoilerPolynomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|boi1.sta_a.T|boi1.sta_b.T|boi1.T|boi2.sta_a.T|boi2.sta_b.T|boi2.T|y.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.Boilers.Examples.BoilerPolynomial") translateModel(Buildings.Fluid.Boilers.Examples.BoilerPolynomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|boi1.sta_a.T|boi1.sta_b.T|boi1.T|boi2.sta_a.T|boi2.sta_b.T|boi2.T|y.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.Boilers.Examples.BoilerPolynomial") [: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.932/1.932, allocations: 390.4 MB / 397.7 MB, free: 11.28 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.001086/0.001086, allocations: 185.3 kB / 490.8 MB, free: 1.957 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.302/1.302, allocations: 221.3 MB / 0.7863 GB, free: 13.73 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008944/0.0008946, allocations: 94.92 kB / 0.9264 GB, free: 14.25 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 6.732e-06/6.762e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2589/0.2589, allocations: 143 MB / 1.212 GB, free: 40.15 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8912/1.15, allocations: 419.7 MB / 1.621 GB, free: 11.89 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002609/1.151, allocations: 94.84 kB / 1.622 GB, free: 11.84 MB / 1.042 GB Notification: Performance of FrontEnd: time 1.403/2.553, allocations: 461.6 MB / 2.072 GB, free: 129.5 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001392/2.554, allocations: 32 kB / 2.072 GB, free: 129.5 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 221 * Number of variables: 221 Notification: Performance of Generate backend data structure: time 0.003061/2.557, allocations: 1.514 MB / 2.074 GB, free: 127.9 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 3.743e-05/2.557, allocations: 8.031 kB / 2.074 GB, free: 127.9 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006284/2.557, allocations: 170.1 kB / 2.074 GB, free: 127.7 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0029/2.56, allocations: 1.41 MB / 2.075 GB, free: 126.2 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.603e-05/2.56, allocations: 24 kB / 2.075 GB, free: 126.2 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000164/2.561, allocations: 59.91 kB / 2.075 GB, free: 126.2 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001046/2.562, allocations: 0.5897 MB / 2.076 GB, free: 125.6 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001186/2.563, allocations: 0.8084 MB / 2.077 GB, free: 124.7 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.94e-05/2.563, allocations: 3.984 kB / 2.077 GB, free: 124.7 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.225e-05/2.563, allocations: 0 / 2.077 GB, free: 124.7 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.041e-05/2.563, allocations: 37.98 kB / 2.077 GB, free: 124.7 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005382/2.568, allocations: 4.32 MB / 2.081 GB, free: 120.1 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007748/2.569, allocations: 456.3 kB / 2.082 GB, free: 119.7 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002848/2.569, allocations: 249.7 kB / 2.082 GB, free: 119.4 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003072/2.57, allocations: 0.5064 MB / 2.082 GB, free: 118.8 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003782/2.57, allocations: 334.9 kB / 2.083 GB, free: 118.5 MB / 1.151 GB Notification: Performance of pre-optimization done (n=49): time 2.244e-06/2.57, allocations: 0 / 2.083 GB, free: 118.5 MB / 1.151 GB Notification: Performance of matching and sorting (n=51): time 0.003331/2.573, allocations: 1.49 MB / 2.084 GB, free: 116.9 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.246e-05/2.574, allocations: 136.9 kB / 2.084 GB, free: 116.7 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00109/2.575, allocations: 0.8204 MB / 2.085 GB, free: 115.9 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 5.95e-05/2.575, allocations: 29.7 kB / 2.085 GB, free: 115.9 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002634/2.575, allocations: 430.7 kB / 2.085 GB, free: 115.4 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001215/2.575, allocations: 169.7 kB / 2.086 GB, free: 115.3 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.507e-05/2.575, allocations: 3.938 kB / 2.086 GB, free: 115.3 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 6.501e-05/2.575, allocations: 329.9 kB / 2.086 GB, free: 114.9 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002526/2.575, allocations: 201.2 kB / 2.086 GB, free: 114.7 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003215/2.576, allocations: 402.4 kB / 2.086 GB, free: 114.3 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004683/2.576, allocations: 269.9 kB / 2.087 GB, free: 114 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/2.576, allocations: 4 kB / 2.087 GB, free: 114 MB / 1.151 GB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001236/2.578, allocations: 0.7507 MB / 2.087 GB, free: 113.2 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002621/2.578, allocations: 1.497 MB / 2.089 GB, free: 111.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.135e-05/2.578, allocations: 8 kB / 2.089 GB, free: 111.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004425/2.578, allocations: 129.6 kB / 2.089 GB, free: 111.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003865/2.579, allocations: 111.8 kB / 2.089 GB, free: 111.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001392/2.58, allocations: 2.168 MB / 2.091 GB, free: 109.1 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009247/2.581, allocations: 75.83 kB / 2.091 GB, free: 109 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.684e-05/2.581, allocations: 32.05 kB / 2.091 GB, free: 109 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 8.766e-06/2.581, allocations: 4 kB / 2.091 GB, free: 109 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009733/2.582, allocations: 0.6212 MB / 2.092 GB, free: 108.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/2.582, allocations: 4 kB / 2.092 GB, free: 108.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002331/2.582, allocations: 101.7 kB / 2.092 GB, free: 108.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003576/2.583, allocations: 108.1 kB / 2.092 GB, free: 108.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001246/2.584, allocations: 2.163 MB / 2.094 GB, free: 105.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007981/2.585, allocations: 55.84 kB / 2.094 GB, free: 105.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.205e-05/2.585, allocations: 32.06 kB / 2.094 GB, free: 105.7 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,y.a,y.b,y.last,$PRE.y.nextEvent,y.nextEvent,y.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001805/2.585, allocations: 158.6 kB / 2.095 GB, free: 105.6 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000159/2.585, allocations: 114.7 kB / 2.095 GB, free: 105.4 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001157/2.586, allocations: 0.6918 MB / 2.095 GB, free: 104.7 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.308e-06/2.586, allocations: 7.984 kB / 2.095 GB, free: 104.7 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/2.586, allocations: 0 / 2.095 GB, free: 104.7 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008241/2.587, allocations: 0.6295 MB / 2.096 GB, free: 104.1 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00234/2.59, allocations: 1.669 MB / 2.098 GB, free: 102.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/2.59, allocations: 3.906 kB / 2.098 GB, free: 102.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003308/2.59, allocations: 71.89 kB / 2.098 GB, free: 102.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003541/2.59, allocations: 125.8 kB / 2.098 GB, free: 102.1 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.677e-05/2.59, allocations: 11.98 kB / 2.098 GB, free: 102.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001194/2.592, allocations: 2.155 MB / 2.1 GB, free: 99.82 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/2.592, allocations: 4 kB / 2.1 GB, free: 99.82 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001301/2.593, allocations: 1.122 MB / 2.101 GB, free: 98.64 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004464/2.593, allocations: 284 kB / 2.101 GB, free: 98.34 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001844/2.594, allocations: 4 kB / 2.101 GB, free: 98.34 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006385/2.594, allocations: 39.95 kB / 2.101 GB, free: 98.3 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.253e-05/2.594, allocations: 31.86 kB / 2.101 GB, free: 98.27 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.003e-05/2.594, allocations: 27.98 kB / 2.101 GB, free: 98.24 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.0007011/2.595, allocations: 0.6359 MB / 2.102 GB, free: 97.59 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001843/2.597, allocations: 0.5935 MB / 2.103 GB, free: 97 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (boi1.heaCapDry.T) * Number of discrete variables: 6 ($whenCondition1,y.a,y.b,y.last,y.nextEvent,y.nextEventScaled) * Number of discrete states: 6 (y.nextEvent,y.last,y.nextEventScaled,y.b,y.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.001039/2.598, allocations: 0.5914 MB / 2.103 GB, free: 96.41 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001493/2.599, allocations: 1.136 MB / 2.104 GB, free: 95.24 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/2.599, allocations: 0 / 2.104 GB, free: 95.24 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0004653/2.6, allocations: 432.7 kB / 2.105 GB, free: 94.8 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001942/2.602, allocations: 451.9 kB / 2.105 GB, free: 94.36 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002844/2.605, allocations: 1.475 MB / 2.107 GB, free: 92.84 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007006/2.605, allocations: 1.242 MB / 2.108 GB, free: 91.57 MB / 1.151 GB Notification: Performance of SimCode: time 5.91e-07/2.605, allocations: 3.938 kB / 2.108 GB, free: 91.57 MB / 1.151 GB Notification: Performance of Templates: time 0.03539/2.641, allocations: 24.76 MB / 2.132 GB, free: 67.04 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Fluid.Boilers.Examples.BoilerPolynomial.makefile (rm -f Buildings_latest_Buildings.Fluid.Boilers.Examples.BoilerPolynomial.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Boilers.Examples.BoilerPolynomial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Boilers.Examples.BoilerPolynomial.pipe >> ../files/Buildings_latest_Buildings.Fluid.Boilers.Examples.BoilerPolynomial.sim & ./Buildings_latest_Buildings.Fluid.Boilers.Examples.BoilerPolynomial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Boilers.Examples.BoilerPolynomial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Boilers.Examples.BoilerPolynomial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Boilers_Examples_BoilerPolynomial.csv","../files/Buildings_latest_Buildings.Fluid.Boilers.Examples.BoilerPolynomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches