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.8212/0.8212, allocations: 143.4 MB / 158.3 MB, free: 5.668 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.001174/0.001174, allocations: 177 kB / 191.5 MB, free: 5.664 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.529/1.529, allocations: 223.2 MB / 447.7 MB, free: 4.832 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.0009331/0.0009332, allocations: 96.27 kB / 0.5188 GB, free: 1.188 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001731/0.001731, allocations: 285 kB / 0.6005 GB, free: 48.77 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000458/0.000458, allocations: 15.38 kB / 0.6929 GB, free: 59.54 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1726/0.1731, allocations: 82.79 MB / 0.7738 GB, free: 13.83 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5995/0.7727, allocations: 119.3 MB / 0.8903 GB, free: 21.91 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002899/0.773, allocations: 118.2 kB / 0.8904 GB, free: 21.91 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.05783/0.8308, allocations: 22.2 MB / 0.9121 GB, free: 20.06 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.565e-06/0.8309, allocations: 0 / 0.9121 GB, free: 20.06 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.538e-05/0.8309, allocations: 11.84 kB / 0.9121 GB, free: 20.06 MB / 0.5417 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.001091/0.832, allocations: 0.8419 MB / 0.9129 GB, free: 19.48 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.998e-05/0.8321, allocations: 14.67 kB / 0.9129 GB, free: 19.48 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001057/0.8322, allocations: 70.31 kB / 0.913 GB, free: 19.45 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005065/0.8327, allocations: 437.5 kB / 0.9134 GB, free: 19.18 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.613e-05/0.8327, allocations: 42.95 kB / 0.9134 GB, free: 19.18 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.52e-05/0.8328, allocations: 49.69 kB / 0.9135 GB, free: 19.18 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00066/0.8335, allocations: 418.5 kB / 0.9139 GB, free: 19.13 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.866e-05/0.8335, allocations: 0 / 0.9139 GB, free: 19.13 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.118e-05/0.8335, allocations: 26.59 kB / 0.9139 GB, free: 19.12 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.18e-05/0.8336, allocations: 15.55 kB / 0.9139 GB, free: 19.12 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006034/0.8342, allocations: 365.6 kB / 0.9143 GB, free: 19.12 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001765/0.8359, allocations: 1.557 MB / 0.9158 GB, free: 18.62 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004447/0.8364, allocations: 337.4 kB / 0.9161 GB, free: 18.58 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.34e-05/0.8364, allocations: 3.875 kB / 0.9161 GB, free: 18.58 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.111e-05/0.8365, allocations: 38.31 kB / 0.9162 GB, free: 18.54 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=42): time 1.874e-06/0.8365, allocations: 0 / 0.9162 GB, free: 18.54 MB / 0.5417 GB Notification: Performance of matching and sorting (n=42): time 0.0008041/0.8373, allocations: 0.5024 MB / 0.9166 GB, free: 18.46 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.356e-05/0.8373, allocations: 55.28 kB / 0.9167 GB, free: 18.4 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004518/0.8378, allocations: 436.8 kB / 0.9171 GB, free: 18.3 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.227e-05/0.8378, allocations: 29.64 kB / 0.9171 GB, free: 18.27 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001478/0.838, allocations: 264.8 kB / 0.9174 GB, free: 18.14 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 9.017e-05/0.8381, allocations: 154.8 kB / 0.9175 GB, free: 18.04 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.469e-05/0.8381, allocations: 7.5 kB / 0.9175 GB, free: 18.04 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 9.709e-05/0.8382, allocations: 361.9 kB / 0.9179 GB, free: 17.73 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002352/0.8384, allocations: 119.6 kB / 0.918 GB, free: 17.72 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002095/0.8386, allocations: 129.7 kB / 0.9181 GB, free: 17.72 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002626/0.8389, allocations: 151.8 kB / 0.9183 GB, free: 17.71 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.8389, allocations: 3.938 kB / 0.9183 GB, free: 17.7 MB / 0.5417 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006228/0.8396, allocations: 396.2 kB / 0.9187 GB, free: 17.64 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.045e-05/0.8396, allocations: 6.062 kB / 0.9187 GB, free: 17.64 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.984e-06/0.8396, allocations: 7.656 kB / 0.9187 GB, free: 17.63 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.459e-05/0.8396, allocations: 0 / 0.9187 GB, free: 17.63 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004759/0.8401, allocations: 123.8 kB / 0.9188 GB, free: 17.63 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.8401, allocations: 6.047 kB / 0.9188 GB, free: 17.63 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000263/0.8404, allocations: 53.84 kB / 0.9188 GB, free: 17.61 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.093e-05/0.8404, allocations: 10.09 kB / 0.9189 GB, free: 17.61 MB / 0.5417 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.0002347/0.8406, allocations: 199.1 kB / 0.919 GB, free: 17.48 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.648e-05/0.8407, allocations: 47.34 kB / 0.9191 GB, free: 17.46 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001324/0.8409, allocations: 63.98 kB / 0.9192 GB, free: 17.45 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.81e-06/0.8409, allocations: 3.906 kB / 0.9192 GB, free: 17.45 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/0.8409, allocations: 4 kB / 0.9192 GB, free: 17.45 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.8409, allocations: 0.75 kB / 0.9192 GB, free: 17.45 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006626/0.8416, allocations: 0.5728 MB / 0.9197 GB, free: 17.25 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.816e-06/0.8416, allocations: 3.953 kB / 0.9197 GB, free: 17.24 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004814/0.8421, allocations: 123 kB / 0.9198 GB, free: 17.24 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.8421, allocations: 3.906 kB / 0.9198 GB, free: 17.24 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.492e-05/0.8421, allocations: 13.19 kB / 0.9199 GB, free: 17.23 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.973e-06/0.8421, allocations: 3.875 kB / 0.9199 GB, free: 17.23 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.8421, allocations: 4 kB / 0.9199 GB, free: 17.23 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008314/0.843, allocations: 0.6623 MB / 0.9205 GB, free: 17.05 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001094/0.8431, allocations: 138.9 kB / 0.9206 GB, free: 16.93 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.605e-05/0.8431, allocations: 10.12 kB / 0.9207 GB, free: 16.93 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000222/0.8434, allocations: 18.64 kB / 0.9207 GB, free: 16.93 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.073e-05/0.8434, allocations: 22.66 kB / 0.9207 GB, free: 16.93 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.563e-05/0.8435, allocations: 11.31 kB / 0.9207 GB, free: 16.93 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0003074/0.8438, allocations: 350.5 kB / 0.921 GB, free: 16.84 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8438, allocations: 7.781 kB / 0.921 GB, free: 16.83 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0004584/0.8442, allocations: 156.5 kB / 0.9212 GB, free: 16.81 MB / 0.5417 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.0003635/0.8446, allocations: 273.2 kB / 0.9215 GB, free: 16.68 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0005123/0.8451, allocations: 329.3 kB / 0.9218 GB, free: 16.66 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.8451, allocations: 0 / 0.9218 GB, free: 16.66 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0002383/0.8454, allocations: 192.7 kB / 0.922 GB, free: 16.64 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000543/0.8459, allocations: 114.9 kB / 0.9221 GB, free: 16.63 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001694/0.8476, allocations: 1.425 MB / 0.9235 GB, free: 15.84 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002803/0.8479, allocations: 0.8877 MB / 0.9243 GB, free: 15.14 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.000193/0.8481, allocations: 58.17 kB / 0.9244 GB, free: 15.12 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.521e-05/0.8482, allocations: 34.53 kB / 0.9244 GB, free: 15.11 MB / 0.5417 GB Notification: Performance of SimCode: time 4.61e-07/0.8482, allocations: 0 / 0.9244 GB, free: 15.11 MB / 0.5417 GB Notification: Performance of Templates: time 0.01147/0.8597, allocations: 7.054 MB / 0.9313 GB, free: 13.89 MB / 0.5417 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)