Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,fileNamePrefix="BuildingSystems_BuildingSystems_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/BuildingSystems 2.0.0-master/package.mo): time 0.7392/0.7392, allocations: 141.8 MB / 149.1 MB, free: 4.535 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00107/0.00107, allocations: 180.2 kB / 181.9 MB, free: 184 kB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.425/1.425, allocations: 221.3 MB / 436 MB, free: 9.289 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009732/0.0009733, allocations: 99.67 kB / 0.507 GB, free: 24.21 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001802/0.001802, allocations: 277.3 kB / 0.5884 GB, free: 12.31 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1925/0.1943, allocations: 89.7 MB / 0.676 GB, free: 2.539 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4107/0.6051, allocations: 82.76 MB / 0.7569 GB, free: 112.9 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1398/0.745, allocations: 127.3 MB / 0.8812 GB, free: 1.344 MB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003534/0.7454, allocations: 111.9 kB / 0.8813 GB, free: 1.238 MB / 0.5419 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.111/0.8564, allocations: 30.82 MB / 0.9114 GB, free: 2.359 MB / 0.5732 GB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/0.8564, allocations: 11.94 kB / 0.9114 GB, free: 2.348 MB / 0.5732 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004516/0.8569, allocations: 114.6 kB / 0.9115 GB, free: 2.234 MB / 0.5732 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000791/0.8577, allocations: 460.7 kB / 0.912 GB, free: 1.734 MB / 0.5732 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.556e-05/0.8577, allocations: 4 kB / 0.912 GB, free: 1.73 MB / 0.5732 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.019e-05/0.8578, allocations: 20 kB / 0.912 GB, free: 1.711 MB / 0.5732 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003967/0.8582, allocations: 427.8 kB / 0.9124 GB, free: 1.293 MB / 0.5732 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003323/0.8586, allocations: 375.2 kB / 0.9128 GB, free: 0.9141 MB / 0.5732 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.757e-06/0.8586, allocations: 7.938 kB / 0.9128 GB, free: 0.9062 MB / 0.5732 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.85e-05/0.8586, allocations: 7.984 kB / 0.9128 GB, free: 0.8984 MB / 0.5732 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.643e-06/0.8586, allocations: 0 / 0.9128 GB, free: 0.8984 MB / 0.5732 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007782/0.8594, allocations: 0.7289 MB / 0.9135 GB, free: 136 kB / 0.5732 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2475/1.107, allocations: 0.5533 MB / 0.914 GB, free: 182.1 MB / 0.5732 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003042/1.107, allocations: 327.1 kB / 0.9143 GB, free: 182.1 MB / 0.5732 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001038/1.108, allocations: 1.041 MB / 0.9154 GB, free: 181 MB / 0.5732 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003669/1.109, allocations: 399.7 kB / 0.9157 GB, free: 180.9 MB / 0.5732 GB Notification: Performance of pre-optimization done (n=8): time 4.699e-06/1.109, allocations: 0 / 0.9157 GB, free: 180.9 MB / 0.5732 GB Notification: Performance of matching and sorting (n=8): time 0.0009162/1.11, allocations: 0.7511 MB / 0.9165 GB, free: 180.9 MB / 0.5732 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.317e-05/1.11, allocations: 84.8 kB / 0.9166 GB, free: 180.8 MB / 0.5732 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001073/1.111, allocations: 1.08 MB / 0.9176 GB, free: 180.6 MB / 0.5732 GB Notification: Performance of collectPreVariables (initialization): time 5.922e-05/1.111, allocations: 28.33 kB / 0.9176 GB, free: 180.6 MB / 0.5732 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001723/1.111, allocations: 266.5 kB / 0.9179 GB, free: 180.4 MB / 0.5732 GB Notification: Performance of collectInitialBindings (initialization): time 3.601e-05/1.111, allocations: 18.75 kB / 0.9179 GB, free: 180.4 MB / 0.5732 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.407e-05/1.111, allocations: 0 / 0.9179 GB, free: 180.4 MB / 0.5732 GB Notification: Performance of setup shared object (initialization): time 0.000149/1.111, allocations: 428.2 kB / 0.9183 GB, free: 180.1 MB / 0.5732 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001001/1.112, allocations: 1.217 MB / 0.9195 GB, free: 180.1 MB / 0.5732 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001099/1.113, allocations: 1.353 MB / 0.9208 GB, free: 180.1 MB / 0.5732 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001549/1.115, allocations: 1.605 MB / 0.9224 GB, free: 179.7 MB / 0.5732 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/1.115, allocations: 0 / 0.9224 GB, free: 179.7 MB / 0.5732 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.006053/1.121, allocations: 7.135 MB / 0.9294 GB, free: 179 MB / 0.5732 GB Notification: Performance of prepare postOptimizeDAE: time 2.775e-05/1.121, allocations: 4.688 kB / 0.9294 GB, free: 179 MB / 0.5732 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.07e-05/1.121, allocations: 10.81 kB / 0.9294 GB, free: 179 MB / 0.5732 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.481e-05/1.121, allocations: 2.594 kB / 0.9294 GB, free: 179 MB / 0.5732 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007357/1.122, allocations: 145.1 kB / 0.9295 GB, free: 179 MB / 0.5732 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.095e-06/1.122, allocations: 4.469 kB / 0.9295 GB, free: 179 MB / 0.5732 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005954/1.123, allocations: 226.6 kB / 0.9297 GB, free: 178.9 MB / 0.5732 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001081/1.123, allocations: 62.12 kB / 0.9298 GB, free: 178.9 MB / 0.5732 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.k,k,$PRE.t1,t1,$PRE.t2,t2,$PRE.gFun1,gFun1,$PRE.gFun2,gFun2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 89 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 1 * 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.0001407/1.123, allocations: 120.8 kB / 0.9299 GB, free: 178.8 MB / 0.5732 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.223e-05/1.123, allocations: 82.78 kB / 0.93 GB, free: 178.7 MB / 0.5732 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008987/1.124, allocations: 0.7263 MB / 0.9307 GB, free: 178.7 MB / 0.5732 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.658e-06/1.124, allocations: 1.75 kB / 0.9307 GB, free: 178.7 MB / 0.5732 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/1.124, allocations: 0 / 0.9307 GB, free: 178.7 MB / 0.5732 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/1.124, allocations: 1.094 kB / 0.9307 GB, free: 178.7 MB / 0.5732 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004703/1.124, allocations: 0.4893 MB / 0.9312 GB, free: 178.5 MB / 0.5732 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/1.124, allocations: 1.562 kB / 0.9312 GB, free: 178.5 MB / 0.5732 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.91e-05/1.124, allocations: 7.188 kB / 0.9312 GB, free: 178.5 MB / 0.5732 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/1.124, allocations: 4.859 kB / 0.9312 GB, free: 178.5 MB / 0.5732 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.423e-05/1.124, allocations: 5.688 kB / 0.9312 GB, free: 178.5 MB / 0.5732 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/1.124, allocations: 0.9688 kB / 0.9312 GB, free: 178.5 MB / 0.5732 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/1.124, allocations: 1 kB / 0.9312 GB, free: 178.5 MB / 0.5732 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007842/1.125, allocations: 0.7946 MB / 0.932 GB, free: 178.4 MB / 0.5732 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009213/1.126, allocations: 1.197 MB / 0.9331 GB, free: 177.8 MB / 0.5732 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001095/1.126, allocations: 158.4 kB / 0.9333 GB, free: 177.7 MB / 0.5732 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.266e-05/1.126, allocations: 2.219 kB / 0.9333 GB, free: 177.7 MB / 0.5732 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001685/1.127, allocations: 3.469 kB / 0.9333 GB, free: 177.7 MB / 0.5732 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.049e-05/1.127, allocations: 8.25 kB / 0.9333 GB, free: 177.7 MB / 0.5732 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.286e-05/1.127, allocations: 20.84 kB / 0.9333 GB, free: 177.7 MB / 0.5732 GB Notification: Performance of sort global known variables: time 0.0007335/1.127, allocations: 0.6519 MB / 0.934 GB, free: 177.6 MB / 0.5732 GB Notification: Performance of remove unused functions: time 0.002817/1.13, allocations: 0.5169 MB / 0.9345 GB, free: 177.6 MB / 0.5732 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.002284/1.132, allocations: 0.6904 MB / 0.9351 GB, free: 177.5 MB / 0.5732 GB Notification: Performance of simCode: created initialization part: time 0.00273/1.135, allocations: 2.35 MB / 0.9374 GB, free: 177.5 MB / 0.5732 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/1.135, allocations: 0 / 0.9374 GB, free: 177.5 MB / 0.5732 GB Notification: Performance of simCode: created simulation system equations: time 0.0003536/1.136, allocations: 340.4 kB / 0.9378 GB, free: 177.5 MB / 0.5732 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004801/1.136, allocations: 52.88 kB / 0.9378 GB, free: 177.5 MB / 0.5732 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002243/1.138, allocations: 1.523 MB / 0.9393 GB, free: 177.2 MB / 0.5732 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005528/1.139, allocations: 1.055 MB / 0.9403 GB, free: 176.5 MB / 0.5732 GB Notification: Performance of SimCode: time 1.372e-06/1.139, allocations: 3.75 kB / 0.9403 GB, free: 176.5 MB / 0.5732 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation_fmu --startTime=0 --stopTime=1.8e+12 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.fmu > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)