Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.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.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaPum.QCon_flow|heaPum1.QCon_flow|appCap.y|heaPum.com.y",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic") translateModel(Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaPum.QCon_flow|heaPum1.QCon_flow|appCap.y|heaPum.com.y",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic") [: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.113/2.113, 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.001357/0.001356, allocations: 176.4 kB / 487 MB, free: 5.336 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.388/1.388, allocations: 221.3 MB / 0.7819 GB, free: 1.348 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.001004/0.001003, allocations: 96.98 kB / 0.9213 GB, free: 2.598 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 7.795e-06/7.885e-06, allocations: 0 / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2788/0.2789, allocations: 142.3 MB / 1.205 GB, free: 26.25 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9487/1.228, allocations: 435.7 MB / 1.631 GB, free: 4.375 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002214/1.228, allocations: 91.28 kB / 1.631 GB, free: 4.332 MB / 1.057 GB Notification: Performance of FrontEnd: time 3.549/4.776, allocations: 1.068 GB / 2.699 GB, free: 159.5 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.000298/4.777, allocations: 85.17 kB / 2.699 GB, free: 159.5 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 583 * Number of variables: 583 Notification: Performance of Generate backend data structure: time 0.006848/4.784, allocations: 3.231 MB / 2.702 GB, free: 158.1 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/4.784, allocations: 11.06 kB / 2.702 GB, free: 158.1 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008757/4.792, allocations: 1.306 MB / 2.703 GB, free: 158 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006032/4.799, allocations: 3.349 MB / 2.707 GB, free: 157.4 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001538/4.799, allocations: 165.9 kB / 2.707 GB, free: 157.4 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002983/4.799, allocations: 138.9 kB / 2.707 GB, free: 157.4 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003572/4.803, allocations: 2.004 MB / 2.709 GB, free: 157.3 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003716/4.806, allocations: 2.51 MB / 2.711 GB, free: 156.8 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.498e-05/4.806, allocations: 9.219 kB / 2.711 GB, free: 156.8 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002357/4.807, allocations: 11.31 kB / 2.711 GB, free: 156.8 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.652e-05/4.807, allocations: 89.56 kB / 2.711 GB, free: 156.8 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0184/4.825, allocations: 13.96 MB / 2.725 GB, free: 150.3 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001467/4.827, allocations: 1.092 MB / 2.726 GB, free: 150.1 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007689/4.827, allocations: 0.5762 MB / 2.727 GB, free: 150.1 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001449/4.829, allocations: 1.778 MB / 2.728 GB, free: 148.1 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001175/4.83, allocations: 0.9011 MB / 2.729 GB, free: 147.8 MB / 1.151 GB Notification: Performance of pre-optimization done (n=118): time 3.456e-06/4.83, allocations: 0 / 2.729 GB, free: 147.8 MB / 1.151 GB Notification: Performance of matching and sorting (n=122): time 0.01699/4.847, allocations: 10.03 MB / 2.739 GB, free: 141.8 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002041/4.847, allocations: 0.9365 MB / 2.74 GB, free: 140.7 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002571/4.85, allocations: 1.848 MB / 2.742 GB, free: 140.5 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0001927/4.85, allocations: 29.61 kB / 2.742 GB, free: 140.4 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007392/4.851, allocations: 0.9789 MB / 2.743 GB, free: 139.9 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003673/4.851, allocations: 413.7 kB / 2.743 GB, free: 139.6 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000104/4.851, allocations: 0 / 2.743 GB, free: 139.6 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 9.294e-05/4.851, allocations: 368.4 kB / 2.744 GB, free: 139.3 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009392/4.852, allocations: 0.5864 MB / 2.744 GB, free: 139.3 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00124/4.854, allocations: 1.199 MB / 2.745 GB, free: 138.6 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002164/4.856, allocations: 0.8004 MB / 2.746 GB, free: 138.6 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/4.856, allocations: 3.844 kB / 2.746 GB, free: 138.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=207) (initialization): time 0.004442/4.86, allocations: 2.186 MB / 2.748 GB, free: 138.4 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009358/4.861, allocations: 5.09 MB / 2.753 GB, free: 133 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.85e-05/4.861, allocations: 13.59 kB / 2.753 GB, free: 133 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001532/4.863, allocations: 0.7191 MB / 2.754 GB, free: 132.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002509/4.865, allocations: 470.2 kB / 2.754 GB, free: 132.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003554/4.869, allocations: 2.356 MB / 2.757 GB, free: 131.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004756/4.874, allocations: 385.4 kB / 2.757 GB, free: 131.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002077/4.874, allocations: 109.3 kB / 2.757 GB, free: 131.9 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 9.257e-06/4.874, allocations: 6.781 kB / 2.757 GB, free: 131.9 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003943/4.878, allocations: 1.893 MB / 2.759 GB, free: 131.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.543e-05/4.878, allocations: 14.03 kB / 2.759 GB, free: 131.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001417/4.879, allocations: 0.7171 MB / 2.76 GB, free: 131.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002405/4.882, allocations: 454.9 kB / 2.76 GB, free: 131.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003424/4.885, allocations: 2.365 MB / 2.762 GB, free: 130.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004223/4.889, allocations: 319.6 kB / 2.763 GB, free: 130.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001972/4.89, allocations: 104.4 kB / 2.763 GB, free: 130.7 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$PRE.heaPum.com.isOn,heaPum.com.isOn,heaPum.stage,$PRE.heaPum1.com.isOn,heaPum1.com.isOn,$PRE.N.T_start,N.T_start,$PRE.N.count,N.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (152): * Single equations (assignments): 149 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 22,4 25} Notification: Performance of prepare postOptimizeDAE: time 0.0005069/4.89, allocations: 159 kB / 2.763 GB, free: 130.6 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004822/4.891, allocations: 246.7 kB / 2.763 GB, free: 130.5 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005/4.896, allocations: 1.709 MB / 2.765 GB, free: 130.3 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.353e-05/4.896, allocations: 16.62 kB / 2.765 GB, free: 130.3 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.418e-06/4.896, allocations: 6.125 kB / 2.765 GB, free: 130.3 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003714/4.899, allocations: 1.508 MB / 2.766 GB, free: 130.1 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01143/4.911, allocations: 6.023 MB / 2.772 GB, free: 128.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-05/4.911, allocations: 6.562 kB / 2.772 GB, free: 128.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00181/4.913, allocations: 291.5 kB / 2.773 GB, free: 128.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001261/4.914, allocations: 0.6012 MB / 2.773 GB, free: 128.1 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001206/4.914, allocations: 34.14 kB / 2.773 GB, free: 128.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003112/4.917, allocations: 2.107 MB / 2.775 GB, free: 127.1 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.404e-06/4.917, allocations: 8 kB / 2.775 GB, free: 127.1 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005357/4.923, allocations: 3.157 MB / 2.778 GB, free: 125.9 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001586/4.924, allocations: 0.6098 MB / 2.779 GB, free: 125.7 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008398/4.925, allocations: 14.41 kB / 2.779 GB, free: 125.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00361/4.929, allocations: 260.2 kB / 2.779 GB, free: 125.7 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000189/4.929, allocations: 106.8 kB / 2.779 GB, free: 125.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001949/4.929, allocations: 72.8 kB / 2.779 GB, free: 125.7 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.002586/4.932, allocations: 1.377 MB / 2.781 GB, free: 125.5 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.00629/4.938, allocations: 1.566 MB / 2.782 GB, free: 125.4 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 2 (heaPum1.port_b1.h_outflow,heaPum1.port_b2.h_outflow) * Number of discrete variables: 6 ($whenCondition1,heaPum.com.isOn,heaPum.stage,heaPum1.com.isOn,N.T_start,N.count) * Number of discrete states: 3 (N.count,heaPum1.com.isOn,heaPum.com.isOn) * Top-level inputs: 0 Notification: Strong component statistics for simulation (80): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 17,5 22} Notification: Performance of Backend phase and start with SimCode phase: time 0.003417/4.941, allocations: 1.495 MB / 2.784 GB, free: 125 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.007467/4.949, allocations: 2.756 MB / 2.786 GB, free: 124.9 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.769e-05/4.949, allocations: 8.062 kB / 2.786 GB, free: 124.9 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.002244/4.951, allocations: 0.854 MB / 2.787 GB, free: 124.9 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006517/4.958, allocations: 1.038 MB / 2.788 GB, free: 124.9 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01415/4.972, allocations: 3.965 MB / 2.792 GB, free: 123.8 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003099/4.975, allocations: 2.038 MB / 2.794 GB, free: 123.1 MB / 1.151 GB Notification: Performance of SimCode: time 1.113e-06/4.975, allocations: 1.5 kB / 2.794 GB, free: 123.1 MB / 1.151 GB Notification: Performance of Templates: time 0.1457/5.121, allocations: 74.79 MB / 2.867 GB, free: 119.4 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.makefile (rm -f Buildings_9_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.sim & ./Buildings_9_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_Dynamic.csv","../files/Buildings_9_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches