Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.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_1borehole_5meters,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters",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.001561/0.001561, 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.002105/0.002104, allocations: 193.4 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.366/1.366, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002267/0.002267, allocations: 279 kB / 290.7 MB, free: 2.02 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9589/0.9589, allocations: 169.3 MB / 0.4982 GB, free: 13.88 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00188/0.001881, allocations: 100.8 kB / 0.5954 GB, free: 28.09 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1507/0.1526, allocations: 86.98 MB / 0.6803 GB, free: 0.5195 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002792/0.1555, allocations: 1.41 MB / 0.6817 GB, free: 15.1 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.006426/0.1619, allocations: 4.202 MB / 0.6858 GB, free: 10.89 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.081e-05/0.162, allocations: 3.938 kB / 0.6858 GB, free: 10.88 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000114/0.1622, allocations: 7.922 kB / 0.6858 GB, free: 10.88 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003937/0.1626, allocations: 39.78 kB / 0.6859 GB, free: 10.84 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.004132/0.1667, allocations: 1.498 MB / 0.6873 GB, free: 9.34 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001423/0.1669, allocations: 95.67 kB / 0.6874 GB, free: 9.246 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.693e-05/0.1669, allocations: 4 kB / 0.6874 GB, free: 9.242 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.007e-05/0.167, allocations: 47.89 kB / 0.6875 GB, free: 9.195 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002145/0.1672, allocations: 147.6 kB / 0.6876 GB, free: 9.051 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.565e-05/0.1673, allocations: 16 kB / 0.6876 GB, free: 9.035 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003356/0.1707, allocations: 2.157 MB / 0.6897 GB, free: 6.875 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002055/0.1709, allocations: 271.8 kB / 0.69 GB, free: 6.609 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002471/0.1711, allocations: 274.3 kB / 0.6902 GB, free: 6.34 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002986/0.1741, allocations: 2.1 MB / 0.6923 GB, free: 4.234 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.1742, allocations: 4 kB / 0.6923 GB, free: 4.23 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1742, allocations: 0 / 0.6923 GB, free: 4.23 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.084e-05/0.1742, allocations: 0 / 0.6923 GB, free: 4.23 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.01013/0.1843, allocations: 1.3 MB / 0.6936 GB, free: 2.879 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.65e-05/0.1844, allocations: 8.031 kB / 0.6936 GB, free: 2.871 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.501e-05/0.1844, allocations: 34.75 kB / 0.6936 GB, free: 2.828 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003735/0.1848, allocations: 95.67 kB / 0.6937 GB, free: 2.734 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003634/0.1851, allocations: 368.8 kB / 0.6941 GB, free: 2.324 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.568e-05/0.1852, allocations: 4.375 kB / 0.6941 GB, free: 2.32 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.85e-05/0.1852, allocations: 8.375 kB / 0.6941 GB, free: 2.312 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004017/0.1856, allocations: 387.3 kB / 0.6944 GB, free: 1.922 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.1856, allocations: 4 kB / 0.6944 GB, free: 1.918 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.111e-05/0.1857, allocations: 0 / 0.6944 GB, free: 1.918 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.1857, allocations: 0 / 0.6944 GB, free: 1.918 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003907/0.1861, allocations: 443.7 kB / 0.6949 GB, free: 1.484 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005878/0.1867, allocations: 0.6327 MB / 0.6955 GB, free: 0.8008 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004759/0.1872, allocations: 0.5594 MB / 0.696 GB, free: 228 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002914/0.1875, allocations: 337.7 kB / 0.6964 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009671/0.1885, allocations: 1.028 MB / 0.6974 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003655/0.1889, allocations: 416.8 kB / 0.6978 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.383e-06/0.1889, allocations: 3.938 kB / 0.6978 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.001365/0.1903, allocations: 1.281 MB / 0.699 GB, free: 12.92 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.563e-05/0.1903, allocations: 85.09 kB / 0.6991 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001047/0.1914, allocations: 1.214 MB / 0.7003 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.735e-05/0.1914, allocations: 41.61 kB / 0.7003 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001619/0.1916, allocations: 257.4 kB / 0.7006 GB, free: 11.28 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.255e-05/0.1916, allocations: 19.8 kB / 0.7006 GB, free: 11.26 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002883/0.1919, allocations: 351.6 kB / 0.7009 GB, free: 10.91 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001032/0.192, allocations: 310 kB / 0.7012 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001211/0.1932, allocations: 1.373 MB / 0.7026 GB, free: 9.23 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001179/0.1944, allocations: 1.509 MB / 0.704 GB, free: 7.711 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006618/0.2011, allocations: 3.553 MB / 0.7075 GB, free: 4.066 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.2011, allocations: 0 / 0.7075 GB, free: 4.066 MB / 0.4981 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004284/0.2054, allocations: 4.019 MB / 0.7114 GB, free: 12 kB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.584e-05/0.2054, allocations: 8 kB / 0.7114 GB, free: 4 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.467e-05/0.2054, allocations: 4 kB / 0.7114 GB, free: 0 / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.788e-05/0.2054, allocations: 4.047 kB / 0.7114 GB, free: 15.99 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001201/0.2056, allocations: 15.94 kB / 0.7115 GB, free: 15.98 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.133e-06/0.2056, allocations: 0 / 0.7115 GB, free: 15.98 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004302/0.206, allocations: 224.3 kB / 0.7117 GB, free: 15.76 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.083e-05/0.2061, allocations: 31.97 kB / 0.7117 GB, free: 15.73 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.000279/0.2064, allocations: 250.3 kB / 0.7119 GB, free: 15.47 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.758e-05/0.2064, allocations: 66.72 kB / 0.712 GB, free: 15.41 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002816/0.2067, allocations: 71.08 kB / 0.7121 GB, free: 15.33 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.2067, allocations: 3.984 kB / 0.7121 GB, free: 15.32 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.2068, allocations: 0 / 0.7121 GB, free: 15.32 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.2068, allocations: 4 kB / 0.7121 GB, free: 15.32 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003796/0.2071, allocations: 492.9 kB / 0.7125 GB, free: 14.79 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.2072, allocations: 7.969 kB / 0.7126 GB, free: 14.79 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.883e-05/0.2072, allocations: 7.938 kB / 0.7126 GB, free: 14.78 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.2072, allocations: 4 kB / 0.7126 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.3e-05/0.2073, allocations: 3.984 kB / 0.7126 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.2073, allocations: 0 / 0.7126 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.2073, allocations: 4 kB / 0.7126 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001017/0.2083, allocations: 0.9936 MB / 0.7135 GB, free: 13.75 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001077/0.2084, allocations: 163.8 kB / 0.7137 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.975e-05/0.2085, allocations: 4 kB / 0.7137 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001271/0.2086, allocations: 4 kB / 0.7137 GB, free: 13.56 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.071e-05/0.2087, allocations: 7.984 kB / 0.7137 GB, free: 13.55 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.39e-05/0.2087, allocations: 15.92 kB / 0.7137 GB, free: 13.54 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0006547/0.2094, allocations: 0.6689 MB / 0.7144 GB, free: 12.86 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2094, allocations: 11.94 kB / 0.7144 GB, free: 12.85 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001297/0.2107, allocations: 0.5779 MB / 0.715 GB, free: 12.27 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.003051/0.2137, allocations: 2.136 MB / 0.717 GB, free: 10.12 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002284/0.216, allocations: 2.552 MB / 0.7195 GB, free: 7.559 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.216, allocations: 0 / 0.7195 GB, free: 7.559 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0003016/0.2163, allocations: 347.7 kB / 0.7199 GB, free: 7.219 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002768/0.2166, allocations: 28.61 kB / 0.7199 GB, free: 7.191 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01435/0.231, allocations: 15.16 MB / 0.7347 GB, free: 7.855 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004841/0.2315, allocations: 0.964 MB / 0.7356 GB, free: 6.863 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0001733/0.2317, allocations: 32.56 kB / 0.7357 GB, free: 6.832 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002782/0.232, allocations: 268.5 kB / 0.7359 GB, free: 6.57 MB / 0.5294 GB Notification: Performance of SimCode: time 8.22e-07/0.232, allocations: 4 kB / 0.7359 GB, free: 6.566 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05505/0.287, allocations: 23.66 MB / 0.759 GB, free: 15.11 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.267/9.554, allocations: 8.484 kB / 0.759 GB, free: 15.11 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters_fmu --startTime=0 --stopTime=4.12e+08 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.fmu > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1)