Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.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: translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes") translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes") [: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.7391/0.7391, allocations: 141.8 MB / 149.1 MB, free: 3.328 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.001104/0.001104, allocations: 178.8 kB / 181.9 MB, free: 15.14 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.413/1.413, allocations: 221.4 MB / 436 MB, free: 8.219 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.001065/0.001065, allocations: 97.83 kB / 0.507 GB, free: 24.45 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001821/0.001821, allocations: 284.6 kB / 0.5884 GB, free: 11.34 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 1.456e-05/1.457e-05, allocations: 7.938 kB / 0.6759 GB, free: 1.668 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4664/0.4664, allocations: 82.76 MB / 0.7568 GB, free: 111.9 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1467/0.6132, allocations: 122.8 MB / 0.8767 GB, free: 4.926 MB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003065/0.6135, allocations: 123.7 kB / 0.8768 GB, free: 4.809 MB / 0.5419 GB Notification: Performance of FrontEnd: time 0.08911/0.7027, allocations: 25.28 MB / 0.9015 GB, free: 11.52 MB / 0.5732 GB Notification: Performance of Transformations before backend: time 9.221e-05/0.7028, allocations: 16 kB / 0.9015 GB, free: 11.51 MB / 0.5732 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.003203/0.706, allocations: 1.324 MB / 0.9028 GB, free: 10.13 MB / 0.5732 GB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/0.7061, allocations: 8.031 kB / 0.9028 GB, free: 10.12 MB / 0.5732 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005909/0.7067, allocations: 154 kB / 0.903 GB, free: 9.973 MB / 0.5732 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001202/0.7079, allocations: 0.626 MB / 0.9036 GB, free: 9.277 MB / 0.5732 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.654e-05/0.7079, allocations: 3.938 kB / 0.9036 GB, free: 9.273 MB / 0.5732 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001291/0.708, allocations: 20 kB / 0.9036 GB, free: 9.254 MB / 0.5732 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003922/0.7084, allocations: 427.8 kB / 0.904 GB, free: 8.836 MB / 0.5732 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004032/0.7089, allocations: 388.1 kB / 0.9044 GB, free: 8.445 MB / 0.5732 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.7089, allocations: 0 / 0.9044 GB, free: 8.445 MB / 0.5732 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.556e-05/0.7089, allocations: 0 / 0.9044 GB, free: 8.445 MB / 0.5732 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.708e-06/0.7089, allocations: 0 / 0.9044 GB, free: 8.445 MB / 0.5732 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00136/0.7103, allocations: 0.9239 MB / 0.9053 GB, free: 7.473 MB / 0.5732 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004598/0.7108, allocations: 0.5516 MB / 0.9058 GB, free: 6.902 MB / 0.5732 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002583/0.711, allocations: 329.7 kB / 0.9061 GB, free: 6.574 MB / 0.5732 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001014/0.7121, allocations: 1.04 MB / 0.9071 GB, free: 5.312 MB / 0.5732 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003364/0.7124, allocations: 392.9 kB / 0.9075 GB, free: 4.91 MB / 0.5732 GB Notification: Performance of pre-optimization done (n=8): time 1.593e-06/0.7124, allocations: 0 / 0.9075 GB, free: 4.91 MB / 0.5732 GB Notification: Performance of matching and sorting (n=8): time 0.0009107/0.7133, allocations: 0.8123 MB / 0.9083 GB, free: 4.09 MB / 0.5732 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.083e-05/0.7134, allocations: 81.11 kB / 0.9084 GB, free: 3.992 MB / 0.5732 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001819/0.7152, allocations: 1.533 MB / 0.9099 GB, free: 2.418 MB / 0.5732 GB Notification: Performance of collectPreVariables (initialization): time 8.885e-05/0.7153, allocations: 29.69 kB / 0.9099 GB, free: 2.383 MB / 0.5732 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003103/0.7156, allocations: 330 kB / 0.9102 GB, free: 2.055 MB / 0.5732 GB Notification: Performance of collectInitialBindings (initialization): time 4.114e-05/0.7157, allocations: 19.8 kB / 0.9102 GB, free: 2.035 MB / 0.5732 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.226e-05/0.7158, allocations: 1.688 kB / 0.9102 GB, free: 2.035 MB / 0.5732 GB Notification: Performance of setup shared object (initialization): time 0.0001931/0.7159, allocations: 410.9 kB / 0.9106 GB, free: 1.629 MB / 0.5732 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001532/0.7175, allocations: 1.475 MB / 0.9121 GB, free: 156 kB / 0.5732 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.265/0.9825, allocations: 1.609 MB / 0.9137 GB, free: 182.3 MB / 0.5732 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001795/0.9843, allocations: 1.864 MB / 0.9155 GB, free: 181.9 MB / 0.5732 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/0.9844, allocations: 0 / 0.9155 GB, free: 181.9 MB / 0.5732 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.005802/0.9902, allocations: 7.714 MB / 0.923 GB, free: 181.2 MB / 0.5732 GB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.9902, allocations: 3.812 kB / 0.923 GB, free: 181.2 MB / 0.5732 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-05/0.9903, allocations: 22.88 kB / 0.923 GB, free: 181.2 MB / 0.5732 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.262e-05/0.9903, allocations: 3.625 kB / 0.923 GB, free: 181.2 MB / 0.5732 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006695/0.991, allocations: 149.7 kB / 0.9232 GB, free: 181.2 MB / 0.5732 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.024e-05/0.991, allocations: 3.906 kB / 0.9232 GB, free: 181.2 MB / 0.5732 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007362/0.9918, allocations: 228.1 kB / 0.9234 GB, free: 181.1 MB / 0.5732 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001274/0.9919, allocations: 97.14 kB / 0.9235 GB, free: 181.1 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.0001304/0.992, allocations: 114.3 kB / 0.9236 GB, free: 181 MB / 0.5732 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001024/0.9921, allocations: 120.4 kB / 0.9237 GB, free: 180.9 MB / 0.5732 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00109/0.9932, allocations: 0.794 MB / 0.9245 GB, free: 180.8 MB / 0.5732 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.9933, allocations: 1.312 kB / 0.9245 GB, free: 180.8 MB / 0.5732 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.9933, allocations: 1.188 kB / 0.9245 GB, free: 180.8 MB / 0.5732 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.9933, allocations: 3.938 kB / 0.9245 GB, free: 180.8 MB / 0.5732 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000766/0.9941, allocations: 0.6527 MB / 0.9251 GB, free: 180.7 MB / 0.5732 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.9941, allocations: 3.969 kB / 0.9251 GB, free: 180.7 MB / 0.5732 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.799e-05/0.9941, allocations: 5.875 kB / 0.9251 GB, free: 180.7 MB / 0.5732 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.9942, allocations: 0 / 0.9251 GB, free: 180.7 MB / 0.5732 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.514e-05/0.9942, allocations: 7.719 kB / 0.9251 GB, free: 180.7 MB / 0.5732 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.9942, allocations: 4.844 kB / 0.9252 GB, free: 180.7 MB / 0.5732 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.9942, allocations: 1.094 kB / 0.9252 GB, free: 180.7 MB / 0.5732 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008303/0.995, allocations: 0.8479 MB / 0.926 GB, free: 180.5 MB / 0.5732 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001573/0.9952, allocations: 191.9 kB / 0.9262 GB, free: 180.3 MB / 0.5732 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001166/0.9953, allocations: 2.875 kB / 0.9262 GB, free: 180.3 MB / 0.5732 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002332/0.9956, allocations: 6.641 kB / 0.9262 GB, free: 180.3 MB / 0.5732 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.593e-05/0.9956, allocations: 4.688 kB / 0.9262 GB, free: 180.3 MB / 0.5732 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.657e-05/0.9957, allocations: 14.97 kB / 0.9262 GB, free: 180.3 MB / 0.5732 GB Notification: Performance of sort global known variables: time 0.001518/0.9972, allocations: 1.015 MB / 0.9272 GB, free: 180.1 MB / 0.5732 GB Notification: Performance of remove unused functions: time 0.002714/0.9999, allocations: 0.5072 MB / 0.9277 GB, free: 180.1 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.002644/1.003, allocations: 0.5957 MB / 0.9283 GB, free: 180 MB / 0.5732 GB Notification: Performance of simCode: created initialization part: time 0.00377/1.006, allocations: 2.499 MB / 0.9307 GB, free: 180 MB / 0.5732 GB Notification: Performance of simCode: created event and clocks part: time 5.62e-06/1.006, allocations: 0 / 0.9307 GB, free: 180 MB / 0.5732 GB Notification: Performance of simCode: created simulation system equations: time 0.0004374/1.007, allocations: 340.3 kB / 0.931 GB, free: 180 MB / 0.5732 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006919/1.008, allocations: 49.11 kB / 0.9311 GB, free: 180 MB / 0.5732 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004037/1.012, allocations: 2.13 MB / 0.9332 GB, free: 179.6 MB / 0.5732 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001017/1.013, allocations: 1.227 MB / 0.9344 GB, free: 178.9 MB / 0.5732 GB Notification: Performance of SimCode: time 2.184e-06/1.013, allocations: 0 / 0.9344 GB, free: 178.9 MB / 0.5732 GB Notification: Performance of Templates: time 0.02087/1.034, allocations: 10.07 MB / 0.9442 GB, free: 178.6 MB / 0.5732 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.sim & ./BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.pipe 2>&1)