Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.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/BuildSysPro 3.6.0-master/package.mo", uses=false) Using package BuildSysPro with version 3.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0-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(BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_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.007872/0.007872, allocations: 100.9 kB / 15.73 MB, free: 6.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002125/0.002125, allocations: 192.8 kB / 16.67 MB, free: 5.969 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.455/1.455, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0-master/Building/BuildingEnvelope/HeatTransfer/package.mo:2:1-40:17:writable] Warning: Soil_case_nappe was referenced in the package.order file, but was not found in package.mo, Soil_case_nappe/package.mo or Soil_case_nappe.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0-master/package.mo): time 0.9301/0.9301, allocations: 143.3 MB / 433.8 MB, free: 11.85 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002064/0.002064, allocations: 64.55 kB / 0.5954 GB, free: 12.59 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1658/0.1679, allocations: 82.04 MB / 0.6755 GB, free: 10.59 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002646/0.1706, allocations: 1.425 MB / 0.6769 GB, free: 9.156 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.006756/0.1773, allocations: 4.204 MB / 0.681 GB, free: 4.93 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.983e-05/0.1774, allocations: 7.938 kB / 0.681 GB, free: 4.922 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0001159/0.1776, allocations: 11.92 kB / 0.681 GB, free: 4.91 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.0002341/0.1779, allocations: 35.77 kB / 0.6811 GB, free: 4.875 MB / 0.5137 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/BuildSysPro 3.6.0-master/IBPSA/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.004499/0.1824, allocations: 1.5 MB / 0.6825 GB, free: 3.375 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0001983/0.1826, allocations: 91.67 kB / 0.6826 GB, free: 3.285 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 7.005e-05/0.1827, allocations: 4 kB / 0.6826 GB, free: 3.281 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 9.077e-05/0.1828, allocations: 47.84 kB / 0.6827 GB, free: 3.234 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002816/0.183, allocations: 155.6 kB / 0.6828 GB, free: 3.082 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 4.532e-05/0.1831, allocations: 12 kB / 0.6828 GB, free: 3.07 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00422/0.1873, allocations: 2.207 MB / 0.685 GB, free: 0.8594 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002965/0.1877, allocations: 259.9 kB / 0.6852 GB, free: 0.6055 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0003648/0.188, allocations: 278.3 kB / 0.6855 GB, free: 340 kB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.004595/0.1926, allocations: 2.126 MB / 0.6876 GB, free: 14.2 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.1927, allocations: 0 / 0.6876 GB, free: 14.2 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.435e-06/0.1927, allocations: 0 / 0.6876 GB, free: 14.2 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.989e-05/0.1927, allocations: 0 / 0.6876 GB, free: 14.2 MB / 0.5294 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.0117/0.2044, allocations: 1.347 MB / 0.6889 GB, free: 12.8 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 5.336e-05/0.2045, allocations: 8.031 kB / 0.6889 GB, free: 12.79 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.275e-05/0.2046, allocations: 34.73 kB / 0.6889 GB, free: 12.75 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004674/0.205, allocations: 96.25 kB / 0.689 GB, free: 12.65 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005605/0.2056, allocations: 365 kB / 0.6894 GB, free: 12.25 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.494e-05/0.2056, allocations: 4.375 kB / 0.6894 GB, free: 12.24 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.116e-05/0.2057, allocations: 16.34 kB / 0.6894 GB, free: 12.23 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005485/0.2063, allocations: 387.3 kB / 0.6897 GB, free: 11.84 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.576e-05/0.2063, allocations: 0 / 0.6897 GB, free: 11.84 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.823e-05/0.2063, allocations: 0 / 0.6897 GB, free: 11.84 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.136e-05/0.2063, allocations: 8 kB / 0.6898 GB, free: 11.83 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005351/0.2069, allocations: 435.7 kB / 0.6902 GB, free: 11.4 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007728/0.2077, allocations: 0.6487 MB / 0.6908 GB, free: 10.7 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005996/0.2083, allocations: 0.5633 MB / 0.6914 GB, free: 10.12 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003602/0.2086, allocations: 337.7 kB / 0.6917 GB, free: 9.785 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001226/0.2099, allocations: 1.032 MB / 0.6927 GB, free: 8.531 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004438/0.2103, allocations: 400.8 kB / 0.6931 GB, free: 8.121 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=8): time 1.553e-06/0.2103, allocations: 3.938 kB / 0.6931 GB, free: 8.117 MB / 0.5294 GB Notification: Performance of matching and sorting (n=8): time 0.001504/0.2119, allocations: 1.293 MB / 0.6943 GB, free: 6.816 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.155e-05/0.2119, allocations: 89.09 kB / 0.6944 GB, free: 6.711 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001403/0.2133, allocations: 1.223 MB / 0.6956 GB, free: 5.473 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 5.3e-05/0.2134, allocations: 29.7 kB / 0.6956 GB, free: 5.438 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002322/0.2137, allocations: 261.9 kB / 0.6959 GB, free: 5.176 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 4.476e-05/0.2137, allocations: 23.84 kB / 0.6959 GB, free: 5.152 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003947/0.2141, allocations: 351.6 kB / 0.6962 GB, free: 4.805 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001398/0.2143, allocations: 310 kB / 0.6965 GB, free: 4.496 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001518/0.2158, allocations: 1.369 MB / 0.6979 GB, free: 3.125 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001597/0.2174, allocations: 1.516 MB / 0.6994 GB, free: 1.602 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007685/0.2251, allocations: 3.553 MB / 0.7028 GB, free: 13.95 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.541e-06/0.2251, allocations: 0 / 0.7028 GB, free: 13.95 MB / 0.545 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004983/0.2301, allocations: 4.011 MB / 0.7067 GB, free: 9.906 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.158e-05/0.2302, allocations: 4 kB / 0.7067 GB, free: 9.902 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.096e-05/0.2302, allocations: 4 kB / 0.7068 GB, free: 9.898 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.706e-05/0.2302, allocations: 0 / 0.7068 GB, free: 9.898 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001365/0.2304, allocations: 15.98 kB / 0.7068 GB, free: 9.883 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.979e-06/0.2304, allocations: 4 kB / 0.7068 GB, free: 9.879 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005674/0.2309, allocations: 245.3 kB / 0.707 GB, free: 9.637 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.99e-05/0.231, allocations: 23.98 kB / 0.707 GB, free: 9.613 MB / 0.545 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.0003791/0.2314, allocations: 245.5 kB / 0.7073 GB, free: 9.367 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.196e-05/0.2315, allocations: 79.22 kB / 0.7073 GB, free: 9.289 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002894/0.2318, allocations: 75.02 kB / 0.7074 GB, free: 9.203 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.2318, allocations: 4 kB / 0.7074 GB, free: 9.199 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.2318, allocations: 0 / 0.7074 GB, free: 9.199 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.2318, allocations: 0 / 0.7074 GB, free: 9.199 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004827/0.2323, allocations: 0.4892 MB / 0.7079 GB, free: 8.664 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.2323, allocations: 11.91 kB / 0.7079 GB, free: 8.652 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.457e-05/0.2324, allocations: 7.984 kB / 0.7079 GB, free: 8.645 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.115e-06/0.2324, allocations: 0 / 0.7079 GB, free: 8.645 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.672e-05/0.2324, allocations: 8 kB / 0.7079 GB, free: 8.637 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.2324, allocations: 0 / 0.7079 GB, free: 8.637 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.2325, allocations: 0 / 0.7079 GB, free: 8.637 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001043/0.2335, allocations: 1.006 MB / 0.7089 GB, free: 7.609 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001356/0.2336, allocations: 156.4 kB / 0.709 GB, free: 7.438 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.416e-05/0.2337, allocations: 4 kB / 0.7091 GB, free: 7.434 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000138/0.2339, allocations: 7.984 kB / 0.7091 GB, free: 7.426 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.98e-05/0.2339, allocations: 7.938 kB / 0.7091 GB, free: 7.418 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.129e-05/0.234, allocations: 15.97 kB / 0.7091 GB, free: 7.402 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0008475/0.2348, allocations: 0.6689 MB / 0.7097 GB, free: 6.727 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2348, allocations: 7.938 kB / 0.7097 GB, free: 6.719 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.001495/0.2363, allocations: 0.5806 MB / 0.7103 GB, free: 6.137 MB / 0.545 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.003504/0.2398, allocations: 2.147 MB / 0.7124 GB, free: 3.973 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.002921/0.2428, allocations: 2.552 MB / 0.7149 GB, free: 1.406 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.2428, allocations: 0 / 0.7149 GB, free: 1.406 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0004076/0.2432, allocations: 347.7 kB / 0.7152 GB, free: 1.066 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003547/0.2436, allocations: 32.73 kB / 0.7153 GB, free: 1.031 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01761/0.2612, allocations: 15.28 MB / 0.7302 GB, free: 1.574 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006321/0.2619, allocations: 0.9718 MB / 0.7311 GB, free: 0.5781 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001698/0.2621, allocations: 28.56 kB / 0.7312 GB, free: 0.5508 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003558/0.2624, allocations: 275.9 kB / 0.7314 GB, free: 288 kB / 0.5606 GB Notification: Performance of SimCode: time 2.314e-06/0.2625, allocations: 0 / 0.7314 GB, free: 288 kB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3616/0.6241, allocations: 23.93 MB / 0.7548 GB, free: 66.67 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.61/11.23, allocations: 18.22 kB / 0.7548 GB, free: 66.66 MB / 0.5762 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & python3 -m fmpy simulate --output-file BuildSysPro_BuildSysPro.IBPSA.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 BuildSysPro_BuildSysPro_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1)