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.0009071/0.0009072, allocations: 91.45 kB / 15.36 MB, free: 0.7383 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.005368/0.005368, allocations: 173.9 kB / 16.27 MB, free: 6.676 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.269/1.269, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.511/2.511, allocations: 462.6 MB / 0.7364 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0002948/0.0002949, allocations: 14 kB / 0.9029 GB, free: 36.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2613/0.2616, allocations: 159.6 MB / 1.059 GB, free: 4.832 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.001907/0.2636, allocations: 1.478 MB / 1.06 GB, free: 3.34 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00753/0.2711, allocations: 5.56 MB / 1.066 GB, free: 13.76 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.475e-05/0.2713, allocations: 0 / 1.066 GB, free: 13.76 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001016/0.2723, allocations: 354.6 kB / 1.066 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001264/0.2724, allocations: 55.75 kB / 1.066 GB, free: 13.36 MB / 0.8262 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.003075/0.2755, allocations: 1.167 MB / 1.067 GB, free: 12.19 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002498/0.2758, allocations: 207.2 kB / 1.067 GB, free: 11.99 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.525e-05/0.2758, allocations: 9.562 kB / 1.067 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001249/0.276, allocations: 59.72 kB / 1.067 GB, free: 11.92 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002281/0.2762, allocations: 176.8 kB / 1.068 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.252e-05/0.2762, allocations: 23.98 kB / 1.068 GB, free: 11.73 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003309/0.2796, allocations: 2.18 MB / 1.07 GB, free: 9.543 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0002146/0.2798, allocations: 279.8 kB / 1.07 GB, free: 9.266 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002719/0.2801, allocations: 335.7 kB / 1.07 GB, free: 8.93 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.003065/0.2831, allocations: 2.221 MB / 1.073 GB, free: 6.703 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.2832, allocations: 3.938 kB / 1.073 GB, free: 6.699 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.132e-06/0.2832, allocations: 0 / 1.073 GB, free: 6.699 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.205e-05/0.2832, allocations: 0 / 1.073 GB, free: 6.699 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.01073/0.2939, allocations: 1.296 MB / 1.074 GB, free: 5.352 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.294, allocations: 15.97 kB / 1.074 GB, free: 5.336 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.041e-05/0.294, allocations: 42.69 kB / 1.074 GB, free: 5.285 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003583/0.2944, allocations: 95.59 kB / 1.074 GB, free: 5.191 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004533/0.2948, allocations: 410.1 kB / 1.074 GB, free: 4.742 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.388e-05/0.2949, allocations: 8.375 kB / 1.074 GB, free: 4.734 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.293e-05/0.2949, allocations: 8.359 kB / 1.074 GB, free: 4.727 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004403/0.2954, allocations: 391.3 kB / 1.075 GB, free: 4.332 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.442e-06/0.2954, allocations: 0 / 1.075 GB, free: 4.332 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.232e-05/0.2954, allocations: 4 kB / 1.075 GB, free: 4.328 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.324e-06/0.2954, allocations: 0 / 1.075 GB, free: 4.328 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000432/0.2958, allocations: 435.7 kB / 1.075 GB, free: 3.902 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000631/0.2965, allocations: 0.6693 MB / 1.076 GB, free: 3.184 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005094/0.297, allocations: 0.5711 MB / 1.076 GB, free: 2.594 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003196/0.2973, allocations: 337.7 kB / 1.077 GB, free: 2.258 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001119/0.2985, allocations: 1.036 MB / 1.078 GB, free: 1 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000419/0.2989, allocations: 404.8 kB / 1.078 GB, free: 0.5859 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=8): time 1.272e-06/0.2989, allocations: 0 / 1.078 GB, free: 0.5859 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8): time 0.001246/0.3002, allocations: 1.297 MB / 1.079 GB, free: 15.28 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.641e-05/0.3002, allocations: 85.09 kB / 1.079 GB, free: 15.18 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001251/0.3015, allocations: 1.293 MB / 1.081 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.049e-05/0.3015, allocations: 29.7 kB / 1.081 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002003/0.3017, allocations: 289.3 kB / 1.081 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.009e-05/0.3018, allocations: 15.81 kB / 1.081 GB, free: 13.54 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002316/0.302, allocations: 291.7 kB / 1.081 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.000108/0.3021, allocations: 326 kB / 1.082 GB, free: 12.92 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001224/0.3033, allocations: 1.377 MB / 1.083 GB, free: 11.54 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001346/0.3047, allocations: 1.497 MB / 1.084 GB, free: 10.04 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006961/0.3117, allocations: 3.56 MB / 1.088 GB, free: 6.383 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.3117, allocations: 0 / 1.088 GB, free: 6.383 MB / 0.8419 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.003989/0.3157, allocations: 4.018 MB / 1.092 GB, free: 2.328 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.3157, allocations: 5.562 kB / 1.092 GB, free: 2.324 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.637e-05/0.3157, allocations: 4 kB / 1.092 GB, free: 2.32 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.38e-05/0.3158, allocations: 3.984 kB / 1.092 GB, free: 2.316 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001149/0.3159, allocations: 12 kB / 1.092 GB, free: 2.305 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.071e-05/0.3159, allocations: 7.938 kB / 1.092 GB, free: 2.297 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00048/0.3164, allocations: 236.3 kB / 1.092 GB, free: 2.062 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.798e-05/0.3164, allocations: 23.98 kB / 1.092 GB, free: 2.039 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.0002887/0.3167, allocations: 245.7 kB / 1.092 GB, free: 1.789 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.375e-05/0.3168, allocations: 74.62 kB / 1.092 GB, free: 1.715 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002724/0.3171, allocations: 83.75 kB / 1.092 GB, free: 1.625 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.3171, allocations: 8.031 kB / 1.093 GB, free: 1.617 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.3171, allocations: 0 / 1.093 GB, free: 1.617 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.3171, allocations: 0 / 1.093 GB, free: 1.617 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004285/0.3175, allocations: 0.5141 MB / 1.093 GB, free: 1.059 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.3176, allocations: 3.938 kB / 1.093 GB, free: 1.055 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.419e-05/0.3176, allocations: 7.984 kB / 1.093 GB, free: 1.047 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.3176, allocations: 0 / 1.093 GB, free: 1.047 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.219e-05/0.3176, allocations: 4 kB / 1.093 GB, free: 1.043 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.3177, allocations: 3.984 kB / 1.093 GB, free: 1.039 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.3177, allocations: 0 / 1.093 GB, free: 1.039 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008843/0.3185, allocations: 1.002 MB / 1.094 GB, free: 16 kB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001255/0.3187, allocations: 171.6 kB / 1.094 GB, free: 15.83 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.045e-05/0.3188, allocations: 7.984 kB / 1.094 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001474/0.3189, allocations: 4 kB / 1.094 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.488e-05/0.319, allocations: 11.98 kB / 1.094 GB, free: 15.8 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.958e-05/0.319, allocations: 15.92 kB / 1.094 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0007344/0.3197, allocations: 0.7222 MB / 1.095 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3197, allocations: 0 / 1.095 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.001353/0.3211, allocations: 0.5935 MB / 1.095 GB, free: 14.47 MB / 0.8575 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.002749/0.3238, allocations: 2.148 MB / 1.098 GB, free: 12.3 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.002258/0.3261, allocations: 2.54 MB / 1.1 GB, free: 9.75 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 5.661e-06/0.3261, allocations: 11.94 kB / 1.1 GB, free: 9.738 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0003151/0.3265, allocations: 335.9 kB / 1.1 GB, free: 9.41 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004131/0.3269, allocations: 59.08 kB / 1.1 GB, free: 9.355 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01537/0.3423, allocations: 15.3 MB / 1.115 GB, free: 9.879 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006064/0.3429, allocations: 0.9881 MB / 1.116 GB, free: 8.863 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0002013/0.3431, allocations: 41.36 kB / 1.116 GB, free: 8.824 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000352/0.3435, allocations: 287.3 kB / 1.117 GB, free: 8.543 MB / 0.8731 GB Notification: Performance of SimCode: time 1.984e-06/0.3435, allocations: 4 kB / 1.117 GB, free: 8.539 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04467/0.3882, allocations: 23.26 MB / 1.139 GB, free: 1.527 MB / 0.8887 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002446/0.3884, allocations: 344.9 kB / 1.14 GB, free: 1.148 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.511/3.899, allocations: 9.078 kB / 1.14 GB, free: 1.145 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)