Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.008569/0.008569, allocations: 99.8 kB / 15.73 MB, free: 6.004 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.002105/0.002105, allocations: 192.8 kB / 16.67 MB, free: 5.934 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.465/1.465, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.892/2.892, allocations: 469.8 MB / 0.7425 GB, free: 7.301 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001863/0.001863, allocations: 67.89 kB / 1.065 GB, free: 13.49 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3507/0.3525, allocations: 159.1 MB / 1.22 GB, free: 14.23 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003566/0.3561, allocations: 1.747 MB / 1.222 GB, free: 12.46 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.008415/0.3646, allocations: 5.398 MB / 1.227 GB, free: 7.043 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000154/0.3648, allocations: 4 kB / 1.227 GB, free: 7.039 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.001312/0.3662, allocations: 362.5 kB / 1.228 GB, free: 6.684 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001285/0.3663, allocations: 55.67 kB / 1.228 GB, free: 6.629 MB / 0.9825 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 11.1.0-maint.11.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.004017/0.3703, allocations: 1.508 MB / 1.229 GB, free: 5.121 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002816/0.3706, allocations: 163.3 kB / 1.229 GB, free: 4.961 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 5.247e-05/0.3707, allocations: 9.562 kB / 1.229 GB, free: 4.953 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 8.955e-05/0.3708, allocations: 55.78 kB / 1.229 GB, free: 4.898 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002504/0.3711, allocations: 167.4 kB / 1.229 GB, free: 4.734 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.377e-05/0.3711, allocations: 16 kB / 1.229 GB, free: 4.719 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003624/0.3747, allocations: 2.211 MB / 1.232 GB, free: 2.504 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0002498/0.375, allocations: 279.8 kB / 1.232 GB, free: 2.227 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0002944/0.3753, allocations: 302.2 kB / 1.232 GB, free: 1.93 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.003116/0.3784, allocations: 2.189 MB / 1.234 GB, free: 15.73 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.3784, allocations: 0 / 1.234 GB, free: 15.73 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.583e-06/0.3785, allocations: 4 kB / 1.234 GB, free: 15.73 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 8.416e-06/0.3785, allocations: 0 / 1.234 GB, free: 15.73 MB / 0.9981 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.01089/0.3894, allocations: 1.418 MB / 1.236 GB, free: 14.25 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.87e-05/0.3894, allocations: 12.03 kB / 1.236 GB, free: 14.24 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.9e-05/0.3895, allocations: 30.75 kB / 1.236 GB, free: 14.2 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003848/0.3899, allocations: 100.2 kB / 1.236 GB, free: 14.11 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006094/0.3905, allocations: 422.2 kB / 1.236 GB, free: 13.64 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.027e-06/0.3905, allocations: 8.375 kB / 1.236 GB, free: 13.64 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.645e-05/0.3906, allocations: 4.375 kB / 1.236 GB, free: 13.63 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000461/0.391, allocations: 395.3 kB / 1.237 GB, free: 13.23 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.391, allocations: 0 / 1.237 GB, free: 13.23 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.35e-05/0.3911, allocations: 4 kB / 1.237 GB, free: 13.23 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.3911, allocations: 0 / 1.237 GB, free: 13.23 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004698/0.3915, allocations: 435.7 kB / 1.237 GB, free: 12.8 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006927/0.3922, allocations: 0.6698 MB / 1.238 GB, free: 12.09 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005773/0.3928, allocations: 0.5633 MB / 1.238 GB, free: 11.5 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003673/0.3932, allocations: 337.7 kB / 1.239 GB, free: 11.17 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001173/0.3944, allocations: 1.025 MB / 1.24 GB, free: 9.922 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004303/0.3948, allocations: 400.8 kB / 1.24 GB, free: 9.512 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=8): time 3.116e-06/0.3949, allocations: 4 kB / 1.24 GB, free: 9.508 MB / 0.9981 GB Notification: Performance of matching and sorting (n=8): time 0.001422/0.3963, allocations: 1.309 MB / 1.241 GB, free: 8.191 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.919e-05/0.3964, allocations: 89.03 kB / 1.241 GB, free: 8.086 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001478/0.3978, allocations: 1.29 MB / 1.243 GB, free: 6.785 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 5.873e-05/0.3979, allocations: 33.7 kB / 1.243 GB, free: 6.746 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000269/0.3982, allocations: 298 kB / 1.243 GB, free: 6.449 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 3.209e-05/0.3982, allocations: 15.91 kB / 1.243 GB, free: 6.434 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004097/0.3986, allocations: 351.6 kB / 1.243 GB, free: 6.086 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001468/0.3988, allocations: 318 kB / 1.244 GB, free: 5.77 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001327/0.4001, allocations: 1.369 MB / 1.245 GB, free: 4.398 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001499/0.4016, allocations: 1.505 MB / 1.246 GB, free: 2.883 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.6965/1.098, allocations: 3.56 MB / 1.25 GB, free: 28.43 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-05/1.098, allocations: 0.7812 kB / 1.25 GB, free: 28.43 MB / 0.9981 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004587/1.103, allocations: 4.021 MB / 1.254 GB, free: 27.39 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.392e-05/1.103, allocations: 5.25 kB / 1.254 GB, free: 27.39 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.105e-05/1.103, allocations: 3.656 kB / 1.254 GB, free: 27.39 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.083e-05/1.103, allocations: 2.469 kB / 1.254 GB, free: 27.39 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001341/1.103, allocations: 15.3 kB / 1.254 GB, free: 27.39 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.425e-06/1.103, allocations: 1.844 kB / 1.254 GB, free: 27.39 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004532/1.104, allocations: 243.7 kB / 1.254 GB, free: 27.29 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.516e-05/1.104, allocations: 24.27 kB / 1.254 GB, free: 27.29 MB / 0.9981 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.000381/1.104, allocations: 247.3 kB / 1.254 GB, free: 27.17 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.127e-05/1.104, allocations: 82.52 kB / 1.254 GB, free: 27.11 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002701/1.104, allocations: 77.94 kB / 1.254 GB, free: 27.06 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.538e-06/1.104, allocations: 1.094 kB / 1.254 GB, free: 27.06 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/1.104, allocations: 2.922 kB / 1.254 GB, free: 27.06 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.107e-06/1.104, allocations: 0.75 kB / 1.254 GB, free: 27.06 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005207/1.105, allocations: 0.5216 MB / 1.255 GB, free: 26.87 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/1.105, allocations: 6.688 kB / 1.255 GB, free: 26.87 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.022e-05/1.105, allocations: 14.36 kB / 1.255 GB, free: 26.87 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/1.105, allocations: 1.969 kB / 1.255 GB, free: 26.87 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.423e-05/1.105, allocations: 4.344 kB / 1.255 GB, free: 26.87 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/1.105, allocations: 4.625 kB / 1.255 GB, free: 26.87 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/1.105, allocations: 1.219 kB / 1.255 GB, free: 26.87 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008846/1.106, allocations: 1.01 MB / 1.256 GB, free: 26.73 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 8.444e-05/1.106, allocations: 166.6 kB / 1.256 GB, free: 26.58 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.347e-05/1.106, allocations: 7.797 kB / 1.256 GB, free: 26.58 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001544/1.106, allocations: 4.266 kB / 1.256 GB, free: 26.58 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.275e-05/1.106, allocations: 9.219 kB / 1.256 GB, free: 26.58 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.755e-05/1.106, allocations: 15.53 kB / 1.256 GB, free: 26.58 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0006823/1.107, allocations: 0.7279 MB / 1.257 GB, free: 26.46 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.21e-07/1.107, allocations: 3.844 kB / 1.257 GB, free: 26.46 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001308/1.108, allocations: 0.5904 MB / 1.257 GB, free: 26.43 MB / 0.9981 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.002429/1.111, allocations: 2.152 MB / 1.26 GB, free: 25.68 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.002469/1.113, allocations: 2.547 MB / 1.262 GB, free: 25.62 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/1.113, allocations: 0 / 1.262 GB, free: 25.62 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003781/1.114, allocations: 342.3 kB / 1.262 GB, free: 25.62 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004062/1.114, allocations: 59.5 kB / 1.262 GB, free: 25.61 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01644/1.131, allocations: 15.3 MB / 1.277 GB, free: 19.62 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005826/1.131, allocations: 0.9862 MB / 1.278 GB, free: 18.92 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.00018/1.131, allocations: 40.17 kB / 1.278 GB, free: 18.91 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003035/1.132, allocations: 291.7 kB / 1.279 GB, free: 18.67 MB / 0.9981 GB Notification: Performance of SimCode: time 1.222e-06/1.132, allocations: 0 / 1.279 GB, free: 18.67 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06351/1.195, allocations: 24.07 MB / 1.302 GB, free: 14.88 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.88/12.08, allocations: 3.812 kB / 1.302 GB, free: 14.88 MB / 0.9981 GB (rm -f Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & python3 -m fmpy simulate --output-file Buildings_11_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_11_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.fmu > Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)