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.001383/0.001383, 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.001358/0.001358, allocations: 197 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.362/1.362, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00204/0.00204, allocations: 275 kB / 290.7 MB, free: 1.992 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9622/0.9622, allocations: 169.3 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001826/0.001826, allocations: 103.3 kB / 0.5954 GB, free: 27.84 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1417/0.1436, allocations: 86.98 MB / 0.6803 GB, free: 0.5742 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.00302/0.1466, allocations: 1.744 MB / 0.682 GB, free: 14.82 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.007424/0.1541, allocations: 5.388 MB / 0.6873 GB, free: 9.418 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000106/0.1542, allocations: 0 / 0.6873 GB, free: 9.418 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00136/0.1556, allocations: 374.4 kB / 0.6877 GB, free: 9.051 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001313/0.1557, allocations: 51.67 kB / 0.6877 GB, free: 9 MB / 494.1 MB [/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.003435/0.1592, allocations: 1.504 MB / 0.6892 GB, free: 7.496 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002314/0.1594, allocations: 163.3 kB / 0.6893 GB, free: 7.336 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.748e-05/0.1595, allocations: 9.562 kB / 0.6893 GB, free: 7.328 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.481e-05/0.1595, allocations: 59.72 kB / 0.6894 GB, free: 7.27 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001973/0.1597, allocations: 159.5 kB / 0.6895 GB, free: 7.113 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.938e-05/0.1598, allocations: 16 kB / 0.6896 GB, free: 7.098 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00306/0.1629, allocations: 2.157 MB / 0.6917 GB, free: 4.938 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002145/0.1631, allocations: 275.8 kB / 0.6919 GB, free: 4.668 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002866/0.1634, allocations: 314.1 kB / 0.6922 GB, free: 4.359 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002763/0.1662, allocations: 2.174 MB / 0.6944 GB, free: 2.18 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.1662, allocations: 0 / 0.6944 GB, free: 2.18 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1662, allocations: 0 / 0.6944 GB, free: 2.18 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.912e-05/0.1662, allocations: 0 / 0.6944 GB, free: 2.18 MB / 494.1 MB 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.0105/0.1767, allocations: 1.366 MB / 0.6957 GB, free: 0.7617 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/0.1768, allocations: 16.02 kB / 0.6957 GB, free: 0.7461 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.287e-05/0.1768, allocations: 34.75 kB / 0.6957 GB, free: 0.7031 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000374/0.1772, allocations: 91.59 kB / 0.6958 GB, free: 0.6133 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005336/0.1777, allocations: 414.1 kB / 0.6962 GB, free: 164 kB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.118e-05/0.1777, allocations: 8.375 kB / 0.6962 GB, free: 156 kB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.991e-05/0.1778, allocations: 4.375 kB / 0.6962 GB, free: 152 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004092/0.1782, allocations: 403.2 kB / 0.6966 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.276e-06/0.1782, allocations: 0 / 0.6966 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.243e-05/0.1782, allocations: 4 kB / 0.6966 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.1783, allocations: 0 / 0.6966 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004085/0.1787, allocations: 431.7 kB / 0.697 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005961/0.1793, allocations: 0.6693 MB / 0.6977 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004751/0.1798, allocations: 0.5673 MB / 0.6982 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002822/0.18, allocations: 333.6 kB / 0.6986 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00108/0.1811, allocations: 1.028 MB / 0.6996 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003647/0.1815, allocations: 408.8 kB / 0.7 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.503e-06/0.1815, allocations: 0 / 0.7 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.001218/0.1828, allocations: 1.305 MB / 0.7012 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.393e-05/0.1828, allocations: 81.09 kB / 0.7013 GB, free: 10.6 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001353/0.1842, allocations: 1.293 MB / 0.7026 GB, free: 9.297 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.899e-05/0.1842, allocations: 33.7 kB / 0.7026 GB, free: 9.258 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001917/0.1844, allocations: 281.4 kB / 0.7029 GB, free: 8.977 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.37e-05/0.1845, allocations: 19.8 kB / 0.7029 GB, free: 8.957 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004277/0.1849, allocations: 355.7 kB / 0.7032 GB, free: 8.605 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.846e-05/0.185, allocations: 322 kB / 0.7035 GB, free: 8.285 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001116/0.1861, allocations: 1.369 MB / 0.7049 GB, free: 6.914 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001333/0.1875, allocations: 1.501 MB / 0.7063 GB, free: 5.402 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007086/0.1945, allocations: 3.564 MB / 0.7098 GB, free: 1.746 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.391e-06/0.1946, allocations: 0 / 0.7098 GB, free: 1.746 MB / 0.4981 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004114/0.1987, allocations: 4.012 MB / 0.7137 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.857e-05/0.1987, allocations: 7.984 kB / 0.7137 GB, free: 13.69 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.657e-05/0.1987, allocations: 4 kB / 0.7137 GB, free: 13.68 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.1988, allocations: 0 / 0.7137 GB, free: 13.68 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001213/0.1989, allocations: 19.94 kB / 0.7138 GB, free: 13.66 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.244e-06/0.1989, allocations: 8.016 kB / 0.7138 GB, free: 13.66 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004797/0.1994, allocations: 232.2 kB / 0.714 GB, free: 13.43 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.722e-05/0.1994, allocations: 23.98 kB / 0.714 GB, free: 13.4 MB / 0.5137 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.0003613/0.1998, allocations: 242.3 kB / 0.7142 GB, free: 13.16 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001501/0.2, allocations: 74.62 kB / 0.7143 GB, free: 13.08 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002906/0.2003, allocations: 91.75 kB / 0.7144 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.2003, allocations: 0 / 0.7144 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.2003, allocations: 0 / 0.7144 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.2003, allocations: 7.984 kB / 0.7144 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004052/0.2007, allocations: 0.5063 MB / 0.7149 GB, free: 12.43 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.2007, allocations: 3.938 kB / 0.7149 GB, free: 12.42 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.913e-05/0.2008, allocations: 8 kB / 0.7149 GB, free: 12.41 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.2008, allocations: 4 kB / 0.7149 GB, free: 12.41 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.448e-05/0.2008, allocations: 7.984 kB / 0.7149 GB, free: 12.4 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.993e-06/0.2009, allocations: 0 / 0.7149 GB, free: 12.4 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.2009, allocations: 4.031 kB / 0.7149 GB, free: 12.4 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008391/0.2017, allocations: 1.006 MB / 0.7159 GB, free: 11.38 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001178/0.2018, allocations: 167.6 kB / 0.7161 GB, free: 11.19 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.788e-05/0.2019, allocations: 4 kB / 0.7161 GB, free: 11.19 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001509/0.2021, allocations: 8 kB / 0.7161 GB, free: 11.18 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.263e-05/0.2021, allocations: 7.984 kB / 0.7161 GB, free: 11.17 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.111e-05/0.2021, allocations: 15.92 kB / 0.7161 GB, free: 11.16 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0007392/0.2029, allocations: 0.7261 MB / 0.7168 GB, free: 10.43 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2029, allocations: 0 / 0.7168 GB, free: 10.43 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00141/0.2043, allocations: 0.5779 MB / 0.7174 GB, free: 9.848 MB / 0.5137 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.003326/0.2077, allocations: 2.144 MB / 0.7195 GB, free: 7.688 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002193/0.2099, allocations: 2.556 MB / 0.722 GB, free: 5.117 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.2099, allocations: 0 / 0.722 GB, free: 5.117 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0003014/0.2102, allocations: 347.8 kB / 0.7223 GB, free: 4.777 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003974/0.2106, allocations: 62.44 kB / 0.7224 GB, free: 4.719 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01421/0.2248, allocations: 15.17 MB / 0.7372 GB, free: 5.363 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004977/0.2253, allocations: 0.9917 MB / 0.7381 GB, free: 4.344 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0002319/0.2256, allocations: 37.42 kB / 0.7382 GB, free: 4.309 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003814/0.226, allocations: 291.3 kB / 0.7385 GB, free: 4.023 MB / 0.5294 GB Notification: Performance of SimCode: time 5.51e-07/0.226, allocations: 4 kB / 0.7385 GB, free: 4.02 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04931/0.2753, allocations: 23.89 MB / 0.7618 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.214/8.489, allocations: 20.44 kB / 0.7618 GB, free: 12.34 MB / 0.5606 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)