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.001715/0.001715, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001982/0.001983, allocations: 197.4 kB / 16.26 MB, free: 6.629 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.341/1.341, allocations: 222.9 MB / 239.9 MB, free: 4.527 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.385/2.385, allocations: 437 MB / 0.7101 GB, free: 5.273 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001292/0.001292, allocations: 59.91 kB / 0.8689 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5883/0.5896, allocations: 151.6 MB / 1.017 GB, free: 2.676 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002974/0.5926, allocations: 1.495 MB / 1.018 GB, free: 1.168 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.006058/0.5987, allocations: 4.231 MB / 1.023 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.141e-05/0.5988, allocations: 0 / 1.023 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.000121/0.5989, allocations: 7.922 kB / 1.023 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002485/0.5992, allocations: 31.84 kB / 1.023 GB, free: 12.88 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.003765/0.603, allocations: 1.343 MB / 1.024 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.000146/0.6031, allocations: 91.67 kB / 1.024 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 5.093e-05/0.6032, allocations: 11.97 kB / 1.024 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 8.29e-05/0.6033, allocations: 47.84 kB / 1.024 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002421/0.6035, allocations: 160.9 kB / 1.024 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.498e-05/0.6036, allocations: 16 kB / 1.024 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003165/0.6068, allocations: 2.196 MB / 1.026 GB, free: 9.02 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0002119/0.607, allocations: 271.8 kB / 1.027 GB, free: 8.754 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002495/0.6072, allocations: 270.3 kB / 1.027 GB, free: 8.488 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.003222/0.6105, allocations: 2.128 MB / 1.029 GB, free: 6.352 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.6105, allocations: 0 / 1.029 GB, free: 6.352 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.473e-06/0.6105, allocations: 0 / 1.029 GB, free: 6.352 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.668e-05/0.6105, allocations: 4 kB / 1.029 GB, free: 6.348 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.009119/0.6196, allocations: 1.31 MB / 1.03 GB, free: 4.988 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.804e-05/0.6197, allocations: 11.98 kB / 1.03 GB, free: 4.977 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.4e-05/0.6197, allocations: 30.75 kB / 1.03 GB, free: 4.938 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004361/0.6202, allocations: 87.69 kB / 1.03 GB, free: 4.852 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003804/0.6206, allocations: 357 kB / 1.031 GB, free: 4.453 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.572e-05/0.6206, allocations: 12.36 kB / 1.031 GB, free: 4.441 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.279e-05/0.6206, allocations: 12.31 kB / 1.031 GB, free: 4.43 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004005/0.6211, allocations: 391.3 kB / 1.031 GB, free: 4.035 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.374e-06/0.6211, allocations: 0 / 1.031 GB, free: 4.035 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.53e-05/0.6211, allocations: 3.984 kB / 1.031 GB, free: 4.031 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.673e-06/0.6211, allocations: 3.984 kB / 1.031 GB, free: 4.027 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000404/0.6215, allocations: 439.8 kB / 1.032 GB, free: 3.598 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005728/0.6221, allocations: 0.6404 MB / 1.032 GB, free: 2.906 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004787/0.6226, allocations: 0.5594 MB / 1.033 GB, free: 2.328 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002822/0.6229, allocations: 333.7 kB / 1.033 GB, free: 1.996 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001016/0.6239, allocations: 1.028 MB / 1.034 GB, free: 0.7461 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003614/0.6243, allocations: 404.8 kB / 1.034 GB, free: 340 kB / 0.7794 GB Notification: Performance of pre-optimization done (n=8): time 1.553e-06/0.6243, allocations: 4 kB / 1.034 GB, free: 336 kB / 0.7794 GB Notification: Performance of matching and sorting (n=8): time 0.001234/0.6255, allocations: 1.297 MB / 1.036 GB, free: 15.02 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.276e-05/0.6256, allocations: 89.05 kB / 1.036 GB, free: 14.92 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001147/0.6267, allocations: 1.21 MB / 1.037 GB, free: 13.69 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 4.72e-05/0.6268, allocations: 33.7 kB / 1.037 GB, free: 13.65 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001976/0.627, allocations: 269.4 kB / 1.037 GB, free: 13.38 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 4.117e-05/0.6271, allocations: 19.75 kB / 1.037 GB, free: 13.36 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003268/0.6274, allocations: 351.6 kB / 1.038 GB, free: 13.02 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001086/0.6275, allocations: 314 kB / 1.038 GB, free: 12.7 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001162/0.6287, allocations: 1.369 MB / 1.039 GB, free: 11.33 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001203/0.6299, allocations: 1.501 MB / 1.041 GB, free: 9.82 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006692/0.6366, allocations: 3.564 MB / 1.044 GB, free: 6.164 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.6366, allocations: 0 / 1.044 GB, free: 6.164 MB / 0.795 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004173/0.6408, allocations: 4.003 MB / 1.048 GB, free: 2.125 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.996e-05/0.6408, allocations: 7.984 kB / 1.048 GB, free: 2.117 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.623e-05/0.6408, allocations: 4.031 kB / 1.048 GB, free: 2.113 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.313e-05/0.6409, allocations: 4 kB / 1.048 GB, free: 2.109 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001244/0.641, allocations: 12 kB / 1.048 GB, free: 2.098 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.038e-05/0.641, allocations: 3.984 kB / 1.048 GB, free: 2.094 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004241/0.6414, allocations: 232.3 kB / 1.048 GB, free: 1.863 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.35e-05/0.6415, allocations: 23.98 kB / 1.048 GB, free: 1.84 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.0002915/0.6418, allocations: 238.1 kB / 1.049 GB, free: 1.598 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.577e-05/0.6419, allocations: 70.72 kB / 1.049 GB, free: 1.527 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002765/0.6421, allocations: 78.97 kB / 1.049 GB, free: 1.441 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.6422, allocations: 4 kB / 1.049 GB, free: 1.438 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.6422, allocations: 0 / 1.049 GB, free: 1.438 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.606e-06/0.6422, allocations: 0 / 1.049 GB, free: 1.438 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004063/0.6426, allocations: 492.9 kB / 1.049 GB, free: 0.9102 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.6426, allocations: 7.938 kB / 1.049 GB, free: 0.9023 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.845e-05/0.6427, allocations: 7.984 kB / 1.049 GB, free: 0.8945 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.6427, allocations: 4.031 kB / 1.049 GB, free: 0.8906 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.761e-05/0.6427, allocations: 8 kB / 1.049 GB, free: 0.8828 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.6427, allocations: 3.938 kB / 1.049 GB, free: 0.8789 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.6427, allocations: 3.938 kB / 1.049 GB, free: 0.875 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000816/0.6435, allocations: 0.9975 MB / 1.05 GB, free: 15.86 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001171/0.6437, allocations: 159.8 kB / 1.05 GB, free: 15.68 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.123e-05/0.6437, allocations: 8 kB / 1.05 GB, free: 15.67 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001337/0.6439, allocations: 3.984 kB / 1.05 GB, free: 15.67 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.643e-05/0.6439, allocations: 8 kB / 1.05 GB, free: 15.66 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.666e-05/0.644, allocations: 15.97 kB / 1.05 GB, free: 15.64 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0006828/0.6447, allocations: 0.6689 MB / 1.051 GB, free: 14.97 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.253e-06/0.6447, allocations: 0 / 1.051 GB, free: 14.97 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.001478/0.6462, allocations: 0.5779 MB / 1.052 GB, free: 14.39 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.003335/0.6495, allocations: 2.137 MB / 1.054 GB, free: 12.25 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.002185/0.6517, allocations: 2.56 MB / 1.056 GB, free: 9.672 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.225e-06/0.6517, allocations: 0 / 1.056 GB, free: 9.672 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003034/0.652, allocations: 343.7 kB / 1.057 GB, free: 9.336 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002955/0.6523, allocations: 36.59 kB / 1.057 GB, free: 9.301 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01469/0.667, allocations: 15.25 MB / 1.071 GB, free: 9.871 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004698/0.6675, allocations: 0.9717 MB / 1.072 GB, free: 8.871 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001665/0.6677, allocations: 32.55 kB / 1.072 GB, free: 8.84 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002806/0.668, allocations: 263.3 kB / 1.073 GB, free: 8.582 MB / 0.8262 GB Notification: Performance of SimCode: time 5.21e-07/0.668, allocations: 0 / 1.073 GB, free: 8.582 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.155/2.823, allocations: 23.52 MB / 1.096 GB, free: 1.301 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003/2.823, allocations: 338.3 kB / 1.096 GB, free: 0.9219 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.716/5.539, allocations: 3 kB / 1.096 GB, free: 0.9219 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)