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.007753/0.007753, allocations: 103.9 kB / 15.74 MB, free: 5.953 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.001813/0.001813, allocations: 188.9 kB / 16.67 MB, free: 5.883 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.491/1.491, allocations: 222.9 MB / 240.4 MB, free: 4.141 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.523/2.523, allocations: 437.1 MB / 0.7105 GB, free: 4.957 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0014/0.0014, allocations: 67.88 kB / 1.018 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2862/0.2876, 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_1borehole_5meters): time 0.002667/0.2903, allocations: 1.425 MB / 1.168 GB, free: 5.785 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.00641/0.2968, allocations: 4.199 MB / 1.172 GB, free: 1.562 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.686e-05/0.2969, allocations: 3.938 kB / 1.172 GB, free: 1.559 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001264/0.2971, allocations: 15.86 kB / 1.172 GB, free: 1.543 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0002522/0.2973, allocations: 27.84 kB / 1.172 GB, free: 1.516 MB / 0.92 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.004126/0.3015, allocations: 1.51 MB / 1.173 GB, free: 4 kB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001739/0.3016, allocations: 87.75 kB / 1.173 GB, free: 15.92 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 4.624e-05/0.3017, allocations: 4 kB / 1.173 GB, free: 15.91 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 8.989e-05/0.3018, allocations: 51.81 kB / 1.173 GB, free: 15.86 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002317/0.302, allocations: 143.6 kB / 1.174 GB, free: 15.72 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 4.578e-05/0.3021, allocations: 15.94 kB / 1.174 GB, free: 15.71 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003489/0.3056, allocations: 2.204 MB / 1.176 GB, free: 13.5 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0002193/0.3058, allocations: 267.8 kB / 1.176 GB, free: 13.24 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0002621/0.3061, allocations: 282.3 kB / 1.176 GB, free: 12.96 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.003551/0.3097, allocations: 2.109 MB / 1.178 GB, free: 10.85 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.3097, allocations: 0 / 1.178 GB, free: 10.85 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.734e-06/0.3097, allocations: 0 / 1.178 GB, free: 10.85 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 2.273e-05/0.3097, allocations: 4 kB / 1.178 GB, free: 10.84 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.00826/0.318, allocations: 1.296 MB / 1.18 GB, free: 9.496 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.867e-05/0.318, allocations: 15.98 kB / 1.18 GB, free: 9.48 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.604e-05/0.3181, allocations: 42.69 kB / 1.18 GB, free: 9.43 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004194/0.3185, allocations: 83.69 kB / 1.18 GB, free: 9.348 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004254/0.319, allocations: 369 kB / 1.18 GB, free: 8.938 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.897e-05/0.319, allocations: 16.3 kB / 1.18 GB, free: 8.922 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.215e-05/0.319, allocations: 8.312 kB / 1.18 GB, free: 8.914 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004242/0.3195, allocations: 395.3 kB / 1.18 GB, free: 8.516 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.3195, allocations: 0 / 1.18 GB, free: 8.516 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.25e-05/0.3195, allocations: 0 / 1.18 GB, free: 8.516 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.3195, allocations: 0 / 1.18 GB, free: 8.516 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004128/0.3199, allocations: 439.7 kB / 1.181 GB, free: 8.086 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005926/0.3205, allocations: 0.6327 MB / 1.181 GB, free: 7.402 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005036/0.3211, allocations: 0.5633 MB / 1.182 GB, free: 6.82 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000295/0.3214, allocations: 337.7 kB / 1.182 GB, free: 6.484 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00108/0.3225, allocations: 1.025 MB / 1.183 GB, free: 5.238 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004007/0.3229, allocations: 412.8 kB / 1.184 GB, free: 4.816 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=8): time 1.944e-06/0.3229, allocations: 0 / 1.184 GB, free: 4.816 MB / 0.9356 GB Notification: Performance of matching and sorting (n=8): time 0.001314/0.3242, allocations: 1.297 MB / 1.185 GB, free: 3.512 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.072e-05/0.3243, allocations: 77.11 kB / 1.185 GB, free: 3.418 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001161/0.3254, allocations: 1.218 MB / 1.186 GB, free: 2.184 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 4.764e-05/0.3255, allocations: 29.7 kB / 1.186 GB, free: 2.148 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001861/0.3257, allocations: 265.4 kB / 1.187 GB, free: 1.883 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 4.074e-05/0.3257, allocations: 19.78 kB / 1.187 GB, free: 1.863 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003265/0.3261, allocations: 351.6 kB / 1.187 GB, free: 1.516 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 9.997e-05/0.3262, allocations: 310 kB / 1.187 GB, free: 1.207 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001268/0.3275, allocations: 1.381 MB / 1.189 GB, free: 15.82 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001364/0.3288, allocations: 1.497 MB / 1.19 GB, free: 14.32 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006871/0.3357, allocations: 3.557 MB / 1.193 GB, free: 10.67 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.47e-06/0.3358, allocations: 8 kB / 1.193 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004407/0.3402, allocations: 3.999 MB / 1.197 GB, free: 6.625 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.408e-05/0.3402, allocations: 8 kB / 1.197 GB, free: 6.617 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.193e-05/0.3402, allocations: 3.984 kB / 1.197 GB, free: 6.613 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.009e-05/0.3403, allocations: 4 kB / 1.197 GB, free: 6.609 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001342/0.3404, allocations: 12 kB / 1.197 GB, free: 6.598 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.065e-05/0.3404, allocations: 7.875 kB / 1.197 GB, free: 6.59 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004913/0.3409, allocations: 248.2 kB / 1.198 GB, free: 6.344 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.284e-05/0.341, allocations: 19.98 kB / 1.198 GB, free: 6.324 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.0003156/0.3413, allocations: 241 kB / 1.198 GB, free: 6.082 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.838e-05/0.3414, allocations: 66.72 kB / 1.198 GB, free: 6.016 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00029/0.3417, allocations: 79 kB / 1.198 GB, free: 5.926 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.948e-06/0.3417, allocations: 4.031 kB / 1.198 GB, free: 5.922 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.664e-06/0.3417, allocations: 4 kB / 1.198 GB, free: 5.918 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.3417, allocations: 0 / 1.198 GB, free: 5.918 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000433/0.3422, allocations: 496.9 kB / 1.199 GB, free: 5.387 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.3422, allocations: 3.938 kB / 1.199 GB, free: 5.383 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.151e-05/0.3423, allocations: 15.92 kB / 1.199 GB, free: 5.367 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.397e-06/0.3423, allocations: 0 / 1.199 GB, free: 5.367 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.446e-05/0.3423, allocations: 0 / 1.199 GB, free: 5.367 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.66e-06/0.3423, allocations: 8 kB / 1.199 GB, free: 5.359 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.225e-06/0.3423, allocations: 0 / 1.199 GB, free: 5.359 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009056/0.3432, allocations: 0.9975 MB / 1.2 GB, free: 4.34 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001302/0.3434, allocations: 163.7 kB / 1.2 GB, free: 4.16 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.411e-05/0.3434, allocations: 0 / 1.2 GB, free: 4.16 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001414/0.3436, allocations: 7.984 kB / 1.2 GB, free: 4.152 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.416e-05/0.3436, allocations: 4 kB / 1.2 GB, free: 4.148 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.265e-05/0.3437, allocations: 23.97 kB / 1.2 GB, free: 4.125 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0007472/0.3444, allocations: 0.6689 MB / 1.2 GB, free: 3.449 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2.01e-07/0.3444, allocations: 0 / 1.2 GB, free: 3.449 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.001561/0.346, allocations: 0.5779 MB / 1.201 GB, free: 2.871 MB / 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.003383/0.3494, allocations: 2.133 MB / 1.203 GB, free: 0.7227 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.002311/0.3517, allocations: 2.551 MB / 1.206 GB, free: 14.16 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.3517, allocations: 3.938 kB / 1.206 GB, free: 14.15 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0003328/0.3521, allocations: 343.9 kB / 1.206 GB, free: 13.82 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004158/0.3525, allocations: 32.77 kB / 1.206 GB, free: 13.78 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01588/0.3684, allocations: 15.25 MB / 1.221 GB, free: 14.36 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005159/0.369, allocations: 0.9679 MB / 1.222 GB, free: 13.37 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001312/0.3691, allocations: 32.56 kB / 1.222 GB, free: 13.34 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002962/0.3694, allocations: 267.3 kB / 1.222 GB, free: 13.08 MB / 0.9825 GB Notification: Performance of SimCode: time 7.81e-07/0.3694, allocations: 0 / 1.222 GB, free: 13.08 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04874/0.4182, allocations: 23.8 MB / 1.245 GB, free: 5.484 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.562/9.981, allocations: 16.62 kB / 1.245 GB, free: 5.469 MB / 0.9981 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)