Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001264/0.001264, 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.001124/0.001124, allocations: 191.5 kB / 16.14 MB, free: 6.719 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.23/1.23, allocations: 222.9 MB / 239.8 MB, free: 4.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.467/2.467, allocations: 461.8 MB / 0.7342 GB, free: 14.16 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001196, allocations: 66.75 kB / 0.8985 GB, free: 36.97 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2236/0.2248, allocations: 157.4 MB / 1.052 GB, free: 8.164 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002162/0.227, allocations: 1.505 MB / 1.054 GB, free: 6.641 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.005465/0.2325, allocations: 4.488 MB / 1.058 GB, free: 2.137 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.849e-05/0.2325, allocations: 0 / 1.058 GB, free: 2.137 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 8.364e-05/0.2326, allocations: 3.938 kB / 1.058 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001618/0.2328, allocations: 35.83 kB / 1.058 GB, free: 2.098 MB / 0.8106 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.002214/0.235, allocations: 1.184 MB / 1.059 GB, free: 0.9141 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001043/0.2351, allocations: 115.8 kB / 1.059 GB, free: 0.8008 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.254e-05/0.2351, allocations: 4 kB / 1.059 GB, free: 0.7969 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 5.559e-05/0.2352, allocations: 51.78 kB / 1.059 GB, free: 0.7461 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001855/0.2354, allocations: 153 kB / 1.06 GB, free: 0.5977 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.539e-05/0.2354, allocations: 12 kB / 1.06 GB, free: 0.5859 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002364/0.2378, allocations: 2.188 MB / 1.062 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001757/0.238, allocations: 267.8 kB / 1.062 GB, free: 14.13 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001969/0.2382, allocations: 278.3 kB / 1.062 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.001991/0.2402, allocations: 2.159 MB / 1.064 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.2402, allocations: 4 kB / 1.064 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of FrontEnd: time 6.91e-07/0.2402, allocations: 0 / 1.064 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.4e-06/0.2402, allocations: 0 / 1.064 GB, free: 11.69 MB / 0.8262 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.007112/0.2473, allocations: 1.3 MB / 1.066 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.294e-05/0.2474, allocations: 11.97 kB / 1.066 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.099e-05/0.2474, allocations: 38.73 kB / 1.066 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000335/0.2477, allocations: 87.69 kB / 1.066 GB, free: 10.19 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003194/0.2481, allocations: 361 kB / 1.066 GB, free: 9.789 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.019e-05/0.2481, allocations: 8.375 kB / 1.066 GB, free: 9.781 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.414e-05/0.2481, allocations: 4.375 kB / 1.066 GB, free: 9.777 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003684/0.2485, allocations: 391.3 kB / 1.067 GB, free: 9.383 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.921e-06/0.2485, allocations: 3.938 kB / 1.067 GB, free: 9.379 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.054e-05/0.2485, allocations: 4 kB / 1.067 GB, free: 9.375 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.416e-06/0.2485, allocations: 0 / 1.067 GB, free: 9.375 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003731/0.2489, allocations: 443.6 kB / 1.067 GB, free: 8.941 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004792/0.2494, allocations: 0.6404 MB / 1.068 GB, free: 8.25 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004441/0.2499, allocations: 0.5672 MB / 1.068 GB, free: 7.664 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002709/0.2501, allocations: 333.7 kB / 1.068 GB, free: 7.332 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008712/0.251, allocations: 1.028 MB / 1.069 GB, free: 6.082 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003467/0.2514, allocations: 408.8 kB / 1.07 GB, free: 5.664 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=8): time 1.262e-06/0.2514, allocations: 0 / 1.07 GB, free: 5.664 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8): time 0.001122/0.2525, allocations: 1.289 MB / 1.071 GB, free: 4.367 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.539e-05/0.2526, allocations: 85.23 kB / 1.071 GB, free: 4.266 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009462/0.2535, allocations: 1.206 MB / 1.072 GB, free: 3.043 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.667e-05/0.2536, allocations: 37.69 kB / 1.072 GB, free: 3 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001599/0.2537, allocations: 261.3 kB / 1.073 GB, free: 2.738 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.799e-05/0.2538, allocations: 23.73 kB / 1.073 GB, free: 2.715 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002724/0.254, allocations: 347.6 kB / 1.073 GB, free: 2.371 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 8.381e-05/0.2541, allocations: 314 kB / 1.073 GB, free: 2.059 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001055/0.2552, allocations: 1.373 MB / 1.075 GB, free: 0.6836 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001145/0.2563, allocations: 1.509 MB / 1.076 GB, free: 15.16 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006398/0.2628, allocations: 3.553 MB / 1.08 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.2628, allocations: 0 / 1.08 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.003573/0.2663, allocations: 4.01 MB / 1.083 GB, free: 7.473 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.282e-05/0.2664, allocations: 4 kB / 1.083 GB, free: 7.469 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.36e-05/0.2664, allocations: 4.078 kB / 1.083 GB, free: 7.465 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.034e-05/0.2664, allocations: 0 / 1.083 GB, free: 7.465 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001106/0.2665, allocations: 15.98 kB / 1.084 GB, free: 7.449 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.613e-06/0.2665, allocations: 3.984 kB / 1.084 GB, free: 7.445 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003955/0.2669, allocations: 236.2 kB / 1.084 GB, free: 7.211 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.649e-05/0.267, allocations: 27.98 kB / 1.084 GB, free: 7.184 MB / 0.8419 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.0002494/0.2672, allocations: 245.6 kB / 1.084 GB, free: 6.934 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.29e-05/0.2673, allocations: 74.62 kB / 1.084 GB, free: 6.859 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002394/0.2675, allocations: 71.06 kB / 1.084 GB, free: 6.781 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/0.2676, allocations: 4 kB / 1.084 GB, free: 6.777 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.2676, allocations: 0 / 1.084 GB, free: 6.777 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.2676, allocations: 4.031 kB / 1.084 GB, free: 6.773 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003494/0.2679, allocations: 492.9 kB / 1.085 GB, free: 6.246 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.489e-06/0.2679, allocations: 7.938 kB / 1.085 GB, free: 6.238 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.046e-05/0.268, allocations: 11.92 kB / 1.085 GB, free: 6.227 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.268, allocations: 0 / 1.085 GB, free: 6.227 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.153e-05/0.268, allocations: 4 kB / 1.085 GB, free: 6.223 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.268, allocations: 0 / 1.085 GB, free: 6.223 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2681, allocations: 0 / 1.085 GB, free: 6.223 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007824/0.2688, allocations: 0.9975 MB / 1.086 GB, free: 5.203 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 9.112e-05/0.2689, allocations: 163.7 kB / 1.086 GB, free: 5.023 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.695e-05/0.269, allocations: 4 kB / 1.086 GB, free: 5.02 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001288/0.2691, allocations: 3.984 kB / 1.086 GB, free: 5.016 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.066e-05/0.2692, allocations: 4 kB / 1.086 GB, free: 5.012 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.732e-05/0.2692, allocations: 23.91 kB / 1.086 GB, free: 4.988 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0006026/0.2698, allocations: 0.6728 MB / 1.086 GB, free: 4.309 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2698, allocations: 0 / 1.086 GB, free: 4.309 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.001201/0.271, allocations: 0.5857 MB / 1.087 GB, free: 3.723 MB / 0.8419 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.002525/0.2736, allocations: 2.144 MB / 1.089 GB, free: 1.566 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001986/0.2756, allocations: 2.548 MB / 1.092 GB, free: 15 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2756, allocations: 0 / 1.092 GB, free: 15 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002876/0.2759, allocations: 343.7 kB / 1.092 GB, free: 14.67 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002649/0.2761, allocations: 38.66 kB / 1.092 GB, free: 14.63 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01299/0.2891, allocations: 15.26 MB / 1.107 GB, free: 15.2 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004303/0.2896, allocations: 0.9682 MB / 1.108 GB, free: 14.21 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001578/0.2897, allocations: 36.55 kB / 1.108 GB, free: 14.17 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000261/0.29, allocations: 263.3 kB / 1.108 GB, free: 13.91 MB / 0.8731 GB Notification: Performance of SimCode: time 3.7e-07/0.29, allocations: 0 / 1.108 GB, free: 13.91 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0326/0.3226, allocations: 23.24 MB / 1.131 GB, free: 6.883 MB / 0.8887 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002032/0.3229, allocations: 345.9 kB / 1.131 GB, free: 6.5 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.396/2.719, allocations: 3.047 kB / 1.131 GB, free: 6.5 MB / 0.8887 GB (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters_fmu --startTime=0 --stopTime=4.12e+08 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.fmu > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1)