Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.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.InternalResistancesOneUTube,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube") translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001347/0.001347, allocations: 105.6 kB / 16.41 MB, free: 6.496 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.001341/0.001341, allocations: 189.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.391/1.391, 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.002355/0.002355, allocations: 300.1 kB / 291.5 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9824/0.9824, allocations: 169.2 MB / 0.499 GB, free: 4.422 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00198/0.00198, allocations: 99.84 kB / 0.6822 GB, free: 6.887 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4988/0.5008, allocations: 86.97 MB / 0.7671 GB, free: 3.891 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube): time 0.004171/0.505, allocations: 3.012 MB / 0.77 GB, free: 0.8633 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.002716/0.5077, allocations: 2.152 MB / 0.7721 GB, free: 14.7 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002062/0.508, allocations: 7.938 kB / 0.7721 GB, free: 14.7 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001305/0.5093, allocations: 0.4885 MB / 0.7726 GB, free: 14.21 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0002682/0.5096, allocations: 154.8 kB / 0.7728 GB, free: 14.05 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001313/0.5097, allocations: 59.95 kB / 0.7728 GB, free: 14 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0004558/0.5102, allocations: 441.9 kB / 0.7732 GB, free: 13.56 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002482/0.5104, allocations: 151.2 kB / 0.7734 GB, free: 13.41 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002043/0.5106, allocations: 167.3 kB / 0.7736 GB, free: 13.25 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002242/0.5109, allocations: 183.1 kB / 0.7737 GB, free: 13.07 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 4.601e-05/0.5109, allocations: 35.98 kB / 0.7738 GB, free: 13.03 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 5.745e-05/0.511, allocations: 36 kB / 0.7738 GB, free: 13 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001165/0.5111, allocations: 95.67 kB / 0.7739 GB, free: 12.9 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001864/0.5113, allocations: 218.9 kB / 0.7741 GB, free: 12.69 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0004953/0.5118, allocations: 0.5411 MB / 0.7746 GB, free: 12.14 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.5118, allocations: 0 / 0.7746 GB, free: 12.14 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.553e-06/0.5118, allocations: 3.938 kB / 0.7746 GB, free: 12.14 MB / 0.545 GB Notification: Performance of Transformations before backend: time 7.965e-06/0.5118, allocations: 0 / 0.7746 GB, free: 12.14 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0009951/0.5129, allocations: 0.7045 MB / 0.7753 GB, free: 11.39 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.5129, allocations: 8.031 kB / 0.7753 GB, free: 11.38 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.61e-05/0.513, allocations: 48.38 kB / 0.7754 GB, free: 11.33 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005257/0.5135, allocations: 390 kB / 0.7757 GB, free: 10.91 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.998e-05/0.5135, allocations: 16.81 kB / 0.7758 GB, free: 10.9 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.73e-05/0.5136, allocations: 20.38 kB / 0.7758 GB, free: 10.88 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003787/0.514, allocations: 207.6 kB / 0.776 GB, free: 10.67 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.687e-05/0.514, allocations: 0 / 0.776 GB, free: 10.67 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.24e-05/0.514, allocations: 8 kB / 0.776 GB, free: 10.66 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.486e-06/0.514, allocations: 8 kB / 0.776 GB, free: 10.66 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003613/0.5144, allocations: 161.7 kB / 0.7761 GB, free: 10.5 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001134/0.5156, allocations: 0.8622 MB / 0.777 GB, free: 9.562 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003015/0.5159, allocations: 154.5 kB / 0.7771 GB, free: 9.402 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002031/0.5161, allocations: 111.8 kB / 0.7772 GB, free: 9.293 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.754e-05/0.5161, allocations: 7.984 kB / 0.7772 GB, free: 9.285 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.807e-05/0.5161, allocations: 38.5 kB / 0.7773 GB, free: 9.238 MB / 0.545 GB Notification: Performance of pre-optimization done (n=18): time 1.342e-06/0.5161, allocations: 0 / 0.7773 GB, free: 9.238 MB / 0.545 GB Notification: Performance of matching and sorting (n=18): time 0.0005733/0.5167, allocations: 260.3 kB / 0.7775 GB, free: 8.98 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.669e-05/0.5168, allocations: 55.41 kB / 0.7776 GB, free: 8.914 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004386/0.5172, allocations: 417.7 kB / 0.778 GB, free: 8.496 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.204e-05/0.5172, allocations: 29.7 kB / 0.778 GB, free: 8.461 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001346/0.5174, allocations: 204.2 kB / 0.7782 GB, free: 8.258 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 5.63e-05/0.5174, allocations: 59.09 kB / 0.7783 GB, free: 8.199 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.987e-05/0.5175, allocations: 33.72 kB / 0.7783 GB, free: 8.16 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001284/0.5176, allocations: 346.8 kB / 0.7786 GB, free: 7.812 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001372/0.5178, allocations: 59.97 kB / 0.7787 GB, free: 7.754 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001369/0.5179, allocations: 59.92 kB / 0.7787 GB, free: 7.695 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002738/0.5182, allocations: 138.8 kB / 0.7789 GB, free: 7.559 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.5182, allocations: 0 / 0.7789 GB, free: 7.559 MB / 0.545 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000358/0.5186, allocations: 203 kB / 0.7791 GB, free: 7.355 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/0.5186, allocations: 12 kB / 0.7791 GB, free: 7.344 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.5186, allocations: 3.938 kB / 0.7791 GB, free: 7.34 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/0.5186, allocations: 3.938 kB / 0.7791 GB, free: 7.336 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002462/0.5189, allocations: 63.89 kB / 0.7791 GB, free: 7.273 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.821e-06/0.5189, allocations: 0 / 0.7791 GB, free: 7.273 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001249/0.519, allocations: 11.84 kB / 0.7792 GB, free: 7.262 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.325e-05/0.5191, allocations: 8 kB / 0.7792 GB, free: 7.254 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 (20): * Single equations (assignments): 20 * 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.0001542/0.5192, allocations: 164.2 kB / 0.7793 GB, free: 7.086 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.81e-05/0.5193, allocations: 43.53 kB / 0.7794 GB, free: 7.043 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.079e-05/0.5194, allocations: 39.53 kB / 0.7794 GB, free: 7.004 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.5194, allocations: 7.938 kB / 0.7794 GB, free: 6.996 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.5194, allocations: 0 / 0.7794 GB, free: 6.996 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.778e-06/0.5194, allocations: 3.984 kB / 0.7794 GB, free: 6.992 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003945/0.5198, allocations: 377.2 kB / 0.7798 GB, free: 6.574 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.5198, allocations: 0 / 0.7798 GB, free: 6.574 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002433/0.52, allocations: 55.91 kB / 0.7798 GB, free: 6.52 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.977e-06/0.5201, allocations: 3.984 kB / 0.7798 GB, free: 6.516 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.579e-05/0.5201, allocations: 11.94 kB / 0.7798 GB, free: 6.504 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.035e-06/0.5201, allocations: 4 kB / 0.7798 GB, free: 6.5 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.5201, allocations: 4 kB / 0.7798 GB, free: 6.496 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005652/0.5207, allocations: 374.8 kB / 0.7802 GB, free: 6.113 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 9.358e-05/0.5208, allocations: 112.7 kB / 0.7803 GB, free: 5.984 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.74e-05/0.5208, allocations: 11.94 kB / 0.7803 GB, free: 5.973 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000153/0.521, allocations: 16.05 kB / 0.7803 GB, free: 5.957 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.864e-05/0.521, allocations: 7.984 kB / 0.7803 GB, free: 5.949 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.106e-06/0.521, allocations: 4 kB / 0.7804 GB, free: 5.945 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0003005/0.5214, allocations: 307.1 kB / 0.7806 GB, free: 5.645 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5214, allocations: 0 / 0.7806 GB, free: 5.645 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002891/0.5217, allocations: 67.91 kB / 0.7807 GB, free: 5.578 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (intRes1UTub.capFil1.T,intRes1UTub.capFil2.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 (18): * Single equations (assignments): 18 * 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.000132/0.5218, allocations: 107.2 kB / 0.7808 GB, free: 5.465 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.000349/0.5221, allocations: 151.8 kB / 0.781 GB, free: 5.316 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.5222, allocations: 0 / 0.781 GB, free: 5.316 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001546/0.5223, allocations: 78.56 kB / 0.781 GB, free: 5.242 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000521/0.5228, allocations: 86.39 kB / 0.7811 GB, free: 5.16 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001218/0.5241, allocations: 0.7865 MB / 0.7819 GB, free: 4.34 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003334/0.5244, allocations: 0.7951 MB / 0.7827 GB, free: 3.52 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.869e-05/0.5245, allocations: 23.44 kB / 0.7827 GB, free: 3.496 MB / 0.545 GB Notification: Performance of SimCode: time 2.3e-07/0.5245, allocations: 3.938 kB / 0.7827 GB, free: 3.492 MB / 0.545 GB Notification: Performance of Templates: time 0.006459/0.531, allocations: 4.446 MB / 0.787 GB, free: 15.1 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.sim & ./BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe 2>&1)