Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.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.001357/0.001357, allocations: 92.7 kB / 19.44 MB, free: 324 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.0015/0.0015, allocations: 161.3 kB / 22.75 MB, free: 1.656 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.449/1.449, allocations: 177.1 MB / 203.1 MB, free: 5.586 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.002533/0.002533, allocations: 235.9 kB / 259.8 MB, free: 12.82 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.089/1.089, allocations: 138.4 MB / 454.7 MB, free: 1.469 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_1borehole_5meters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters") translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.353e-06/1.353e-06, allocations: 0 / 0.5544 GB, free: 0.7578 MB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.241e-05/2.377e-05, allocations: 2.312 kB / 0.5544 GB, free: 0.7539 MB / 474.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002749/0.002773, allocations: 1.407 MB / 0.5558 GB, free: 15.33 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.007385/0.01016, allocations: 3.858 MB / 0.5596 GB, free: 11.45 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.357e-05/0.01021, allocations: 3.938 kB / 0.5596 GB, free: 11.45 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001218/0.01033, allocations: 7.922 kB / 0.5596 GB, free: 11.44 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002281/0.01056, allocations: 35.72 kB / 0.5596 GB, free: 11.41 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.004346/0.01491, allocations: 1.593 MB / 0.5612 GB, free: 9.809 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001654/0.01507, allocations: 99.66 kB / 0.5613 GB, free: 9.711 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.275e-05/0.01511, allocations: 0 / 0.5613 GB, free: 9.711 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001217/0.01523, allocations: 59.88 kB / 0.5613 GB, free: 9.652 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002562/0.01548, allocations: 143.7 kB / 0.5615 GB, free: 9.512 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 4.825e-05/0.01553, allocations: 16 kB / 0.5615 GB, free: 9.496 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004298/0.01983, allocations: 2.382 MB / 0.5638 GB, free: 7.109 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002791/0.02011, allocations: 271.9 kB / 0.5641 GB, free: 6.844 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002258/0.02033, allocations: 160 kB / 0.5642 GB, free: 6.688 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003915/0.02425, allocations: 2.454 MB / 0.5666 GB, free: 4.227 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.02425, allocations: 0 / 0.5666 GB, free: 4.227 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.412e-06/0.02425, allocations: 0 / 0.5666 GB, free: 4.227 MB / 490.7 MB Notification: Performance of Transformations before backend: time 1.389e-05/0.02427, allocations: 0 / 0.5666 GB, free: 4.227 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.00946/0.03373, allocations: 1.26 MB / 0.5678 GB, free: 2.93 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.094e-05/0.03377, allocations: 16.69 kB / 0.5679 GB, free: 2.914 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004632/0.03423, allocations: 100.2 kB / 0.5679 GB, free: 2.816 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004775/0.03471, allocations: 306.5 kB / 0.5682 GB, free: 2.48 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.396e-05/0.03472, allocations: 4.375 kB / 0.5682 GB, free: 2.477 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.263e-05/0.03477, allocations: 8.375 kB / 0.5683 GB, free: 2.469 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005567/0.03532, allocations: 395.7 kB / 0.5686 GB, free: 2.07 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.116e-05/0.03533, allocations: 192 / 0.5686 GB, free: 2.07 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.968e-05/0.03535, allocations: 4.359 kB / 0.5686 GB, free: 2.066 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.227e-06/0.03536, allocations: 7.938 kB / 0.5686 GB, free: 2.059 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005739/0.03594, allocations: 431.8 kB / 0.5691 GB, free: 1.637 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008688/0.03681, allocations: 0.577 MB / 0.5696 GB, free: 1.027 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006802/0.03749, allocations: 0.5593 MB / 0.5702 GB, free: 460 kB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004071/0.03789, allocations: 333.7 kB / 0.5705 GB, free: 120 kB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007641/0.03866, allocations: 139.7 kB / 0.5706 GB, free: 15.98 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000528/0.03918, allocations: 404.8 kB / 0.571 GB, free: 15.57 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=8): time 1.252e-06/0.03919, allocations: 0 / 0.571 GB, free: 15.57 MB / 0.4948 GB Notification: Performance of matching and sorting (n=8): time 0.001725/0.04091, allocations: 1.297 MB / 0.5723 GB, free: 14.26 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.385e-05/0.04099, allocations: 93.17 kB / 0.5724 GB, free: 14.15 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001498/0.04249, allocations: 1.215 MB / 0.5735 GB, free: 12.92 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 5.165e-05/0.04254, allocations: 29.7 kB / 0.5736 GB, free: 12.89 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002585/0.0428, allocations: 265.9 kB / 0.5738 GB, free: 12.62 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 4.449e-05/0.04285, allocations: 27.73 kB / 0.5739 GB, free: 12.59 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004223/0.04327, allocations: 343.6 kB / 0.5742 GB, free: 12.25 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001757/0.04345, allocations: 318 kB / 0.5745 GB, free: 11.94 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001628/0.04507, allocations: 1.369 MB / 0.5758 GB, free: 10.57 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001867/0.04694, allocations: 1.505 MB / 0.5773 GB, free: 9.051 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008467/0.05541, allocations: 3.56 MB / 0.5808 GB, free: 5.402 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/0.05541, allocations: 0 / 0.5808 GB, free: 5.402 MB / 0.4948 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.006082/0.06149, allocations: 4.011 MB / 0.5847 GB, free: 1.355 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 3.08e-05/0.06153, allocations: 4 kB / 0.5847 GB, free: 1.352 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.499e-05/0.06155, allocations: 4 kB / 0.5847 GB, free: 1.348 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.533e-05/0.06158, allocations: 4.031 kB / 0.5847 GB, free: 1.344 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001758/0.06175, allocations: 19.92 kB / 0.5847 GB, free: 1.324 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.192e-05/0.06176, allocations: 4 kB / 0.5847 GB, free: 1.32 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000611/0.06237, allocations: 237.4 kB / 0.5849 GB, free: 1.086 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.837e-05/0.06244, allocations: 23.98 kB / 0.585 GB, free: 1.062 MB / 0.4948 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.0004317/0.06287, allocations: 241.6 kB / 0.5852 GB, free: 0.8164 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001236/0.063, allocations: 79.28 kB / 0.5853 GB, free: 0.7383 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001382/0.06438, allocations: 0.94 MB / 0.5862 GB, free: 15.79 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.959e-06/0.06439, allocations: 4 kB / 0.5862 GB, free: 15.78 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.275e-06/0.0644, allocations: 7.875 kB / 0.5862 GB, free: 15.77 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.0644, allocations: 0 / 0.5862 GB, free: 15.77 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005926/0.065, allocations: 443.4 kB / 0.5866 GB, free: 15.31 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.065, allocations: 0 / 0.5866 GB, free: 15.31 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.672e-05/0.06509, allocations: 8 kB / 0.5866 GB, free: 15.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.06509, allocations: 0 / 0.5866 GB, free: 15.3 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.621e-05/0.06511, allocations: 3.984 kB / 0.5866 GB, free: 15.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.69e-06/0.06511, allocations: 8.031 kB / 0.5866 GB, free: 15.29 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.06511, allocations: 0 / 0.5866 GB, free: 15.29 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00127/0.06638, allocations: 0.998 MB / 0.5876 GB, free: 14.27 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00018/0.06656, allocations: 91.28 kB / 0.5877 GB, free: 14.18 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.758e-05/0.06665, allocations: 4 kB / 0.5877 GB, free: 14.18 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001722/0.06682, allocations: 11.94 kB / 0.5877 GB, free: 14.17 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.337e-05/0.06689, allocations: 15.86 kB / 0.5877 GB, free: 14.15 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.678e-05/0.06693, allocations: 7.984 kB / 0.5877 GB, free: 14.14 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001041/0.06797, allocations: 0.6767 MB / 0.5884 GB, free: 13.46 MB / 0.5105 GB Notification: Performance of sort global known variables: time 9.1e-08/0.06797, allocations: 4 kB / 0.5884 GB, free: 13.46 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.002271/0.07024, allocations: 0.5884 MB / 0.589 GB, free: 12.87 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.002644/0.07289, allocations: 0.7947 MB / 0.5898 GB, free: 12.09 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.002639/0.07553, allocations: 1.993 MB / 0.5917 GB, free: 10.09 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.07553, allocations: 4.062 kB / 0.5917 GB, free: 10.08 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0004153/0.07594, allocations: 335.7 kB / 0.592 GB, free: 9.754 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003405/0.07629, allocations: 40.59 kB / 0.5921 GB, free: 9.711 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002438/0.07872, allocations: 1.792 MB / 0.5938 GB, free: 7.883 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000418/0.07914, allocations: 372.1 kB / 0.5942 GB, free: 7.492 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0001418/0.07928, allocations: 32.47 kB / 0.5942 GB, free: 7.461 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001165/0.0794, allocations: 36.47 kB / 0.5942 GB, free: 7.422 MB / 0.5105 GB Notification: Performance of SimCode: time 8.41e-07/0.0794, allocations: 0 / 0.5942 GB, free: 7.422 MB / 0.5105 GB Notification: Performance of Templates: time 0.1935/0.2729, allocations: 13.99 MB / 0.6079 GB, free: 100.9 MB / 0.5105 GB " [Timeout remaining time 660] make -j1 -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.makefile [Timeout 660] (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & ./BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.647583590936847]