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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.007108/0.007108, allocations: 97.98 kB / 15.73 MB, free: 5.602 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.001654/0.001654, allocations: 195.6 kB / 16.68 MB, free: 5.523 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.367/1.367, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.677/2.677, allocations: 482.4 MB / 0.7548 GB, free: 6.875 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001884/0.001884, allocations: 69.53 kB / 1.083 GB, free: 13.92 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3564/0.3583, allocations: 162.2 MB / 1.242 GB, free: 9.242 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003301/0.3616, allocations: 1.773 MB / 1.243 GB, free: 7.461 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.007831/0.3695, allocations: 5.378 MB / 1.248 GB, free: 2.059 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001143/0.3696, allocations: 4 kB / 1.249 GB, free: 2.055 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001259/0.3709, allocations: 374.3 kB / 1.249 GB, free: 1.688 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001194/0.3711, allocations: 63.67 kB / 1.249 GB, free: 1.625 MB / 0.9669 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 12.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.003428/0.3745, allocations: 1.488 MB / 1.25 GB, free: 136 kB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002473/0.3747, allocations: 166.8 kB / 1.251 GB, free: 15.97 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 4.349e-05/0.3748, allocations: 9.562 kB / 1.251 GB, free: 15.96 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 8.804e-05/0.3749, allocations: 63.7 kB / 1.251 GB, free: 15.9 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002282/0.3751, allocations: 163.5 kB / 1.251 GB, free: 15.74 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.633e-05/0.3752, allocations: 19.94 kB / 1.251 GB, free: 15.72 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003278/0.3785, allocations: 2.208 MB / 1.253 GB, free: 13.51 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0003274/0.3788, allocations: 279.8 kB / 1.253 GB, free: 13.23 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0003127/0.3791, allocations: 302.1 kB / 1.253 GB, free: 12.94 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.002604/0.3817, allocations: 2.188 MB / 1.256 GB, free: 10.74 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.3818, allocations: 8 kB / 1.256 GB, free: 10.73 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.333e-06/0.3818, allocations: 0 / 1.256 GB, free: 10.73 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.933e-06/0.3818, allocations: 0 / 1.256 GB, free: 10.73 MB / 0.9825 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.01047/0.3923, allocations: 1.418 MB / 1.257 GB, free: 9.262 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/0.3923, allocations: 8.031 kB / 1.257 GB, free: 9.254 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.952e-05/0.3924, allocations: 38.75 kB / 1.257 GB, free: 9.207 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003659/0.3927, allocations: 104.2 kB / 1.257 GB, free: 9.105 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00055/0.3933, allocations: 410.3 kB / 1.258 GB, free: 8.656 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.996e-06/0.3933, allocations: 4.375 kB / 1.258 GB, free: 8.652 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.853e-05/0.3933, allocations: 8.375 kB / 1.258 GB, free: 8.645 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004551/0.3938, allocations: 387.3 kB / 1.258 GB, free: 8.254 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.3938, allocations: 0 / 1.258 GB, free: 8.254 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.306e-05/0.3938, allocations: 3.984 kB / 1.258 GB, free: 8.25 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.211e-06/0.3939, allocations: 4 kB / 1.258 GB, free: 8.246 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004677/0.3943, allocations: 439.6 kB / 1.258 GB, free: 7.816 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008318/0.3952, allocations: 0.666 MB / 1.259 GB, free: 7.102 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005562/0.3957, allocations: 0.5555 MB / 1.26 GB, free: 6.527 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000342/0.3961, allocations: 345.7 kB / 1.26 GB, free: 6.184 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001101/0.3972, allocations: 1.032 MB / 1.261 GB, free: 4.93 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004386/0.3976, allocations: 408.8 kB / 1.261 GB, free: 4.512 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=8): time 1.172e-06/0.3977, allocations: 0 / 1.261 GB, free: 4.512 MB / 0.9825 GB Notification: Performance of matching and sorting (n=8): time 0.001458/0.3991, allocations: 1.309 MB / 1.263 GB, free: 3.195 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.799e-05/0.3992, allocations: 81.11 kB / 1.263 GB, free: 3.098 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001321/0.4005, allocations: 1.298 MB / 1.264 GB, free: 1.789 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.557e-05/0.4006, allocations: 29.7 kB / 1.264 GB, free: 1.754 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002295/0.4008, allocations: 289.9 kB / 1.264 GB, free: 1.465 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.706e-05/0.4008, allocations: 27.81 kB / 1.264 GB, free: 1.438 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003452/0.4012, allocations: 351.6 kB / 1.265 GB, free: 1.09 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001499/0.4013, allocations: 322 kB / 1.265 GB, free: 0.7695 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001345/0.4027, allocations: 1.369 MB / 1.266 GB, free: 15.4 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001468/0.4042, allocations: 1.509 MB / 1.268 GB, free: 13.88 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007202/0.4114, allocations: 3.557 MB / 1.271 GB, free: 10.23 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.4114, allocations: 0 / 1.271 GB, free: 10.23 MB / 0.9981 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004586/0.416, allocations: 4.023 MB / 1.275 GB, free: 6.172 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/0.416, allocations: 5.875 kB / 1.275 GB, free: 6.168 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.689e-05/0.416, allocations: 4 kB / 1.275 GB, free: 6.164 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.897e-05/0.4161, allocations: 0 / 1.275 GB, free: 6.164 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001283/0.4162, allocations: 19.98 kB / 1.275 GB, free: 6.145 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.4162, allocations: 0 / 1.275 GB, free: 6.145 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000508/0.4167, allocations: 245.3 kB / 1.275 GB, free: 5.902 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.04e-05/0.4168, allocations: 23.98 kB / 1.275 GB, free: 5.879 MB / 0.9981 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.0003148/0.4171, allocations: 254.2 kB / 1.276 GB, free: 5.621 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.9e-05/0.4172, allocations: 79.23 kB / 1.276 GB, free: 5.543 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002681/0.4175, allocations: 83.81 kB / 1.276 GB, free: 5.453 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.471e-06/0.4175, allocations: 0 / 1.276 GB, free: 5.453 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.4175, allocations: 3.938 kB / 1.276 GB, free: 5.449 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.4175, allocations: 0 / 1.276 GB, free: 5.449 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005183/0.418, allocations: 0.5218 MB / 1.276 GB, free: 4.883 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.418, allocations: 7.969 kB / 1.276 GB, free: 4.875 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.823e-05/0.4181, allocations: 11.98 kB / 1.276 GB, free: 4.863 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.963e-06/0.4181, allocations: 0 / 1.276 GB, free: 4.863 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.086e-05/0.4181, allocations: 0 / 1.276 GB, free: 4.863 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.4181, allocations: 4 kB / 1.276 GB, free: 4.859 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.4181, allocations: 0 / 1.276 GB, free: 4.859 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001015/0.4192, allocations: 1.006 MB / 1.277 GB, free: 3.832 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001311/0.4193, allocations: 172.3 kB / 1.277 GB, free: 3.645 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.053e-05/0.4194, allocations: 4 kB / 1.277 GB, free: 3.641 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001369/0.4195, allocations: 3.984 kB / 1.277 GB, free: 3.637 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.631e-05/0.4196, allocations: 7.938 kB / 1.277 GB, free: 3.629 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.431e-05/0.4196, allocations: 15.97 kB / 1.277 GB, free: 3.613 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0008576/0.4205, allocations: 0.7222 MB / 1.278 GB, free: 2.887 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.6e-07/0.4205, allocations: 4 kB / 1.278 GB, free: 2.883 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.00144/0.4219, allocations: 0.5962 MB / 1.279 GB, free: 2.285 MB / 0.9981 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.003024/0.4249, allocations: 2.153 MB / 1.281 GB, free: 120 kB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.002801/0.4278, allocations: 2.548 MB / 1.283 GB, free: 13.55 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.4278, allocations: 0 / 1.283 GB, free: 13.55 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0003656/0.4281, allocations: 339.7 kB / 1.284 GB, free: 13.22 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00037/0.4285, allocations: 69.08 kB / 1.284 GB, free: 13.15 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01604/0.4446, allocations: 15.31 MB / 1.299 GB, free: 13.67 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006499/0.4453, allocations: 0.9879 MB / 1.3 GB, free: 12.65 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001544/0.4454, allocations: 37.42 kB / 1.3 GB, free: 12.62 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003634/0.4458, allocations: 293.6 kB / 1.3 GB, free: 12.33 MB / 1.029 GB Notification: Performance of SimCode: time 8.12e-07/0.4458, allocations: 4 kB / 1.3 GB, free: 12.33 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05582/0.5016, allocations: 24.07 MB / 1.323 GB, free: 4.469 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.7/11.2, allocations: 17.31 kB / 1.324 GB, free: 4.453 MB / 1.045 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 400 --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)