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: translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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/BuildingSystems 2.0.0-master/package.mo): time 0.7703/0.7703, allocations: 141.8 MB / 149.1 MB, free: 11.85 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001037/0.001037, allocations: 181.8 kB / 182 MB, free: 8.656 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.442/1.442, allocations: 221.3 MB / 436 MB, free: 1.031 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.001007/0.001007, allocations: 90.72 kB / 0.507 GB, free: 9.941 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001856/0.001857, allocations: 275.9 kB / 0.5884 GB, free: 6.773 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 8.456e-06/8.496e-06, allocations: 4 kB / 0.6759 GB, free: 13.09 MB / 0.5575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4804/0.4804, allocations: 82.78 MB / 0.7568 GB, free: 137.9 MB / 0.5575 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1407/0.6212, allocations: 127.3 MB / 0.8811 GB, free: 10.41 MB / 0.5575 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002613/0.6215, allocations: 128.1 kB / 0.8812 GB, free: 10.29 MB / 0.5575 GB Notification: Performance of FrontEnd: time 0.4283/1.05, allocations: 29.75 MB / 0.9103 GB, free: 133.2 MB / 0.5732 GB Notification: Performance of Transformations before backend: time 6.005e-05/1.05, allocations: 17.16 kB / 0.9103 GB, free: 133.2 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.002389/1.052, allocations: 1.036 MB / 0.9113 GB, free: 132.6 MB / 0.5732 GB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/1.052, allocations: 10.59 kB / 0.9113 GB, free: 132.6 MB / 0.5732 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000522/1.053, allocations: 105.9 kB / 0.9114 GB, free: 132.5 MB / 0.5732 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008543/1.054, allocations: 462.9 kB / 0.9119 GB, free: 132.2 MB / 0.5732 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.785e-05/1.054, allocations: 7.281 kB / 0.9119 GB, free: 132.2 MB / 0.5732 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.962e-05/1.054, allocations: 26.81 kB / 0.9119 GB, free: 132.2 MB / 0.5732 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003355/1.054, allocations: 422.4 kB / 0.9123 GB, free: 132.2 MB / 0.5732 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003241/1.055, allocations: 389.5 kB / 0.9127 GB, free: 132.2 MB / 0.5732 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/1.055, allocations: 1.781 kB / 0.9127 GB, free: 132.2 MB / 0.5732 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.695e-05/1.055, allocations: 3.75 kB / 0.9127 GB, free: 132.2 MB / 0.5732 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.171e-06/1.055, allocations: 0 / 0.9127 GB, free: 132.2 MB / 0.5732 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008129/1.055, allocations: 0.7268 MB / 0.9134 GB, free: 131.9 MB / 0.5732 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000399/1.056, allocations: 0.5534 MB / 0.9139 GB, free: 131.9 MB / 0.5732 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002414/1.056, allocations: 331 kB / 0.9143 GB, free: 131.9 MB / 0.5732 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000835/1.057, allocations: 1.042 MB / 0.9153 GB, free: 130.7 MB / 0.5732 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004866/1.058, allocations: 391.5 kB / 0.9156 GB, free: 130.7 MB / 0.5732 GB Notification: Performance of pre-optimization done (n=8): time 1.693e-06/1.058, allocations: 1.125 kB / 0.9156 GB, free: 130.7 MB / 0.5732 GB Notification: Performance of matching and sorting (n=8): time 0.001406/1.059, allocations: 0.7502 MB / 0.9164 GB, free: 130.6 MB / 0.5732 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.538e-05/1.059, allocations: 88.56 kB / 0.9165 GB, free: 130.5 MB / 0.5732 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001615/1.061, allocations: 1.083 MB / 0.9175 GB, free: 130.3 MB / 0.5732 GB Notification: Performance of collectPreVariables (initialization): time 6.7e-05/1.061, allocations: 27.14 kB / 0.9175 GB, free: 130.2 MB / 0.5732 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002554/1.061, allocations: 262.5 kB / 0.9178 GB, free: 130.1 MB / 0.5732 GB Notification: Performance of collectInitialBindings (initialization): time 5.019e-05/1.061, allocations: 21.73 kB / 0.9178 GB, free: 130.1 MB / 0.5732 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.728e-05/1.061, allocations: 0 / 0.9178 GB, free: 130.1 MB / 0.5732 GB Notification: Performance of setup shared object (initialization): time 0.0001354/1.061, allocations: 427.8 kB / 0.9182 GB, free: 129.8 MB / 0.5732 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00114/1.062, allocations: 1.21 MB / 0.9194 GB, free: 129.8 MB / 0.5732 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00133/1.064, allocations: 1.352 MB / 0.9207 GB, free: 129.8 MB / 0.5732 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001761/1.065, allocations: 1.616 MB / 0.9223 GB, free: 129.2 MB / 0.5732 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/1.065, allocations: 0 / 0.9223 GB, free: 129.2 MB / 0.5732 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.009999/1.075, allocations: 7.137 MB / 0.9293 GB, free: 127.4 MB / 0.5732 GB Notification: Performance of prepare postOptimizeDAE: time 2.42e-05/1.076, allocations: 5.938 kB / 0.9293 GB, free: 127.4 MB / 0.5732 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.566e-05/1.076, allocations: 4 kB / 0.9293 GB, free: 127.4 MB / 0.5732 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.888e-05/1.076, allocations: 4 kB / 0.9293 GB, free: 127.4 MB / 0.5732 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006723/1.076, allocations: 146.3 kB / 0.9294 GB, free: 127.3 MB / 0.5732 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.094e-05/1.076, allocations: 6.656 kB / 0.9294 GB, free: 127.3 MB / 0.5732 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007723/1.077, allocations: 227.3 kB / 0.9296 GB, free: 127.1 MB / 0.5732 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.518e-05/1.077, allocations: 58.42 kB / 0.9297 GB, free: 127 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.0001336/1.077, allocations: 116.2 kB / 0.9298 GB, free: 126.9 MB / 0.5732 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.931e-05/1.077, allocations: 78.53 kB / 0.9299 GB, free: 126.8 MB / 0.5732 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007966/1.078, allocations: 0.72 MB / 0.9306 GB, free: 126.2 MB / 0.5732 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/1.078, allocations: 4 kB / 0.9306 GB, free: 126.2 MB / 0.5732 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/1.078, allocations: 0 / 0.9306 GB, free: 126.2 MB / 0.5732 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/1.078, allocations: 0.5156 kB / 0.9306 GB, free: 126.2 MB / 0.5732 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004637/1.079, allocations: 0.4917 MB / 0.9311 GB, free: 125.8 MB / 0.5732 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/1.079, allocations: 0 / 0.9311 GB, free: 125.8 MB / 0.5732 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.793e-05/1.079, allocations: 16.53 kB / 0.9311 GB, free: 125.8 MB / 0.5732 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/1.079, allocations: 4.5 kB / 0.9311 GB, free: 125.8 MB / 0.5732 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.881e-05/1.079, allocations: 9.312 kB / 0.9311 GB, free: 125.8 MB / 0.5732 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/1.079, allocations: 0 / 0.9311 GB, free: 125.8 MB / 0.5732 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/1.079, allocations: 0.75 kB / 0.9311 GB, free: 125.8 MB / 0.5732 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005243/1.079, allocations: 0.7929 MB / 0.9319 GB, free: 125 MB / 0.5732 GB Notification: Performance of postOpt removeConstants (simulation): time 9.45e-05/1.08, allocations: 167.3 kB / 0.932 GB, free: 124.9 MB / 0.5732 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.141e-05/1.08, allocations: 0 / 0.932 GB, free: 124.9 MB / 0.5732 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000161/1.08, allocations: 4 kB / 0.932 GB, free: 124.9 MB / 0.5732 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.547e-05/1.08, allocations: 7.797 kB / 0.9321 GB, free: 124.8 MB / 0.5732 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.547e-05/1.08, allocations: 10.56 kB / 0.9321 GB, free: 124.8 MB / 0.5732 GB Notification: Performance of sort global known variables: time 0.0005785/1.08, allocations: 0.6622 MB / 0.9327 GB, free: 124.3 MB / 0.5732 GB Notification: Performance of remove unused functions: time 0.001639/1.082, allocations: 492.4 kB / 0.9332 GB, free: 123.8 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.001635/1.084, allocations: 0.6945 MB / 0.9339 GB, free: 123.2 MB / 0.5732 GB Notification: Performance of simCode: created initialization part: time 0.001581/1.085, allocations: 2.349 MB / 0.9362 GB, free: 121.1 MB / 0.5732 GB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/1.085, allocations: 0 / 0.9362 GB, free: 121.1 MB / 0.5732 GB Notification: Performance of simCode: created simulation system equations: time 0.0002057/1.086, allocations: 333.4 kB / 0.9365 GB, free: 120.8 MB / 0.5732 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000342/1.086, allocations: 51.8 kB / 0.9365 GB, free: 120.8 MB / 0.5732 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001637/1.088, allocations: 1.531 MB / 0.938 GB, free: 119.4 MB / 0.5732 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004765/1.088, allocations: 1.059 MB / 0.939 GB, free: 118.5 MB / 0.5732 GB Notification: Performance of SimCode: time 4.21e-07/1.088, allocations: 0 / 0.939 GB, free: 118.5 MB / 0.5732 GB Notification: Performance of Templates: time 0.01841/1.106, allocations: 10.54 MB / 0.9493 GB, free: 112.3 MB / 0.5732 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.makefile (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 & ./BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)