Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.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/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="Buildings_10_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="Buildings_10_Buildings_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.00121/0.00121, allocations: 108 kB / 15.61 MB, free: 152 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.001329/0.001329, allocations: 194.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.496/1.496, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.736/2.736, allocations: 437.1 MB / 0.7104 GB, free: 5.098 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001519/0.001519, allocations: 63.91 kB / 0.8694 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6953/0.6968, allocations: 151.6 MB / 1.017 GB, free: 2.523 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002764/0.6996, allocations: 1.426 MB / 1.019 GB, free: 1.082 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.006806/0.7064, allocations: 4.207 MB / 1.023 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.328e-05/0.7065, allocations: 3.938 kB / 1.023 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001111/0.7067, allocations: 11.81 kB / 1.023 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003704/0.7071, allocations: 35.83 kB / 1.023 GB, free: 12.8 MB / 0.7794 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/Buildings 10.1.1-maint.10.0.x/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.004146/0.7113, allocations: 1.502 MB / 1.024 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001407/0.7114, allocations: 91.69 kB / 1.025 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 5.102e-05/0.7115, allocations: 15.95 kB / 1.025 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 7.628e-05/0.7116, allocations: 43.91 kB / 1.025 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002212/0.7118, allocations: 147.5 kB / 1.025 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.546e-05/0.7118, allocations: 16 kB / 1.025 GB, free: 11 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003382/0.7152, allocations: 2.149 MB / 1.027 GB, free: 8.844 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0002076/0.7155, allocations: 271.9 kB / 1.027 GB, free: 8.578 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002597/0.7157, allocations: 282.3 kB / 1.027 GB, free: 8.301 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.003439/0.7192, allocations: 2.097 MB / 1.029 GB, free: 6.199 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.7192, allocations: 0 / 1.029 GB, free: 6.199 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.283e-06/0.7192, allocations: 0 / 1.029 GB, free: 6.199 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.382e-05/0.7192, allocations: 0 / 1.029 GB, free: 6.199 MB / 0.7794 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.01096/0.7302, allocations: 1.304 MB / 1.031 GB, free: 4.844 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.006e-05/0.7302, allocations: 19.97 kB / 1.031 GB, free: 4.824 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.059e-05/0.7303, allocations: 34.75 kB / 1.031 GB, free: 4.781 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004409/0.7307, allocations: 83.69 kB / 1.031 GB, free: 4.699 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004471/0.7312, allocations: 361 kB / 1.031 GB, free: 4.297 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.71e-05/0.7312, allocations: 8.359 kB / 1.031 GB, free: 4.289 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.427e-05/0.7313, allocations: 8.375 kB / 1.031 GB, free: 4.281 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004528/0.7317, allocations: 395.3 kB / 1.032 GB, free: 3.883 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.728e-06/0.7318, allocations: 4 kB / 1.032 GB, free: 3.879 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.528e-05/0.7318, allocations: 4 kB / 1.032 GB, free: 3.875 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.7318, allocations: 0 / 1.032 GB, free: 3.875 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004562/0.7323, allocations: 439.7 kB / 1.032 GB, free: 3.445 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008788/0.7331, allocations: 0.6365 MB / 1.033 GB, free: 2.758 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005864/0.7337, allocations: 0.5555 MB / 1.033 GB, free: 2.184 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003387/0.7341, allocations: 341.7 kB / 1.034 GB, free: 1.844 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001168/0.7353, allocations: 1.028 MB / 1.035 GB, free: 0.5938 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004896/0.7358, allocations: 404.8 kB / 1.035 GB, free: 184 kB / 0.7794 GB Notification: Performance of pre-optimization done (n=8): time 1.533e-06/0.7358, allocations: 0 / 1.035 GB, free: 184 kB / 0.7794 GB Notification: Performance of matching and sorting (n=8): time 0.001449/0.7372, allocations: 1.293 MB / 1.036 GB, free: 14.88 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.892e-05/0.7373, allocations: 81.11 kB / 1.036 GB, free: 14.78 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001194/0.7385, allocations: 1.218 MB / 1.037 GB, free: 13.55 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 4.105e-05/0.7386, allocations: 29.7 kB / 1.037 GB, free: 13.51 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004278/0.739, allocations: 257.3 kB / 1.038 GB, free: 13.25 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 4.275e-05/0.7391, allocations: 23.73 kB / 1.038 GB, free: 13.23 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003457/0.7394, allocations: 363.5 kB / 1.038 GB, free: 12.87 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001109/0.7395, allocations: 314.1 kB / 1.038 GB, free: 12.56 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00135/0.7409, allocations: 1.373 MB / 1.04 GB, free: 11.18 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00141/0.7423, allocations: 1.499 MB / 1.041 GB, free: 9.676 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007159/0.7495, allocations: 3.564 MB / 1.045 GB, free: 6.02 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.7495, allocations: 0 / 1.045 GB, free: 6.02 MB / 0.795 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004546/0.7541, allocations: 4.006 MB / 1.049 GB, free: 1.977 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.084e-05/0.7541, allocations: 8 kB / 1.049 GB, free: 1.969 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.937e-05/0.7541, allocations: 3.984 kB / 1.049 GB, free: 1.965 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.7541, allocations: 4 kB / 1.049 GB, free: 1.961 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001349/0.7543, allocations: 12 kB / 1.049 GB, free: 1.949 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.938e-06/0.7543, allocations: 4.031 kB / 1.049 GB, free: 1.945 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005297/0.7548, allocations: 232.2 kB / 1.049 GB, free: 1.715 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.053e-05/0.7549, allocations: 27.98 kB / 1.049 GB, free: 1.688 MB / 0.795 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.0002977/0.7552, allocations: 237.7 kB / 1.049 GB, free: 1.445 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.387e-05/0.7553, allocations: 66.72 kB / 1.049 GB, free: 1.379 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003022/0.7556, allocations: 86.91 kB / 1.049 GB, free: 1.285 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.7556, allocations: 0 / 1.049 GB, free: 1.285 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.7556, allocations: 0 / 1.049 GB, free: 1.285 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.7556, allocations: 4 kB / 1.049 GB, free: 1.281 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00041/0.756, allocations: 492.9 kB / 1.05 GB, free: 0.7539 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.756, allocations: 3.938 kB / 1.05 GB, free: 0.75 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.587e-05/0.7561, allocations: 11.98 kB / 1.05 GB, free: 0.7383 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.055e-06/0.7561, allocations: 0 / 1.05 GB, free: 0.7383 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.365e-05/0.7562, allocations: 0 / 1.05 GB, free: 0.7383 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.426e-06/0.7562, allocations: 7.938 kB / 1.05 GB, free: 0.7305 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.7562, allocations: 4.031 kB / 1.05 GB, free: 0.7266 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008796/0.7571, allocations: 0.9975 MB / 1.051 GB, free: 15.71 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001257/0.7572, allocations: 159.8 kB / 1.051 GB, free: 15.53 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.797e-05/0.7573, allocations: 0 / 1.051 GB, free: 15.53 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001437/0.7574, allocations: 11.92 kB / 1.051 GB, free: 15.52 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.76e-05/0.7575, allocations: 8 kB / 1.051 GB, free: 15.51 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.394e-05/0.7575, allocations: 15.97 kB / 1.051 GB, free: 15.5 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0008866/0.7584, allocations: 0.6689 MB / 1.052 GB, free: 14.82 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7584, allocations: 0 / 1.052 GB, free: 14.82 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.001634/0.76, allocations: 0.574 MB / 1.052 GB, free: 14.25 MB / 0.8106 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.003395/0.7634, allocations: 2.151 MB / 1.054 GB, free: 12.09 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.002345/0.7658, allocations: 2.554 MB / 1.057 GB, free: 9.52 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.7658, allocations: 0 / 1.057 GB, free: 9.52 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003261/0.7662, allocations: 343.9 kB / 1.057 GB, free: 9.184 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003048/0.7665, allocations: 37.77 kB / 1.057 GB, free: 9.148 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0153/0.7818, allocations: 15.14 MB / 1.072 GB, free: 9.832 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005066/0.7823, allocations: 0.9756 MB / 1.073 GB, free: 8.828 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001715/0.7825, allocations: 36.67 kB / 1.073 GB, free: 8.793 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002827/0.7828, allocations: 263.3 kB / 1.073 GB, free: 8.535 MB / 0.8262 GB Notification: Performance of SimCode: time 4.21e-07/0.7828, allocations: 0 / 1.073 GB, free: 8.535 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0527/0.8355, allocations: 23.64 MB / 1.096 GB, free: 1.078 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.766/9.601, allocations: 11.06 kB / 1.096 GB, free: 1.066 MB / 0.8419 GB (rm -f Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.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 Buildings_10_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.fmu > Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1)