Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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_11_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_11_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.001964/0.001964, 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.001739/0.001739, allocations: 193.9 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.439/1.439, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.782/2.782, allocations: 469.8 MB / 0.7424 GB, free: 7.418 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001868/0.001868, allocations: 71.8 kB / 0.9087 GB, free: 34.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2983/0.3002, allocations: 159.1 MB / 1.064 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.00296/0.3032, allocations: 1.431 MB / 1.066 GB, free: 12.72 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.006798/0.31, allocations: 4.2 MB / 1.07 GB, free: 8.508 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.025e-05/0.3101, allocations: 4 kB / 1.07 GB, free: 8.504 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001026/0.3102, allocations: 11.86 kB / 1.07 GB, free: 8.492 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002105/0.3104, allocations: 31.84 kB / 1.07 GB, free: 8.461 MB / 0.8262 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.1.0-maint.11.x/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.003989/0.3144, allocations: 1.501 MB / 1.071 GB, free: 6.961 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001326/0.3146, allocations: 91.67 kB / 1.071 GB, free: 6.871 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.676e-05/0.3146, allocations: 4 kB / 1.071 GB, free: 6.867 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.094e-05/0.3147, allocations: 55.77 kB / 1.071 GB, free: 6.812 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003424/0.3151, allocations: 147.6 kB / 1.071 GB, free: 6.668 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.497e-05/0.3151, allocations: 12 kB / 1.071 GB, free: 6.656 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003442/0.3186, allocations: 2.157 MB / 1.074 GB, free: 4.496 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0002334/0.3188, allocations: 271.8 kB / 1.074 GB, free: 4.23 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002704/0.3191, allocations: 274.3 kB / 1.074 GB, free: 3.961 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.003225/0.3223, allocations: 2.108 MB / 1.076 GB, free: 1.844 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.3223, allocations: 4 kB / 1.076 GB, free: 1.84 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.393e-06/0.3224, allocations: 0 / 1.076 GB, free: 1.84 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.83e-05/0.3224, allocations: 0 / 1.076 GB, free: 1.84 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.01015/0.3325, allocations: 1.292 MB / 1.077 GB, free: 0.4961 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.3326, allocations: 8.031 kB / 1.077 GB, free: 500 kB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.739e-05/0.3326, allocations: 34.75 kB / 1.077 GB, free: 456 kB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004848/0.3331, allocations: 95.67 kB / 1.078 GB, free: 360 kB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004098/0.3335, allocations: 360.9 kB / 1.078 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.345e-05/0.3336, allocations: 8.375 kB / 1.078 GB, free: 15.94 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.903e-05/0.3336, allocations: 4.375 kB / 1.078 GB, free: 15.94 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004649/0.3341, allocations: 395.2 kB / 1.078 GB, free: 15.54 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.3341, allocations: 0 / 1.078 GB, free: 15.54 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.19e-05/0.3341, allocations: 0 / 1.078 GB, free: 15.54 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.3341, allocations: 4 kB / 1.078 GB, free: 15.54 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004567/0.3346, allocations: 435.8 kB / 1.079 GB, free: 15.11 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000619/0.3352, allocations: 0.6327 MB / 1.079 GB, free: 14.43 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005529/0.3358, allocations: 0.5671 MB / 1.08 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004521/0.3362, allocations: 345.7 kB / 1.08 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001131/0.3374, allocations: 1.025 MB / 1.081 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004273/0.3378, allocations: 416.8 kB / 1.082 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=8): time 1.183e-06/0.3378, allocations: 3.938 kB / 1.082 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of matching and sorting (n=8): time 0.00147/0.3393, allocations: 1.285 MB / 1.083 GB, free: 10.53 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.826e-05/0.3394, allocations: 81.11 kB / 1.083 GB, free: 10.43 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001204/0.3406, allocations: 1.21 MB / 1.084 GB, free: 9.203 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.792e-05/0.3406, allocations: 33.7 kB / 1.084 GB, free: 9.164 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001996/0.3408, allocations: 261.4 kB / 1.084 GB, free: 8.902 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.68e-05/0.3409, allocations: 23.73 kB / 1.084 GB, free: 8.879 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003424/0.3412, allocations: 355.6 kB / 1.085 GB, free: 8.527 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.000126/0.3414, allocations: 310 kB / 1.085 GB, free: 8.219 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001442/0.3428, allocations: 1.369 MB / 1.086 GB, free: 6.848 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001418/0.3442, allocations: 1.509 MB / 1.088 GB, free: 5.328 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007271/0.3515, allocations: 3.556 MB / 1.091 GB, free: 1.68 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.3515, allocations: 0 / 1.091 GB, free: 1.68 MB / 0.8419 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.00466/0.3562, allocations: 4.006 MB / 1.095 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.639e-05/0.3562, allocations: 8.031 kB / 1.095 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.57e-05/0.3562, allocations: 4 kB / 1.095 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/0.3563, allocations: 0 / 1.095 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001286/0.3564, allocations: 19.92 kB / 1.095 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.3564, allocations: 0 / 1.095 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004686/0.3569, allocations: 228.3 kB / 1.095 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.043e-05/0.3569, allocations: 27.98 kB / 1.095 GB, free: 13.35 MB / 0.8575 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.0003631/0.3573, allocations: 245.6 kB / 1.096 GB, free: 13.1 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001225/0.3574, allocations: 70.72 kB / 1.096 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002761/0.3577, allocations: 71.02 kB / 1.096 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-06/0.3577, allocations: 4 kB / 1.096 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.3578, allocations: 0 / 1.096 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.3578, allocations: 0 / 1.096 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000477/0.3582, allocations: 0.493 MB / 1.096 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.3583, allocations: 3.938 kB / 1.096 GB, free: 12.4 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.007e-05/0.3583, allocations: 15.97 kB / 1.096 GB, free: 12.39 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.3583, allocations: 0 / 1.096 GB, free: 12.39 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.578e-05/0.3584, allocations: 7.984 kB / 1.096 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.3584, allocations: 0 / 1.096 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.3584, allocations: 0 / 1.096 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009739/0.3594, allocations: 1.002 MB / 1.097 GB, free: 11.36 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000118/0.3595, allocations: 151.8 kB / 1.097 GB, free: 11.19 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.083e-05/0.3595, allocations: 7.984 kB / 1.098 GB, free: 11.18 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001263/0.3597, allocations: 3.938 kB / 1.098 GB, free: 11.18 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.716e-05/0.3597, allocations: 7.984 kB / 1.098 GB, free: 11.17 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.394e-05/0.3598, allocations: 11.98 kB / 1.098 GB, free: 11.16 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0008704/0.3606, allocations: 0.6728 MB / 1.098 GB, free: 10.48 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.8e-07/0.3607, allocations: 0 / 1.098 GB, free: 10.48 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.001452/0.3621, allocations: 0.5818 MB / 1.099 GB, free: 9.895 MB / 0.8575 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.003168/0.3653, allocations: 2.142 MB / 1.101 GB, free: 7.738 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.002641/0.3679, allocations: 2.56 MB / 1.103 GB, free: 5.164 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.368, allocations: 3.938 kB / 1.103 GB, free: 5.16 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0003468/0.3683, allocations: 339.8 kB / 1.104 GB, free: 4.828 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002862/0.3686, allocations: 34.47 kB / 1.104 GB, free: 4.797 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0162/0.3848, allocations: 15.15 MB / 1.118 GB, free: 5.477 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006481/0.3855, allocations: 0.9679 MB / 1.119 GB, free: 4.48 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001641/0.3857, allocations: 40.48 kB / 1.119 GB, free: 4.441 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003287/0.386, allocations: 263.3 kB / 1.12 GB, free: 4.188 MB / 0.8731 GB Notification: Performance of SimCode: time 9.22e-07/0.3861, allocations: 4 kB / 1.12 GB, free: 4.184 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.081/1.467, allocations: 23.64 MB / 1.143 GB, free: 12.72 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.5/15.96, allocations: 17.78 kB / 1.143 GB, free: 12.71 MB / 0.9044 GB (rm -f Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters_res.mat --tempDir=temp_Buildings_11_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters_fmu --startTime=0 --stopTime=4.12e+08 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.fmu > Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1)