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_SmallScaleValidation.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_SmallScaleValidation,fileNamePrefix="Buildings_10_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,fileNamePrefix="Buildings_10_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation",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.0052/0.0052, allocations: 99.2 kB / 15.73 MB, free: 6.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001277/0.001277, allocations: 194.5 kB / 16.67 MB, free: 6.348 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.701/1.701, allocations: 222.9 MB / 240.4 MB, free: 4.355 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.784/2.784, allocations: 437.1 MB / 0.7105 GB, free: 5.055 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001968/0.001968, allocations: 71.91 kB / 1.018 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.344/0.346, allocations: 151.6 MB / 1.166 GB, free: 7.277 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003782/0.3498, allocations: 1.763 MB / 1.168 GB, free: 5.5 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.009169/0.359, allocations: 5.383 MB / 1.173 GB, free: 92 kB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001515/0.3592, allocations: 3.938 kB / 1.173 GB, free: 88 kB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.001298/0.3605, allocations: 382.4 kB / 1.174 GB, free: 15.71 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001231/0.3607, allocations: 55.67 kB / 1.174 GB, free: 15.65 MB / 0.9356 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.004395/0.3651, allocations: 1.5 MB / 1.175 GB, free: 14.15 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002731/0.3654, allocations: 159.3 kB / 1.175 GB, free: 14 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 5.293e-05/0.3654, allocations: 5.562 kB / 1.175 GB, free: 13.99 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 8.667e-05/0.3655, allocations: 63.72 kB / 1.175 GB, free: 13.93 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002367/0.3658, allocations: 163.5 kB / 1.175 GB, free: 13.77 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 4.269e-05/0.3658, allocations: 16 kB / 1.175 GB, free: 13.75 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003526/0.3693, allocations: 2.215 MB / 1.178 GB, free: 11.53 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0002511/0.3696, allocations: 279.7 kB / 1.178 GB, free: 11.26 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.000277/0.3699, allocations: 302.1 kB / 1.178 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.003231/0.3731, allocations: 2.192 MB / 1.18 GB, free: 8.762 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3732, allocations: 0 / 1.18 GB, free: 8.762 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.284e-06/0.3732, allocations: 0 / 1.18 GB, free: 8.762 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.349e-05/0.3732, allocations: 0 / 1.18 GB, free: 8.762 MB / 0.9356 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.01017/0.3834, allocations: 1.424 MB / 1.182 GB, free: 7.285 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.684e-05/0.3834, allocations: 11.98 kB / 1.182 GB, free: 7.273 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.033e-05/0.3835, allocations: 34.75 kB / 1.182 GB, free: 7.23 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005764/0.384, allocations: 100.2 kB / 1.182 GB, free: 7.133 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005983/0.3847, allocations: 410.4 kB / 1.182 GB, free: 6.684 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.519e-05/0.3847, allocations: 12.31 kB / 1.182 GB, free: 6.672 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.292e-05/0.3847, allocations: 8.375 kB / 1.182 GB, free: 6.664 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004804/0.3852, allocations: 387.3 kB / 1.183 GB, free: 6.273 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.3852, allocations: 0 / 1.183 GB, free: 6.273 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.37e-05/0.3853, allocations: 3.984 kB / 1.183 GB, free: 6.27 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.638e-06/0.3853, allocations: 0 / 1.183 GB, free: 6.27 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004538/0.3857, allocations: 443.6 kB / 1.183 GB, free: 5.836 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006902/0.3864, allocations: 0.6737 MB / 1.184 GB, free: 5.113 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005958/0.387, allocations: 0.5555 MB / 1.184 GB, free: 4.539 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004349/0.3875, allocations: 333.7 kB / 1.185 GB, free: 4.207 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001089/0.3886, allocations: 1.04 MB / 1.186 GB, free: 2.945 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000425/0.389, allocations: 400.8 kB / 1.186 GB, free: 2.535 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=8): time 1.483e-06/0.389, allocations: 4 kB / 1.186 GB, free: 2.531 MB / 0.9356 GB Notification: Performance of matching and sorting (n=8): time 0.00165/0.3907, allocations: 1.305 MB / 1.187 GB, free: 1.219 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.554e-05/0.3907, allocations: 85.09 kB / 1.187 GB, free: 1.117 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001341/0.3921, allocations: 1.294 MB / 1.189 GB, free: 15.81 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.742e-05/0.3921, allocations: 25.7 kB / 1.189 GB, free: 15.78 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.000261/0.3924, allocations: 298 kB / 1.189 GB, free: 15.48 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 4.348e-05/0.3925, allocations: 23.83 kB / 1.189 GB, free: 15.46 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003539/0.3928, allocations: 351.6 kB / 1.189 GB, free: 15.11 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001618/0.393, allocations: 318 kB / 1.19 GB, free: 14.8 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001455/0.3944, allocations: 1.373 MB / 1.191 GB, free: 13.42 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001488/0.3959, allocations: 1.505 MB / 1.192 GB, free: 11.91 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007467/0.4034, allocations: 3.564 MB / 1.196 GB, free: 8.25 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.049e-05/0.4035, allocations: 0 / 1.196 GB, free: 8.25 MB / 0.9512 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.005103/0.4086, allocations: 4.015 MB / 1.2 GB, free: 4.199 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 3.288e-05/0.4087, allocations: 8 kB / 1.2 GB, free: 4.191 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.207e-05/0.4087, allocations: 4 kB / 1.2 GB, free: 4.188 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.247e-05/0.4087, allocations: 8.031 kB / 1.2 GB, free: 4.18 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001401/0.4089, allocations: 15.98 kB / 1.2 GB, free: 4.164 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.108e-05/0.4089, allocations: 4.062 kB / 1.2 GB, free: 4.16 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005873/0.4095, allocations: 241.4 kB / 1.2 GB, free: 3.922 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.644e-05/0.4096, allocations: 19.98 kB / 1.2 GB, free: 3.902 MB / 0.9512 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.0003611/0.4099, allocations: 257.6 kB / 1.2 GB, free: 3.641 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.753e-05/0.41, allocations: 79.23 kB / 1.2 GB, free: 3.562 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005037/0.4105, allocations: 83.75 kB / 1.2 GB, free: 3.469 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.005e-06/0.4106, allocations: 4 kB / 1.201 GB, free: 3.465 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.421e-06/0.4106, allocations: 0 / 1.201 GB, free: 3.465 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.4106, allocations: 0 / 1.201 GB, free: 3.465 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005387/0.4111, allocations: 0.5218 MB / 1.201 GB, free: 2.898 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.4112, allocations: 3.938 kB / 1.201 GB, free: 2.895 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.857e-05/0.4112, allocations: 7.938 kB / 1.201 GB, free: 2.887 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.364e-06/0.4113, allocations: 12.02 kB / 1.201 GB, free: 2.875 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.244e-05/0.4113, allocations: 0 / 1.201 GB, free: 2.875 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.4113, allocations: 0 / 1.201 GB, free: 2.875 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.4113, allocations: 4 kB / 1.201 GB, free: 2.871 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009961/0.4123, allocations: 1.002 MB / 1.202 GB, free: 1.848 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001348/0.4124, allocations: 180.2 kB / 1.202 GB, free: 1.652 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.198e-05/0.4125, allocations: 0 / 1.202 GB, free: 1.652 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001408/0.4126, allocations: 7.984 kB / 1.202 GB, free: 1.645 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.625e-05/0.4127, allocations: 7.984 kB / 1.202 GB, free: 1.637 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.677e-05/0.4128, allocations: 15.97 kB / 1.202 GB, free: 1.621 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0008356/0.4136, allocations: 0.7222 MB / 1.203 GB, free: 0.8945 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.31e-07/0.4136, allocations: 4 kB / 1.203 GB, free: 0.8906 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.001816/0.4154, allocations: 0.5923 MB / 1.204 GB, free: 304 kB / 0.9512 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.003512/0.4189, allocations: 2.149 MB / 1.206 GB, free: 14.13 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.002725/0.4217, allocations: 2.555 MB / 1.208 GB, free: 11.57 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/0.4217, allocations: 0 / 1.208 GB, free: 11.57 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0003718/0.4221, allocations: 343.7 kB / 1.208 GB, free: 11.23 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004343/0.4225, allocations: 57.45 kB / 1.208 GB, free: 11.17 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01681/0.4393, allocations: 15.29 MB / 1.223 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006451/0.44, allocations: 0.9918 MB / 1.224 GB, free: 10.69 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001642/0.4402, allocations: 41.36 kB / 1.224 GB, free: 10.65 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00042/0.4406, allocations: 291.3 kB / 1.225 GB, free: 10.36 MB / 0.9825 GB Notification: Performance of SimCode: time 2.434e-06/0.4407, allocations: 0 / 1.225 GB, free: 10.36 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06035/0.5011, allocations: 24.06 MB / 1.248 GB, free: 2.531 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.68/11.19, allocations: 14.3 kB / 1.248 GB, free: 2.516 MB / 0.9981 GB (rm -f Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation_res.csv --start-time 0 --stop-time 1.8e+12 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 7.2e+08 Buildings_10_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.fmu > Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)