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.913/0.913, allocations: 141.8 MB / 149.3 MB, free: 9.23 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.001041/0.001041, allocations: 176.9 kB / 182.2 MB, free: 9.453 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.429/1.429, allocations: 221.5 MB / 436.4 MB, free: 13.26 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.0009422/0.0009419, allocations: 91.98 kB / 0.5074 GB, free: 10.09 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001683/0.001683, allocations: 275.9 kB / 0.5889 GB, free: 54.64 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.317e-05/2.32e-05, allocations: 7.984 kB / 0.6766 GB, free: 12.77 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4601/0.4602, allocations: 82.77 MB / 0.7574 GB, free: 32 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1526/0.6128, allocations: 118.6 MB / 0.8732 GB, free: 9.246 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000258/0.6132, allocations: 111.8 kB / 0.8733 GB, free: 9.141 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.05674/0.6699, allocations: 21.94 MB / 0.8947 GB, free: 3.137 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.103e-06/0.6699, allocations: 0 / 0.8947 GB, free: 3.137 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 1.583e-05/0.67, allocations: 12 kB / 0.8948 GB, free: 3.125 MB / 0.5573 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.001064/0.671, allocations: 0.7516 MB / 0.8955 GB, free: 2.324 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/0.6711, allocations: 16.03 kB / 0.8955 GB, free: 2.309 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001091/0.6712, allocations: 71.16 kB / 0.8956 GB, free: 2.238 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005826/0.6718, allocations: 446.9 kB / 0.896 GB, free: 1.758 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.55e-05/0.6718, allocations: 16 kB / 0.896 GB, free: 1.742 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.825e-05/0.6719, allocations: 28 kB / 0.896 GB, free: 1.715 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000539/0.6725, allocations: 302.6 kB / 0.8963 GB, free: 1.422 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005932/0.6731, allocations: 332 kB / 0.8966 GB, free: 1.09 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.933e-05/0.6731, allocations: 0 / 0.8966 GB, free: 1.09 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.118e-05/0.6731, allocations: 3.953 kB / 0.8966 GB, free: 1.086 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.052e-05/0.6731, allocations: 12 kB / 0.8967 GB, free: 1.074 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3977/1.071, allocations: 1.434 MB / 0.8981 GB, free: 126.5 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000538/1.071, allocations: 304.5 kB / 0.8984 GB, free: 126.4 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004445/1.072, allocations: 275.1 kB / 0.8986 GB, free: 126.4 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 3.258e-05/1.072, allocations: 4.938 kB / 0.8986 GB, free: 126.4 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.591e-05/1.072, allocations: 34.16 kB / 0.8987 GB, free: 126.4 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=42): time 3.015e-06/1.072, allocations: 0 / 0.8987 GB, free: 126.4 MB / 0.5573 GB Notification: Performance of matching and sorting (n=42): time 0.00075/1.073, allocations: 314.8 kB / 0.899 GB, free: 126.4 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.528e-05/1.073, allocations: 59.06 kB / 0.899 GB, free: 126.3 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005685/1.073, allocations: 373.8 kB / 0.8994 GB, free: 126.2 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 2.389e-05/1.073, allocations: 25.7 kB / 0.8994 GB, free: 126.2 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002398/1.074, allocations: 276 kB / 0.8997 GB, free: 126 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001177/1.074, allocations: 136 kB / 0.8998 GB, free: 126 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.311e-05/1.074, allocations: 0 / 0.8998 GB, free: 126 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001287/1.074, allocations: 361.2 kB / 0.9001 GB, free: 125.7 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001945/1.074, allocations: 98.06 kB / 0.9002 GB, free: 125.7 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001831/1.074, allocations: 106.2 kB / 0.9003 GB, free: 125.7 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002279/1.075, allocations: 115.9 kB / 0.9004 GB, free: 125.7 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/1.075, allocations: 0 / 0.9004 GB, free: 125.7 MB / 0.5573 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005371/1.075, allocations: 329.8 kB / 0.9007 GB, free: 125.6 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.133e-05/1.075, allocations: 4.25 kB / 0.9007 GB, free: 125.6 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/1.075, allocations: 1.547 kB / 0.9008 GB, free: 125.6 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/1.075, allocations: 1.688 kB / 0.9008 GB, free: 125.6 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005939/1.076, allocations: 135.9 kB / 0.9009 GB, free: 125.6 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.057e-06/1.076, allocations: 6.625 kB / 0.9009 GB, free: 125.6 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003039/1.076, allocations: 39.97 kB / 0.9009 GB, free: 125.6 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.507e-05/1.076, allocations: 14.61 kB / 0.9009 GB, free: 125.6 MB / 0.5573 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 () * 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 7.931e-05/1.076, allocations: 107.4 kB / 0.901 GB, free: 125.5 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.78e-05/1.076, allocations: 44.97 kB / 0.9011 GB, free: 125.4 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001236/1.076, allocations: 54.19 kB / 0.9011 GB, free: 125.4 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.234e-06/1.076, allocations: 7.328 kB / 0.9011 GB, free: 125.4 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.204e-05/1.076, allocations: 3.953 kB / 0.9011 GB, free: 125.4 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/1.076, allocations: 2.203 kB / 0.9012 GB, free: 125.4 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000691/1.077, allocations: 0.4965 MB / 0.9016 GB, free: 125.3 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.165e-06/1.077, allocations: 0 / 0.9016 GB, free: 125.3 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005496/1.078, allocations: 126 kB / 0.9018 GB, free: 125.3 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/1.078, allocations: 6.219 kB / 0.9018 GB, free: 125.3 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.359e-05/1.078, allocations: 2.25 kB / 0.9018 GB, free: 125.3 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/1.078, allocations: 1.5 kB / 0.9018 GB, free: 125.3 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/1.078, allocations: 1 kB / 0.9018 GB, free: 125.3 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007717/1.079, allocations: 0.5708 MB / 0.9023 GB, free: 125.1 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 9.76e-05/1.079, allocations: 130.7 kB / 0.9024 GB, free: 125 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.293e-05/1.079, allocations: 1 kB / 0.9024 GB, free: 125 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002348/1.079, allocations: 26.45 kB / 0.9025 GB, free: 125 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.221e-05/1.079, allocations: 22.94 kB / 0.9025 GB, free: 125 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.252e-05/1.079, allocations: 12.06 kB / 0.9025 GB, free: 125 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.000414/1.08, allocations: 298.2 kB / 0.9028 GB, free: 124.9 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.6e-07/1.08, allocations: 0.6562 kB / 0.9028 GB, free: 124.9 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0005152/1.08, allocations: 134 kB / 0.9029 GB, free: 124.9 MB / 0.5573 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 () * 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.000465/1.081, allocations: 271.3 kB / 0.9032 GB, free: 124.8 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0004673/1.081, allocations: 279.2 kB / 0.9034 GB, free: 124.8 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/1.081, allocations: 0 / 0.9034 GB, free: 124.8 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0002124/1.081, allocations: 156.6 kB / 0.9036 GB, free: 124.8 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005278/1.082, allocations: 85.2 kB / 0.9037 GB, free: 124.8 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001738/1.084, allocations: 0.8845 MB / 0.9045 GB, free: 124.5 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004171/1.084, allocations: 0.8818 MB / 0.9054 GB, free: 123.8 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0002057/1.084, allocations: 46.47 kB / 0.9054 GB, free: 123.7 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.455e-05/1.084, allocations: 35.81 kB / 0.9055 GB, free: 123.7 MB / 0.5573 GB Notification: Performance of SimCode: time 2.31e-07/1.084, allocations: 0 / 0.9055 GB, free: 123.7 MB / 0.5573 GB Notification: Performance of Templates: time 0.01197/1.096, allocations: 4.848 MB / 0.9102 GB, free: 123.4 MB / 0.5573 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)