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.007113/0.007113, allocations: 97.23 kB / 15.73 MB, free: 6.043 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.001666/0.001666, allocations: 194.3 kB / 16.68 MB, free: 5.973 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.318/1.318, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002114/0.002114, allocations: 287.1 kB / 290.8 MB, free: 1.922 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9303/0.9303, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001652/0.001652, allocations: 95.8 kB / 0.6815 GB, free: 15.41 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.148/0.1496, allocations: 86.96 MB / 0.7664 GB, free: 8.363 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.005099/0.1548, allocations: 4.137 MB / 0.7705 GB, free: 4.207 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.003007/0.1578, allocations: 2.413 MB / 0.7728 GB, free: 1.781 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002011/0.158, allocations: 11.94 kB / 0.7728 GB, free: 1.77 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001367/0.1594, allocations: 0.5402 MB / 0.7734 GB, free: 1.227 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0003999/0.1598, allocations: 246 kB / 0.7736 GB, free: 0.9844 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002093/0.16, allocations: 143.8 kB / 0.7737 GB, free: 0.8438 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0007052/0.1607, allocations: 0.8098 MB / 0.7745 GB, free: 32 kB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.3232/0.4839, allocations: 319 kB / 0.7748 GB, free: 9.117 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005478/0.4845, allocations: 283.7 kB / 0.7751 GB, free: 9.117 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003544/0.4849, allocations: 330.7 kB / 0.7754 GB, free: 9.047 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 9.969e-05/0.485, allocations: 74.81 kB / 0.7755 GB, free: 9.047 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001178/0.4851, allocations: 75.5 kB / 0.7756 GB, free: 9.047 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001452/0.4853, allocations: 175.4 kB / 0.7757 GB, free: 9.02 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003051/0.4856, allocations: 381.9 kB / 0.7761 GB, free: 8.922 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0009969/0.4866, allocations: 0.9996 MB / 0.7771 GB, free: 8.797 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.4866, allocations: 5.062 kB / 0.7771 GB, free: 8.793 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.312e-06/0.4866, allocations: 0.7188 kB / 0.7771 GB, free: 8.793 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.008e-05/0.4866, allocations: 0.5938 kB / 0.7771 GB, free: 8.793 MB / 0.5606 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.001291/0.4879, allocations: 0.9721 MB / 0.778 GB, free: 8.18 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.4879, allocations: 9.656 kB / 0.778 GB, free: 8.18 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001081/0.4881, allocations: 76.75 kB / 0.7781 GB, free: 8.141 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005465/0.4886, allocations: 464.3 kB / 0.7785 GB, free: 7.875 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.079e-05/0.4887, allocations: 35.69 kB / 0.7786 GB, free: 7.871 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.419e-05/0.4887, allocations: 47.94 kB / 0.7786 GB, free: 7.871 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007248/0.4895, allocations: 428.7 kB / 0.779 GB, free: 7.828 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.029e-05/0.4895, allocations: 9.422 kB / 0.779 GB, free: 7.82 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.929e-05/0.4895, allocations: 21.44 kB / 0.7791 GB, free: 7.82 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.382e-05/0.4896, allocations: 13.69 kB / 0.7791 GB, free: 7.82 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006433/0.4902, allocations: 366.4 kB / 0.7794 GB, free: 7.816 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001749/0.492, allocations: 1.525 MB / 0.7809 GB, free: 7.254 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004848/0.4925, allocations: 341.8 kB / 0.7812 GB, free: 7.105 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004423/0.4929, allocations: 322.9 kB / 0.7816 GB, free: 6.98 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.79e-05/0.4929, allocations: 7.406 kB / 0.7816 GB, free: 6.98 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.114e-05/0.493, allocations: 40.75 kB / 0.7816 GB, free: 6.938 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=42): time 1.633e-06/0.493, allocations: 0 / 0.7816 GB, free: 6.938 MB / 0.5606 GB Notification: Performance of matching and sorting (n=42): time 0.0008569/0.4938, allocations: 0.4902 MB / 0.7821 GB, free: 6.723 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.571e-05/0.4939, allocations: 55.03 kB / 0.7821 GB, free: 6.66 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004936/0.4944, allocations: 488.8 kB / 0.7826 GB, free: 6.441 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.023e-05/0.4944, allocations: 32.42 kB / 0.7826 GB, free: 6.406 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001287/0.4945, allocations: 287.2 kB / 0.7829 GB, free: 6.18 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 8.344e-05/0.4946, allocations: 148 kB / 0.783 GB, free: 6.062 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.745e-05/0.4947, allocations: 60.97 kB / 0.7831 GB, free: 6.02 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 7.384e-05/0.4948, allocations: 361.6 kB / 0.7834 GB, free: 5.688 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002324/0.495, allocations: 123.7 kB / 0.7836 GB, free: 5.641 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002177/0.4953, allocations: 123.5 kB / 0.7837 GB, free: 5.598 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004628/0.4957, allocations: 301.1 kB / 0.784 GB, free: 5.457 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.4957, allocations: 4.703 kB / 0.784 GB, free: 5.453 MB / 0.5606 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005817/0.4963, allocations: 397.3 kB / 0.7844 GB, free: 5.27 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/0.4964, allocations: 13.22 kB / 0.7844 GB, free: 5.266 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.4964, allocations: 0 / 0.7844 GB, free: 5.266 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.581e-05/0.4964, allocations: 5.844 kB / 0.7844 GB, free: 5.266 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004731/0.4969, allocations: 125 kB / 0.7845 GB, free: 5.258 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.825e-06/0.4969, allocations: 2.688 kB / 0.7845 GB, free: 5.258 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001942/0.4971, allocations: 44.31 kB / 0.7845 GB, free: 5.227 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.023e-05/0.4971, allocations: 10.94 kB / 0.7845 GB, free: 5.223 MB / 0.5606 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.0001583/0.4973, allocations: 204.7 kB / 0.7847 GB, free: 5.059 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.409e-05/0.4973, allocations: 57.02 kB / 0.7848 GB, free: 5.027 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.349e-05/0.4974, allocations: 56.48 kB / 0.7848 GB, free: 4.988 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.4974, allocations: 5.688 kB / 0.7849 GB, free: 4.988 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.4975, allocations: 4 kB / 0.7849 GB, free: 4.984 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.4975, allocations: 0 / 0.7849 GB, free: 4.984 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005126/0.498, allocations: 0.5723 MB / 0.7854 GB, free: 4.637 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.498, allocations: 0 / 0.7854 GB, free: 4.637 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004759/0.4985, allocations: 126.1 kB / 0.7855 GB, free: 4.633 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.719e-06/0.4985, allocations: 9.016 kB / 0.7855 GB, free: 4.629 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.139e-05/0.4985, allocations: 13.47 kB / 0.7856 GB, free: 4.621 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.016e-06/0.4985, allocations: 0.5156 kB / 0.7856 GB, free: 4.621 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.4985, allocations: 2.625 kB / 0.7856 GB, free: 4.621 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008206/0.4993, allocations: 0.649 MB / 0.7862 GB, free: 4.266 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 8.593e-05/0.4994, allocations: 144.9 kB / 0.7863 GB, free: 4.125 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.967e-05/0.4995, allocations: 8.609 kB / 0.7863 GB, free: 4.121 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002116/0.4997, allocations: 15.03 kB / 0.7864 GB, free: 4.113 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.553e-05/0.4998, allocations: 23.42 kB / 0.7864 GB, free: 4.109 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.684e-05/0.4998, allocations: 12.64 kB / 0.7864 GB, free: 4.105 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.000342/0.5002, allocations: 353.9 kB / 0.7867 GB, free: 3.945 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.31e-07/0.5002, allocations: 0 / 0.7867 GB, free: 3.945 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003675/0.5005, allocations: 140.5 kB / 0.7869 GB, free: 3.918 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.0001178/0.5007, allocations: 118.1 kB / 0.787 GB, free: 3.824 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0005338/0.5012, allocations: 317.5 kB / 0.7873 GB, free: 3.723 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.5012, allocations: 7.938 kB / 0.7873 GB, free: 3.715 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.000252/0.5015, allocations: 178 kB / 0.7875 GB, free: 3.664 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006169/0.5021, allocations: 127 kB / 0.7876 GB, free: 3.621 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001651/0.5038, allocations: 1.216 MB / 0.7888 GB, free: 2.91 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003237/0.5041, allocations: 0.8733 MB / 0.7896 GB, free: 2.195 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001703/0.5043, allocations: 47.58 kB / 0.7897 GB, free: 2.191 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.48e-05/0.5044, allocations: 36.09 kB / 0.7897 GB, free: 2.184 MB / 0.5606 GB Notification: Performance of SimCode: time 2.4e-07/0.5044, allocations: 0 / 0.7897 GB, free: 2.184 MB / 0.5606 GB Notification: Performance of Templates: time 0.01133/0.5157, allocations: 6.042 MB / 0.7956 GB, free: 1.828 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)