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.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_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.001227/0.001227, 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.001278/0.001278, allocations: 196.8 kB / 16.14 MB, free: 6.711 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.229/1.229, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.461/2.461, allocations: 461.9 MB / 0.7342 GB, free: 14.16 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001178/0.001178, allocations: 64.69 kB / 0.8985 GB, free: 36.95 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2363/0.2375, allocations: 157.4 MB / 1.052 GB, free: 8.133 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002752/0.2403, allocations: 1.827 MB / 1.054 GB, free: 6.289 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.007237/0.2475, allocations: 5.672 MB / 1.06 GB, free: 0.5977 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001046/0.2477, allocations: 0 / 1.06 GB, free: 0.5977 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001069/0.2487, allocations: 346.6 kB / 1.06 GB, free: 264 kB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001354/0.2489, allocations: 63.72 kB / 1.06 GB, free: 200 kB / 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.002833/0.2517, allocations: 1.174 MB / 1.061 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002656/0.252, allocations: 203.3 kB / 1.061 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.816e-05/0.2521, allocations: 9.562 kB / 1.061 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 7.769e-05/0.2522, allocations: 55.78 kB / 1.061 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000208/0.2524, allocations: 180.7 kB / 1.062 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.485e-05/0.2524, allocations: 20 kB / 1.062 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002981/0.2554, allocations: 2.18 MB / 1.064 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0002061/0.2556, allocations: 275.8 kB / 1.064 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002595/0.2559, allocations: 314.1 kB / 1.064 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.002833/0.2587, allocations: 2.225 MB / 1.066 GB, free: 9.57 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.946e-06/0.2587, allocations: 0 / 1.066 GB, free: 9.57 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.222e-06/0.2588, allocations: 0 / 1.066 GB, free: 9.57 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.355e-05/0.2588, allocations: 0 / 1.066 GB, free: 9.57 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.007825/0.2666, allocations: 1.37 MB / 1.068 GB, free: 8.148 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/0.2666, allocations: 11.97 kB / 1.068 GB, free: 8.137 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.197e-05/0.2667, allocations: 30.75 kB / 1.068 GB, free: 8.098 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003543/0.2671, allocations: 99.59 kB / 1.068 GB, free: 8 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004136/0.2675, allocations: 410.2 kB / 1.068 GB, free: 7.551 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.869e-06/0.2675, allocations: 4.375 kB / 1.068 GB, free: 7.547 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.495e-05/0.2675, allocations: 8.359 kB / 1.068 GB, free: 7.539 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003936/0.2679, allocations: 395.2 kB / 1.069 GB, free: 7.141 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.492e-06/0.268, allocations: 4 kB / 1.069 GB, free: 7.137 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.198e-05/0.268, allocations: 0 / 1.069 GB, free: 7.137 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.007e-06/0.268, allocations: 0 / 1.069 GB, free: 7.137 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004009/0.2684, allocations: 435.7 kB / 1.069 GB, free: 6.711 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005342/0.2689, allocations: 0.6654 MB / 1.07 GB, free: 5.996 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004628/0.2694, allocations: 0.5633 MB / 1.07 GB, free: 5.414 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002824/0.2697, allocations: 333.7 kB / 1.071 GB, free: 5.082 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009952/0.2707, allocations: 1.036 MB / 1.072 GB, free: 3.824 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003727/0.2711, allocations: 412.8 kB / 1.072 GB, free: 3.402 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=8): time 1.263e-06/0.2711, allocations: 0 / 1.072 GB, free: 3.402 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8): time 0.001231/0.2723, allocations: 1.293 MB / 1.073 GB, free: 2.102 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.285e-05/0.2724, allocations: 93.17 kB / 1.073 GB, free: 1.992 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001109/0.2735, allocations: 1.29 MB / 1.075 GB, free: 0.6914 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.291e-05/0.2735, allocations: 25.7 kB / 1.075 GB, free: 0.6602 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001872/0.2737, allocations: 289.3 kB / 1.075 GB, free: 380 kB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.206e-05/0.2738, allocations: 23.78 kB / 1.075 GB, free: 356 kB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000296/0.2741, allocations: 351.6 kB / 1.075 GB, free: 0 / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000111/0.2742, allocations: 318 kB / 1.076 GB, free: 15.68 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001106/0.2753, allocations: 1.373 MB / 1.077 GB, free: 14.31 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001261/0.2766, allocations: 1.505 MB / 1.078 GB, free: 12.79 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006578/0.2832, allocations: 3.564 MB / 1.082 GB, free: 9.137 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.2832, allocations: 0 / 1.082 GB, free: 9.137 MB / 0.8419 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.003912/0.2871, allocations: 4.006 MB / 1.086 GB, free: 5.094 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.2871, allocations: 8 kB / 1.086 GB, free: 5.086 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.428e-05/0.2871, allocations: 4 kB / 1.086 GB, free: 5.082 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.243e-05/0.2872, allocations: 4 kB / 1.086 GB, free: 5.078 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001203/0.2873, allocations: 19.92 kB / 1.086 GB, free: 5.059 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.2873, allocations: 0 / 1.086 GB, free: 5.059 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000406/0.2877, allocations: 224.3 kB / 1.086 GB, free: 4.836 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.781e-05/0.2878, allocations: 32.02 kB / 1.086 GB, free: 4.805 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.0002753/0.288, allocations: 245.7 kB / 1.086 GB, free: 4.555 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.905e-05/0.2881, allocations: 82.52 kB / 1.086 GB, free: 4.473 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003084/0.2884, allocations: 79.75 kB / 1.086 GB, free: 4.387 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.2884, allocations: 4 kB / 1.086 GB, free: 4.383 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.2884, allocations: 0 / 1.086 GB, free: 4.383 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.2885, allocations: 4.031 kB / 1.086 GB, free: 4.379 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004429/0.2889, allocations: 0.5141 MB / 1.087 GB, free: 3.82 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.2889, allocations: 3.938 kB / 1.087 GB, free: 3.816 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.477e-05/0.289, allocations: 4 kB / 1.087 GB, free: 3.812 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.142e-05/0.289, allocations: 4 kB / 1.087 GB, free: 3.809 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.423e-05/0.289, allocations: 11.92 kB / 1.087 GB, free: 3.797 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.472e-06/0.289, allocations: 0 / 1.087 GB, free: 3.797 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.289, allocations: 0 / 1.087 GB, free: 3.797 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008228/0.2899, allocations: 1.01 MB / 1.088 GB, free: 2.766 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001033/0.29, allocations: 163.7 kB / 1.088 GB, free: 2.586 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.096e-05/0.29, allocations: 0 / 1.088 GB, free: 2.586 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001416/0.2902, allocations: 8 kB / 1.088 GB, free: 2.578 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.209e-05/0.2902, allocations: 7.984 kB / 1.088 GB, free: 2.57 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.815e-05/0.2903, allocations: 19.92 kB / 1.088 GB, free: 2.551 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0007537/0.291, allocations: 0.7222 MB / 1.089 GB, free: 1.824 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.21e-07/0.291, allocations: 0 / 1.089 GB, free: 1.824 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.001341/0.2924, allocations: 0.5896 MB / 1.089 GB, free: 1.234 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.00264/0.295, allocations: 2.158 MB / 1.092 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.002084/0.2971, allocations: 2.55 MB / 1.094 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.2971, allocations: 0 / 1.094 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0003038/0.2974, allocations: 339.8 kB / 1.094 GB, free: 12.17 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003481/0.2978, allocations: 56.72 kB / 1.094 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01395/0.3117, allocations: 15.28 MB / 1.109 GB, free: 12.66 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000546/0.3123, allocations: 0.992 MB / 1.11 GB, free: 11.64 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001787/0.3125, allocations: 41.41 kB / 1.11 GB, free: 11.6 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002875/0.3128, allocations: 292.2 kB / 1.111 GB, free: 11.31 MB / 0.8731 GB Notification: Performance of SimCode: time 2.11e-07/0.3128, allocations: 0 / 1.111 GB, free: 11.31 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03954/0.3523, allocations: 23.45 MB / 1.134 GB, free: 4.09 MB / 0.8887 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002653/0.3526, allocations: 347.8 kB / 1.134 GB, free: 3.711 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.535/2.887, allocations: 2.438 kB / 1.134 GB, free: 3.711 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)