Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001125/0.001125, allocations: 108 kB / 15.61 MB, free: 152 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.001196/0.001196, allocations: 196.7 kB / 16.53 MB, free: 6.664 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.348/1.348, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.603/2.603, allocations: 437.1 MB / 0.7104 GB, free: 5.086 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00145/0.00145, allocations: 64.05 kB / 0.8694 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.652/0.6535, allocations: 151.6 MB / 1.017 GB, free: 2.605 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.003047/0.6566, allocations: 1.425 MB / 1.019 GB, free: 1.168 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.006506/0.6631, allocations: 4.203 MB / 1.023 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.985e-05/0.6632, allocations: 3.938 kB / 1.023 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001345/0.6634, allocations: 15.86 kB / 1.023 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002287/0.6637, allocations: 31.83 kB / 1.023 GB, free: 12.89 MB / 0.7794 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 10.1.1-maint.10.0.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.004547/0.6682, allocations: 1.498 MB / 1.024 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001636/0.6684, allocations: 99.67 kB / 1.025 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 4.998e-05/0.6685, allocations: 11.97 kB / 1.025 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 6.771e-05/0.6685, allocations: 35.92 kB / 1.025 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002495/0.6688, allocations: 155.5 kB / 1.025 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.772e-05/0.6689, allocations: 16 kB / 1.025 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003752/0.6726, allocations: 2.153 MB / 1.027 GB, free: 8.93 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0002329/0.6729, allocations: 267.8 kB / 1.027 GB, free: 8.668 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002467/0.6731, allocations: 278.3 kB / 1.027 GB, free: 8.395 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.003125/0.6763, allocations: 2.1 MB / 1.029 GB, free: 6.289 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.6763, allocations: 0 / 1.029 GB, free: 6.289 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.294e-06/0.6763, allocations: 0 / 1.029 GB, free: 6.289 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.495e-05/0.6763, allocations: 4 kB / 1.029 GB, free: 6.285 MB / 0.7794 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.01025/0.6866, allocations: 1.3 MB / 1.031 GB, free: 4.934 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.755e-05/0.6866, allocations: 19.92 kB / 1.031 GB, free: 4.914 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.571e-05/0.6867, allocations: 34.73 kB / 1.031 GB, free: 4.871 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004664/0.6872, allocations: 83.69 kB / 1.031 GB, free: 4.789 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004714/0.6877, allocations: 369 kB / 1.031 GB, free: 4.379 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.265e-05/0.6877, allocations: 4.375 kB / 1.031 GB, free: 4.375 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.411e-05/0.6877, allocations: 16.36 kB / 1.031 GB, free: 4.359 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004355/0.6882, allocations: 383.3 kB / 1.032 GB, free: 3.973 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.797e-06/0.6882, allocations: 4 kB / 1.032 GB, free: 3.969 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.214e-05/0.6882, allocations: 0 / 1.032 GB, free: 3.969 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.6882, allocations: 0 / 1.032 GB, free: 3.969 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004286/0.6887, allocations: 443.7 kB / 1.032 GB, free: 3.535 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000621/0.6893, allocations: 0.6365 MB / 1.033 GB, free: 2.848 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006214/0.6899, allocations: 0.5594 MB / 1.033 GB, free: 2.27 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003638/0.6903, allocations: 337.7 kB / 1.034 GB, free: 1.934 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001389/0.6917, allocations: 1.032 MB / 1.035 GB, free: 0.6797 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000459/0.6922, allocations: 408.8 kB / 1.035 GB, free: 268 kB / 0.7794 GB Notification: Performance of pre-optimization done (n=8): time 2.114e-06/0.6922, allocations: 4 kB / 1.035 GB, free: 264 kB / 0.7794 GB Notification: Performance of matching and sorting (n=8): time 0.001585/0.6938, allocations: 1.285 MB / 1.036 GB, free: 14.96 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.031e-05/0.6939, allocations: 85.11 kB / 1.036 GB, free: 14.86 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001148/0.695, allocations: 1.214 MB / 1.037 GB, free: 13.63 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 4.065e-05/0.6951, allocations: 33.7 kB / 1.037 GB, free: 13.59 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001771/0.6953, allocations: 257.5 kB / 1.038 GB, free: 13.34 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 4.038e-05/0.6953, allocations: 31.72 kB / 1.038 GB, free: 13.3 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003119/0.6956, allocations: 351.6 kB / 1.038 GB, free: 12.96 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 9.708e-05/0.6958, allocations: 310 kB / 1.038 GB, free: 12.65 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001311/0.6971, allocations: 1.385 MB / 1.04 GB, free: 11.26 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001385/0.6985, allocations: 1.497 MB / 1.041 GB, free: 9.754 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007042/0.7055, allocations: 3.557 MB / 1.045 GB, free: 6.105 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.7055, allocations: 0 / 1.045 GB, free: 6.105 MB / 0.795 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004486/0.71, allocations: 4.003 MB / 1.049 GB, free: 2.066 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/0.7101, allocations: 8 kB / 1.049 GB, free: 2.059 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.675e-05/0.7101, allocations: 0 / 1.049 GB, free: 2.059 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.921e-05/0.7101, allocations: 8.031 kB / 1.049 GB, free: 2.051 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001377/0.7103, allocations: 15.98 kB / 1.049 GB, free: 2.035 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.384e-06/0.7103, allocations: 0 / 1.049 GB, free: 2.035 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004741/0.7108, allocations: 232.3 kB / 1.049 GB, free: 1.805 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.942e-05/0.7108, allocations: 23.98 kB / 1.049 GB, free: 1.781 MB / 0.795 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.0002934/0.7111, allocations: 242.3 kB / 1.049 GB, free: 1.535 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.904e-05/0.7112, allocations: 66.72 kB / 1.049 GB, free: 1.469 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002883/0.7115, allocations: 82.97 kB / 1.049 GB, free: 1.379 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.7115, allocations: 0 / 1.049 GB, free: 1.379 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.7115, allocations: 3.938 kB / 1.049 GB, free: 1.375 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.7115, allocations: 7.938 kB / 1.049 GB, free: 1.367 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004231/0.7119, allocations: 496.9 kB / 1.05 GB, free: 0.8359 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.712, allocations: 3.938 kB / 1.05 GB, free: 0.832 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.19e-05/0.712, allocations: 11.98 kB / 1.05 GB, free: 0.8203 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.977e-06/0.712, allocations: 4.031 kB / 1.05 GB, free: 0.8164 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.516e-05/0.7121, allocations: 4 kB / 1.05 GB, free: 0.8125 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.876e-06/0.7121, allocations: 7.938 kB / 1.05 GB, free: 0.8047 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.7121, allocations: 0 / 1.05 GB, free: 0.8047 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009597/0.713, allocations: 0.9897 MB / 1.051 GB, free: 15.79 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001724/0.7133, allocations: 159.8 kB / 1.051 GB, free: 15.62 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.934e-05/0.7133, allocations: 4 kB / 1.051 GB, free: 15.61 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001323/0.7135, allocations: 7.984 kB / 1.051 GB, free: 15.61 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.899e-05/0.7135, allocations: 11.94 kB / 1.051 GB, free: 15.59 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.511e-05/0.7135, allocations: 15.97 kB / 1.051 GB, free: 15.58 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0006792/0.7142, allocations: 0.6689 MB / 1.052 GB, free: 14.9 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7142, allocations: 0 / 1.052 GB, free: 14.9 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.001517/0.7158, allocations: 0.5662 MB / 1.052 GB, free: 14.34 MB / 0.8106 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.002965/0.7187, allocations: 2.153 MB / 1.054 GB, free: 12.17 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.002357/0.7211, allocations: 2.548 MB / 1.057 GB, free: 9.609 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.7211, allocations: 0 / 1.057 GB, free: 9.609 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003186/0.7214, allocations: 343.8 kB / 1.057 GB, free: 9.273 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003037/0.7218, allocations: 37.31 kB / 1.057 GB, free: 9.238 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01464/0.7364, allocations: 15.14 MB / 1.072 GB, free: 9.914 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005184/0.737, allocations: 0.9717 MB / 1.073 GB, free: 8.914 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001729/0.7372, allocations: 28.56 kB / 1.073 GB, free: 8.887 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003079/0.7375, allocations: 267.3 kB / 1.073 GB, free: 8.625 MB / 0.8262 GB Notification: Performance of SimCode: time 1.172e-06/0.7375, allocations: 0 / 1.073 GB, free: 8.625 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05779/0.7953, allocations: 23.65 MB / 1.096 GB, free: 1.168 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.01/10.8, allocations: 10.31 kB / 1.096 GB, free: 1.156 MB / 0.8419 GB (rm -f Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters_fmu --startTime=0 --stopTime=4.12e+08 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.fmu > Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1)