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.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_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.008288/0.008288, allocations: 98.14 kB / 15.73 MB, free: 6.039 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.001922/0.001922, allocations: 196.8 kB / 16.68 MB, free: 5.969 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.368/1.368, allocations: 222.9 MB / 240.4 MB, free: 4.332 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.478/2.478, allocations: 437.1 MB / 0.7105 GB, free: 4.965 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 63.84 kB / 1.018 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3058/0.3071, allocations: 151.6 MB / 1.166 GB, free: 7.219 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003034/0.3101, allocations: 1.762 MB / 1.168 GB, free: 5.441 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.007724/0.3179, allocations: 5.389 MB / 1.173 GB, free: 28 kB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001565/0.3181, allocations: 3.938 kB / 1.173 GB, free: 24 kB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.001347/0.3195, allocations: 371.2 kB / 1.174 GB, free: 15.66 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001776/0.3197, allocations: 59.66 kB / 1.174 GB, free: 15.6 MB / 0.9356 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.004495/0.3242, allocations: 1.5 MB / 1.175 GB, free: 14.1 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0004346/0.3246, allocations: 162.1 kB / 1.175 GB, free: 13.94 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 8.147e-05/0.3247, allocations: 13.55 kB / 1.175 GB, free: 13.93 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001613/0.3249, allocations: 67.7 kB / 1.175 GB, free: 13.86 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003339/0.3252, allocations: 163.5 kB / 1.175 GB, free: 13.7 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 6.499e-05/0.3253, allocations: 16 kB / 1.175 GB, free: 13.68 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004505/0.3298, allocations: 2.204 MB / 1.178 GB, free: 11.48 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.000316/0.3301, allocations: 279.8 kB / 1.178 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0004538/0.3306, allocations: 306.1 kB / 1.178 GB, free: 10.9 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.004908/0.3355, allocations: 2.188 MB / 1.18 GB, free: 8.711 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 7.865e-06/0.3356, allocations: 4 kB / 1.18 GB, free: 8.707 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.474e-06/0.3356, allocations: 0 / 1.18 GB, free: 8.707 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 2.393e-05/0.3356, allocations: 0 / 1.18 GB, free: 8.707 MB / 0.9356 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.008305/0.3439, allocations: 1.363 MB / 1.182 GB, free: 7.293 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 5.327e-05/0.344, allocations: 15.97 kB / 1.182 GB, free: 7.277 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.735e-05/0.344, allocations: 42.75 kB / 1.182 GB, free: 7.227 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004298/0.3445, allocations: 91.59 kB / 1.182 GB, free: 7.137 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006387/0.3451, allocations: 410.2 kB / 1.182 GB, free: 6.688 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.539e-05/0.3452, allocations: 4.375 kB / 1.182 GB, free: 6.684 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.418e-05/0.3452, allocations: 12.36 kB / 1.182 GB, free: 6.672 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004298/0.3456, allocations: 395.2 kB / 1.183 GB, free: 6.273 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.145e-06/0.3457, allocations: 0 / 1.183 GB, free: 6.273 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.302e-05/0.3457, allocations: 0 / 1.183 GB, free: 6.273 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.3457, allocations: 0 / 1.183 GB, free: 6.273 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004318/0.3461, allocations: 435.7 kB / 1.183 GB, free: 5.848 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006783/0.3468, allocations: 0.673 MB / 1.184 GB, free: 5.125 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000505/0.3473, allocations: 0.5671 MB / 1.184 GB, free: 4.539 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003032/0.3476, allocations: 337.7 kB / 1.185 GB, free: 4.203 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009844/0.3486, allocations: 1.025 MB / 1.186 GB, free: 2.957 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004172/0.3491, allocations: 412.8 kB / 1.186 GB, free: 2.535 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=8): time 2.355e-06/0.3491, allocations: 0 / 1.186 GB, free: 2.535 MB / 0.9356 GB Notification: Performance of matching and sorting (n=8): time 0.001336/0.3504, allocations: 1.297 MB / 1.187 GB, free: 1.23 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.013e-05/0.3505, allocations: 85.09 kB / 1.187 GB, free: 1.129 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001259/0.3518, allocations: 1.289 MB / 1.189 GB, free: 15.83 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 4.395e-05/0.3518, allocations: 25.7 kB / 1.189 GB, free: 15.8 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002407/0.3521, allocations: 285.4 kB / 1.189 GB, free: 15.51 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 4.512e-05/0.3521, allocations: 27.72 kB / 1.189 GB, free: 15.48 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003488/0.3525, allocations: 351.6 kB / 1.189 GB, free: 15.14 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001139/0.3526, allocations: 326 kB / 1.19 GB, free: 14.81 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001262/0.3539, allocations: 1.365 MB / 1.191 GB, free: 13.45 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001321/0.3552, allocations: 1.501 MB / 1.192 GB, free: 11.93 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006926/0.3621, allocations: 3.564 MB / 1.196 GB, free: 8.277 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.362e-06/0.3622, allocations: 4 kB / 1.196 GB, free: 8.273 MB / 0.9512 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004627/0.3668, allocations: 4.01 MB / 1.2 GB, free: 4.227 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.975e-05/0.3669, allocations: 10.5 kB / 1.2 GB, free: 4.219 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.869e-05/0.3669, allocations: 0 / 1.2 GB, free: 4.219 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.452e-05/0.3669, allocations: 4 kB / 1.2 GB, free: 4.215 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001434/0.3671, allocations: 15.98 kB / 1.2 GB, free: 4.199 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.135e-06/0.3671, allocations: 0 / 1.2 GB, free: 4.199 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005063/0.3676, allocations: 236.3 kB / 1.2 GB, free: 3.965 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.379e-05/0.3677, allocations: 19.98 kB / 1.2 GB, free: 3.945 MB / 0.9512 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.0003267/0.368, allocations: 253.5 kB / 1.2 GB, free: 3.688 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.409e-05/0.3681, allocations: 74.62 kB / 1.2 GB, free: 3.613 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002977/0.3684, allocations: 79.81 kB / 1.2 GB, free: 3.523 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.248e-06/0.3684, allocations: 4.031 kB / 1.2 GB, free: 3.52 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.3684, allocations: 7.938 kB / 1.2 GB, free: 3.512 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.3684, allocations: 3.984 kB / 1.2 GB, free: 3.508 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004837/0.3689, allocations: 0.5141 MB / 1.201 GB, free: 2.949 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.3689, allocations: 3.938 kB / 1.201 GB, free: 2.945 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.043e-05/0.369, allocations: 4 kB / 1.201 GB, free: 2.941 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.342e-06/0.369, allocations: 4 kB / 1.201 GB, free: 2.938 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.844e-05/0.369, allocations: 7.984 kB / 1.201 GB, free: 2.93 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.179e-06/0.3691, allocations: 0 / 1.201 GB, free: 2.93 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.3691, allocations: 7.938 kB / 1.201 GB, free: 2.922 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009052/0.37, allocations: 1.002 MB / 1.202 GB, free: 1.898 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001655/0.3701, allocations: 167.7 kB / 1.202 GB, free: 1.715 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.113e-05/0.3702, allocations: 3.938 kB / 1.202 GB, free: 1.711 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001474/0.3704, allocations: 4 kB / 1.202 GB, free: 1.707 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.244e-05/0.3704, allocations: 11.98 kB / 1.202 GB, free: 1.695 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.536e-05/0.3705, allocations: 11.98 kB / 1.202 GB, free: 1.684 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0008425/0.3713, allocations: 0.7222 MB / 1.203 GB, free: 0.957 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3713, allocations: 4 kB / 1.203 GB, free: 0.9531 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.001553/0.3729, allocations: 0.5818 MB / 1.203 GB, free: 380 kB / 0.9512 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.003436/0.3763, allocations: 2.145 MB / 1.205 GB, free: 14.21 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.002386/0.3788, allocations: 2.556 MB / 1.208 GB, free: 11.64 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.3788, allocations: 0 / 1.208 GB, free: 11.64 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0003149/0.3791, allocations: 343.8 kB / 1.208 GB, free: 11.3 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004344/0.3795, allocations: 57.91 kB / 1.208 GB, free: 11.25 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01603/0.3956, allocations: 15.26 MB / 1.223 GB, free: 11.82 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005827/0.3962, allocations: 0.9918 MB / 1.224 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001612/0.3964, allocations: 37.42 kB / 1.224 GB, free: 10.77 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003451/0.3967, allocations: 287.3 kB / 1.225 GB, free: 10.49 MB / 0.9825 GB Notification: Performance of SimCode: time 8.82e-07/0.3968, allocations: 3.938 kB / 1.225 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05215/0.4489, allocations: 24.06 MB / 1.248 GB, free: 2.652 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.787/10.24, allocations: 10.38 kB / 1.248 GB, free: 2.641 MB / 0.9981 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)