Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,fileNamePrefix="Buildings_latest_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_latest_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.00174/0.00174, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001945/0.001945, allocations: 196.7 kB / 16.53 MB, free: 6.699 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.35/1.35, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.711/2.711, allocations: 469.4 MB / 0.742 GB, free: 7.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 69.48 kB / 0.9083 GB, free: 34.3 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3176/0.3189, allocations: 159.1 MB / 1.064 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003311/0.3222, allocations: 1.755 MB / 1.065 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.008079/0.3303, allocations: 5.397 MB / 1.071 GB, free: 7.238 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001258/0.3305, allocations: 0 / 1.071 GB, free: 7.238 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001315/0.3318, allocations: 366.4 kB / 1.071 GB, free: 6.879 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001655/0.332, allocations: 63.66 kB / 1.071 GB, free: 6.816 MB / 0.8262 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.0.1-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.003955/0.336, allocations: 1.492 MB / 1.073 GB, free: 5.324 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000262/0.3362, allocations: 159.3 kB / 1.073 GB, free: 5.168 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 6.1e-05/0.3363, allocations: 21.53 kB / 1.073 GB, free: 5.145 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.258e-05/0.3364, allocations: 63.66 kB / 1.073 GB, free: 5.082 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002238/0.3366, allocations: 167.5 kB / 1.073 GB, free: 4.918 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.403e-05/0.3367, allocations: 16 kB / 1.073 GB, free: 4.902 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003419/0.3401, allocations: 2.157 MB / 1.075 GB, free: 2.742 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0002185/0.3404, allocations: 279.8 kB / 1.075 GB, free: 2.469 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002974/0.3407, allocations: 306.1 kB / 1.076 GB, free: 2.168 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.003623/0.3443, allocations: 2.167 MB / 1.078 GB, free: 15.99 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 9.748e-06/0.3443, allocations: 3.938 kB / 1.078 GB, free: 15.98 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.655e-06/0.3443, allocations: 3.938 kB / 1.078 GB, free: 15.98 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 3.48e-05/0.3444, allocations: 0 / 1.078 GB, free: 15.98 MB / 0.8419 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.0111/0.3555, allocations: 1.37 MB / 1.079 GB, free: 14.56 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 6.394e-05/0.3556, allocations: 8.031 kB / 1.079 GB, free: 14.55 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.025e-05/0.3556, allocations: 38.73 kB / 1.079 GB, free: 14.51 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004675/0.3561, allocations: 91.59 kB / 1.079 GB, free: 14.42 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005232/0.3566, allocations: 406.2 kB / 1.08 GB, free: 13.97 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.511e-05/0.3567, allocations: 8.375 kB / 1.08 GB, free: 13.96 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.029e-05/0.3567, allocations: 8.375 kB / 1.08 GB, free: 13.96 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004252/0.3571, allocations: 391.3 kB / 1.08 GB, free: 13.56 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.708e-06/0.3572, allocations: 3.938 kB / 1.08 GB, free: 13.56 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.917e-05/0.3572, allocations: 0 / 1.08 GB, free: 13.56 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.301e-06/0.3572, allocations: 0 / 1.08 GB, free: 13.56 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004794/0.3577, allocations: 431.8 kB / 1.08 GB, free: 13.14 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006939/0.3584, allocations: 0.6771 MB / 1.081 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005218/0.3589, allocations: 0.5634 MB / 1.082 GB, free: 11.83 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003145/0.3592, allocations: 333.6 kB / 1.082 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001213/0.3605, allocations: 1.025 MB / 1.083 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000442/0.3609, allocations: 408.8 kB / 1.083 GB, free: 9.832 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=8): time 1.473e-06/0.3609, allocations: 0 / 1.083 GB, free: 9.832 MB / 0.8419 GB Notification: Performance of matching and sorting (n=8): time 0.001433/0.3624, allocations: 1.293 MB / 1.085 GB, free: 8.531 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.92e-05/0.3625, allocations: 85.05 kB / 1.085 GB, free: 8.43 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001523/0.364, allocations: 1.293 MB / 1.086 GB, free: 7.125 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.706e-05/0.364, allocations: 37.67 kB / 1.086 GB, free: 7.082 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002413/0.3643, allocations: 281.4 kB / 1.086 GB, free: 6.801 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 5.271e-05/0.3644, allocations: 19.88 kB / 1.086 GB, free: 6.781 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003738/0.3647, allocations: 355.6 kB / 1.087 GB, free: 6.43 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001166/0.3649, allocations: 322 kB / 1.087 GB, free: 6.109 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001284/0.3662, allocations: 1.377 MB / 1.088 GB, free: 4.73 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001508/0.3677, allocations: 1.501 MB / 1.09 GB, free: 3.219 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007558/0.3752, allocations: 3.56 MB / 1.093 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.3753, allocations: 0 / 1.093 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.00495/0.3802, allocations: 4.006 MB / 1.097 GB, free: 11.52 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.609e-05/0.3803, allocations: 8 kB / 1.097 GB, free: 11.52 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.892e-05/0.3803, allocations: 3.938 kB / 1.097 GB, free: 11.51 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.005e-05/0.3803, allocations: 7.984 kB / 1.097 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001479/0.3805, allocations: 23.97 kB / 1.097 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.3805, allocations: 0 / 1.097 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005779/0.3811, allocations: 232.3 kB / 1.097 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.757e-05/0.3811, allocations: 20.3 kB / 1.097 GB, free: 11.23 MB / 0.8575 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.000394/0.3815, allocations: 248.8 kB / 1.098 GB, free: 10.98 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.579e-05/0.3816, allocations: 74.62 kB / 1.098 GB, free: 10.91 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003094/0.3819, allocations: 87.75 kB / 1.098 GB, free: 10.81 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.58e-06/0.382, allocations: 4 kB / 1.098 GB, free: 10.81 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.73e-06/0.382, allocations: 0 / 1.098 GB, free: 10.81 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.382, allocations: 0 / 1.098 GB, free: 10.81 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004675/0.3824, allocations: 0.5179 MB / 1.098 GB, free: 10.25 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.009e-06/0.3825, allocations: 7.938 kB / 1.098 GB, free: 10.24 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.927e-05/0.3826, allocations: 7.984 kB / 1.098 GB, free: 10.23 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.701e-06/0.3826, allocations: 4 kB / 1.098 GB, free: 10.23 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.348e-05/0.3826, allocations: 4.031 kB / 1.098 GB, free: 10.22 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.3826, allocations: 0 / 1.098 GB, free: 10.22 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.219e-06/0.3826, allocations: 7.984 kB / 1.098 GB, free: 10.21 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001066/0.3837, allocations: 1.006 MB / 1.099 GB, free: 9.188 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001478/0.3838, allocations: 163.6 kB / 1.099 GB, free: 9.008 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.848e-05/0.3839, allocations: 3.984 kB / 1.099 GB, free: 9.004 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001536/0.3841, allocations: 8 kB / 1.099 GB, free: 8.996 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.721e-05/0.3841, allocations: 11.98 kB / 1.099 GB, free: 8.984 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.037e-05/0.3842, allocations: 11.98 kB / 1.1 GB, free: 8.973 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.000811/0.385, allocations: 0.726 MB / 1.1 GB, free: 8.242 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.5e-07/0.385, allocations: 0 / 1.1 GB, free: 8.242 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.001456/0.3865, allocations: 0.5857 MB / 1.101 GB, free: 7.656 MB / 0.8575 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.003522/0.39, allocations: 2.141 MB / 1.103 GB, free: 5.5 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.002402/0.3924, allocations: 2.548 MB / 1.105 GB, free: 2.938 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.3924, allocations: 8.062 kB / 1.105 GB, free: 2.93 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000314/0.3928, allocations: 335.8 kB / 1.106 GB, free: 2.602 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004327/0.3932, allocations: 59.17 kB / 1.106 GB, free: 2.547 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01516/0.4084, allocations: 15.17 MB / 1.121 GB, free: 3.195 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005064/0.4089, allocations: 0.9878 MB / 1.122 GB, free: 2.184 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0002102/0.4091, allocations: 49.34 kB / 1.122 GB, free: 2.137 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003411/0.4095, allocations: 287.3 kB / 1.122 GB, free: 1.855 MB / 0.8731 GB Notification: Performance of SimCode: time 9.72e-07/0.4095, allocations: 0 / 1.122 GB, free: 1.855 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06911/0.4786, allocations: 23.88 MB / 1.145 GB, free: 10.16 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.29/10.77, allocations: 9.859 kB / 1.145 GB, free: 10.16 MB / 0.9044 GB (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.fmu > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)