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.0009167/0.0009167, allocations: 77.09 kB / 20.66 MB, free: 3.844 MB / 18.57 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.0009653/0.0009653, allocations: 169 kB / 24.06 MB, free: 456 kB / 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 0.9109/0.9109, allocations: 177.1 MB / 204.5 MB, free: 5.504 MB / 186.7 MB " [Timeout remaining time 179] 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.00178/0.00178, allocations: 255.3 kB / 261.3 MB, free: 12.65 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 0.7429/0.7429, allocations: 138.4 MB / 456.3 MB, free: 29.97 MB / 410.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.633e-06/1.633e-06, allocations: 0 / 0.5564 GB, free: 15.75 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.103e-05/2.266e-05, allocations: 6.312 kB / 0.5564 GB, free: 15.75 MB / 490.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002418/0.002441, allocations: 1.782 MB / 0.5582 GB, free: 13.95 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.005295/0.007735, allocations: 5.122 MB / 0.5632 GB, free: 8.797 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001061/0.007842, allocations: 3.938 kB / 0.5632 GB, free: 8.793 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000992/0.008834, allocations: 334.4 kB / 0.5635 GB, free: 8.465 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 8.852e-05/0.008922, allocations: 63.59 kB / 0.5636 GB, free: 8.402 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.003001/0.01192, allocations: 1.601 MB / 0.5651 GB, free: 6.797 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001971/0.01212, allocations: 167.3 kB / 0.5653 GB, free: 6.633 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.497e-05/0.01216, allocations: 5.812 kB / 0.5653 GB, free: 6.629 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.639e-05/0.01224, allocations: 79.8 kB / 0.5654 GB, free: 6.551 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.431e-05/0.01234, allocations: 65.09 kB / 0.5654 GB, free: 6.488 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 1.486e-05/0.01235, allocations: 4 kB / 0.5654 GB, free: 6.484 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00273/0.01508, allocations: 2.399 MB / 0.5678 GB, free: 4.098 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001661/0.01525, allocations: 259.3 kB / 0.568 GB, free: 3.844 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001173/0.01536, allocations: 143.3 kB / 0.5682 GB, free: 3.703 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002544/0.01791, allocations: 2.368 MB / 0.5705 GB, free: 1.328 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.237e-06/0.01791, allocations: 0 / 0.5705 GB, free: 1.328 MB / 490.7 MB Notification: Performance of FrontEnd: time 7.42e-07/0.01791, allocations: 8 kB / 0.5705 GB, free: 1.32 MB / 490.7 MB Notification: Performance of Transformations before backend: time 5.971e-06/0.01792, allocations: 0 / 0.5705 GB, free: 1.32 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.001616/0.01953, allocations: 1.447 MB / 0.5719 GB, free: 15.83 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.221e-05/0.01957, allocations: 9.938 kB / 0.5719 GB, free: 15.82 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002484/0.01981, allocations: 104.2 kB / 0.572 GB, free: 15.72 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000288/0.0201, allocations: 338.6 kB / 0.5723 GB, free: 15.36 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.313e-05/0.02012, allocations: 8.375 kB / 0.5723 GB, free: 15.35 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.658e-05/0.02014, allocations: 8.375 kB / 0.5723 GB, free: 15.34 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000205/0.02035, allocations: 238.1 kB / 0.5726 GB, free: 15.09 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.02036, allocations: 192 / 0.5726 GB, free: 15.09 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.886e-06/0.02036, allocations: 4.375 kB / 0.5726 GB, free: 15.09 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.02037, allocations: 7.875 kB / 0.5726 GB, free: 15.08 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001311/0.0205, allocations: 191.9 kB / 0.5728 GB, free: 14.89 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003455/0.02085, allocations: 0.5058 MB / 0.5733 GB, free: 14.36 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001985/0.02104, allocations: 301.9 kB / 0.5735 GB, free: 14.04 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.791e-05/0.02114, allocations: 167.5 kB / 0.5737 GB, free: 13.86 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003014/0.02144, allocations: 127.9 kB / 0.5738 GB, free: 13.74 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001891/0.02163, allocations: 240.2 kB / 0.5741 GB, free: 13.48 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=8): time 1.022e-06/0.02163, allocations: 0 / 0.5741 GB, free: 13.48 MB / 0.4948 GB Notification: Performance of matching and sorting (n=8): time 0.0005776/0.02221, allocations: 0.7583 MB / 0.5748 GB, free: 12.71 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.813e-05/0.02225, allocations: 85.23 kB / 0.5749 GB, free: 12.61 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007236/0.02297, allocations: 1.29 MB / 0.5761 GB, free: 11.31 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 2.85e-05/0.023, allocations: 25.7 kB / 0.5762 GB, free: 11.28 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001766/0.02318, allocations: 384.4 kB / 0.5765 GB, free: 10.9 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 2.941e-05/0.02321, allocations: 19.84 kB / 0.5765 GB, free: 10.88 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002655/0.02347, allocations: 426.2 kB / 0.577 GB, free: 10.46 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001143/0.02359, allocations: 0.4965 MB / 0.5774 GB, free: 9.953 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003147/0.0239, allocations: 490.4 kB / 0.5779 GB, free: 9.473 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006565/0.02456, allocations: 0.6562 MB / 0.5785 GB, free: 8.805 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001511/0.02607, allocations: 2.27 MB / 0.5808 GB, free: 6.445 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.02607, allocations: 0 / 0.5808 GB, free: 6.445 MB / 0.4948 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.002563/0.02864, allocations: 3.848 MB / 0.5845 GB, free: 2.562 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.874e-05/0.02865, allocations: 4 kB / 0.5845 GB, free: 2.559 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.612e-05/0.02867, allocations: 4 kB / 0.5845 GB, free: 2.555 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.182e-05/0.02868, allocations: 0 / 0.5845 GB, free: 2.555 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001101/0.02879, allocations: 27.98 kB / 0.5846 GB, free: 2.527 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.226e-06/0.0288, allocations: 3.938 kB / 0.5846 GB, free: 2.523 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002868/0.02908, allocations: 249.2 kB / 0.5848 GB, free: 2.277 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.102e-05/0.02911, allocations: 24.02 kB / 0.5848 GB, free: 2.254 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 (labels[1],cluSiz[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.0001448/0.02926, allocations: 172.5 kB / 0.585 GB, free: 2.074 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002964/0.02955, allocations: 79.3 kB / 0.5851 GB, free: 1.996 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000445/0.03, allocations: 0.5738 MB / 0.5856 GB, free: 1.402 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.03, allocations: 0 / 0.5856 GB, free: 1.402 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.763e-06/0.03, allocations: 0 / 0.5856 GB, free: 1.402 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.03001, allocations: 7.938 kB / 0.5856 GB, free: 1.395 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002745/0.03028, allocations: 391.5 kB / 0.586 GB, free: 0.9883 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.03029, allocations: 4.031 kB / 0.586 GB, free: 0.9844 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.819e-05/0.03033, allocations: 4 kB / 0.586 GB, free: 0.9805 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.03034, allocations: 0 / 0.586 GB, free: 0.9805 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.015e-06/0.03034, allocations: 4 kB / 0.586 GB, free: 0.9766 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.03035, allocations: 3.984 kB / 0.586 GB, free: 0.9727 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.03035, allocations: 0 / 0.586 GB, free: 0.9727 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003972/0.03074, allocations: 0.6657 MB / 0.5867 GB, free: 288 kB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 5.968e-05/0.0308, allocations: 83.3 kB / 0.5867 GB, free: 204 kB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.802e-05/0.03084, allocations: 7.984 kB / 0.5868 GB, free: 196 kB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.139e-05/0.03092, allocations: 4 kB / 0.5868 GB, free: 192 kB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.693e-05/0.03095, allocations: 15.92 kB / 0.5868 GB, free: 176 kB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.629e-05/0.03098, allocations: 11.98 kB / 0.5868 GB, free: 164 kB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0003381/0.03132, allocations: 0.5697 MB / 0.5873 GB, free: 15.59 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7e-08/0.03132, allocations: 0 / 0.5873 GB, free: 15.59 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.001107/0.03242, allocations: 0.5923 MB / 0.5879 GB, free: 14.99 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.001332/0.03375, allocations: 0.7956 MB / 0.5887 GB, free: 14.22 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0007816/0.03454, allocations: 1.094 MB / 0.5898 GB, free: 13.11 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.03454, allocations: 0 / 0.5898 GB, free: 13.11 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0001108/0.03465, allocations: 171.5 kB / 0.5899 GB, free: 12.94 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002725/0.03492, allocations: 63.61 kB / 0.59 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001196/0.03612, allocations: 1.548 MB / 0.5915 GB, free: 11.29 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001105/0.03623, allocations: 191.6 kB / 0.5917 GB, free: 11.08 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 8.791e-05/0.03632, allocations: 37.45 kB / 0.5917 GB, free: 11.04 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001423/0.03646, allocations: 110.2 kB / 0.5918 GB, free: 10.93 MB / 0.5105 GB Notification: Performance of SimCode: time 9.52e-07/0.03646, allocations: 4 kB / 0.5918 GB, free: 10.93 MB / 0.5105 GB Notification: Performance of Templates: time 0.0194/0.05586, allocations: 16.49 MB / 0.6079 GB, free: 10.6 MB / 0.5261 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=240 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.182946499902755]