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.001308/0.001308, allocations: 108.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.001279/0.001279, allocations: 189.2 kB / 17.34 MB, free: 5.734 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.407/1.407, 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.002464/0.002464, allocations: 284.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 1.013/1.013, allocations: 169.2 MB / 0.499 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002808/0.002808, allocations: 100.1 kB / 0.6822 GB, free: 6.922 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4043/0.4071, allocations: 86.97 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.005498/0.4126, allocations: 4.151 MB / 0.7712 GB, free: 15.73 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.003614/0.4162, allocations: 2.413 MB / 0.7735 GB, free: 13.31 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003193/0.4166, allocations: 12 kB / 0.7735 GB, free: 13.3 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.00151/0.4181, allocations: 0.532 MB / 0.774 GB, free: 12.77 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0005291/0.4186, allocations: 254 kB / 0.7743 GB, free: 12.52 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002587/0.4189, allocations: 143.8 kB / 0.7744 GB, free: 12.38 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0009034/0.4198, allocations: 0.8137 MB / 0.7752 GB, free: 11.56 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003925/0.4202, allocations: 244.9 kB / 0.7754 GB, free: 11.32 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003644/0.4205, allocations: 287 kB / 0.7757 GB, free: 11.04 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003843/0.4209, allocations: 326.6 kB / 0.776 GB, free: 10.71 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001007/0.421, allocations: 76 kB / 0.7761 GB, free: 10.64 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001098/0.4211, allocations: 72 kB / 0.7762 GB, free: 10.57 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001747/0.4213, allocations: 175.4 kB / 0.7763 GB, free: 10.4 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.000379/0.4217, allocations: 382.3 kB / 0.7767 GB, free: 10.02 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001034/0.4227, allocations: 1.004 MB / 0.7777 GB, free: 9.016 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.4227, allocations: 0 / 0.7777 GB, free: 9.016 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.223e-06/0.4227, allocations: 4 kB / 0.7777 GB, free: 9.012 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.387e-05/0.4227, allocations: 0 / 0.7777 GB, free: 9.012 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.001581/0.4243, allocations: 0.9691 MB / 0.7786 GB, free: 7.988 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.4243, allocations: 8.031 kB / 0.7786 GB, free: 7.98 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001201/0.4245, allocations: 76.47 kB / 0.7787 GB, free: 7.906 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006571/0.4251, allocations: 458 kB / 0.7792 GB, free: 7.426 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.789e-05/0.4252, allocations: 41.38 kB / 0.7792 GB, free: 7.383 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.166e-05/0.4252, allocations: 48.38 kB / 0.7792 GB, free: 7.336 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007941/0.426, allocations: 434.7 kB / 0.7797 GB, free: 6.906 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.261e-05/0.4261, allocations: 7.953 kB / 0.7797 GB, free: 6.898 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.177e-05/0.4261, allocations: 20 kB / 0.7797 GB, free: 6.879 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.094e-05/0.4261, allocations: 8 kB / 0.7797 GB, free: 6.871 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007378/0.4268, allocations: 371.8 kB / 0.78 GB, free: 6.508 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00221/0.4291, allocations: 1.52 MB / 0.7815 GB, free: 4.914 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005673/0.4296, allocations: 310.9 kB / 0.7818 GB, free: 4.598 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004931/0.4301, allocations: 297.8 kB / 0.7821 GB, free: 4.305 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.052e-05/0.4301, allocations: 4 kB / 0.7821 GB, free: 4.301 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.058e-05/0.4302, allocations: 38.5 kB / 0.7821 GB, free: 4.254 MB / 0.545 GB Notification: Performance of pre-optimization done (n=42): time 1.974e-06/0.4302, allocations: 0 / 0.7821 GB, free: 4.254 MB / 0.545 GB Notification: Performance of matching and sorting (n=42): time 0.001017/0.4312, allocations: 498 kB / 0.7826 GB, free: 3.762 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.584e-05/0.4312, allocations: 59.34 kB / 0.7827 GB, free: 3.691 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005984/0.4318, allocations: 493.9 kB / 0.7831 GB, free: 3.203 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.122e-05/0.4319, allocations: 37.7 kB / 0.7832 GB, free: 3.16 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002203/0.4321, allocations: 280.7 kB / 0.7835 GB, free: 2.883 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001403/0.4322, allocations: 154.6 kB / 0.7836 GB, free: 2.73 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001013/0.4323, allocations: 58.08 kB / 0.7837 GB, free: 2.664 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001793/0.4325, allocations: 366.8 kB / 0.784 GB, free: 2.297 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000264/0.4328, allocations: 117.5 kB / 0.7841 GB, free: 2.184 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002594/0.433, allocations: 129.4 kB / 0.7842 GB, free: 2.059 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005586/0.4336, allocations: 294 kB / 0.7845 GB, free: 1.77 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.4336, allocations: 0 / 0.7845 GB, free: 1.77 MB / 0.545 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007101/0.4343, allocations: 400.5 kB / 0.7849 GB, free: 1.371 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/0.4343, allocations: 10.5 kB / 0.7849 GB, free: 1.363 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.95e-06/0.4343, allocations: 0 / 0.7849 GB, free: 1.363 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.719e-05/0.4343, allocations: 3.938 kB / 0.7849 GB, free: 1.359 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005383/0.4349, allocations: 135.8 kB / 0.785 GB, free: 1.227 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.418e-06/0.4349, allocations: 4 kB / 0.7851 GB, free: 1.223 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002392/0.4351, allocations: 35.73 kB / 0.7851 GB, free: 1.188 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.243e-05/0.4351, allocations: 8 kB / 0.7851 GB, free: 1.18 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.000244/0.4354, allocations: 200.2 kB / 0.7853 GB, free: 0.9766 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.097e-05/0.4355, allocations: 55.61 kB / 0.7853 GB, free: 0.9219 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001304/0.4356, allocations: 65.09 kB / 0.7854 GB, free: 0.8555 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.4356, allocations: 4 kB / 0.7854 GB, free: 0.8516 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.4356, allocations: 0 / 0.7854 GB, free: 0.8516 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.798e-06/0.4356, allocations: 0 / 0.7854 GB, free: 0.8516 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007555/0.4364, allocations: 0.5752 MB / 0.786 GB, free: 232 kB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.4364, allocations: 0 / 0.786 GB, free: 232 kB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005388/0.4369, allocations: 127.8 kB / 0.7861 GB, free: 104 kB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.873e-06/0.4369, allocations: 4 kB / 0.7861 GB, free: 100 kB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.186e-05/0.437, allocations: 4 kB / 0.7861 GB, free: 96 kB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.437, allocations: 8 kB / 0.7861 GB, free: 88 kB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.437, allocations: 3.984 kB / 0.7861 GB, free: 84 kB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001143/0.4381, allocations: 0.6446 MB / 0.7867 GB, free: 15.42 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001564/0.4383, allocations: 136.7 kB / 0.7869 GB, free: 15.27 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.272e-05/0.4383, allocations: 16.08 kB / 0.7869 GB, free: 15.25 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002277/0.4385, allocations: 12 kB / 0.7869 GB, free: 15.24 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.948e-05/0.4386, allocations: 27.95 kB / 0.7869 GB, free: 15.21 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.211e-05/0.4386, allocations: 16 kB / 0.7869 GB, free: 15.2 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0004407/0.4391, allocations: 351.1 kB / 0.7873 GB, free: 14.86 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.51e-07/0.4391, allocations: 0 / 0.7873 GB, free: 14.86 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.000427/0.4395, allocations: 151.6 kB / 0.7874 GB, free: 14.71 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.0001558/0.4397, allocations: 111.2 kB / 0.7875 GB, free: 14.59 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0006523/0.4403, allocations: 311.7 kB / 0.7878 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.4403, allocations: 0 / 0.7878 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0003188/0.4406, allocations: 171.8 kB / 0.788 GB, free: 14.12 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006666/0.4413, allocations: 123.1 kB / 0.7881 GB, free: 14 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002053/0.4434, allocations: 1.212 MB / 0.7893 GB, free: 12.76 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005225/0.4439, allocations: 0.8665 MB / 0.7901 GB, free: 11.86 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001905/0.4441, allocations: 60.31 kB / 0.7902 GB, free: 11.8 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001036/0.4442, allocations: 35.44 kB / 0.7902 GB, free: 11.77 MB / 0.5606 GB Notification: Performance of SimCode: time 5.61e-07/0.4442, allocations: 4 kB / 0.7902 GB, free: 11.77 MB / 0.5606 GB Notification: Performance of Templates: time 0.01241/0.4566, allocations: 6.07 MB / 0.7962 GB, free: 5.848 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1)