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.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_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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001755/0.001755, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00198/0.00198, allocations: 193.1 kB / 16.14 MB, free: 6.715 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.445/1.445, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002553/0.002553, allocations: 283 kB / 290.2 MB, free: 2.223 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.093/1.093, allocations: 178.6 MB / 0.5068 GB, free: 4.777 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002789/0.002789, allocations: 99.66 kB / 0.6058 GB, free: 25.09 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1508/0.1536, allocations: 89.15 MB / 0.6928 GB, free: 4.777 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003052/0.1567, allocations: 1.808 MB / 0.6946 GB, free: 2.961 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.008236/0.1649, allocations: 5.665 MB / 0.7001 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.756e-05/0.165, allocations: 4 kB / 0.7001 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001114/0.1662, allocations: 354.6 kB / 0.7005 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001113/0.1663, allocations: 51.73 kB / 0.7005 GB, free: 12.88 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‘. Notification: Performance of NFTyping.typeClassSections: time 0.002942/0.1693, allocations: 1.174 MB / 0.7017 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002639/0.1695, allocations: 207.3 kB / 0.7019 GB, free: 11.5 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.219e-05/0.1696, allocations: 9.562 kB / 0.7019 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 7.879e-05/0.1697, allocations: 63.7 kB / 0.7019 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002399/0.1699, allocations: 176.8 kB / 0.7021 GB, free: 11.26 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.553e-05/0.17, allocations: 20 kB / 0.7021 GB, free: 11.24 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003535/0.1735, allocations: 2.176 MB / 0.7043 GB, free: 9.059 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.000264/0.1738, allocations: 283.7 kB / 0.7045 GB, free: 8.781 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003023/0.1741, allocations: 302.1 kB / 0.7048 GB, free: 8.484 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002823/0.1769, allocations: 2.229 MB / 0.707 GB, free: 6.246 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.177, allocations: 3.984 kB / 0.707 GB, free: 6.242 MB / 0.4981 GB Notification: Performance of FrontEnd: time 8.11e-07/0.177, allocations: 0 / 0.707 GB, free: 6.242 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.051e-06/0.177, allocations: 0 / 0.707 GB, free: 6.242 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.008124/0.1851, allocations: 1.363 MB / 0.7083 GB, free: 4.828 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.548e-05/0.1852, allocations: 11.97 kB / 0.7083 GB, free: 4.816 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004159/0.1856, allocations: 99.58 kB / 0.7084 GB, free: 4.719 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004972/0.1861, allocations: 406.3 kB / 0.7088 GB, free: 4.273 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.232e-05/0.1861, allocations: 4.375 kB / 0.7088 GB, free: 4.27 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.913e-05/0.1861, allocations: 4.375 kB / 0.7088 GB, free: 4.266 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004836/0.1866, allocations: 403.5 kB / 0.7092 GB, free: 3.859 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.334e-06/0.1867, allocations: 4 kB / 0.7092 GB, free: 3.855 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.299e-05/0.1867, allocations: 0 / 0.7092 GB, free: 3.855 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.171e-06/0.1867, allocations: 4 kB / 0.7092 GB, free: 3.852 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004817/0.1872, allocations: 431.7 kB / 0.7096 GB, free: 3.43 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006788/0.1879, allocations: 0.6693 MB / 0.7103 GB, free: 2.711 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005842/0.1885, allocations: 0.5672 MB / 0.7108 GB, free: 2.125 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00035/0.1888, allocations: 341.6 kB / 0.7112 GB, free: 1.785 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00114/0.19, allocations: 1.025 MB / 0.7122 GB, free: 0.5391 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004469/0.1904, allocations: 408.8 kB / 0.7126 GB, free: 124 kB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.944e-06/0.1904, allocations: 0 / 0.7126 GB, free: 124 kB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.001475/0.1919, allocations: 1.293 MB / 0.7138 GB, free: 14.82 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.026e-05/0.192, allocations: 89.23 kB / 0.7139 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001367/0.1934, allocations: 1.297 MB / 0.7152 GB, free: 13.41 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 3.85e-05/0.1934, allocations: 29.7 kB / 0.7152 GB, free: 13.37 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002463/0.1937, allocations: 289.4 kB / 0.7155 GB, free: 13.08 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 3.416e-05/0.1937, allocations: 23.69 kB / 0.7155 GB, free: 13.06 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003637/0.1941, allocations: 351.6 kB / 0.7158 GB, free: 12.71 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001359/0.1942, allocations: 318 kB / 0.7161 GB, free: 12.39 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001398/0.1956, allocations: 1.373 MB / 0.7175 GB, free: 11.02 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001503/0.1972, allocations: 1.505 MB / 0.7189 GB, free: 9.504 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007604/0.2048, allocations: 3.557 MB / 0.7224 GB, free: 5.855 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.097e-06/0.2048, allocations: 0 / 0.7224 GB, free: 5.855 MB / 0.5137 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004639/0.2094, allocations: 4.018 MB / 0.7263 GB, free: 1.801 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.226e-05/0.2095, allocations: 5.719 kB / 0.7263 GB, free: 1.797 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.905e-05/0.2095, allocations: 4 kB / 0.7263 GB, free: 1.793 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/0.2095, allocations: 0 / 0.7263 GB, free: 1.793 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001349/0.2097, allocations: 19.92 kB / 0.7264 GB, free: 1.773 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.291e-06/0.2097, allocations: 0 / 0.7264 GB, free: 1.773 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004896/0.2102, allocations: 232.3 kB / 0.7266 GB, free: 1.543 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.172e-05/0.2102, allocations: 31.97 kB / 0.7266 GB, free: 1.512 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.0003462/0.2106, allocations: 246.4 kB / 0.7269 GB, free: 1.262 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.361e-05/0.2107, allocations: 74.62 kB / 0.7269 GB, free: 1.188 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003022/0.211, allocations: 83.75 kB / 0.727 GB, free: 1.098 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.377e-06/0.211, allocations: 0 / 0.727 GB, free: 1.098 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.211, allocations: 0 / 0.727 GB, free: 1.098 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.211, allocations: 4.031 kB / 0.727 GB, free: 1.094 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005042/0.2115, allocations: 0.5102 MB / 0.7275 GB, free: 0.5391 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.2115, allocations: 0 / 0.7275 GB, free: 0.5391 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.84e-05/0.2116, allocations: 15.92 kB / 0.7275 GB, free: 0.5234 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.2116, allocations: 0 / 0.7275 GB, free: 0.5234 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.346e-05/0.2116, allocations: 4 kB / 0.7275 GB, free: 0.5195 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.2116, allocations: 4 kB / 0.7275 GB, free: 0.5156 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.2117, allocations: 0 / 0.7275 GB, free: 0.5156 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001046/0.2127, allocations: 1.01 MB / 0.7285 GB, free: 15.48 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001387/0.2129, allocations: 167.6 kB / 0.7287 GB, free: 15.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.19e-05/0.2129, allocations: 4 kB / 0.7287 GB, free: 15.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001558/0.2131, allocations: 15.86 kB / 0.7287 GB, free: 15.28 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.923e-05/0.2131, allocations: 4 kB / 0.7287 GB, free: 15.28 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.579e-05/0.2132, allocations: 15.97 kB / 0.7287 GB, free: 15.26 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.000865/0.2141, allocations: 0.73 MB / 0.7294 GB, free: 14.53 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2141, allocations: 0 / 0.7294 GB, free: 14.53 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001596/0.2157, allocations: 0.5818 MB / 0.73 GB, free: 13.95 MB / 0.5294 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.001974/0.2176, allocations: 0.6855 MB / 0.7307 GB, free: 13.27 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002725/0.2204, allocations: 2.548 MB / 0.7332 GB, free: 10.71 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.15e-06/0.2204, allocations: 4 kB / 0.7332 GB, free: 10.7 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.000376/0.2208, allocations: 343.8 kB / 0.7335 GB, free: 10.37 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004406/0.2212, allocations: 64.58 kB / 0.7335 GB, free: 10.3 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002558/0.2238, allocations: 2.066 MB / 0.7356 GB, free: 8.203 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000614/0.2244, allocations: 0.9842 MB / 0.7365 GB, free: 7.191 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0002022/0.2247, allocations: 41.42 kB / 0.7366 GB, free: 7.148 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001126/0.2248, allocations: 27.41 kB / 0.7366 GB, free: 7.125 MB / 0.5294 GB Notification: Performance of SimCode: time 3.717e-06/0.2248, allocations: 0 / 0.7366 GB, free: 7.125 MB / 0.5294 GB Notification: Performance of Templates: time 0.02527/0.2501, allocations: 13.9 MB / 0.7502 GB, free: 9.293 MB / 0.545 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)