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.001325/0.001325, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001497/0.001497, allocations: 194.5 kB / 16.14 MB, free: 6.668 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.371/1.371, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002079/0.002079, allocations: 287 kB / 290.2 MB, free: 2.203 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9427/0.9427, allocations: 169.2 MB / 0.4977 GB, free: 14.15 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00161/0.00161, allocations: 90.53 kB / 0.5945 GB, free: 28.32 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1344/0.136, allocations: 86.98 MB / 0.6795 GB, free: 1.137 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.00258/0.1386, allocations: 1.805 MB / 0.6812 GB, free: 15.33 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00711/0.1458, allocations: 5.662 MB / 0.6868 GB, free: 9.648 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.376e-05/0.1459, allocations: 4 kB / 0.6868 GB, free: 9.645 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001031/0.1469, allocations: 354.6 kB / 0.6871 GB, free: 9.297 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001037/0.147, allocations: 59.72 kB / 0.6872 GB, free: 9.238 MB / 494.1 MB [/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.002624/0.1497, allocations: 1.169 MB / 0.6883 GB, free: 8.07 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002339/0.1499, allocations: 211.2 kB / 0.6885 GB, free: 7.863 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.339e-05/0.15, allocations: 13.55 kB / 0.6885 GB, free: 7.852 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.171e-05/0.15, allocations: 51.8 kB / 0.6886 GB, free: 7.801 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002045/0.1502, allocations: 184.8 kB / 0.6887 GB, free: 7.621 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.115e-05/0.1503, allocations: 16 kB / 0.6888 GB, free: 7.605 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002769/0.1531, allocations: 2.176 MB / 0.6909 GB, free: 5.426 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002008/0.1533, allocations: 287.7 kB / 0.6912 GB, free: 5.145 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002387/0.1535, allocations: 310.1 kB / 0.6915 GB, free: 4.84 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002433/0.156, allocations: 2.225 MB / 0.6936 GB, free: 2.605 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.156, allocations: 0 / 0.6936 GB, free: 2.605 MB / 494.1 MB Notification: Performance of FrontEnd: time 7.41e-07/0.156, allocations: 0 / 0.6936 GB, free: 2.605 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.412e-06/0.156, allocations: 0 / 0.6936 GB, free: 2.605 MB / 494.1 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.007986/0.164, allocations: 1.37 MB / 0.695 GB, free: 1.184 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/0.164, allocations: 8.031 kB / 0.695 GB, free: 1.176 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003954/0.1645, allocations: 99.58 kB / 0.6951 GB, free: 1.078 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004331/0.1649, allocations: 402.2 kB / 0.6955 GB, free: 0.6367 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.874e-05/0.1649, allocations: 12.36 kB / 0.6955 GB, free: 0.625 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.587e-05/0.165, allocations: 4.375 kB / 0.6955 GB, free: 0.6211 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000401/0.1654, allocations: 391.5 kB / 0.6958 GB, free: 232 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.006e-06/0.1654, allocations: 4 kB / 0.6958 GB, free: 228 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.339e-05/0.1654, allocations: 3.938 kB / 0.6959 GB, free: 224 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.1654, allocations: 7.984 kB / 0.6959 GB, free: 216 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004147/0.1659, allocations: 431.8 kB / 0.6963 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005534/0.1664, allocations: 0.6654 MB / 0.6969 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004812/0.1669, allocations: 0.5634 MB / 0.6975 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002843/0.1672, allocations: 333.6 kB / 0.6978 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009519/0.1682, allocations: 1.028 MB / 0.6988 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003807/0.1686, allocations: 416.8 kB / 0.6992 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.302e-06/0.1686, allocations: 0 / 0.6992 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.001222/0.1698, allocations: 1.289 MB / 0.7004 GB, free: 11.19 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.732e-05/0.1699, allocations: 89.08 kB / 0.7005 GB, free: 11.08 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001164/0.171, allocations: 1.29 MB / 0.7018 GB, free: 9.781 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.885e-05/0.1711, allocations: 33.7 kB / 0.7018 GB, free: 9.742 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002078/0.1713, allocations: 285.3 kB / 0.7021 GB, free: 9.457 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.728e-05/0.1713, allocations: 27.72 kB / 0.7021 GB, free: 9.43 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003025/0.1716, allocations: 347.6 kB / 0.7025 GB, free: 9.086 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000118/0.1718, allocations: 322 kB / 0.7028 GB, free: 8.766 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001184/0.173, allocations: 1.373 MB / 0.7041 GB, free: 7.391 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001262/0.1742, allocations: 1.505 MB / 0.7056 GB, free: 5.875 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006773/0.181, allocations: 3.553 MB / 0.709 GB, free: 2.23 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.352e-06/0.181, allocations: 0 / 0.709 GB, free: 2.23 MB / 0.4981 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004056/0.1851, allocations: 4.014 MB / 0.713 GB, free: 14.18 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.925e-05/0.1851, allocations: 4 kB / 0.713 GB, free: 14.17 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.759e-05/0.1852, allocations: 4 kB / 0.713 GB, free: 14.17 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.259e-05/0.1852, allocations: 3.938 kB / 0.713 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001251/0.1853, allocations: 23.92 kB / 0.713 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.001e-06/0.1853, allocations: 0 / 0.713 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004424/0.1858, allocations: 228.3 kB / 0.7132 GB, free: 13.91 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.76e-05/0.1858, allocations: 31.95 kB / 0.7132 GB, free: 13.88 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.0002987/0.1862, allocations: 249.7 kB / 0.7135 GB, free: 13.63 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.531e-05/0.1862, allocations: 78.53 kB / 0.7136 GB, free: 13.55 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002765/0.1865, allocations: 87.75 kB / 0.7136 GB, free: 13.46 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.1865, allocations: 0 / 0.7136 GB, free: 13.46 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.1865, allocations: 4.031 kB / 0.7136 GB, free: 13.46 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/0.1865, allocations: 0 / 0.7136 GB, free: 13.46 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000446/0.187, allocations: 0.514 MB / 0.7141 GB, free: 12.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.187, allocations: 0 / 0.7141 GB, free: 12.9 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.362e-05/0.1871, allocations: 15.92 kB / 0.7142 GB, free: 12.89 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.1871, allocations: 0 / 0.7142 GB, free: 12.89 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.126e-05/0.1871, allocations: 0 / 0.7142 GB, free: 12.89 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.1871, allocations: 4 kB / 0.7142 GB, free: 12.88 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.562e-06/0.1871, allocations: 0 / 0.7142 GB, free: 12.88 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008724/0.188, allocations: 1.01 MB / 0.7152 GB, free: 11.85 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001206/0.1881, allocations: 167.7 kB / 0.7153 GB, free: 11.67 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.45e-05/0.1882, allocations: 4 kB / 0.7153 GB, free: 11.66 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001456/0.1883, allocations: 3.984 kB / 0.7153 GB, free: 11.66 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.92e-05/0.1884, allocations: 8 kB / 0.7153 GB, free: 11.65 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.219e-05/0.1884, allocations: 19.97 kB / 0.7153 GB, free: 11.63 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0007358/0.1892, allocations: 0.7222 MB / 0.7161 GB, free: 10.91 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1892, allocations: 0 / 0.7161 GB, free: 10.91 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001333/0.1905, allocations: 0.5857 MB / 0.7166 GB, free: 10.32 MB / 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.001732/0.1922, allocations: 0.6924 MB / 0.7173 GB, free: 9.637 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002237/0.1945, allocations: 2.556 MB / 0.7198 GB, free: 7.066 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.1945, allocations: 4.062 kB / 0.7198 GB, free: 7.062 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0004909/0.195, allocations: 339.8 kB / 0.7201 GB, free: 6.73 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006193/0.1956, allocations: 60.64 kB / 0.7202 GB, free: 6.672 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003628/0.1993, allocations: 2.062 MB / 0.7222 GB, free: 4.578 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007726/0.2001, allocations: 0.9842 MB / 0.7232 GB, free: 3.57 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0003494/0.2004, allocations: 41.42 kB / 0.7232 GB, free: 3.531 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001545/0.2006, allocations: 27.41 kB / 0.7232 GB, free: 3.504 MB / 0.5137 GB Notification: Performance of SimCode: time 5.92e-07/0.2006, allocations: 4 kB / 0.7232 GB, free: 3.5 MB / 0.5137 GB Notification: Performance of Templates: time 0.03386/0.2345, allocations: 13.9 MB / 0.7368 GB, free: 5.668 MB / 0.5294 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)