Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.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.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube") translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001297/0.001297, 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.001321/0.001321, allocations: 191 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.383/1.383, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00246/0.002461, allocations: 294.9 kB / 290.2 MB, free: 2.211 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.069/1.069, allocations: 178.6 MB / 0.5068 GB, free: 4.762 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00404/0.00404, allocations: 95.55 kB / 0.6058 GB, free: 25.46 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1651/0.1692, allocations: 89.14 MB / 0.6928 GB, free: 4.773 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.005685/0.1749, allocations: 4.177 MB / 0.6969 GB, free: 0.582 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003513/0.1784, allocations: 2.372 MB / 0.6992 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002188/0.1787, allocations: 12 kB / 0.6992 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001408/0.1801, allocations: 0.4979 MB / 0.6997 GB, free: 13.69 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0003854/0.1805, allocations: 218.4 kB / 0.6999 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002015/0.1807, allocations: 119.9 kB / 0.7 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0008067/0.1815, allocations: 0.8084 MB / 0.7008 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004071/0.1819, allocations: 280.1 kB / 0.7011 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002868/0.1822, allocations: 258.9 kB / 0.7013 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003314/0.1826, allocations: 318.6 kB / 0.7016 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.169e-05/0.1827, allocations: 48 kB / 0.7017 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001067/0.1828, allocations: 52 kB / 0.7017 GB, free: 11.61 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001489/0.1829, allocations: 143.4 kB / 0.7019 GB, free: 11.47 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003422/0.1833, allocations: 358.3 kB / 0.7022 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0008401/0.1841, allocations: 0.9654 MB / 0.7032 GB, free: 10.15 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.603e-06/0.1841, allocations: 0 / 0.7032 GB, free: 10.15 MB / 0.4981 GB Notification: Performance of FrontEnd: time 8.31e-07/0.1841, allocations: 3.938 kB / 0.7032 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.153e-06/0.1842, allocations: 0 / 0.7032 GB, free: 10.14 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: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.001439/0.1856, allocations: 0.9424 MB / 0.7041 GB, free: 9.152 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.367e-05/0.1856, allocations: 12.03 kB / 0.7041 GB, free: 9.141 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001199/0.1858, allocations: 80 kB / 0.7042 GB, free: 9.062 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005863/0.1864, allocations: 461.5 kB / 0.7046 GB, free: 8.574 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.234e-05/0.1864, allocations: 33.38 kB / 0.7046 GB, free: 8.543 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.435e-05/0.1865, allocations: 52.38 kB / 0.7047 GB, free: 8.492 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007926/0.1873, allocations: 430.8 kB / 0.7051 GB, free: 8.066 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.799e-05/0.1873, allocations: 4 kB / 0.7051 GB, free: 8.062 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.967e-05/0.1873, allocations: 20 kB / 0.7051 GB, free: 8.043 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.258e-05/0.1874, allocations: 12 kB / 0.7051 GB, free: 8.031 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007351/0.1881, allocations: 367.8 kB / 0.7055 GB, free: 7.672 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002102/0.1902, allocations: 1.528 MB / 0.707 GB, free: 6.074 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005465/0.1908, allocations: 335.7 kB / 0.7073 GB, free: 5.738 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005045/0.1913, allocations: 325.1 kB / 0.7076 GB, free: 5.418 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.629e-05/0.1913, allocations: 4 kB / 0.7076 GB, free: 5.414 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.321e-05/0.1914, allocations: 46.44 kB / 0.7077 GB, free: 5.359 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=42): time 1.853e-06/0.1914, allocations: 0 / 0.7077 GB, free: 5.359 MB / 0.4981 GB Notification: Performance of matching and sorting (n=42): time 0.0009965/0.1924, allocations: 0.4942 MB / 0.7081 GB, free: 4.859 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.079e-05/0.1924, allocations: 55.41 kB / 0.7082 GB, free: 4.793 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005868/0.193, allocations: 485.9 kB / 0.7087 GB, free: 4.305 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.152e-05/0.1931, allocations: 29.7 kB / 0.7087 GB, free: 4.27 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002142/0.1933, allocations: 280.3 kB / 0.709 GB, free: 3.992 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001264/0.1934, allocations: 145.8 kB / 0.7091 GB, free: 3.848 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001048/0.1935, allocations: 62.08 kB / 0.7092 GB, free: 3.777 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001748/0.1937, allocations: 362.8 kB / 0.7095 GB, free: 3.414 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002708/0.194, allocations: 124.7 kB / 0.7096 GB, free: 3.293 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002483/0.1942, allocations: 125.4 kB / 0.7097 GB, free: 3.172 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005548/0.1948, allocations: 301.9 kB / 0.71 GB, free: 2.875 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1948, allocations: 0 / 0.71 GB, free: 2.875 MB / 0.4981 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006811/0.1955, allocations: 400.4 kB / 0.7104 GB, free: 2.477 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.402e-05/0.1955, allocations: 4 kB / 0.7104 GB, free: 2.473 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.1955, allocations: 0 / 0.7104 GB, free: 2.473 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.529e-05/0.1956, allocations: 4 kB / 0.7104 GB, free: 2.469 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005249/0.1961, allocations: 123.9 kB / 0.7105 GB, free: 2.348 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.603e-06/0.1961, allocations: 0 / 0.7105 GB, free: 2.348 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002436/0.1964, allocations: 47.66 kB / 0.7106 GB, free: 2.301 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.048e-05/0.1964, allocations: 12 kB / 0.7106 GB, free: 2.289 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0002215/0.1966, allocations: 197.8 kB / 0.7108 GB, free: 2.086 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.119e-05/0.1967, allocations: 55.28 kB / 0.7108 GB, free: 2.031 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001103/0.1968, allocations: 61.11 kB / 0.7109 GB, free: 1.973 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.499e-06/0.1968, allocations: 4 kB / 0.7109 GB, free: 1.969 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/0.1968, allocations: 4 kB / 0.7109 GB, free: 1.965 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.1968, allocations: 7.922 kB / 0.7109 GB, free: 1.957 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006913/0.1975, allocations: 0.5713 MB / 0.7115 GB, free: 1.336 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.1975, allocations: 0 / 0.7115 GB, free: 1.336 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005388/0.1981, allocations: 127.8 kB / 0.7116 GB, free: 1.211 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.1981, allocations: 0 / 0.7116 GB, free: 1.211 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.211e-05/0.1981, allocations: 8 kB / 0.7116 GB, free: 1.203 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.1981, allocations: 0 / 0.7116 GB, free: 1.203 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.1981, allocations: 4 kB / 0.7116 GB, free: 1.199 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001044/0.1992, allocations: 0.6509 MB / 0.7122 GB, free: 0.5312 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001351/0.1993, allocations: 144.4 kB / 0.7124 GB, free: 380 kB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.369e-05/0.1994, allocations: 12 kB / 0.7124 GB, free: 368 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002338/0.1997, allocations: 27.97 kB / 0.7124 GB, free: 340 kB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.434e-05/0.1997, allocations: 23.97 kB / 0.7124 GB, free: 316 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.072e-05/0.1998, allocations: 7.984 kB / 0.7124 GB, free: 308 kB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0004177/0.2002, allocations: 351.1 kB / 0.7128 GB, free: 15.96 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.834e-06/0.2002, allocations: 3.938 kB / 0.7128 GB, free: 15.96 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003947/0.2006, allocations: 151.5 kB / 0.7129 GB, free: 15.81 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (intRes2UTub.capFil1.T,intRes2UTub.capFil2.T,intRes2UTub.capFil3.T,intRes2UTub.capFil4.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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.0001407/0.2007, allocations: 111.2 kB / 0.713 GB, free: 15.69 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0006407/0.2014, allocations: 323.6 kB / 0.7133 GB, free: 15.38 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.2014, allocations: 0 / 0.7133 GB, free: 15.38 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0003082/0.2017, allocations: 176.2 kB / 0.7135 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007275/0.2024, allocations: 118.5 kB / 0.7136 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002037/0.2045, allocations: 1.419 MB / 0.715 GB, free: 13.64 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005063/0.205, allocations: 0.8745 MB / 0.7159 GB, free: 12.74 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001946/0.2052, allocations: 56.39 kB / 0.7159 GB, free: 12.68 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001021/0.2053, allocations: 35.44 kB / 0.7159 GB, free: 12.65 MB / 0.5137 GB Notification: Performance of SimCode: time 4.01e-07/0.2053, allocations: 0 / 0.7159 GB, free: 12.65 MB / 0.5137 GB Notification: Performance of Templates: time 0.01097/0.2163, allocations: 5.615 MB / 0.7214 GB, free: 7.18 MB / 0.5137 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.sim & ./BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1)