Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Examples.Performance.Example1v2.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.Performance.Example1v2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.Performance.Example1v2") translateModel(Buildings.Fluid.Examples.Performance.Example1v2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Examples.Performance.Example1v2") [: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.104/2.104, allocations: 387.2 MB / 394.5 MB, free: 13.63 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.001207/0.001207, allocations: 185.2 kB / 487 MB, free: 5.328 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.47/1.47, allocations: 221.3 MB / 0.7819 GB, free: 1.332 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.001013/0.001013, allocations: 86.62 kB / 0.9213 GB, free: 2.582 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 7.244e-06/7.274e-06, allocations: 0 / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2967/0.2968, allocations: 142.3 MB / 1.205 GB, free: 26.2 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.054/1.351, allocations: 419.1 MB / 1.614 GB, free: 3.52 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002454/1.351, allocations: 95.5 kB / 1.615 GB, free: 3.473 MB / 1.042 GB Notification: Performance of FrontEnd: time 8.578/9.929, allocations: 2.386 GB / 4.001 GB, free: 187.9 MB / 1.182 GB Notification: Performance of Transformations before backend: time 0.001842/9.931, allocations: 272.9 kB / 4.001 GB, free: 187.9 MB / 1.182 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1418 * Number of variables: 1418 Notification: Performance of Generate backend data structure: time 0.0431/9.974, allocations: 10.83 MB / 4.012 GB, free: 185.4 MB / 1.182 GB Notification: Performance of prepare preOptimizeDAE: time 4.775e-05/9.974, allocations: 9.75 kB / 4.012 GB, free: 185.4 MB / 1.182 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01013/9.984, allocations: 1.361 MB / 4.013 GB, free: 184.9 MB / 1.182 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03563/10.02, allocations: 13.19 MB / 4.026 GB, free: 183.6 MB / 1.182 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003692/10.02, allocations: 177.2 kB / 4.026 GB, free: 183.6 MB / 1.182 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002919/10.02, allocations: 352.5 kB / 4.026 GB, free: 183.6 MB / 1.182 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0291/10.05, allocations: 18.16 MB / 4.044 GB, free: 183.6 MB / 1.182 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0306/10.08, allocations: 12.77 MB / 4.057 GB, free: 182.8 MB / 1.182 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002154/10.08, allocations: 21.19 kB / 4.057 GB, free: 182.8 MB / 1.182 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00193/10.09, allocations: 11.81 kB / 4.057 GB, free: 182.8 MB / 1.182 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001011/10.09, allocations: 138.4 kB / 4.057 GB, free: 182.8 MB / 1.182 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1085/10.19, allocations: 62.28 MB / 4.118 GB, free: 162.6 MB / 1.182 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01089/10.2, allocations: 8.49 MB / 4.126 GB, free: 162.5 MB / 1.182 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01136/10.22, allocations: 9.402 MB / 4.135 GB, free: 162.2 MB / 1.182 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06439/10.28, allocations: 29.55 MB / 4.164 GB, free: 152.6 MB / 1.182 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01311/10.29, allocations: 7.366 MB / 4.171 GB, free: 150 MB / 1.182 GB Notification: Performance of pre-optimization done (n=301): time 7.784e-06/10.29, allocations: 1.344 kB / 4.171 GB, free: 150 MB / 1.182 GB Notification: Performance of matching and sorting (n=301): time 0.03503/10.33, allocations: 14.97 MB / 4.186 GB, free: 144.7 MB / 1.182 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.874e-05/10.33, allocations: 81.53 kB / 4.186 GB, free: 144.7 MB / 1.182 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02229/10.35, allocations: 6.675 MB / 4.192 GB, free: 142.5 MB / 1.182 GB Notification: Performance of collectPreVariables (initialization): time 0.003316/10.35, allocations: 33.11 kB / 4.192 GB, free: 142.5 MB / 1.182 GB Notification: Performance of collectInitialEqns (initialization): time 0.005379/10.36, allocations: 2.576 MB / 4.195 GB, free: 140.7 MB / 1.182 GB Notification: Performance of collectInitialBindings (initialization): time 0.004962/10.36, allocations: 1.043 MB / 4.196 GB, free: 139.9 MB / 1.182 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00093/10.37, allocations: 1.281 kB / 4.196 GB, free: 139.9 MB / 1.182 GB Notification: Performance of setup shared object (initialization): time 0.00035/10.37, allocations: 498.2 kB / 4.196 GB, free: 139.6 MB / 1.182 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00914/10.38, allocations: 6.25 MB / 4.202 GB, free: 136.1 MB / 1.182 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009975/10.39, allocations: 8.02 MB / 4.21 GB, free: 128.2 MB / 1.182 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01323/10.4, allocations: 7.325 MB / 4.217 GB, free: 122.2 MB / 1.182 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.706e-05/10.4, allocations: 12 kB / 4.217 GB, free: 122.2 MB / 1.182 GB Notification: Performance of matching and sorting (n=578) (initialization): time 0.03865/10.44, allocations: 16.75 MB / 4.234 GB, free: 108.6 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 0.005414/10.44, allocations: 24.63 MB / 4.258 GB, free: 82.39 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000187/10.44, allocations: 44 kB / 4.258 GB, free: 82.34 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005084/10.45, allocations: 1.617 MB / 4.259 GB, free: 81.11 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009662/10.46, allocations: 1.583 MB / 4.261 GB, free: 80.12 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007791/10.47, allocations: 4.637 MB / 4.266 GB, free: 76.08 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01348/10.48, allocations: 0.7088 MB / 4.266 GB, free: 75.46 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00331/10.48, allocations: 0.5428 MB / 4.267 GB, free: 75.14 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/10.48, allocations: 4 kB / 4.267 GB, free: 75.13 MB / 1.182 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03357/10.52, allocations: 15.91 MB / 4.282 GB, free: 61.25 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001912/10.52, allocations: 48 kB / 4.282 GB, free: 61.2 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004448/10.52, allocations: 1.479 MB / 4.284 GB, free: 59.71 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008978/10.53, allocations: 1.571 MB / 4.285 GB, free: 58.21 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.011/10.54, allocations: 7.866 MB / 4.293 GB, free: 50.14 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01309/10.55, allocations: 0.594 MB / 4.294 GB, free: 49.55 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003125/10.56, allocations: 0.5304 MB / 4.294 GB, free: 49.02 MB / 1.182 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: val.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 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 215 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,from_dp.y,allowFlowReversal.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (524): * Single equations (assignments): 519 * Array equations: 1 * Algorithm blocks: 1 * 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: 0 * Non-linear torn systems: 3 {3 4,2 5,20 21} Notification: Performance of prepare postOptimizeDAE: time 0.004086/10.56, allocations: 270.3 kB / 4.294 GB, free: 48.81 MB / 1.182 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003831/10.57, allocations: 0.7061 MB / 4.295 GB, free: 48.1 MB / 1.182 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02986/10.6, allocations: 14.47 MB / 4.309 GB, free: 33.77 MB / 1.182 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.243e-05/10.6, allocations: 36 kB / 4.309 GB, free: 33.73 MB / 1.182 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.373e-06/10.6, allocations: 0 / 4.309 GB, free: 33.73 MB / 1.182 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01332/10.61, allocations: 10.33 MB / 4.319 GB, free: 23.36 MB / 1.182 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04045/10.65, allocations: 23.33 MB / 4.342 GB, free: 60 kB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.22e-05/10.65, allocations: 3.906 kB / 4.342 GB, free: 56 kB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005819/10.66, allocations: 0.6933 MB / 4.343 GB, free: 15.39 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002341/10.66, allocations: 0.8124 MB / 4.344 GB, free: 14.57 MB / 1.198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009813/10.66, allocations: 71.92 kB / 4.344 GB, free: 14.5 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005094/10.66, allocations: 3.39 MB / 4.347 GB, free: 11.04 MB / 1.198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.534e-06/10.66, allocations: 3.906 kB / 4.347 GB, free: 11.04 MB / 1.198 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.6384/11.3, allocations: 18.65 MB / 4.365 GB, free: 318.2 MB / 1.198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008686/11.31, allocations: 1.977 MB / 4.367 GB, free: 318.1 MB / 1.198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00423/11.31, allocations: 25.97 kB / 4.367 GB, free: 318.1 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01033/11.33, allocations: 329.8 kB / 4.367 GB, free: 318.1 MB / 1.198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001544/11.33, allocations: 195.5 kB / 4.368 GB, free: 318.1 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001011/11.33, allocations: 162.5 kB / 4.368 GB, free: 318.1 MB / 1.198 GB Notification: Performance of sort global known variables: time 0.01056/11.34, allocations: 5.089 MB / 4.373 GB, free: 317.9 MB / 1.198 GB Notification: Performance of remove unused functions: time 0.02582/11.36, allocations: 4.716 MB / 4.377 GB, free: 317.9 MB / 1.198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 22 (pump.vol.dynBal.U,hea.outCon.T,vol[1].dynBal.U,vol[2].dynBal.U,vol[3].dynBal.U,vol[4].dynBal.U,vol[5].dynBal.U,vol[6].dynBal.U,vol[7].dynBal.U,vol[8].dynBal.U,vol[9].dynBal.U,vol[10].dynBal.U,vol[11].dynBal.U,vol[12].dynBal.U,vol[13].dynBal.U,vol[14].dynBal.U,vol[15].dynBal.U,vol[16].dynBal.U,vol[17].dynBal.U,vol[18].dynBal.U,vol[19].dynBal.U,vol[20].dynBal.U) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (303): * Single equations (assignments): 294 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 2 * 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: 0 * Non-linear torn systems: 3 {3 4,20 21,2 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.00383/11.37, allocations: 1.182 MB / 4.379 GB, free: 317.7 MB / 1.198 GB Notification: Performance of simCode: created initialization part: time 0.0383/11.41, allocations: 23.16 MB / 4.401 GB, free: 317.3 MB / 1.198 GB Notification: Performance of simCode: created event and clocks part: time 1.407e-05/11.41, allocations: 3.312 kB / 4.401 GB, free: 317.3 MB / 1.198 GB Notification: Performance of simCode: created simulation system equations: time 0.0101/11.42, allocations: 6.12 MB / 4.407 GB, free: 317.3 MB / 1.198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02258/11.44, allocations: 3.816 MB / 4.411 GB, free: 317.2 MB / 1.198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04451/11.48, allocations: 17.67 MB / 4.428 GB, free: 314.7 MB / 1.198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01282/11.5, allocations: 6.395 MB / 4.434 GB, free: 313.8 MB / 1.198 GB Notification: Performance of SimCode: time 1.102e-06/11.5, allocations: 0 / 4.434 GB, free: 313.8 MB / 1.198 GB Notification: Performance of Templates: time 0.3646/11.86, allocations: 259.8 MB / 4.688 GB, free: 206.6 MB / 1.198 GB make -j1 -f Buildings_9_Buildings.Fluid.Examples.Performance.Example1v2.makefile (rm -f Buildings_9_Buildings.Fluid.Examples.Performance.Example1v2.pipe ; mkfifo Buildings_9_Buildings.Fluid.Examples.Performance.Example1v2.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Examples.Performance.Example1v2.pipe >> ../files/Buildings_9_Buildings.Fluid.Examples.Performance.Example1v2.sim & ./Buildings_9_Buildings.Fluid.Examples.Performance.Example1v2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Examples.Performance.Example1v2.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Examples.Performance.Example1v2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Examples_Performance_Example1v2.csv","../files/Buildings_9_Buildings.Fluid.Examples.Performance.Example1v2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches