Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified6.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.Examples.FlowSystem.Simplified6,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pmpNorth.m_flow|pmpSouth.m_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified6") translateModel(Buildings.Fluid.Examples.FlowSystem.Simplified6,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pmpNorth.m_flow|pmpSouth.m_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified6") [: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 7.0.3-maint.7.0.x/package.mo): time 1.216/1.216, allocations: 249.4 MB / 256.7 MB, free: 7.047 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009347/0.0009347, allocations: 189.2 kB / 316 MB, free: 3.535 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.105/1.105, allocations: 205.1 MB / 0.5667 GB, free: 15.61 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008774/0.0008774, allocations: 78.34 kB / 0.671 GB, free: 4.742 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.82e-06/5.841e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1514/0.1514, allocations: 106.3 MB / 0.8846 GB, free: 12.66 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9277/1.079, allocations: 458.8 MB / 1.333 GB, free: 253.2 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001823/1.079, allocations: 95.89 kB / 1.333 GB, free: 253.2 MB / 0.8698 GB Notification: Performance of FrontEnd: time 28.51/29.59, allocations: 10.21 GB / 11.55 GB, free: 65.77 MB / 1.135 GB Notification: Performance of Transformations before backend: time 0.001962/29.59, allocations: 353.1 kB / 11.55 GB, free: 65.7 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: 1521 * Number of variables: 1521 Notification: Performance of Generate backend data structure: time 0.03311/29.63, allocations: 11.52 MB / 11.56 GB, free: 60.76 MB / 1.135 GB Notification: Performance of prepare preOptimizeDAE: time 4.052e-05/29.63, allocations: 8.812 kB / 11.56 GB, free: 60.76 MB / 1.135 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01174/29.64, allocations: 2.15 MB / 11.56 GB, free: 59.97 MB / 1.135 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04944/29.69, allocations: 18.62 MB / 11.58 GB, free: 57.86 MB / 1.135 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003774/29.69, allocations: 199.4 kB / 11.58 GB, free: 57.86 MB / 1.135 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002391/29.69, allocations: 431.8 kB / 11.58 GB, free: 57.86 MB / 1.135 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01225/29.7, allocations: 6.969 MB / 11.59 GB, free: 57.84 MB / 1.135 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01378/29.72, allocations: 7.491 MB / 11.59 GB, free: 56.78 MB / 1.135 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001677/29.72, allocations: 20.81 kB / 11.59 GB, free: 56.78 MB / 1.135 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001069/29.72, allocations: 15.5 kB / 11.59 GB, free: 56.78 MB / 1.135 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001269/29.72, allocations: 156 kB / 11.59 GB, free: 56.78 MB / 1.135 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06513/29.78, allocations: 50.06 MB / 11.64 GB, free: 29.23 MB / 1.135 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004504/29.79, allocations: 3.452 MB / 11.65 GB, free: 29.16 MB / 1.135 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004936/29.79, allocations: 3.975 MB / 11.65 GB, free: 29.05 MB / 1.135 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0278/29.82, allocations: 12.88 MB / 11.66 GB, free: 25.86 MB / 1.135 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005272/29.83, allocations: 3.146 MB / 11.67 GB, free: 25.76 MB / 1.135 GB Notification: Performance of pre-optimization done (n=326): time 6.342e-06/29.83, allocations: 0 / 11.67 GB, free: 25.76 MB / 1.135 GB Notification: Performance of matching and sorting (n=328): time 0.04717/29.87, allocations: 17.5 MB / 11.68 GB, free: 22.78 MB / 1.135 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.949e-05/29.87, allocations: 91.16 kB / 11.68 GB, free: 22.71 MB / 1.135 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02388/29.9, allocations: 11.58 MB / 11.69 GB, free: 21.99 MB / 1.135 GB Notification: Performance of collectPreVariables (initialization): time 0.001581/29.9, allocations: 40.55 kB / 11.69 GB, free: 21.96 MB / 1.135 GB Notification: Performance of collectInitialEqns (initialization): time 0.004449/29.9, allocations: 3.263 MB / 11.7 GB, free: 20.5 MB / 1.135 GB Notification: Performance of collectInitialBindings (initialization): time 0.002482/29.91, allocations: 1.076 MB / 11.7 GB, free: 19.78 MB / 1.135 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00112/29.91, allocations: 0.8438 kB / 11.7 GB, free: 19.78 MB / 1.135 GB Notification: Performance of setup shared object (initialization): time 0.0003933/29.91, allocations: 0.5359 MB / 11.7 GB, free: 19.46 MB / 1.135 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00551/29.91, allocations: 3.228 MB / 11.7 GB, free: 19.44 MB / 1.135 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007172/29.92, allocations: 5.979 MB / 11.71 GB, free: 16.03 MB / 1.135 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008344/29.93, allocations: 4.233 MB / 11.71 GB, free: 15.86 MB / 1.135 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.544e-05/29.93, allocations: 17.19 kB / 11.71 GB, free: 15.86 MB / 1.135 GB Notification: Performance of matching and sorting (n=771) (initialization): time 0.02744/29.96, allocations: 11.81 MB / 11.72 GB, free: 14.78 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 0.009517/29.97, allocations: 38.28 MB / 11.76 GB, free: 6.75 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001596/29.97, allocations: 58.44 kB / 11.76 GB, free: 6.75 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01125/29.98, allocations: 3.05 MB / 11.76 GB, free: 6.582 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00867/29.99, allocations: 1.381 MB / 11.77 GB, free: 6.496 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01521/30, allocations: 11.59 MB / 11.78 GB, free: 0.6602 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01277/30.01, allocations: 0.7165 MB / 11.78 GB, free: 244 kB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002304/30.02, allocations: 0.5143 MB / 11.78 GB, free: 0 / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 2.797e-05/30.02, allocations: 5.719 kB / 11.78 GB, free: 0 / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.5526/30.57, allocations: 9.408 MB / 11.79 GB, free: 159.4 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001058/30.57, allocations: 62.25 kB / 11.79 GB, free: 159.4 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01097/30.58, allocations: 3.103 MB / 11.79 GB, free: 159.4 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005746/30.59, allocations: 1.366 MB / 11.79 GB, free: 159.4 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01882/30.6, allocations: 13.37 MB / 11.8 GB, free: 156 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01135/30.62, allocations: 0.6833 MB / 11.8 GB, free: 156 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001589/30.62, allocations: 419.8 kB / 11.81 GB, free: 156 MB / 1.167 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pmpNorth.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pmpSouth.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: spl3.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 pumpCoo.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pumpHea.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: 269 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$whenCondition2,booleanToInteger.u,booleanToInteger.y,$PRE.stepPump.pulseStart,stepPump.pulseStart,$PRE.stepValve.T_start,stepValve.T_start,$PRE.stepValve.count,stepValve.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (624): * Single equations (assignments): 609 * Array equations: 4 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 2,9 12,1 2,1 2,7 78} Notification: Performance of prepare postOptimizeDAE: time 0.003138/30.62, allocations: 323.1 kB / 11.81 GB, free: 155.9 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003973/30.63, allocations: 1.132 MB / 11.81 GB, free: 155.9 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01929/30.64, allocations: 8.75 MB / 11.82 GB, free: 155.6 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.594e-05/30.64, allocations: 42.22 kB / 11.82 GB, free: 155.6 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/30.64, allocations: 0 / 11.82 GB, free: 155.6 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009907/30.65, allocations: 6.188 MB / 11.82 GB, free: 155.2 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03002/30.68, allocations: 15.95 MB / 11.84 GB, free: 154.4 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.294e-05/30.68, allocations: 0 / 11.84 GB, free: 154.4 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003257/30.69, allocations: 0.6336 MB / 11.84 GB, free: 154.4 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005131/30.69, allocations: 1.839 MB / 11.84 GB, free: 154.3 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003775/30.69, allocations: 63.52 kB / 11.84 GB, free: 154.3 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006747/30.7, allocations: 9.036 MB / 11.85 GB, free: 148.8 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/30.7, allocations: 0 / 11.85 GB, free: 148.8 MB / 1.167 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01702/30.72, allocations: 10.96 MB / 11.86 GB, free: 148 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006669/30.72, allocations: 2.122 MB / 11.86 GB, free: 147.2 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003584/30.73, allocations: 1.375 kB / 11.86 GB, free: 147.2 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008617/30.74, allocations: 0.5908 MB / 11.86 GB, free: 147.2 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004594/30.74, allocations: 233.8 kB / 11.86 GB, free: 147.2 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003931/30.74, allocations: 171.9 kB / 11.86 GB, free: 147.2 MB / 1.167 GB Notification: Performance of sort global known variables: time 0.01418/30.75, allocations: 8.653 MB / 11.87 GB, free: 146.9 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.02656/30.78, allocations: 4.971 MB / 11.88 GB, free: 146.9 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (valSouth.vol.dynBal.U,valNorth.vol.dynBal.U,heater.outCon.T) * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,booleanToInteger.u,booleanToInteger.y,stepPump.pulseStart,stepValve.T_start,stepValve.count) * Number of discrete states: 1 (stepValve.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (292): * Single equations (assignments): 269 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 2,9 12,1 2,1 2,5 80} Notification: Performance of Backend phase and start with SimCode phase: time 0.00658/30.78, allocations: 4.726 MB / 11.88 GB, free: 145.1 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.02295/30.81, allocations: 12.56 MB / 11.89 GB, free: 144.7 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 8.336e-06/30.81, allocations: 4.656 kB / 11.89 GB, free: 144.7 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.005041/30.81, allocations: 2.862 MB / 11.89 GB, free: 144.6 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02757/30.84, allocations: 5.565 MB / 11.9 GB, free: 144.6 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0428/30.88, allocations: 17.38 MB / 11.92 GB, free: 141 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01284/30.9, allocations: 7.685 MB / 11.92 GB, free: 140 MB / 1.167 GB Notification: Performance of SimCode: time 8.41e-07/30.9, allocations: 0.8438 kB / 11.92 GB, free: 140 MB / 1.167 GB Notification: Performance of Templates: time 1.368/32.26, allocations: 282.8 MB / 12.2 GB, free: 157.3 MB / 1.167 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified6.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified6.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified6.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified6.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified6.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified6 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified6.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified6_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Examples_FlowSystem_Simplified6.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified6.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches