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.001646/0.001646, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002196/0.002196, allocations: 193.4 kB / 16.53 MB, free: 6.391 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.4/1.4, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.005/1.005, allocations: 135.1 MB / 425.5 MB, free: 11.99 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001513/0.001513, allocations: 63.73 kB / 0.5055 GB, free: 5.16 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1753/0.1768, allocations: 80.92 MB / 0.5845 GB, free: 4.406 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.005885/0.1828, allocations: 4.129 MB / 0.5885 GB, free: 252 kB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003794/0.1866, allocations: 2.414 MB / 0.5909 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005421/0.1872, allocations: 12 kB / 0.5909 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001867/0.1891, allocations: 0.5394 MB / 0.5914 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0008134/0.1899, allocations: 250 kB / 0.5917 GB, free: 13.03 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003586/0.1903, allocations: 135.9 kB / 0.5918 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001132/0.1915, allocations: 0.8021 MB / 0.5926 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005736/0.192, allocations: 342.4 kB / 0.5929 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004488/0.1925, allocations: 290.9 kB / 0.5932 GB, free: 11.46 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004625/0.193, allocations: 334.6 kB / 0.5935 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001157/0.1931, allocations: 72 kB / 0.5936 GB, free: 11.07 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000148/0.1933, allocations: 76 kB / 0.5936 GB, free: 10.99 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001714/0.1934, allocations: 171.4 kB / 0.5938 GB, free: 10.82 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003945/0.1938, allocations: 382.3 kB / 0.5942 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0008377/0.1947, allocations: 0.9928 MB / 0.5951 GB, free: 9.453 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.703e-06/0.1947, allocations: 0 / 0.5951 GB, free: 9.453 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.653e-06/0.1947, allocations: 3.938 kB / 0.5951 GB, free: 9.449 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 3.426e-05/0.1947, allocations: 0 / 0.5951 GB, free: 9.449 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.001705/0.1965, allocations: 0.9462 MB / 0.5961 GB, free: 8.453 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/0.1965, allocations: 12.03 kB / 0.5961 GB, free: 8.441 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001026/0.1966, allocations: 90.7 kB / 0.5962 GB, free: 8.344 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001255/0.1968, allocations: 72.09 kB / 0.5962 GB, free: 8.273 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006172/0.1974, allocations: 453.6 kB / 0.5967 GB, free: 7.793 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.883e-05/0.1974, allocations: 37.38 kB / 0.5967 GB, free: 7.758 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.084e-05/0.1975, allocations: 47.94 kB / 0.5968 GB, free: 7.711 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007328/0.1982, allocations: 430.5 kB / 0.5972 GB, free: 7.285 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.695e-05/0.1983, allocations: 4 kB / 0.5972 GB, free: 7.281 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.833e-05/0.1983, allocations: 23.98 kB / 0.5972 GB, free: 7.258 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.605e-05/0.1983, allocations: 12 kB / 0.5972 GB, free: 7.246 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006743/0.199, allocations: 371.7 kB / 0.5976 GB, free: 6.883 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002065/0.2011, allocations: 1.528 MB / 0.599 GB, free: 5.285 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000525/0.2016, allocations: 338.9 kB / 0.5994 GB, free: 4.945 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004674/0.2021, allocations: 320.8 kB / 0.5997 GB, free: 4.629 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.399e-05/0.2021, allocations: 8.625 kB / 0.5997 GB, free: 4.621 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.686e-05/0.2022, allocations: 38.56 kB / 0.5997 GB, free: 4.574 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=42): time 1.984e-06/0.2022, allocations: 0 / 0.5997 GB, free: 4.574 MB / 0.4981 GB Notification: Performance of matching and sorting (n=42): time 0.0009687/0.2031, allocations: 0.4885 MB / 0.6002 GB, free: 4.078 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.355e-05/0.2032, allocations: 63.17 kB / 0.6003 GB, free: 4.004 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005495/0.2038, allocations: 489.9 kB / 0.6007 GB, free: 3.512 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.812e-05/0.2038, allocations: 33.7 kB / 0.6008 GB, free: 3.473 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001796/0.204, allocations: 276.3 kB / 0.601 GB, free: 3.199 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001097/0.2041, allocations: 145.8 kB / 0.6012 GB, free: 3.055 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.212e-05/0.2042, allocations: 62.08 kB / 0.6012 GB, free: 2.984 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001326/0.2043, allocations: 358.8 kB / 0.6016 GB, free: 2.625 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002452/0.2046, allocations: 124.6 kB / 0.6017 GB, free: 2.504 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002273/0.2048, allocations: 129.5 kB / 0.6018 GB, free: 2.379 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004853/0.2053, allocations: 303.3 kB / 0.6021 GB, free: 2.082 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.2053, allocations: 4.703 kB / 0.6021 GB, free: 2.078 MB / 0.4981 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006049/0.2059, allocations: 388.5 kB / 0.6025 GB, free: 1.691 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/0.206, allocations: 10.28 kB / 0.6025 GB, free: 1.684 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/0.206, allocations: 0 / 0.6025 GB, free: 1.684 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/0.206, allocations: 8 kB / 0.6025 GB, free: 1.676 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004825/0.2065, allocations: 123.9 kB / 0.6026 GB, free: 1.555 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.037e-05/0.2065, allocations: 3.938 kB / 0.6026 GB, free: 1.551 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002103/0.2067, allocations: 39.62 kB / 0.6026 GB, free: 1.512 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.283e-05/0.2068, allocations: 11.98 kB / 0.6027 GB, free: 1.5 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001949/0.207, allocations: 193.7 kB / 0.6028 GB, free: 1.301 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.752e-05/0.207, allocations: 51.34 kB / 0.6029 GB, free: 1.25 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.6e-05/0.2071, allocations: 69.09 kB / 0.603 GB, free: 1.184 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.229e-06/0.2072, allocations: 4 kB / 0.603 GB, free: 1.18 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.2072, allocations: 4 kB / 0.603 GB, free: 1.176 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.2072, allocations: 3.984 kB / 0.603 GB, free: 1.172 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006043/0.2078, allocations: 0.5674 MB / 0.6035 GB, free: 0.5547 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.2078, allocations: 0 / 0.6035 GB, free: 0.5547 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004983/0.2083, allocations: 127.8 kB / 0.6036 GB, free: 440 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.841e-06/0.2083, allocations: 4 kB / 0.6037 GB, free: 436 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.81e-05/0.2083, allocations: 12 kB / 0.6037 GB, free: 424 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.879e-06/0.2084, allocations: 4 kB / 0.6037 GB, free: 420 kB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.2084, allocations: 0 / 0.6037 GB, free: 420 kB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2681/0.4764, allocations: 0.6416 MB / 0.6043 GB, free: 52.18 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002053/0.4767, allocations: 140.2 kB / 0.6044 GB, free: 52.09 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.834e-05/0.4768, allocations: 6.5 kB / 0.6044 GB, free: 52.09 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002467/0.477, allocations: 15.61 kB / 0.6044 GB, free: 52.09 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.22e-05/0.4771, allocations: 24.11 kB / 0.6045 GB, free: 52.09 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.989e-05/0.4771, allocations: 8.844 kB / 0.6045 GB, free: 52.09 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003732/0.4775, allocations: 356.3 kB / 0.6048 GB, free: 52.01 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.11e-07/0.4775, allocations: 0 / 0.6048 GB, free: 52.01 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000435/0.478, allocations: 145.7 kB / 0.605 GB, free: 52.01 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 (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.0009993/0.479, allocations: 1.205 MB / 0.6061 GB, free: 51.35 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0006348/0.4796, allocations: 343.9 kB / 0.6065 GB, free: 51.34 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.4796, allocations: 2.188 kB / 0.6065 GB, free: 51.34 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002414/0.4799, allocations: 187 kB / 0.6066 GB, free: 51.34 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006442/0.4805, allocations: 126.7 kB / 0.6068 GB, free: 51.34 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004985/0.4855, allocations: 4.999 MB / 0.6116 GB, free: 48.66 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002481/0.4858, allocations: 0.8674 MB / 0.6125 GB, free: 47.95 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001971/0.486, allocations: 58.91 kB / 0.6125 GB, free: 47.94 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002/0.4862, allocations: 192.8 kB / 0.6127 GB, free: 47.8 MB / 0.4981 GB Notification: Performance of SimCode: time 7.51e-07/0.4862, allocations: 0 / 0.6127 GB, free: 47.8 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03084/0.5171, allocations: 11.23 MB / 0.6237 GB, free: 46.87 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.622/8.139, allocations: 9.156 kB / 0.6237 GB, free: 46.87 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 & 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)