Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.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(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,fileNamePrefix="BuildingSystems_BuildingSystems_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.001331/0.001331, allocations: 108 kB / 15.6 MB, free: 132 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.001301/0.001301, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.434/1.434, allocations: 222.9 MB / 240.2 MB, free: 4.266 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002636/0.002636, allocations: 275 kB / 290.7 MB, free: 1.867 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.1/1.1, allocations: 178.6 MB / 0.5073 GB, free: 4.555 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002738/0.002738, allocations: 98.31 kB / 0.6066 GB, free: 24.73 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1724/0.1751, allocations: 89.14 MB / 0.6936 GB, free: 4.18 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003431/0.1786, allocations: 1.748 MB / 0.6954 GB, free: 2.426 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.009598/0.1882, allocations: 5.394 MB / 0.7006 GB, free: 13.01 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001761/0.1884, allocations: 4 kB / 0.7006 GB, free: 13.01 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001423/0.1898, allocations: 371.8 kB / 0.701 GB, free: 12.64 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001598/0.1901, allocations: 59.66 kB / 0.701 GB, free: 12.59 MB / 0.4981 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/BuildingSystems 2.0.0-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.004225/0.1943, allocations: 1.508 MB / 0.7025 GB, free: 11.08 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0004607/0.1948, allocations: 163.3 kB / 0.7027 GB, free: 10.92 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 5.052e-05/0.1948, allocations: 9.562 kB / 0.7027 GB, free: 10.91 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 9.718e-05/0.1949, allocations: 63.7 kB / 0.7027 GB, free: 10.85 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002427/0.1952, allocations: 163.5 kB / 0.7029 GB, free: 10.69 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.845e-05/0.1952, allocations: 16 kB / 0.7029 GB, free: 10.67 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003631/0.1989, allocations: 2.153 MB / 0.705 GB, free: 8.516 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002874/0.1992, allocations: 275.8 kB / 0.7053 GB, free: 8.246 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003922/0.1996, allocations: 302.1 kB / 0.7056 GB, free: 7.949 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.003292/0.2029, allocations: 2.178 MB / 0.7077 GB, free: 5.766 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.2029, allocations: 3.984 kB / 0.7077 GB, free: 5.762 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.273e-06/0.2029, allocations: 0 / 0.7077 GB, free: 5.762 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.465e-05/0.203, allocations: 4 kB / 0.7077 GB, free: 5.758 MB / 0.4981 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.01086/0.2138, allocations: 1.359 MB / 0.709 GB, free: 4.348 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.699e-05/0.2139, allocations: 8.031 kB / 0.709 GB, free: 4.34 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.368e-05/0.2139, allocations: 42.73 kB / 0.7091 GB, free: 4.289 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004436/0.2144, allocations: 91.59 kB / 0.7092 GB, free: 4.199 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006056/0.215, allocations: 414.1 kB / 0.7095 GB, free: 3.746 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.942e-05/0.2151, allocations: 8.312 kB / 0.7096 GB, free: 3.738 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.048e-05/0.2152, allocations: 4.375 kB / 0.7096 GB, free: 3.734 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005236/0.2157, allocations: 403.2 kB / 0.7099 GB, free: 3.328 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.789e-06/0.2157, allocations: 0 / 0.7099 GB, free: 3.328 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.292e-05/0.2157, allocations: 0 / 0.7099 GB, free: 3.328 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.234e-06/0.2157, allocations: 4 kB / 0.7099 GB, free: 3.324 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004871/0.2162, allocations: 431.7 kB / 0.7104 GB, free: 2.902 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007887/0.217, allocations: 0.6654 MB / 0.711 GB, free: 2.188 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006349/0.2177, allocations: 0.5672 MB / 0.7116 GB, free: 1.602 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004752/0.2182, allocations: 333.7 kB / 0.7119 GB, free: 1.27 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001349/0.2195, allocations: 1.025 MB / 0.7129 GB, free: 24 kB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004939/0.2201, allocations: 416.8 kB / 0.7133 GB, free: 15.6 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=8): time 1.924e-06/0.2201, allocations: 0 / 0.7133 GB, free: 15.6 MB / 0.5137 GB Notification: Performance of matching and sorting (n=8): time 0.001608/0.2217, allocations: 1.289 MB / 0.7145 GB, free: 14.3 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.464e-05/0.2218, allocations: 93.08 kB / 0.7146 GB, free: 14.19 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001507/0.2233, allocations: 1.289 MB / 0.7159 GB, free: 12.89 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 4.793e-05/0.2234, allocations: 29.7 kB / 0.7159 GB, free: 12.86 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002477/0.2236, allocations: 281.4 kB / 0.7162 GB, free: 12.57 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 3.827e-05/0.2237, allocations: 19.75 kB / 0.7162 GB, free: 12.55 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003732/0.224, allocations: 351.6 kB / 0.7165 GB, free: 12.21 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001584/0.2242, allocations: 322 kB / 0.7168 GB, free: 11.89 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001424/0.2256, allocations: 1.373 MB / 0.7182 GB, free: 10.51 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001717/0.2274, allocations: 1.507 MB / 0.7197 GB, free: 8.996 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008005/0.2354, allocations: 3.564 MB / 0.7231 GB, free: 5.34 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.64e-06/0.2354, allocations: 4 kB / 0.7231 GB, free: 5.336 MB / 0.5137 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.00501/0.2405, allocations: 4.003 MB / 0.7271 GB, free: 1.297 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.527e-05/0.2405, allocations: 4 kB / 0.7271 GB, free: 1.293 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.547e-05/0.2405, allocations: 15.92 kB / 0.7271 GB, free: 1.277 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.716e-05/0.2406, allocations: 0 / 0.7271 GB, free: 1.277 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001313/0.2407, allocations: 15.94 kB / 0.7271 GB, free: 1.262 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.161e-06/0.2407, allocations: 0 / 0.7271 GB, free: 1.262 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005732/0.2413, allocations: 236.3 kB / 0.7273 GB, free: 1.027 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001259/0.2414, allocations: 27.98 kB / 0.7273 GB, free: 1 MB / 0.5137 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.000439/0.2419, allocations: 246.3 kB / 0.7276 GB, free: 0.75 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.746e-05/0.242, allocations: 74.62 kB / 0.7276 GB, free: 0.6758 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003431/0.2423, allocations: 87.69 kB / 0.7277 GB, free: 0.582 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.822e-06/0.2424, allocations: 3.984 kB / 0.7277 GB, free: 0.5781 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.2424, allocations: 4.031 kB / 0.7277 GB, free: 0.5742 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.2424, allocations: 3.984 kB / 0.7277 GB, free: 0.5703 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005078/0.2429, allocations: 0.5102 MB / 0.7282 GB, free: 16 kB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.2429, allocations: 3.938 kB / 0.7282 GB, free: 12 kB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.336e-05/0.243, allocations: 11.94 kB / 0.7283 GB, free: 0 / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.243, allocations: 0 / 0.7283 GB, free: 0 / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.821e-05/0.243, allocations: 8.062 kB / 0.7283 GB, free: 15.99 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.167e-06/0.243, allocations: 4 kB / 0.7283 GB, free: 15.98 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.2431, allocations: 0 / 0.7283 GB, free: 15.98 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001176/0.2442, allocations: 1.01 MB / 0.7292 GB, free: 14.95 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001716/0.2444, allocations: 163.7 kB / 0.7294 GB, free: 14.77 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.916e-05/0.2445, allocations: 4 kB / 0.7294 GB, free: 14.77 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001407/0.2446, allocations: 4 kB / 0.7294 GB, free: 14.77 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.407e-05/0.2447, allocations: 11.89 kB / 0.7294 GB, free: 14.76 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.592e-05/0.2447, allocations: 15.98 kB / 0.7294 GB, free: 14.74 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0009308/0.2457, allocations: 0.7261 MB / 0.7301 GB, free: 14.01 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.51e-07/0.2457, allocations: 0 / 0.7301 GB, free: 14.01 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.002322/0.248, allocations: 0.5818 MB / 0.7307 GB, free: 13.43 MB / 0.5294 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.004216/0.2522, allocations: 2.152 MB / 0.7328 GB, free: 11.26 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.003074/0.2553, allocations: 2.548 MB / 0.7353 GB, free: 8.699 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.2553, allocations: 0 / 0.7353 GB, free: 8.699 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.000391/0.2557, allocations: 347.7 kB / 0.7356 GB, free: 8.359 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004366/0.2562, allocations: 58.12 kB / 0.7357 GB, free: 8.305 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01844/0.2746, allocations: 15.15 MB / 0.7505 GB, free: 8.965 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006923/0.2754, allocations: 0.9993 MB / 0.7515 GB, free: 7.941 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0002235/0.2756, allocations: 37.73 kB / 0.7515 GB, free: 7.906 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003646/0.276, allocations: 292.1 kB / 0.7518 GB, free: 7.621 MB / 0.545 GB Notification: Performance of SimCode: time 6.21e-07/0.276, allocations: 0 / 0.7518 GB, free: 7.621 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3806/0.6566, allocations: 23.9 MB / 0.7751 GB, free: 61.09 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.967/9.624, allocations: 23.25 kB / 0.7751 GB, free: 61.08 MB / 0.545 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation_res.csv --start-time 0 --stop-time 1.8e+12 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 7.2e+08 BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.fmu > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)