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.0.0+maint.om/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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=5000,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=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001312/0.001312, allocations: 115.3 kB / 15.34 MB, free: 0.5156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001301/0.001301, allocations: 192.5 kB / 16.25 MB, free: 6.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.394/1.394, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002514/0.002514, allocations: 290.8 kB / 290.4 MB, free: 2.137 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.074/1.074, allocations: 178.6 MB / 0.507 GB, free: 4.766 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002705/0.002705, allocations: 100.9 kB / 0.606 GB, free: 25.07 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1529/0.1556, allocations: 89.16 MB / 0.693 GB, free: 4.656 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002573/0.1582, allocations: 1.478 MB / 0.6945 GB, free: 3.172 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.006543/0.1648, allocations: 4.227 MB / 0.6986 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.442e-05/0.1649, allocations: 0 / 0.6986 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001204/0.165, allocations: 15.86 kB / 0.6986 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002084/0.1652, allocations: 19.84 kB / 0.6986 GB, free: 14.9 MB / 0.4981 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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 2.0.0-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.003625/0.1689, allocations: 1.356 MB / 0.7 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001456/0.169, allocations: 99.66 kB / 0.7001 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.072e-05/0.1691, allocations: 4 kB / 0.7001 GB, free: 13.44 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.107e-05/0.1692, allocations: 39.89 kB / 0.7001 GB, free: 13.4 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002518/0.1694, allocations: 164.9 kB / 0.7003 GB, free: 13.24 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.527e-05/0.1695, allocations: 12 kB / 0.7003 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003147/0.1726, allocations: 2.203 MB / 0.7024 GB, free: 11.02 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002316/0.1729, allocations: 267.8 kB / 0.7027 GB, free: 10.76 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.000254/0.1731, allocations: 278.3 kB / 0.7029 GB, free: 10.49 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002694/0.1759, allocations: 2.116 MB / 0.705 GB, free: 8.363 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.1759, allocations: 0 / 0.705 GB, free: 8.363 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.453e-06/0.1759, allocations: 0 / 0.705 GB, free: 8.363 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.07e-05/0.1759, allocations: 4 kB / 0.705 GB, free: 8.359 MB / 0.4981 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.009505/0.1854, allocations: 1.3 MB / 0.7063 GB, free: 7.008 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.583e-05/0.1854, allocations: 8.031 kB / 0.7063 GB, free: 7 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003938/0.1858, allocations: 87.69 kB / 0.7064 GB, free: 6.914 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004199/0.1863, allocations: 364.9 kB / 0.7067 GB, free: 6.508 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.226e-05/0.1863, allocations: 4.375 kB / 0.7067 GB, free: 6.504 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.487e-05/0.1864, allocations: 16.36 kB / 0.7067 GB, free: 6.488 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000482/0.1868, allocations: 391.5 kB / 0.7071 GB, free: 6.094 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.765e-06/0.1869, allocations: 0 / 0.7071 GB, free: 6.094 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.296e-05/0.1869, allocations: 0 / 0.7071 GB, free: 6.094 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.908e-06/0.1869, allocations: 0 / 0.7071 GB, free: 6.094 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004814/0.1874, allocations: 439.7 kB / 0.7075 GB, free: 5.664 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006421/0.188, allocations: 0.6366 MB / 0.7081 GB, free: 4.977 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005931/0.1886, allocations: 0.5594 MB / 0.7087 GB, free: 4.398 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003749/0.189, allocations: 337.7 kB / 0.709 GB, free: 4.062 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001191/0.1902, allocations: 1.032 MB / 0.71 GB, free: 2.809 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004563/0.1907, allocations: 404.8 kB / 0.7104 GB, free: 2.395 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.422e-06/0.1907, allocations: 0 / 0.7104 GB, free: 2.395 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.00147/0.1922, allocations: 1.293 MB / 0.7117 GB, free: 1.094 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.531e-05/0.1923, allocations: 85.11 kB / 0.7118 GB, free: 0.9922 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001288/0.1935, allocations: 1.21 MB / 0.7129 GB, free: 15.76 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 4.689e-05/0.1936, allocations: 37.64 kB / 0.713 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.000212/0.1938, allocations: 257.4 kB / 0.7132 GB, free: 15.46 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 3.687e-05/0.1939, allocations: 19.8 kB / 0.7132 GB, free: 15.44 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000366/0.1942, allocations: 363.7 kB / 0.7136 GB, free: 15.08 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001366/0.1944, allocations: 313.9 kB / 0.7139 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001413/0.1958, allocations: 1.373 MB / 0.7152 GB, free: 13.39 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001555/0.1974, allocations: 1.505 MB / 0.7167 GB, free: 11.88 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007678/0.2051, allocations: 3.557 MB / 0.7202 GB, free: 8.23 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.05e-06/0.2051, allocations: 0 / 0.7202 GB, free: 8.23 MB / 0.5137 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004842/0.2099, allocations: 4.003 MB / 0.7241 GB, free: 4.191 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.006e-05/0.21, allocations: 4 kB / 0.7241 GB, free: 4.188 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.892e-05/0.21, allocations: 4 kB / 0.7241 GB, free: 4.184 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.459e-05/0.21, allocations: 0 / 0.7241 GB, free: 4.184 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001396/0.2102, allocations: 28.02 kB / 0.7241 GB, free: 4.156 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/0.2102, allocations: 0 / 0.7241 GB, free: 4.156 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005046/0.2107, allocations: 236.2 kB / 0.7243 GB, free: 3.922 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.477e-05/0.2108, allocations: 27.92 kB / 0.7244 GB, free: 3.895 MB / 0.5137 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.0003247/0.2111, allocations: 234.3 kB / 0.7246 GB, free: 3.656 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.371e-05/0.2112, allocations: 70.72 kB / 0.7247 GB, free: 3.586 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002944/0.2115, allocations: 75.06 kB / 0.7247 GB, free: 3.504 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.2115, allocations: 7.938 kB / 0.7247 GB, free: 3.496 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/0.2115, allocations: 0 / 0.7247 GB, free: 3.496 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.2115, allocations: 0 / 0.7247 GB, free: 3.496 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000492/0.212, allocations: 496.9 kB / 0.7252 GB, free: 2.965 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.212, allocations: 4 kB / 0.7252 GB, free: 2.961 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.508e-05/0.2121, allocations: 11.92 kB / 0.7252 GB, free: 2.949 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.2121, allocations: 0 / 0.7252 GB, free: 2.949 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.473e-05/0.2121, allocations: 4 kB / 0.7252 GB, free: 2.945 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.2121, allocations: 4.031 kB / 0.7252 GB, free: 2.941 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.2121, allocations: 0 / 0.7252 GB, free: 2.941 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001042/0.2132, allocations: 0.9975 MB / 0.7262 GB, free: 1.922 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001276/0.2133, allocations: 159.7 kB / 0.7264 GB, free: 1.746 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.251e-05/0.2134, allocations: 4 kB / 0.7264 GB, free: 1.742 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001487/0.2136, allocations: 11.98 kB / 0.7264 GB, free: 1.73 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.486e-05/0.2136, allocations: 7.938 kB / 0.7264 GB, free: 1.723 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.36e-05/0.2136, allocations: 15.97 kB / 0.7264 GB, free: 1.707 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0007986/0.2144, allocations: 0.6689 MB / 0.727 GB, free: 1.031 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2144, allocations: 0 / 0.727 GB, free: 1.031 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001525/0.216, allocations: 0.5779 MB / 0.7276 GB, free: 464 kB / 0.5137 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.001977/0.218, allocations: 0.696 MB / 0.7283 GB, free: 15.77 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002732/0.2207, allocations: 2.552 MB / 0.7308 GB, free: 13.2 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.2207, allocations: 0 / 0.7308 GB, free: 13.2 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.000398/0.2211, allocations: 343.8 kB / 0.7311 GB, free: 12.87 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003353/0.2215, allocations: 36.53 kB / 0.7311 GB, free: 12.83 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002434/0.2239, allocations: 1.924 MB / 0.733 GB, free: 10.87 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006079/0.2245, allocations: 0.9679 MB / 0.734 GB, free: 9.875 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0001809/0.2247, allocations: 32.56 kB / 0.734 GB, free: 9.844 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001088/0.2248, allocations: 31.34 kB / 0.734 GB, free: 9.812 MB / 0.5294 GB Notification: Performance of SimCode: time 5.81e-07/0.2249, allocations: 0 / 0.734 GB, free: 9.812 MB / 0.5294 GB Notification: Performance of Templates: time 0.02466/0.2495, allocations: 13.54 MB / 0.7473 GB, free: 12.31 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.makefile (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)