Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_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 10.0.0-master/package.mo): time 1.896/1.896, allocations: 390.4 MB / 397.7 MB, free: 11.27 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.001022/0.001022, allocations: 175.9 kB / 490.8 MB, free: 1.938 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.4 MB / 0.7863 GB, free: 13.65 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009659/0.0009656, allocations: 80.75 kB / 0.9264 GB, free: 14.19 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 9.158e-06/9.198e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2593/0.2594, allocations: 143 MB / 1.212 GB, free: 40.12 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9478/1.207, allocations: 436.5 MB / 1.638 GB, free: 11.54 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002662/1.208, allocations: 91.95 kB / 1.638 GB, free: 11.5 MB / 1.057 GB Notification: Performance of FrontEnd: time 3.835/5.043, allocations: 1.068 GB / 2.706 GB, free: 160.6 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0002997/5.043, allocations: 87.28 kB / 2.706 GB, free: 160.6 MB / 1.167 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.007449/5.051, allocations: 3.224 MB / 2.709 GB, free: 159.4 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.277e-05/5.051, allocations: 11.22 kB / 2.709 GB, free: 159.4 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008877/5.06, allocations: 1.314 MB / 2.71 GB, free: 159.2 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006047/5.066, allocations: 3.345 MB / 2.714 GB, free: 158.8 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001558/5.066, allocations: 162.2 kB / 2.714 GB, free: 158.7 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002906/5.066, allocations: 136 kB / 2.714 GB, free: 158.7 MB / 1.167 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003476/5.07, allocations: 2.001 MB / 2.716 GB, free: 158.7 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00398/5.074, allocations: 2.513 MB / 2.718 GB, free: 158.2 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.843e-05/5.074, allocations: 11.62 kB / 2.718 GB, free: 158.2 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002444/5.074, allocations: 7.594 kB / 2.718 GB, free: 158.2 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.848e-05/5.074, allocations: 98.78 kB / 2.719 GB, free: 158.2 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02057/5.095, allocations: 13.96 MB / 2.732 GB, free: 151.7 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001514/5.096, allocations: 1.091 MB / 2.733 GB, free: 151.5 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008235/5.097, allocations: 0.5791 MB / 2.734 GB, free: 151.5 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001545/5.099, allocations: 1.78 MB / 2.736 GB, free: 149.5 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001193/5.1, allocations: 0.8914 MB / 2.736 GB, free: 149.3 MB / 1.167 GB Notification: Performance of pre-optimization done (n=118): time 4.127e-06/5.1, allocations: 0 / 2.736 GB, free: 149.3 MB / 1.167 GB Notification: Performance of matching and sorting (n=122): time 0.01701/5.117, allocations: 10.03 MB / 2.746 GB, free: 143.2 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002639/5.117, allocations: 0.9365 MB / 2.747 GB, free: 142.1 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002772/5.12, allocations: 1.843 MB / 2.749 GB, free: 141.9 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0002883/5.12, allocations: 34.8 kB / 2.749 GB, free: 141.8 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009759/5.121, allocations: 0.9902 MB / 2.75 GB, free: 141.3 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.000524/5.122, allocations: 404.5 kB / 2.75 GB, free: 141 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001151/5.122, allocations: 2.844 kB / 2.75 GB, free: 141 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0001185/5.122, allocations: 374.5 kB / 2.751 GB, free: 140.7 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001008/5.123, allocations: 0.583 MB / 2.751 GB, free: 140.7 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001477/5.125, allocations: 1.198 MB / 2.752 GB, free: 140 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002424/5.127, allocations: 0.8012 MB / 2.753 GB, free: 140 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.203e-06/5.127, allocations: 3.812 kB / 2.753 GB, free: 140 MB / 1.167 GB Notification: Performance of matching and sorting (n=207) (initialization): time 0.005785/5.133, allocations: 2.186 MB / 2.755 GB, free: 139.8 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.001063/5.134, allocations: 5.092 MB / 2.76 GB, free: 134.4 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.026e-05/5.134, allocations: 13.97 kB / 2.76 GB, free: 134.4 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001583/5.136, allocations: 0.7142 MB / 2.761 GB, free: 134.3 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002545/5.138, allocations: 464 kB / 2.761 GB, free: 134.3 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003651/5.142, allocations: 2.368 MB / 2.764 GB, free: 133.3 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005139/5.147, allocations: 391.3 kB / 2.764 GB, free: 133.2 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002991/5.147, allocations: 108.8 kB / 2.764 GB, free: 133.2 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.135e-05/5.147, allocations: 3.938 kB / 2.764 GB, free: 133.2 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004264/5.151, allocations: 1.893 MB / 2.766 GB, free: 133.2 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.593e-05/5.152, allocations: 11.62 kB / 2.766 GB, free: 133.2 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001466/5.153, allocations: 0.7122 MB / 2.767 GB, free: 133.2 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002428/5.155, allocations: 456.4 kB / 2.767 GB, free: 133.2 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003563/5.159, allocations: 2.362 MB / 2.77 GB, free: 132.1 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004583/5.164, allocations: 315.9 kB / 2.77 GB, free: 132.1 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000251/5.164, allocations: 107.3 kB / 2.77 GB, free: 132.1 MB / 1.167 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.0006032/5.164, allocations: 153.4 kB / 2.77 GB, free: 132 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000596/5.165, allocations: 239.8 kB / 2.77 GB, free: 131.9 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005059/5.17, allocations: 1.714 MB / 2.772 GB, free: 131.8 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.54e-05/5.17, allocations: 19.19 kB / 2.772 GB, free: 131.8 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.258e-06/5.17, allocations: 6.047 kB / 2.772 GB, free: 131.8 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003733/5.174, allocations: 1.51 MB / 2.774 GB, free: 131.5 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01248/5.186, allocations: 6.028 MB / 2.779 GB, free: 129.6 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.237e-05/5.186, allocations: 7.562 kB / 2.779 GB, free: 129.6 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001839/5.188, allocations: 291.9 kB / 2.78 GB, free: 129.6 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001399/5.19, allocations: 0.5972 MB / 2.78 GB, free: 129.5 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001206/5.19, allocations: 37.25 kB / 2.78 GB, free: 129.5 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003261/5.193, allocations: 2.112 MB / 2.782 GB, free: 128.5 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.887e-06/5.193, allocations: 9.219 kB / 2.782 GB, free: 128.5 MB / 1.167 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00591/5.199, allocations: 3.152 MB / 2.785 GB, free: 127.3 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001861/5.201, allocations: 0.6098 MB / 2.786 GB, free: 127.1 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004965/5.201, allocations: 27.48 kB / 2.786 GB, free: 127.1 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003189/5.205, allocations: 258.9 kB / 2.786 GB, free: 127.1 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000178/5.205, allocations: 105.6 kB / 2.786 GB, free: 127.1 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001666/5.205, allocations: 71.7 kB / 2.786 GB, free: 127.1 MB / 1.167 GB Notification: Performance of sort global known variables: time 0.002105/5.207, allocations: 1.382 MB / 2.788 GB, free: 126.9 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.005744/5.213, allocations: 1.566 MB / 2.789 GB, free: 126.8 MB / 1.167 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.002984/5.216, allocations: 1.484 MB / 2.791 GB, free: 126.4 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.006273/5.222, allocations: 2.765 MB / 2.794 GB, free: 126.3 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 1.81e-05/5.222, allocations: 4.406 kB / 2.794 GB, free: 126.3 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.002163/5.224, allocations: 0.8608 MB / 2.794 GB, free: 126.3 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005731/5.23, allocations: 1.04 MB / 2.795 GB, free: 126.2 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01129/5.241, allocations: 3.964 MB / 2.799 GB, free: 125.2 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001941/5.243, allocations: 2.04 MB / 2.801 GB, free: 124.4 MB / 1.167 GB Notification: Performance of SimCode: time 9.02e-07/5.243, allocations: 3.5 kB / 2.801 GB, free: 124.4 MB / 1.167 GB Notification: Performance of Templates: time 0.1127/5.356, allocations: 74.77 MB / 2.874 GB, free: 121.4 MB / 1.167 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.sim & ./Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_Dynamic.csv","../files/Buildings_latest_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches