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.001107/0.001107, allocations: 91.22 kB / 15.06 MB, free: 1.094 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.001568/0.001568, allocations: 172.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.353/1.353, allocations: 223.3 MB / 240 MB, free: 5.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001695/0.001695, allocations: 262.6 kB / 291.3 MB, free: 1.977 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.023/1.023, allocations: 169.5 MB / 0.5 GB, free: 14.21 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004141/0.0004141, allocations: 20.47 kB / 0.598 GB, free: 28.14 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1525/0.1529, allocations: 88.54 MB / 0.6845 GB, free: 15.41 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.003666/0.1566, allocations: 3.57 MB / 0.688 GB, free: 11.83 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002571/0.1592, allocations: 2.211 MB / 0.6902 GB, free: 9.625 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000198/0.1594, allocations: 11.94 kB / 0.6902 GB, free: 9.613 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001016/0.1604, allocations: 464 kB / 0.6906 GB, free: 9.16 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003604/0.1608, allocations: 216.7 kB / 0.6908 GB, free: 8.949 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001594/0.161, allocations: 75.94 kB / 0.6909 GB, free: 8.875 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006991/0.1617, allocations: 0.7609 MB / 0.6916 GB, free: 8.113 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003516/0.162, allocations: 246.2 kB / 0.6919 GB, free: 7.867 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002457/0.1623, allocations: 228.4 kB / 0.6921 GB, free: 7.645 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002883/0.1626, allocations: 278.8 kB / 0.6924 GB, free: 7.371 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.127e-05/0.1626, allocations: 32 kB / 0.6924 GB, free: 7.34 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.557e-05/0.1627, allocations: 36.75 kB / 0.6924 GB, free: 7.305 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001248/0.1629, allocations: 127.4 kB / 0.6925 GB, free: 7.18 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001152/0.163, allocations: 162 kB / 0.6927 GB, free: 7.016 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005997/0.1636, allocations: 0.7906 MB / 0.6935 GB, free: 6.223 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1636, allocations: 7.938 kB / 0.6935 GB, free: 6.215 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1636, allocations: 0 / 0.6935 GB, free: 6.215 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.644e-06/0.1636, allocations: 0 / 0.6935 GB, free: 6.215 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.001101/0.1647, allocations: 0.8449 MB / 0.6943 GB, free: 5.32 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.062e-05/0.1648, allocations: 8.031 kB / 0.6943 GB, free: 5.312 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.947e-05/0.1649, allocations: 75.11 kB / 0.6944 GB, free: 5.238 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005093/0.1654, allocations: 444.7 kB / 0.6948 GB, free: 4.766 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.95e-05/0.1654, allocations: 37 kB / 0.6948 GB, free: 4.73 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.968e-05/0.1655, allocations: 51.98 kB / 0.6949 GB, free: 4.68 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007196/0.1662, allocations: 422.5 kB / 0.6953 GB, free: 4.258 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.587e-05/0.1662, allocations: 0 / 0.6953 GB, free: 4.258 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.427e-05/0.1663, allocations: 20 kB / 0.6953 GB, free: 4.238 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.659e-06/0.1663, allocations: 12 kB / 0.6953 GB, free: 4.227 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006571/0.167, allocations: 383.8 kB / 0.6957 GB, free: 3.852 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001855/0.1688, allocations: 1.539 MB / 0.6972 GB, free: 2.242 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004998/0.1693, allocations: 339.6 kB / 0.6975 GB, free: 1.898 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004867/0.1698, allocations: 354.7 kB / 0.6979 GB, free: 1.551 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.463e-05/0.1699, allocations: 8 kB / 0.6979 GB, free: 1.543 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.224e-05/0.1699, allocations: 38.56 kB / 0.6979 GB, free: 1.496 MB / 494.1 MB Notification: Performance of pre-optimization done (n=42): time 1.382e-06/0.1699, allocations: 0 / 0.6979 GB, free: 1.496 MB / 494.1 MB Notification: Performance of matching and sorting (n=42): time 0.000893/0.1708, allocations: 0.5048 MB / 0.6984 GB, free: 0.9844 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.437e-05/0.1709, allocations: 55.41 kB / 0.6984 GB, free: 0.918 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005048/0.1714, allocations: 481.9 kB / 0.6989 GB, free: 456 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.554e-05/0.1714, allocations: 37.7 kB / 0.6989 GB, free: 412 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001761/0.1716, allocations: 276.3 kB / 0.6992 GB, free: 132 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00012/0.1717, allocations: 145.8 kB / 0.6993 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.677e-05/0.1717, allocations: 8 kB / 0.6993 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001435/0.1719, allocations: 366.7 kB / 0.6997 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002358/0.1721, allocations: 128.7 kB / 0.6998 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002328/0.1724, allocations: 133.2 kB / 0.6999 GB, free: 15.35 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002508/0.1726, allocations: 145.9 kB / 0.7001 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.1726, allocations: 4.703 kB / 0.7001 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006144/0.1733, allocations: 404.5 kB / 0.7005 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.34e-05/0.1733, allocations: 4 kB / 0.7005 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.1733, allocations: 0 / 0.7005 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.177e-05/0.1733, allocations: 8 kB / 0.7005 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004873/0.1738, allocations: 123.9 kB / 0.7006 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.939e-06/0.1738, allocations: 4 kB / 0.7006 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002272/0.1741, allocations: 59.59 kB / 0.7007 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.024e-05/0.1741, allocations: 12 kB / 0.7007 GB, free: 14.6 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001965/0.1743, allocations: 190.4 kB / 0.7009 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.157e-05/0.1744, allocations: 55.34 kB / 0.7009 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001147/0.1745, allocations: 61.09 kB / 0.701 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.1745, allocations: 4 kB / 0.701 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.1745, allocations: 0 / 0.701 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.1745, allocations: 3.984 kB / 0.701 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006016/0.1751, allocations: 0.5789 MB / 0.7015 GB, free: 13.65 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.1751, allocations: 0 / 0.7015 GB, free: 13.65 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004918/0.1756, allocations: 131.8 kB / 0.7017 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.1756, allocations: 0 / 0.7017 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.415e-05/0.1757, allocations: 12 kB / 0.7017 GB, free: 13.51 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.497e-06/0.1757, allocations: 4 kB / 0.7017 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.1757, allocations: 0 / 0.7017 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009335/0.1766, allocations: 0.6747 MB / 0.7023 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001141/0.1768, allocations: 136.5 kB / 0.7025 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.611e-05/0.1768, allocations: 8 kB / 0.7025 GB, free: 12.65 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002213/0.177, allocations: 23.98 kB / 0.7025 GB, free: 12.63 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.153e-05/0.1771, allocations: 19.97 kB / 0.7025 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.768e-05/0.1771, allocations: 12 kB / 0.7025 GB, free: 12.6 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.00036/0.1775, allocations: 347.1 kB / 0.7029 GB, free: 12.26 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1775, allocations: 0 / 0.7029 GB, free: 12.26 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003916/0.1779, allocations: 151.5 kB / 0.703 GB, free: 12.11 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000125/0.178, allocations: 115.2 kB / 0.7031 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005631/0.1786, allocations: 327.5 kB / 0.7034 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.1786, allocations: 7.938 kB / 0.7034 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002819/0.1789, allocations: 183.8 kB / 0.7036 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006338/0.1795, allocations: 125.9 kB / 0.7037 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001814/0.1814, allocations: 1.429 MB / 0.7051 GB, free: 9.895 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003979/0.1818, allocations: 0.8746 MB / 0.706 GB, free: 8.992 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001968/0.182, allocations: 52.39 kB / 0.706 GB, free: 8.941 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.347e-05/0.1821, allocations: 35.44 kB / 0.7061 GB, free: 8.906 MB / 0.4981 GB Notification: Performance of SimCode: time 2.7e-07/0.1821, allocations: 0 / 0.7061 GB, free: 8.906 MB / 0.4981 GB Notification: Performance of Templates: time 0.009439/0.1915, allocations: 5.389 MB / 0.7113 GB, free: 3.668 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)