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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.822/2.822, allocations: 390.4 MB / 397.7 MB, free: 10.61 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001773/0.001773, allocations: 186.2 kB / 490.8 MB, free: 11.14 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.56/1.56, allocations: 221.4 MB / 0.7863 GB, free: 13.54 MB / 0.5886 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00109/0.00109, allocations: 88.38 kB / 0.9264 GB, free: 20.89 MB / 0.6042 GB Notification: Performance of FrontEnd - loaded program: time 0.3855/0.3867, allocations: 149.2 MB / 1.072 GB, free: 15.84 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8512/1.238, allocations: 143 MB / 1.212 GB, free: 53.57 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2355/1.473, allocations: 172.7 MB / 1.38 GB, free: 13.15 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003759/1.474, allocations: 111.9 kB / 1.38 GB, free: 13.04 MB / 0.8855 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: 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.1187/1.593, allocations: 31.3 MB / 1.411 GB, free: 13.64 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 4.416e-05/1.593, allocations: 11.94 kB / 1.411 GB, free: 13.63 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005433/1.593, allocations: 98.73 kB / 1.411 GB, free: 13.54 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008378/1.594, allocations: 431.6 kB / 1.412 GB, free: 13.06 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.667e-05/1.594, allocations: 7.906 kB / 1.412 GB, free: 13.05 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.817e-05/1.594, allocations: 20 kB / 1.412 GB, free: 13.04 MB / 0.9167 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004761/1.595, allocations: 423.8 kB / 1.412 GB, free: 12.62 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003553/1.595, allocations: 384.8 kB / 1.412 GB, free: 12.23 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/1.595, allocations: 3.938 kB / 1.412 GB, free: 12.23 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.48e-05/1.595, allocations: 0 / 1.412 GB, free: 12.23 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.081e-06/1.595, allocations: 0 / 1.412 GB, free: 12.23 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008774/1.596, allocations: 0.7021 MB / 1.413 GB, free: 11.49 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004999/1.597, allocations: 0.5555 MB / 1.414 GB, free: 10.91 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002639/1.597, allocations: 325.7 kB / 1.414 GB, free: 10.59 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001003/1.598, allocations: 1.04 MB / 1.415 GB, free: 9.328 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004023/1.598, allocations: 400.8 kB / 1.415 GB, free: 8.918 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=8): time 2.484e-06/1.598, allocations: 0 / 1.415 GB, free: 8.918 MB / 0.9167 GB Notification: Performance of matching and sorting (n=8): time 0.0009571/1.599, allocations: 0.7461 MB / 1.416 GB, free: 8.164 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.461e-05/1.599, allocations: 93.06 kB / 1.416 GB, free: 8.055 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001246/1.601, allocations: 1.025 MB / 1.417 GB, free: 7.016 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 7.25e-05/1.601, allocations: 29.7 kB / 1.417 GB, free: 6.98 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002482/1.601, allocations: 254 kB / 1.417 GB, free: 6.727 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 5.017e-05/1.601, allocations: 27.64 kB / 1.417 GB, free: 6.699 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.711e-05/1.601, allocations: 0 / 1.417 GB, free: 6.699 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0002179/1.601, allocations: 419.9 kB / 1.418 GB, free: 6.281 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001324/1.603, allocations: 1.225 MB / 1.419 GB, free: 5.055 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001467/1.604, allocations: 1.363 MB / 1.42 GB, free: 3.684 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001896/1.606, allocations: 1.629 MB / 1.422 GB, free: 2.035 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.492e-06/1.606, allocations: 0 / 1.422 GB, free: 2.035 MB / 0.9167 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.00776/1.614, allocations: 7.201 MB / 1.429 GB, free: 10.8 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 2.406e-05/1.614, allocations: 4 kB / 1.429 GB, free: 10.8 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.339e-05/1.614, allocations: 4 kB / 1.429 GB, free: 10.79 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.309e-05/1.614, allocations: 4 kB / 1.429 GB, free: 10.79 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007938/1.615, allocations: 143.7 kB / 1.429 GB, free: 10.65 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.444e-05/1.615, allocations: 8.031 kB / 1.429 GB, free: 10.64 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00067/1.615, allocations: 232.3 kB / 1.429 GB, free: 10.41 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001076/1.616, allocations: 63.98 kB / 1.429 GB, free: 10.35 MB / 0.9323 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.0001736/1.616, allocations: 111.1 kB / 1.43 GB, free: 10.23 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.684e-05/1.616, allocations: 66.78 kB / 1.43 GB, free: 10.17 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008736/1.617, allocations: 0.7148 MB / 1.43 GB, free: 9.445 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.203e-06/1.617, allocations: 11.94 kB / 1.43 GB, free: 9.434 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/1.617, allocations: 3.984 kB / 1.43 GB, free: 9.43 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.932e-06/1.617, allocations: 3.984 kB / 1.43 GB, free: 9.426 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004776/1.617, allocations: 472.3 kB / 1.431 GB, free: 8.93 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-06/1.617, allocations: 3.984 kB / 1.431 GB, free: 8.926 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.608e-05/1.617, allocations: 8 kB / 1.431 GB, free: 8.918 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.441e-06/1.617, allocations: 0 / 1.431 GB, free: 8.918 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.676e-05/1.617, allocations: 11.92 kB / 1.431 GB, free: 8.906 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.876e-06/1.617, allocations: 3.906 kB / 1.431 GB, free: 8.902 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/1.617, allocations: 7.875 kB / 1.431 GB, free: 8.895 MB / 0.9323 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006649/1.618, allocations: 0.7778 MB / 1.432 GB, free: 8.09 MB / 0.9323 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000844/1.619, allocations: 1.192 MB / 1.433 GB, free: 6.867 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001114/1.619, allocations: 151.9 kB / 1.433 GB, free: 6.699 MB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.638e-05/1.619, allocations: 11.91 kB / 1.433 GB, free: 6.688 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001471/1.619, allocations: 0 / 1.433 GB, free: 6.688 MB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.022e-05/1.619, allocations: 11.92 kB / 1.433 GB, free: 6.676 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.685e-05/1.619, allocations: 11.98 kB / 1.433 GB, free: 6.664 MB / 0.9323 GB Notification: Performance of sort global known variables: time 0.0007245/1.62, allocations: 0.6183 MB / 1.433 GB, free: 6.039 MB / 0.9323 GB Notification: Performance of remove unused functions: time 0.003622/1.624, allocations: 0.7179 MB / 1.434 GB, free: 5.32 MB / 0.9323 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.003082/1.627, allocations: 0.8382 MB / 1.435 GB, free: 4.492 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.002634/1.629, allocations: 2.402 MB / 1.437 GB, free: 2.078 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/1.629, allocations: 4 kB / 1.437 GB, free: 2.074 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.0003706/1.63, allocations: 327.8 kB / 1.438 GB, free: 1.754 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002918/1.63, allocations: 34.7 kB / 1.438 GB, free: 1.719 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002023/1.632, allocations: 1.483 MB / 1.439 GB, free: 204 kB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006483/1.633, allocations: 1.031 MB / 1.44 GB, free: 15.14 MB / 0.948 GB Notification: Performance of SimCode: time 7.21e-07/1.633, allocations: 0 / 1.44 GB, free: 15.14 MB / 0.948 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)