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.001104/0.001104, 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.001206/0.001206, allocations: 193.8 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.291/1.291, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002084/0.002084, allocations: 294.9 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.9576/0.9576, allocations: 169.3 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002916/0.002916, allocations: 98.27 kB / 0.5954 GB, free: 27.69 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1573/0.1602, allocations: 86.98 MB / 0.6803 GB, free: 0.5273 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002802/0.1631, allocations: 1.414 MB / 0.6817 GB, free: 15.11 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.006144/0.1692, allocations: 4.202 MB / 0.6858 GB, free: 10.89 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.288e-05/0.1693, allocations: 0 / 0.6858 GB, free: 10.89 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 9.835e-05/0.1694, allocations: 11.86 kB / 0.6858 GB, free: 10.88 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002146/0.1697, allocations: 35.83 kB / 0.6859 GB, free: 10.85 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.003542/0.1732, allocations: 1.498 MB / 0.6873 GB, free: 9.352 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000129/0.1734, allocations: 91.69 kB / 0.6874 GB, free: 9.262 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.393e-05/0.1734, allocations: 15.91 kB / 0.6874 GB, free: 9.246 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.474e-05/0.1735, allocations: 43.86 kB / 0.6875 GB, free: 9.203 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002202/0.1737, allocations: 147.6 kB / 0.6876 GB, free: 9.059 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.448e-05/0.1738, allocations: 16 kB / 0.6876 GB, free: 9.043 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003001/0.1768, allocations: 2.157 MB / 0.6897 GB, free: 6.883 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001987/0.177, allocations: 267.9 kB / 0.69 GB, free: 6.621 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002464/0.1773, allocations: 278.3 kB / 0.6902 GB, free: 6.348 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002883/0.1802, allocations: 2.097 MB / 0.6923 GB, free: 4.246 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.868e-06/0.1802, allocations: 0 / 0.6923 GB, free: 4.246 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1802, allocations: 0 / 0.6923 GB, free: 4.246 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.324e-05/0.1802, allocations: 4 kB / 0.6923 GB, free: 4.242 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.01031/0.1905, allocations: 1.304 MB / 0.6936 GB, free: 2.887 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/0.1906, allocations: 8.031 kB / 0.6936 GB, free: 2.879 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.998e-05/0.1906, allocations: 38.73 kB / 0.6936 GB, free: 2.832 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00038/0.191, allocations: 83.69 kB / 0.6937 GB, free: 2.75 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003785/0.1914, allocations: 368.9 kB / 0.694 GB, free: 2.34 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.295e-05/0.1914, allocations: 8.375 kB / 0.6941 GB, free: 2.332 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.938e-05/0.1915, allocations: 12.36 kB / 0.6941 GB, free: 2.32 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004073/0.1919, allocations: 383.3 kB / 0.6944 GB, free: 1.934 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/0.1919, allocations: 0 / 0.6944 GB, free: 1.934 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.147e-05/0.1919, allocations: 7.938 kB / 0.6944 GB, free: 1.926 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.528e-06/0.1919, allocations: 0 / 0.6944 GB, free: 1.926 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004182/0.1924, allocations: 443.7 kB / 0.6949 GB, free: 1.492 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005425/0.1929, allocations: 0.6366 MB / 0.6955 GB, free: 0.8047 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004818/0.1934, allocations: 0.5594 MB / 0.696 GB, free: 232 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002943/0.1937, allocations: 333.8 kB / 0.6964 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009833/0.1947, allocations: 1.032 MB / 0.6974 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000368/0.1951, allocations: 404.8 kB / 0.6977 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.373e-06/0.1951, allocations: 8 kB / 0.6978 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.001227/0.1963, allocations: 1.285 MB / 0.699 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.727e-05/0.1964, allocations: 85.05 kB / 0.6991 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001062/0.1974, allocations: 1.218 MB / 0.7003 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.539e-05/0.1975, allocations: 29.7 kB / 0.7003 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001656/0.1977, allocations: 261.5 kB / 0.7006 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.216e-05/0.1977, allocations: 19.8 kB / 0.7006 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002947/0.198, allocations: 351.6 kB / 0.7009 GB, free: 10.93 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.056e-05/0.1981, allocations: 310 kB / 0.7012 GB, free: 10.62 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001132/0.1992, allocations: 1.373 MB / 0.7025 GB, free: 9.242 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001208/0.2005, allocations: 1.501 MB / 0.704 GB, free: 7.73 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006828/0.2073, allocations: 3.557 MB / 0.7075 GB, free: 4.082 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.2073, allocations: 0 / 0.7075 GB, free: 4.082 MB / 0.4981 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.003956/0.2113, allocations: 4.02 MB / 0.7114 GB, free: 28 kB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.077e-05/0.2113, allocations: 11.94 kB / 0.7114 GB, free: 16 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.545e-05/0.2113, allocations: 0 / 0.7114 GB, free: 16 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.762e-05/0.2114, allocations: 8.031 kB / 0.7114 GB, free: 8 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001479/0.2115, allocations: 23.97 kB / 0.7115 GB, free: 15.98 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.68e-06/0.2115, allocations: 0 / 0.7115 GB, free: 15.98 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000453/0.212, allocations: 228.2 kB / 0.7117 GB, free: 15.76 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.612e-05/0.212, allocations: 23.98 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.0002666/0.2123, allocations: 242.3 kB / 0.7119 GB, free: 15.49 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.57e-05/0.2124, allocations: 66.72 kB / 0.712 GB, free: 15.42 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002672/0.2126, allocations: 83 kB / 0.7121 GB, free: 15.33 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/0.2127, allocations: 0 / 0.7121 GB, free: 15.33 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.2127, allocations: 0 / 0.7121 GB, free: 15.33 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.2127, allocations: 0 / 0.7121 GB, free: 15.33 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003931/0.2131, allocations: 496.9 kB / 0.7125 GB, free: 14.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.2131, allocations: 3.938 kB / 0.7125 GB, free: 14.8 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.261e-05/0.2132, allocations: 7.984 kB / 0.7126 GB, free: 14.79 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.137e-06/0.2132, allocations: 4.031 kB / 0.7126 GB, free: 14.79 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.393e-05/0.2132, allocations: 4 kB / 0.7126 GB, free: 14.78 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.704e-06/0.2132, allocations: 3.938 kB / 0.7126 GB, free: 14.78 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.2132, allocations: 4 kB / 0.7126 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008543/0.2141, allocations: 0.9974 MB / 0.7135 GB, free: 13.75 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001024/0.2142, allocations: 155.8 kB / 0.7137 GB, free: 13.58 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.354e-05/0.2143, allocations: 8 kB / 0.7137 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001372/0.2144, allocations: 7.984 kB / 0.7137 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.337e-05/0.2144, allocations: 4 kB / 0.7137 GB, free: 13.56 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.093e-05/0.2145, allocations: 11.97 kB / 0.7137 GB, free: 13.55 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.000682/0.2152, allocations: 0.6689 MB / 0.7144 GB, free: 12.88 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2152, allocations: 0 / 0.7144 GB, free: 12.88 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001411/0.2166, allocations: 0.5779 MB / 0.7149 GB, free: 12.3 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.003239/0.2198, allocations: 2.144 MB / 0.717 GB, free: 10.14 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002162/0.222, allocations: 2.561 MB / 0.7195 GB, free: 7.562 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.222, allocations: 0 / 0.7195 GB, free: 7.562 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0003159/0.2224, allocations: 335.8 kB / 0.7199 GB, free: 7.234 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002906/0.2227, allocations: 36.59 kB / 0.7199 GB, free: 7.199 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01365/0.2363, allocations: 15.16 MB / 0.7347 GB, free: 7.871 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004846/0.2368, allocations: 0.964 MB / 0.7356 GB, free: 6.879 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0001571/0.237, allocations: 32.56 kB / 0.7357 GB, free: 6.848 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002676/0.2373, allocations: 268.4 kB / 0.7359 GB, free: 6.586 MB / 0.5294 GB Notification: Performance of SimCode: time 6.31e-07/0.2373, allocations: 192 / 0.7359 GB, free: 6.586 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04547/0.2827, allocations: 23.67 MB / 0.759 GB, free: 15.12 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.944/8.226, allocations: 4.5 kB / 0.759 GB, free: 15.12 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters_res.csv --start-time 0 --stop-time 4.12e+08 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 164800 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)