Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified5.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.Examples.FlowSystem.Simplified5,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pmpNorth.m_flow|pmpSouth.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified5") translateModel(Buildings.Fluid.Examples.FlowSystem.Simplified5,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pmpNorth.m_flow|pmpSouth.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified5") [: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.107/2.107, allocations: 387.2 MB / 394.5 MB, free: 13.7 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.001258/0.001258, allocations: 180.5 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.461/1.461, allocations: 221.3 MB / 0.7819 GB, free: 1.379 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.0009485/0.0009486, allocations: 98.62 kB / 0.9213 GB, free: 2.633 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 8.045e-06/8.066e-06, allocations: 0 / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.281/0.281, allocations: 142.3 MB / 1.205 GB, free: 26.23 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.028/1.309, allocations: 462.9 MB / 1.657 GB, free: 9.074 MB / 1.089 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002759/1.309, allocations: 92.89 kB / 1.657 GB, free: 9.031 MB / 1.089 GB Notification: Performance of FrontEnd: time 37.84/39.15, allocations: 10.47 GB / 12.13 GB, free: 114.8 MB / 1.401 GB Notification: Performance of Transformations before backend: time 0.003797/39.15, allocations: 360.1 kB / 12.13 GB, free: 114.8 MB / 1.401 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.05906/39.21, allocations: 12.14 MB / 12.14 GB, free: 109.5 MB / 1.401 GB Notification: Performance of prepare preOptimizeDAE: time 5.055e-05/39.21, allocations: 16.2 kB / 12.14 GB, free: 109.5 MB / 1.401 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02179/39.23, allocations: 2.718 MB / 12.14 GB, free: 108.6 MB / 1.401 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.08047/39.31, allocations: 22.56 MB / 12.17 GB, free: 102.8 MB / 1.401 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007132/39.31, allocations: 191.9 kB / 12.17 GB, free: 102.8 MB / 1.401 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005792/39.32, allocations: 433.4 kB / 12.17 GB, free: 102.8 MB / 1.401 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03474/39.35, allocations: 18.17 MB / 12.18 GB, free: 92.49 MB / 1.401 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0374/39.39, allocations: 12.34 MB / 12.2 GB, free: 82.93 MB / 1.401 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003203/39.39, allocations: 10.75 kB / 12.2 GB, free: 82.92 MB / 1.401 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003437/39.39, allocations: 4 kB / 12.2 GB, free: 82.92 MB / 1.401 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001229/39.39, allocations: 151.9 kB / 12.2 GB, free: 82.77 MB / 1.401 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1376/39.53, allocations: 73.96 MB / 12.27 GB, free: 7.305 MB / 1.401 GB Notification: Performance of preOpt comSubExp (simulation): time 0.9191/40.45, allocations: 8.373 MB / 12.28 GB, free: 205.1 MB / 1.401 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01145/40.46, allocations: 8.881 MB / 12.29 GB, free: 205.1 MB / 1.401 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06677/40.53, allocations: 31.95 MB / 12.32 GB, free: 197.6 MB / 1.401 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01293/40.54, allocations: 8.109 MB / 12.32 GB, free: 197.5 MB / 1.401 GB Notification: Performance of pre-optimization done (n=393): time 8.937e-06/40.54, allocations: 0 / 12.32 GB, free: 197.5 MB / 1.401 GB Notification: Performance of matching and sorting (n=395): time 0.09476/40.64, allocations: 38.69 MB / 12.36 GB, free: 195.7 MB / 1.401 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.621e-05/40.64, allocations: 92.86 kB / 12.36 GB, free: 195.6 MB / 1.401 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02842/40.67, allocations: 11.55 MB / 12.37 GB, free: 194.9 MB / 1.401 GB Notification: Performance of collectPreVariables (initialization): time 0.003323/40.67, allocations: 36.86 kB / 12.37 GB, free: 194.9 MB / 1.401 GB Notification: Performance of collectInitialEqns (initialization): time 0.005477/40.67, allocations: 3.065 MB / 12.38 GB, free: 193.9 MB / 1.401 GB Notification: Performance of collectInitialBindings (initialization): time 0.006395/40.68, allocations: 1.292 MB / 12.38 GB, free: 193.2 MB / 1.401 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003387/40.68, allocations: 1.969 kB / 12.38 GB, free: 193.2 MB / 1.401 GB Notification: Performance of setup shared object (initialization): time 0.00061/40.68, allocations: 0.5403 MB / 12.38 GB, free: 192.9 MB / 1.401 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01123/40.7, allocations: 7.152 MB / 12.39 GB, free: 192.9 MB / 1.401 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01369/40.71, allocations: 9.577 MB / 12.39 GB, free: 190.1 MB / 1.401 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01598/40.73, allocations: 8.245 MB / 12.4 GB, free: 189.9 MB / 1.401 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001015/40.73, allocations: 17.69 kB / 12.4 GB, free: 189.9 MB / 1.401 GB Notification: Performance of matching and sorting (n=776) (initialization): time 0.05257/40.78, allocations: 23.95 MB / 12.43 GB, free: 189.1 MB / 1.401 GB Notification: Performance of prepare postOptimizeDAE: time 0.005587/40.78, allocations: 29.52 MB / 12.45 GB, free: 158.4 MB / 1.401 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002085/40.78, allocations: 50.66 kB / 12.45 GB, free: 158.4 MB / 1.401 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.7734/41.56, allocations: 188.5 MB / 12.64 GB, free: 143.2 MB / 1.401 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00879/41.57, allocations: 1.302 MB / 12.64 GB, free: 143.2 MB / 1.401 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04914/41.62, allocations: 27.64 MB / 12.67 GB, free: 138.8 MB / 1.401 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01829/41.63, allocations: 0.7984 MB / 12.67 GB, free: 138.7 MB / 1.401 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004089/41.64, allocations: 0.7274 MB / 12.67 GB, free: 138.7 MB / 1.401 GB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/41.64, allocations: 3.938 kB / 12.67 GB, free: 138.7 MB / 1.401 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.04886/41.69, allocations: 21.82 MB / 12.69 GB, free: 138.4 MB / 1.401 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002069/41.69, allocations: 47.02 kB / 12.69 GB, free: 138.4 MB / 1.401 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.7708/42.46, allocations: 188.6 MB / 12.87 GB, free: 14.54 MB / 1.401 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008296/42.47, allocations: 1.278 MB / 12.88 GB, free: 13.36 MB / 1.401 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.046/43.51, allocations: 29.5 MB / 12.9 GB, free: 197 MB / 1.401 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01874/43.53, allocations: 0.7627 MB / 12.91 GB, free: 197 MB / 1.401 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003475/43.54, allocations: 0.6986 MB / 12.91 GB, free: 197 MB / 1.401 GB 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 spl2.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 pmpNorth.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" 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 pmpSouth.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: 207 * 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 (556): * Single equations (assignments): 544 * 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: 2 * 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: 2 {39 61,5 80} Notification: Performance of prepare postOptimizeDAE: time 0.003401/43.54, allocations: 281.8 kB / 12.91 GB, free: 196.9 MB / 1.401 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004484/43.54, allocations: 1.153 MB / 12.91 GB, free: 196.9 MB / 1.401 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03827/43.58, allocations: 18.73 MB / 12.93 GB, free: 196.5 MB / 1.401 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.317e-05/43.58, allocations: 49.45 kB / 12.93 GB, free: 196.5 MB / 1.401 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.216e-06/43.58, allocations: 3.281 kB / 12.93 GB, free: 196.5 MB / 1.401 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01815/43.6, allocations: 12.92 MB / 12.94 GB, free: 196.1 MB / 1.401 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1088/43.71, allocations: 42.94 MB / 12.98 GB, free: 193 MB / 1.401 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.975e-05/43.71, allocations: 1.969 kB / 12.98 GB, free: 193 MB / 1.401 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004662/43.71, allocations: 0.7142 MB / 12.98 GB, free: 193 MB / 1.401 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.2406/43.95, allocations: 78.66 MB / 13.06 GB, free: 178.2 MB / 1.401 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001875/43.96, allocations: 74.48 kB / 13.06 GB, free: 178.2 MB / 1.401 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02719/43.98, allocations: 14.61 MB / 13.07 GB, free: 173.9 MB / 1.401 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-05/43.98, allocations: 4.75 kB / 13.07 GB, free: 173.9 MB / 1.401 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.04289/44.03, allocations: 22.15 MB / 13.09 GB, free: 172.8 MB / 1.401 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01118/44.04, allocations: 2.576 MB / 13.1 GB, free: 172.1 MB / 1.401 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006584/44.04, allocations: 6.656 kB / 13.1 GB, free: 172.1 MB / 1.401 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01406/44.06, allocations: 0.6314 MB / 13.1 GB, free: 172 MB / 1.401 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001894/44.06, allocations: 281.6 kB / 13.1 GB, free: 172 MB / 1.401 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00171/44.06, allocations: 199.7 kB / 13.1 GB, free: 172 MB / 1.401 GB Notification: Performance of sort global known variables: time 0.02208/44.08, allocations: 8.657 MB / 13.11 GB, free: 171.6 MB / 1.401 GB Notification: Performance of remove unused functions: time 0.04481/44.13, allocations: 5.605 MB / 13.11 GB, free: 171.6 MB / 1.401 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 (319): * Single equations (assignments): 299 * 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: 2 * 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: 2 {40 60,6 79} Notification: Performance of Backend phase and start with SimCode phase: time 0.01022/44.14, allocations: 4.764 MB / 13.12 GB, free: 169.5 MB / 1.401 GB Notification: Performance of simCode: created initialization part: time 0.06903/44.21, allocations: 29.26 MB / 13.14 GB, free: 168.7 MB / 1.401 GB Notification: Performance of simCode: created event and clocks part: time 1.065e-05/44.21, allocations: 3.031 kB / 13.14 GB, free: 168.7 MB / 1.401 GB Notification: Performance of simCode: created simulation system equations: time 0.01793/44.23, allocations: 7.954 MB / 13.15 GB, free: 168.4 MB / 1.401 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03613/44.26, allocations: 5.763 MB / 13.16 GB, free: 168.1 MB / 1.401 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0664/44.33, allocations: 19.45 MB / 13.18 GB, free: 164.3 MB / 1.401 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02287/44.35, allocations: 7.826 MB / 13.18 GB, free: 163.2 MB / 1.401 GB Notification: Performance of SimCode: time 1.693e-06/44.35, allocations: 8.375 kB / 13.18 GB, free: 163.2 MB / 1.401 GB Notification: Performance of Templates: time 2.301/46.65, allocations: 411.3 MB / 13.59 GB, free: 167.1 MB / 1.401 GB make -j1 -f Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified5.makefile (rm -f Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified5.pipe ; mkfifo Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified5.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified5.pipe >> ../files/Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified5.sim & ./Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified5 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified5.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified5_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Examples_FlowSystem_Simplified5.csv","../files/Buildings_9_Buildings.Fluid.Examples.FlowSystem.Simplified5.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches