Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="Buildings_latest_Buildings_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.001633/0.001633, 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.001916/0.001916, allocations: 193.3 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.444/1.444, 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/Buildings 11.0.1-master/package.mo): time 2.612/2.612, allocations: 461.9 MB / 0.7347 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001244, allocations: 70.16 kB / 0.8992 GB, free: 37.02 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2478/0.249, allocations: 157.4 MB / 1.053 GB, free: 8.223 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002717/0.2518, allocations: 1.434 MB / 1.054 GB, free: 6.773 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.006175/0.258, allocations: 4.207 MB / 1.058 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.305e-05/0.258, allocations: 0 / 1.058 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001004/0.2582, allocations: 11.88 kB / 1.058 GB, free: 2.539 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002191/0.2584, allocations: 27.83 kB / 1.058 GB, free: 2.512 MB / 0.8106 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/Buildings 11.0.1-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.003851/0.2623, allocations: 1.504 MB / 1.06 GB, free: 1.008 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001241/0.2624, allocations: 99.61 kB / 1.06 GB, free: 0.9102 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.328e-05/0.2624, allocations: 3.984 kB / 1.06 GB, free: 0.9062 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.081e-05/0.2625, allocations: 47.78 kB / 1.06 GB, free: 0.8594 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002165/0.2627, allocations: 151.6 kB / 1.06 GB, free: 0.7109 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.419e-05/0.2628, allocations: 12 kB / 1.06 GB, free: 0.6992 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003302/0.2661, allocations: 2.153 MB / 1.062 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0002233/0.2663, allocations: 275.8 kB / 1.063 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0004889/0.2668, allocations: 270.3 kB / 1.063 GB, free: 14.01 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.003297/0.2701, allocations: 2.108 MB / 1.065 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.2702, allocations: 0 / 1.065 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.162e-06/0.2702, allocations: 0 / 1.065 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.274e-05/0.2702, allocations: 0 / 1.065 GB, free: 11.89 MB / 0.8262 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.0101/0.2803, allocations: 1.304 MB / 1.066 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.55e-05/0.2803, allocations: 8.625 kB / 1.066 GB, free: 10.53 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.978e-05/0.2804, allocations: 34.73 kB / 1.066 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003696/0.2808, allocations: 87.69 kB / 1.066 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003645/0.2811, allocations: 357 kB / 1.067 GB, free: 10 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.171e-05/0.2811, allocations: 4.375 kB / 1.067 GB, free: 9.996 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.982e-05/0.2812, allocations: 12.36 kB / 1.067 GB, free: 9.984 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004331/0.2816, allocations: 395.2 kB / 1.067 GB, free: 9.586 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.261e-05/0.2817, allocations: 0 / 1.067 GB, free: 9.586 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.59e-05/0.2817, allocations: 0 / 1.067 GB, free: 9.586 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.776e-05/0.2818, allocations: 4 kB / 1.067 GB, free: 9.582 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004208/0.2822, allocations: 435.7 kB / 1.067 GB, free: 9.156 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005525/0.2828, allocations: 0.6482 MB / 1.068 GB, free: 8.457 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004966/0.2833, allocations: 0.5633 MB / 1.069 GB, free: 7.875 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003015/0.2836, allocations: 333.7 kB / 1.069 GB, free: 7.543 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001098/0.2847, allocations: 1.032 MB / 1.07 GB, free: 6.289 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004606/0.2852, allocations: 404.8 kB / 1.07 GB, free: 5.875 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=8): time 2.895e-06/0.2852, allocations: 0 / 1.07 GB, free: 5.875 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8): time 0.00124/0.2864, allocations: 1.293 MB / 1.072 GB, free: 4.574 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.799e-05/0.2865, allocations: 85.11 kB / 1.072 GB, free: 4.473 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001084/0.2876, allocations: 1.21 MB / 1.073 GB, free: 3.246 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.955e-05/0.2877, allocations: 29.7 kB / 1.073 GB, free: 3.211 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002554/0.2879, allocations: 261.4 kB / 1.073 GB, free: 2.949 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.474e-05/0.288, allocations: 23.73 kB / 1.073 GB, free: 2.926 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003113/0.2883, allocations: 351.8 kB / 1.074 GB, free: 2.578 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001012/0.2884, allocations: 314 kB / 1.074 GB, free: 2.266 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001165/0.2896, allocations: 1.373 MB / 1.075 GB, free: 0.8906 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001408/0.291, allocations: 1.501 MB / 1.077 GB, free: 15.38 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006945/0.2979, allocations: 3.56 MB / 1.08 GB, free: 11.73 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.298, allocations: 0 / 1.08 GB, free: 11.73 MB / 0.8419 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.00422/0.3022, allocations: 4.006 MB / 1.084 GB, free: 7.684 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.578e-05/0.3022, allocations: 5.562 kB / 1.084 GB, free: 7.68 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.388e-05/0.3022, allocations: 4 kB / 1.084 GB, free: 7.676 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/0.3023, allocations: 3.984 kB / 1.084 GB, free: 7.672 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001179/0.3024, allocations: 19.94 kB / 1.084 GB, free: 7.652 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.3024, allocations: 4.031 kB / 1.084 GB, free: 7.648 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005877/0.303, allocations: 232.3 kB / 1.084 GB, free: 7.418 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.585e-05/0.3031, allocations: 23.98 kB / 1.084 GB, free: 7.395 MB / 0.8419 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.00026/0.3033, allocations: 237.6 kB / 1.085 GB, free: 7.152 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.872e-05/0.3034, allocations: 74.72 kB / 1.085 GB, free: 7.078 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00028/0.3037, allocations: 79 kB / 1.085 GB, free: 6.992 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.3037, allocations: 8 kB / 1.085 GB, free: 6.984 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.349e-06/0.3037, allocations: 0 / 1.085 GB, free: 6.984 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.3037, allocations: 0 / 1.085 GB, free: 6.984 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003887/0.3041, allocations: 0.4892 MB / 1.085 GB, free: 6.449 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.3041, allocations: 3.938 kB / 1.085 GB, free: 6.445 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.93e-05/0.3042, allocations: 7.984 kB / 1.085 GB, free: 6.438 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.3042, allocations: 3.938 kB / 1.085 GB, free: 6.434 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.382e-05/0.3042, allocations: 4 kB / 1.085 GB, free: 6.43 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.3042, allocations: 0 / 1.085 GB, free: 6.43 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.3042, allocations: 4.031 kB / 1.085 GB, free: 6.426 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008455/0.3051, allocations: 0.9974 MB / 1.086 GB, free: 5.406 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 9.825e-05/0.3052, allocations: 151.8 kB / 1.086 GB, free: 5.238 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.135e-05/0.3052, allocations: 8 kB / 1.086 GB, free: 5.23 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001295/0.3054, allocations: 7.984 kB / 1.086 GB, free: 5.223 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.621e-05/0.3054, allocations: 4 kB / 1.086 GB, free: 5.219 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.397e-05/0.3055, allocations: 15.97 kB / 1.086 GB, free: 5.203 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.000726/0.3062, allocations: 0.6689 MB / 1.087 GB, free: 4.527 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1e-07/0.3062, allocations: 0 / 1.087 GB, free: 4.527 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.001305/0.3075, allocations: 0.5818 MB / 1.088 GB, free: 3.945 MB / 0.8419 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.003081/0.3106, allocations: 2.143 MB / 1.09 GB, free: 1.789 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.002257/0.3129, allocations: 2.552 MB / 1.092 GB, free: 15.22 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 4.558e-06/0.3129, allocations: 4 kB / 1.092 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0003012/0.3132, allocations: 343.8 kB / 1.092 GB, free: 14.88 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002829/0.3135, allocations: 40.59 kB / 1.093 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01435/0.3278, allocations: 15.14 MB / 1.107 GB, free: 15.52 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005002/0.3284, allocations: 0.9679 MB / 1.108 GB, free: 14.53 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001553/0.3285, allocations: 32.56 kB / 1.108 GB, free: 14.5 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002674/0.3288, allocations: 271.4 kB / 1.109 GB, free: 14.23 MB / 0.8731 GB Notification: Performance of SimCode: time 2.7e-07/0.3288, allocations: 0 / 1.109 GB, free: 14.23 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.921/4.25, allocations: 23.64 MB / 1.132 GB, free: 6.762 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.666/13.92, allocations: 3.062 kB / 1.132 GB, free: 6.762 MB / 0.8887 GB (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters_fmu --startTime=0 --stopTime=4.12e+08 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.fmu > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1)