Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001877/0.001877, allocations: 108 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001564/0.001564, allocations: 195.3 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.429/1.429, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002704/0.002704, allocations: 286.7 kB / 290.7 MB, free: 1.98 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.086/1.086, allocations: 178.6 MB / 0.5073 GB, free: 4.586 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002689/0.002689, allocations: 102.5 kB / 0.6066 GB, free: 24.73 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1574/0.1601, allocations: 89.14 MB / 0.6936 GB, free: 4.176 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002874/0.1631, allocations: 1.412 MB / 0.695 GB, free: 2.754 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00676/0.1698, allocations: 4.209 MB / 0.6991 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.089e-05/0.1699, allocations: 4 kB / 0.6991 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001097/0.17, allocations: 11.86 kB / 0.6991 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002374/0.1703, allocations: 31.84 kB / 0.6992 GB, free: 14.49 MB / 0.4981 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function 'Modelica.Math.Random.Utilities.initializeImpureRandom' contains a call to impure function 'Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Utilities/Clustering/KMeans.mo:96:7-96:35:writable] Warning: inertia was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.003819/0.1741, allocations: 1.508 MB / 0.7007 GB, free: 12.98 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001426/0.1743, allocations: 95.67 kB / 0.7007 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 5.733e-05/0.1743, allocations: 4 kB / 0.7007 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.018e-05/0.1744, allocations: 55.77 kB / 0.7008 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002358/0.1747, allocations: 143.6 kB / 0.7009 GB, free: 12.69 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.356e-05/0.1747, allocations: 12 kB / 0.7009 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003249/0.178, allocations: 2.153 MB / 0.703 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002431/0.1782, allocations: 275.8 kB / 0.7033 GB, free: 10.25 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002773/0.1785, allocations: 270.3 kB / 0.7036 GB, free: 9.984 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002805/0.1813, allocations: 2.116 MB / 0.7056 GB, free: 7.863 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.1813, allocations: 0 / 0.7056 GB, free: 7.863 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.343e-06/0.1813, allocations: 0 / 0.7056 GB, free: 7.863 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.423e-06/0.1814, allocations: 3.938 kB / 0.7056 GB, free: 7.859 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.01056/0.1919, allocations: 1.296 MB / 0.7069 GB, free: 6.512 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.427e-05/0.192, allocations: 8.031 kB / 0.7069 GB, free: 6.504 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.473e-05/0.1921, allocations: 38.75 kB / 0.707 GB, free: 6.457 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004102/0.1925, allocations: 91.67 kB / 0.707 GB, free: 6.367 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004974/0.193, allocations: 364.9 kB / 0.7074 GB, free: 5.961 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.644e-05/0.193, allocations: 8.375 kB / 0.7074 GB, free: 5.953 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.72e-05/0.1931, allocations: 4.375 kB / 0.7074 GB, free: 5.949 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004954/0.1936, allocations: 399.2 kB / 0.7078 GB, free: 5.547 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.348e-06/0.1936, allocations: 0 / 0.7078 GB, free: 5.547 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.487e-05/0.1936, allocations: 4 kB / 0.7078 GB, free: 5.543 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.713e-06/0.1936, allocations: 4 kB / 0.7078 GB, free: 5.539 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004758/0.1941, allocations: 431.7 kB / 0.7082 GB, free: 5.117 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006861/0.1948, allocations: 0.6249 MB / 0.7088 GB, free: 4.441 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005661/0.1954, allocations: 0.5711 MB / 0.7094 GB, free: 3.852 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000342/0.1957, allocations: 337.7 kB / 0.7097 GB, free: 3.516 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001223/0.1969, allocations: 1.021 MB / 0.7107 GB, free: 2.273 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004449/0.1974, allocations: 420.8 kB / 0.7111 GB, free: 1.844 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.262e-06/0.1974, allocations: 3.938 kB / 0.7111 GB, free: 1.84 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.001426/0.1988, allocations: 1.293 MB / 0.7124 GB, free: 0.5391 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.294e-05/0.1989, allocations: 85.09 kB / 0.7124 GB, free: 448 kB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001243/0.2002, allocations: 1.21 MB / 0.7136 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 3.968e-05/0.2002, allocations: 25.7 kB / 0.7136 GB, free: 15.18 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002022/0.2004, allocations: 261.4 kB / 0.7139 GB, free: 14.92 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 3.69e-05/0.2005, allocations: 27.69 kB / 0.7139 GB, free: 14.89 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003402/0.2008, allocations: 355.6 kB / 0.7143 GB, free: 14.54 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001308/0.201, allocations: 306 kB / 0.7145 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001323/0.2023, allocations: 1.373 MB / 0.7159 GB, free: 12.86 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001459/0.2037, allocations: 1.505 MB / 0.7174 GB, free: 11.34 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007367/0.2111, allocations: 3.56 MB / 0.7208 GB, free: 7.691 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.2111, allocations: 4 kB / 0.7208 GB, free: 7.688 MB / 0.5137 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004616/0.2158, allocations: 3.999 MB / 0.7247 GB, free: 3.652 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.893e-05/0.2158, allocations: 4 kB / 0.7247 GB, free: 3.648 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.837e-05/0.2158, allocations: 4 kB / 0.7248 GB, free: 3.645 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.754e-05/0.2158, allocations: 0 / 0.7248 GB, free: 3.645 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001327/0.216, allocations: 19.92 kB / 0.7248 GB, free: 3.625 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.793e-06/0.216, allocations: 0 / 0.7248 GB, free: 3.625 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004983/0.2165, allocations: 236.2 kB / 0.725 GB, free: 3.391 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.24e-05/0.2166, allocations: 27.98 kB / 0.725 GB, free: 3.363 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 13 (cluSiz[1],labels[1],gFun2,$PRE.gFun2,gFun1,$PRE.gFun1,t2,$PRE.t2,t1,$PRE.t1,k,$PRE.k,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 13 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003154/0.2169, allocations: 238.3 kB / 0.7252 GB, free: 3.121 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.718e-05/0.217, allocations: 70.72 kB / 0.7253 GB, free: 3.051 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002848/0.2172, allocations: 74.95 kB / 0.7254 GB, free: 2.969 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.2173, allocations: 4 kB / 0.7254 GB, free: 2.965 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.2173, allocations: 8.016 kB / 0.7254 GB, free: 2.957 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.2173, allocations: 0 / 0.7254 GB, free: 2.957 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004862/0.2178, allocations: 0.4892 MB / 0.7259 GB, free: 2.422 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.314e-06/0.2178, allocations: 3.938 kB / 0.7259 GB, free: 2.418 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.975e-05/0.2179, allocations: 7.938 kB / 0.7259 GB, free: 2.41 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.2179, allocations: 0 / 0.7259 GB, free: 2.41 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.547e-05/0.2179, allocations: 7.984 kB / 0.7259 GB, free: 2.402 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.734e-06/0.2179, allocations: 0 / 0.7259 GB, free: 2.402 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.2179, allocations: 0 / 0.7259 GB, free: 2.402 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001018/0.2189, allocations: 1.005 MB / 0.7269 GB, free: 1.375 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000124/0.2191, allocations: 155.8 kB / 0.727 GB, free: 1.203 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.03e-05/0.2191, allocations: 4 kB / 0.727 GB, free: 1.199 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001304/0.2193, allocations: 0 / 0.727 GB, free: 1.199 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.26e-05/0.2193, allocations: 7.984 kB / 0.727 GB, free: 1.191 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.492e-05/0.2194, allocations: 15.98 kB / 0.7271 GB, free: 1.176 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.000765/0.2201, allocations: 0.6728 MB / 0.7277 GB, free: 0.4961 MB / 0.5137 GB Notification: Performance of sort global known variables: time 4.41e-07/0.2201, allocations: 0 / 0.7277 GB, free: 0.4961 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001506/0.2216, allocations: 0.5779 MB / 0.7283 GB, free: 15.91 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,k,t1,t2,gFun1,gFun2) * Number of discrete states: 2 (k,t2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003136/0.2248, allocations: 2.152 MB / 0.7304 GB, free: 13.75 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002531/0.2273, allocations: 2.552 MB / 0.7329 GB, free: 11.19 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2273, allocations: 0 / 0.7329 GB, free: 11.19 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0003826/0.2277, allocations: 343.7 kB / 0.7332 GB, free: 10.85 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003241/0.2281, allocations: 33.48 kB / 0.7332 GB, free: 10.82 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01619/0.2443, allocations: 15.15 MB / 0.748 GB, free: 11.49 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006183/0.2449, allocations: 0.964 MB / 0.749 GB, free: 10.5 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0001757/0.2451, allocations: 36.56 kB / 0.749 GB, free: 10.46 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000332/0.2454, allocations: 263.9 kB / 0.7492 GB, free: 10.2 MB / 0.545 GB Notification: Performance of SimCode: time 7.81e-07/0.2455, allocations: 0 / 0.7492 GB, free: 10.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.315/0.5604, allocations: 23.66 MB / 0.7723 GB, free: 60.05 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.05/9.61, allocations: 20.52 kB / 0.7724 GB, free: 60.04 MB / 0.545 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters_res.csv --start-time 0 --stop-time 4.12e+08 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 164800 BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.fmu > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1)