Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="BuildingSystems_BuildingSystems_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.004807/0.004807, allocations: 99.64 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.00111/0.00111, allocations: 192.1 kB / 16.67 MB, free: 5.961 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.297/1.297, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002027/0.002027, allocations: 294.7 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9099/0.9099, allocations: 169.2 MB / 0.4983 GB, free: 4.426 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001643/0.001643, allocations: 103.9 kB / 0.681 GB, free: 7.383 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4268/0.4284, allocations: 86.98 MB / 0.766 GB, free: 3.801 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002243/0.4307, allocations: 1.42 MB / 0.7674 GB, free: 2.371 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.005734/0.4365, allocations: 4.201 MB / 0.7715 GB, free: 14.15 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.171e-05/0.4365, allocations: 0 / 0.7715 GB, free: 14.15 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 9.857e-05/0.4366, allocations: 15.88 kB / 0.7715 GB, free: 14.14 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0002028/0.4368, allocations: 31.83 kB / 0.7715 GB, free: 14.11 MB / 0.545 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/BuildingSystems 2.0.0-master/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.00317/0.44, allocations: 1.495 MB / 0.773 GB, free: 12.61 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0001177/0.4401, allocations: 95.72 kB / 0.7731 GB, free: 12.51 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 3.681e-05/0.4402, allocations: 8 kB / 0.7731 GB, free: 12.5 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 6.404e-05/0.4403, allocations: 47.83 kB / 0.7731 GB, free: 12.46 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001832/0.4405, allocations: 147.6 kB / 0.7733 GB, free: 12.31 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 3.566e-05/0.4405, allocations: 16 kB / 0.7733 GB, free: 12.3 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002691/0.4432, allocations: 2.2 MB / 0.7754 GB, free: 10.09 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001809/0.4434, allocations: 267.8 kB / 0.7757 GB, free: 9.832 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0002101/0.4436, allocations: 286.2 kB / 0.776 GB, free: 9.551 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.002019/0.4456, allocations: 2.12 MB / 0.778 GB, free: 7.43 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.4456, allocations: 0 / 0.778 GB, free: 7.43 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.323e-06/0.4456, allocations: 0 / 0.778 GB, free: 7.43 MB / 0.545 GB Notification: Performance of Transformations before backend: time 6.662e-06/0.4457, allocations: 0 / 0.778 GB, free: 7.43 MB / 0.545 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.009491/0.4552, allocations: 1.347 MB / 0.7793 GB, free: 6.027 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.4552, allocations: 8.031 kB / 0.7793 GB, free: 6.02 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.37e-05/0.4553, allocations: 42.67 kB / 0.7794 GB, free: 5.969 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004818/0.4558, allocations: 96.25 kB / 0.7795 GB, free: 5.875 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003718/0.4561, allocations: 357.1 kB / 0.7798 GB, free: 5.477 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.648e-06/0.4562, allocations: 8.375 kB / 0.7798 GB, free: 5.469 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.731e-05/0.4562, allocations: 4.375 kB / 0.7798 GB, free: 5.465 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003847/0.4566, allocations: 399.2 kB / 0.7802 GB, free: 5.062 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.993e-06/0.4566, allocations: 4 kB / 0.7802 GB, free: 5.059 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.146e-05/0.4566, allocations: 0 / 0.7802 GB, free: 5.059 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.68e-06/0.4567, allocations: 4 kB / 0.7802 GB, free: 5.055 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003866/0.457, allocations: 439.7 kB / 0.7806 GB, free: 4.625 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005077/0.4576, allocations: 0.637 MB / 0.7813 GB, free: 3.938 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004538/0.458, allocations: 0.5711 MB / 0.7818 GB, free: 3.348 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00027/0.4583, allocations: 333.7 kB / 0.7821 GB, free: 3.016 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001065/0.4594, allocations: 1.025 MB / 0.7831 GB, free: 1.77 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003557/0.4597, allocations: 408.8 kB / 0.7835 GB, free: 1.352 MB / 0.545 GB Notification: Performance of pre-optimization done (n=8): time 1.263e-06/0.4597, allocations: 0 / 0.7835 GB, free: 1.352 MB / 0.545 GB Notification: Performance of matching and sorting (n=8): time 0.001251/0.461, allocations: 1.293 MB / 0.7848 GB, free: 52 kB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.142e-05/0.4611, allocations: 89.22 kB / 0.7849 GB, free: 15.95 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001173/0.4623, allocations: 1.215 MB / 0.7861 GB, free: 14.71 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.342e-05/0.4623, allocations: 29.7 kB / 0.7861 GB, free: 14.68 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001626/0.4625, allocations: 265.9 kB / 0.7863 GB, free: 14.41 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.343e-05/0.4625, allocations: 27.78 kB / 0.7864 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002822/0.4628, allocations: 355.6 kB / 0.7867 GB, free: 14.04 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 8.782e-05/0.4629, allocations: 310 kB / 0.787 GB, free: 13.73 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001106/0.464, allocations: 1.377 MB / 0.7884 GB, free: 12.34 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001199/0.4652, allocations: 1.505 MB / 0.7898 GB, free: 10.83 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006706/0.4719, allocations: 3.553 MB / 0.7933 GB, free: 7.184 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.959e-06/0.472, allocations: 0 / 0.7933 GB, free: 7.184 MB / 0.5606 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004006/0.476, allocations: 4.019 MB / 0.7972 GB, free: 3.129 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.292e-05/0.476, allocations: 6.5 kB / 0.7972 GB, free: 3.125 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.913e-05/0.4761, allocations: 4 kB / 0.7972 GB, free: 3.121 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.738e-05/0.4761, allocations: 0 / 0.7972 GB, free: 3.121 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001316/0.4762, allocations: 19.92 kB / 0.7972 GB, free: 3.102 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.041e-05/0.4762, allocations: 4 kB / 0.7972 GB, free: 3.098 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005008/0.4767, allocations: 237.3 kB / 0.7975 GB, free: 2.863 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.487e-05/0.4768, allocations: 32.02 kB / 0.7975 GB, free: 2.832 MB / 0.5606 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.0002881/0.4771, allocations: 237.7 kB / 0.7977 GB, free: 2.59 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.662e-05/0.4772, allocations: 79.28 kB / 0.7978 GB, free: 2.512 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000261/0.4774, allocations: 78.95 kB / 0.7979 GB, free: 2.422 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.4774, allocations: 3.938 kB / 0.7979 GB, free: 2.418 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.4775, allocations: 0 / 0.7979 GB, free: 2.418 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.4775, allocations: 8.016 kB / 0.7979 GB, free: 2.41 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003876/0.4779, allocations: 0.4891 MB / 0.7984 GB, free: 1.875 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.4779, allocations: 3.938 kB / 0.7984 GB, free: 1.871 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.441e-05/0.4779, allocations: 4 kB / 0.7984 GB, free: 1.867 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.4779, allocations: 0 / 0.7984 GB, free: 1.867 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.597e-05/0.478, allocations: 7.984 kB / 0.7984 GB, free: 1.859 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.478, allocations: 0 / 0.7984 GB, free: 1.859 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.478, allocations: 0 / 0.7984 GB, free: 1.859 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009395/0.4789, allocations: 1.01 MB / 0.7994 GB, free: 0.8281 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001002/0.479, allocations: 160.4 kB / 0.7995 GB, free: 0.6523 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.788e-05/0.4791, allocations: 4 kB / 0.7995 GB, free: 0.6484 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001308/0.4792, allocations: 4 kB / 0.7995 GB, free: 0.6445 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.797e-05/0.4793, allocations: 3.984 kB / 0.7995 GB, free: 0.6406 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.367e-05/0.4793, allocations: 15.98 kB / 0.7996 GB, free: 0.625 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0006466/0.48, allocations: 0.6728 MB / 0.8002 GB, free: 15.95 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.61e-07/0.48, allocations: 0 / 0.8002 GB, free: 15.95 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.00152/0.4815, allocations: 0.5845 MB / 0.8008 GB, free: 15.36 MB / 0.5762 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.002628/0.4842, allocations: 2.155 MB / 0.8029 GB, free: 13.19 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002082/0.4863, allocations: 2.556 MB / 0.8054 GB, free: 10.62 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.4863, allocations: 0 / 0.8054 GB, free: 10.62 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.000283/0.4866, allocations: 339.8 kB / 0.8057 GB, free: 10.29 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002817/0.4869, allocations: 40.59 kB / 0.8057 GB, free: 10.25 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01298/0.4998, allocations: 15.27 MB / 0.8207 GB, free: 10.8 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004434/0.5003, allocations: 0.964 MB / 0.8216 GB, free: 9.809 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.000119/0.5004, allocations: 40.53 kB / 0.8216 GB, free: 9.77 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002685/0.5007, allocations: 269 kB / 0.8219 GB, free: 9.508 MB / 0.5919 GB Notification: Performance of SimCode: time 4.1e-07/0.5007, allocations: 0 / 0.8219 GB, free: 9.508 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04323/0.544, allocations: 23.83 MB / 0.8452 GB, free: 1.902 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.712/10.26, allocations: 8.375 kB / 0.8452 GB, free: 1.898 MB / 0.6075 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.fmu > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1)