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_1borehole_5meters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.26/2.26, allocations: 390.5 MB / 398 MB, free: 11 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001125/0.001125, allocations: 176.3 kB / 491.2 MB, free: 1.66 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.601/1.601, allocations: 221.5 MB / 0.7868 GB, free: 13.37 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009418/0.0009418, allocations: 93.88 kB / 0.9269 GB, free: 13.88 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.058e-05/2.061e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2903/0.2903, allocations: 143 MB / 1.212 GB, free: 39.46 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9302/1.221, allocations: 172.8 MB / 1.381 GB, free: 15.03 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003114/1.221, allocations: 118.9 kB / 1.381 GB, free: 15.01 MB / 0.823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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 FrontEnd - DAE generated: time 0.1005/1.321, allocations: 30.19 MB / 1.411 GB, free: 14.14 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.886e-06/1.322, allocations: 0 / 1.411 GB, free: 14.14 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.819e-05/1.322, allocations: 15.94 kB / 1.411 GB, free: 14.12 MB / 0.8386 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.00259/1.324, allocations: 1.12 MB / 1.412 GB, free: 13.02 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/1.324, allocations: 12.03 kB / 1.412 GB, free: 13 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003624/1.325, allocations: 94.7 kB / 1.412 GB, free: 12.91 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005688/1.325, allocations: 429.8 kB / 1.412 GB, free: 12.47 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.184e-05/1.325, allocations: 4 kB / 1.412 GB, free: 12.46 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.048e-05/1.325, allocations: 23.88 kB / 1.412 GB, free: 12.45 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003726/1.326, allocations: 428.3 kB / 1.413 GB, free: 12.03 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003529/1.326, allocations: 378 kB / 1.413 GB, free: 11.66 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.128e-06/1.326, allocations: 0 / 1.413 GB, free: 11.66 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.646e-05/1.326, allocations: 7.984 kB / 1.413 GB, free: 11.65 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/1.326, allocations: 3.953 kB / 1.413 GB, free: 11.64 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006496/1.327, allocations: 0.6945 MB / 1.414 GB, free: 11.02 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000489/1.327, allocations: 0.5666 MB / 1.414 GB, free: 10.45 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002728/1.327, allocations: 328.6 kB / 1.415 GB, free: 10.12 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009814/1.328, allocations: 1.036 MB / 1.416 GB, free: 8.867 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003514/1.329, allocations: 403.8 kB / 1.416 GB, free: 8.469 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 1.362e-06/1.329, allocations: 0 / 1.416 GB, free: 8.469 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8): time 0.0009537/1.33, allocations: 0.9637 MB / 1.417 GB, free: 7.512 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.803e-05/1.33, allocations: 81.09 kB / 1.417 GB, free: 7.414 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009049/1.331, allocations: 1.007 MB / 1.418 GB, free: 6.605 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 5.608e-05/1.331, allocations: 25.7 kB / 1.418 GB, free: 6.574 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001931/1.331, allocations: 262.4 kB / 1.418 GB, free: 6.375 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.281e-05/1.331, allocations: 27.2 kB / 1.418 GB, free: 6.352 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.316e-05/1.331, allocations: 0 / 1.418 GB, free: 6.352 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001737/1.331, allocations: 421.8 kB / 1.419 GB, free: 5.973 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001087/1.332, allocations: 1.196 MB / 1.42 GB, free: 5.199 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001177/1.334, allocations: 1.335 MB / 1.421 GB, free: 4.312 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001558/1.335, allocations: 1.611 MB / 1.423 GB, free: 3.113 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/1.335, allocations: 0 / 1.423 GB, free: 3.113 MB / 0.8386 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.00384/1.339, allocations: 3.419 MB / 1.426 GB, free: 0.5195 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.111e-05/1.339, allocations: 8 kB / 1.426 GB, free: 0.5117 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.247e-05/1.339, allocations: 0 / 1.426 GB, free: 0.5117 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.159e-05/1.339, allocations: 4 kB / 1.426 GB, free: 0.5078 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000657/1.34, allocations: 142.9 kB / 1.426 GB, free: 380 kB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.348e-06/1.34, allocations: 4 kB / 1.426 GB, free: 376 kB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000618/1.34, allocations: 228.3 kB / 1.427 GB, free: 144 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.539e-05/1.341, allocations: 62.61 kB / 1.427 GB, free: 88 kB / 0.8386 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 ($whenCondition1,$PRE.k,k,$PRE.t1,t1,$PRE.t2,t2,$PRE.gFun1,gFun1,$PRE.gFun2,gFun2,labels[1],cluSiz[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (92): * Single equations (assignments): 89 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000177/1.341, allocations: 130 kB / 1.427 GB, free: 15.96 MB / 0.8542 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00103/1.342, allocations: 0.9458 MB / 1.428 GB, free: 15.02 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.014e-05/1.342, allocations: 69.83 kB / 1.428 GB, free: 14.95 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008518/1.343, allocations: 0.9277 MB / 1.429 GB, free: 14.03 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/1.343, allocations: 4 kB / 1.429 GB, free: 14.02 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/1.343, allocations: 0 / 1.429 GB, free: 14.02 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.712e-06/1.343, allocations: 4 kB / 1.429 GB, free: 14.02 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005939/1.343, allocations: 474.9 kB / 1.429 GB, free: 13.6 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/1.343, allocations: 4.031 kB / 1.429 GB, free: 13.6 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.231e-05/1.343, allocations: 11.94 kB / 1.429 GB, free: 13.59 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.949e-06/1.343, allocations: 0 / 1.429 GB, free: 13.59 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.937e-05/1.343, allocations: 11.92 kB / 1.429 GB, free: 13.58 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/1.344, allocations: 0 / 1.429 GB, free: 13.58 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/1.344, allocations: 0 / 1.429 GB, free: 13.58 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001169/1.345, allocations: 0.9965 MB / 1.43 GB, free: 12.57 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001415/1.345, allocations: 159.8 kB / 1.43 GB, free: 12.4 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.343e-05/1.345, allocations: 0 / 1.43 GB, free: 12.4 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002083/1.345, allocations: 7.312 kB / 1.43 GB, free: 12.39 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.791e-05/1.345, allocations: 7.984 kB / 1.43 GB, free: 12.39 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.515e-05/1.345, allocations: 7.984 kB / 1.43 GB, free: 12.38 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0008697/1.346, allocations: 0.602 MB / 1.431 GB, free: 11.89 MB / 0.8542 GB Notification: Performance of sort global known variables: time 3.627e-06/1.346, allocations: 0 / 1.431 GB, free: 11.89 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.002955/1.349, allocations: 0.6927 MB / 1.432 GB, free: 11.21 MB / 0.8542 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00534/1.354, allocations: 2.31 MB / 1.434 GB, free: 8.965 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.002398/1.357, allocations: 2.383 MB / 1.436 GB, free: 7.355 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/1.357, allocations: 4 kB / 1.436 GB, free: 7.352 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0002734/1.357, allocations: 327.8 kB / 1.437 GB, free: 7.035 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000269/1.358, allocations: 39.36 kB / 1.437 GB, free: 7.016 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003321/1.361, allocations: 1.871 MB / 1.438 GB, free: 5.133 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005268/1.361, allocations: 0.9892 MB / 1.439 GB, free: 4.121 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.0002033/1.362, allocations: 59.27 kB / 1.439 GB, free: 4.066 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000252/1.362, allocations: 273.9 kB / 1.44 GB, free: 4.012 MB / 0.8542 GB Notification: Performance of SimCode: time 7.31e-07/1.362, allocations: 0 / 1.44 GB, free: 4.012 MB / 0.8542 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04696/1.409, allocations: 20.15 MB / 1.459 GB, free: 15.9 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000228/1.409, allocations: 271 kB / 1.46 GB, free: 15.61 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.961/4.37, allocations: 0 / 1.46 GB, free: 15.61 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters_fmu --startTime=0 --stopTime=4.12e+08 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.fmu > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1)