Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-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: "" <> buildModelFMU(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005678/0.005679, allocations: 100.7 kB / 15.73 MB, free: 6.004 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.001555/0.001555, allocations: 195.4 kB / 16.68 MB, free: 5.926 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.326/1.326, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7904/0.7904, allocations: 135.1 MB / 425.7 MB, free: 4.113 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001443/0.001443, allocations: 62.97 kB / 0.5852 GB, free: 21.99 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1625/0.164, allocations: 80.92 MB / 0.6642 GB, free: 6.281 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.005527/0.1695, allocations: 4.139 MB / 0.6682 GB, free: 2.121 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.00355/0.1731, allocations: 2.416 MB / 0.6706 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004049/0.1736, allocations: 8 kB / 0.6706 GB, free: 15.69 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.001658/0.1752, allocations: 0.5399 MB / 0.6711 GB, free: 15.15 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.00065/0.1759, allocations: 254 kB / 0.6714 GB, free: 14.9 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003359/0.1762, allocations: 139.9 kB / 0.6715 GB, free: 14.76 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.001053/0.1773, allocations: 0.8174 MB / 0.6723 GB, free: 13.95 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004712/0.1778, allocations: 318.5 kB / 0.6726 GB, free: 13.63 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003972/0.1782, allocations: 295 kB / 0.6729 GB, free: 13.34 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004641/0.1787, allocations: 330.6 kB / 0.6732 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0001072/0.1788, allocations: 75.94 kB / 0.6733 GB, free: 12.94 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001394/0.1789, allocations: 76 kB / 0.6734 GB, free: 12.87 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0001664/0.1791, allocations: 175.4 kB / 0.6735 GB, free: 12.7 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0003916/0.1795, allocations: 382.2 kB / 0.6739 GB, free: 12.32 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0008777/0.1804, allocations: 0.9928 MB / 0.6749 GB, free: 11.32 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1804, allocations: 0 / 0.6749 GB, free: 11.32 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.054e-06/0.1804, allocations: 0 / 0.6749 GB, free: 11.32 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 2.649e-05/0.1804, allocations: 4 kB / 0.6749 GB, free: 11.32 MB / 0.5137 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.001655/0.1821, allocations: 0.9502 MB / 0.6758 GB, free: 10.32 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.1821, allocations: 9.109 kB / 0.6758 GB, free: 10.31 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001128/0.1823, allocations: 90.7 kB / 0.6759 GB, free: 10.21 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001185/0.1824, allocations: 76.03 kB / 0.676 GB, free: 10.14 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007526/0.1832, allocations: 457.7 kB / 0.6764 GB, free: 9.652 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.381e-05/0.1832, allocations: 45.11 kB / 0.6764 GB, free: 9.609 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.719e-05/0.1833, allocations: 44 kB / 0.6765 GB, free: 9.566 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007783/0.1841, allocations: 438.4 kB / 0.6769 GB, free: 9.133 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.259e-05/0.1841, allocations: 3.906 kB / 0.6769 GB, free: 9.129 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.745e-05/0.1841, allocations: 20 kB / 0.6769 GB, free: 9.109 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.293e-05/0.1842, allocations: 12 kB / 0.6769 GB, free: 9.098 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007091/0.1849, allocations: 367.8 kB / 0.6773 GB, free: 8.738 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002129/0.187, allocations: 1.516 MB / 0.6788 GB, free: 7.152 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005168/0.1875, allocations: 342.7 kB / 0.6791 GB, free: 6.805 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004589/0.188, allocations: 324.5 kB / 0.6794 GB, free: 6.484 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 2.863e-05/0.1881, allocations: 4 kB / 0.6794 GB, free: 6.48 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.554e-05/0.1881, allocations: 39.33 kB / 0.6794 GB, free: 6.434 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=42): time 1.863e-06/0.1881, allocations: 0 / 0.6794 GB, free: 6.434 MB / 0.5137 GB Notification: Performance of matching and sorting (n=42): time 0.0009815/0.1891, allocations: 497 kB / 0.6799 GB, free: 5.941 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.872e-05/0.1891, allocations: 59.39 kB / 0.68 GB, free: 5.871 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005425/0.1897, allocations: 485.9 kB / 0.6804 GB, free: 5.383 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 2.63e-05/0.1897, allocations: 29.7 kB / 0.6805 GB, free: 5.348 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001773/0.1899, allocations: 288.2 kB / 0.6807 GB, free: 5.062 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001157/0.19, allocations: 149.8 kB / 0.6809 GB, free: 4.914 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.448e-05/0.1901, allocations: 62.08 kB / 0.6809 GB, free: 4.844 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001357/0.1903, allocations: 358.8 kB / 0.6813 GB, free: 4.484 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000232/0.1905, allocations: 124.7 kB / 0.6814 GB, free: 4.363 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002251/0.1907, allocations: 125.2 kB / 0.6815 GB, free: 4.242 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005037/0.1912, allocations: 306.1 kB / 0.6818 GB, free: 3.941 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.1913, allocations: 0 / 0.6818 GB, free: 3.941 MB / 0.5137 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006678/0.1919, allocations: 392.5 kB / 0.6822 GB, free: 3.551 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/0.192, allocations: 4 kB / 0.6822 GB, free: 3.547 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.88e-06/0.192, allocations: 0 / 0.6822 GB, free: 3.547 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.653e-05/0.192, allocations: 4 kB / 0.6822 GB, free: 3.543 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004982/0.1925, allocations: 131.8 kB / 0.6823 GB, free: 3.414 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.655e-06/0.1925, allocations: 0 / 0.6823 GB, free: 3.414 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002189/0.1927, allocations: 35.58 kB / 0.6823 GB, free: 3.379 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.319e-05/0.1928, allocations: 12 kB / 0.6824 GB, free: 3.367 MB / 0.5137 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.0002072/0.193, allocations: 197.7 kB / 0.6825 GB, free: 3.164 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.393e-05/0.1931, allocations: 47.44 kB / 0.6826 GB, free: 3.117 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001125/0.1932, allocations: 61.09 kB / 0.6827 GB, free: 3.055 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.66e-06/0.1932, allocations: 4 kB / 0.6827 GB, free: 3.051 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/0.1932, allocations: 4 kB / 0.6827 GB, free: 3.047 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.792e-06/0.1932, allocations: 3.984 kB / 0.6827 GB, free: 3.043 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006788/0.1939, allocations: 0.575 MB / 0.6832 GB, free: 2.418 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.1939, allocations: 3.938 kB / 0.6832 GB, free: 2.414 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005049/0.1944, allocations: 127.8 kB / 0.6833 GB, free: 2.289 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.1944, allocations: 0 / 0.6833 GB, free: 2.289 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.062e-05/0.1945, allocations: 12 kB / 0.6834 GB, free: 2.277 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.295e-06/0.1945, allocations: 3.938 kB / 0.6834 GB, free: 2.273 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.053e-06/0.1945, allocations: 0 / 0.6834 GB, free: 2.273 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009528/0.1954, allocations: 0.6556 MB / 0.684 GB, free: 1.602 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001265/0.1956, allocations: 136.5 kB / 0.6841 GB, free: 1.449 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.14e-05/0.1956, allocations: 4 kB / 0.6841 GB, free: 1.445 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002123/0.1959, allocations: 16 kB / 0.6842 GB, free: 1.43 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.899e-05/0.1959, allocations: 23.95 kB / 0.6842 GB, free: 1.406 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.863e-05/0.1959, allocations: 16 kB / 0.6842 GB, free: 1.391 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0004193/0.1964, allocations: 351.1 kB / 0.6845 GB, free: 1.051 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1964, allocations: 0 / 0.6845 GB, free: 1.051 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003979/0.1968, allocations: 143.6 kB / 0.6847 GB, free: 0.9102 MB / 0.5137 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.001378/0.1982, allocations: 1.209 MB / 0.6858 GB, free: 15.68 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0006012/0.1988, allocations: 323.6 kB / 0.6862 GB, free: 15.36 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1988, allocations: 0 / 0.6862 GB, free: 15.36 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0002859/0.1991, allocations: 180.2 kB / 0.6863 GB, free: 15.18 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006646/0.1998, allocations: 127.4 kB / 0.6864 GB, free: 15.06 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006799/0.2066, allocations: 4.851 MB / 0.6912 GB, free: 10.13 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005025/0.2071, allocations: 0.8665 MB / 0.692 GB, free: 9.238 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0002503/0.2074, allocations: 52.38 kB / 0.6921 GB, free: 9.188 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002817/0.2077, allocations: 189.1 kB / 0.6923 GB, free: 9.004 MB / 0.5294 GB Notification: Performance of SimCode: time 1.002e-06/0.2077, allocations: 0 / 0.6923 GB, free: 9.004 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03495/0.2426, allocations: 11.62 MB / 0.7036 GB, free: 13.67 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.248/8.49, allocations: 8.922 kB / 0.7036 GB, free: 13.66 MB / 0.545 GB (rm -f IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube.fmu > IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1)