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.005089/0.005089, allocations: 100.9 kB / 15.73 MB, free: 6.062 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.001251/0.001251, allocations: 195.3 kB / 16.67 MB, free: 5.973 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.332/1.332, 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.002463/0.002463, allocations: 291.3 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 1.166/1.166, allocations: 178.5 MB / 0.5074 GB, free: 12.65 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00262/0.00262, allocations: 99.83 kB / 0.6944 GB, free: 15.13 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4263/0.429, allocations: 89.13 MB / 0.7814 GB, free: 1.16 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.00245/0.4315, allocations: 1.749 MB / 0.7831 GB, free: 15.8 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.007881/0.4394, allocations: 5.398 MB / 0.7884 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001506/0.4395, allocations: 5.062 kB / 0.7884 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001307/0.4409, allocations: 372.9 kB / 0.7887 GB, free: 11.3 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0001482/0.4411, allocations: 57.14 kB / 0.7888 GB, free: 11.26 MB / 0.5606 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.004232/0.4453, allocations: 1.495 MB / 0.7903 GB, free: 10.33 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0003002/0.4456, allocations: 160.1 kB / 0.7904 GB, free: 10.25 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.737e-05/0.4457, allocations: 10.28 kB / 0.7904 GB, free: 10.25 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 8.355e-05/0.4458, allocations: 64.27 kB / 0.7905 GB, free: 10.21 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002469/0.446, allocations: 164.1 kB / 0.7906 GB, free: 10.12 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 4.439e-05/0.4461, allocations: 16 kB / 0.7907 GB, free: 10.12 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00376/0.4498, allocations: 2.2 MB / 0.7928 GB, free: 8.895 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002781/0.4502, allocations: 292.7 kB / 0.7931 GB, free: 8.742 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003085/0.4505, allocations: 302.3 kB / 0.7934 GB, free: 8.531 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.004007/0.4545, allocations: 2.193 MB / 0.7955 GB, free: 7.25 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.4545, allocations: 0 / 0.7955 GB, free: 7.25 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.864e-06/0.4545, allocations: 0 / 0.7955 GB, free: 7.25 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.205e-05/0.4545, allocations: 0 / 0.7955 GB, free: 7.25 MB / 0.5606 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.01088/0.4654, allocations: 1.419 MB / 0.7969 GB, free: 6.121 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.4655, allocations: 13.22 kB / 0.7969 GB, free: 6.117 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.631e-05/0.4655, allocations: 39.86 kB / 0.797 GB, free: 6.07 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003927/0.4659, allocations: 97.2 kB / 0.797 GB, free: 6.004 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005792/0.4665, allocations: 407.9 kB / 0.7974 GB, free: 5.652 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.625e-05/0.4666, allocations: 3.344 kB / 0.7974 GB, free: 5.652 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.926e-05/0.4666, allocations: 17.78 kB / 0.7975 GB, free: 5.641 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004361/0.467, allocations: 394.4 kB / 0.7978 GB, free: 5.516 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.687e-06/0.4671, allocations: 0 / 0.7978 GB, free: 5.516 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.217e-05/0.4671, allocations: 1.344 kB / 0.7978 GB, free: 5.516 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.57e-06/0.4671, allocations: 1.406 kB / 0.7978 GB, free: 5.516 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004333/0.4675, allocations: 438.7 kB / 0.7983 GB, free: 5.441 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007338/0.4683, allocations: 0.6717 MB / 0.7989 GB, free: 4.922 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005528/0.4688, allocations: 0.5614 MB / 0.7995 GB, free: 4.785 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003194/0.4692, allocations: 337 kB / 0.7998 GB, free: 4.715 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00109/0.4703, allocations: 1.024 MB / 0.8008 GB, free: 3.547 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004318/0.4707, allocations: 414.7 kB / 0.8012 GB, free: 3.398 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=8): time 1.663e-06/0.4707, allocations: 0 / 0.8012 GB, free: 3.398 MB / 0.5606 GB Notification: Performance of matching and sorting (n=8): time 0.001464/0.4722, allocations: 1.306 MB / 0.8024 GB, free: 2.715 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.729e-05/0.4723, allocations: 81.09 kB / 0.8025 GB, free: 2.617 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001456/0.4737, allocations: 1.298 MB / 0.8038 GB, free: 1.309 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 5.576e-05/0.4738, allocations: 25.7 kB / 0.8038 GB, free: 1.277 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002342/0.474, allocations: 293.9 kB / 0.8041 GB, free: 0.9844 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.52e-05/0.4741, allocations: 23.83 kB / 0.8041 GB, free: 0.9609 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003454/0.4744, allocations: 355.8 kB / 0.8045 GB, free: 0.6094 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001366/0.4746, allocations: 322 kB / 0.8048 GB, free: 296 kB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001319/0.4759, allocations: 1.369 MB / 0.8061 GB, free: 14.92 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001432/0.4773, allocations: 1.497 MB / 0.8076 GB, free: 13.41 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007178/0.4845, allocations: 3.568 MB / 0.811 GB, free: 9.75 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.4846, allocations: 0 / 0.811 GB, free: 9.75 MB / 0.5762 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.00482/0.4894, allocations: 4.015 MB / 0.815 GB, free: 5.699 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.388e-05/0.4894, allocations: 4 kB / 0.815 GB, free: 5.695 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.471e-05/0.4895, allocations: 7.984 kB / 0.815 GB, free: 5.688 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.914e-05/0.4895, allocations: 0 / 0.815 GB, free: 5.688 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001405/0.4896, allocations: 16.03 kB / 0.815 GB, free: 5.672 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.989e-06/0.4897, allocations: 8.25 kB / 0.815 GB, free: 5.664 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006096/0.4903, allocations: 241.3 kB / 0.8152 GB, free: 5.426 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.739e-05/0.4903, allocations: 23.98 kB / 0.8153 GB, free: 5.402 MB / 0.5762 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.0003754/0.4907, allocations: 245.6 kB / 0.8155 GB, free: 5.152 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.555e-05/0.4908, allocations: 87.23 kB / 0.8156 GB, free: 5.066 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000291/0.4911, allocations: 83.81 kB / 0.8157 GB, free: 4.969 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.4911, allocations: 0 / 0.8157 GB, free: 4.969 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.608e-06/0.4911, allocations: 7.938 kB / 0.8157 GB, free: 4.961 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/0.4912, allocations: 3.984 kB / 0.8157 GB, free: 4.957 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005298/0.4917, allocations: 0.5179 MB / 0.8162 GB, free: 4.395 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.501e-06/0.4917, allocations: 3.938 kB / 0.8162 GB, free: 4.391 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.693e-05/0.4918, allocations: 4 kB / 0.8162 GB, free: 4.387 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.4918, allocations: 0 / 0.8162 GB, free: 4.387 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.023e-05/0.4918, allocations: 7.984 kB / 0.8162 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.4918, allocations: 7.969 kB / 0.8162 GB, free: 4.371 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.4918, allocations: 0 / 0.8162 GB, free: 4.371 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001012/0.4928, allocations: 1.006 MB / 0.8172 GB, free: 3.344 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001443/0.493, allocations: 180.2 kB / 0.8173 GB, free: 3.148 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.818e-05/0.4931, allocations: 0 / 0.8173 GB, free: 3.148 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001364/0.4932, allocations: 8 kB / 0.8174 GB, free: 3.141 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.918e-05/0.4932, allocations: 7.984 kB / 0.8174 GB, free: 3.133 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.345e-05/0.4933, allocations: 7.984 kB / 0.8174 GB, free: 3.125 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0008915/0.4942, allocations: 0.7261 MB / 0.8181 GB, free: 2.395 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.836e-06/0.4942, allocations: 0 / 0.8181 GB, free: 2.395 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001861/0.4961, allocations: 0.5923 MB / 0.8187 GB, free: 1.801 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.003317/0.4994, allocations: 2.155 MB / 0.8208 GB, free: 15.62 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002653/0.5021, allocations: 2.552 MB / 0.8233 GB, free: 13.06 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.5021, allocations: 3.938 kB / 0.8233 GB, free: 13.05 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0003534/0.5024, allocations: 335.8 kB / 0.8236 GB, free: 12.73 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004319/0.5029, allocations: 63.06 kB / 0.8236 GB, free: 12.67 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01629/0.5192, allocations: 15.3 MB / 0.8386 GB, free: 13.19 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006171/0.5199, allocations: 0.9879 MB / 0.8395 GB, free: 12.17 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0001856/0.5201, allocations: 45.41 kB / 0.8396 GB, free: 12.13 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003463/0.5204, allocations: 283.3 kB / 0.8399 GB, free: 11.85 MB / 0.6075 GB Notification: Performance of SimCode: time 1.011e-06/0.5204, allocations: 0 / 0.8399 GB, free: 11.85 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05575/0.5762, allocations: 24.09 MB / 0.8634 GB, free: 4.008 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.19/10.76, allocations: 15.27 kB / 0.8634 GB, free: 3.996 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)