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: "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_Dynamic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_Dynamic",fmuType="me",version="2.0",platforms={"static"}) [: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.068/2.068, allocations: 387.2 MB / 394.5 MB, free: 13.64 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.001531/0.001531, allocations: 173.3 kB / 487 MB, free: 5.383 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.484/1.484, allocations: 221.3 MB / 0.7819 GB, free: 1.344 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.001117/0.001117, allocations: 98.62 kB / 0.9213 GB, free: 2.609 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.6348/0.6359, allocations: 148.4 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2711/0.9071, allocations: 142.3 MB / 1.205 GB, free: 26.15 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.049/1.956, allocations: 435.7 MB / 1.631 GB, free: 3.898 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003496/1.957, allocations: 87.52 kB / 1.631 GB, free: 3.855 MB / 1.057 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 4.334/6.291, allocations: 1.071 GB / 2.702 GB, free: 149.6 MB / 1.182 GB Notification: Performance of prepare preOptimizeDAE: time 4.627e-05/6.291, allocations: 11.16 kB / 2.702 GB, free: 149.6 MB / 1.182 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01009/6.301, allocations: 1.299 MB / 2.703 GB, free: 149.4 MB / 1.182 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008424/6.309, allocations: 3.35 MB / 2.707 GB, free: 148.9 MB / 1.182 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002865/6.31, allocations: 168.2 kB / 2.707 GB, free: 148.8 MB / 1.182 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008733/6.311, allocations: 138.8 kB / 2.707 GB, free: 148.8 MB / 1.182 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00512/6.316, allocations: 2.004 MB / 2.709 GB, free: 148.8 MB / 1.182 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006452/6.322, allocations: 2.505 MB / 2.711 GB, free: 148.3 MB / 1.182 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.026e-05/6.322, allocations: 8.094 kB / 2.711 GB, free: 148.3 MB / 1.182 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005814/6.323, allocations: 9.062 kB / 2.711 GB, free: 148.3 MB / 1.182 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001094/6.323, allocations: 98.22 kB / 2.712 GB, free: 148.3 MB / 1.182 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02287/6.346, allocations: 13.97 MB / 2.725 GB, free: 141.8 MB / 1.182 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00164/6.348, allocations: 1.091 MB / 2.726 GB, free: 141.6 MB / 1.182 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009393/6.348, allocations: 0.5748 MB / 2.727 GB, free: 141.6 MB / 1.182 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001669/6.35, allocations: 1.779 MB / 2.729 GB, free: 139.6 MB / 1.182 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001438/6.352, allocations: 0.9031 MB / 2.729 GB, free: 139.3 MB / 1.182 GB Notification: Performance of pre-optimization done (n=118): time 8.345e-06/6.352, allocations: 0 / 2.729 GB, free: 139.3 MB / 1.182 GB Notification: Performance of matching and sorting (n=122): time 0.02398/6.376, allocations: 10.02 MB / 2.739 GB, free: 133.3 MB / 1.182 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002449/6.376, allocations: 0.9435 MB / 2.74 GB, free: 132.2 MB / 1.182 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002776/6.379, allocations: 1.842 MB / 2.742 GB, free: 131.9 MB / 1.182 GB Notification: Performance of collectPreVariables (initialization): time 0.0003035/6.379, allocations: 36.36 kB / 2.742 GB, free: 131.9 MB / 1.182 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008552/6.38, allocations: 0.985 MB / 2.743 GB, free: 131.3 MB / 1.182 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003996/6.38, allocations: 408.7 kB / 2.743 GB, free: 131.1 MB / 1.182 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000111/6.38, allocations: 0 / 2.743 GB, free: 131.1 MB / 1.182 GB Notification: Performance of setup shared object (initialization): time 0.0001027/6.381, allocations: 370.7 kB / 2.744 GB, free: 130.8 MB / 1.182 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009856/6.382, allocations: 0.5759 MB / 2.744 GB, free: 130.8 MB / 1.182 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001304/6.383, allocations: 1.204 MB / 2.745 GB, free: 130.1 MB / 1.182 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002279/6.385, allocations: 0.8044 MB / 2.746 GB, free: 130.1 MB / 1.182 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.524e-06/6.385, allocations: 3.062 kB / 2.746 GB, free: 130.1 MB / 1.182 GB Notification: Performance of matching and sorting (n=207) (initialization): time 0.004772/6.39, allocations: 2.181 MB / 2.748 GB, free: 129.9 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 0.001086/6.391, allocations: 5.096 MB / 2.753 GB, free: 124.4 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.196e-05/6.391, allocations: 11.28 kB / 2.753 GB, free: 124.4 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001623/6.393, allocations: 0.7175 MB / 2.754 GB, free: 124.4 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002587/6.395, allocations: 472.2 kB / 2.754 GB, free: 124.4 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003828/6.399, allocations: 2.363 MB / 2.757 GB, free: 123.3 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005326/6.404, allocations: 384.1 kB / 2.757 GB, free: 123.3 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002756/6.405, allocations: 109 kB / 2.757 GB, free: 123.3 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 1.185e-05/6.405, allocations: 5.375 kB / 2.757 GB, free: 123.3 MB / 1.182 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00429/6.409, allocations: 1.891 MB / 2.759 GB, free: 123.3 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.773e-05/6.409, allocations: 11.12 kB / 2.759 GB, free: 123.3 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001591/6.411, allocations: 0.7166 MB / 2.76 GB, free: 123.2 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002569/6.413, allocations: 458 kB / 2.76 GB, free: 123.2 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004026/6.417, allocations: 2.359 MB / 2.763 GB, free: 122.2 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004793/6.422, allocations: 320.6 kB / 2.763 GB, free: 122.2 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002892/6.422, allocations: 108.5 kB / 2.763 GB, free: 122.2 MB / 1.182 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.0006595/6.423, allocations: 162 kB / 2.763 GB, free: 122 MB / 1.182 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006457/6.424, allocations: 247.7 kB / 2.763 GB, free: 121.9 MB / 1.182 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005556/6.429, allocations: 1.707 MB / 2.765 GB, free: 121.8 MB / 1.182 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.773e-05/6.429, allocations: 20.84 kB / 2.765 GB, free: 121.8 MB / 1.182 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.03e-05/6.429, allocations: 3.844 kB / 2.765 GB, free: 121.8 MB / 1.182 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004043/6.433, allocations: 1.509 MB / 2.766 GB, free: 121.5 MB / 1.182 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01402/6.448, allocations: 6.011 MB / 2.772 GB, free: 119.6 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.527e-05/6.448, allocations: 7.5 kB / 2.772 GB, free: 119.6 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001864/6.449, allocations: 291.2 kB / 2.773 GB, free: 119.6 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001321/6.451, allocations: 0.5943 MB / 2.773 GB, free: 119.6 MB / 1.182 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001288/6.451, allocations: 41.73 kB / 2.773 GB, free: 119.6 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003386/6.454, allocations: 2.106 MB / 2.775 GB, free: 118.6 MB / 1.182 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.094e-05/6.454, allocations: 10.16 kB / 2.775 GB, free: 118.6 MB / 1.182 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006265/6.461, allocations: 3.161 MB / 2.778 GB, free: 117.4 MB / 1.182 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007751/6.468, allocations: 4.412 MB / 2.783 GB, free: 115.8 MB / 1.182 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002057/6.47, allocations: 0.6094 MB / 2.783 GB, free: 115.6 MB / 1.182 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001007/6.471, allocations: 7.75 kB / 2.783 GB, free: 115.6 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004154/6.476, allocations: 262.7 kB / 2.784 GB, free: 115.6 MB / 1.182 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002377/6.476, allocations: 102 kB / 2.784 GB, free: 115.6 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002201/6.476, allocations: 71.83 kB / 2.784 GB, free: 115.6 MB / 1.182 GB Notification: Performance of sort global known variables: time 0.003229/6.479, allocations: 1.38 MB / 2.785 GB, free: 115.4 MB / 1.182 GB Notification: Performance of remove unused functions: time 0.01036/6.49, allocations: 2.093 MB / 2.787 GB, free: 115.3 MB / 1.182 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.00383/6.494, allocations: 1.498 MB / 2.789 GB, free: 114.9 MB / 1.182 GB Notification: Performance of simCode: created initialization part: time 0.007372/6.501, allocations: 2.761 MB / 2.791 GB, free: 114.8 MB / 1.182 GB Notification: Performance of simCode: created event and clocks part: time 2.012e-05/6.501, allocations: 4.156 kB / 2.791 GB, free: 114.8 MB / 1.182 GB Notification: Performance of simCode: created simulation system equations: time 0.002478/6.504, allocations: 0.8511 MB / 2.792 GB, free: 114.8 MB / 1.182 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006794/6.51, allocations: 1.047 MB / 2.793 GB, free: 114.8 MB / 1.182 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01337/6.524, allocations: 3.968 MB / 2.797 GB, free: 113.7 MB / 1.182 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003154/6.527, allocations: 2.049 MB / 2.799 GB, free: 113 MB / 1.182 GB Notification: Performance of SimCode: time 1.813e-06/6.527, allocations: 0 / 2.799 GB, free: 113 MB / 1.182 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_Dynamic_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatPumps_Validation_ReciprocatingWaterToWater_Dynamic.fmu > Buildings_9_Buildings.Fluid.HeatPumps.Validation.ReciprocatingWaterToWater_Dynamic.pipe 2>&1)