Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.006434/0.006434, allocations: 99.83 kB / 15.73 MB, free: 6.02 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.001439/0.001439, allocations: 193.6 kB / 16.67 MB, free: 5.934 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.319/1.319, allocations: 222.9 MB / 240.4 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.395/2.395, allocations: 437 MB / 0.7105 GB, free: 4.355 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001377/0.001378, allocations: 67.89 kB / 1.018 GB, free: 9.812 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8769/0.8783, allocations: 151.6 MB / 1.166 GB, free: 3.73 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002963/0.8813, allocations: 1.762 MB / 1.168 GB, free: 1.961 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.007633/0.889, allocations: 5.39 MB / 1.173 GB, free: 12.55 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001586/0.8892, allocations: 3.938 kB / 1.173 GB, free: 12.54 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.001415/0.8906, allocations: 370.4 kB / 1.174 GB, free: 12.18 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0001513/0.8908, allocations: 55.73 kB / 1.174 GB, free: 12.12 MB / 0.9044 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 10.1.1-maint.10.0.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.004301/0.8951, allocations: 1.5 MB / 1.175 GB, free: 10.62 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0003549/0.8955, allocations: 163.3 kB / 1.175 GB, free: 10.46 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 6.218e-05/0.8956, allocations: 13.55 kB / 1.175 GB, free: 10.45 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 9.984e-05/0.8957, allocations: 59.72 kB / 1.175 GB, free: 10.39 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002703/0.8959, allocations: 159.5 kB / 1.175 GB, free: 10.23 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 4.552e-05/0.896, allocations: 16 kB / 1.175 GB, free: 10.22 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003811/0.8998, allocations: 2.211 MB / 1.178 GB, free: 8.004 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0002532/0.9001, allocations: 279.8 kB / 1.178 GB, free: 7.73 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0003248/0.9004, allocations: 310.1 kB / 1.178 GB, free: 7.426 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.003625/0.9041, allocations: 2.195 MB / 1.18 GB, free: 5.227 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.9041, allocations: 0 / 1.18 GB, free: 5.227 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.134e-06/0.9041, allocations: 0 / 1.18 GB, free: 5.227 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 9.268e-06/0.9041, allocations: 0 / 1.18 GB, free: 5.227 MB / 0.9044 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.009818/0.9139, allocations: 1.424 MB / 1.182 GB, free: 3.75 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 5.239e-05/0.914, allocations: 12.58 kB / 1.182 GB, free: 3.738 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.143e-05/0.914, allocations: 34.75 kB / 1.182 GB, free: 3.695 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004186/0.9145, allocations: 96.2 kB / 1.182 GB, free: 3.602 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005796/0.9151, allocations: 414.3 kB / 1.182 GB, free: 3.148 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.285e-05/0.9151, allocations: 4.375 kB / 1.182 GB, free: 3.145 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.287e-05/0.9151, allocations: 8.359 kB / 1.182 GB, free: 3.137 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004097/0.9155, allocations: 403.2 kB / 1.183 GB, free: 2.73 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.9156, allocations: 0 / 1.183 GB, free: 2.73 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.507e-05/0.9156, allocations: 0 / 1.183 GB, free: 2.73 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.9156, allocations: 4 kB / 1.183 GB, free: 2.727 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004138/0.916, allocations: 431.7 kB / 1.183 GB, free: 2.305 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005809/0.9166, allocations: 0.6777 MB / 1.184 GB, free: 1.578 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004637/0.9171, allocations: 0.5594 MB / 1.184 GB, free: 1 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002758/0.9174, allocations: 333.7 kB / 1.185 GB, free: 0.6641 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001167/0.9185, allocations: 1.032 MB / 1.186 GB, free: 15.41 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004768/0.919, allocations: 408.8 kB / 1.186 GB, free: 14.99 MB / 0.92 GB Notification: Performance of pre-optimization done (n=8): time 1.633e-06/0.919, allocations: 0 / 1.186 GB, free: 14.99 MB / 0.92 GB Notification: Performance of matching and sorting (n=8): time 0.001468/0.9205, allocations: 1.297 MB / 1.187 GB, free: 13.69 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.123e-05/0.9206, allocations: 89.09 kB / 1.187 GB, free: 13.58 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001321/0.9219, allocations: 1.29 MB / 1.189 GB, free: 12.28 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 3.985e-05/0.922, allocations: 37.69 kB / 1.189 GB, free: 12.24 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002299/0.9222, allocations: 293.9 kB / 1.189 GB, free: 11.95 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.581e-05/0.9223, allocations: 19.83 kB / 1.189 GB, free: 11.93 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003048/0.9226, allocations: 355.8 kB / 1.189 GB, free: 11.57 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001194/0.9227, allocations: 318 kB / 1.19 GB, free: 11.26 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001191/0.9239, allocations: 1.373 MB / 1.191 GB, free: 9.883 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001239/0.9252, allocations: 1.501 MB / 1.192 GB, free: 8.371 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006793/0.932, allocations: 3.568 MB / 1.196 GB, free: 4.711 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-06/0.932, allocations: 0 / 1.196 GB, free: 4.711 MB / 0.92 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004144/0.9361, allocations: 4.023 MB / 1.2 GB, free: 0.6523 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.306e-05/0.9362, allocations: 4 kB / 1.2 GB, free: 0.6484 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.179e-05/0.9362, allocations: 7.938 kB / 1.2 GB, free: 0.6406 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.109e-05/0.9362, allocations: 0 / 1.2 GB, free: 0.6406 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001398/0.9364, allocations: 20.02 kB / 1.2 GB, free: 0.6211 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.735e-06/0.9364, allocations: 320 / 1.2 GB, free: 0.6211 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005171/0.9369, allocations: 237.4 kB / 1.2 GB, free: 396 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.905e-05/0.937, allocations: 27.98 kB / 1.2 GB, free: 368 kB / 0.92 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.0003167/0.9373, allocations: 249.6 kB / 1.2 GB, free: 108 kB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.744e-05/0.9374, allocations: 83.22 kB / 1.2 GB, free: 24 kB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002929/0.9377, allocations: 83.81 kB / 1.201 GB, free: 15.93 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.9377, allocations: 0 / 1.201 GB, free: 15.93 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.9377, allocations: 3.984 kB / 1.201 GB, free: 15.93 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.9377, allocations: 0 / 1.201 GB, free: 15.93 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004773/0.9382, allocations: 0.514 MB / 1.201 GB, free: 15.37 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.9382, allocations: 3.938 kB / 1.201 GB, free: 15.36 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.842e-05/0.9383, allocations: 8 kB / 1.201 GB, free: 15.36 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.9383, allocations: 0 / 1.201 GB, free: 15.36 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.613e-05/0.9383, allocations: 11.92 kB / 1.201 GB, free: 15.34 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.089e-06/0.9383, allocations: 15.95 kB / 1.201 GB, free: 15.33 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.9383, allocations: 0 / 1.201 GB, free: 15.33 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008433/0.9392, allocations: 0.9985 MB / 1.202 GB, free: 14.31 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001227/0.9393, allocations: 176.2 kB / 1.202 GB, free: 14.12 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.6e-05/0.9394, allocations: 4 kB / 1.202 GB, free: 14.11 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001473/0.9395, allocations: 8 kB / 1.202 GB, free: 14.11 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.344e-05/0.9396, allocations: 7.984 kB / 1.202 GB, free: 14.1 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.399e-05/0.9396, allocations: 11.98 kB / 1.202 GB, free: 14.09 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0007267/0.9403, allocations: 0.7261 MB / 1.203 GB, free: 13.36 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2.41e-07/0.9404, allocations: 0 / 1.203 GB, free: 13.36 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.001609/0.942, allocations: 0.5884 MB / 1.204 GB, free: 12.77 MB / 0.9356 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.003091/0.9451, allocations: 2.162 MB / 1.206 GB, free: 10.59 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.002285/0.9474, allocations: 2.552 MB / 1.208 GB, free: 8.02 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.9474, allocations: 0 / 1.208 GB, free: 8.02 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0003392/0.9477, allocations: 343.7 kB / 1.208 GB, free: 7.684 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004487/0.9482, allocations: 51.53 kB / 1.208 GB, free: 7.633 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01395/0.9622, allocations: 15.3 MB / 1.223 GB, free: 8.164 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004891/0.9627, allocations: 0.9879 MB / 1.224 GB, free: 7.152 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.000155/0.9629, allocations: 37.42 kB / 1.224 GB, free: 7.117 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003161/0.9632, allocations: 291.3 kB / 1.225 GB, free: 6.832 MB / 0.9512 GB Notification: Performance of SimCode: time 1.242e-06/0.9632, allocations: 0 / 1.225 GB, free: 6.832 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05055/1.014, allocations: 24.06 MB / 1.248 GB, free: 15 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.4/11.41, allocations: 16 kB / 1.248 GB, free: 14.98 MB / 0.9825 GB (rm -f Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.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 Buildings_10_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.fmu > Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)