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"}) [: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.308/2.308, allocations: 390.4 MB / 397.7 MB, free: 11.26 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.001176/0.001176, allocations: 177.3 kB / 490.8 MB, free: 1.957 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.569/1.569, allocations: 221.4 MB / 0.7863 GB, free: 13.69 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.001217/0.001217, allocations: 99.61 kB / 0.9264 GB, free: 14.22 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.6985/0.6998, allocations: 149.2 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3017/1.001, allocations: 143 MB / 1.212 GB, free: 40 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9537/1.955, allocations: 177.2 MB / 1.385 GB, free: 14.15 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003649/1.956, allocations: 116.2 kB / 1.385 GB, free: 14.12 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: 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.1414/2.097, allocations: 39.33 MB / 1.423 GB, free: 4.309 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.296e-05/2.097, allocations: 8 kB / 1.423 GB, free: 4.301 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006217/2.098, allocations: 114.5 kB / 1.423 GB, free: 4.188 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001091/2.099, allocations: 466.5 kB / 1.424 GB, free: 3.715 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.17e-05/2.099, allocations: 7.984 kB / 1.424 GB, free: 3.707 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001068/2.099, allocations: 27.92 kB / 1.424 GB, free: 3.68 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004494/2.1, allocations: 430.6 kB / 1.424 GB, free: 3.266 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003982/2.1, allocations: 378 kB / 1.425 GB, free: 2.891 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/2.1, allocations: 0 / 1.425 GB, free: 2.891 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.594e-05/2.1, allocations: 0 / 1.425 GB, free: 2.891 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/2.1, allocations: 8 kB / 1.425 GB, free: 2.883 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001185/2.101, allocations: 0.729 MB / 1.425 GB, free: 2.234 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005466/2.102, allocations: 0.5574 MB / 1.426 GB, free: 1.668 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003241/2.102, allocations: 324.5 kB / 1.426 GB, free: 1.348 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001324/2.103, allocations: 1.043 MB / 1.427 GB, free: 88 kB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004876/2.104, allocations: 398.1 kB / 1.428 GB, free: 15.69 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=8): time 4.198e-06/2.104, allocations: 4 kB / 1.428 GB, free: 15.68 MB / 0.8542 GB Notification: Performance of matching and sorting (n=8): time 0.001209/2.105, allocations: 0.7552 MB / 1.428 GB, free: 14.93 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.209e-05/2.105, allocations: 85.09 kB / 1.428 GB, free: 14.83 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001896/2.107, allocations: 1.078 MB / 1.43 GB, free: 13.97 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 7.935e-05/2.107, allocations: 32.95 kB / 1.43 GB, free: 13.94 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003174/2.108, allocations: 262.4 kB / 1.43 GB, free: 13.73 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 5.661e-05/2.108, allocations: 22.42 kB / 1.43 GB, free: 13.72 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.815e-05/2.108, allocations: 0 / 1.43 GB, free: 13.72 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0004043/2.108, allocations: 429 kB / 1.43 GB, free: 13.34 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001543/2.11, allocations: 1.224 MB / 1.431 GB, free: 12.54 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001479/2.111, allocations: 1.362 MB / 1.433 GB, free: 11.63 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002123/2.113, allocations: 1.634 MB / 1.434 GB, free: 10.41 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.097e-06/2.113, allocations: 0 / 1.434 GB, free: 10.41 MB / 0.8542 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.00834/2.122, allocations: 7.201 MB / 1.441 GB, free: 4.027 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 2.204e-05/2.122, allocations: 4 kB / 1.441 GB, free: 4.023 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.163e-05/2.122, allocations: 7.984 kB / 1.441 GB, free: 4.016 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.277e-05/2.122, allocations: 11.97 kB / 1.441 GB, free: 4.004 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007625/2.123, allocations: 139.4 kB / 1.442 GB, free: 3.871 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.719e-05/2.123, allocations: 7.938 kB / 1.442 GB, free: 3.863 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007589/2.123, allocations: 231.7 kB / 1.442 GB, free: 3.637 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001294/2.124, allocations: 59.28 kB / 1.442 GB, free: 3.582 MB / 0.8542 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.0001885/2.124, allocations: 120.1 kB / 1.442 GB, free: 3.461 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000116/2.124, allocations: 70.69 kB / 1.442 GB, free: 3.391 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009515/2.125, allocations: 0.7288 MB / 1.443 GB, free: 2.668 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.202e-06/2.125, allocations: 4 kB / 1.443 GB, free: 2.664 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/2.125, allocations: 3.984 kB / 1.443 GB, free: 2.66 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/2.125, allocations: 0 / 1.443 GB, free: 2.66 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006506/2.126, allocations: 0.4934 MB / 1.443 GB, free: 2.223 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.421e-06/2.126, allocations: 4 kB / 1.443 GB, free: 2.219 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.783e-05/2.126, allocations: 7.984 kB / 1.443 GB, free: 2.211 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.538e-06/2.126, allocations: 0 / 1.443 GB, free: 2.211 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.783e-05/2.126, allocations: 8.031 kB / 1.443 GB, free: 2.203 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.616e-06/2.126, allocations: 3.984 kB / 1.443 GB, free: 2.199 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.048e-06/2.126, allocations: 0 / 1.443 GB, free: 2.199 MB / 0.8542 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009022/2.127, allocations: 0.7924 MB / 1.444 GB, free: 1.395 MB / 0.8542 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001108/2.128, allocations: 1.204 MB / 1.445 GB, free: 200 kB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002031/2.128, allocations: 159.8 kB / 1.445 GB, free: 20 kB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.654e-05/2.128, allocations: 4 kB / 1.445 GB, free: 16 kB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001693/2.128, allocations: 0 / 1.445 GB, free: 16 kB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.981e-05/2.128, allocations: 15.08 kB / 1.445 GB, free: 4 kB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.962e-05/2.128, allocations: 16.91 kB / 1.445 GB, free: 15.98 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.0009885/2.129, allocations: 0.6634 MB / 1.446 GB, free: 15.45 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.004375/2.134, allocations: 0.7391 MB / 1.447 GB, free: 14.78 MB / 0.8698 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.003235/2.137, allocations: 0.9365 MB / 1.448 GB, free: 13.88 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.002741/2.14, allocations: 2.404 MB / 1.45 GB, free: 12.25 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 3.858e-06/2.14, allocations: 0 / 1.45 GB, free: 12.25 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0003495/2.14, allocations: 334.6 kB / 1.45 GB, free: 11.93 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004536/2.141, allocations: 52.95 kB / 1.45 GB, free: 11.9 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002698/2.143, allocations: 1.535 MB / 1.452 GB, free: 10.37 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009837/2.144, allocations: 1.065 MB / 1.453 GB, free: 9.281 MB / 0.8698 GB Notification: Performance of SimCode: time 1.713e-06/2.144, allocations: 0 / 1.453 GB, free: 9.281 MB / 0.8698 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)