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.001098/0.001098, 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.001314/0.001314, allocations: 190.9 kB / 16.14 MB, free: 6.707 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.291/1.291, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002063/0.002064, allocations: 286.2 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 0.9195/0.9195, allocations: 169.2 MB / 0.4977 GB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001552/0.001552, allocations: 94.5 kB / 0.5945 GB, free: 28.28 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1357/0.1372, allocations: 86.99 MB / 0.6795 GB, free: 1.168 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.00468/0.142, allocations: 4.149 MB / 0.6835 GB, free: 13 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003118/0.1451, allocations: 2.363 MB / 0.6858 GB, free: 10.63 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000219/0.1453, allocations: 16 kB / 0.6859 GB, free: 10.61 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001462/0.1468, allocations: 0.5017 MB / 0.6864 GB, free: 10.11 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004354/0.1473, allocations: 218.4 kB / 0.6866 GB, free: 9.895 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001834/0.1474, allocations: 123.9 kB / 0.6867 GB, free: 9.773 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006462/0.1481, allocations: 0.7981 MB / 0.6875 GB, free: 8.973 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003619/0.1485, allocations: 284.1 kB / 0.6877 GB, free: 8.691 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002462/0.1487, allocations: 255 kB / 0.688 GB, free: 8.441 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003464/0.1491, allocations: 322.5 kB / 0.6883 GB, free: 8.125 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 7.464e-05/0.1492, allocations: 52 kB / 0.6883 GB, free: 8.074 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.661e-05/0.1493, allocations: 44 kB / 0.6884 GB, free: 8.031 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001422/0.1494, allocations: 143.4 kB / 0.6885 GB, free: 7.891 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003051/0.1497, allocations: 358.2 kB / 0.6889 GB, free: 7.539 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007189/0.1505, allocations: 0.9654 MB / 0.6898 GB, free: 6.57 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.1505, allocations: 0 / 0.6898 GB, free: 6.57 MB / 494.1 MB Notification: Performance of FrontEnd: time 7.71e-07/0.1505, allocations: 4 kB / 0.6898 GB, free: 6.566 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.574e-06/0.1505, allocations: 0 / 0.6898 GB, free: 6.566 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.00132/0.1518, allocations: 0.954 MB / 0.6907 GB, free: 5.562 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.216e-05/0.1519, allocations: 8.031 kB / 0.6907 GB, free: 5.555 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001008/0.152, allocations: 72.09 kB / 0.6908 GB, free: 5.484 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000517/0.1525, allocations: 457.7 kB / 0.6912 GB, free: 5 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.723e-05/0.1525, allocations: 37.38 kB / 0.6913 GB, free: 4.965 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.388e-05/0.1526, allocations: 48.28 kB / 0.6913 GB, free: 4.918 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008048/0.1534, allocations: 434.7 kB / 0.6917 GB, free: 4.484 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.592e-05/0.1534, allocations: 0 / 0.6917 GB, free: 4.484 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.666e-05/0.1535, allocations: 20 kB / 0.6918 GB, free: 4.465 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.678e-06/0.1535, allocations: 16 kB / 0.6918 GB, free: 4.449 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006702/0.1542, allocations: 367.8 kB / 0.6921 GB, free: 4.09 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00206/0.1562, allocations: 1.528 MB / 0.6936 GB, free: 2.492 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005002/0.1567, allocations: 343.5 kB / 0.6939 GB, free: 2.148 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004891/0.1572, allocations: 316.8 kB / 0.6942 GB, free: 1.836 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.215e-05/0.1573, allocations: 4 kB / 0.6942 GB, free: 1.832 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.298e-05/0.1573, allocations: 42.5 kB / 0.6943 GB, free: 1.781 MB / 494.1 MB Notification: Performance of pre-optimization done (n=42): time 1.743e-06/0.1573, allocations: 0 / 0.6943 GB, free: 1.781 MB / 494.1 MB Notification: Performance of matching and sorting (n=42): time 0.0009026/0.1582, allocations: 0.4892 MB / 0.6948 GB, free: 1.285 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.902e-05/0.1583, allocations: 59.34 kB / 0.6948 GB, free: 1.215 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006012/0.1589, allocations: 485.9 kB / 0.6953 GB, free: 0.7344 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.491e-05/0.1589, allocations: 33.7 kB / 0.6953 GB, free: 0.6953 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002211/0.1591, allocations: 280.4 kB / 0.6956 GB, free: 428 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001567/0.1593, allocations: 137.9 kB / 0.6957 GB, free: 288 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.323e-05/0.1594, allocations: 70.06 kB / 0.6958 GB, free: 208 kB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001564/0.1596, allocations: 362.8 kB / 0.6961 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002343/0.1598, allocations: 116.7 kB / 0.6962 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002967/0.1601, allocations: 125.4 kB / 0.6964 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004914/0.1606, allocations: 294 kB / 0.6966 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.1606, allocations: 7.938 kB / 0.6967 GB, free: 15.31 MB / 0.4981 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006197/0.1612, allocations: 408.1 kB / 0.697 GB, free: 14.9 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/0.1613, allocations: 4 kB / 0.697 GB, free: 14.9 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.1613, allocations: 0 / 0.697 GB, free: 14.9 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.333e-05/0.1613, allocations: 0 / 0.697 GB, free: 14.9 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004904/0.1618, allocations: 127.8 kB / 0.6972 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.075e-06/0.1618, allocations: 7.984 kB / 0.6972 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002426/0.1621, allocations: 56.34 kB / 0.6972 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.595e-05/0.1621, allocations: 8 kB / 0.6972 GB, free: 14.7 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.0001954/0.1623, allocations: 202.4 kB / 0.6974 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.907e-05/0.1624, allocations: 51.38 kB / 0.6975 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001016/0.1625, allocations: 65.09 kB / 0.6975 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.1625, allocations: 8 kB / 0.6975 GB, free: 14.37 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/0.1625, allocations: 0 / 0.6975 GB, free: 14.37 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.1625, allocations: 3.938 kB / 0.6975 GB, free: 14.37 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006256/0.1631, allocations: 0.579 MB / 0.6981 GB, free: 13.74 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.1632, allocations: 0 / 0.6981 GB, free: 13.74 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004963/0.1637, allocations: 127.8 kB / 0.6982 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.1637, allocations: 0 / 0.6982 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.401e-05/0.1637, allocations: 8 kB / 0.6982 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.1637, allocations: 0 / 0.6982 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.1637, allocations: 4 kB / 0.6982 GB, free: 13.6 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009914/0.1647, allocations: 0.652 MB / 0.6989 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001111/0.1648, allocations: 132.5 kB / 0.699 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.108e-05/0.1649, allocations: 8 kB / 0.699 GB, free: 12.78 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002287/0.1651, allocations: 31.88 kB / 0.699 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.959e-05/0.1652, allocations: 19.97 kB / 0.6991 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.85e-05/0.1652, allocations: 12 kB / 0.6991 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003794/0.1656, allocations: 347.1 kB / 0.6994 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.1656, allocations: 0 / 0.6994 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000381/0.166, allocations: 147.6 kB / 0.6996 GB, free: 12.23 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.0002123/0.1662, allocations: 115.2 kB / 0.6997 GB, free: 12.11 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0006185/0.1668, allocations: 323.7 kB / 0.7 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1669, allocations: 4 kB / 0.7 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003251/0.1672, allocations: 179.8 kB / 0.7001 GB, free: 11.61 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000695/0.1679, allocations: 121.8 kB / 0.7003 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001953/0.1699, allocations: 1.419 MB / 0.7016 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004967/0.1704, allocations: 0.8668 MB / 0.7025 GB, free: 9.148 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001743/0.1705, allocations: 56.33 kB / 0.7025 GB, free: 9.094 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.665e-05/0.1706, allocations: 39.42 kB / 0.7026 GB, free: 9.055 MB / 0.4981 GB Notification: Performance of SimCode: time 2.8e-07/0.1706, allocations: 0 / 0.7026 GB, free: 9.055 MB / 0.4981 GB Notification: Performance of Templates: time 0.01019/0.1808, allocations: 5.601 MB / 0.7081 GB, free: 3.602 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)