Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_SmallScaleValidation,fileNamePrefix="Buildings_11_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_11_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.001782/0.001782, allocations: 108 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0019/0.0019, allocations: 195.5 kB / 16.53 MB, free: 6.664 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.431/1.431, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.767/2.767, allocations: 469.8 MB / 0.7424 GB, free: 7.5 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001854/0.001854, allocations: 67.11 kB / 0.9087 GB, free: 34.32 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2712/0.2731, allocations: 159.2 MB / 1.064 GB, free: 14.22 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003296/0.2764, allocations: 1.752 MB / 1.066 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.007714/0.2842, allocations: 5.39 MB / 1.071 GB, free: 7.047 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.021e-05/0.2843, allocations: 3.938 kB / 1.071 GB, free: 7.043 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001104/0.2854, allocations: 371.2 kB / 1.071 GB, free: 6.68 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001147/0.2856, allocations: 63.67 kB / 1.072 GB, free: 6.617 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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.003391/0.289, allocations: 1.497 MB / 1.073 GB, free: 5.121 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002254/0.2892, allocations: 165.1 kB / 1.073 GB, free: 4.961 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.916e-05/0.2893, allocations: 13.55 kB / 1.073 GB, free: 4.945 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 7.324e-05/0.2893, allocations: 55.72 kB / 1.073 GB, free: 4.891 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002246/0.2896, allocations: 167.5 kB / 1.073 GB, free: 4.727 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.025e-05/0.2896, allocations: 16 kB / 1.073 GB, free: 4.711 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002981/0.2926, allocations: 2.161 MB / 1.075 GB, free: 2.547 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0002294/0.2928, allocations: 275.8 kB / 1.076 GB, free: 2.277 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002797/0.2931, allocations: 310.1 kB / 1.076 GB, free: 1.973 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.002628/0.2958, allocations: 2.17 MB / 1.078 GB, free: 15.79 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 7.253e-06/0.2958, allocations: 0 / 1.078 GB, free: 15.79 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.453e-06/0.2958, allocations: 3.938 kB / 1.078 GB, free: 15.79 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.097e-05/0.2958, allocations: 0 / 1.078 GB, free: 15.79 MB / 0.8419 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.01016/0.306, allocations: 1.367 MB / 1.08 GB, free: 14.37 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.208e-05/0.306, allocations: 8.031 kB / 1.08 GB, free: 14.36 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.29e-05/0.3061, allocations: 34.75 kB / 1.08 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003821/0.3065, allocations: 95.53 kB / 1.08 GB, free: 14.23 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005184/0.307, allocations: 406.3 kB / 1.08 GB, free: 13.78 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.158e-05/0.307, allocations: 4.375 kB / 1.08 GB, free: 13.78 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.868e-05/0.3071, allocations: 4.375 kB / 1.08 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004577/0.3075, allocations: 403.3 kB / 1.08 GB, free: 13.37 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.3076, allocations: 3.938 kB / 1.08 GB, free: 13.36 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.153e-05/0.3076, allocations: 0 / 1.08 GB, free: 13.36 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.918e-06/0.3076, allocations: 0 / 1.08 GB, free: 13.36 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004532/0.308, allocations: 435.7 kB / 1.081 GB, free: 12.94 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006868/0.3087, allocations: 0.6732 MB / 1.081 GB, free: 12.21 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005512/0.3093, allocations: 0.5594 MB / 1.082 GB, free: 11.64 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003354/0.3096, allocations: 333.7 kB / 1.082 GB, free: 11.3 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00115/0.3108, allocations: 1.032 MB / 1.083 GB, free: 10.05 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004221/0.3112, allocations: 408.8 kB / 1.084 GB, free: 9.633 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=8): time 1.603e-06/0.3112, allocations: 0 / 1.084 GB, free: 9.633 MB / 0.8419 GB Notification: Performance of matching and sorting (n=8): time 0.00141/0.3127, allocations: 1.293 MB / 1.085 GB, free: 8.332 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.691e-05/0.3127, allocations: 93.03 kB / 1.085 GB, free: 8.223 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001349/0.3141, allocations: 1.289 MB / 1.086 GB, free: 6.922 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.171e-05/0.3141, allocations: 29.7 kB / 1.086 GB, free: 6.887 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002277/0.3144, allocations: 285.4 kB / 1.087 GB, free: 6.602 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.472e-05/0.3144, allocations: 23.67 kB / 1.087 GB, free: 6.578 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000341/0.3148, allocations: 367.7 kB / 1.087 GB, free: 6.215 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001324/0.3149, allocations: 318 kB / 1.087 GB, free: 5.898 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001311/0.3162, allocations: 1.369 MB / 1.089 GB, free: 4.527 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001438/0.3177, allocations: 1.505 MB / 1.09 GB, free: 3.012 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00725/0.3249, allocations: 3.56 MB / 1.094 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.592e-05/0.325, allocations: 0 / 1.094 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004614/0.3297, allocations: 4.01 MB / 1.098 GB, free: 11.31 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.3297, allocations: 8 kB / 1.098 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.705e-05/0.3297, allocations: 0 / 1.098 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.048e-05/0.3297, allocations: 4 kB / 1.098 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001323/0.3299, allocations: 23.95 kB / 1.098 GB, free: 11.28 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.3299, allocations: 0 / 1.098 GB, free: 11.28 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005091/0.3304, allocations: 228.3 kB / 1.098 GB, free: 11.05 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.071e-05/0.3305, allocations: 23.98 kB / 1.098 GB, free: 11.03 MB / 0.8575 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.0003216/0.3308, allocations: 246.5 kB / 1.098 GB, free: 10.78 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.915e-05/0.3309, allocations: 78.61 kB / 1.098 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002971/0.3312, allocations: 79.77 kB / 1.098 GB, free: 10.61 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.3312, allocations: 4 kB / 1.098 GB, free: 10.61 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.3312, allocations: 3.984 kB / 1.098 GB, free: 10.61 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.3312, allocations: 0 / 1.098 GB, free: 10.61 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005113/0.3317, allocations: 0.514 MB / 1.099 GB, free: 10.05 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.3317, allocations: 3.938 kB / 1.099 GB, free: 10.04 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.904e-05/0.3318, allocations: 4 kB / 1.099 GB, free: 10.04 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.3318, allocations: 4 kB / 1.099 GB, free: 10.04 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.558e-05/0.3319, allocations: 7.984 kB / 1.099 GB, free: 10.03 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.3319, allocations: 4.031 kB / 1.099 GB, free: 10.02 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/0.3319, allocations: 4 kB / 1.099 GB, free: 10.02 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000983/0.3329, allocations: 1.002 MB / 1.1 GB, free: 8.996 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001299/0.333, allocations: 167.6 kB / 1.1 GB, free: 8.812 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.274e-05/0.3331, allocations: 3.984 kB / 1.1 GB, free: 8.809 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001439/0.3332, allocations: 16 kB / 1.1 GB, free: 8.793 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.765e-05/0.3333, allocations: 11.92 kB / 1.1 GB, free: 8.781 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.142e-05/0.3333, allocations: 11.98 kB / 1.1 GB, free: 8.77 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0008181/0.3341, allocations: 0.7222 MB / 1.101 GB, free: 8.043 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3341, allocations: 0 / 1.101 GB, free: 8.043 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.001424/0.3356, allocations: 0.5818 MB / 1.101 GB, free: 7.461 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.002989/0.3386, allocations: 2.144 MB / 1.103 GB, free: 5.305 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.002457/0.341, allocations: 2.552 MB / 1.106 GB, free: 2.738 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.341, allocations: 4.062 kB / 1.106 GB, free: 2.734 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000342/0.3414, allocations: 343.8 kB / 1.106 GB, free: 2.398 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003636/0.3418, allocations: 53.19 kB / 1.106 GB, free: 2.348 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01534/0.3571, allocations: 15.16 MB / 1.121 GB, free: 2.996 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005982/0.3577, allocations: 0.9839 MB / 1.122 GB, free: 1.984 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001869/0.3579, allocations: 45.36 kB / 1.122 GB, free: 1.941 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003322/0.3583, allocations: 287.3 kB / 1.122 GB, free: 1.66 MB / 0.8731 GB Notification: Performance of SimCode: time 5.01e-07/0.3583, allocations: 4 kB / 1.122 GB, free: 1.656 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.15/1.508, allocations: 23.88 MB / 1.146 GB, free: 9.992 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.01/15.52, allocations: 22.41 kB / 1.146 GB, free: 9.969 MB / 0.9044 GB (rm -f Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation_res.mat --tempDir=temp_Buildings_11_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation_fmu --startTime=0 --stopTime=1.8e+12 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.fmu > Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)