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.001392/0.001393, allocations: 107.3 kB / 16.41 MB, free: 6.488 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.001057/0.001057, allocations: 185.6 kB / 17.34 MB, free: 5.766 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.357/1.357, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002314/0.002315, allocations: 288.5 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.933/0.933, allocations: 169.2 MB / 0.499 GB, free: 4.449 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003537/0.003537, allocations: 107.8 kB / 0.6822 GB, free: 6.918 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4676/0.4711, allocations: 86.98 MB / 0.7671 GB, free: 3.902 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.006905/0.4781, allocations: 4.143 MB / 0.7711 GB, free: 15.74 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.003686/0.4819, allocations: 2.398 MB / 0.7735 GB, free: 13.33 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005719/0.4825, allocations: 8 kB / 0.7735 GB, free: 13.32 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001842/0.4844, allocations: 0.5389 MB / 0.774 GB, free: 12.79 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0008409/0.4852, allocations: 254 kB / 0.7743 GB, free: 12.54 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002991/0.4856, allocations: 139.9 kB / 0.7744 GB, free: 12.4 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0009237/0.4865, allocations: 0.8175 MB / 0.7752 GB, free: 11.58 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004471/0.4869, allocations: 334.5 kB / 0.7755 GB, free: 11.25 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003347/0.4873, allocations: 291 kB / 0.7758 GB, free: 10.96 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003196/0.4876, allocations: 330.6 kB / 0.7761 GB, free: 10.64 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 7.753e-05/0.4877, allocations: 72 kB / 0.7762 GB, free: 10.57 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 9.78e-05/0.4878, allocations: 76 kB / 0.7762 GB, free: 10.49 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001521/0.488, allocations: 167.5 kB / 0.7764 GB, free: 10.33 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0003065/0.4883, allocations: 382.3 kB / 0.7768 GB, free: 9.953 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0008544/0.4891, allocations: 1.001 MB / 0.7777 GB, free: 8.949 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 1.069e-05/0.4892, allocations: 8 kB / 0.7778 GB, free: 8.941 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.694e-06/0.4892, allocations: 0 / 0.7778 GB, free: 8.941 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.563e-05/0.4892, allocations: 0 / 0.7778 GB, free: 8.941 MB / 0.545 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.001377/0.4906, allocations: 0.9501 MB / 0.7787 GB, free: 7.938 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.4906, allocations: 8.031 kB / 0.7787 GB, free: 7.93 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001158/0.4907, allocations: 80 kB / 0.7788 GB, free: 7.852 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000634/0.4914, allocations: 453.7 kB / 0.7792 GB, free: 7.375 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.226e-05/0.4914, allocations: 41.38 kB / 0.7792 GB, free: 7.332 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.498e-05/0.4915, allocations: 48.38 kB / 0.7793 GB, free: 7.285 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007437/0.4922, allocations: 434.7 kB / 0.7797 GB, free: 6.855 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.656e-05/0.4923, allocations: 0 / 0.7797 GB, free: 6.855 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.139e-05/0.4923, allocations: 20 kB / 0.7797 GB, free: 6.836 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.258e-05/0.4923, allocations: 12 kB / 0.7797 GB, free: 6.824 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006679/0.493, allocations: 363.8 kB / 0.7801 GB, free: 6.469 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002007/0.495, allocations: 1.52 MB / 0.7816 GB, free: 4.875 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005135/0.4956, allocations: 335 kB / 0.7819 GB, free: 4.535 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004663/0.496, allocations: 325.8 kB / 0.7822 GB, free: 4.215 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.348e-05/0.4961, allocations: 4 kB / 0.7822 GB, free: 4.211 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.914e-05/0.4961, allocations: 42.5 kB / 0.7822 GB, free: 4.16 MB / 0.545 GB Notification: Performance of pre-optimization done (n=42): time 2.584e-06/0.4961, allocations: 0 / 0.7822 GB, free: 4.16 MB / 0.545 GB Notification: Performance of matching and sorting (n=42): time 0.0009555/0.4971, allocations: 0.5015 MB / 0.7827 GB, free: 3.652 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.184e-05/0.4971, allocations: 55.41 kB / 0.7828 GB, free: 3.586 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005323/0.4977, allocations: 489.9 kB / 0.7832 GB, free: 3.102 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.784e-05/0.4977, allocations: 33.7 kB / 0.7833 GB, free: 3.062 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001866/0.4979, allocations: 272.4 kB / 0.7835 GB, free: 2.793 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001151/0.498, allocations: 145.8 kB / 0.7837 GB, free: 2.648 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.273e-05/0.4981, allocations: 62.08 kB / 0.7837 GB, free: 2.578 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001409/0.4983, allocations: 358.8 kB / 0.7841 GB, free: 2.219 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002404/0.4985, allocations: 121.5 kB / 0.7842 GB, free: 2.102 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002404/0.4988, allocations: 133.4 kB / 0.7843 GB, free: 1.973 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005049/0.4993, allocations: 301.9 kB / 0.7846 GB, free: 1.676 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.4993, allocations: 4 kB / 0.7846 GB, free: 1.672 MB / 0.545 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006501/0.4999, allocations: 396.1 kB / 0.785 GB, free: 1.277 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/0.5, allocations: 6.812 kB / 0.785 GB, free: 1.273 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.605e-06/0.5, allocations: 0 / 0.785 GB, free: 1.273 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.881e-05/0.5, allocations: 11.94 kB / 0.785 GB, free: 1.262 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004964/0.5005, allocations: 123.9 kB / 0.7851 GB, free: 1.141 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.5005, allocations: 0 / 0.7851 GB, free: 1.141 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002404/0.5008, allocations: 39.67 kB / 0.7852 GB, free: 1.102 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.101e-05/0.5008, allocations: 12 kB / 0.7852 GB, free: 1.09 MB / 0.545 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.0002274/0.501, allocations: 196.1 kB / 0.7854 GB, free: 0.8906 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.568e-05/0.5011, allocations: 55.28 kB / 0.7854 GB, free: 0.8359 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001173/0.5012, allocations: 65.11 kB / 0.7855 GB, free: 0.7695 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.6e-06/0.5012, allocations: 4 kB / 0.7855 GB, free: 0.7656 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.5013, allocations: 0 / 0.7855 GB, free: 0.7656 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.5013, allocations: 3.984 kB / 0.7855 GB, free: 0.7617 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006266/0.5019, allocations: 0.5635 MB / 0.786 GB, free: 152 kB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.5019, allocations: 3.938 kB / 0.786 GB, free: 148 kB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00049/0.5024, allocations: 127.8 kB / 0.7862 GB, free: 20 kB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.831e-06/0.5024, allocations: 4 kB / 0.7862 GB, free: 16 kB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.356e-05/0.5024, allocations: 12 kB / 0.7862 GB, free: 4 kB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.305e-05/0.5025, allocations: 7.984 kB / 0.7862 GB, free: 15.99 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.5025, allocations: 0 / 0.7862 GB, free: 15.99 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009492/0.5034, allocations: 0.6403 MB / 0.7868 GB, free: 15.34 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001226/0.5036, allocations: 144.3 kB / 0.7869 GB, free: 15.18 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.917e-05/0.5036, allocations: 4 kB / 0.787 GB, free: 15.18 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002169/0.5039, allocations: 23.98 kB / 0.787 GB, free: 15.15 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.081e-05/0.5039, allocations: 19.97 kB / 0.787 GB, free: 15.13 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.597e-05/0.5039, allocations: 8 kB / 0.787 GB, free: 15.12 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0003868/0.5043, allocations: 355.1 kB / 0.7873 GB, free: 14.79 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.573e-06/0.5043, allocations: 0 / 0.7873 GB, free: 14.79 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003897/0.5047, allocations: 143.6 kB / 0.7875 GB, free: 14.64 MB / 0.5606 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.0001515/0.5049, allocations: 119.1 kB / 0.7876 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0005956/0.5055, allocations: 327.7 kB / 0.7879 GB, free: 14.2 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.5055, allocations: 0 / 0.7879 GB, free: 14.2 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0003023/0.5058, allocations: 175.8 kB / 0.7881 GB, free: 14.03 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006478/0.5065, allocations: 122.4 kB / 0.7882 GB, free: 13.91 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001968/0.5085, allocations: 1.235 MB / 0.7894 GB, free: 12.63 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004257/0.5089, allocations: 0.8665 MB / 0.7902 GB, free: 11.73 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001288/0.509, allocations: 39.38 kB / 0.7903 GB, free: 11.7 MB / 0.5606 GB Notification: Performance of SimCode: time 7.61e-07/0.509, allocations: 0 / 0.7903 GB, free: 11.7 MB / 0.5606 GB Notification: Performance of Templates: time 0.009822/0.5189, allocations: 6.9 MB / 0.797 GB, free: 4.867 MB / 0.5606 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)