Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomialClosedLoop.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: "" <> buildModelFMU(Buildings.Fluid.Boilers.Examples.BoilerPolynomialClosedLoop,fileNamePrefix="Buildings_9_Buildings_Fluid_Boilers_Examples_BoilerPolynomialClosedLoop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Boilers.Examples.BoilerPolynomialClosedLoop,fileNamePrefix="Buildings_9_Buildings_Fluid_Boilers_Examples_BoilerPolynomialClosedLoop",fmuType="me",version="2.0",platforms={"static"}) [: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 2.085/2.085, allocations: 387.2 MB / 394.5 MB, free: 13.62 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.001329/0.001329, allocations: 191.2 kB / 487 MB, free: 5.363 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.474/1.474, allocations: 221.3 MB / 0.7819 GB, free: 1.301 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.0009561/0.0009558, allocations: 95.55 kB / 0.9213 GB, free: 2.559 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.6698/0.6708, allocations: 148.5 MB / 1.066 GB, free: 186.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2937/0.9645, allocations: 142.3 MB / 1.205 GB, free: 44.33 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.107/2.072, allocations: 457.2 MB / 1.652 GB, free: 14.14 MB / 1.073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004092/2.072, allocations: 95.56 kB / 1.652 GB, free: 14.09 MB / 1.073 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 676 * Number of variables: 676 Notification: Performance of Generate backend data structure: time 8.954/11.03, allocations: 2.395 GB / 4.047 GB, free: 87.95 MB / 1.229 GB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/11.03, allocations: 7.938 kB / 4.047 GB, free: 87.95 MB / 1.229 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007528/11.03, allocations: 1.153 MB / 4.048 GB, free: 87.66 MB / 1.229 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02083/11.05, allocations: 5.921 MB / 4.054 GB, free: 86.79 MB / 1.229 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000275/11.06, allocations: 85.53 kB / 4.054 GB, free: 86.79 MB / 1.229 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001131/11.06, allocations: 182.8 kB / 4.054 GB, free: 86.78 MB / 1.229 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00568/11.06, allocations: 2.193 MB / 4.056 GB, free: 86.77 MB / 1.229 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00745/11.07, allocations: 2.6 MB / 4.059 GB, free: 86.4 MB / 1.229 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.47e-05/11.07, allocations: 2.344 kB / 4.059 GB, free: 86.4 MB / 1.229 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005029/11.07, allocations: 3.531 kB / 4.059 GB, free: 86.4 MB / 1.229 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001005/11.07, allocations: 107.9 kB / 4.059 GB, free: 86.39 MB / 1.229 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02988/11.1, allocations: 17.41 MB / 4.076 GB, free: 76.34 MB / 1.229 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001755/11.1, allocations: 1.125 MB / 4.077 GB, free: 76.32 MB / 1.229 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001369/11.1, allocations: 1.029 MB / 4.078 GB, free: 76.3 MB / 1.229 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007754/11.11, allocations: 3.744 MB / 4.081 GB, free: 75.07 MB / 1.229 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.459e-05/11.11, allocations: 53.16 kB / 4.081 GB, free: 75.04 MB / 1.229 GB Notification: Performance of pre-optimization done (n=152): time 3.497e-06/11.11, allocations: 2.625 kB / 4.081 GB, free: 75.04 MB / 1.229 GB Notification: Performance of matching and sorting (n=154): time 0.01666/11.13, allocations: 5.46 MB / 4.087 GB, free: 73.8 MB / 1.229 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.869e-05/11.13, allocations: 118.8 kB / 4.087 GB, free: 73.68 MB / 1.229 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004678/11.13, allocations: 2.898 MB / 4.09 GB, free: 73.37 MB / 1.229 GB Notification: Performance of collectPreVariables (initialization): time 0.0003645/11.13, allocations: 35.45 kB / 4.09 GB, free: 73.34 MB / 1.229 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008974/11.13, allocations: 1.262 MB / 4.091 GB, free: 72.73 MB / 1.229 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006133/11.13, allocations: 0.5127 MB / 4.092 GB, free: 72.38 MB / 1.229 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001176/11.13, allocations: 1.969 kB / 4.092 GB, free: 72.38 MB / 1.229 GB Notification: Performance of setup shared object (initialization): time 8.968e-05/11.13, allocations: 384.2 kB / 4.092 GB, free: 72.08 MB / 1.229 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001068/11.14, allocations: 0.7548 MB / 4.093 GB, free: 72.07 MB / 1.229 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001432/11.14, allocations: 1.614 MB / 4.094 GB, free: 70.99 MB / 1.229 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002359/11.14, allocations: 1.1 MB / 4.095 GB, free: 70.96 MB / 1.229 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.766e-06/11.14, allocations: 6.75 kB / 4.095 GB, free: 70.96 MB / 1.229 GB Notification: Performance of matching and sorting (n=269) (initialization): time 0.01115/11.15, allocations: 3.643 MB / 4.099 GB, free: 70.63 MB / 1.229 GB Notification: Performance of prepare postOptimizeDAE: time 0.001681/11.15, allocations: 8.716 MB / 4.107 GB, free: 61.31 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.866e-05/11.15, allocations: 19.97 kB / 4.107 GB, free: 61.31 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009547/11.16, allocations: 1.629 MB / 4.109 GB, free: 61.28 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002442/11.16, allocations: 480 kB / 4.109 GB, free: 61.28 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005358/11.17, allocations: 3.967 MB / 4.113 GB, free: 58.95 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005324/11.18, allocations: 254.7 kB / 4.114 GB, free: 58.92 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007672/11.18, allocations: 133.7 kB / 4.114 GB, free: 58.92 MB / 1.229 GB Notification: Performance of prepare postOptimizeDAE: time 1.474e-05/11.18, allocations: 2.812 kB / 4.114 GB, free: 58.92 MB / 1.229 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009285/11.19, allocations: 2.909 MB / 4.117 GB, free: 58.84 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.539e-05/11.19, allocations: 19.12 kB / 4.117 GB, free: 58.84 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009326/11.19, allocations: 1.623 MB / 4.118 GB, free: 58.81 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002195/11.2, allocations: 465.2 kB / 4.119 GB, free: 58.81 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006696/11.2, allocations: 5.049 MB / 4.123 GB, free: 55.71 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005037/11.21, allocations: 246.5 kB / 4.124 GB, free: 55.69 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005826/11.21, allocations: 119.7 kB / 4.124 GB, free: 55.69 MB / 1.229 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: spl.port_internal.h_outflow:VARIABLE(min = -10000000000.0 max = 10000000000.0 unit = "J/kg" nominal = 1000000.0 protected = true ) "Specific thermodynamic enthalpy close to the connection point if m_flow < 0" type: Real spl4.port_internal.h_outflow:VARIABLE(min = -10000000000.0 max = 10000000000.0 unit = "J/kg" nominal = 1000000.0 protected = true ) "Specific thermodynamic enthalpy close to the connection point if m_flow < 0" type: Real pumBoi.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real pumLoa.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 84 * Number of states: 0 () * Number of discrete variables: 3 ($PRE.onOffController.y,onOffController.y,conPID.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (221): * Single equations (assignments): 216 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * 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: 2 {12 21,2 9} Notification: Performance of prepare postOptimizeDAE: time 0.0009689/11.21, allocations: 196.6 kB / 4.124 GB, free: 55.56 MB / 1.229 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001269/11.21, allocations: 421.8 kB / 4.124 GB, free: 55.34 MB / 1.229 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009019/11.22, allocations: 3.179 MB / 4.128 GB, free: 55.16 MB / 1.229 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-05/11.22, allocations: 18.84 kB / 4.128 GB, free: 55.16 MB / 1.229 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.114e-05/11.22, allocations: 3.562 kB / 4.128 GB, free: 55.16 MB / 1.229 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006014/11.23, allocations: 2.347 MB / 4.13 GB, free: 54.91 MB / 1.229 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01309/11.24, allocations: 5.305 MB / 4.135 GB, free: 54.47 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.916e-06/11.24, allocations: 0 / 4.135 GB, free: 54.47 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001616/11.24, allocations: 313.1 kB / 4.135 GB, free: 54.47 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004347/11.25, allocations: 0.9516 MB / 4.136 GB, free: 54.44 MB / 1.229 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002562/11.25, allocations: 28.41 kB / 4.136 GB, free: 54.44 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004081/11.25, allocations: 3.584 MB / 4.14 GB, free: 52.1 MB / 1.229 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/11.25, allocations: 1.406 kB / 4.14 GB, free: 52.1 MB / 1.229 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007839/11.26, allocations: 3.594 MB / 4.143 GB, free: 51.61 MB / 1.229 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0101/11.27, allocations: 5.253 MB / 4.148 GB, free: 50.73 MB / 1.229 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002937/11.27, allocations: 0.6922 MB / 4.149 GB, free: 50.41 MB / 1.229 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001326/11.27, allocations: 13.94 kB / 4.149 GB, free: 50.41 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003581/11.28, allocations: 235.1 kB / 4.149 GB, free: 50.39 MB / 1.229 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002506/11.28, allocations: 101.9 kB / 4.149 GB, free: 50.39 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002245/11.28, allocations: 77.06 kB / 4.15 GB, free: 50.39 MB / 1.229 GB Notification: Performance of sort global known variables: time 0.004478/11.28, allocations: 2.155 MB / 4.152 GB, free: 50.21 MB / 1.229 GB Notification: Performance of remove unused functions: time 0.01445/11.3, allocations: 2.803 MB / 4.154 GB, free: 50.11 MB / 1.229 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 11 (boi.heaCapDry.T,val.filter.s[1],val.filter.s[2],pumLoa.filter.s[1],pumLoa.filter.s[2],pumBoi.filter.s[1],pumBoi.filter.s[2],conPID.I.y,exp.m,exp.H,vol.dynBal.U) * Number of discrete variables: 1 (onOffController.y) * Number of discrete states: 1 (onOffController.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (143): * Single equations (assignments): 136 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * 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: 2 {13 20,2 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.006482/11.3, allocations: 2.509 MB / 4.157 GB, free: 49.21 MB / 1.229 GB Notification: Performance of simCode: created initialization part: time 0.01158/11.31, allocations: 4.031 MB / 4.161 GB, free: 48.81 MB / 1.229 GB Notification: Performance of simCode: created event and clocks part: time 7.805e-06/11.31, allocations: 0 / 4.161 GB, free: 48.81 MB / 1.229 GB Notification: Performance of simCode: created simulation system equations: time 0.002642/11.32, allocations: 1.245 MB / 4.162 GB, free: 48.69 MB / 1.229 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009226/11.33, allocations: 1.774 MB / 4.164 GB, free: 48.66 MB / 1.229 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01837/11.34, allocations: 5.766 MB / 4.169 GB, free: 47.2 MB / 1.229 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003244/11.35, allocations: 2.856 MB / 4.172 GB, free: 46.41 MB / 1.229 GB Notification: Performance of SimCode: time 1.002e-06/11.35, allocations: 1.469 kB / 4.172 GB, free: 46.41 MB / 1.229 GB (rm -f Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomialClosedLoop.pipe ; mkfifo Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomialClosedLoop.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomialClosedLoop.pipe >> ../files/Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomialClosedLoop.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomialClosedLoop_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Boilers_Examples_BoilerPolynomialClosedLoop_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Boilers_Examples_BoilerPolynomialClosedLoop.fmu > Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomialClosedLoop.pipe 2>&1)