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.32/2.32, allocations: 390.3 MB / 402.8 MB, free: 6.707 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.001394/0.001395, allocations: 172.8 kB / 496.1 MB, free: 12.88 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.542/1.542, allocations: 221.3 MB / 0.7915 GB, free: 5.391 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.0009362/0.0009362, allocations: 83.97 kB / 0.9317 GB, free: 5.719 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.437e-05/3.447e-05, allocations: 4 kB / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2527/0.2528, allocations: 143 MB / 1.219 GB, free: 13.38 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8132/1.066, allocations: 173.5 MB / 1.388 GB, free: 12.78 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002851/1.066, allocations: 116.1 kB / 1.388 GB, free: 12.71 MB / 0.8542 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.1086/1.175, allocations: 30.31 MB / 1.418 GB, free: 2.25 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.282e-06/1.175, allocations: 4 kB / 1.418 GB, free: 2.246 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 2.756e-05/1.175, allocations: 12 kB / 1.418 GB, free: 2.234 MB / 0.8698 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.002452/1.178, allocations: 1.127 MB / 1.419 GB, free: 1.117 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/1.178, allocations: 8.031 kB / 1.419 GB, free: 1.109 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.23e-05/1.178, allocations: 38.25 kB / 1.419 GB, free: 1.066 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003619/1.178, allocations: 94.7 kB / 1.419 GB, free: 0.9727 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005759/1.179, allocations: 435.3 kB / 1.42 GB, free: 0.5 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.13e-05/1.179, allocations: 22.12 kB / 1.42 GB, free: 500 kB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.617e-05/1.179, allocations: 34.88 kB / 1.42 GB, free: 476 kB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003326/1.179, allocations: 382.4 kB / 1.42 GB, free: 88 kB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.574e-06/1.179, allocations: 0 / 1.42 GB, free: 88 kB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.108e-05/1.179, allocations: 2.75 kB / 1.42 GB, free: 88 kB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.663e-06/1.179, allocations: 7.953 kB / 1.42 GB, free: 80 kB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003396/1.179, allocations: 419.3 kB / 1.42 GB, free: 15.67 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006447/1.18, allocations: 0.7581 MB / 1.421 GB, free: 15 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004226/1.181, allocations: 0.5622 MB / 1.422 GB, free: 14.42 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002451/1.181, allocations: 332.2 kB / 1.422 GB, free: 14.1 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000856/1.182, allocations: 1.04 MB / 1.423 GB, free: 12.84 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003115/1.182, allocations: 403.1 kB / 1.424 GB, free: 12.44 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=8): time 1.463e-06/1.182, allocations: 3.938 kB / 1.424 GB, free: 12.43 MB / 0.8855 GB Notification: Performance of matching and sorting (n=8): time 0.0008459/1.183, allocations: 0.9587 MB / 1.424 GB, free: 11.48 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.215e-05/1.183, allocations: 96.92 kB / 1.425 GB, free: 11.37 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009202/1.184, allocations: 1.062 MB / 1.426 GB, free: 10.5 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 5.437e-05/1.184, allocations: 40.45 kB / 1.426 GB, free: 10.47 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001826/1.184, allocations: 280.7 kB / 1.426 GB, free: 10.24 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 3.182e-05/1.184, allocations: 19.31 kB / 1.426 GB, free: 10.23 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.154e-05/1.184, allocations: 14.19 kB / 1.426 GB, free: 10.22 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001581/1.184, allocations: 414.7 kB / 1.426 GB, free: 9.852 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001107/1.185, allocations: 1.214 MB / 1.427 GB, free: 9.059 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001144/1.187, allocations: 1.361 MB / 1.429 GB, free: 8.156 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00135/1.188, allocations: 1.618 MB / 1.43 GB, free: 6.945 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.918e-06/1.188, allocations: 0 / 1.43 GB, free: 6.945 MB / 0.8855 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.003653/1.192, allocations: 3.452 MB / 1.434 GB, free: 4.328 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/1.192, allocations: 5.562 kB / 1.434 GB, free: 4.324 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.095e-05/1.192, allocations: 7.984 kB / 1.434 GB, free: 4.316 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.7e-05/1.192, allocations: 4 kB / 1.434 GB, free: 4.312 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006324/1.192, allocations: 145.9 kB / 1.434 GB, free: 4.176 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.037e-05/1.192, allocations: 0 / 1.434 GB, free: 4.176 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005551/1.193, allocations: 257.8 kB / 1.434 GB, free: 3.934 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.648e-05/1.193, allocations: 58.84 kB / 1.434 GB, free: 3.879 MB / 0.8855 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.0001335/1.193, allocations: 128.5 kB / 1.434 GB, free: 3.762 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.631e-05/1.193, allocations: 66.78 kB / 1.434 GB, free: 3.695 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008222/1.194, allocations: 0.9273 MB / 1.435 GB, free: 2.77 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.596e-06/1.194, allocations: 0 / 1.435 GB, free: 2.77 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/1.194, allocations: 4.031 kB / 1.435 GB, free: 2.766 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/1.194, allocations: 0 / 1.435 GB, free: 2.766 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003922/1.194, allocations: 0.5024 MB / 1.436 GB, free: 2.301 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/1.194, allocations: 3.938 kB / 1.436 GB, free: 2.297 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.789e-05/1.195, allocations: 4 kB / 1.436 GB, free: 2.293 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.901e-06/1.195, allocations: 4 kB / 1.436 GB, free: 2.289 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.415e-05/1.195, allocations: 3.984 kB / 1.436 GB, free: 2.285 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/1.195, allocations: 0 / 1.436 GB, free: 2.285 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.614e-06/1.195, allocations: 4 kB / 1.436 GB, free: 2.281 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007179/1.195, allocations: 0.9949 MB / 1.437 GB, free: 1.277 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001079/1.195, allocations: 155.9 kB / 1.437 GB, free: 1.105 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.29e-05/1.196, allocations: 3.562 kB / 1.437 GB, free: 1.105 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000137/1.196, allocations: 7.938 kB / 1.437 GB, free: 1.098 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.386e-05/1.196, allocations: 15.91 kB / 1.437 GB, free: 1.082 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.77e-05/1.196, allocations: 15.98 kB / 1.437 GB, free: 1.066 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0006404/1.196, allocations: 0.6591 MB / 1.438 GB, free: 0.5156 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.7e-07/1.196, allocations: 0 / 1.438 GB, free: 0.5156 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.001961/1.198, allocations: 0.697 MB / 1.438 GB, free: 15.85 MB / 0.9011 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.003585/1.202, allocations: 2.307 MB / 1.441 GB, free: 13.56 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.002117/1.204, allocations: 2.398 MB / 1.443 GB, free: 11.93 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 3.247e-06/1.204, allocations: 4.062 kB / 1.443 GB, free: 11.93 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0002578/1.204, allocations: 334.5 kB / 1.443 GB, free: 11.61 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002364/1.205, allocations: 45.22 kB / 1.443 GB, free: 11.59 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003029/1.208, allocations: 1.892 MB / 1.445 GB, free: 9.691 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004731/1.208, allocations: 0.9852 MB / 1.446 GB, free: 8.684 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0001902/1.208, allocations: 54.95 kB / 1.446 GB, free: 8.629 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002412/1.209, allocations: 277.2 kB / 1.446 GB, free: 8.574 MB / 0.9011 GB Notification: Performance of SimCode: time 6.61e-07/1.209, allocations: 0 / 1.446 GB, free: 8.574 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.353/2.562, allocations: 20.91 MB / 1.467 GB, free: 3.883 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003238/2.562, allocations: 281.3 kB / 1.467 GB, free: 3.539 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.014/5.576, allocations: 1.375 kB / 1.467 GB, free: 3.539 MB / 0.9167 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)