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.001231/0.001231, allocations: 91.14 kB / 15.06 MB, free: 1.098 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.001683/0.001683, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.423/1.423, allocations: 223.3 MB / 240 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9317/0.9317, allocations: 135.3 MB / 426.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003256/0.0003257, allocations: 9.344 kB / 0.5071 GB, free: 5.02 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1691/0.1694, allocations: 82.32 MB / 0.5875 GB, free: 2.871 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.004104/0.1736, allocations: 3.566 MB / 0.591 GB, free: 15.28 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.003237/0.1768, allocations: 2.213 MB / 0.5931 GB, free: 13.06 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003129/0.1772, allocations: 16 kB / 0.5932 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001176/0.1784, allocations: 446 kB / 0.5936 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0004435/0.1788, allocations: 214.5 kB / 0.5938 GB, free: 12.4 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000203/0.179, allocations: 91.91 kB / 0.5939 GB, free: 12.31 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0007783/0.1798, allocations: 0.7551 MB / 0.5946 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003905/0.1802, allocations: 245.5 kB / 0.5949 GB, free: 11.3 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003044/0.1805, allocations: 235.1 kB / 0.5951 GB, free: 11.07 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003328/0.1809, allocations: 282.7 kB / 0.5953 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.27e-05/0.1809, allocations: 32 kB / 0.5954 GB, free: 10.76 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 8.057e-05/0.181, allocations: 40 kB / 0.5954 GB, free: 10.72 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001246/0.1812, allocations: 123.5 kB / 0.5955 GB, free: 10.6 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001358/0.1813, allocations: 157.4 kB / 0.5957 GB, free: 10.44 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0006392/0.1819, allocations: 0.7906 MB / 0.5965 GB, free: 9.648 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 1.658e-05/0.182, allocations: 7.984 kB / 0.5965 GB, free: 9.641 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.244e-06/0.182, allocations: 0 / 0.5965 GB, free: 9.641 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.067e-05/0.182, allocations: 0 / 0.5965 GB, free: 9.641 MB / 0.4981 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.001214/0.1832, allocations: 0.8488 MB / 0.5973 GB, free: 8.742 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.954e-05/0.1833, allocations: 12.03 kB / 0.5973 GB, free: 8.73 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.921e-05/0.1834, allocations: 90.52 kB / 0.5974 GB, free: 8.633 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.58e-05/0.1835, allocations: 75.06 kB / 0.5975 GB, free: 8.559 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005394/0.184, allocations: 436.7 kB / 0.5979 GB, free: 8.094 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.075e-05/0.184, allocations: 37 kB / 0.5979 GB, free: 8.059 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.266e-05/0.1841, allocations: 48 kB / 0.598 GB, free: 8.012 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007485/0.1849, allocations: 426.5 kB / 0.5984 GB, free: 7.59 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.832e-05/0.1849, allocations: 3.906 kB / 0.5984 GB, free: 7.586 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.536e-05/0.185, allocations: 20 kB / 0.5984 GB, free: 7.566 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.338e-05/0.185, allocations: 19.94 kB / 0.5984 GB, free: 7.547 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006572/0.1856, allocations: 371.8 kB / 0.5988 GB, free: 7.184 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001966/0.1876, allocations: 1.539 MB / 0.6003 GB, free: 5.57 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005129/0.1881, allocations: 335.7 kB / 0.6006 GB, free: 5.23 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004791/0.1886, allocations: 361.3 kB / 0.6009 GB, free: 4.875 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.561e-05/0.1887, allocations: 4.688 kB / 0.6009 GB, free: 4.871 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.883e-05/0.1887, allocations: 38.56 kB / 0.601 GB, free: 4.824 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=42): time 1.794e-06/0.1887, allocations: 3.938 kB / 0.601 GB, free: 4.82 MB / 0.4981 GB Notification: Performance of matching and sorting (n=42): time 0.0009196/0.1896, allocations: 0.509 MB / 0.6015 GB, free: 4.305 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.959e-05/0.1897, allocations: 59.19 kB / 0.6015 GB, free: 4.234 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005419/0.1902, allocations: 481.9 kB / 0.602 GB, free: 3.75 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.838e-05/0.1903, allocations: 41.7 kB / 0.602 GB, free: 3.703 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001935/0.1905, allocations: 276.3 kB / 0.6023 GB, free: 3.43 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001138/0.1906, allocations: 145.8 kB / 0.6024 GB, free: 3.285 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.701e-05/0.1906, allocations: 8 kB / 0.6024 GB, free: 3.277 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001502/0.1908, allocations: 358.8 kB / 0.6028 GB, free: 2.918 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002414/0.191, allocations: 128.7 kB / 0.6029 GB, free: 2.789 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002323/0.1913, allocations: 129.5 kB / 0.603 GB, free: 2.664 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002562/0.1915, allocations: 147.7 kB / 0.6032 GB, free: 2.52 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.1915, allocations: 0 / 0.6032 GB, free: 2.52 MB / 0.4981 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000648/0.1922, allocations: 407.8 kB / 0.6036 GB, free: 2.117 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/0.1922, allocations: 4 kB / 0.6036 GB, free: 2.113 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.453e-06/0.1922, allocations: 0 / 0.6036 GB, free: 2.113 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/0.1923, allocations: 0 / 0.6036 GB, free: 2.113 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004888/0.1927, allocations: 127.9 kB / 0.6037 GB, free: 1.988 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.03e-05/0.1928, allocations: 4 kB / 0.6037 GB, free: 1.984 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002553/0.193, allocations: 55.58 kB / 0.6037 GB, free: 1.93 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.879e-05/0.1931, allocations: 8 kB / 0.6037 GB, free: 1.922 MB / 0.4981 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002399/0.1933, allocations: 193.8 kB / 0.6039 GB, free: 1.723 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.37e-05/0.1934, allocations: 51.39 kB / 0.604 GB, free: 1.672 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001207/0.1935, allocations: 69.09 kB / 0.604 GB, free: 1.605 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.551e-06/0.1935, allocations: 4 kB / 0.6041 GB, free: 1.602 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-06/0.1935, allocations: 0 / 0.6041 GB, free: 1.602 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.1935, allocations: 0 / 0.6041 GB, free: 1.602 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006489/0.1942, allocations: 0.5712 MB / 0.6046 GB, free: 0.9805 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.1942, allocations: 0 / 0.6046 GB, free: 0.9805 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005182/0.1947, allocations: 127.9 kB / 0.6047 GB, free: 0.8555 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.51e-06/0.1947, allocations: 3.953 kB / 0.6047 GB, free: 0.8516 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.678e-05/0.1948, allocations: 19.98 kB / 0.6048 GB, free: 0.832 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.1948, allocations: 3.938 kB / 0.6048 GB, free: 0.8281 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.113e-06/0.1948, allocations: 0 / 0.6048 GB, free: 0.8281 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009632/0.1958, allocations: 0.6622 MB / 0.6054 GB, free: 152 kB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.2947/0.4905, allocations: 134.7 kB / 0.6055 GB, free: 48.88 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002129/0.4907, allocations: 8.266 kB / 0.6055 GB, free: 48.88 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003474/0.4911, allocations: 24.73 kB / 0.6056 GB, free: 48.88 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.156e-05/0.4912, allocations: 25.41 kB / 0.6056 GB, free: 48.88 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.402e-05/0.4912, allocations: 13 kB / 0.6056 GB, free: 48.88 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0004903/0.4917, allocations: 353.2 kB / 0.6059 GB, free: 48.8 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.3e-07/0.4917, allocations: 0 / 0.6059 GB, free: 48.8 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004915/0.4922, allocations: 141.7 kB / 0.6061 GB, free: 48.8 MB / 0.4981 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001075/0.4933, allocations: 1.222 MB / 0.6073 GB, free: 48.15 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005227/0.4938, allocations: 332.2 kB / 0.6076 GB, free: 48.14 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.4938, allocations: 0.6562 kB / 0.6076 GB, free: 48.14 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002533/0.4941, allocations: 182.7 kB / 0.6078 GB, free: 48.14 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006657/0.4948, allocations: 116.6 kB / 0.6079 GB, free: 48.14 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004207/0.499, allocations: 3.314 MB / 0.6111 GB, free: 47.01 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002535/0.4992, allocations: 0.8701 MB / 0.612 GB, free: 46.31 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001969/0.4995, allocations: 58.06 kB / 0.612 GB, free: 46.29 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002901/0.4997, allocations: 190.1 kB / 0.6122 GB, free: 46.29 MB / 0.4981 GB Notification: Performance of SimCode: time 7.41e-07/0.4998, allocations: 0 / 0.6122 GB, free: 46.29 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01984/0.5196, allocations: 10.33 MB / 0.6223 GB, free: 45.66 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000144/0.5198, allocations: 251.3 kB / 0.6225 GB, free: 45.36 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.856/2.376, allocations: 0 / 0.6225 GB, free: 45.36 MB / 0.4981 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/linux/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) Environment - environmentSimulation: