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.008016/0.008016, allocations: 99.77 kB / 15.73 MB, free: 6.02 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.002112/0.002112, allocations: 193.8 kB / 16.67 MB, free: 5.934 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.481/1.481, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8536/0.8536, allocations: 135.5 MB / 426.1 MB, free: 3.652 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002053/0.002054, allocations: 68.38 kB / 0.5858 GB, free: 21.54 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1549/0.157, allocations: 81.03 MB / 0.6649 GB, free: 5.594 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.006059/0.1631, allocations: 4.124 MB / 0.6689 GB, free: 1.449 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.004014/0.1672, allocations: 2.414 MB / 0.6713 GB, free: 15.03 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004875/0.1677, allocations: 12 kB / 0.6713 GB, free: 15.02 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.002096/0.1698, allocations: 0.5402 MB / 0.6718 GB, free: 14.47 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.0008286/0.1707, allocations: 246 kB / 0.6721 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003564/0.1711, allocations: 135.9 kB / 0.6722 GB, free: 14.1 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.001231/0.1723, allocations: 0.8204 MB / 0.673 GB, free: 13.28 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005501/0.1729, allocations: 330.5 kB / 0.6733 GB, free: 12.95 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004759/0.1733, allocations: 287 kB / 0.6736 GB, free: 12.67 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005385/0.1739, allocations: 326.6 kB / 0.6739 GB, free: 12.35 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0001399/0.174, allocations: 75.94 kB / 0.674 GB, free: 12.27 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001859/0.1742, allocations: 79.94 kB / 0.6741 GB, free: 12.2 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0001962/0.1744, allocations: 167.5 kB / 0.6742 GB, free: 12.03 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0004963/0.1749, allocations: 390.2 kB / 0.6746 GB, free: 11.65 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.001157/0.1761, allocations: 0.9962 MB / 0.6756 GB, free: 10.65 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.1761, allocations: 0 / 0.6756 GB, free: 10.65 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.394e-06/0.1761, allocations: 4 kB / 0.6756 GB, free: 10.64 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 3.646e-05/0.1762, allocations: 0 / 0.6756 GB, free: 10.64 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.001888/0.1781, allocations: 0.9613 MB / 0.6765 GB, free: 9.633 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.955e-05/0.1781, allocations: 13.05 kB / 0.6765 GB, free: 9.621 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001314/0.1783, allocations: 94.64 kB / 0.6766 GB, free: 9.52 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001917/0.1785, allocations: 76.47 kB / 0.6767 GB, free: 9.445 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000904/0.1794, allocations: 470 kB / 0.6771 GB, free: 8.945 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.074e-05/0.1795, allocations: 45.11 kB / 0.6772 GB, free: 8.902 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.65e-05/0.1795, allocations: 48 kB / 0.6772 GB, free: 8.855 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008578/0.1804, allocations: 426.5 kB / 0.6776 GB, free: 8.434 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.231e-05/0.1804, allocations: 0 / 0.6776 GB, free: 8.434 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.254e-05/0.1805, allocations: 20 kB / 0.6776 GB, free: 8.414 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.77e-05/0.1805, allocations: 12 kB / 0.6776 GB, free: 8.402 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008324/0.1814, allocations: 367.8 kB / 0.678 GB, free: 8.043 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002447/0.1838, allocations: 1.532 MB / 0.6795 GB, free: 6.441 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005562/0.1844, allocations: 342.7 kB / 0.6798 GB, free: 6.094 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005188/0.1849, allocations: 329 kB / 0.6801 GB, free: 5.77 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 6.559e-05/0.185, allocations: 4 kB / 0.6801 GB, free: 5.766 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.754e-05/0.185, allocations: 34.56 kB / 0.6802 GB, free: 5.723 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=42): time 1.994e-06/0.185, allocations: 0.7656 kB / 0.6802 GB, free: 5.723 MB / 0.5137 GB Notification: Performance of matching and sorting (n=42): time 0.001068/0.1861, allocations: 0.4973 MB / 0.6807 GB, free: 5.219 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.724e-05/0.1862, allocations: 55.41 kB / 0.6807 GB, free: 5.152 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006938/0.1869, allocations: 489.9 kB / 0.6812 GB, free: 4.66 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 2.97e-05/0.1869, allocations: 29.7 kB / 0.6812 GB, free: 4.625 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002369/0.1872, allocations: 280.7 kB / 0.6815 GB, free: 4.348 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001569/0.1873, allocations: 154.6 kB / 0.6816 GB, free: 4.195 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001199/0.1874, allocations: 66.02 kB / 0.6817 GB, free: 4.121 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001953/0.1876, allocations: 358.8 kB / 0.682 GB, free: 3.762 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002666/0.1879, allocations: 124.7 kB / 0.6821 GB, free: 3.641 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002538/0.1882, allocations: 129.2 kB / 0.6823 GB, free: 3.516 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005413/0.1887, allocations: 298.1 kB / 0.6826 GB, free: 3.223 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.1887, allocations: 0 / 0.6826 GB, free: 3.223 MB / 0.5137 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007247/0.1895, allocations: 396.7 kB / 0.6829 GB, free: 2.828 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.1895, allocations: 11.98 kB / 0.6829 GB, free: 2.816 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.1895, allocations: 0 / 0.6829 GB, free: 2.816 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.68e-05/0.1895, allocations: 4 kB / 0.6829 GB, free: 2.812 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005127/0.1901, allocations: 123.9 kB / 0.6831 GB, free: 2.691 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.927e-06/0.1901, allocations: 0 / 0.6831 GB, free: 2.691 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002429/0.1903, allocations: 35.73 kB / 0.6831 GB, free: 2.656 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.18e-05/0.1903, allocations: 8 kB / 0.6831 GB, free: 2.648 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.0002442/0.1906, allocations: 205.7 kB / 0.6833 GB, free: 2.438 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.397e-05/0.1907, allocations: 51.67 kB / 0.6834 GB, free: 2.387 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001199/0.1908, allocations: 61.09 kB / 0.6834 GB, free: 2.324 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.006e-05/0.1908, allocations: 8 kB / 0.6834 GB, free: 2.316 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.1908, allocations: 0 / 0.6834 GB, free: 2.316 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.1908, allocations: 3.938 kB / 0.6834 GB, free: 2.312 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007337/0.1916, allocations: 0.5752 MB / 0.684 GB, free: 1.688 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.1916, allocations: 0 / 0.684 GB, free: 1.688 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005346/0.1921, allocations: 127.9 kB / 0.6841 GB, free: 1.562 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.943e-06/0.1922, allocations: 3.938 kB / 0.6841 GB, free: 1.559 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.001e-05/0.1922, allocations: 15.98 kB / 0.6841 GB, free: 1.543 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.951e-06/0.1922, allocations: 0 / 0.6841 GB, free: 1.543 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.1922, allocations: 7.938 kB / 0.6841 GB, free: 1.535 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001137/0.1934, allocations: 0.6481 MB / 0.6848 GB, free: 0.8711 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001782/0.1935, allocations: 148.7 kB / 0.6849 GB, free: 0.707 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.886e-05/0.1936, allocations: 8 kB / 0.6849 GB, free: 0.6992 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002337/0.1939, allocations: 12 kB / 0.6849 GB, free: 0.6875 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.335e-05/0.1939, allocations: 19.97 kB / 0.6849 GB, free: 0.668 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.883e-05/0.194, allocations: 11.98 kB / 0.685 GB, free: 0.6562 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0004746/0.1944, allocations: 351.1 kB / 0.6853 GB, free: 324 kB / 0.5137 GB Notification: Performance of sort global known variables: time 1.6e-07/0.1945, allocations: 0 / 0.6853 GB, free: 324 kB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0004555/0.1949, allocations: 147.7 kB / 0.6854 GB, free: 176 kB / 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.001651/0.1966, allocations: 1.214 MB / 0.6866 GB, free: 14.93 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0007112/0.1973, allocations: 319.6 kB / 0.6869 GB, free: 14.62 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.1973, allocations: 0 / 0.6869 GB, free: 14.62 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0003293/0.1977, allocations: 183.8 kB / 0.6871 GB, free: 14.44 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006997/0.1984, allocations: 132.6 kB / 0.6872 GB, free: 14.31 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007478/0.2059, allocations: 4.86 MB / 0.692 GB, free: 9.375 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006/0.2065, allocations: 0.8665 MB / 0.6928 GB, free: 8.48 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0002446/0.2068, allocations: 60.38 kB / 0.6929 GB, free: 8.422 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002865/0.2071, allocations: 191.4 kB / 0.6931 GB, free: 8.234 MB / 0.5294 GB Notification: Performance of SimCode: time 9.51e-07/0.2071, allocations: 0 / 0.6931 GB, free: 8.234 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03975/0.2468, allocations: 11.46 MB / 0.7042 GB, free: 13.07 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.531/8.778, allocations: 13.12 kB / 0.7043 GB, free: 13.06 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 & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 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)