Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.001062/0.001062, 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.001104/0.001104, allocations: 196.2 kB / 16.53 MB, free: 6.664 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.453/1.453, 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 10.1.1-maint.10.0.x/package.mo): time 2.689/2.689, allocations: 437 MB / 0.7104 GB, free: 5.113 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001537/0.001537, allocations: 63.91 kB / 0.8694 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7165/0.7181, allocations: 151.6 MB / 1.017 GB, free: 2.492 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003398/0.7215, allocations: 1.744 MB / 1.019 GB, free: 0.7344 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.008581/0.7301, allocations: 5.4 MB / 1.024 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001374/0.7303, allocations: 3.938 kB / 1.024 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001234/0.7316, allocations: 374.4 kB / 1.025 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001519/0.7318, allocations: 55.73 kB / 1.025 GB, free: 10.89 MB / 0.7794 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 10.1.1-maint.10.0.x/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.004759/0.7365, allocations: 1.512 MB / 1.026 GB, free: 9.375 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002846/0.7368, allocations: 159.3 kB / 1.026 GB, free: 9.219 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 5.772e-05/0.7369, allocations: 9.562 kB / 1.026 GB, free: 9.207 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000128/0.737, allocations: 59.72 kB / 1.027 GB, free: 9.148 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002408/0.7373, allocations: 163.5 kB / 1.027 GB, free: 8.988 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.868e-05/0.7373, allocations: 16 kB / 1.027 GB, free: 8.973 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003404/0.7407, allocations: 2.157 MB / 1.029 GB, free: 6.812 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0002542/0.741, allocations: 275.8 kB / 1.029 GB, free: 6.543 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0003723/0.7414, allocations: 314 kB / 1.029 GB, free: 6.234 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.003625/0.745, allocations: 2.163 MB / 1.031 GB, free: 4.066 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.745, allocations: 0 / 1.031 GB, free: 4.066 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.502e-06/0.745, allocations: 0 / 1.031 GB, free: 4.066 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.829e-05/0.7451, allocations: 0 / 1.031 GB, free: 4.066 MB / 0.7794 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.01085/0.7559, allocations: 1.367 MB / 1.033 GB, free: 2.648 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.091e-05/0.756, allocations: 8.031 kB / 1.033 GB, free: 2.641 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.104e-05/0.756, allocations: 38.75 kB / 1.033 GB, free: 2.594 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004127/0.7564, allocations: 99.48 kB / 1.033 GB, free: 2.496 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004816/0.7569, allocations: 410.1 kB / 1.033 GB, free: 2.047 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.222e-05/0.757, allocations: 4.375 kB / 1.033 GB, free: 2.043 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.169e-05/0.757, allocations: 12.38 kB / 1.033 GB, free: 2.031 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004227/0.7575, allocations: 395.2 kB / 1.034 GB, free: 1.633 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.694e-06/0.7575, allocations: 0 / 1.034 GB, free: 1.633 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.356e-05/0.7575, allocations: 3.984 kB / 1.034 GB, free: 1.629 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.7575, allocations: 0 / 1.034 GB, free: 1.629 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005324/0.758, allocations: 431.8 kB / 1.034 GB, free: 1.207 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006406/0.7587, allocations: 0.6655 MB / 1.035 GB, free: 0.4922 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005188/0.7592, allocations: 0.5594 MB / 1.035 GB, free: 15.91 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000305/0.7595, allocations: 341.7 kB / 1.036 GB, free: 15.57 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001069/0.7606, allocations: 1.032 MB / 1.037 GB, free: 14.32 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005669/0.7612, allocations: 408.7 kB / 1.037 GB, free: 13.9 MB / 0.795 GB Notification: Performance of pre-optimization done (n=8): time 1.353e-06/0.7612, allocations: 0 / 1.037 GB, free: 13.9 MB / 0.795 GB Notification: Performance of matching and sorting (n=8): time 0.001309/0.7625, allocations: 1.308 MB / 1.038 GB, free: 12.59 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.931e-05/0.7626, allocations: 81.11 kB / 1.038 GB, free: 12.49 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001251/0.7639, allocations: 1.29 MB / 1.04 GB, free: 11.19 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.669e-05/0.7639, allocations: 25.7 kB / 1.04 GB, free: 11.16 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002563/0.7642, allocations: 285.4 kB / 1.04 GB, free: 10.87 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001001/0.7643, allocations: 23.83 kB / 1.04 GB, free: 10.85 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003261/0.7647, allocations: 359.6 kB / 1.04 GB, free: 10.49 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001103/0.7648, allocations: 318 kB / 1.041 GB, free: 10.18 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00123/0.766, allocations: 1.369 MB / 1.042 GB, free: 8.805 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001532/0.7676, allocations: 1.509 MB / 1.043 GB, free: 7.285 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00723/0.7748, allocations: 3.572 MB / 1.047 GB, free: 3.621 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/0.7748, allocations: 0 / 1.047 GB, free: 3.621 MB / 0.795 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004399/0.7792, allocations: 4.006 MB / 1.051 GB, free: 15.58 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/0.7793, allocations: 11.94 kB / 1.051 GB, free: 15.57 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.666e-05/0.7793, allocations: 320 / 1.051 GB, free: 15.57 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.745e-05/0.7793, allocations: 4 kB / 1.051 GB, free: 15.56 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001341/0.7794, allocations: 20.02 kB / 1.051 GB, free: 15.54 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.7795, allocations: 0 / 1.051 GB, free: 15.54 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000486/0.7799, allocations: 232.3 kB / 1.051 GB, free: 15.31 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.735e-05/0.78, allocations: 23.97 kB / 1.051 GB, free: 15.29 MB / 0.8106 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.0004851/0.7805, allocations: 253.6 kB / 1.051 GB, free: 15.03 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.297e-05/0.7806, allocations: 74.62 kB / 1.051 GB, free: 14.96 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003019/0.7809, allocations: 83.72 kB / 1.052 GB, free: 14.86 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.202e-06/0.7809, allocations: 4 kB / 1.052 GB, free: 14.86 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.7809, allocations: 0 / 1.052 GB, free: 14.86 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.7809, allocations: 0 / 1.052 GB, free: 14.86 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004713/0.7814, allocations: 0.5141 MB / 1.052 GB, free: 14.3 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.7814, allocations: 3.938 kB / 1.052 GB, free: 14.3 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.713e-05/0.7815, allocations: 7.984 kB / 1.052 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.7815, allocations: 4 kB / 1.052 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.233e-05/0.7815, allocations: 32 / 1.052 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.7816, allocations: 4 kB / 1.052 GB, free: 14.28 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.7816, allocations: 4 kB / 1.052 GB, free: 14.28 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009031/0.7825, allocations: 1.006 MB / 1.053 GB, free: 13.25 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001284/0.7826, allocations: 163.7 kB / 1.053 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.294e-05/0.7827, allocations: 0 / 1.053 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001585/0.7829, allocations: 11.98 kB / 1.053 GB, free: 13.06 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.215e-05/0.7829, allocations: 4 kB / 1.053 GB, free: 13.05 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.758e-05/0.7829, allocations: 15.97 kB / 1.053 GB, free: 13.04 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0008619/0.7838, allocations: 0.7183 MB / 1.054 GB, free: 12.32 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.413e-06/0.7838, allocations: 4 kB / 1.054 GB, free: 12.31 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.001433/0.7853, allocations: 0.5895 MB / 1.055 GB, free: 11.72 MB / 0.8106 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.003418/0.7887, allocations: 2.14 MB / 1.057 GB, free: 9.57 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.002359/0.7911, allocations: 2.566 MB / 1.059 GB, free: 6.992 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.7911, allocations: 4.062 kB / 1.059 GB, free: 6.988 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003241/0.7914, allocations: 335.8 kB / 1.059 GB, free: 6.66 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003771/0.7918, allocations: 54.19 kB / 1.059 GB, free: 6.609 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01572/0.8075, allocations: 15.17 MB / 1.074 GB, free: 7.262 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005246/0.8081, allocations: 0.9839 MB / 1.075 GB, free: 6.25 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001917/0.8083, allocations: 45.41 kB / 1.075 GB, free: 6.203 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002998/0.8086, allocations: 291.3 kB / 1.076 GB, free: 5.922 MB / 0.8262 GB Notification: Performance of SimCode: time 7.42e-07/0.8086, allocations: 0 / 1.076 GB, free: 5.922 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05229/0.8609, allocations: 23.87 MB / 1.099 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.744/9.605, allocations: 19.59 kB / 1.099 GB, free: 14.25 MB / 0.8575 GB (rm -f Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.fmu > Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)