Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomial.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.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_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 1.952/1.952, 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.001011/0.001011, allocations: 192.6 kB / 487 MB, free: 5.387 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.256/1.256, allocations: 221.3 MB / 0.7819 GB, free: 1.465 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.0008681/0.0008684, allocations: 99.17 kB / 0.9213 GB, free: 2.719 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 9.648e-06/9.668e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2627/0.2627, allocations: 142.3 MB / 1.205 GB, free: 26.29 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9124/1.175, allocations: 418.9 MB / 1.614 GB, free: 4.641 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002457/1.175, allocations: 89.94 kB / 1.614 GB, free: 4.594 MB / 1.042 GB Notification: Performance of FrontEnd: time 1.347/2.522, allocations: 461.6 MB / 2.065 GB, free: 94.25 MB / 1.135 GB Notification: Performance of Transformations before backend: time 8.229e-05/2.522, allocations: 31.98 kB / 2.065 GB, free: 94.22 MB / 1.135 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.002042/2.524, allocations: 1.518 MB / 2.067 GB, free: 92.64 MB / 1.135 GB Notification: Performance of prepare preOptimizeDAE: time 3.002e-05/2.524, allocations: 13.03 kB / 2.067 GB, free: 92.62 MB / 1.135 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003703/2.525, allocations: 166.1 kB / 2.067 GB, free: 92.46 MB / 1.135 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002202/2.527, allocations: 1.418 MB / 2.068 GB, free: 90.98 MB / 1.135 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.504e-05/2.527, allocations: 31.91 kB / 2.068 GB, free: 90.95 MB / 1.135 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.405e-05/2.527, allocations: 56 kB / 2.068 GB, free: 90.9 MB / 1.135 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008717/2.528, allocations: 0.5819 MB / 2.069 GB, free: 90.32 MB / 1.135 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001062/2.529, allocations: 0.8084 MB / 2.07 GB, free: 89.47 MB / 1.135 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.38e-05/2.529, allocations: 0 / 2.07 GB, free: 89.47 MB / 1.135 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.495e-05/2.529, allocations: 4 kB / 2.07 GB, free: 89.47 MB / 1.135 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.464e-05/2.529, allocations: 41.92 kB / 2.07 GB, free: 89.43 MB / 1.135 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004273/2.533, allocations: 4.307 MB / 2.074 GB, free: 84.89 MB / 1.135 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007504/2.534, allocations: 465.3 kB / 2.074 GB, free: 84.43 MB / 1.135 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002706/2.534, allocations: 245.6 kB / 2.075 GB, free: 84.19 MB / 1.135 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002603/2.535, allocations: 0.5065 MB / 2.075 GB, free: 83.57 MB / 1.135 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003415/2.535, allocations: 338.8 kB / 2.075 GB, free: 83.21 MB / 1.135 GB Notification: Performance of pre-optimization done (n=49): time 1.964e-06/2.535, allocations: 0 / 2.075 GB, free: 83.21 MB / 1.135 GB Notification: Performance of matching and sorting (n=51): time 0.00263/2.538, allocations: 1.49 MB / 2.077 GB, free: 81.66 MB / 1.135 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.196e-05/2.538, allocations: 136.9 kB / 2.077 GB, free: 81.5 MB / 1.135 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008247/2.538, allocations: 0.8126 MB / 2.078 GB, free: 80.67 MB / 1.135 GB Notification: Performance of collectPreVariables (initialization): time 4.15e-05/2.539, allocations: 29.7 kB / 2.078 GB, free: 80.63 MB / 1.135 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001978/2.539, allocations: 434.7 kB / 2.078 GB, free: 80.2 MB / 1.135 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001065/2.539, allocations: 173.6 kB / 2.078 GB, free: 80.03 MB / 1.135 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.655e-05/2.539, allocations: 3.938 kB / 2.078 GB, free: 80.02 MB / 1.135 GB Notification: Performance of setup shared object (initialization): time 4.938e-05/2.539, allocations: 330 kB / 2.079 GB, free: 79.7 MB / 1.135 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002534/2.539, allocations: 197.3 kB / 2.079 GB, free: 79.5 MB / 1.135 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003244/2.539, allocations: 406.3 kB / 2.079 GB, free: 79.02 MB / 1.135 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004308/2.54, allocations: 273.3 kB / 2.08 GB, free: 78.75 MB / 1.135 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/2.54, allocations: 0 / 2.08 GB, free: 78.75 MB / 1.135 GB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001085/2.541, allocations: 0.7507 MB / 2.08 GB, free: 77.98 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002213/2.541, allocations: 1.486 MB / 2.082 GB, free: 76.38 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/2.541, allocations: 8 kB / 2.082 GB, free: 76.38 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004162/2.542, allocations: 129.6 kB / 2.082 GB, free: 76.24 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003719/2.542, allocations: 111.8 kB / 2.082 GB, free: 76.13 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001296/2.543, allocations: 2.164 MB / 2.084 GB, free: 73.82 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000811/2.544, allocations: 75.83 kB / 2.084 GB, free: 73.75 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.14e-05/2.544, allocations: 32.05 kB / 2.084 GB, free: 73.72 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 5.851e-06/2.544, allocations: 4 kB / 2.084 GB, free: 73.71 MB / 1.135 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009833/2.545, allocations: 0.6176 MB / 2.085 GB, free: 73.09 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/2.545, allocations: 8 kB / 2.085 GB, free: 73.08 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002382/2.546, allocations: 105.6 kB / 2.085 GB, free: 72.97 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000355/2.546, allocations: 104.2 kB / 2.085 GB, free: 72.87 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001209/2.547, allocations: 2.167 MB / 2.087 GB, free: 70.56 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006827/2.548, allocations: 59.8 kB / 2.087 GB, free: 70.5 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.263e-05/2.548, allocations: 36.05 kB / 2.087 GB, free: 70.47 MB / 1.135 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.0001921/2.548, allocations: 166.5 kB / 2.087 GB, free: 70.29 MB / 1.135 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001242/2.548, allocations: 110.6 kB / 2.087 GB, free: 70.18 MB / 1.135 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001242/2.549, allocations: 0.6803 MB / 2.088 GB, free: 69.5 MB / 1.135 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.414e-06/2.549, allocations: 8 kB / 2.088 GB, free: 69.49 MB / 1.135 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/2.549, allocations: 0 / 2.088 GB, free: 69.49 MB / 1.135 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008523/2.55, allocations: 0.6451 MB / 2.089 GB, free: 68.8 MB / 1.135 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002246/2.553, allocations: 1.669 MB / 2.09 GB, free: 67.07 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.581e-06/2.553, allocations: 8.062 kB / 2.09 GB, free: 67.07 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003444/2.553, allocations: 67.89 kB / 2.091 GB, free: 67 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003602/2.553, allocations: 133.7 kB / 2.091 GB, free: 66.86 MB / 1.135 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.452e-05/2.553, allocations: 8 kB / 2.091 GB, free: 66.86 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001197/2.555, allocations: 2.151 MB / 2.093 GB, free: 64.56 MB / 1.135 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/2.555, allocations: 3.984 kB / 2.093 GB, free: 64.56 MB / 1.135 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001335/2.556, allocations: 1.118 MB / 2.094 GB, free: 63.38 MB / 1.135 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003988/2.556, allocations: 276.1 kB / 2.094 GB, free: 63.09 MB / 1.135 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001629/2.557, allocations: 4 kB / 2.094 GB, free: 63.09 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005945/2.557, allocations: 43.94 kB / 2.094 GB, free: 63.05 MB / 1.135 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.566e-05/2.557, allocations: 35.77 kB / 2.094 GB, free: 63.01 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.054e-05/2.557, allocations: 32.09 kB / 2.094 GB, free: 62.98 MB / 1.135 GB Notification: Performance of sort global known variables: time 0.0006818/2.558, allocations: 0.6281 MB / 2.095 GB, free: 62.34 MB / 1.135 GB Notification: Performance of remove unused functions: time 0.001679/2.56, allocations: 0.6013 MB / 2.095 GB, free: 61.74 MB / 1.135 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.0008342/2.56, allocations: 0.5901 MB / 2.096 GB, free: 61.16 MB / 1.135 GB Notification: Performance of simCode: created initialization part: time 0.001357/2.562, allocations: 1.132 MB / 2.097 GB, free: 60 MB / 1.135 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/2.562, allocations: 0 / 2.097 GB, free: 60 MB / 1.135 GB Notification: Performance of simCode: created simulation system equations: time 0.0004399/2.562, allocations: 420.8 kB / 2.097 GB, free: 59.57 MB / 1.135 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001822/2.564, allocations: 462.5 kB / 2.098 GB, free: 59.12 MB / 1.135 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002614/2.567, allocations: 1.475 MB / 2.099 GB, free: 57.59 MB / 1.135 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000616/2.567, allocations: 1.242 MB / 2.101 GB, free: 56.32 MB / 1.135 GB Notification: Performance of SimCode: time 4.91e-07/2.567, allocations: 0 / 2.101 GB, free: 56.32 MB / 1.135 GB Notification: Performance of Templates: time 0.03383/2.601, allocations: 24.76 MB / 2.125 GB, free: 31.78 MB / 1.135 GB make -j1 -f Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomial.makefile (rm -f Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomial.pipe ; mkfifo Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomial.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomial.pipe >> ../files/Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomial.sim & ./Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Boilers_Examples_BoilerPolynomial.csv","../files/Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches