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_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 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_1borehole_5meters,fileNamePrefix="Buildings_11_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_11_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.004473/0.004474, allocations: 100.8 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.001236/0.001236, allocations: 193.7 kB / 16.67 MB, free: 5.969 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.355/1.355, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.616/2.616, allocations: 469.8 MB / 0.7425 GB, free: 3.355 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00184/0.00184, allocations: 67.89 kB / 1.065 GB, free: 14.01 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7597/0.7615, allocations: 159.1 MB / 1.22 GB, free: 2.047 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.00266/0.7642, allocations: 1.427 MB / 1.222 GB, free: 0.6133 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.006817/0.7711, allocations: 4.203 MB / 1.226 GB, free: 12.39 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.656e-05/0.7712, allocations: 4 kB / 1.226 GB, free: 12.39 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001336/0.7713, allocations: 11.86 kB / 1.226 GB, free: 12.38 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0002273/0.7716, allocations: 27.84 kB / 1.226 GB, free: 12.35 MB / 0.9512 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.003816/0.7754, allocations: 1.503 MB / 1.227 GB, free: 10.85 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001598/0.7756, allocations: 95.67 kB / 1.227 GB, free: 10.75 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 4.971e-05/0.7756, allocations: 11.97 kB / 1.227 GB, free: 10.74 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 8.079e-05/0.7757, allocations: 55.77 kB / 1.227 GB, free: 10.69 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000266/0.776, allocations: 139.6 kB / 1.228 GB, free: 10.55 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 4.48e-05/0.7761, allocations: 16 kB / 1.228 GB, free: 10.54 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003559/0.7796, allocations: 2.2 MB / 1.23 GB, free: 8.332 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0002579/0.7799, allocations: 271.8 kB / 1.23 GB, free: 8.062 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0002937/0.7802, allocations: 282.3 kB / 1.23 GB, free: 7.785 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.003134/0.7833, allocations: 2.13 MB / 1.232 GB, free: 5.656 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.7834, allocations: 3.984 kB / 1.232 GB, free: 5.652 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.282e-06/0.7834, allocations: 0 / 1.232 GB, free: 5.652 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 8.206e-06/0.7834, allocations: 0 / 1.232 GB, free: 5.652 MB / 0.9512 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.01088/0.7943, allocations: 1.34 MB / 1.234 GB, free: 4.258 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.259e-05/0.7943, allocations: 8.031 kB / 1.234 GB, free: 4.25 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.482e-05/0.7944, allocations: 34.75 kB / 1.234 GB, free: 4.207 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003899/0.7948, allocations: 96.25 kB / 1.234 GB, free: 4.113 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005222/0.7953, allocations: 357.1 kB / 1.234 GB, free: 3.715 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.453e-05/0.7953, allocations: 8.375 kB / 1.234 GB, free: 3.707 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.063e-05/0.7954, allocations: 8.359 kB / 1.234 GB, free: 3.699 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005426/0.7959, allocations: 399.2 kB / 1.234 GB, free: 3.297 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.654e-06/0.7959, allocations: 0 / 1.234 GB, free: 3.297 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.541e-05/0.796, allocations: 7.984 kB / 1.234 GB, free: 3.289 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.796, allocations: 4 kB / 1.234 GB, free: 3.285 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005331/0.7965, allocations: 427.8 kB / 1.235 GB, free: 2.867 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006764/0.7972, allocations: 0.6371 MB / 1.236 GB, free: 2.18 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005894/0.7978, allocations: 0.5711 MB / 1.236 GB, free: 1.59 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003592/0.7982, allocations: 341.7 kB / 1.236 GB, free: 1.25 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001168/0.7993, allocations: 1.025 MB / 1.237 GB, free: 4 kB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000472/0.7998, allocations: 408.8 kB / 1.238 GB, free: 15.59 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=8): time 1.393e-06/0.7998, allocations: 0 / 1.238 GB, free: 15.59 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8): time 0.001468/0.8013, allocations: 1.297 MB / 1.239 GB, free: 14.28 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.827e-05/0.8014, allocations: 85.14 kB / 1.239 GB, free: 14.18 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001285/0.8027, allocations: 1.223 MB / 1.24 GB, free: 12.94 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 4.557e-05/0.8027, allocations: 25.7 kB / 1.24 GB, free: 12.91 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002121/0.8029, allocations: 265.9 kB / 1.241 GB, free: 12.64 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.734e-05/0.803, allocations: 23.8 kB / 1.241 GB, free: 12.62 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003601/0.8033, allocations: 359.6 kB / 1.241 GB, free: 12.27 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.000146/0.8035, allocations: 314 kB / 1.241 GB, free: 11.95 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001397/0.8049, allocations: 1.373 MB / 1.243 GB, free: 10.58 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001509/0.8064, allocations: 1.501 MB / 1.244 GB, free: 9.066 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007406/0.8138, allocations: 3.564 MB / 1.248 GB, free: 5.41 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.8139, allocations: 0 / 1.248 GB, free: 5.41 MB / 0.9669 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004803/0.8187, allocations: 4.007 MB / 1.251 GB, free: 1.367 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.169e-05/0.8187, allocations: 7.984 kB / 1.251 GB, free: 1.359 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.927e-05/0.8187, allocations: 4 kB / 1.251 GB, free: 1.355 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.7e-05/0.8188, allocations: 0 / 1.251 GB, free: 1.355 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001272/0.8189, allocations: 12 kB / 1.252 GB, free: 1.344 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.168e-05/0.8189, allocations: 7.984 kB / 1.252 GB, free: 1.336 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005093/0.8194, allocations: 233.4 kB / 1.252 GB, free: 1.105 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.509e-05/0.8195, allocations: 35.95 kB / 1.252 GB, free: 1.07 MB / 0.9669 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.0003456/0.8199, allocations: 240 kB / 1.252 GB, free: 0.8281 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.371e-05/0.8199, allocations: 79.23 kB / 1.252 GB, free: 0.75 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002722/0.8202, allocations: 71.06 kB / 1.252 GB, free: 0.6719 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.8202, allocations: 4 kB / 1.252 GB, free: 0.668 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.8202, allocations: 4.031 kB / 1.252 GB, free: 0.6641 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.8203, allocations: 0 / 1.252 GB, free: 0.6641 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004871/0.8207, allocations: 0.493 MB / 1.253 GB, free: 128 kB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.8208, allocations: 3.938 kB / 1.253 GB, free: 124 kB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.763e-05/0.8208, allocations: 7.984 kB / 1.253 GB, free: 116 kB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.8208, allocations: 0 / 1.253 GB, free: 116 kB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.411e-05/0.8209, allocations: 4 kB / 1.253 GB, free: 112 kB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.8209, allocations: 0 / 1.253 GB, free: 112 kB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.586e-06/0.8209, allocations: 3.938 kB / 1.253 GB, free: 108 kB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001061/0.8219, allocations: 1.01 MB / 1.254 GB, free: 15.07 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001319/0.8221, allocations: 160.3 kB / 1.254 GB, free: 14.9 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.626e-05/0.8221, allocations: 4 kB / 1.254 GB, free: 14.89 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001289/0.8223, allocations: 3.984 kB / 1.254 GB, free: 14.89 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.182e-05/0.8223, allocations: 4 kB / 1.254 GB, free: 14.89 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.6e-05/0.8224, allocations: 23.97 kB / 1.254 GB, free: 14.86 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0007819/0.8232, allocations: 0.6689 MB / 1.254 GB, free: 14.19 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.31e-07/0.8232, allocations: 0 / 1.254 GB, free: 14.19 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.001473/0.8246, allocations: 0.5884 MB / 1.255 GB, free: 13.6 MB / 0.9825 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.003117/0.8278, allocations: 2.144 MB / 1.257 GB, free: 11.44 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.002606/0.8304, allocations: 2.56 MB / 1.26 GB, free: 8.863 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.8304, allocations: 0 / 1.26 GB, free: 8.863 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0004614/0.8309, allocations: 343.8 kB / 1.26 GB, free: 8.527 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002936/0.8312, allocations: 36.58 kB / 1.26 GB, free: 8.488 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01603/0.8472, allocations: 15.27 MB / 1.275 GB, free: 9.043 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006325/0.8479, allocations: 0.9724 MB / 1.276 GB, free: 8.043 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001327/0.848, allocations: 36.55 kB / 1.276 GB, free: 8.008 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003343/0.8484, allocations: 263.3 kB / 1.276 GB, free: 7.75 MB / 0.9981 GB Notification: Performance of SimCode: time 1.373e-06/0.8484, allocations: 7.938 kB / 1.276 GB, free: 7.742 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05374/0.9021, allocations: 23.81 MB / 1.299 GB, free: 144 kB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.36/11.26, allocations: 2.625 kB / 1.299 GB, free: 144 kB / 1.014 GB (rm -f Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters_res.csv --start-time 0 --stop-time 4.12e+08 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 164800 Buildings_11_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.fmu > Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1)