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: translateModel(Buildings.Fluid.Boilers.Examples.BoilerPolynomialClosedLoop,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vol.T|boi.vol.T|val.y|conPID.u_s|conPID.u_m|conPID.y",fileNamePrefix="Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomialClosedLoop") translateModel(Buildings.Fluid.Boilers.Examples.BoilerPolynomialClosedLoop,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vol.T|boi.vol.T|val.y|conPID.u_s|conPID.u_m|conPID.y",fileNamePrefix="Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomialClosedLoop") [: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.921/1.921, 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.001035/0.001035, allocations: 185.2 kB / 487 MB, free: 5.344 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.248/1.248, allocations: 221.3 MB / 0.7819 GB, free: 1.438 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.00095/0.0009499, allocations: 97.62 kB / 0.9213 GB, free: 2.691 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.542e-06/6.563e-06, allocations: 0 / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2504/0.2504, allocations: 142.3 MB / 1.205 GB, free: 26.25 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8735/1.124, allocations: 457.2 MB / 1.652 GB, free: 14.82 MB / 1.089 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002742/1.124, allocations: 92.98 kB / 1.652 GB, free: 14.77 MB / 1.089 GB Notification: Performance of FrontEnd: time 6.947/8.071, allocations: 2.39 GB / 4.042 GB, free: 100.4 MB / 1.229 GB Notification: Performance of Transformations before backend: time 0.0005415/8.072, allocations: 131.8 kB / 4.042 GB, free: 100.4 MB / 1.229 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 0.01066/8.082, allocations: 4.679 MB / 4.047 GB, free: 98.57 MB / 1.229 GB Notification: Performance of prepare preOptimizeDAE: time 3.96e-05/8.082, allocations: 11.72 kB / 4.047 GB, free: 98.57 MB / 1.229 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005685/8.088, allocations: 1.149 MB / 4.048 GB, free: 98.28 MB / 1.229 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01438/8.102, allocations: 5.933 MB / 4.054 GB, free: 97.32 MB / 1.229 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001095/8.103, allocations: 87.88 kB / 4.054 GB, free: 97.32 MB / 1.229 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004583/8.103, allocations: 182.3 kB / 4.054 GB, free: 97.32 MB / 1.229 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004288/8.107, allocations: 2.189 MB / 4.056 GB, free: 97.3 MB / 1.229 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004701/8.112, allocations: 2.598 MB / 4.059 GB, free: 96.94 MB / 1.229 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.75e-05/8.112, allocations: 6.281 kB / 4.059 GB, free: 96.94 MB / 1.229 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000229/8.112, allocations: 6.406 kB / 4.059 GB, free: 96.94 MB / 1.229 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001089/8.112, allocations: 101.2 kB / 4.059 GB, free: 96.93 MB / 1.229 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02489/8.137, allocations: 17.4 MB / 4.076 GB, free: 86.89 MB / 1.229 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001529/8.139, allocations: 1.128 MB / 4.077 GB, free: 86.86 MB / 1.229 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001366/8.14, allocations: 1.023 MB / 4.078 GB, free: 86.84 MB / 1.229 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007856/8.148, allocations: 3.76 MB / 4.081 GB, free: 85.61 MB / 1.229 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.078e-05/8.148, allocations: 50.5 kB / 4.081 GB, free: 85.57 MB / 1.229 GB Notification: Performance of pre-optimization done (n=152): time 3.848e-06/8.148, allocations: 3.281 kB / 4.081 GB, free: 85.57 MB / 1.229 GB Notification: Performance of matching and sorting (n=154): time 0.01541/8.164, allocations: 5.456 MB / 4.087 GB, free: 84.34 MB / 1.229 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.304e-05/8.164, allocations: 120.9 kB / 4.087 GB, free: 84.21 MB / 1.229 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004486/8.168, allocations: 2.903 MB / 4.09 GB, free: 83.9 MB / 1.229 GB Notification: Performance of collectPreVariables (initialization): time 0.0004465/8.169, allocations: 29.45 kB / 4.09 GB, free: 83.87 MB / 1.229 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009802/8.17, allocations: 1.265 MB / 4.091 GB, free: 83.25 MB / 1.229 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006658/8.17, allocations: 0.5146 MB / 4.092 GB, free: 82.9 MB / 1.229 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001162/8.171, allocations: 3.312 kB / 4.092 GB, free: 82.9 MB / 1.229 GB Notification: Performance of setup shared object (initialization): time 0.0001012/8.171, allocations: 384.3 kB / 4.092 GB, free: 82.6 MB / 1.229 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001087/8.172, allocations: 0.7493 MB / 4.093 GB, free: 82.59 MB / 1.229 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00139/8.173, allocations: 1.619 MB / 4.094 GB, free: 81.52 MB / 1.229 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002409/8.176, allocations: 1.098 MB / 4.095 GB, free: 81.49 MB / 1.229 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.986e-06/8.176, allocations: 6.562 kB / 4.095 GB, free: 81.49 MB / 1.229 GB Notification: Performance of matching and sorting (n=269) (initialization): time 0.01111/8.187, allocations: 3.643 MB / 4.099 GB, free: 81.16 MB / 1.229 GB Notification: Performance of prepare postOptimizeDAE: time 0.001442/8.188, allocations: 8.708 MB / 4.107 GB, free: 71.83 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.775e-05/8.188, allocations: 25.25 kB / 4.107 GB, free: 71.83 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009144/8.197, allocations: 1.633 MB / 4.109 GB, free: 71.8 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002263/8.2, allocations: 482.5 kB / 4.109 GB, free: 71.8 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004916/8.205, allocations: 3.966 MB / 4.113 GB, free: 69.47 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004554/8.209, allocations: 254.7 kB / 4.114 GB, free: 69.45 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003086/8.209, allocations: 131.8 kB / 4.114 GB, free: 69.45 MB / 1.229 GB Notification: Performance of prepare postOptimizeDAE: time 7.585e-06/8.209, allocations: 3.781 kB / 4.114 GB, free: 69.45 MB / 1.229 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008472/8.218, allocations: 2.909 MB / 4.117 GB, free: 69.37 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.403e-05/8.218, allocations: 19.59 kB / 4.117 GB, free: 69.37 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008921/8.227, allocations: 1.621 MB / 4.118 GB, free: 69.34 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00227/8.229, allocations: 470.2 kB / 4.119 GB, free: 69.34 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006396/8.236, allocations: 5.04 MB / 4.123 GB, free: 66.24 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004116/8.24, allocations: 246.4 kB / 4.124 GB, free: 66.21 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002548/8.24, allocations: 123.6 kB / 4.124 GB, free: 66.21 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.0007224/8.241, allocations: 199.6 kB / 4.124 GB, free: 66.08 MB / 1.229 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006764/8.241, allocations: 425.5 kB / 4.124 GB, free: 65.86 MB / 1.229 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008551/8.25, allocations: 3.165 MB / 4.128 GB, free: 65.68 MB / 1.229 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.05e-05/8.25, allocations: 28.52 kB / 4.128 GB, free: 65.68 MB / 1.229 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.824e-06/8.25, allocations: 0 / 4.128 GB, free: 65.68 MB / 1.229 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005722/8.256, allocations: 2.34 MB / 4.13 GB, free: 65.44 MB / 1.229 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01121/8.267, allocations: 5.311 MB / 4.135 GB, free: 65 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.464e-06/8.267, allocations: 0 / 4.135 GB, free: 65 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001574/8.269, allocations: 314.4 kB / 4.135 GB, free: 65 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004215/8.273, allocations: 0.9521 MB / 4.136 GB, free: 64.96 MB / 1.229 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001687/8.273, allocations: 30.19 kB / 4.136 GB, free: 64.96 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003795/8.277, allocations: 3.583 MB / 4.14 GB, free: 62.63 MB / 1.229 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/8.277, allocations: 0 / 4.14 GB, free: 62.63 MB / 1.229 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006499/8.283, allocations: 3.588 MB / 4.143 GB, free: 62.14 MB / 1.229 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002739/8.286, allocations: 0.7001 MB / 4.144 GB, free: 61.82 MB / 1.229 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000691/8.287, allocations: 5.406 kB / 4.144 GB, free: 61.82 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002535/8.289, allocations: 238.8 kB / 4.144 GB, free: 61.8 MB / 1.229 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000225/8.29, allocations: 101.3 kB / 4.144 GB, free: 61.8 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001648/8.29, allocations: 69.02 kB / 4.144 GB, free: 61.8 MB / 1.229 GB Notification: Performance of sort global known variables: time 0.003403/8.293, allocations: 2.157 MB / 4.146 GB, free: 61.62 MB / 1.229 GB Notification: Performance of remove unused functions: time 0.008093/8.301, allocations: 1.981 MB / 4.148 GB, free: 61.52 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.003654/8.305, allocations: 2.524 MB / 4.151 GB, free: 60.61 MB / 1.229 GB Notification: Performance of simCode: created initialization part: time 0.00839/8.313, allocations: 4.033 MB / 4.155 GB, free: 60.21 MB / 1.229 GB Notification: Performance of simCode: created event and clocks part: time 6.291e-06/8.313, allocations: 3.375 kB / 4.155 GB, free: 60.21 MB / 1.229 GB Notification: Performance of simCode: created simulation system equations: time 0.002309/8.316, allocations: 1.242 MB / 4.156 GB, free: 60.09 MB / 1.229 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009059/8.325, allocations: 1.761 MB / 4.158 GB, free: 60.06 MB / 1.229 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01316/8.338, allocations: 5.743 MB / 4.163 GB, free: 58.6 MB / 1.229 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002625/8.341, allocations: 2.837 MB / 4.166 GB, free: 57.81 MB / 1.229 GB Notification: Performance of SimCode: time 9.82e-07/8.341, allocations: 0 / 4.166 GB, free: 57.81 MB / 1.229 GB Notification: Performance of Templates: time 0.1555/8.496, allocations: 97.54 MB / 4.261 GB, free: 51.56 MB / 1.229 GB make -j1 -f Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomialClosedLoop.makefile (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 & ./Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomialClosedLoop -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomialClosedLoop.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomialClosedLoop_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Boilers_Examples_BoilerPolynomialClosedLoop.csv","../files/Buildings_9_Buildings.Fluid.Boilers.Examples.BoilerPolynomialClosedLoop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches