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_SmallScaleValidation.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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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_SmallScaleValidation,fileNamePrefix="Buildings_10_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,fileNamePrefix="Buildings_10_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation",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.0012/0.0012, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001239/0.00124, allocations: 196.8 kB / 16.14 MB, free: 6.711 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.262/1.262, allocations: 222.9 MB / 239.8 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.384/2.384, allocations: 437 MB / 0.7099 GB, free: 5.363 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 63.91 kB / 0.8687 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5311/0.5323, allocations: 151.6 MB / 1.017 GB, free: 2.793 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002589/0.5349, allocations: 1.825 MB / 1.019 GB, free: 0.957 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.006847/0.5418, allocations: 5.667 MB / 1.024 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.046e-05/0.5419, allocations: 0 / 1.024 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0009745/0.5429, allocations: 362.6 kB / 1.024 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 9.816e-05/0.543, allocations: 55.72 kB / 1.024 GB, free: 10.86 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‘. Notification: Performance of NFTyping.typeClassSections: time 0.002522/0.5455, allocations: 1.174 MB / 1.026 GB, free: 9.688 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.000208/0.5457, allocations: 203.3 kB / 1.026 GB, free: 9.488 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 4.685e-05/0.5458, allocations: 13.56 kB / 1.026 GB, free: 9.473 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 6.245e-05/0.5459, allocations: 55.78 kB / 1.026 GB, free: 9.418 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001942/0.5461, allocations: 176.8 kB / 1.026 GB, free: 9.246 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.117e-05/0.5461, allocations: 16 kB / 1.026 GB, free: 9.23 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002578/0.5487, allocations: 2.184 MB / 1.028 GB, free: 7.043 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001874/0.5489, allocations: 279.8 kB / 1.028 GB, free: 6.77 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002313/0.5491, allocations: 306.1 kB / 1.029 GB, free: 6.469 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.002275/0.5514, allocations: 2.229 MB / 1.031 GB, free: 4.23 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.5514, allocations: 3.984 kB / 1.031 GB, free: 4.227 MB / 0.7794 GB Notification: Performance of FrontEnd: time 8.82e-07/0.5514, allocations: 0 / 1.031 GB, free: 4.227 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.941e-06/0.5514, allocations: 0 / 1.031 GB, free: 4.227 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.00749/0.5589, allocations: 1.367 MB / 1.032 GB, free: 2.809 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/0.559, allocations: 15.92 kB / 1.032 GB, free: 2.793 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.414e-05/0.559, allocations: 34.73 kB / 1.032 GB, free: 2.75 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003671/0.5594, allocations: 99.5 kB / 1.032 GB, free: 2.652 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004101/0.5598, allocations: 402.3 kB / 1.033 GB, free: 2.211 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.145e-05/0.5598, allocations: 8.375 kB / 1.033 GB, free: 2.203 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.494e-05/0.5599, allocations: 4.375 kB / 1.033 GB, free: 2.199 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003877/0.5603, allocations: 399.2 kB / 1.033 GB, free: 1.797 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.031e-06/0.5603, allocations: 0 / 1.033 GB, free: 1.797 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.18e-05/0.5603, allocations: 0 / 1.033 GB, free: 1.797 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.897e-06/0.5603, allocations: 0 / 1.033 GB, free: 1.797 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000394/0.5607, allocations: 439.7 kB / 1.034 GB, free: 1.367 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005365/0.5613, allocations: 0.6693 MB / 1.034 GB, free: 0.6484 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004576/0.5617, allocations: 0.5634 MB / 1.035 GB, free: 68 kB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002892/0.562, allocations: 333.6 kB / 1.035 GB, free: 15.73 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009503/0.563, allocations: 1.032 MB / 1.036 GB, free: 14.48 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00037/0.5634, allocations: 416.6 kB / 1.037 GB, free: 14.05 MB / 0.795 GB Notification: Performance of pre-optimization done (n=8): time 1.042e-06/0.5634, allocations: 0 / 1.037 GB, free: 14.05 MB / 0.795 GB Notification: Performance of matching and sorting (n=8): time 0.001217/0.5646, allocations: 1.297 MB / 1.038 GB, free: 12.75 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.494e-05/0.5647, allocations: 85.09 kB / 1.038 GB, free: 12.65 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001087/0.5658, allocations: 1.286 MB / 1.039 GB, free: 11.35 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.619e-05/0.5658, allocations: 29.7 kB / 1.039 GB, free: 11.32 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001932/0.566, allocations: 285.3 kB / 1.039 GB, free: 11.03 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 3.407e-05/0.566, allocations: 27.64 kB / 1.039 GB, free: 11 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002965/0.5663, allocations: 355.8 kB / 1.04 GB, free: 10.65 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001054/0.5664, allocations: 326 kB / 1.04 GB, free: 10.33 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001116/0.5676, allocations: 1.369 MB / 1.041 GB, free: 8.957 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001229/0.5688, allocations: 1.501 MB / 1.043 GB, free: 7.445 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006556/0.5754, allocations: 3.564 MB / 1.046 GB, free: 3.789 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.5754, allocations: 0 / 1.046 GB, free: 3.789 MB / 0.795 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.003888/0.5793, allocations: 3.999 MB / 1.05 GB, free: 15.75 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.988e-05/0.5793, allocations: 8 kB / 1.05 GB, free: 15.74 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.79e-05/0.5793, allocations: 3.984 kB / 1.05 GB, free: 15.74 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/0.5794, allocations: 8 kB / 1.05 GB, free: 15.73 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001246/0.5795, allocations: 23.97 kB / 1.05 GB, free: 15.71 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.763e-06/0.5795, allocations: 0 / 1.05 GB, free: 15.71 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004372/0.58, allocations: 228.3 kB / 1.051 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.762e-05/0.58, allocations: 23.98 kB / 1.051 GB, free: 15.46 MB / 0.8106 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.0002972/0.5803, allocations: 246.2 kB / 1.051 GB, free: 15.21 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.894e-05/0.5804, allocations: 74.62 kB / 1.051 GB, free: 15.13 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002698/0.5807, allocations: 91.66 kB / 1.051 GB, free: 15.03 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.5807, allocations: 4 kB / 1.051 GB, free: 15.03 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.5807, allocations: 0 / 1.051 GB, free: 15.03 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.5807, allocations: 3.984 kB / 1.051 GB, free: 15.02 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004161/0.5811, allocations: 0.5178 MB / 1.051 GB, free: 14.46 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.5811, allocations: 3.938 kB / 1.051 GB, free: 14.46 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.732e-05/0.5812, allocations: 4 kB / 1.052 GB, free: 14.46 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.399e-06/0.5812, allocations: 4 kB / 1.052 GB, free: 14.45 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.308e-05/0.5812, allocations: 3.984 kB / 1.052 GB, free: 14.45 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.5812, allocations: 4.031 kB / 1.052 GB, free: 14.45 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.5812, allocations: 0 / 1.052 GB, free: 14.45 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000823/0.5821, allocations: 1.006 MB / 1.052 GB, free: 13.42 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001066/0.5822, allocations: 163.7 kB / 1.053 GB, free: 13.24 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.269e-05/0.5823, allocations: 3.938 kB / 1.053 GB, free: 13.23 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001427/0.5824, allocations: 8 kB / 1.053 GB, free: 13.23 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.546e-05/0.5824, allocations: 11.98 kB / 1.053 GB, free: 13.21 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.203e-05/0.5825, allocations: 15.92 kB / 1.053 GB, free: 13.2 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0007088/0.5832, allocations: 0.7222 MB / 1.053 GB, free: 12.47 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1e-07/0.5832, allocations: 0 / 1.053 GB, free: 12.47 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.001369/0.5846, allocations: 0.5896 MB / 1.054 GB, free: 11.88 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.002797/0.5874, allocations: 2.141 MB / 1.056 GB, free: 9.73 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.002105/0.5895, allocations: 2.56 MB / 1.059 GB, free: 7.156 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.5895, allocations: 4.062 kB / 1.059 GB, free: 7.152 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003072/0.5898, allocations: 335.8 kB / 1.059 GB, free: 6.824 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003953/0.5902, allocations: 60.61 kB / 1.059 GB, free: 6.766 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01452/0.6048, allocations: 15.28 MB / 1.074 GB, free: 7.312 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005632/0.6054, allocations: 0.9881 MB / 1.075 GB, free: 6.297 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.000192/0.6056, allocations: 37.42 kB / 1.075 GB, free: 6.258 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003219/0.6059, allocations: 291.3 kB / 1.075 GB, free: 5.977 MB / 0.8262 GB Notification: Performance of SimCode: time 1.142e-06/0.6059, allocations: 4 kB / 1.075 GB, free: 5.973 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.425/4.031, allocations: 23.44 MB / 1.098 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002301/4.031, allocations: 343.8 kB / 1.098 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.404/6.436, allocations: 2.812 kB / 1.098 GB, free: 14.38 MB / 0.8575 GB (rm -f Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation_fmu --startTime=0 --stopTime=1.8e+12 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.fmu > Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)