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.001217/0.001217, allocations: 110.2 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.001179/0.001179, allocations: 189.5 kB / 17.34 MB, free: 5.762 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.361/1.361, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002155/0.002156, allocations: 282.8 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.9376/0.9376, allocations: 169.3 MB / 0.499 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001782/0.001782, allocations: 103.8 kB / 0.6822 GB, free: 6.934 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4953/0.4971, allocations: 86.99 MB / 0.7671 GB, free: 3.93 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.005866/0.503, allocations: 4.135 MB / 0.7711 GB, free: 15.78 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0043/0.5073, allocations: 2.406 MB / 0.7735 GB, free: 13.36 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006771/0.5081, allocations: 8 kB / 0.7735 GB, free: 13.35 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.002096/0.5102, allocations: 0.535 MB / 0.774 GB, free: 12.82 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0009355/0.5112, allocations: 250 kB / 0.7743 GB, free: 12.57 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004632/0.5116, allocations: 143.8 kB / 0.7744 GB, free: 12.43 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.001494/0.5131, allocations: 0.8078 MB / 0.7752 GB, free: 11.62 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006176/0.5138, allocations: 342.5 kB / 0.7755 GB, free: 11.28 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005675/0.5144, allocations: 294.9 kB / 0.7758 GB, free: 10.99 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005891/0.515, allocations: 326.6 kB / 0.7761 GB, free: 10.67 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001492/0.5151, allocations: 76 kB / 0.7762 GB, free: 10.6 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001957/0.5153, allocations: 76 kB / 0.7763 GB, free: 10.52 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001999/0.5155, allocations: 167.4 kB / 0.7764 GB, free: 10.36 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0005176/0.5161, allocations: 386.3 kB / 0.7768 GB, free: 9.98 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001141/0.5172, allocations: 0.9966 MB / 0.7778 GB, free: 8.98 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.5172, allocations: 4 kB / 0.7778 GB, free: 8.977 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.004e-06/0.5172, allocations: 0 / 0.7778 GB, free: 8.977 MB / 0.545 GB Notification: Performance of Transformations before backend: time 3.414e-05/0.5173, allocations: 0 / 0.7778 GB, free: 8.977 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.001804/0.5191, allocations: 0.9541 MB / 0.7787 GB, free: 7.969 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.637e-05/0.5191, allocations: 8.031 kB / 0.7787 GB, free: 7.961 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001501/0.5193, allocations: 76 kB / 0.7788 GB, free: 7.887 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007082/0.52, allocations: 457.7 kB / 0.7792 GB, free: 7.406 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.994e-05/0.52, allocations: 41.38 kB / 0.7792 GB, free: 7.363 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.625e-05/0.5201, allocations: 44.38 kB / 0.7793 GB, free: 7.32 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008319/0.521, allocations: 438.8 kB / 0.7797 GB, free: 6.887 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.99e-05/0.521, allocations: 0 / 0.7797 GB, free: 6.887 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.145e-05/0.521, allocations: 20 kB / 0.7797 GB, free: 6.867 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.26e-05/0.5211, allocations: 12 kB / 0.7797 GB, free: 6.855 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007021/0.5218, allocations: 363.8 kB / 0.7801 GB, free: 6.5 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002132/0.5239, allocations: 1.52 MB / 0.7816 GB, free: 4.906 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005334/0.5245, allocations: 338.9 kB / 0.7819 GB, free: 4.562 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004714/0.5249, allocations: 321.8 kB / 0.7822 GB, free: 4.246 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.911e-05/0.525, allocations: 8 kB / 0.7822 GB, free: 4.238 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.235e-05/0.525, allocations: 42.48 kB / 0.7822 GB, free: 4.188 MB / 0.545 GB Notification: Performance of pre-optimization done (n=42): time 1.863e-06/0.525, allocations: 0 / 0.7822 GB, free: 4.188 MB / 0.545 GB Notification: Performance of matching and sorting (n=42): time 0.001007/0.526, allocations: 0.4937 MB / 0.7827 GB, free: 3.688 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.407e-05/0.5261, allocations: 55.41 kB / 0.7828 GB, free: 3.621 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006071/0.5267, allocations: 489.9 kB / 0.7832 GB, free: 3.137 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.696e-05/0.5267, allocations: 29.7 kB / 0.7833 GB, free: 3.102 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001991/0.5269, allocations: 276.4 kB / 0.7835 GB, free: 2.828 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001239/0.5271, allocations: 145.8 kB / 0.7837 GB, free: 2.684 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001014/0.5272, allocations: 62.08 kB / 0.7837 GB, free: 2.613 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001552/0.5273, allocations: 362.8 kB / 0.7841 GB, free: 2.25 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002572/0.5276, allocations: 116.7 kB / 0.7842 GB, free: 2.137 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000239/0.5279, allocations: 134.2 kB / 0.7843 GB, free: 2.008 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005364/0.5284, allocations: 298 kB / 0.7846 GB, free: 1.715 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.5284, allocations: 3.938 kB / 0.7846 GB, free: 1.711 MB / 0.545 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000705/0.5291, allocations: 396.1 kB / 0.785 GB, free: 1.316 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.108e-05/0.5292, allocations: 4 kB / 0.785 GB, free: 1.312 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.732e-06/0.5292, allocations: 0 / 0.785 GB, free: 1.312 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.214e-05/0.5292, allocations: 11.94 kB / 0.785 GB, free: 1.301 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005102/0.5297, allocations: 127.8 kB / 0.7851 GB, free: 1.176 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.034e-05/0.5297, allocations: 0 / 0.7851 GB, free: 1.176 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002853/0.53, allocations: 35.67 kB / 0.7852 GB, free: 1.141 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.584e-05/0.5301, allocations: 12 kB / 0.7852 GB, free: 1.129 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.000261/0.5303, allocations: 197.7 kB / 0.7854 GB, free: 0.9258 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001022/0.5304, allocations: 55.28 kB / 0.7854 GB, free: 0.8711 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001263/0.5306, allocations: 65.11 kB / 0.7855 GB, free: 0.8047 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.366e-06/0.5306, allocations: 7.984 kB / 0.7855 GB, free: 0.7969 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.201e-05/0.5306, allocations: 0 / 0.7855 GB, free: 0.7969 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.5306, allocations: 0 / 0.7855 GB, free: 0.7969 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007511/0.5314, allocations: 0.5635 MB / 0.786 GB, free: 188 kB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.317e-06/0.5314, allocations: 4 kB / 0.786 GB, free: 184 kB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005168/0.5319, allocations: 131.7 kB / 0.7862 GB, free: 52 kB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.529e-06/0.5319, allocations: 0 / 0.7862 GB, free: 52 kB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.136e-05/0.532, allocations: 12 kB / 0.7862 GB, free: 40 kB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.532, allocations: 4 kB / 0.7862 GB, free: 36 kB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.532, allocations: 0 / 0.7862 GB, free: 36 kB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001074/0.533, allocations: 0.6442 MB / 0.7868 GB, free: 15.38 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001725/0.5332, allocations: 144.3 kB / 0.7869 GB, free: 15.21 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.193e-05/0.5333, allocations: 4 kB / 0.7869 GB, free: 15.21 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002327/0.5336, allocations: 19.98 kB / 0.787 GB, free: 15.19 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.568e-05/0.5336, allocations: 19.97 kB / 0.787 GB, free: 15.17 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.869e-05/0.5337, allocations: 12 kB / 0.787 GB, free: 15.16 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0004423/0.5341, allocations: 355.1 kB / 0.7873 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5341, allocations: 0 / 0.7873 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.000452/0.5346, allocations: 139.7 kB / 0.7875 GB, free: 14.68 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.0001891/0.5348, allocations: 115.1 kB / 0.7876 GB, free: 14.56 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0006591/0.5354, allocations: 331.7 kB / 0.7879 GB, free: 14.24 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.5354, allocations: 4 kB / 0.7879 GB, free: 14.23 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0003088/0.5358, allocations: 175.8 kB / 0.7881 GB, free: 14.06 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007178/0.5365, allocations: 123.6 kB / 0.7882 GB, free: 13.94 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002303/0.5388, allocations: 1.227 MB / 0.7894 GB, free: 12.67 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005903/0.5394, allocations: 0.8665 MB / 0.7902 GB, free: 11.78 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001525/0.5396, allocations: 39.44 kB / 0.7903 GB, free: 11.74 MB / 0.5606 GB Notification: Performance of SimCode: time 1.082e-06/0.5396, allocations: 3.938 kB / 0.7903 GB, free: 11.73 MB / 0.5606 GB Notification: Performance of Templates: time 0.01213/0.5517, allocations: 6.895 MB / 0.797 GB, free: 4.91 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)