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/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001843/0.001843, allocations: 88.72 kB / 19.44 MB, free: 356 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002269/0.002269, allocations: 157.7 kB / 22.75 MB, free: 1.684 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.466/1.466, allocations: 177.1 MB / 203.1 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.002573/0.002573, allocations: 237.9 kB / 259.8 MB, free: 12.84 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 1.087/1.087, allocations: 138.4 MB / 454.7 MB, free: 1.484 MB / 362.7 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,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=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.843e-06/1.843e-06, allocations: 0 / 0.5544 GB, free: 0.793 MB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.345e-05/3.53e-05, allocations: 6.25 kB / 0.5544 GB, free: 0.7852 MB / 474.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.004719/0.004755, allocations: 1.723 MB / 0.5561 GB, free: 15.05 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.01314/0.0179, allocations: 4.885 MB / 0.5609 GB, free: 10.14 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001476/0.01805, allocations: 8 kB / 0.5609 GB, free: 10.13 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001912/0.01996, allocations: 338.3 kB / 0.5612 GB, free: 9.797 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002589/0.02022, allocations: 59.67 kB / 0.5613 GB, free: 9.738 MB / 490.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function 'Modelica.Math.Random.Utilities.initializeImpureRandom' contains a call to impure function 'Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 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 NFTyping.typeClassSections: time 0.00647/0.02669, allocations: 1.589 MB / 0.5628 GB, free: 8.145 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004184/0.0271, allocations: 163.3 kB / 0.563 GB, free: 7.984 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.714e-05/0.02716, allocations: 17.72 kB / 0.563 GB, free: 7.969 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002136/0.02738, allocations: 83.73 kB / 0.5631 GB, free: 7.887 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003665/0.02774, allocations: 155.7 kB / 0.5632 GB, free: 7.734 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 7.224e-05/0.02781, allocations: 16 kB / 0.5632 GB, free: 7.719 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006504/0.03432, allocations: 2.374 MB / 0.5655 GB, free: 5.34 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004491/0.03477, allocations: 287.8 kB / 0.5658 GB, free: 5.055 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003611/0.03513, allocations: 167.9 kB / 0.566 GB, free: 4.891 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006158/0.04129, allocations: 2.509 MB / 0.5684 GB, free: 2.375 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.04129, allocations: 8 kB / 0.5684 GB, free: 2.367 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.04129, allocations: 0 / 0.5684 GB, free: 2.367 MB / 490.7 MB Notification: Performance of Transformations before backend: time 1.639e-05/0.04131, allocations: 0 / 0.5684 GB, free: 2.367 MB / 490.7 MB 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.01557/0.05688, allocations: 1.346 MB / 0.5697 GB, free: 0.9844 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.87e-05/0.05693, allocations: 8.75 kB / 0.5698 GB, free: 0.9766 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006803/0.05761, allocations: 104.2 kB / 0.5699 GB, free: 0.875 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009877/0.0586, allocations: 359.7 kB / 0.5702 GB, free: 500 kB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.499e-05/0.05862, allocations: 8.375 kB / 0.5702 GB, free: 492 kB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.341e-05/0.05868, allocations: 4.375 kB / 0.5702 GB, free: 488 kB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007817/0.05947, allocations: 391.7 kB / 0.5706 GB, free: 84 kB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.05948, allocations: 192 / 0.5706 GB, free: 84 kB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.752e-05/0.05949, allocations: 384 / 0.5706 GB, free: 84 kB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.462e-05/0.05951, allocations: 7.938 kB / 0.5706 GB, free: 76 kB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000863/0.06037, allocations: 435.7 kB / 0.571 GB, free: 15.65 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001139/0.06151, allocations: 0.5938 MB / 0.5716 GB, free: 15.02 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001221/0.06273, allocations: 0.5555 MB / 0.5721 GB, free: 14.45 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006244/0.06336, allocations: 337.7 kB / 0.5725 GB, free: 14.11 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009741/0.06433, allocations: 139.7 kB / 0.5726 GB, free: 13.98 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007655/0.0651, allocations: 400.9 kB / 0.573 GB, free: 13.57 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=8): time 1.563e-06/0.0651, allocations: 0 / 0.573 GB, free: 13.57 MB / 0.4948 GB Notification: Performance of matching and sorting (n=8): time 0.002636/0.06773, allocations: 1.309 MB / 0.5742 GB, free: 12.25 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001013/0.06783, allocations: 89.05 kB / 0.5743 GB, free: 12.14 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002564/0.0704, allocations: 1.298 MB / 0.5756 GB, free: 10.84 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 7.206e-05/0.07047, allocations: 29.64 kB / 0.5756 GB, free: 10.8 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004358/0.07091, allocations: 293.9 kB / 0.5759 GB, free: 10.51 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 6.365e-05/0.07097, allocations: 24.02 kB / 0.5759 GB, free: 10.48 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005615/0.07153, allocations: 343.6 kB / 0.5763 GB, free: 10.14 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002277/0.07176, allocations: 318 kB / 0.5766 GB, free: 9.828 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002043/0.0738, allocations: 1.373 MB / 0.5779 GB, free: 8.449 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001749/0.07555, allocations: 1.505 MB / 0.5794 GB, free: 6.934 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008461/0.08401, allocations: 3.557 MB / 0.5828 GB, free: 3.289 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.08401, allocations: 4 kB / 0.5828 GB, free: 3.285 MB / 0.4948 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.00551/0.08952, allocations: 4.026 MB / 0.5868 GB, free: 15.22 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.08954, allocations: 4 kB / 0.5868 GB, free: 15.22 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.563e-05/0.08956, allocations: 0 / 0.5868 GB, free: 15.22 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.961e-05/0.08958, allocations: 4 kB / 0.5868 GB, free: 15.21 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001395/0.08972, allocations: 23.86 kB / 0.5868 GB, free: 15.19 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.08972, allocations: 0 / 0.5868 GB, free: 15.19 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000569/0.09029, allocations: 245.4 kB / 0.587 GB, free: 14.95 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.99e-05/0.09035, allocations: 23.97 kB / 0.5871 GB, free: 14.93 MB / 0.5105 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 (cluSiz[1],labels[1],gFun2,$PRE.gFun2,gFun1,$PRE.gFun1,t2,$PRE.t2,t1,$PRE.t1,k,$PRE.k,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 13 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003755/0.09073, allocations: 245.7 kB / 0.5873 GB, free: 14.68 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001146/0.09084, allocations: 79.3 kB / 0.5874 GB, free: 14.6 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001293/0.09214, allocations: 0.9485 MB / 0.5883 GB, free: 13.64 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.09214, allocations: 0 / 0.5883 GB, free: 13.64 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.478e-06/0.09215, allocations: 7.938 kB / 0.5883 GB, free: 13.63 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.09216, allocations: 8.016 kB / 0.5883 GB, free: 13.62 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005617/0.09272, allocations: 460.4 kB / 0.5888 GB, free: 13.14 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.09272, allocations: 0 / 0.5888 GB, free: 13.14 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.678e-05/0.09281, allocations: 8 kB / 0.5888 GB, free: 13.14 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.742e-06/0.09281, allocations: 3.984 kB / 0.5888 GB, free: 13.13 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.409e-05/0.09283, allocations: 4 kB / 0.5888 GB, free: 13.13 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.09283, allocations: 3.938 kB / 0.5888 GB, free: 13.12 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.09283, allocations: 0 / 0.5888 GB, free: 13.12 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001198/0.09403, allocations: 1.022 MB / 0.5898 GB, free: 12.08 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001341/0.09416, allocations: 91.25 kB / 0.5899 GB, free: 11.99 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.803e-05/0.09423, allocations: 4 kB / 0.5899 GB, free: 11.99 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001644/0.09439, allocations: 7.984 kB / 0.5899 GB, free: 11.98 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.366e-05/0.09444, allocations: 7.938 kB / 0.5899 GB, free: 11.97 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.1e-05/0.09448, allocations: 15.97 kB / 0.5899 GB, free: 11.96 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001096/0.09558, allocations: 0.7222 MB / 0.5906 GB, free: 11.23 MB / 0.5105 GB Notification: Performance of sort global known variables: time 9.1e-08/0.09558, allocations: 0 / 0.5906 GB, free: 11.23 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00161/0.09719, allocations: 0.5923 MB / 0.5912 GB, free: 10.64 MB / 0.5105 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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002407/0.09959, allocations: 0.8042 MB / 0.592 GB, free: 9.848 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.002466/0.1021, allocations: 1.996 MB / 0.5939 GB, free: 7.84 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1021, allocations: 4 kB / 0.5939 GB, free: 7.836 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0004176/0.1025, allocations: 327.8 kB / 0.5942 GB, free: 7.516 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004214/0.1029, allocations: 63.23 kB / 0.5943 GB, free: 7.453 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002639/0.1055, allocations: 1.909 MB / 0.5962 GB, free: 5.508 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004628/0.106, allocations: 393.8 kB / 0.5965 GB, free: 5.098 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0001559/0.1062, allocations: 37.47 kB / 0.5966 GB, free: 5.059 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001185/0.1063, allocations: 32.47 kB / 0.5966 GB, free: 5.027 MB / 0.5105 GB Notification: Performance of SimCode: time 7.42e-07/0.1063, allocations: 0 / 0.5966 GB, free: 5.027 MB / 0.5105 GB Notification: Performance of Templates: time 0.1909/0.2971, allocations: 14.69 MB / 0.6109 GB, free: 100.3 MB / 0.5105 GB " [Timeout remaining time 660] make -j1 -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.makefile [Timeout 660] (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) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.536906315013766]