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.005336/0.005336, allocations: 98.91 kB / 15.73 MB, free: 5.988 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.001323/0.001323, allocations: 193.9 kB / 16.67 MB, free: 5.918 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.368/1.368, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8535/0.8535, allocations: 135.6 MB / 426.1 MB, free: 3.703 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001891/0.001891, allocations: 65.88 kB / 0.5858 GB, free: 21.5 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1547/0.1567, allocations: 81.03 MB / 0.6649 GB, free: 5.598 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.005517/0.1622, allocations: 4.132 MB / 0.6689 GB, free: 1.445 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.003493/0.1657, allocations: 2.406 MB / 0.6713 GB, free: 15.03 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002798/0.166, allocations: 15.94 kB / 0.6713 GB, free: 15.02 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.001508/0.1676, allocations: 0.5353 MB / 0.6718 GB, free: 14.48 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.0005336/0.1681, allocations: 250 kB / 0.6721 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002585/0.1684, allocations: 139.8 kB / 0.6722 GB, free: 14.1 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0008969/0.1693, allocations: 0.8137 MB / 0.673 GB, free: 13.28 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004747/0.1698, allocations: 330.5 kB / 0.6733 GB, free: 12.95 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003662/0.1702, allocations: 291 kB / 0.6736 GB, free: 12.67 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003936/0.1706, allocations: 326.6 kB / 0.6739 GB, free: 12.35 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 9.624e-05/0.1707, allocations: 76 kB / 0.674 GB, free: 12.27 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001175/0.1708, allocations: 75.94 kB / 0.6741 GB, free: 12.2 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0001899/0.171, allocations: 175.4 kB / 0.6742 GB, free: 12.03 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0004123/0.1714, allocations: 378.3 kB / 0.6746 GB, free: 11.66 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.001054/0.1725, allocations: 1.004 MB / 0.6756 GB, free: 10.65 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.1725, allocations: 4 kB / 0.6756 GB, free: 10.64 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.443e-06/0.1725, allocations: 0 / 0.6756 GB, free: 10.64 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.24e-05/0.1725, 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.001541/0.1741, allocations: 0.9652 MB / 0.6765 GB, free: 9.629 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/0.1741, allocations: 9.109 kB / 0.6765 GB, free: 9.621 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001075/0.1742, allocations: 90.7 kB / 0.6766 GB, free: 9.523 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001104/0.1744, allocations: 76.47 kB / 0.6767 GB, free: 9.449 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006719/0.175, allocations: 466 kB / 0.6771 GB, free: 8.953 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.39e-05/0.1751, allocations: 45.12 kB / 0.6772 GB, free: 8.91 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.126e-05/0.1752, allocations: 48 kB / 0.6772 GB, free: 8.863 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007828/0.176, allocations: 430.4 kB / 0.6776 GB, free: 8.438 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.732e-05/0.176, allocations: 0 / 0.6776 GB, free: 8.438 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.012e-05/0.176, allocations: 20 kB / 0.6776 GB, free: 8.418 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.235e-05/0.1761, allocations: 12 kB / 0.6776 GB, free: 8.406 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007227/0.1768, allocations: 375.7 kB / 0.678 GB, free: 8.039 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002193/0.179, allocations: 1.528 MB / 0.6795 GB, free: 6.441 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005607/0.1796, allocations: 338.7 kB / 0.6798 GB, free: 6.098 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005115/0.1801, allocations: 329 kB / 0.6801 GB, free: 5.773 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 2.327e-05/0.1801, allocations: 4 kB / 0.6801 GB, free: 5.77 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.776e-05/0.1802, allocations: 38.5 kB / 0.6802 GB, free: 5.723 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=42): time 1.733e-06/0.1802, allocations: 0.7656 kB / 0.6802 GB, free: 5.723 MB / 0.5137 GB Notification: Performance of matching and sorting (n=42): time 0.001002/0.1812, allocations: 0.4895 MB / 0.6807 GB, free: 5.227 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.666e-05/0.1812, allocations: 67.39 kB / 0.6807 GB, free: 5.148 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006004/0.1818, allocations: 485.9 kB / 0.6812 GB, free: 4.66 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 2.866e-05/0.1819, allocations: 29.7 kB / 0.6812 GB, free: 4.625 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.00023/0.1821, allocations: 280.7 kB / 0.6815 GB, free: 4.348 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001414/0.1823, allocations: 154.6 kB / 0.6816 GB, free: 4.195 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001194/0.1824, allocations: 66.02 kB / 0.6817 GB, free: 4.121 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001929/0.1826, allocations: 358.8 kB / 0.682 GB, free: 3.762 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000286/0.1829, allocations: 124.7 kB / 0.6821 GB, free: 3.641 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000255/0.1831, allocations: 133.1 kB / 0.6823 GB, free: 3.512 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000556/0.1837, allocations: 298.1 kB / 0.6826 GB, free: 3.219 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1837, allocations: 0 / 0.6826 GB, free: 3.219 MB / 0.5137 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006886/0.1844, allocations: 388.8 kB / 0.6829 GB, free: 2.832 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.063e-05/0.1844, allocations: 8 kB / 0.6829 GB, free: 2.824 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.1845, allocations: 4 kB / 0.6829 GB, free: 2.82 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.558e-05/0.1845, allocations: 0 / 0.6829 GB, free: 2.82 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005094/0.185, allocations: 123.9 kB / 0.6831 GB, free: 2.699 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.027e-05/0.185, allocations: 4 kB / 0.6831 GB, free: 2.695 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002344/0.1853, allocations: 39.72 kB / 0.6831 GB, free: 2.656 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.825e-05/0.1853, allocations: 15.98 kB / 0.6831 GB, free: 2.641 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.0002635/0.1856, allocations: 201.7 kB / 0.6833 GB, free: 2.434 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.373e-05/0.1856, allocations: 51.67 kB / 0.6834 GB, free: 2.383 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001234/0.1858, allocations: 61.09 kB / 0.6834 GB, free: 2.32 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.266e-06/0.1858, allocations: 4 kB / 0.6834 GB, free: 2.316 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.163e-06/0.1858, allocations: 0 / 0.6834 GB, free: 2.316 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/0.1858, allocations: 7.984 kB / 0.6834 GB, free: 2.309 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007311/0.1866, allocations: 0.5674 MB / 0.684 GB, free: 1.691 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-06/0.1866, allocations: 4 kB / 0.684 GB, free: 1.688 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005162/0.1871, allocations: 127.8 kB / 0.6841 GB, free: 1.562 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.1871, allocations: 4 kB / 0.6841 GB, free: 1.559 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.75e-05/0.1871, allocations: 12 kB / 0.6841 GB, free: 1.547 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.3e-06/0.1871, allocations: 3.938 kB / 0.6841 GB, free: 1.543 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.1872, allocations: 3.938 kB / 0.6841 GB, free: 1.539 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001072/0.1882, allocations: 0.6481 MB / 0.6848 GB, free: 0.875 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001434/0.1884, allocations: 144.7 kB / 0.6849 GB, free: 0.7148 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.417e-05/0.1885, allocations: 16 kB / 0.6849 GB, free: 0.6992 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000217/0.1887, allocations: 15.94 kB / 0.6849 GB, free: 0.6836 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.185e-05/0.1888, allocations: 23.95 kB / 0.685 GB, free: 0.6602 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.006e-05/0.1888, allocations: 12 kB / 0.685 GB, free: 0.6484 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.000431/0.1892, allocations: 351.1 kB / 0.6853 GB, free: 316 kB / 0.5137 GB Notification: Performance of sort global known variables: time 1.5e-07/0.1892, allocations: 0 / 0.6853 GB, free: 316 kB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0004212/0.1897, allocations: 139.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.001439/0.1911, allocations: 1.212 MB / 0.6866 GB, free: 14.93 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.000649/0.1918, allocations: 323.6 kB / 0.6869 GB, free: 14.62 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1918, allocations: 4 kB / 0.6869 GB, free: 14.61 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0003133/0.1921, allocations: 179.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.0006491/0.1928, allocations: 116.2 kB / 0.6872 GB, free: 14.32 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006684/0.1995, allocations: 4.875 MB / 0.692 GB, free: 9.371 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005611/0.2001, allocations: 0.8665 MB / 0.6928 GB, free: 8.477 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0002077/0.2003, allocations: 56.38 kB / 0.6929 GB, free: 8.422 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002714/0.2005, allocations: 187.4 kB / 0.6931 GB, free: 8.238 MB / 0.5294 GB Notification: Performance of SimCode: time 5.61e-07/0.2006, allocations: 0 / 0.6931 GB, free: 8.238 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04085/0.2414, allocations: 11.45 MB / 0.7042 GB, free: 13.08 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.609/8.85, allocations: 22.31 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 & /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)