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.001705/0.001705, 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.001445/0.001445, allocations: 193 kB / 16.25 MB, free: 6.637 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.404/1.404, allocations: 222.9 MB / 239.9 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002524/0.002524, allocations: 286.8 kB / 290.4 MB, free: 2.16 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.059/1.059, allocations: 178.6 MB / 0.5069 GB, free: 4.758 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002773/0.002773, allocations: 101.4 kB / 0.606 GB, free: 24.98 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1467/0.1495, allocations: 89.15 MB / 0.693 GB, free: 4.68 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.00563/0.1551, allocations: 4.162 MB / 0.6971 GB, free: 0.5039 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003338/0.1585, allocations: 2.379 MB / 0.6994 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001951/0.1587, allocations: 8 kB / 0.6994 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001376/0.1601, allocations: 0.4978 MB / 0.6999 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0004077/0.1605, allocations: 222.4 kB / 0.7001 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002106/0.1607, allocations: 115.9 kB / 0.7002 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0008401/0.1616, allocations: 0.8121 MB / 0.701 GB, free: 12.47 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004497/0.1621, allocations: 326.5 kB / 0.7013 GB, free: 12.15 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003177/0.1624, allocations: 295 kB / 0.7016 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003583/0.1627, allocations: 330.6 kB / 0.7019 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 8.871e-05/0.1628, allocations: 76 kB / 0.702 GB, free: 11.46 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000108/0.163, allocations: 76 kB / 0.7021 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001717/0.1631, allocations: 167.4 kB / 0.7022 GB, free: 11.22 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003632/0.1635, allocations: 394.2 kB / 0.7026 GB, free: 10.84 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.000888/0.1644, allocations: 0.985 MB / 0.7036 GB, free: 9.848 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.1644, allocations: 0 / 0.7036 GB, free: 9.848 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.162e-06/0.1644, allocations: 0 / 0.7036 GB, free: 9.848 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.526e-06/0.1644, allocations: 4 kB / 0.7036 GB, free: 9.844 MB / 0.4981 GB 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.001433/0.1659, allocations: 0.9463 MB / 0.7045 GB, free: 8.848 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.392e-05/0.1659, allocations: 8.031 kB / 0.7045 GB, free: 8.84 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001224/0.166, allocations: 76 kB / 0.7046 GB, free: 8.766 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005802/0.1666, allocations: 457.6 kB / 0.705 GB, free: 8.281 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.461e-05/0.1667, allocations: 37.38 kB / 0.7051 GB, free: 8.246 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.393e-05/0.1667, allocations: 48.38 kB / 0.7051 GB, free: 8.199 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008079/0.1676, allocations: 426.8 kB / 0.7055 GB, free: 7.777 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.923e-05/0.1676, allocations: 11.92 kB / 0.7055 GB, free: 7.766 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.836e-05/0.1676, allocations: 16 kB / 0.7055 GB, free: 7.75 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.383e-05/0.1677, allocations: 12 kB / 0.7055 GB, free: 7.738 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007253/0.1684, allocations: 367.8 kB / 0.7059 GB, free: 7.375 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002139/0.1705, allocations: 1.528 MB / 0.7074 GB, free: 5.777 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000554/0.1711, allocations: 342.9 kB / 0.7077 GB, free: 5.434 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005083/0.1716, allocations: 325.8 kB / 0.708 GB, free: 5.113 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.773e-05/0.1717, allocations: 4 kB / 0.708 GB, free: 5.109 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.596e-05/0.1717, allocations: 46.5 kB / 0.7081 GB, free: 5.055 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=42): time 1.453e-06/0.1717, allocations: 0 / 0.7081 GB, free: 5.055 MB / 0.4981 GB Notification: Performance of matching and sorting (n=42): time 0.0009714/0.1727, allocations: 498.2 kB / 0.7085 GB, free: 4.562 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.449e-05/0.1727, allocations: 55.41 kB / 0.7086 GB, free: 4.496 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006101/0.1734, allocations: 485.9 kB / 0.7091 GB, free: 4.008 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.865e-05/0.1734, allocations: 33.64 kB / 0.7091 GB, free: 3.969 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002173/0.1736, allocations: 280.3 kB / 0.7094 GB, free: 3.691 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001329/0.1738, allocations: 153.8 kB / 0.7095 GB, free: 3.539 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001041/0.1739, allocations: 66.06 kB / 0.7096 GB, free: 3.465 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001775/0.174, allocations: 358.8 kB / 0.7099 GB, free: 3.105 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002577/0.1743, allocations: 116.7 kB / 0.71 GB, free: 2.992 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002429/0.1746, allocations: 129.4 kB / 0.7102 GB, free: 2.867 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005404/0.1751, allocations: 298 kB / 0.7104 GB, free: 2.574 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.1751, allocations: 4 kB / 0.7104 GB, free: 2.57 MB / 0.4981 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000665/0.1758, allocations: 392.4 kB / 0.7108 GB, free: 2.18 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/0.1758, allocations: 4 kB / 0.7108 GB, free: 2.176 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-06/0.1758, allocations: 0 / 0.7108 GB, free: 2.176 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.178e-05/0.1758, allocations: 0 / 0.7108 GB, free: 2.176 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005068/0.1764, allocations: 127.8 kB / 0.7109 GB, free: 2.051 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.046e-06/0.1764, allocations: 7.984 kB / 0.7109 GB, free: 2.043 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002492/0.1766, allocations: 47.67 kB / 0.711 GB, free: 1.996 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.341e-05/0.1767, allocations: 12 kB / 0.711 GB, free: 1.984 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.0002204/0.1769, allocations: 193.8 kB / 0.7112 GB, free: 1.785 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.418e-05/0.177, allocations: 55.28 kB / 0.7112 GB, free: 1.73 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001221/0.1771, allocations: 69.09 kB / 0.7113 GB, free: 1.664 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.593e-06/0.1771, allocations: 4 kB / 0.7113 GB, free: 1.66 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.1771, allocations: 4 kB / 0.7113 GB, free: 1.656 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.898e-06/0.1771, allocations: 0 / 0.7113 GB, free: 1.656 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006976/0.1778, allocations: 0.5674 MB / 0.7119 GB, free: 1.039 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.1779, allocations: 0 / 0.7119 GB, free: 1.039 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005201/0.1784, allocations: 127.8 kB / 0.712 GB, free: 0.9141 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.1784, allocations: 3.938 kB / 0.712 GB, free: 0.9102 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.606e-05/0.1784, allocations: 12 kB / 0.712 GB, free: 0.8984 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.073e-06/0.1784, allocations: 4 kB / 0.712 GB, free: 0.8945 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.1784, allocations: 0 / 0.712 GB, free: 0.8945 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001022/0.1795, allocations: 0.6548 MB / 0.7126 GB, free: 228 kB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001379/0.1796, allocations: 144.3 kB / 0.7128 GB, free: 64 kB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.888e-05/0.1797, allocations: 4 kB / 0.7128 GB, free: 60 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002366/0.1799, allocations: 27.98 kB / 0.7128 GB, free: 32 kB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.943e-05/0.18, allocations: 19.95 kB / 0.7128 GB, free: 12 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.292e-05/0.18, allocations: 15.98 kB / 0.7129 GB, free: 15.99 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0004027/0.1804, allocations: 347.1 kB / 0.7132 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1804, allocations: 0 / 0.7132 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0004023/0.1809, allocations: 147.6 kB / 0.7133 GB, free: 15.52 MB / 0.5137 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.0001476/0.181, allocations: 123.2 kB / 0.7134 GB, free: 15.39 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0007407/0.1818, allocations: 331.5 kB / 0.7138 GB, free: 15.06 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.1818, allocations: 0 / 0.7138 GB, free: 15.06 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0003074/0.1821, allocations: 180.1 kB / 0.7139 GB, free: 14.89 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006935/0.1828, allocations: 132.8 kB / 0.7141 GB, free: 14.76 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002087/0.1849, allocations: 1.418 MB / 0.7154 GB, free: 13.31 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005139/0.1854, allocations: 0.8704 MB / 0.7163 GB, free: 12.42 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001971/0.1856, allocations: 64.38 kB / 0.7164 GB, free: 12.35 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.901e-05/0.1857, allocations: 35.44 kB / 0.7164 GB, free: 12.32 MB / 0.5137 GB Notification: Performance of SimCode: time 2.6e-07/0.1857, allocations: 0 / 0.7164 GB, free: 12.32 MB / 0.5137 GB Notification: Performance of Templates: time 0.01161/0.1973, allocations: 5.862 MB / 0.7221 GB, free: 6.609 MB / 0.5137 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)