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.005791/0.005791, allocations: 99.75 kB / 15.73 MB, free: 6.039 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.001442/0.001442, allocations: 192.1 kB / 16.67 MB, free: 5.949 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.339/1.339, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.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.46/2.46, allocations: 437 MB / 0.7105 GB, free: 4.375 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00146/0.00146, allocations: 67.89 kB / 1.018 GB, free: 9.828 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9083/0.9097, allocations: 151.6 MB / 1.166 GB, free: 3.738 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002403/0.9122, allocations: 1.431 MB / 1.168 GB, free: 2.301 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.006015/0.9182, allocations: 4.211 MB / 1.172 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.793e-05/0.9183, allocations: 0 / 1.172 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.0001142/0.9184, allocations: 7.875 kB / 1.172 GB, free: 14.06 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0002267/0.9187, allocations: 35.83 kB / 1.172 GB, free: 14.03 MB / 0.9044 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.003923/0.9226, allocations: 1.495 MB / 1.173 GB, free: 12.53 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0001508/0.9228, allocations: 103.7 kB / 1.173 GB, free: 12.43 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 4.045e-05/0.9228, allocations: 0 / 1.173 GB, free: 12.43 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 6.978e-05/0.9229, allocations: 47.83 kB / 1.173 GB, free: 12.38 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002235/0.9231, allocations: 147.6 kB / 1.174 GB, free: 12.23 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 3.413e-05/0.9232, allocations: 15.94 kB / 1.174 GB, free: 12.22 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003109/0.9263, allocations: 2.2 MB / 1.176 GB, free: 10.02 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0002022/0.9265, allocations: 271.8 kB / 1.176 GB, free: 9.75 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0002235/0.9267, allocations: 282.3 kB / 1.176 GB, free: 9.473 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.002712/0.9295, allocations: 2.126 MB / 1.178 GB, free: 7.348 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.9295, allocations: 4 kB / 1.178 GB, free: 7.344 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.864e-06/0.9295, allocations: 0 / 1.178 GB, free: 7.344 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.287e-05/0.9295, allocations: 0 / 1.178 GB, free: 7.344 MB / 0.9044 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.00994/0.9394, allocations: 1.336 MB / 1.18 GB, free: 5.953 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.933e-05/0.9395, allocations: 20.88 kB / 1.18 GB, free: 5.934 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.829e-05/0.9396, allocations: 42.67 kB / 1.18 GB, free: 5.883 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003846/0.9399, allocations: 88.25 kB / 1.18 GB, free: 5.797 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003935/0.9403, allocations: 357.1 kB / 1.18 GB, free: 5.398 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.413e-05/0.9404, allocations: 12.36 kB / 1.18 GB, free: 5.387 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.527e-05/0.9404, allocations: 8.375 kB / 1.18 GB, free: 5.379 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004142/0.9408, allocations: 403.2 kB / 1.18 GB, free: 4.973 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.9409, allocations: 0 / 1.18 GB, free: 4.973 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.297e-05/0.9409, allocations: 0 / 1.18 GB, free: 4.973 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.578e-06/0.9409, allocations: 0 / 1.18 GB, free: 4.973 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005167/0.9414, allocations: 439.7 kB / 1.181 GB, free: 4.543 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006212/0.942, allocations: 0.6332 MB / 1.182 GB, free: 3.859 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005121/0.9426, allocations: 0.571 MB / 1.182 GB, free: 3.27 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003059/0.9429, allocations: 333.7 kB / 1.182 GB, free: 2.938 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001032/0.9439, allocations: 1.028 MB / 1.183 GB, free: 1.688 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005215/0.9445, allocations: 412.8 kB / 1.184 GB, free: 1.266 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=8): time 1.292e-06/0.9445, allocations: 0 / 1.184 GB, free: 1.266 MB / 0.9044 GB Notification: Performance of matching and sorting (n=8): time 0.001222/0.9457, allocations: 1.293 MB / 1.185 GB, free: 15.96 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.758e-05/0.9458, allocations: 85.09 kB / 1.185 GB, free: 15.86 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001025/0.9468, allocations: 1.215 MB / 1.186 GB, free: 14.63 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 3.652e-05/0.9468, allocations: 33.7 kB / 1.186 GB, free: 14.59 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001673/0.947, allocations: 261.9 kB / 1.187 GB, free: 14.33 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.677e-05/0.947, allocations: 27.78 kB / 1.187 GB, free: 14.3 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000297/0.9474, allocations: 363.5 kB / 1.187 GB, free: 13.94 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 9.236e-05/0.9475, allocations: 314 kB / 1.187 GB, free: 13.63 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001246/0.9487, allocations: 1.373 MB / 1.189 GB, free: 12.25 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001232/0.9499, allocations: 1.504 MB / 1.19 GB, free: 10.74 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0068/0.9568, allocations: 3.556 MB / 1.194 GB, free: 7.094 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.9568, allocations: 4 kB / 1.194 GB, free: 7.09 MB / 0.92 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004167/0.9609, allocations: 4.007 MB / 1.197 GB, free: 3.047 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.2e-05/0.961, allocations: 8 kB / 1.197 GB, free: 3.039 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.041e-05/0.961, allocations: 320 / 1.197 GB, free: 3.039 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.285e-05/0.961, allocations: 7.938 kB / 1.198 GB, free: 3.031 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001337/0.9612, allocations: 15.98 kB / 1.198 GB, free: 3.016 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.9612, allocations: 0 / 1.198 GB, free: 3.016 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004533/0.9617, allocations: 237.4 kB / 1.198 GB, free: 2.781 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.078e-05/0.9617, allocations: 31.97 kB / 1.198 GB, free: 2.75 MB / 0.92 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.0002785/0.962, allocations: 243.4 kB / 1.198 GB, free: 2.504 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.593e-05/0.9621, allocations: 79.17 kB / 1.198 GB, free: 2.426 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002674/0.9623, allocations: 71.08 kB / 1.198 GB, free: 2.344 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.9624, allocations: 4.031 kB / 1.198 GB, free: 2.34 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.9624, allocations: 0 / 1.198 GB, free: 2.34 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/0.9624, allocations: 7.984 kB / 1.198 GB, free: 2.332 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004209/0.9628, allocations: 0.4891 MB / 1.199 GB, free: 1.797 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.9628, allocations: 3.938 kB / 1.199 GB, free: 1.793 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.846e-05/0.9629, allocations: 8 kB / 1.199 GB, free: 1.785 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.9629, allocations: 0 / 1.199 GB, free: 1.785 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.425e-05/0.9629, allocations: 3.984 kB / 1.199 GB, free: 1.781 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.47e-06/0.9629, allocations: 4 kB / 1.199 GB, free: 1.777 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.9629, allocations: 4 kB / 1.199 GB, free: 1.773 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001084/0.964, allocations: 1.002 MB / 1.2 GB, free: 0.75 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001062/0.9641, allocations: 164.4 kB / 1.2 GB, free: 0.5703 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.718e-05/0.9642, allocations: 0 / 1.2 GB, free: 0.5703 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001446/0.9644, allocations: 7.938 kB / 1.2 GB, free: 0.5625 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.597e-05/0.9644, allocations: 15.92 kB / 1.2 GB, free: 0.5469 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.395e-05/0.9645, allocations: 11.98 kB / 1.2 GB, free: 0.5352 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0006861/0.9651, allocations: 0.6728 MB / 1.2 GB, free: 15.86 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.61e-07/0.9652, allocations: 0 / 1.2 GB, free: 15.86 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.002018/0.9672, allocations: 0.5806 MB / 1.201 GB, free: 15.27 MB / 0.9356 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.003015/0.9702, allocations: 2.149 MB / 1.203 GB, free: 13.11 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.002292/0.9725, allocations: 2.548 MB / 1.206 GB, free: 10.54 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.9725, allocations: 3.938 kB / 1.206 GB, free: 10.54 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0003058/0.9728, allocations: 339.8 kB / 1.206 GB, free: 10.21 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003074/0.9732, allocations: 40.59 kB / 1.206 GB, free: 10.16 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01414/0.9873, allocations: 15.27 MB / 1.221 GB, free: 10.71 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004754/0.9878, allocations: 0.964 MB / 1.222 GB, free: 9.727 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0001341/0.988, allocations: 36.55 kB / 1.222 GB, free: 9.691 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002834/0.9882, allocations: 263.3 kB / 1.222 GB, free: 9.434 MB / 0.9512 GB Notification: Performance of SimCode: time 1.543e-06/0.9883, allocations: 0 / 1.222 GB, free: 9.434 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05116/1.039, allocations: 23.81 MB / 1.245 GB, free: 1.824 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.26/11.3, allocations: 17.98 kB / 1.245 GB, free: 1.812 MB / 0.9669 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)