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_SmallScaleValidation.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_SmallScaleValidation,fileNamePrefix="Buildings_latest_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_latest_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/Buildings 10.0.0-master/package.mo): time 2.488/2.488, allocations: 390.3 MB / 402.8 MB, free: 6.699 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.001386/0.001386, allocations: 180.8 kB / 496.1 MB, free: 12.87 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.534/1.534, allocations: 221.3 MB / 0.7915 GB, free: 5.445 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.001155/0.001155, allocations: 99.69 kB / 0.9318 GB, free: 5.746 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.629e-05/3.648e-05, allocations: 4 kB / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3077/0.3077, allocations: 143 MB / 1.219 GB, free: 13.38 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1/1.308, allocations: 178 MB / 1.393 GB, free: 8.324 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003089/1.308, allocations: 119.9 kB / 1.393 GB, free: 8.25 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.1354/1.444, allocations: 38.43 MB / 1.43 GB, free: 6.887 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.813e-06/1.444, allocations: 0 / 1.43 GB, free: 6.887 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 7.556e-05/1.444, allocations: 12 kB / 1.43 GB, free: 6.875 MB / 0.8855 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.002955/1.447, allocations: 1.151 MB / 1.431 GB, free: 5.734 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.811e-05/1.447, allocations: 8.031 kB / 1.431 GB, free: 5.727 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.445e-05/1.447, allocations: 38.5 kB / 1.432 GB, free: 5.68 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004664/1.447, allocations: 114.1 kB / 1.432 GB, free: 5.57 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000922/1.448, allocations: 475.5 kB / 1.432 GB, free: 5.066 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.416e-05/1.448, allocations: 22.12 kB / 1.432 GB, free: 5.055 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.868e-05/1.449, allocations: 35 kB / 1.432 GB, free: 5.031 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003773/1.449, allocations: 386.7 kB / 1.433 GB, free: 4.648 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.305e-06/1.449, allocations: 0 / 1.433 GB, free: 4.648 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.27e-05/1.449, allocations: 0 / 1.433 GB, free: 4.648 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.593e-06/1.449, allocations: 3.953 kB / 1.433 GB, free: 4.645 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003474/1.449, allocations: 434.2 kB / 1.433 GB, free: 4.227 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008283/1.45, allocations: 0.7761 MB / 1.434 GB, free: 3.543 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004508/1.451, allocations: 0.5544 MB / 1.434 GB, free: 2.977 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000265/1.451, allocations: 336.5 kB / 1.435 GB, free: 2.648 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009715/1.452, allocations: 1.036 MB / 1.436 GB, free: 1.391 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003569/1.452, allocations: 398.7 kB / 1.436 GB, free: 0.9961 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=8): time 1.512e-06/1.452, allocations: 0 / 1.436 GB, free: 0.9961 MB / 0.8855 GB Notification: Performance of matching and sorting (n=8): time 0.0009864/1.453, allocations: 0.9739 MB / 1.437 GB, free: 28 kB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.873e-05/1.453, allocations: 92.47 kB / 1.437 GB, free: 15.92 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001205/1.455, allocations: 1.128 MB / 1.438 GB, free: 15.01 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 7.736e-05/1.455, allocations: 40.39 kB / 1.438 GB, free: 14.98 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002455/1.455, allocations: 300.4 kB / 1.438 GB, free: 14.75 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 3.639e-05/1.455, allocations: 21.94 kB / 1.438 GB, free: 14.73 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.227e-05/1.455, allocations: 9.25 kB / 1.438 GB, free: 14.73 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001919/1.455, allocations: 428.4 kB / 1.439 GB, free: 14.35 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001207/1.456, allocations: 1.217 MB / 1.44 GB, free: 13.55 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001336/1.458, allocations: 1.359 MB / 1.441 GB, free: 12.66 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001509/1.459, allocations: 1.615 MB / 1.443 GB, free: 11.44 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.019e-06/1.459, allocations: 0 / 1.443 GB, free: 11.44 MB / 0.9011 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004082/1.463, allocations: 3.47 MB / 1.446 GB, free: 8.809 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 2.346e-05/1.463, allocations: 8 kB / 1.446 GB, free: 8.801 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.009e-05/1.463, allocations: 0 / 1.446 GB, free: 8.801 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.391e-05/1.463, allocations: 4 kB / 1.446 GB, free: 8.797 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000642/1.464, allocations: 146 kB / 1.446 GB, free: 8.66 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.611e-05/1.464, allocations: 8.031 kB / 1.446 GB, free: 8.652 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007456/1.465, allocations: 248 kB / 1.447 GB, free: 8.418 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001004/1.465, allocations: 59.3 kB / 1.447 GB, free: 8.367 MB / 0.9011 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.0001485/1.465, allocations: 129.7 kB / 1.447 GB, free: 8.246 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.79e-05/1.465, allocations: 70.69 kB / 1.447 GB, free: 8.176 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000924/1.466, allocations: 0.9403 MB / 1.448 GB, free: 7.242 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/1.466, allocations: 8.031 kB / 1.448 GB, free: 7.234 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/1.466, allocations: 0 / 1.448 GB, free: 7.234 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/1.466, allocations: 0 / 1.448 GB, free: 7.234 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005049/1.467, allocations: 0.5146 MB / 1.448 GB, free: 6.766 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/1.467, allocations: 0 / 1.448 GB, free: 6.766 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.694e-05/1.467, allocations: 7.984 kB / 1.448 GB, free: 6.758 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.272e-06/1.467, allocations: 4 kB / 1.448 GB, free: 6.754 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.496e-05/1.467, allocations: 3.438 kB / 1.448 GB, free: 6.754 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.007e-06/1.467, allocations: 4.016 kB / 1.448 GB, free: 6.75 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/1.467, allocations: 11.92 kB / 1.448 GB, free: 6.738 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008726/1.468, allocations: 1.019 MB / 1.449 GB, free: 5.711 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001595/1.468, allocations: 159.2 kB / 1.45 GB, free: 5.539 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.082e-05/1.468, allocations: 7.984 kB / 1.45 GB, free: 5.531 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001531/1.468, allocations: 0 / 1.45 GB, free: 5.531 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.333e-05/1.468, allocations: 7.984 kB / 1.45 GB, free: 5.523 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.673e-05/1.468, allocations: 15.98 kB / 1.45 GB, free: 5.508 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0007693/1.469, allocations: 0.7068 MB / 1.45 GB, free: 4.93 MB / 0.9011 GB Notification: Performance of sort global known variables: time 1.6e-07/1.469, allocations: 0 / 1.45 GB, free: 4.93 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.002259/1.471, allocations: 0.7065 MB / 1.451 GB, free: 4.258 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.004669/1.476, allocations: 2.412 MB / 1.453 GB, free: 1.871 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.002555/1.479, allocations: 2.4 MB / 1.456 GB, free: 15.48 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 9.117e-06/1.479, allocations: 4.062 kB / 1.456 GB, free: 15.48 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0002974/1.479, allocations: 331.8 kB / 1.456 GB, free: 15.15 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004431/1.479, allocations: 56.61 kB / 1.456 GB, free: 15.1 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003774/1.483, allocations: 1.951 MB / 1.458 GB, free: 13.1 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005913/1.484, allocations: 1.009 MB / 1.459 GB, free: 12.07 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0002492/1.484, allocations: 54.97 kB / 1.459 GB, free: 12.01 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003568/1.484, allocations: 307.3 kB / 1.459 GB, free: 11.71 MB / 0.9167 GB Notification: Performance of SimCode: time 6.41e-07/1.484, allocations: 4 kB / 1.459 GB, free: 11.71 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.721/4.205, allocations: 23.74 MB / 1.482 GB, free: 4.176 MB / 0.9323 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002751/4.205, allocations: 277.7 kB / 1.483 GB, free: 3.84 MB / 0.9323 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.058/7.263, allocations: 0 / 1.483 GB, free: 3.84 MB / 0.9323 GB (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation_fmu --startTime=0 --stopTime=1.8e+12 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.fmu > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)