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.001013/0.001013, allocations: 90.67 kB / 15.36 MB, free: 0.7383 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.007779/0.007779, allocations: 175 kB / 16.27 MB, free: 6.613 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.299/1.299, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001755/0.001755, allocations: 262.9 kB / 291.7 MB, free: 1.859 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9235/0.9235, allocations: 169.5 MB / 0.5004 GB, free: 14.11 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003927/0.0003927, allocations: 19.81 kB / 0.5987 GB, free: 28.08 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1358/0.1362, allocations: 88.54 MB / 0.6852 GB, free: 15.05 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.003735/0.1399, allocations: 3.749 MB / 0.6888 GB, free: 11.28 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002581/0.1425, allocations: 2.343 MB / 0.6911 GB, free: 8.945 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001926/0.1427, allocations: 8 kB / 0.6911 GB, free: 8.938 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001149/0.1439, allocations: 0.5024 MB / 0.6916 GB, free: 8.434 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003541/0.1443, allocations: 221.3 kB / 0.6918 GB, free: 8.219 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001774/0.1444, allocations: 115.9 kB / 0.6919 GB, free: 8.105 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006686/0.1451, allocations: 0.8143 MB / 0.6927 GB, free: 7.289 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000361/0.1455, allocations: 272.2 kB / 0.693 GB, free: 7.02 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002448/0.1458, allocations: 235 kB / 0.6932 GB, free: 6.789 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002835/0.146, allocations: 294.6 kB / 0.6935 GB, free: 6.5 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.186e-05/0.1461, allocations: 36 kB / 0.6935 GB, free: 6.465 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.528e-05/0.1462, allocations: 36 kB / 0.6936 GB, free: 6.43 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001393/0.1463, allocations: 119.5 kB / 0.6937 GB, free: 6.312 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002659/0.1466, allocations: 367.9 kB / 0.694 GB, free: 5.945 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006549/0.1473, allocations: 0.9379 MB / 0.6949 GB, free: 5.004 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.125e-06/0.1473, allocations: 0 / 0.6949 GB, free: 5.004 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.153e-06/0.1473, allocations: 0 / 0.6949 GB, free: 5.004 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.354e-06/0.1473, allocations: 0 / 0.6949 GB, free: 5.004 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: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.001119/0.1484, allocations: 0.8412 MB / 0.6958 GB, free: 4.113 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.1485, allocations: 16.02 kB / 0.6958 GB, free: 4.098 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.889e-05/0.1486, allocations: 72.09 kB / 0.6958 GB, free: 4.027 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005139/0.1491, allocations: 453.7 kB / 0.6963 GB, free: 3.547 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.096e-05/0.1491, allocations: 41.38 kB / 0.6963 GB, free: 3.508 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.939e-05/0.1492, allocations: 44.38 kB / 0.6964 GB, free: 3.465 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000729/0.1499, allocations: 442.6 kB / 0.6968 GB, free: 3.023 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.675e-05/0.15, allocations: 0 / 0.6968 GB, free: 3.023 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.838e-05/0.15, allocations: 20 kB / 0.6968 GB, free: 3.004 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.179e-05/0.15, allocations: 12 kB / 0.6968 GB, free: 2.992 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006828/0.1507, allocations: 383.8 kB / 0.6972 GB, free: 2.617 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001835/0.1526, allocations: 1.535 MB / 0.6987 GB, free: 1.012 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004963/0.1531, allocations: 347.5 kB / 0.699 GB, free: 0.6602 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004602/0.1535, allocations: 329.5 kB / 0.6993 GB, free: 344 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.24e-05/0.1536, allocations: 4 kB / 0.6993 GB, free: 340 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.638e-05/0.1536, allocations: 38.5 kB / 0.6994 GB, free: 292 kB / 494.1 MB Notification: Performance of pre-optimization done (n=42): time 1.483e-06/0.1536, allocations: 0 / 0.6994 GB, free: 292 kB / 494.1 MB Notification: Performance of matching and sorting (n=42): time 0.0009304/0.1545, allocations: 0.505 MB / 0.6999 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.195e-05/0.1546, allocations: 55.41 kB / 0.6999 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000504/0.1551, allocations: 493.8 kB / 0.7004 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.493e-05/0.1551, allocations: 33.7 kB / 0.7004 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001677/0.1553, allocations: 276.3 kB / 0.7007 GB, free: 14.9 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001011/0.1554, allocations: 145.8 kB / 0.7008 GB, free: 14.76 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.13e-05/0.1555, allocations: 41.7 kB / 0.7009 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000122/0.1556, allocations: 362.8 kB / 0.7012 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002531/0.1559, allocations: 124.7 kB / 0.7013 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000236/0.1561, allocations: 129.5 kB / 0.7014 GB, free: 14.1 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005164/0.1566, allocations: 314.3 kB / 0.7017 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.1566, allocations: 0 / 0.7017 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006281/0.1573, allocations: 408.4 kB / 0.7021 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.352e-05/0.1573, allocations: 4 kB / 0.7021 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.1573, allocations: 0 / 0.7021 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.452e-05/0.1573, allocations: 4 kB / 0.7021 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004875/0.1578, allocations: 131.8 kB / 0.7023 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.155e-06/0.1578, allocations: 0 / 0.7023 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002547/0.1581, allocations: 51.66 kB / 0.7023 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.984e-05/0.1581, allocations: 12 kB / 0.7023 GB, free: 13.19 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.0002153/0.1583, allocations: 198.4 kB / 0.7025 GB, free: 12.98 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.367e-05/0.1584, allocations: 55.28 kB / 0.7026 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001206/0.1585, allocations: 65.09 kB / 0.7026 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.1586, allocations: 4 kB / 0.7026 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.1586, allocations: 0 / 0.7026 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.294e-06/0.1586, allocations: 7.984 kB / 0.7026 GB, free: 12.85 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005857/0.1592, allocations: 0.5712 MB / 0.7032 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/0.1592, allocations: 4 kB / 0.7032 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005081/0.1597, allocations: 135.7 kB / 0.7033 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.1597, allocations: 4 kB / 0.7033 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.083e-05/0.1597, allocations: 12 kB / 0.7033 GB, free: 12.08 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.1597, allocations: 7.938 kB / 0.7034 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.1598, allocations: 0 / 0.7034 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009553/0.1607, allocations: 0.6713 MB / 0.704 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000105/0.1608, allocations: 132.4 kB / 0.7041 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.751e-05/0.1609, allocations: 8 kB / 0.7041 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002422/0.1611, allocations: 19.98 kB / 0.7042 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.859e-05/0.1612, allocations: 23.97 kB / 0.7042 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.715e-05/0.1612, allocations: 16 kB / 0.7042 GB, free: 11.17 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003622/0.1616, allocations: 351.1 kB / 0.7045 GB, free: 10.82 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.1616, allocations: 0 / 0.7045 GB, free: 10.82 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000372/0.162, allocations: 147.5 kB / 0.7047 GB, free: 10.68 MB / 0.4981 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.0001208/0.1621, allocations: 115.1 kB / 0.7048 GB, free: 10.56 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005998/0.1627, allocations: 335.7 kB / 0.7051 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.1627, allocations: 0 / 0.7051 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002908/0.163, allocations: 191.8 kB / 0.7053 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006677/0.1637, allocations: 116.2 kB / 0.7054 GB, free: 9.93 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001802/0.1655, allocations: 1.511 MB / 0.7069 GB, free: 8.391 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003755/0.1659, allocations: 0.8668 MB / 0.7077 GB, free: 7.496 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001718/0.1661, allocations: 56.38 kB / 0.7078 GB, free: 7.441 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.291e-05/0.1662, allocations: 35.44 kB / 0.7078 GB, free: 7.406 MB / 0.4981 GB Notification: Performance of SimCode: time 2.615e-06/0.1662, allocations: 0 / 0.7078 GB, free: 7.406 MB / 0.4981 GB Notification: Performance of Templates: time 0.009761/0.176, allocations: 5.572 MB / 0.7133 GB, free: 1.984 MB / 0.4981 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)