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.001632/0.001632, allocations: 108 kB / 15.6 MB, free: 132 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.002058/0.002058, allocations: 193 kB / 16.53 MB, free: 6.391 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.349/1.349, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002154/0.002155, allocations: 286.3 kB / 290.7 MB, free: 1.98 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9681/0.9681, allocations: 169.3 MB / 0.4982 GB, free: 13.96 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001784/0.001784, allocations: 91.42 kB / 0.5954 GB, free: 27.85 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1386/0.1404, 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.002929/0.1433, allocations: 1.75 MB / 0.682 GB, free: 14.82 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.007322/0.1507, allocations: 5.39 MB / 0.6873 GB, free: 9.414 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001075/0.1508, allocations: 0 / 0.6873 GB, free: 9.414 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001162/0.152, allocations: 366.4 kB / 0.6876 GB, free: 9.055 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001326/0.1521, allocations: 63.66 kB / 0.6877 GB, free: 8.992 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.003501/0.1556, allocations: 1.498 MB / 0.6892 GB, free: 7.496 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002306/0.1559, allocations: 159.3 kB / 0.6893 GB, free: 7.34 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.909e-05/0.1559, allocations: 17.55 kB / 0.6893 GB, free: 7.324 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.497e-05/0.156, allocations: 67.64 kB / 0.6894 GB, free: 7.258 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002079/0.1562, allocations: 167.5 kB / 0.6896 GB, free: 7.094 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.19e-05/0.1563, allocations: 12 kB / 0.6896 GB, free: 7.082 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003002/0.1593, allocations: 2.149 MB / 0.6917 GB, free: 4.93 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002354/0.1595, allocations: 279.8 kB / 0.6919 GB, free: 4.656 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002671/0.1598, allocations: 306.1 kB / 0.6922 GB, free: 4.355 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00291/0.1627, allocations: 2.178 MB / 0.6944 GB, free: 2.172 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.1627, allocations: 3.984 kB / 0.6944 GB, free: 2.168 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1628, allocations: 0 / 0.6944 GB, free: 2.168 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.341e-05/0.1628, allocations: 0 / 0.6944 GB, free: 2.168 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.01051/0.1733, allocations: 1.366 MB / 0.6957 GB, free: 0.75 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.172e-05/0.1733, allocations: 8.031 kB / 0.6957 GB, free: 0.7422 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.696e-05/0.1734, allocations: 34.73 kB / 0.6957 GB, free: 0.6992 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003766/0.1738, allocations: 95.59 kB / 0.6958 GB, free: 0.6055 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004416/0.1742, allocations: 418.1 kB / 0.6962 GB, free: 152 kB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.839e-06/0.1742, allocations: 384 / 0.6962 GB, free: 152 kB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.913e-05/0.1743, allocations: 8.375 kB / 0.6962 GB, free: 144 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004409/0.1747, allocations: 399.2 kB / 0.6966 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.205e-06/0.1748, allocations: 0 / 0.6966 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.313e-05/0.1748, allocations: 4 kB / 0.6966 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.698e-06/0.1748, allocations: 0 / 0.6966 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004475/0.1752, allocations: 435.7 kB / 0.697 GB, free: 15.31 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006687/0.1759, allocations: 0.6615 MB / 0.6977 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000535/0.1765, allocations: 0.5711 MB / 0.6982 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003088/0.1768, allocations: 333.7 kB / 0.6986 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001065/0.1779, allocations: 1.028 MB / 0.6996 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000397/0.1783, allocations: 404.8 kB / 0.6999 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.433e-06/0.1783, allocations: 0 / 0.6999 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.001297/0.1796, allocations: 1.293 MB / 0.7012 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.922e-05/0.1796, allocations: 89.22 kB / 0.7013 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001166/0.1808, allocations: 1.293 MB / 0.7026 GB, free: 9.301 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.656e-05/0.1809, allocations: 29.7 kB / 0.7026 GB, free: 9.266 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001948/0.1811, allocations: 285.4 kB / 0.7029 GB, free: 8.98 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.117e-05/0.1811, allocations: 15.81 kB / 0.7029 GB, free: 8.965 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003094/0.1814, allocations: 355.6 kB / 0.7032 GB, free: 8.613 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001064/0.1815, allocations: 322 kB / 0.7035 GB, free: 8.293 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001216/0.1828, allocations: 1.369 MB / 0.7049 GB, free: 6.922 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001271/0.184, allocations: 1.501 MB / 0.7063 GB, free: 5.41 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006867/0.1909, allocations: 3.56 MB / 0.7098 GB, free: 1.758 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.1909, allocations: 0 / 0.7098 GB, free: 1.758 MB / 0.4981 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004337/0.1953, allocations: 4.014 MB / 0.7137 GB, free: 13.71 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.058e-05/0.1953, allocations: 11.98 kB / 0.7137 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.468e-05/0.1953, allocations: 7.875 kB / 0.7137 GB, free: 13.69 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.473e-05/0.1953, allocations: 0 / 0.7137 GB, free: 13.69 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001453/0.1955, allocations: 19.94 kB / 0.7138 GB, free: 13.67 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.115e-06/0.1955, allocations: 3.984 kB / 0.7138 GB, free: 13.66 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004633/0.196, allocations: 228.2 kB / 0.714 GB, free: 13.44 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.932e-05/0.196, allocations: 27.98 kB / 0.714 GB, free: 13.41 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.0002942/0.1963, allocations: 250.4 kB / 0.7142 GB, free: 13.16 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.63e-05/0.1964, allocations: 74.62 kB / 0.7143 GB, free: 13.08 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002863/0.1967, allocations: 79.75 kB / 0.7144 GB, free: 13 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.942e-06/0.1967, allocations: 4 kB / 0.7144 GB, free: 12.99 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.1967, allocations: 4 kB / 0.7144 GB, free: 12.99 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.1967, allocations: 3.984 kB / 0.7144 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004185/0.1972, allocations: 0.518 MB / 0.7149 GB, free: 12.42 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.1972, allocations: 3.938 kB / 0.7149 GB, free: 12.42 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.982e-05/0.1973, allocations: 4 kB / 0.7149 GB, free: 12.41 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.34e-06/0.1973, allocations: 3.984 kB / 0.7149 GB, free: 12.41 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.732e-05/0.1973, allocations: 7.984 kB / 0.7149 GB, free: 12.4 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.1973, allocations: 0 / 0.7149 GB, free: 12.4 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.1973, allocations: 0 / 0.7149 GB, free: 12.4 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008697/0.1982, allocations: 1.014 MB / 0.7159 GB, free: 11.37 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001309/0.1983, allocations: 167.6 kB / 0.7161 GB, free: 11.18 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.747e-05/0.1984, allocations: 0 / 0.7161 GB, free: 11.18 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001511/0.1986, allocations: 8 kB / 0.7161 GB, free: 11.18 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.395e-05/0.1986, allocations: 7.984 kB / 0.7161 GB, free: 11.17 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.212e-05/0.1986, allocations: 11.98 kB / 0.7161 GB, free: 11.16 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0007914/0.1994, allocations: 0.7261 MB / 0.7168 GB, free: 10.43 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.6e-07/0.1994, allocations: 0 / 0.7168 GB, free: 10.43 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001407/0.2009, 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.003097/0.204, allocations: 2.158 MB / 0.7195 GB, free: 7.676 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002145/0.2061, allocations: 2.544 MB / 0.722 GB, free: 5.117 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2061, allocations: 0 / 0.722 GB, free: 5.117 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0003145/0.2064, allocations: 343.7 kB / 0.7223 GB, free: 4.781 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003663/0.2068, allocations: 63.03 kB / 0.7224 GB, free: 4.723 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01404/0.2209, allocations: 15.17 MB / 0.7372 GB, free: 5.367 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005041/0.2214, allocations: 0.9879 MB / 0.7381 GB, free: 4.352 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0001851/0.2216, allocations: 45.34 kB / 0.7382 GB, free: 4.309 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002964/0.2219, allocations: 292.4 kB / 0.7385 GB, free: 4.023 MB / 0.5294 GB Notification: Performance of SimCode: time 5.31e-07/0.2219, allocations: 0 / 0.7385 GB, free: 4.023 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04787/0.2698, allocations: 23.9 MB / 0.7618 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.445/9.715, allocations: 12.44 kB / 0.7618 GB, free: 12.35 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation_fmu --startTime=0 --stopTime=1.8e+12 --timeout=50 --tolerance=1e-06 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)