Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/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_SmallScaleValidation,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,fileNamePrefix="BuildingSystems_BuildingSystems_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.004998/0.004998, allocations: 97.05 kB / 15.73 MB, free: 5.547 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.001273/0.001273, allocations: 190.1 kB / 16.67 MB, free: 5.48 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.369/1.369, 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/NcDataReader2 2.5.1-master/package.mo): time 0.00247/0.00247, allocations: 286.3 kB / 290.8 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9827/0.9827, allocations: 169.2 MB / 0.4983 GB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002638/0.002638, allocations: 92.14 kB / 0.681 GB, free: 7.414 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4259/0.4285, allocations: 86.98 MB / 0.766 GB, free: 3.859 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003355/0.432, allocations: 1.75 MB / 0.7677 GB, free: 2.102 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.008154/0.4401, allocations: 5.386 MB / 0.7729 GB, free: 12.69 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.553e-05/0.4402, allocations: 3.938 kB / 0.773 GB, free: 12.69 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001194/0.4414, allocations: 368.3 kB / 0.7733 GB, free: 12.33 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0001241/0.4416, allocations: 51.73 kB / 0.7734 GB, free: 12.28 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.003587/0.4452, allocations: 1.503 MB / 0.7748 GB, free: 10.77 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0002541/0.4454, allocations: 159.4 kB / 0.775 GB, free: 10.62 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 4.879e-05/0.4455, allocations: 9.547 kB / 0.775 GB, free: 10.61 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 8.524e-05/0.4456, allocations: 71.7 kB / 0.775 GB, free: 10.54 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002434/0.4458, allocations: 163.5 kB / 0.7752 GB, free: 10.38 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 4.557e-05/0.4459, allocations: 16 kB / 0.7752 GB, free: 10.36 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003231/0.4491, allocations: 2.2 MB / 0.7774 GB, free: 8.16 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002551/0.4494, allocations: 283.8 kB / 0.7776 GB, free: 7.883 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0002888/0.4497, allocations: 310.1 kB / 0.7779 GB, free: 7.578 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.00276/0.4525, allocations: 2.196 MB / 0.7801 GB, free: 5.375 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.4525, allocations: 0 / 0.7801 GB, free: 5.375 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.382e-06/0.4525, allocations: 0 / 0.7801 GB, free: 5.375 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.476e-06/0.4525, allocations: 0 / 0.7801 GB, free: 5.375 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.00997/0.4625, allocations: 1.421 MB / 0.7815 GB, free: 3.898 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.005e-05/0.4625, allocations: 8.031 kB / 0.7815 GB, free: 3.891 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.293e-05/0.4626, allocations: 30.75 kB / 0.7815 GB, free: 3.852 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003914/0.463, allocations: 104.2 kB / 0.7816 GB, free: 3.75 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006012/0.4636, allocations: 414.3 kB / 0.782 GB, free: 3.297 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.534e-05/0.4636, allocations: 8.375 kB / 0.782 GB, free: 3.289 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.448e-05/0.4637, allocations: 4.375 kB / 0.782 GB, free: 3.285 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004779/0.4641, allocations: 391.2 kB / 0.7824 GB, free: 2.891 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.105e-06/0.4642, allocations: 0 / 0.7824 GB, free: 2.891 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.906e-05/0.4642, allocations: 11.98 kB / 0.7824 GB, free: 2.879 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.4642, allocations: 0 / 0.7824 GB, free: 2.879 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004608/0.4647, allocations: 431.8 kB / 0.7828 GB, free: 2.457 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007064/0.4654, allocations: 0.6738 MB / 0.7835 GB, free: 1.734 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005581/0.4659, allocations: 0.5633 MB / 0.784 GB, free: 1.152 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003358/0.4663, allocations: 337.7 kB / 0.7843 GB, free: 0.8164 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001106/0.4674, allocations: 1.028 MB / 0.7853 GB, free: 15.57 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004465/0.4679, allocations: 408.8 kB / 0.7857 GB, free: 15.15 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=8): time 1.162e-06/0.4679, allocations: 0 / 0.7857 GB, free: 15.15 MB / 0.5606 GB Notification: Performance of matching and sorting (n=8): time 0.001527/0.4694, allocations: 1.305 MB / 0.787 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.221e-05/0.4695, allocations: 85.23 kB / 0.7871 GB, free: 13.73 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001406/0.4709, allocations: 1.294 MB / 0.7884 GB, free: 12.43 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.471e-05/0.4709, allocations: 29.7 kB / 0.7884 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002363/0.4712, allocations: 289.9 kB / 0.7887 GB, free: 12.1 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.153e-05/0.4712, allocations: 27.81 kB / 0.7887 GB, free: 12.07 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003755/0.4716, allocations: 355.6 kB / 0.789 GB, free: 11.72 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001627/0.4718, allocations: 318 kB / 0.7893 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001432/0.4732, allocations: 1.373 MB / 0.7907 GB, free: 10.03 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001556/0.4748, allocations: 1.505 MB / 0.7921 GB, free: 8.516 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007343/0.4821, allocations: 3.556 MB / 0.7956 GB, free: 4.867 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.4821, allocations: 0 / 0.7956 GB, free: 4.867 MB / 0.5606 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004674/0.4868, allocations: 4.023 MB / 0.7995 GB, free: 0.8086 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.112e-05/0.4869, allocations: 8 kB / 0.7995 GB, free: 0.8008 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.655e-05/0.4869, allocations: 0 / 0.7995 GB, free: 0.8008 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.963e-05/0.4869, allocations: 4 kB / 0.7995 GB, free: 0.7969 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001303/0.487, allocations: 15.98 kB / 0.7996 GB, free: 0.7812 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.165e-06/0.4871, allocations: 0 / 0.7996 GB, free: 0.7812 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005118/0.4876, allocations: 237.4 kB / 0.7998 GB, free: 0.5469 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.284e-05/0.4876, allocations: 23.98 kB / 0.7998 GB, free: 0.5234 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.0003325/0.488, allocations: 255 kB / 0.8001 GB, free: 272 kB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.583e-05/0.4881, allocations: 83.23 kB / 0.8001 GB, free: 188 kB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002761/0.4884, allocations: 75.81 kB / 0.8002 GB, free: 100 kB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.542e-06/0.4884, allocations: 4 kB / 0.8002 GB, free: 96 kB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.4884, allocations: 0 / 0.8002 GB, free: 96 kB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.4884, allocations: 7.922 kB / 0.8002 GB, free: 88 kB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000545/0.489, allocations: 0.5219 MB / 0.8007 GB, free: 15.52 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/0.489, allocations: 7.875 kB / 0.8007 GB, free: 15.51 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.43e-05/0.489, allocations: 4 kB / 0.8007 GB, free: 15.51 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.884e-06/0.489, allocations: 7.984 kB / 0.8007 GB, free: 15.5 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.143e-05/0.4891, allocations: 0 / 0.8007 GB, free: 15.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.998e-06/0.4891, allocations: 3.938 kB / 0.8008 GB, free: 15.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.4891, allocations: 4 kB / 0.8008 GB, free: 15.49 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001018/0.4901, allocations: 1.014 MB / 0.8017 GB, free: 14.46 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001397/0.4903, allocations: 168.3 kB / 0.8019 GB, free: 14.27 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.868e-05/0.4903, allocations: 0 / 0.8019 GB, free: 14.27 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001443/0.4905, allocations: 7.984 kB / 0.8019 GB, free: 14.27 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.715e-05/0.4905, allocations: 12 kB / 0.8019 GB, free: 14.25 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.565e-05/0.4906, allocations: 15.97 kB / 0.8019 GB, free: 14.24 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0009097/0.4915, allocations: 0.7222 MB / 0.8026 GB, free: 13.51 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.3e-07/0.4915, allocations: 4 kB / 0.8026 GB, free: 13.51 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001468/0.493, allocations: 0.5884 MB / 0.8032 GB, free: 12.92 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.003022/0.496, allocations: 2.158 MB / 0.8053 GB, free: 10.75 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002573/0.4986, allocations: 2.548 MB / 0.8078 GB, free: 8.184 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.4986, allocations: 4 kB / 0.8078 GB, free: 8.18 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003531/0.4989, allocations: 343.7 kB / 0.8082 GB, free: 7.844 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004202/0.4994, allocations: 52.22 kB / 0.8082 GB, free: 7.793 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01665/0.5161, allocations: 15.29 MB / 0.8231 GB, free: 8.324 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006808/0.5168, allocations: 0.9879 MB / 0.8241 GB, free: 7.309 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001722/0.517, allocations: 45.41 kB / 0.8241 GB, free: 7.266 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003581/0.5173, allocations: 295.3 kB / 0.8244 GB, free: 6.977 MB / 0.5919 GB Notification: Performance of SimCode: time 5.47e-06/0.5173, allocations: 0 / 0.8244 GB, free: 6.977 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05428/0.5716, allocations: 24.08 MB / 0.8479 GB, free: 15.14 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.53/11.1, allocations: 11.62 kB / 0.848 GB, free: 15.14 MB / 0.6231 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.fmu > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)