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.001097/0.001097, allocations: 108 kB / 15.61 MB, free: 152 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.001106/0.001106, allocations: 197 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.317/1.317, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.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.546/2.546, allocations: 437 MB / 0.7104 GB, free: 5.094 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002035/0.002035, allocations: 63.91 kB / 0.8694 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6629/0.665, allocations: 151.6 MB / 1.017 GB, free: 2.512 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003319/0.6683, allocations: 1.76 MB / 1.019 GB, free: 0.7383 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.007821/0.6762, allocations: 5.4 MB / 1.024 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001247/0.6763, allocations: 0 / 1.024 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001231/0.6776, allocations: 370.4 kB / 1.025 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001484/0.6778, allocations: 63.66 kB / 1.025 GB, free: 10.89 MB / 0.7794 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.003813/0.6816, allocations: 1.497 MB / 1.026 GB, free: 9.395 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002386/0.6819, allocations: 159.3 kB / 1.026 GB, free: 9.238 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 5.269e-05/0.6819, allocations: 13.56 kB / 1.026 GB, free: 9.223 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 8.734e-05/0.682, allocations: 51.78 kB / 1.027 GB, free: 9.172 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002387/0.6823, allocations: 171.4 kB / 1.027 GB, free: 9.004 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.899e-05/0.6823, allocations: 19.98 kB / 1.027 GB, free: 8.984 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003269/0.6856, allocations: 2.153 MB / 1.029 GB, free: 6.828 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0002265/0.6858, allocations: 275.8 kB / 1.029 GB, free: 6.559 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0003057/0.6861, allocations: 306.2 kB / 1.029 GB, free: 6.258 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.003327/0.6895, allocations: 2.167 MB / 1.031 GB, free: 4.086 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.6895, allocations: 4 kB / 1.031 GB, free: 4.082 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.613e-06/0.6895, allocations: 0 / 1.031 GB, free: 4.082 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.828e-05/0.6895, allocations: 0 / 1.031 GB, free: 4.082 MB / 0.7794 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.01094/0.7005, allocations: 1.363 MB / 1.033 GB, free: 2.668 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.747e-05/0.7005, allocations: 15.98 kB / 1.033 GB, free: 2.652 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.061e-05/0.7006, allocations: 34.73 kB / 1.033 GB, free: 2.609 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004222/0.701, allocations: 99.5 kB / 1.033 GB, free: 2.512 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005909/0.7016, allocations: 422.1 kB / 1.033 GB, free: 2.051 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.094e-05/0.7016, allocations: 384 / 1.033 GB, free: 2.051 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.852e-05/0.7017, allocations: 4.375 kB / 1.033 GB, free: 2.047 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004373/0.7021, allocations: 391.3 kB / 1.034 GB, free: 1.652 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.757e-06/0.7022, allocations: 0 / 1.034 GB, free: 1.652 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.621e-05/0.7022, allocations: 8 kB / 1.034 GB, free: 1.645 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.7022, allocations: 3.984 kB / 1.034 GB, free: 1.641 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004504/0.7026, allocations: 439.7 kB / 1.034 GB, free: 1.211 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006529/0.7033, allocations: 0.6576 MB / 1.035 GB, free: 0.5039 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005301/0.7039, allocations: 0.5594 MB / 1.035 GB, free: 15.93 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000344/0.7042, allocations: 353.6 kB / 1.036 GB, free: 15.57 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001177/0.7054, allocations: 1.021 MB / 1.037 GB, free: 14.33 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004279/0.7058, allocations: 416.7 kB / 1.037 GB, free: 13.91 MB / 0.795 GB Notification: Performance of pre-optimization done (n=8): time 1.734e-06/0.7059, allocations: 0 / 1.037 GB, free: 13.91 MB / 0.795 GB Notification: Performance of matching and sorting (n=8): time 0.001389/0.7072, allocations: 1.293 MB / 1.038 GB, free: 12.61 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.468e-05/0.7073, allocations: 81.11 kB / 1.038 GB, free: 12.51 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001366/0.7087, allocations: 1.29 MB / 1.04 GB, free: 11.21 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 5.005e-05/0.7088, allocations: 37.7 kB / 1.04 GB, free: 11.16 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002223/0.709, allocations: 285.4 kB / 1.04 GB, free: 10.88 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 4.545e-05/0.709, allocations: 23.7 kB / 1.04 GB, free: 10.86 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003378/0.7094, allocations: 351.6 kB / 1.04 GB, free: 10.51 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001133/0.7095, allocations: 318 kB / 1.041 GB, free: 10.19 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001257/0.7108, allocations: 1.373 MB / 1.042 GB, free: 8.816 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001384/0.7122, allocations: 1.509 MB / 1.043 GB, free: 7.297 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007475/0.7196, allocations: 3.553 MB / 1.047 GB, free: 3.652 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.787e-06/0.7197, allocations: 0 / 1.047 GB, free: 3.652 MB / 0.795 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.005192/0.7249, allocations: 4.022 MB / 1.051 GB, free: 15.59 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.621e-05/0.7249, allocations: 9.438 kB / 1.051 GB, free: 15.59 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.199e-05/0.725, allocations: 4 kB / 1.051 GB, free: 15.58 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.781e-05/0.725, allocations: 0 / 1.051 GB, free: 15.58 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001433/0.7251, allocations: 15.98 kB / 1.051 GB, free: 15.57 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.453e-05/0.7251, allocations: 4 kB / 1.051 GB, free: 15.56 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006395/0.7258, allocations: 228.3 kB / 1.051 GB, free: 15.34 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.985e-05/0.7259, allocations: 27.98 kB / 1.051 GB, free: 15.31 MB / 0.8106 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.0003661/0.7262, allocations: 249.6 kB / 1.051 GB, free: 15.05 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.392e-05/0.7263, allocations: 78.62 kB / 1.051 GB, free: 14.98 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003502/0.7267, allocations: 83.72 kB / 1.052 GB, free: 14.88 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.7267, allocations: 0 / 1.052 GB, free: 14.88 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.7267, allocations: 0 / 1.052 GB, free: 14.88 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.7267, allocations: 4 kB / 1.052 GB, free: 14.88 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005012/0.7272, allocations: 0.514 MB / 1.052 GB, free: 14.32 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.479e-06/0.7273, allocations: 7.938 kB / 1.052 GB, free: 14.31 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.179e-05/0.7273, allocations: 12.02 kB / 1.052 GB, free: 14.3 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.7273, allocations: 0 / 1.052 GB, free: 14.3 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.614e-05/0.7274, allocations: 4 kB / 1.052 GB, free: 14.3 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.7274, allocations: 0 / 1.052 GB, free: 14.3 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.7274, allocations: 0 / 1.052 GB, free: 14.3 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009539/0.7283, allocations: 1.01 MB / 1.053 GB, free: 13.27 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001632/0.7285, allocations: 155.7 kB / 1.053 GB, free: 13.09 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.062e-05/0.7286, allocations: 4 kB / 1.053 GB, free: 13.09 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001518/0.7287, allocations: 11.98 kB / 1.053 GB, free: 13.08 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.434e-05/0.7288, allocations: 11.92 kB / 1.053 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.452e-05/0.7288, allocations: 7.984 kB / 1.053 GB, free: 13.06 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0007996/0.7296, allocations: 0.7261 MB / 1.054 GB, free: 12.33 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.21e-07/0.7296, allocations: 0 / 1.054 GB, free: 12.33 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.001724/0.7314, allocations: 0.5818 MB / 1.055 GB, free: 11.75 MB / 0.8106 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.003321/0.7347, allocations: 2.159 MB / 1.057 GB, free: 9.578 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.00247/0.7372, allocations: 2.556 MB / 1.059 GB, free: 7.008 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.7372, allocations: 0 / 1.059 GB, free: 7.008 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003278/0.7376, allocations: 335.8 kB / 1.059 GB, free: 6.68 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003827/0.738, allocations: 71.17 kB / 1.06 GB, free: 6.613 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01484/0.7528, allocations: 15.16 MB / 1.074 GB, free: 7.273 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005481/0.7534, allocations: 0.9839 MB / 1.075 GB, free: 6.262 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.000188/0.7536, allocations: 41.42 kB / 1.075 GB, free: 6.219 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003071/0.7539, allocations: 287.3 kB / 1.076 GB, free: 5.941 MB / 0.8262 GB Notification: Performance of SimCode: time 6.11e-07/0.7539, allocations: 0 / 1.076 GB, free: 5.941 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0587/0.8126, allocations: 23.88 MB / 1.099 GB, free: 14.28 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.03/11.84, allocations: 18.11 kB / 1.099 GB, free: 14.27 MB / 0.8575 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation_fmu --startTime=0 --stopTime=1.8e+12 --timeout=50 --tolerance=1e-06 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)