Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.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.InternalResistancesOneUTube,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube") translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001384/0.001384, allocations: 105.6 kB / 15.99 MB, free: 6.359 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.001159/0.001159, allocations: 194 kB / 16.91 MB, free: 6.195 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.301/1.301, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002152/0.002152, allocations: 282.5 kB / 291 MB, free: 14.69 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9396/0.9396, allocations: 169.2 MB / 0.4985 GB, free: 4.711 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001651/0.001651, allocations: 93.33 kB / 0.5954 GB, free: 15.48 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1834/0.1851, allocations: 86.98 MB / 0.6803 GB, free: 8.512 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube): time 0.004384/0.1895, allocations: 3.066 MB / 0.6833 GB, free: 5.426 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003005/0.1926, allocations: 2.106 MB / 0.6854 GB, free: 3.309 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002891/0.1929, allocations: 7.938 kB / 0.6854 GB, free: 3.301 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001603/0.1946, allocations: 478.1 kB / 0.6858 GB, free: 2.832 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004201/0.195, allocations: 139.1 kB / 0.686 GB, free: 2.695 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001776/0.1952, allocations: 47.97 kB / 0.686 GB, free: 2.648 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005946/0.1958, allocations: 441.9 kB / 0.6864 GB, free: 2.215 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000294/0.1961, allocations: 159.2 kB / 0.6866 GB, free: 2.059 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002403/0.1963, allocations: 155.4 kB / 0.6867 GB, free: 1.906 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002226/0.1966, allocations: 187.2 kB / 0.6869 GB, free: 1.723 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.774e-05/0.1966, allocations: 36 kB / 0.6869 GB, free: 1.688 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.763e-05/0.1967, allocations: 32 kB / 0.687 GB, free: 1.656 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001365/0.1968, allocations: 99.61 kB / 0.6871 GB, free: 1.559 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002056/0.197, allocations: 218.9 kB / 0.6873 GB, free: 1.344 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004416/0.1975, allocations: 458.8 kB / 0.6877 GB, free: 0.8945 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.742e-06/0.1975, allocations: 0 / 0.6877 GB, free: 0.8945 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.1975, allocations: 0 / 0.6877 GB, free: 0.8945 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.614e-06/0.1975, allocations: 0 / 0.6877 GB, free: 0.8945 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.001096/0.1986, allocations: 0.7045 MB / 0.6884 GB, free: 144 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.864e-05/0.1987, allocations: 12.03 kB / 0.6884 GB, free: 132 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.885e-05/0.1988, allocations: 48.36 kB / 0.6885 GB, free: 84 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2647/0.4635, allocations: 365.5 kB / 0.6888 GB, free: 18.45 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.754e-05/0.4636, allocations: 15.19 kB / 0.6888 GB, free: 18.45 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.859e-05/0.4637, allocations: 23.09 kB / 0.6888 GB, free: 18.45 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005146/0.4642, allocations: 201.8 kB / 0.689 GB, free: 18.42 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.667e-05/0.4642, allocations: 1.031 kB / 0.689 GB, free: 18.42 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.213e-05/0.4642, allocations: 6.219 kB / 0.689 GB, free: 18.42 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.949e-06/0.4643, allocations: 5.312 kB / 0.689 GB, free: 18.42 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003814/0.4646, allocations: 172.9 kB / 0.6892 GB, free: 18.41 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001226/0.4659, allocations: 0.8583 MB / 0.69 GB, free: 18.02 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002986/0.4662, allocations: 159.5 kB / 0.6902 GB, free: 17.98 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002104/0.4664, allocations: 110.2 kB / 0.6903 GB, free: 17.93 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.639e-05/0.4664, allocations: 1.5 kB / 0.6903 GB, free: 17.93 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.962e-05/0.4665, allocations: 37.61 kB / 0.6903 GB, free: 17.89 MB / 494.1 MB Notification: Performance of pre-optimization done (n=18): time 1.984e-06/0.4665, allocations: 0.9688 kB / 0.6903 GB, free: 17.89 MB / 494.1 MB Notification: Performance of matching and sorting (n=18): time 0.0005992/0.4671, allocations: 255.4 kB / 0.6906 GB, free: 17.78 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.505e-05/0.4671, allocations: 54 kB / 0.6906 GB, free: 17.71 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005034/0.4676, allocations: 422.3 kB / 0.691 GB, free: 17.52 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.574e-05/0.4676, allocations: 30.67 kB / 0.6911 GB, free: 17.48 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001096/0.4678, allocations: 203.2 kB / 0.6913 GB, free: 17.31 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.327e-05/0.4678, allocations: 71.09 kB / 0.6913 GB, free: 17.26 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.547e-05/0.4679, allocations: 37.61 kB / 0.6914 GB, free: 17.23 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.523e-05/0.468, allocations: 351.8 kB / 0.6917 GB, free: 16.9 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001493/0.4681, allocations: 54.23 kB / 0.6918 GB, free: 16.88 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001369/0.4683, allocations: 64.86 kB / 0.6918 GB, free: 16.86 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002728/0.4685, allocations: 134 kB / 0.6919 GB, free: 16.8 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.674e-06/0.4686, allocations: 0 / 0.6919 GB, free: 16.8 MB / 494.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003606/0.4689, allocations: 204 kB / 0.6921 GB, free: 16.71 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.4689, allocations: 7.469 kB / 0.6921 GB, free: 16.71 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.469, allocations: 4.203 kB / 0.6921 GB, free: 16.71 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/0.469, allocations: 3.891 kB / 0.6922 GB, free: 16.71 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002519/0.4692, allocations: 55.14 kB / 0.6922 GB, free: 16.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.535e-06/0.4693, allocations: 1.578 kB / 0.6922 GB, free: 16.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001647/0.4694, allocations: 27.56 kB / 0.6922 GB, free: 16.69 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.31e-05/0.4694, allocations: 7.812 kB / 0.6922 GB, free: 16.69 MB / 494.1 MB 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 (20): * Single equations (assignments): 20 * 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.0001252/0.4696, allocations: 168.7 kB / 0.6924 GB, free: 16.54 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.533e-05/0.4696, allocations: 33.88 kB / 0.6924 GB, free: 16.52 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.015e-05/0.4697, allocations: 39.83 kB / 0.6925 GB, free: 16.5 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.4697, allocations: 2.656 kB / 0.6925 GB, free: 16.5 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.4697, allocations: 0.875 kB / 0.6925 GB, free: 16.5 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.4697, allocations: 6.281 kB / 0.6925 GB, free: 16.49 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004149/0.4702, allocations: 373.2 kB / 0.6928 GB, free: 16.23 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.4702, allocations: 1.031 kB / 0.6928 GB, free: 16.23 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002656/0.4704, allocations: 58.86 kB / 0.6929 GB, free: 16.22 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.876e-06/0.4705, allocations: 1.094 kB / 0.6929 GB, free: 16.22 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.612e-05/0.4705, allocations: 9.547 kB / 0.6929 GB, free: 16.21 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.4705, allocations: 2.312 kB / 0.6929 GB, free: 16.21 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.4705, allocations: 3.531 kB / 0.6929 GB, free: 16.21 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005518/0.471, allocations: 376.9 kB / 0.6933 GB, free: 15.98 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.376e-05/0.4711, allocations: 119.1 kB / 0.6934 GB, free: 15.86 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.609e-05/0.4712, allocations: 5.688 kB / 0.6934 GB, free: 15.86 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001643/0.4713, allocations: 17.12 kB / 0.6934 GB, free: 15.85 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.549e-05/0.4714, allocations: 13.27 kB / 0.6934 GB, free: 15.85 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.18e-05/0.4714, allocations: 8 kB / 0.6934 GB, free: 15.85 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003166/0.4717, allocations: 304.8 kB / 0.6937 GB, free: 15.7 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4717, allocations: 0 / 0.6937 GB, free: 15.7 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003026/0.4721, allocations: 71.22 kB / 0.6938 GB, free: 15.69 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (intRes1UTub.capFil1.T,intRes1UTub.capFil2.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 (18): * Single equations (assignments): 18 * 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.0001211/0.4722, allocations: 114.5 kB / 0.6939 GB, free: 15.59 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003757/0.4726, allocations: 151.7 kB / 0.694 GB, free: 15.55 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.4726, allocations: 0 / 0.694 GB, free: 15.55 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001554/0.4727, allocations: 80.36 kB / 0.6941 GB, free: 15.52 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006071/0.4733, allocations: 90.36 kB / 0.6942 GB, free: 15.5 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001216/0.4746, allocations: 0.9058 MB / 0.6951 GB, free: 14.9 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002537/0.4748, allocations: 0.7936 MB / 0.6959 GB, free: 14.2 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.248e-05/0.4749, allocations: 28.78 kB / 0.6959 GB, free: 14.19 MB / 494.1 MB Notification: Performance of SimCode: time 2.3e-07/0.4749, allocations: 0 / 0.6959 GB, free: 14.19 MB / 494.1 MB Notification: Performance of Templates: time 0.01016/0.4851, allocations: 4.36 MB / 0.7001 GB, free: 13.72 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.sim & ./BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe 2>&1)