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.001313/0.001313, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00153/0.00153, allocations: 193.8 kB / 16.25 MB, free: 6.629 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.312/1.312, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002085/0.002085, allocations: 282.8 kB / 290.4 MB, free: 2.152 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9425/0.9425, allocations: 169.2 MB / 0.4978 GB, free: 14.08 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001609/0.001609, allocations: 91.06 kB / 0.5947 GB, free: 28.25 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1325/0.1341, allocations: 86.99 MB / 0.6797 GB, free: 1.012 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.0048/0.139, allocations: 4.156 MB / 0.6837 GB, free: 12.85 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002917/0.1419, allocations: 2.367 MB / 0.686 GB, free: 10.47 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002116/0.1421, allocations: 12 kB / 0.6861 GB, free: 10.46 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001335/0.1435, allocations: 0.494 MB / 0.6865 GB, free: 9.965 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003665/0.1439, allocations: 218.3 kB / 0.6867 GB, free: 9.75 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001972/0.1441, allocations: 123.9 kB / 0.6869 GB, free: 9.629 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006967/0.1448, allocations: 0.7982 MB / 0.6876 GB, free: 8.828 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004029/0.1452, allocations: 338.5 kB / 0.688 GB, free: 8.496 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002829/0.1455, allocations: 290.9 kB / 0.6882 GB, free: 8.211 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003148/0.1458, allocations: 338.6 kB / 0.6886 GB, free: 7.879 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 7.705e-05/0.1459, allocations: 72 kB / 0.6886 GB, free: 7.809 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.604e-05/0.146, allocations: 76 kB / 0.6887 GB, free: 7.734 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001471/0.1462, allocations: 171.4 kB / 0.6889 GB, free: 7.566 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003/0.1465, allocations: 382.2 kB / 0.6892 GB, free: 7.191 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007609/0.1472, allocations: 0.9928 MB / 0.6902 GB, free: 6.195 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.1472, allocations: 0 / 0.6902 GB, free: 6.195 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1473, allocations: 0 / 0.6902 GB, free: 6.195 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.956e-06/0.1473, allocations: 0 / 0.6902 GB, free: 6.195 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.001282/0.1486, allocations: 0.9501 MB / 0.6911 GB, free: 5.195 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.176e-05/0.1486, allocations: 12.03 kB / 0.6911 GB, free: 5.184 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001067/0.1487, allocations: 72.09 kB / 0.6912 GB, free: 5.113 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005136/0.1492, allocations: 457.6 kB / 0.6916 GB, free: 4.625 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.799e-05/0.1493, allocations: 41.38 kB / 0.6917 GB, free: 4.586 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.928e-05/0.1493, allocations: 52.28 kB / 0.6917 GB, free: 4.535 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007288/0.1501, allocations: 430.8 kB / 0.6921 GB, free: 4.109 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.759e-05/0.1501, allocations: 0 / 0.6921 GB, free: 4.109 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.778e-05/0.1501, allocations: 20 kB / 0.6922 GB, free: 4.09 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.124e-05/0.1502, allocations: 12 kB / 0.6922 GB, free: 4.078 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006838/0.1508, allocations: 367.8 kB / 0.6925 GB, free: 3.719 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001905/0.1528, allocations: 1.528 MB / 0.694 GB, free: 2.121 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005064/0.1533, allocations: 336.4 kB / 0.6943 GB, free: 1.785 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004608/0.1538, allocations: 327.2 kB / 0.6947 GB, free: 1.465 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.811e-05/0.1538, allocations: 4 kB / 0.6947 GB, free: 1.461 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.486e-05/0.1538, allocations: 42.44 kB / 0.6947 GB, free: 1.41 MB / 494.1 MB Notification: Performance of pre-optimization done (n=42): time 1.633e-06/0.1538, allocations: 0 / 0.6947 GB, free: 1.41 MB / 494.1 MB Notification: Performance of matching and sorting (n=42): time 0.0009116/0.1547, allocations: 0.4892 MB / 0.6952 GB, free: 0.9141 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.497e-05/0.1548, allocations: 59.41 kB / 0.6952 GB, free: 0.8438 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005179/0.1553, allocations: 489.9 kB / 0.6957 GB, free: 364 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.598e-05/0.1554, allocations: 33.7 kB / 0.6957 GB, free: 324 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001658/0.1555, allocations: 272.4 kB / 0.696 GB, free: 48 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001177/0.1556, allocations: 149.8 kB / 0.6961 GB, free: 15.9 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.991e-05/0.1557, allocations: 58.08 kB / 0.6962 GB, free: 15.83 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001294/0.1559, allocations: 362.8 kB / 0.6965 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002463/0.1561, allocations: 124.7 kB / 0.6967 GB, free: 15.35 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002266/0.1564, allocations: 129.4 kB / 0.6968 GB, free: 15.22 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004891/0.1569, allocations: 298 kB / 0.6971 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.235e-06/0.1569, allocations: 0 / 0.6971 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006166/0.1575, allocations: 400.1 kB / 0.6974 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/0.1575, allocations: 4 kB / 0.6974 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.1575, allocations: 4 kB / 0.6975 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.177e-05/0.1576, allocations: 4 kB / 0.6975 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005078/0.1581, allocations: 123.9 kB / 0.6976 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.1581, allocations: 0 / 0.6976 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002535/0.1583, allocations: 51.56 kB / 0.6976 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.046e-05/0.1584, allocations: 16 kB / 0.6976 GB, free: 14.33 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.000198/0.1586, allocations: 198.3 kB / 0.6978 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.43e-05/0.1587, allocations: 59.36 kB / 0.6979 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001139/0.1588, allocations: 61.11 kB / 0.6979 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.079e-06/0.1588, allocations: 4 kB / 0.6979 GB, free: 14 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.1588, allocations: 0 / 0.6979 GB, free: 14 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.1588, allocations: 3.984 kB / 0.698 GB, free: 14 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005986/0.1594, allocations: 0.5712 MB / 0.6985 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.1594, allocations: 3.984 kB / 0.6985 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005039/0.1599, allocations: 139.7 kB / 0.6986 GB, free: 13.24 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.459e-06/0.16, allocations: 4 kB / 0.6987 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.162e-05/0.16, allocations: 4 kB / 0.6987 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.128e-06/0.16, allocations: 4 kB / 0.6987 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.16, allocations: 0 / 0.6987 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009352/0.1609, allocations: 0.6442 MB / 0.6993 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001143/0.1611, allocations: 136.5 kB / 0.6994 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.447e-05/0.1611, allocations: 12 kB / 0.6994 GB, free: 12.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002474/0.1614, allocations: 23.83 kB / 0.6995 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.61e-05/0.1615, allocations: 23.97 kB / 0.6995 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.831e-05/0.1615, allocations: 12 kB / 0.6995 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003587/0.1618, allocations: 355.1 kB / 0.6998 GB, free: 12 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.8e-07/0.1619, allocations: 0 / 0.6998 GB, free: 12 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003827/0.1622, allocations: 143.6 kB / 0.7 GB, free: 11.86 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.0001331/0.1624, allocations: 115.3 kB / 0.7001 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0006906/0.1631, allocations: 339.7 kB / 0.7004 GB, free: 11.4 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.1631, allocations: 0 / 0.7004 GB, free: 11.4 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002828/0.1634, allocations: 183.8 kB / 0.7006 GB, free: 11.22 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006741/0.1641, allocations: 129.8 kB / 0.7007 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001932/0.166, allocations: 1.421 MB / 0.7021 GB, free: 9.645 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004204/0.1664, allocations: 0.8704 MB / 0.7029 GB, free: 8.746 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001914/0.1666, allocations: 56.39 kB / 0.703 GB, free: 8.688 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001018/0.1667, allocations: 35.44 kB / 0.703 GB, free: 8.652 MB / 0.4981 GB Notification: Performance of SimCode: time 3.11e-07/0.1668, allocations: 0 / 0.703 GB, free: 8.652 MB / 0.4981 GB Notification: Performance of Templates: time 0.01022/0.177, allocations: 5.864 MB / 0.7087 GB, free: 2.945 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)