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.005024/0.005024, allocations: 96.7 kB / 15.73 MB, free: 6.051 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.001459/0.001459, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.346/1.346, allocations: 222.9 MB / 240.4 MB, free: 4.328 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.519/2.519, allocations: 437.1 MB / 0.7106 GB, free: 4.961 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001847/0.001847, allocations: 67.89 kB / 1.018 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.276/0.2778, allocations: 151.6 MB / 1.166 GB, free: 7.223 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002847/0.2807, allocations: 1.756 MB / 1.168 GB, free: 5.453 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.007257/0.288, allocations: 5.394 MB / 1.173 GB, free: 32 kB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.81e-05/0.2881, allocations: 0 / 1.173 GB, free: 32 kB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.001129/0.2892, allocations: 378.3 kB / 1.174 GB, free: 15.66 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001055/0.2893, 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.003171/0.2925, allocations: 1.499 MB / 1.175 GB, free: 14.1 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002066/0.2927, allocations: 155.4 kB / 1.175 GB, free: 13.95 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 3.763e-05/0.2928, allocations: 9.562 kB / 1.175 GB, free: 13.93 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 7.637e-05/0.2928, allocations: 63.7 kB / 1.175 GB, free: 13.87 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002162/0.2931, allocations: 171.4 kB / 1.176 GB, free: 13.7 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 4.126e-05/0.2931, allocations: 12 kB / 1.176 GB, free: 13.69 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002954/0.2961, allocations: 2.211 MB / 1.178 GB, free: 11.48 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0002182/0.2963, allocations: 279.8 kB / 1.178 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0002612/0.2966, allocations: 302.1 kB / 1.178 GB, free: 10.91 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.002498/0.2991, allocations: 2.196 MB / 1.18 GB, free: 8.703 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.2991, allocations: 0 / 1.18 GB, free: 8.703 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.252e-06/0.2991, allocations: 0 / 1.18 GB, free: 8.703 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.702e-06/0.2991, allocations: 0 / 1.18 GB, free: 8.703 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.01006/0.3092, allocations: 1.414 MB / 1.182 GB, free: 7.234 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.635e-05/0.3092, allocations: 15.98 kB / 1.182 GB, free: 7.219 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.755e-05/0.3093, allocations: 38.73 kB / 1.182 GB, free: 7.172 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000448/0.3098, allocations: 96.2 kB / 1.182 GB, free: 7.078 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005074/0.3103, allocations: 410.4 kB / 1.182 GB, free: 6.629 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.977e-06/0.3103, allocations: 4.375 kB / 1.182 GB, free: 6.625 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.868e-05/0.3103, allocations: 12.38 kB / 1.182 GB, free: 6.613 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004291/0.3108, allocations: 399.2 kB / 1.183 GB, free: 6.211 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.745e-06/0.3108, allocations: 0 / 1.183 GB, free: 6.211 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.169e-05/0.3108, allocations: 3.984 kB / 1.183 GB, free: 6.207 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.867e-06/0.3108, allocations: 0 / 1.183 GB, free: 6.207 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004356/0.3112, allocations: 439.7 kB / 1.183 GB, free: 5.777 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005921/0.3118, allocations: 0.6582 MB / 1.184 GB, free: 5.07 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005946/0.3124, allocations: 0.571 MB / 1.184 GB, free: 4.48 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003159/0.3128, allocations: 337.7 kB / 1.185 GB, free: 4.145 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009753/0.3138, allocations: 1.025 MB / 1.186 GB, free: 2.898 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000408/0.3142, allocations: 408.8 kB / 1.186 GB, free: 2.48 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=8): time 1.213e-06/0.3142, allocations: 4 kB / 1.186 GB, free: 2.477 MB / 0.9356 GB Notification: Performance of matching and sorting (n=8): time 0.001495/0.3157, allocations: 1.309 MB / 1.187 GB, free: 1.16 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.234e-05/0.3157, allocations: 81.11 kB / 1.187 GB, free: 1.062 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001226/0.317, allocations: 1.294 MB / 1.189 GB, free: 15.75 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.572e-05/0.317, allocations: 29.7 kB / 1.189 GB, free: 15.72 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002185/0.3172, allocations: 294 kB / 1.189 GB, free: 15.43 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.126e-05/0.3173, allocations: 23.84 kB / 1.189 GB, free: 15.4 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000327/0.3176, allocations: 351.6 kB / 1.189 GB, free: 15.05 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.000124/0.3177, allocations: 318 kB / 1.19 GB, free: 14.74 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001291/0.319, allocations: 1.373 MB / 1.191 GB, free: 13.36 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001333/0.3204, allocations: 1.501 MB / 1.192 GB, free: 11.85 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006938/0.3273, allocations: 3.564 MB / 1.196 GB, free: 8.195 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.3273, allocations: 3.938 kB / 1.196 GB, free: 8.191 MB / 0.9512 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004429/0.3318, allocations: 4.019 MB / 1.2 GB, free: 4.141 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.075e-05/0.3318, allocations: 8 kB / 1.2 GB, free: 4.133 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.493e-05/0.3318, allocations: 0 / 1.2 GB, free: 4.133 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.644e-05/0.3319, allocations: 4.031 kB / 1.2 GB, free: 4.129 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001205/0.332, allocations: 19.92 kB / 1.2 GB, free: 4.109 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.332, allocations: 4 kB / 1.2 GB, free: 4.105 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004714/0.3325, allocations: 241.3 kB / 1.2 GB, free: 3.867 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.111e-05/0.3325, allocations: 27.98 kB / 1.2 GB, free: 3.84 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.000479/0.333, allocations: 245.7 kB / 1.2 GB, free: 3.59 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001575/0.3332, allocations: 79.23 kB / 1.2 GB, free: 3.512 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003146/0.3336, allocations: 87.75 kB / 1.201 GB, free: 3.414 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.3336, allocations: 3.938 kB / 1.201 GB, free: 3.41 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.3336, allocations: 4 kB / 1.201 GB, free: 3.406 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.3336, allocations: 0 / 1.201 GB, free: 3.406 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004737/0.3341, allocations: 0.5217 MB / 1.201 GB, free: 2.84 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.3341, allocations: 0 / 1.201 GB, free: 2.84 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.678e-05/0.3341, allocations: 7.984 kB / 1.201 GB, free: 2.832 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.3342, allocations: 0 / 1.201 GB, free: 2.832 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.298e-05/0.3342, allocations: 8.031 kB / 1.201 GB, free: 2.824 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.3342, allocations: 0 / 1.201 GB, free: 2.824 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.3342, allocations: 0 / 1.201 GB, free: 2.824 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009349/0.3351, allocations: 1.018 MB / 1.202 GB, free: 1.785 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001247/0.3353, allocations: 168.4 kB / 1.202 GB, free: 1.602 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.852e-05/0.3353, allocations: 7.984 kB / 1.202 GB, free: 1.594 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001314/0.3355, allocations: 4 kB / 1.202 GB, free: 1.59 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.539e-05/0.3355, allocations: 7.984 kB / 1.202 GB, free: 1.582 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.964e-05/0.3355, allocations: 11.98 kB / 1.202 GB, free: 1.57 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0008055/0.3363, allocations: 0.7222 MB / 1.203 GB, free: 0.8438 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3364, allocations: 0 / 1.203 GB, free: 0.8438 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.001491/0.3378, allocations: 0.5884 MB / 1.204 GB, free: 260 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.003022/0.3409, allocations: 2.16 MB / 1.206 GB, free: 14.08 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.00242/0.3433, allocations: 2.556 MB / 1.208 GB, free: 11.51 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3433, allocations: 0 / 1.208 GB, free: 11.51 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0003317/0.3437, allocations: 331.8 kB / 1.208 GB, free: 11.18 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003405/0.344, allocations: 63.58 kB / 1.209 GB, free: 11.12 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01538/0.3594, allocations: 15.29 MB / 1.223 GB, free: 11.66 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006635/0.3601, allocations: 0.9918 MB / 1.224 GB, free: 10.64 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001465/0.3602, allocations: 41.36 kB / 1.224 GB, free: 10.6 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003235/0.3606, allocations: 291.2 kB / 1.225 GB, free: 10.32 MB / 0.9825 GB Notification: Performance of SimCode: time 1.062e-06/0.3606, allocations: 4 kB / 1.225 GB, free: 10.31 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.635/1.996, allocations: 24.06 MB / 1.248 GB, free: 2.48 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.95/15.95, allocations: 10.56 kB / 1.248 GB, free: 2.469 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=400 --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)