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.001252/0.001252, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001285/0.001285, allocations: 188.8 kB / 16.25 MB, free: 6.633 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.232/1.232, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.427/2.427, allocations: 461.9 MB / 0.7343 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 67.98 kB / 0.8987 GB, free: 37.14 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2442/0.2455, allocations: 157.4 MB / 1.052 GB, free: 8.664 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002288/0.2478, allocations: 1.485 MB / 1.054 GB, free: 7.16 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.005466/0.2533, allocations: 4.238 MB / 1.058 GB, free: 2.906 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.548e-05/0.2534, allocations: 0 / 1.058 GB, free: 2.906 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 9.295e-05/0.2535, allocations: 7.938 kB / 1.058 GB, free: 2.898 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001884/0.2537, allocations: 27.83 kB / 1.058 GB, free: 2.871 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.003252/0.2569, allocations: 1.341 MB / 1.059 GB, free: 1.531 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001165/0.2571, allocations: 95.67 kB / 1.059 GB, free: 1.438 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.786e-05/0.2571, allocations: 11.98 kB / 1.059 GB, free: 1.426 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.737e-05/0.2572, allocations: 43.84 kB / 1.06 GB, free: 1.383 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002101/0.2574, allocations: 157 kB / 1.06 GB, free: 1.23 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.521e-05/0.2574, allocations: 16 kB / 1.06 GB, free: 1.215 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002704/0.2601, allocations: 2.2 MB / 1.062 GB, free: 15.01 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001843/0.2603, allocations: 271.8 kB / 1.062 GB, free: 14.74 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002017/0.2605, allocations: 274.3 kB / 1.062 GB, free: 14.47 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.002674/0.2632, allocations: 2.124 MB / 1.064 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.2632, allocations: 0 / 1.064 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.232e-06/0.2632, allocations: 0 / 1.064 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.103e-05/0.2633, allocations: 0 / 1.064 GB, free: 12.34 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.008461/0.2717, allocations: 1.292 MB / 1.066 GB, free: 11 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.377e-05/0.2718, allocations: 8.625 kB / 1.066 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.871e-05/0.2718, allocations: 38.69 kB / 1.066 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003849/0.2722, allocations: 95.67 kB / 1.066 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003743/0.2726, allocations: 357 kB / 1.066 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.463e-05/0.2726, allocations: 8.375 kB / 1.066 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.794e-05/0.2727, allocations: 4.375 kB / 1.066 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004162/0.2731, allocations: 391.3 kB / 1.067 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.2731, allocations: 11.97 kB / 1.067 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.196e-05/0.2731, allocations: 0 / 1.067 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.091e-06/0.2731, allocations: 4 kB / 1.067 GB, free: 10.03 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004079/0.2736, allocations: 439.6 kB / 1.067 GB, free: 9.602 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005271/0.2741, allocations: 0.6365 MB / 1.068 GB, free: 8.914 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004593/0.2746, allocations: 0.5672 MB / 1.068 GB, free: 8.328 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002788/0.2749, allocations: 337.7 kB / 1.068 GB, free: 7.992 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008961/0.2758, allocations: 1.025 MB / 1.069 GB, free: 6.746 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003729/0.2761, allocations: 408.8 kB / 1.07 GB, free: 6.328 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=8): time 1.382e-06/0.2762, allocations: 3.938 kB / 1.07 GB, free: 6.324 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8): time 0.00118/0.2773, allocations: 1.289 MB / 1.071 GB, free: 5.027 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.722e-05/0.2774, allocations: 85.23 kB / 1.071 GB, free: 4.926 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001002/0.2784, allocations: 1.214 MB / 1.072 GB, free: 3.695 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.64e-05/0.2785, allocations: 29.7 kB / 1.072 GB, free: 3.66 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001648/0.2786, allocations: 261.4 kB / 1.073 GB, free: 3.398 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.369e-05/0.2787, allocations: 23.73 kB / 1.073 GB, free: 3.375 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002888/0.279, allocations: 355.6 kB / 1.073 GB, free: 3.023 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 8.582e-05/0.279, allocations: 310 kB / 1.073 GB, free: 2.715 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001099/0.2802, allocations: 1.373 MB / 1.075 GB, free: 1.34 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00117/0.2813, allocations: 1.507 MB / 1.076 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006417/0.2878, allocations: 3.553 MB / 1.08 GB, free: 12.18 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.2878, allocations: 0 / 1.08 GB, free: 12.18 MB / 0.8419 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.003783/0.2916, allocations: 4.014 MB / 1.084 GB, free: 8.129 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.2916, allocations: 4 kB / 1.084 GB, free: 8.125 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.512e-05/0.2916, allocations: 4 kB / 1.084 GB, free: 8.121 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.233e-05/0.2916, allocations: 0 / 1.084 GB, free: 8.121 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001177/0.2917, allocations: 19.92 kB / 1.084 GB, free: 8.102 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.458e-06/0.2918, allocations: 8 kB / 1.084 GB, free: 8.094 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004132/0.2922, allocations: 224.3 kB / 1.084 GB, free: 7.871 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.919e-05/0.2922, allocations: 32.02 kB / 1.084 GB, free: 7.84 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.0002634/0.2925, allocations: 237.6 kB / 1.084 GB, free: 7.598 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.089e-05/0.2926, allocations: 74.7 kB / 1.084 GB, free: 7.523 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002544/0.2928, allocations: 71.02 kB / 1.084 GB, free: 7.445 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.2929, allocations: 4 kB / 1.084 GB, free: 7.441 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.2929, allocations: 0 / 1.084 GB, free: 7.441 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.2929, allocations: 4.031 kB / 1.084 GB, free: 7.438 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003755/0.2932, allocations: 0.4892 MB / 1.085 GB, free: 6.902 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/0.2933, allocations: 3.938 kB / 1.085 GB, free: 6.898 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.578e-05/0.2933, allocations: 11.92 kB / 1.085 GB, free: 6.887 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.2933, allocations: 0 / 1.085 GB, free: 6.887 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.388e-05/0.2934, allocations: 4 kB / 1.085 GB, free: 6.883 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.424e-06/0.2934, allocations: 3.984 kB / 1.085 GB, free: 6.879 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.2934, allocations: 0 / 1.085 GB, free: 6.879 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008149/0.2942, allocations: 1.001 MB / 1.086 GB, free: 5.855 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001103/0.2943, allocations: 155.8 kB / 1.086 GB, free: 5.684 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.09e-05/0.2944, allocations: 7.984 kB / 1.086 GB, free: 5.676 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001243/0.2945, allocations: 0 / 1.086 GB, free: 5.676 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.027e-05/0.2946, allocations: 7.984 kB / 1.086 GB, free: 5.668 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.155e-05/0.2946, allocations: 15.98 kB / 1.086 GB, free: 5.652 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0006397/0.2952, allocations: 0.6728 MB / 1.087 GB, free: 4.973 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.11e-07/0.2952, allocations: 0 / 1.087 GB, free: 4.973 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.001263/0.2965, allocations: 0.5779 MB / 1.087 GB, free: 4.395 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.002964/0.2995, allocations: 2.149 MB / 1.089 GB, free: 2.23 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.002049/0.3015, allocations: 2.552 MB / 1.092 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3016, allocations: 0 / 1.092 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002938/0.3019, allocations: 335.8 kB / 1.092 GB, free: 15.33 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002763/0.3021, allocations: 37.42 kB / 1.092 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01354/0.3157, allocations: 15.25 MB / 1.107 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004335/0.3161, allocations: 0.9679 MB / 1.108 GB, free: 14.88 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001571/0.3163, allocations: 36.55 kB / 1.108 GB, free: 14.85 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002563/0.3166, allocations: 267.3 kB / 1.108 GB, free: 14.59 MB / 0.8731 GB Notification: Performance of SimCode: time 5.61e-07/0.3166, allocations: 0 / 1.108 GB, free: 14.59 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.754/4.07, allocations: 23.54 MB / 1.131 GB, free: 7.262 MB / 0.8887 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003206/4.071, allocations: 337.2 kB / 1.131 GB, free: 6.887 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.751/8.822, allocations: 3.938 kB / 1.131 GB, free: 6.883 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)