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.005258/0.005258, allocations: 99.34 kB / 15.73 MB, free: 6.059 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.001344/0.001344, allocations: 195.2 kB / 16.67 MB, free: 5.977 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.478/1.478, allocations: 222.9 MB / 240.4 MB, free: 4.297 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.789/2.789, allocations: 437 MB / 0.7105 GB, free: 4.922 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001878/0.001878, allocations: 63.91 kB / 1.018 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3363/0.3382, allocations: 151.6 MB / 1.166 GB, free: 7.207 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002599/0.3409, allocations: 1.431 MB / 1.168 GB, free: 5.762 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.006625/0.3475, allocations: 4.203 MB / 1.172 GB, free: 1.535 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.512e-05/0.3476, allocations: 7.938 kB / 1.172 GB, free: 1.527 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001379/0.3478, allocations: 19.86 kB / 1.172 GB, free: 1.508 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0002312/0.348, allocations: 23.83 kB / 1.172 GB, free: 1.484 MB / 0.92 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.00403/0.3521, allocations: 1.496 MB / 1.173 GB, free: 15.98 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001492/0.3522, allocations: 99.66 kB / 1.173 GB, free: 15.89 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 4.458e-05/0.3523, allocations: 4 kB / 1.173 GB, free: 15.88 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 7.088e-05/0.3524, allocations: 43.84 kB / 1.173 GB, free: 15.84 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002478/0.3526, allocations: 155.6 kB / 1.174 GB, free: 15.69 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 4.168e-05/0.3527, allocations: 12 kB / 1.174 GB, free: 15.68 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003569/0.3562, allocations: 2.2 MB / 1.176 GB, free: 13.47 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0002448/0.3565, allocations: 271.8 kB / 1.176 GB, free: 13.21 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0004461/0.357, allocations: 274.3 kB / 1.176 GB, free: 12.94 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.003306/0.3603, allocations: 2.122 MB / 1.178 GB, free: 10.81 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 1.378e-05/0.3603, allocations: 0 / 1.178 GB, free: 10.81 MB / 0.9356 GB Notification: Performance of FrontEnd: time 4.789e-06/0.3603, allocations: 0 / 1.178 GB, free: 10.81 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 4.312e-05/0.3604, allocations: 4 kB / 1.178 GB, free: 10.8 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.0101/0.3705, allocations: 1.347 MB / 1.18 GB, free: 9.402 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 5.224e-05/0.3706, allocations: 15.98 kB / 1.18 GB, free: 9.387 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.303e-05/0.3706, allocations: 30.75 kB / 1.18 GB, free: 9.348 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003868/0.371, allocations: 96.23 kB / 1.18 GB, free: 9.254 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004331/0.3714, allocations: 365 kB / 1.18 GB, free: 8.848 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.298e-05/0.3715, allocations: 12.31 kB / 1.18 GB, free: 8.836 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.9e-05/0.3715, allocations: 4.375 kB / 1.18 GB, free: 8.832 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004919/0.372, allocations: 395.3 kB / 1.18 GB, free: 8.434 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.372, allocations: 0 / 1.18 GB, free: 8.434 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.167e-05/0.3721, allocations: 7.938 kB / 1.18 GB, free: 8.426 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.3721, allocations: 0 / 1.18 GB, free: 8.426 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004605/0.3725, allocations: 435.8 kB / 1.181 GB, free: 8 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006399/0.3732, allocations: 0.6449 MB / 1.182 GB, free: 7.305 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006399/0.3738, allocations: 0.5672 MB / 1.182 GB, free: 6.719 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003428/0.3742, allocations: 337.7 kB / 1.182 GB, free: 6.383 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001154/0.3753, allocations: 1.025 MB / 1.183 GB, free: 5.137 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00044/0.3758, allocations: 412.8 kB / 1.184 GB, free: 4.715 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=8): time 1.293e-06/0.3758, allocations: 0 / 1.184 GB, free: 4.715 MB / 0.9356 GB Notification: Performance of matching and sorting (n=8): time 0.001587/0.3774, allocations: 1.293 MB / 1.185 GB, free: 3.414 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.699e-05/0.3775, allocations: 85.17 kB / 1.185 GB, free: 3.312 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001226/0.3787, allocations: 1.219 MB / 1.186 GB, free: 2.078 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.82e-05/0.3788, allocations: 33.7 kB / 1.186 GB, free: 2.039 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002037/0.379, allocations: 265.9 kB / 1.187 GB, free: 1.773 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.577e-05/0.379, allocations: 23.8 kB / 1.187 GB, free: 1.75 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003421/0.3794, allocations: 347.6 kB / 1.187 GB, free: 1.406 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001408/0.3795, allocations: 318 kB / 1.187 GB, free: 1.09 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001431/0.3809, allocations: 1.369 MB / 1.189 GB, free: 15.72 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001438/0.3824, allocations: 1.509 MB / 1.19 GB, free: 14.2 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007301/0.3897, allocations: 3.549 MB / 1.194 GB, free: 10.56 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.324e-06/0.3897, allocations: 4 kB / 1.194 GB, free: 10.55 MB / 0.9512 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004676/0.3944, allocations: 4.007 MB / 1.197 GB, free: 6.512 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.139e-05/0.3945, allocations: 8 kB / 1.197 GB, free: 6.504 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.653e-05/0.3945, allocations: 0 / 1.197 GB, free: 6.504 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.449e-05/0.3945, allocations: 4 kB / 1.197 GB, free: 6.5 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001461/0.3947, allocations: 27.86 kB / 1.198 GB, free: 6.473 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.764e-06/0.3947, allocations: 0 / 1.198 GB, free: 6.473 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004905/0.3952, allocations: 245.3 kB / 1.198 GB, free: 6.23 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.959e-05/0.3952, allocations: 19.98 kB / 1.198 GB, free: 6.211 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.000316/0.3956, allocations: 245.2 kB / 1.198 GB, free: 5.965 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.173e-05/0.3956, allocations: 83.22 kB / 1.198 GB, free: 5.883 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004788/0.3961, allocations: 75.02 kB / 1.198 GB, free: 5.797 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.407e-06/0.3961, allocations: 0 / 1.198 GB, free: 5.797 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.197e-06/0.3962, allocations: 4 kB / 1.198 GB, free: 5.793 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.3962, allocations: 0 / 1.198 GB, free: 5.793 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004623/0.3966, allocations: 496.9 kB / 1.199 GB, free: 5.262 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.3966, allocations: 3.938 kB / 1.199 GB, free: 5.258 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.596e-05/0.3967, allocations: 11.98 kB / 1.199 GB, free: 5.246 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.3967, allocations: 0 / 1.199 GB, free: 5.246 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.087e-05/0.3967, allocations: 0 / 1.199 GB, free: 5.246 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.377e-06/0.3967, allocations: 7.984 kB / 1.199 GB, free: 5.238 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.3968, allocations: 0 / 1.199 GB, free: 5.238 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009739/0.3977, allocations: 1.002 MB / 1.2 GB, free: 4.215 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001195/0.3979, allocations: 160.4 kB / 1.2 GB, free: 4.039 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.628e-05/0.3979, allocations: 7.984 kB / 1.2 GB, free: 4.031 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001274/0.3981, allocations: 8 kB / 1.2 GB, free: 4.023 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.08e-05/0.3981, allocations: 7.984 kB / 1.2 GB, free: 4.016 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.391e-05/0.3981, allocations: 11.98 kB / 1.2 GB, free: 4.004 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0007379/0.3989, allocations: 0.6728 MB / 1.2 GB, free: 3.324 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2.11e-07/0.3989, allocations: 0 / 1.2 GB, free: 3.324 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.001629/0.4005, allocations: 0.5884 MB / 1.201 GB, free: 2.734 MB / 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.003276/0.4038, allocations: 2.159 MB / 1.203 GB, free: 0.5664 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.00266/0.4065, allocations: 2.552 MB / 1.206 GB, free: 14 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.4065, allocations: 0 / 1.206 GB, free: 14 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0003415/0.4069, allocations: 339.8 kB / 1.206 GB, free: 13.67 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003065/0.4072, allocations: 44.72 kB / 1.206 GB, free: 13.62 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0164/0.4236, allocations: 15.27 MB / 1.221 GB, free: 14.18 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000615/0.4242, allocations: 0.964 MB / 1.222 GB, free: 13.19 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001385/0.4244, allocations: 44.67 kB / 1.222 GB, free: 13.14 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000317/0.4247, allocations: 263.3 kB / 1.222 GB, free: 12.89 MB / 0.9825 GB Notification: Performance of SimCode: time 9.22e-07/0.4247, allocations: 0 / 1.222 GB, free: 12.89 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05649/0.4812, allocations: 23.8 MB / 1.245 GB, free: 5.289 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.59/11.08, allocations: 19.45 kB / 1.245 GB, free: 5.27 MB / 0.9981 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)