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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 0.7825/0.7825, allocations: 143.4 MB / 159.2 MB, free: 4.828 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001158/0.001158, allocations: 188.5 kB / 191.9 MB, free: 5.695 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.33/1.33, allocations: 222.9 MB / 447.3 MB, free: 5.855 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009923/0.0009923, allocations: 95.69 kB / 0.517 GB, free: 3.703 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001835/0.001835, allocations: 285.3 kB / 0.5973 GB, free: 49.37 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001462/0.001462, allocations: 87.88 kB / 0.6886 GB, free: 3.789 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3292/0.3307, allocations: 81.28 MB / 0.768 GB, free: 27.67 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.003988/0.3347, allocations: 4.157 MB / 0.772 GB, free: 23.5 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.002289/0.337, allocations: 2.379 MB / 0.7744 GB, free: 21.11 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002155/0.3372, allocations: 8 kB / 0.7744 GB, free: 21.1 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00118/0.3385, allocations: 0.5018 MB / 0.7749 GB, free: 20.59 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003258/0.3388, allocations: 218.4 kB / 0.7751 GB, free: 20.38 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001664/0.339, allocations: 123.9 kB / 0.7752 GB, free: 20.26 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005018/0.3395, allocations: 0.8098 MB / 0.776 GB, free: 19.45 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000313/0.3398, allocations: 276.2 kB / 0.7762 GB, free: 19.18 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002052/0.34, allocations: 270.9 kB / 0.7765 GB, free: 18.91 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002402/0.3403, allocations: 318.6 kB / 0.7768 GB, free: 18.6 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 5.686e-05/0.3403, allocations: 48 kB / 0.7768 GB, free: 18.55 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.409e-05/0.3404, allocations: 52 kB / 0.7769 GB, free: 18.5 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001042/0.3405, allocations: 143.4 kB / 0.777 GB, free: 18.36 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002161/0.3407, allocations: 358.3 kB / 0.7774 GB, free: 18.01 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005117/0.3413, allocations: 0.9577 MB / 0.7783 GB, free: 17.05 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.3413, allocations: 3.938 kB / 0.7783 GB, free: 17.04 MB / 458.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.3413, allocations: 0 / 0.7783 GB, free: 17.04 MB / 458.7 MB Notification: Performance of Transformations before backend: time 8.125e-06/0.3413, allocations: 3.938 kB / 0.7783 GB, free: 17.04 MB / 458.7 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.001175/0.3425, allocations: 0.9463 MB / 0.7792 GB, free: 16.04 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/0.3425, allocations: 16.03 kB / 0.7793 GB, free: 16.03 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.205e-05/0.3426, allocations: 72.09 kB / 0.7793 GB, free: 15.96 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004186/0.343, allocations: 453.7 kB / 0.7798 GB, free: 15.47 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.233e-05/0.3431, allocations: 41.31 kB / 0.7798 GB, free: 15.43 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.8e-05/0.3431, allocations: 48.28 kB / 0.7798 GB, free: 15.39 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005802/0.3437, allocations: 434.8 kB / 0.7803 GB, free: 14.95 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.677e-05/0.3437, allocations: 0 / 0.7803 GB, free: 14.95 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.194e-05/0.3438, allocations: 20 kB / 0.7803 GB, free: 14.93 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.828e-06/0.3438, allocations: 12 kB / 0.7803 GB, free: 14.92 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005856/0.3444, allocations: 367.8 kB / 0.7806 GB, free: 14.56 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001568/0.346, allocations: 1.531 MB / 0.7821 GB, free: 12.96 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000423/0.3464, allocations: 351.7 kB / 0.7825 GB, free: 12.61 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003752/0.3468, allocations: 316.9 kB / 0.7828 GB, free: 12.3 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.555e-05/0.3468, allocations: 4 kB / 0.7828 GB, free: 12.29 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.775e-05/0.3468, allocations: 38.5 kB / 0.7828 GB, free: 12.25 MB / 458.7 MB Notification: Performance of pre-optimization done (n=42): time 1.483e-06/0.3469, allocations: 0 / 0.7828 GB, free: 12.25 MB / 458.7 MB Notification: Performance of matching and sorting (n=42): time 0.0007839/0.3476, allocations: 0.5008 MB / 0.7833 GB, free: 11.74 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.685e-05/0.3477, allocations: 55.41 kB / 0.7834 GB, free: 11.67 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004107/0.3481, allocations: 485.9 kB / 0.7838 GB, free: 11.19 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 1.913e-05/0.3481, allocations: 33.7 kB / 0.7839 GB, free: 11.15 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001217/0.3482, allocations: 268.5 kB / 0.7841 GB, free: 10.88 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.42e-05/0.3483, allocations: 153.8 kB / 0.7843 GB, free: 10.73 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.925e-05/0.3484, allocations: 58.08 kB / 0.7843 GB, free: 10.66 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 7.823e-05/0.3485, allocations: 362.8 kB / 0.7847 GB, free: 10.3 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002085/0.3487, allocations: 124.7 kB / 0.7848 GB, free: 10.18 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000196/0.3489, allocations: 125.2 kB / 0.7849 GB, free: 10.06 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004186/0.3494, allocations: 302.1 kB / 0.7852 GB, free: 9.762 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.3494, allocations: 0 / 0.7852 GB, free: 9.762 MB / 458.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005309/0.3499, allocations: 396.5 kB / 0.7856 GB, free: 9.367 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/0.3499, allocations: 4 kB / 0.7856 GB, free: 9.363 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.3499, allocations: 0 / 0.7856 GB, free: 9.363 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.604e-05/0.35, allocations: 4 kB / 0.7856 GB, free: 9.359 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004522/0.3504, allocations: 123.9 kB / 0.7857 GB, free: 9.238 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.043e-06/0.3504, allocations: 0 / 0.7857 GB, free: 9.238 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002311/0.3507, allocations: 55.56 kB / 0.7857 GB, free: 9.184 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.84e-05/0.3507, allocations: 12 kB / 0.7857 GB, free: 9.172 MB / 458.7 MB 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.0001448/0.3508, allocations: 189.8 kB / 0.7859 GB, free: 8.977 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.995e-05/0.3509, allocations: 55.36 kB / 0.786 GB, free: 8.922 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001002/0.351, allocations: 57.11 kB / 0.786 GB, free: 8.867 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.351, allocations: 7.984 kB / 0.786 GB, free: 8.859 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.351, allocations: 11.88 kB / 0.7861 GB, free: 8.848 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.581e-06/0.351, allocations: 3.984 kB / 0.7861 GB, free: 8.844 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004812/0.3515, allocations: 0.5711 MB / 0.7866 GB, free: 8.223 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.3515, allocations: 7.984 kB / 0.7866 GB, free: 8.215 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000466/0.352, allocations: 127.8 kB / 0.7867 GB, free: 8.09 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.352, allocations: 4 kB / 0.7868 GB, free: 8.086 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.312e-05/0.3521, allocations: 8 kB / 0.7868 GB, free: 8.078 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.3521, allocations: 4 kB / 0.7868 GB, free: 8.074 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3521, allocations: 0 / 0.7868 GB, free: 8.074 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004318/0.3564, allocations: 3.828 MB / 0.7905 GB, free: 4.098 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.375e-05/0.3565, allocations: 136.4 kB / 0.7906 GB, free: 3.945 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.711e-05/0.3566, allocations: 11.94 kB / 0.7906 GB, free: 3.934 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002272/0.3568, allocations: 23.98 kB / 0.7907 GB, free: 3.91 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.758e-05/0.3569, allocations: 23.95 kB / 0.7907 GB, free: 3.887 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.552e-05/0.3569, allocations: 8 kB / 0.7907 GB, free: 3.879 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0002925/0.3572, allocations: 351.1 kB / 0.791 GB, free: 3.539 MB / 458.7 MB Notification: Performance of sort global known variables: time 7.21e-07/0.3572, allocations: 0 / 0.791 GB, free: 3.539 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0005608/0.3577, allocations: 223.5 kB / 0.7912 GB, free: 3.32 MB / 458.7 MB 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.0001211/0.3579, allocations: 127.6 kB / 0.7914 GB, free: 3.188 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0005135/0.3584, allocations: 319.7 kB / 0.7917 GB, free: 2.875 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3584, allocations: 0 / 0.7917 GB, free: 2.875 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000241/0.3587, allocations: 179.9 kB / 0.7918 GB, free: 2.699 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006731/0.3593, allocations: 127 kB / 0.792 GB, free: 2.574 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001864/0.3612, allocations: 1.691 MB / 0.7936 GB, free: 0.8516 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003171/0.3615, allocations: 0.8862 MB / 0.7945 GB, free: 15.94 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0002532/0.3618, allocations: 68.34 kB / 0.7945 GB, free: 15.87 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001159/0.3619, allocations: 39.44 kB / 0.7946 GB, free: 15.83 MB / 474.7 MB Notification: Performance of SimCode: time 2.4e-07/0.3619, allocations: 4 kB / 0.7946 GB, free: 15.83 MB / 474.7 MB Notification: Performance of Templates: time 0.0121/0.374, allocations: 6.666 MB / 0.8011 GB, free: 9.297 MB / 474.7 MB 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)