Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_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.ScrollWaterToWater_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.ScrollWaterToWater_Dynamic") translateModel(Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_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.ScrollWaterToWater_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.05/2.05, allocations: 387.2 MB / 394.5 MB, free: 13.67 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.00121/0.00121, allocations: 184.2 kB / 487 MB, free: 5.41 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.524/1.524, allocations: 221.3 MB / 0.7819 GB, free: 1.473 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.001144/0.001144, allocations: 101.2 kB / 0.9213 GB, free: 2.742 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 8.596e-06/8.616e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3135/0.3136, allocations: 142.3 MB / 1.205 GB, free: 26.3 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.175/1.489, allocations: 436.1 MB / 1.631 GB, free: 3.668 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002426/1.489, allocations: 92.34 kB / 1.631 GB, free: 3.621 MB / 1.057 GB Notification: Performance of FrontEnd: time 3.788/5.277, allocations: 1.067 GB / 2.699 GB, free: 158.5 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0002948/5.278, allocations: 86.33 kB / 2.699 GB, free: 158.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: 579 * Number of variables: 579 Notification: Performance of Generate backend data structure: time 0.006446/5.284, allocations: 3.203 MB / 2.702 GB, free: 157.2 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 3.423e-05/5.284, allocations: 7.25 kB / 2.702 GB, free: 157.2 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01064/5.295, allocations: 1.407 MB / 2.703 GB, free: 157 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007669/5.303, allocations: 3.344 MB / 2.706 GB, free: 156.5 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002164/5.303, allocations: 166 kB / 2.707 GB, free: 156.4 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004937/5.303, allocations: 136.8 kB / 2.707 GB, free: 156.4 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003816/5.307, allocations: 2.03 MB / 2.709 GB, free: 156.4 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003748/5.311, allocations: 2.507 MB / 2.711 GB, free: 155.9 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.249e-05/5.311, allocations: 7.156 kB / 2.711 GB, free: 155.9 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002386/5.311, allocations: 7.875 kB / 2.711 GB, free: 155.9 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.594e-05/5.311, allocations: 73.64 kB / 2.711 GB, free: 155.9 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02034/5.332, allocations: 14.1 MB / 2.725 GB, free: 149.3 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001599/5.333, allocations: 1.124 MB / 2.726 GB, free: 149.1 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007971/5.334, allocations: 0.6096 MB / 2.727 GB, free: 149.1 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001392/5.336, allocations: 1.778 MB / 2.728 GB, free: 147.1 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001212/5.337, allocations: 0.931 MB / 2.729 GB, free: 146.8 MB / 1.151 GB Notification: Performance of pre-optimization done (n=118): time 3.256e-06/5.337, allocations: 0 / 2.729 GB, free: 146.8 MB / 1.151 GB Notification: Performance of matching and sorting (n=122): time 0.01827/5.355, allocations: 10.08 MB / 2.739 GB, free: 140.8 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001948/5.355, allocations: 0.9441 MB / 2.74 GB, free: 139.7 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003005/5.358, allocations: 1.839 MB / 2.742 GB, free: 139.4 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0003613/5.359, allocations: 36.84 kB / 2.742 GB, free: 139.4 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008659/5.36, allocations: 0.9795 MB / 2.743 GB, free: 138.9 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004924/5.36, allocations: 406.7 kB / 2.743 GB, free: 138.6 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000137/5.36, allocations: 0 / 2.743 GB, free: 138.6 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001029/5.36, allocations: 367.4 kB / 2.744 GB, free: 138.3 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001062/5.361, allocations: 0.6087 MB / 2.744 GB, free: 138.3 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001311/5.363, allocations: 1.232 MB / 2.745 GB, free: 137.6 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002288/5.365, allocations: 0.8156 MB / 2.746 GB, free: 137.6 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.775e-06/5.365, allocations: 3.688 kB / 2.746 GB, free: 137.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=207) (initialization): time 0.0047/5.37, allocations: 2.254 MB / 2.748 GB, free: 137.4 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008948/5.371, allocations: 5.091 MB / 2.753 GB, free: 131.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.722e-05/5.371, allocations: 13.56 kB / 2.753 GB, free: 131.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001899/5.373, allocations: 0.9033 MB / 2.754 GB, free: 131.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002494/5.375, allocations: 465.6 kB / 2.755 GB, free: 131.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00301/5.378, allocations: 2.368 MB / 2.757 GB, free: 130.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005062/5.383, allocations: 387.8 kB / 2.757 GB, free: 130.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000244/5.383, allocations: 110 kB / 2.758 GB, free: 130.8 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.065e-05/5.383, allocations: 6.281 kB / 2.758 GB, free: 130.8 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004214/5.388, allocations: 1.966 MB / 2.76 GB, free: 130.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.711e-05/5.388, allocations: 13.44 kB / 2.76 GB, free: 130.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001827/5.39, allocations: 0.8909 MB / 2.76 GB, free: 130.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00243/5.392, allocations: 444.6 kB / 2.761 GB, free: 130.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003023/5.395, allocations: 2.374 MB / 2.763 GB, free: 129.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004486/5.4, allocations: 331.1 kB / 2.763 GB, free: 129.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002283/5.4, allocations: 105.8 kB / 2.764 GB, free: 129.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 (148): * Single equations (assignments): 145 * 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 24,4 27} Notification: Performance of prepare postOptimizeDAE: time 0.0005852/5.4, allocations: 168.7 kB / 2.764 GB, free: 129.5 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004887/5.401, allocations: 243.2 kB / 2.764 GB, free: 129.4 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00568/5.407, allocations: 1.753 MB / 2.766 GB, free: 129.3 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.802e-05/5.407, allocations: 18.12 kB / 2.766 GB, free: 129.3 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.205e-06/5.407, allocations: 6.531 kB / 2.766 GB, free: 129.3 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004432/5.411, allocations: 1.549 MB / 2.767 GB, free: 129 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01041/5.421, allocations: 6.143 MB / 2.773 GB, free: 127.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.796e-06/5.422, allocations: 6.406 kB / 2.773 GB, free: 127.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001767/5.423, allocations: 279.7 kB / 2.773 GB, free: 127.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001656/5.425, allocations: 0.7843 MB / 2.774 GB, free: 127.1 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001181/5.425, allocations: 33.16 kB / 2.774 GB, free: 127.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002564/5.428, allocations: 2.108 MB / 2.776 GB, free: 126 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.362e-06/5.428, allocations: 7.719 kB / 2.776 GB, free: 126 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007018/5.435, allocations: 3.274 MB / 2.78 GB, free: 124.9 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001707/5.436, allocations: 0.619 MB / 2.78 GB, free: 124.6 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004798/5.437, allocations: 16.97 kB / 2.78 GB, free: 124.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0034/5.44, allocations: 267.3 kB / 2.78 GB, free: 124.6 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000176/5.441, allocations: 107.6 kB / 2.781 GB, free: 124.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001417/5.441, allocations: 71.27 kB / 2.781 GB, free: 124.6 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.001902/5.443, allocations: 1.381 MB / 2.782 GB, free: 124.5 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.004847/5.447, allocations: 1.573 MB / 2.783 GB, free: 124.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 (76): * Single equations (assignments): 70 * 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 19,4 25} Notification: Performance of Backend phase and start with SimCode phase: time 0.002474/5.45, allocations: 1.51 MB / 2.785 GB, free: 124 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.004463/5.454, allocations: 2.642 MB / 2.788 GB, free: 123.8 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 7.605e-06/5.454, allocations: 4.281 kB / 2.788 GB, free: 123.8 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.001403/5.456, allocations: 0.772 MB / 2.788 GB, free: 123.8 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005382/5.461, allocations: 1.036 MB / 2.789 GB, free: 123.8 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008641/5.47, allocations: 3.77 MB / 2.793 GB, free: 122.7 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001778/5.472, allocations: 2.038 MB / 2.795 GB, free: 122 MB / 1.151 GB Notification: Performance of SimCode: time 5.41e-07/5.472, allocations: 0 / 2.795 GB, free: 122 MB / 1.151 GB Notification: Performance of Templates: time 0.1346/5.606, allocations: 77.05 MB / 2.87 GB, free: 114.9 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.makefile (rm -f Buildings_9_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.sim & ./Buildings_9_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatPumps_Validation_ScrollWaterToWater_Dynamic.csv","../files/Buildings_9_Buildings.Fluid.HeatPumps.Validation.ScrollWaterToWater_Dynamic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches