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_SmallScaleValidation.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: translateModel(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") translateModel(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") [: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.001299/0.001299, allocations: 190.1 kB / 7.804 MB, free: 2.449 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4343/0.4343, 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.201/1.201, allocations: 221.4 MB / 342.8 MB, free: 5.203 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.0009173/0.0009176, allocations: 103.2 kB / 415.5 MB, free: 6.438 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 9.939e-06/9.969e-06, allocations: 3.938 kB / 493.9 MB, free: 8.027 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.365/0.365, allocations: 72.29 MB / 0.5529 GB, free: 73.34 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1352/0.5002, allocations: 128.7 MB / 0.6786 GB, free: 13.24 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002872/0.5006, allocations: 115.9 kB / 0.6787 GB, free: 13.13 MB / 0.4948 GB [/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: Performance of FrontEnd: time 0.1329/0.6334, allocations: 38.19 MB / 0.716 GB, free: 6.965 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 7.258e-05/0.6336, allocations: 12 kB / 0.716 GB, free: 6.953 MB / 0.5261 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.002908/0.6365, allocations: 1.149 MB / 0.7172 GB, free: 5.758 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.6365, allocations: 8.031 kB / 0.7172 GB, free: 5.75 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004775/0.637, allocations: 106.6 kB / 0.7173 GB, free: 5.645 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008219/0.6378, allocations: 476.9 kB / 0.7177 GB, free: 5.129 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.451e-05/0.6379, allocations: 3.938 kB / 0.7177 GB, free: 5.125 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.835e-05/0.638, allocations: 27.89 kB / 0.7178 GB, free: 5.098 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003847/0.6384, allocations: 423.8 kB / 0.7182 GB, free: 4.684 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003558/0.6387, allocations: 379.2 kB / 0.7185 GB, free: 4.301 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.6387, allocations: 3.984 kB / 0.7185 GB, free: 4.297 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.355e-05/0.6388, allocations: 0 / 0.7185 GB, free: 4.297 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.571e-06/0.6388, allocations: 4 kB / 0.7185 GB, free: 4.293 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009033/0.6397, allocations: 0.7227 MB / 0.7192 GB, free: 3.531 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000494/0.6402, allocations: 0.5594 MB / 0.7198 GB, free: 2.953 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002868/0.6405, allocations: 329.7 kB / 0.7201 GB, free: 2.625 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001162/0.6417, allocations: 1.04 MB / 0.7211 GB, free: 1.363 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003904/0.6421, allocations: 397.6 kB / 0.7215 GB, free: 0.957 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=8): time 1.823e-06/0.6421, allocations: 4 kB / 0.7215 GB, free: 0.9531 MB / 0.5261 GB Notification: Performance of matching and sorting (n=8): time 0.0008676/0.643, allocations: 0.7515 MB / 0.7222 GB, free: 200 kB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.785e-05/0.643, allocations: 85.09 kB / 0.7223 GB, free: 96 kB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1986/0.8417, allocations: 1.088 MB / 0.7234 GB, free: 184.6 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001162/0.8418, allocations: 25.7 kB / 0.7234 GB, free: 184.6 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001463/0.842, allocations: 269.9 kB / 0.7237 GB, free: 184.5 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 3.782e-05/0.842, allocations: 18.52 kB / 0.7237 GB, free: 184.4 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.473e-05/0.8421, allocations: 0 / 0.7237 GB, free: 184.4 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001091/0.8422, allocations: 432.2 kB / 0.7241 GB, free: 184.1 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009692/0.8432, allocations: 1.222 MB / 0.7253 GB, free: 184.1 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00105/0.8442, allocations: 1.364 MB / 0.7266 GB, free: 184.1 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001347/0.8456, allocations: 1.624 MB / 0.7282 GB, free: 183.8 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.8456, allocations: 0 / 0.7282 GB, free: 183.8 MB / 0.5261 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004783/0.8504, allocations: 7.208 MB / 0.7352 GB, free: 183 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.289e-05/0.8504, allocations: 5.031 kB / 0.7352 GB, free: 183 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.686e-05/0.8505, allocations: 13.44 kB / 0.7353 GB, free: 183 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.552e-05/0.8505, allocations: 7.859 kB / 0.7353 GB, free: 183 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006491/0.8511, allocations: 143.5 kB / 0.7354 GB, free: 183 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.867e-06/0.8512, allocations: 3.844 kB / 0.7354 GB, free: 183 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005585/0.8517, allocations: 233.7 kB / 0.7356 GB, free: 182.9 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.883e-05/0.8518, allocations: 58.28 kB / 0.7357 GB, free: 182.9 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.0001292/0.852, allocations: 126.8 kB / 0.7358 GB, free: 182.8 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.972e-05/0.852, allocations: 74.31 kB / 0.7359 GB, free: 182.7 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006937/0.8527, allocations: 0.7277 MB / 0.7366 GB, free: 182.7 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.8527, allocations: 0 / 0.7366 GB, free: 182.7 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.8527, allocations: 0 / 0.7366 GB, free: 182.7 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.69e-06/0.8527, allocations: 2.969 kB / 0.7366 GB, free: 182.7 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000369/0.8531, allocations: 0.4924 MB / 0.7371 GB, free: 182.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.8531, allocations: 0 / 0.7371 GB, free: 182.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.415e-05/0.8532, allocations: 10.2 kB / 0.7371 GB, free: 182.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.477e-06/0.8532, allocations: 7.719 kB / 0.7371 GB, free: 182.5 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.266e-05/0.8532, allocations: 0 / 0.7371 GB, free: 182.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.8532, allocations: 0 / 0.7371 GB, free: 182.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.928e-06/0.8533, allocations: 7.625 kB / 0.7371 GB, free: 182.5 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005291/0.8538, allocations: 0.7891 MB / 0.7379 GB, free: 182.4 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 9.222e-05/0.8539, allocations: 162.2 kB / 0.738 GB, free: 182.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.973e-05/0.854, allocations: 6.219 kB / 0.738 GB, free: 182.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001594/0.8541, allocations: 3.688 kB / 0.738 GB, free: 182.2 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.422e-05/0.8542, allocations: 10.64 kB / 0.738 GB, free: 182.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.844e-05/0.8542, allocations: 13.75 kB / 0.7381 GB, free: 182.2 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0005795/0.8548, allocations: 0.6653 MB / 0.7387 GB, free: 182.1 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.002297/0.8571, allocations: 0.6865 MB / 0.7394 GB, free: 182.1 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.002309/0.8594, allocations: 0.9236 MB / 0.7403 GB, free: 182 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002518/0.862, allocations: 2.411 MB / 0.7426 GB, free: 181.9 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.862, allocations: 0 / 0.7426 GB, free: 181.9 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0003495/0.8623, allocations: 335.1 kB / 0.743 GB, free: 181.9 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003874/0.8627, allocations: 52.45 kB / 0.743 GB, free: 181.9 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002203/0.865, allocations: 1.534 MB / 0.7445 GB, free: 181.6 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005836/0.8656, allocations: 1.062 MB / 0.7455 GB, free: 180.9 MB / 0.5261 GB Notification: Performance of SimCode: time 7.71e-07/0.8656, allocations: 0 / 0.7455 GB, free: 180.9 MB / 0.5261 GB Notification: Performance of Templates: time 0.0245/0.8901, allocations: 14.62 MB / 0.7598 GB, free: 180.3 MB / 0.5261 GB make -j1 -f IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.makefile (rm -f IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & ./IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)