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_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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_SmallScaleValidation,fileNamePrefix="Buildings_latest_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_latest_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.001207/0.001207, 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.001339/0.001339, allocations: 195.9 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.216/1.216, allocations: 222.9 MB / 239.9 MB, free: 4.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.448/2.448, allocations: 461.9 MB / 0.7343 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 64.23 kB / 0.8988 GB, free: 37.09 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.233/0.2343, allocations: 157.4 MB / 1.052 GB, free: 8.656 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002841/0.2371, allocations: 1.828 MB / 1.054 GB, free: 6.809 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.007036/0.2442, allocations: 5.396 MB / 1.059 GB, free: 1.395 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001189/0.2443, allocations: 0 / 1.059 GB, free: 1.395 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001082/0.2454, allocations: 362.6 kB / 1.06 GB, free: 1.039 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001416/0.2456, allocations: 59.73 kB / 1.06 GB, free: 0.9805 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‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.003452/0.2491, allocations: 1.337 MB / 1.061 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002446/0.2493, allocations: 163.3 kB / 1.061 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.747e-05/0.2494, allocations: 9.562 kB / 1.061 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.139e-05/0.2495, allocations: 59.7 kB / 1.061 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000214/0.2497, allocations: 180.8 kB / 1.062 GB, free: 15.24 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.967e-05/0.2497, allocations: 16 kB / 1.062 GB, free: 15.22 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002819/0.2526, allocations: 2.196 MB / 1.064 GB, free: 13.02 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001994/0.2528, allocations: 275.8 kB / 1.064 GB, free: 12.75 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002459/0.253, allocations: 314 kB / 1.064 GB, free: 12.44 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.002767/0.2558, allocations: 2.178 MB / 1.066 GB, free: 10.26 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.002e-06/0.2558, allocations: 4 kB / 1.066 GB, free: 10.26 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.282e-06/0.2558, allocations: 3.938 kB / 1.066 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.262e-05/0.2559, allocations: 4 kB / 1.066 GB, free: 10.25 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.00885/0.2647, allocations: 1.363 MB / 1.068 GB, free: 8.836 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/0.2648, allocations: 8.625 kB / 1.068 GB, free: 8.828 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.623e-05/0.2648, allocations: 38.75 kB / 1.068 GB, free: 8.781 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004057/0.2652, allocations: 99.58 kB / 1.068 GB, free: 8.684 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004698/0.2657, allocations: 406.2 kB / 1.068 GB, free: 8.238 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.346e-05/0.2657, allocations: 8.359 kB / 1.068 GB, free: 8.23 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.883e-05/0.2658, allocations: 8.375 kB / 1.068 GB, free: 8.223 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003972/0.2662, allocations: 387.3 kB / 1.069 GB, free: 7.832 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.304e-06/0.2662, allocations: 0 / 1.069 GB, free: 7.832 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.179e-05/0.2662, allocations: 3.938 kB / 1.069 GB, free: 7.828 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.662e-06/0.2662, allocations: 7.984 kB / 1.069 GB, free: 7.82 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000402/0.2666, allocations: 435.7 kB / 1.069 GB, free: 7.395 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000608/0.2672, allocations: 0.6693 MB / 1.07 GB, free: 6.676 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004998/0.2678, allocations: 0.5555 MB / 1.07 GB, free: 6.102 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002972/0.2681, allocations: 341.7 kB / 1.071 GB, free: 5.762 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009837/0.2691, allocations: 1.028 MB / 1.072 GB, free: 4.512 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003551/0.2694, allocations: 408.8 kB / 1.072 GB, free: 4.094 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=8): time 3.356e-06/0.2694, allocations: 3.984 kB / 1.072 GB, free: 4.09 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8): time 0.001167/0.2706, allocations: 1.296 MB / 1.073 GB, free: 2.785 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.225e-05/0.2707, allocations: 81.11 kB / 1.073 GB, free: 2.688 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001125/0.2718, allocations: 1.29 MB / 1.075 GB, free: 1.387 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.125e-05/0.2719, allocations: 33.7 kB / 1.075 GB, free: 1.348 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001875/0.272, allocations: 285.3 kB / 1.075 GB, free: 1.062 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.368e-05/0.2721, allocations: 23.73 kB / 1.075 GB, free: 1.039 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003163/0.2724, allocations: 355.6 kB / 1.075 GB, free: 0.6875 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001014/0.2725, allocations: 318 kB / 1.076 GB, free: 380 kB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001152/0.2737, allocations: 1.373 MB / 1.077 GB, free: 15 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001229/0.2749, allocations: 1.509 MB / 1.078 GB, free: 13.48 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00667/0.2816, allocations: 3.557 MB / 1.082 GB, free: 9.828 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.2816, allocations: 0 / 1.082 GB, free: 9.828 MB / 0.8419 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004118/0.2858, allocations: 4.014 MB / 1.086 GB, free: 5.777 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.2858, allocations: 8.031 kB / 1.086 GB, free: 5.77 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.641e-05/0.2858, allocations: 4 kB / 1.086 GB, free: 5.766 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.282e-05/0.2858, allocations: 0 / 1.086 GB, free: 5.766 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001221/0.286, allocations: 19.98 kB / 1.086 GB, free: 5.746 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.195e-06/0.286, allocations: 0 / 1.086 GB, free: 5.746 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004501/0.2864, allocations: 236.3 kB / 1.086 GB, free: 5.512 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.04e-05/0.2865, allocations: 23.98 kB / 1.086 GB, free: 5.488 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.0003014/0.2868, allocations: 252.7 kB / 1.086 GB, free: 5.234 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.534e-05/0.2869, allocations: 78.53 kB / 1.086 GB, free: 5.156 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002766/0.2872, allocations: 83.75 kB / 1.087 GB, free: 5.066 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.025e-06/0.2872, allocations: 0 / 1.087 GB, free: 5.066 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.369e-06/0.2872, allocations: 0 / 1.087 GB, free: 5.066 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.2872, allocations: 0 / 1.087 GB, free: 5.066 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004191/0.2876, allocations: 0.5179 MB / 1.087 GB, free: 4.504 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.2876, allocations: 3.938 kB / 1.087 GB, free: 4.5 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.93e-05/0.2877, allocations: 16.02 kB / 1.087 GB, free: 4.484 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.2877, allocations: 0 / 1.087 GB, free: 4.484 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.157e-05/0.2877, allocations: 0 / 1.087 GB, free: 4.484 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.155e-06/0.2877, allocations: 4 kB / 1.087 GB, free: 4.48 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.2877, allocations: 3.938 kB / 1.087 GB, free: 4.477 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008492/0.2886, allocations: 1.006 MB / 1.088 GB, free: 3.449 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001181/0.2887, allocations: 163.7 kB / 1.088 GB, free: 3.27 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.606e-05/0.2888, allocations: 4 kB / 1.088 GB, free: 3.266 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001423/0.2889, allocations: 7.922 kB / 1.088 GB, free: 3.258 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.88e-05/0.289, allocations: 4 kB / 1.088 GB, free: 3.254 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.441e-05/0.289, allocations: 15.97 kB / 1.088 GB, free: 3.238 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0007294/0.2898, allocations: 0.7261 MB / 1.089 GB, free: 2.508 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2898, allocations: 0 / 1.089 GB, free: 2.508 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.001335/0.2911, allocations: 0.5896 MB / 1.089 GB, free: 1.918 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.003009/0.2941, allocations: 2.142 MB / 1.092 GB, free: 15.76 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.002148/0.2963, allocations: 2.556 MB / 1.094 GB, free: 13.19 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.2963, allocations: 0 / 1.094 GB, free: 13.19 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0003056/0.2966, allocations: 339.8 kB / 1.094 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003649/0.297, allocations: 54.11 kB / 1.094 GB, free: 12.81 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01447/0.3115, allocations: 15.28 MB / 1.109 GB, free: 13.35 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005837/0.3121, allocations: 0.9917 MB / 1.11 GB, free: 12.33 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0002071/0.3123, allocations: 41.42 kB / 1.11 GB, free: 12.29 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000331/0.3127, allocations: 295.3 kB / 1.111 GB, free: 12 MB / 0.8731 GB Notification: Performance of SimCode: time 9.32e-07/0.3127, allocations: 0 / 1.111 GB, free: 12 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.381/1.694, allocations: 23.78 MB / 1.134 GB, free: 4.457 MB / 0.8887 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003263/1.694, allocations: 343.5 kB / 1.134 GB, free: 4.082 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.769/6.464, allocations: 0 / 1.134 GB, free: 4.082 MB / 0.8887 GB (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation_fmu --startTime=0 --stopTime=1.8e+12 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.fmu > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)