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.001258/0.001258, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001179/0.001179, allocations: 193 kB / 16.25 MB, free: 6.617 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.343/1.343, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001995/0.001995, allocations: 282.5 kB / 290.3 MB, free: 2.145 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8912/0.8912, allocations: 169.2 MB / 0.4978 GB, free: 14.05 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001568/0.001568, allocations: 97.48 kB / 0.5948 GB, free: 28.04 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1647/0.1663, allocations: 86.98 MB / 0.6798 GB, free: 0.9062 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002295/0.1686, allocations: 1.477 MB / 0.6812 GB, free: 15.42 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.005597/0.1742, allocations: 4.224 MB / 0.6853 GB, free: 11.19 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.721e-05/0.1743, allocations: 0 / 0.6853 GB, free: 11.19 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001059/0.1744, allocations: 11.88 kB / 0.6854 GB, free: 11.18 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002114/0.1747, allocations: 31.89 kB / 0.6854 GB, free: 11.15 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.003462/0.1781, allocations: 1.345 MB / 0.6867 GB, free: 9.805 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001323/0.1783, allocations: 95.67 kB / 0.6868 GB, free: 9.711 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.334e-05/0.1783, allocations: 4 kB / 0.6868 GB, free: 9.707 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.787e-05/0.1784, allocations: 47.89 kB / 0.6868 GB, free: 9.66 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002228/0.1786, allocations: 164.8 kB / 0.687 GB, free: 9.5 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.293e-05/0.1787, allocations: 12 kB / 0.687 GB, free: 9.488 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002563/0.1812, allocations: 2.188 MB / 0.6891 GB, free: 7.297 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001794/0.1814, allocations: 271.8 kB / 0.6894 GB, free: 7.031 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001983/0.1816, allocations: 282.3 kB / 0.6897 GB, free: 6.754 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002052/0.1837, allocations: 2.112 MB / 0.6917 GB, free: 4.633 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.1837, allocations: 0 / 0.6917 GB, free: 4.633 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.544e-06/0.1837, allocations: 7.922 kB / 0.6917 GB, free: 4.625 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.663e-06/0.1837, allocations: 0 / 0.6917 GB, free: 4.625 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.0087/0.1924, allocations: 1.296 MB / 0.693 GB, free: 3.277 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.847e-05/0.1925, allocations: 16.03 kB / 0.693 GB, free: 3.262 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.069e-05/0.1926, allocations: 30.75 kB / 0.6931 GB, free: 3.223 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000366/0.1929, allocations: 83.69 kB / 0.6931 GB, free: 3.141 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003564/0.1933, allocations: 376.8 kB / 0.6935 GB, free: 2.723 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.198e-05/0.1933, allocations: 4.375 kB / 0.6935 GB, free: 2.719 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.681e-05/0.1934, allocations: 8.375 kB / 0.6935 GB, free: 2.711 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003974/0.1938, allocations: 391.3 kB / 0.6939 GB, free: 2.316 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.737e-06/0.1938, allocations: 3.938 kB / 0.6939 GB, free: 2.312 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.241e-05/0.1938, allocations: 3.984 kB / 0.6939 GB, free: 2.309 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.1938, allocations: 0 / 0.6939 GB, free: 2.309 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003838/0.1942, allocations: 431.8 kB / 0.6943 GB, free: 1.887 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005507/0.1948, allocations: 0.6327 MB / 0.6949 GB, free: 1.203 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004554/0.1952, allocations: 0.5633 MB / 0.6955 GB, free: 0.6211 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002816/0.1955, allocations: 337.7 kB / 0.6958 GB, free: 292 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009892/0.1965, allocations: 1.028 MB / 0.6968 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003746/0.1969, allocations: 412.8 kB / 0.6972 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.332e-06/0.1969, allocations: 0 / 0.6972 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.001212/0.1981, allocations: 1.285 MB / 0.6984 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.606e-05/0.1982, allocations: 85.05 kB / 0.6985 GB, free: 13.22 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009952/0.1992, allocations: 1.218 MB / 0.6997 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.685e-05/0.1992, allocations: 33.7 kB / 0.6997 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001605/0.1994, allocations: 257.4 kB / 0.7 GB, free: 11.69 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.923e-05/0.1994, allocations: 19.8 kB / 0.7 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002854/0.1997, allocations: 351.6 kB / 0.7003 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.221e-05/0.1998, allocations: 322.1 kB / 0.7007 GB, free: 11 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001069/0.2009, allocations: 1.369 MB / 0.702 GB, free: 9.629 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001155/0.2021, allocations: 1.501 MB / 0.7035 GB, free: 8.117 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006507/0.2086, allocations: 3.56 MB / 0.7069 GB, free: 4.465 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.2086, allocations: 3.938 kB / 0.7069 GB, free: 4.461 MB / 0.4981 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.003793/0.2124, allocations: 4.006 MB / 0.7108 GB, free: 428 kB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.405e-05/0.2124, allocations: 8 kB / 0.7109 GB, free: 420 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.638e-05/0.2125, allocations: 0 / 0.7109 GB, free: 420 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.979e-05/0.2125, allocations: 7.984 kB / 0.7109 GB, free: 412 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001276/0.2126, allocations: 23.92 kB / 0.7109 GB, free: 388 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.612e-06/0.2126, allocations: 0 / 0.7109 GB, free: 388 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004287/0.2131, allocations: 232.3 kB / 0.7111 GB, free: 152 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.003e-05/0.2131, allocations: 23.98 kB / 0.7111 GB, free: 128 kB / 0.4981 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.0002865/0.2134, allocations: 241.5 kB / 0.7114 GB, free: 15.88 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.41e-05/0.2135, allocations: 70.72 kB / 0.7114 GB, free: 15.81 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002628/0.2137, allocations: 79 kB / 0.7115 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.2138, allocations: 4.031 kB / 0.7115 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.2138, allocations: 0 / 0.7115 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.2138, allocations: 4 kB / 0.7115 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003854/0.2142, allocations: 496.9 kB / 0.712 GB, free: 15.19 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.2142, allocations: 3.938 kB / 0.712 GB, free: 15.18 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.732e-05/0.2142, allocations: 11.98 kB / 0.712 GB, free: 15.17 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.2143, allocations: 0 / 0.712 GB, free: 15.17 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.317e-05/0.2143, allocations: 0 / 0.712 GB, free: 15.17 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.2143, allocations: 7.938 kB / 0.712 GB, free: 15.16 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.2143, allocations: 3.984 kB / 0.712 GB, free: 15.16 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008035/0.2151, allocations: 0.9935 MB / 0.713 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 9.727e-05/0.2152, allocations: 155.8 kB / 0.7131 GB, free: 13.97 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.907e-05/0.2153, allocations: 7.984 kB / 0.7131 GB, free: 13.96 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001272/0.2154, allocations: 4 kB / 0.7131 GB, free: 13.96 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.161e-05/0.2154, allocations: 11.98 kB / 0.7132 GB, free: 13.95 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.162e-05/0.2155, allocations: 11.98 kB / 0.7132 GB, free: 13.94 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0006199/0.2161, allocations: 0.6689 MB / 0.7138 GB, free: 13.26 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2161, allocations: 0 / 0.7138 GB, free: 13.26 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001306/0.2174, allocations: 0.5779 MB / 0.7144 GB, free: 12.68 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.002661/0.2201, allocations: 2.157 MB / 0.7165 GB, free: 10.52 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002068/0.2222, allocations: 2.548 MB / 0.719 GB, free: 7.953 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.2222, allocations: 0 / 0.719 GB, free: 7.953 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0003146/0.2225, allocations: 335.9 kB / 0.7193 GB, free: 7.625 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003248/0.2228, allocations: 40.59 kB / 0.7193 GB, free: 7.586 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01426/0.2371, allocations: 15.25 MB / 0.7342 GB, free: 8.164 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000495/0.2376, allocations: 0.9679 MB / 0.7352 GB, free: 7.172 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0001676/0.2378, allocations: 36.73 kB / 0.7352 GB, free: 7.137 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002892/0.2381, allocations: 263.3 kB / 0.7355 GB, free: 6.879 MB / 0.5294 GB Notification: Performance of SimCode: time 8.71e-07/0.2381, allocations: 3.938 kB / 0.7355 GB, free: 6.875 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04508/0.2832, allocations: 23.56 MB / 0.7585 GB, free: 15.57 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002934/0.2835, allocations: 350.9 kB / 0.7588 GB, free: 15.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.397/2.681, allocations: 0 / 0.7588 GB, free: 15.2 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)