Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.conf.json 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/IBPSA 4.0.0-master/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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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) Running command: "" <> buildModelFMU(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="IBPSA_latest_IBPSA_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/Complex 4.0.0+maint.om/package.mo): time 0.00137/0.00137, allocations: 187.3 kB / 7.798 MB, free: 2.277 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4735/0.4735, allocations: 90.85 MB / 99.07 MB, free: 14.94 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.374/1.374, allocations: 221.4 MB / 342.8 MB, free: 5.195 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009724/0.0009724, allocations: 97.94 kB / 415.5 MB, free: 6.426 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1798/0.1808, allocations: 78.49 MB / 494 MB, free: 7.926 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4133/0.5941, allocations: 72.29 MB / 0.553 GB, free: 73.29 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1411/0.7353, allocations: 124.2 MB / 0.6743 GB, free: 1.746 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002978/0.7357, allocations: 115.9 kB / 0.6744 GB, free: 1.633 MB / 490.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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.1131/0.8488, allocations: 31.31 MB / 0.705 GB, free: 2.324 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/0.8488, allocations: 8 kB / 0.705 GB, free: 2.316 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004067/0.8493, allocations: 105.4 kB / 0.7051 GB, free: 2.215 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006338/0.8499, allocations: 427.6 kB / 0.7055 GB, free: 1.746 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.733e-05/0.8499, allocations: 7.984 kB / 0.7055 GB, free: 1.738 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001014/0.85, allocations: 20 kB / 0.7055 GB, free: 1.719 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003955/0.8504, allocations: 423.7 kB / 0.7059 GB, free: 1.305 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000374/0.8508, allocations: 385.9 kB / 0.7063 GB, free: 0.918 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.477e-06/0.8508, allocations: 0 / 0.7063 GB, free: 0.918 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.468e-05/0.8509, allocations: 4 kB / 0.7063 GB, free: 0.9141 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.1e-05/0.8509, allocations: 7.906 kB / 0.7063 GB, free: 0.9062 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007533/0.8516, allocations: 0.6983 MB / 0.707 GB, free: 172 kB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005351/0.8522, allocations: 0.5555 MB / 0.7075 GB, free: 15.59 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002799/0.8525, allocations: 329.7 kB / 0.7079 GB, free: 15.27 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001054/0.8535, allocations: 1.04 MB / 0.7089 GB, free: 14 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003573/0.8539, allocations: 396.8 kB / 0.7093 GB, free: 13.6 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=8): time 1.483e-06/0.8539, allocations: 0 / 0.7093 GB, free: 13.6 MB / 0.5261 GB Notification: Performance of matching and sorting (n=8): time 0.000883/0.8548, allocations: 0.7516 MB / 0.71 GB, free: 12.84 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.002e-05/0.8549, allocations: 85.09 kB / 0.7101 GB, free: 12.74 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001066/0.8559, allocations: 1.025 MB / 0.7111 GB, free: 11.7 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 6.216e-05/0.856, allocations: 33.64 kB / 0.7111 GB, free: 11.66 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001999/0.8562, allocations: 254 kB / 0.7113 GB, free: 11.41 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 3.624e-05/0.8563, allocations: 23.73 kB / 0.7114 GB, free: 11.38 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.68e-05/0.8563, allocations: 0 / 0.7114 GB, free: 11.38 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002119/0.8565, allocations: 419.9 kB / 0.7118 GB, free: 10.96 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001314/0.8579, allocations: 1.225 MB / 0.713 GB, free: 9.738 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001487/0.8594, allocations: 1.359 MB / 0.7143 GB, free: 8.367 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001761/0.8611, allocations: 1.637 MB / 0.7159 GB, free: 6.711 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.8611, allocations: 0 / 0.7159 GB, free: 6.711 MB / 0.5261 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.3351/1.196, allocations: 7.191 MB / 0.7229 GB, free: 113.8 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 3.172e-05/1.196, allocations: 11.84 kB / 0.7229 GB, free: 113.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.777e-05/1.196, allocations: 6.5 kB / 0.7229 GB, free: 113.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.794e-05/1.196, allocations: 3.625 kB / 0.7229 GB, free: 113.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009071/1.197, allocations: 144.7 kB / 0.7231 GB, free: 113.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.346e-05/1.197, allocations: 3.25 kB / 0.7231 GB, free: 113.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007232/1.198, allocations: 223.5 kB / 0.7233 GB, free: 113.8 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001024/1.198, allocations: 62.39 kB / 0.7233 GB, free: 113.8 MB / 0.5261 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.0001479/1.198, allocations: 124.2 kB / 0.7235 GB, free: 113.7 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.308e-05/1.198, allocations: 68.66 kB / 0.7235 GB, free: 113.6 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008855/1.199, allocations: 0.7165 MB / 0.7242 GB, free: 113.5 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.572e-06/1.199, allocations: 7.562 kB / 0.7242 GB, free: 113.5 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/1.199, allocations: 0 / 0.7242 GB, free: 113.5 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/1.199, allocations: 2.016 kB / 0.7242 GB, free: 113.5 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004677/1.2, allocations: 478.7 kB / 0.7247 GB, free: 113.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/1.2, allocations: 0 / 0.7247 GB, free: 113.4 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.563e-05/1.2, allocations: 6.344 kB / 0.7247 GB, free: 113.4 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.025e-06/1.2, allocations: 0.9844 kB / 0.7247 GB, free: 113.4 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.462e-05/1.2, allocations: 7.547 kB / 0.7247 GB, free: 113.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/1.2, allocations: 0 / 0.7247 GB, free: 113.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/1.2, allocations: 0 / 0.7247 GB, free: 113.4 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005999/1.201, allocations: 0.7908 MB / 0.7255 GB, free: 113.2 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006731/1.201, allocations: 1.191 MB / 0.7266 GB, free: 112.7 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 8.303e-05/1.201, allocations: 150.6 kB / 0.7268 GB, free: 112.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.697e-05/1.201, allocations: 3.281 kB / 0.7268 GB, free: 112.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001616/1.202, allocations: 5.969 kB / 0.7268 GB, free: 112.6 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.57e-05/1.202, allocations: 8.844 kB / 0.7268 GB, free: 112.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.794e-05/1.202, allocations: 11.05 kB / 0.7268 GB, free: 112.6 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0006459/1.202, allocations: 0.6181 MB / 0.7274 GB, free: 112.5 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.003288/1.206, allocations: 0.7349 MB / 0.7281 GB, free: 112.5 MB / 0.5261 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.002983/1.209, allocations: 0.8286 MB / 0.7289 GB, free: 112.4 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002315/1.211, allocations: 2.4 MB / 0.7313 GB, free: 112.3 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/1.211, allocations: 0 / 0.7313 GB, free: 112.3 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0002504/1.211, allocations: 336.2 kB / 0.7316 GB, free: 112.3 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000339/1.212, allocations: 33.58 kB / 0.7316 GB, free: 112.3 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002011/1.214, allocations: 1.477 MB / 0.7331 GB, free: 112 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006638/1.214, allocations: 1.036 MB / 0.7341 GB, free: 111.3 MB / 0.5261 GB Notification: Performance of SimCode: time 3.777e-06/1.214, allocations: 0 / 0.7341 GB, free: 111.3 MB / 0.5261 GB (rm -f IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters_fmu --startTime=0 --stopTime=4.12e+08 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.fmu > IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1)