Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.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.InternalResistancesOneUTube,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube",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.0013/0.0013, 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.001508/0.001508, allocations: 193.9 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.365/1.365, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9805/0.9805, allocations: 135.1 MB / 425.5 MB, free: 11.93 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001954/0.001954, allocations: 63.03 kB / 0.5055 GB, free: 5.145 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1776/0.1796, allocations: 80.92 MB / 0.5845 GB, free: 4.371 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube): time 0.005277/0.1849, allocations: 3.018 MB / 0.5875 GB, free: 1.336 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003285/0.1883, allocations: 2.141 MB / 0.5896 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003291/0.1886, allocations: 8 kB / 0.5896 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001553/0.1902, allocations: 0.4938 MB / 0.59 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.000384/0.1906, allocations: 150.8 kB / 0.5902 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001335/0.1907, allocations: 55.94 kB / 0.5902 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0004655/0.1912, allocations: 444.8 kB / 0.5907 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002472/0.1915, allocations: 155.2 kB / 0.5908 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002009/0.1917, allocations: 163.3 kB / 0.591 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002155/0.1919, allocations: 183.1 kB / 0.5911 GB, free: 13.55 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.664e-05/0.192, allocations: 32 kB / 0.5912 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.593e-05/0.192, allocations: 36 kB / 0.5912 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001173/0.1922, allocations: 99.66 kB / 0.5913 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001958/0.1924, allocations: 214.9 kB / 0.5915 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0004863/0.1929, allocations: 0.545 MB / 0.592 GB, free: 12.63 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.1929, allocations: 0 / 0.592 GB, free: 12.63 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.623e-06/0.1929, allocations: 4 kB / 0.592 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.095e-05/0.1929, allocations: 0 / 0.592 GB, free: 12.62 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.001014/0.1939, allocations: 0.7045 MB / 0.5927 GB, free: 11.87 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.792e-05/0.194, allocations: 15.97 kB / 0.5927 GB, free: 11.85 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.031e-05/0.194, allocations: 54.73 kB / 0.5928 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.134e-05/0.1941, allocations: 48.38 kB / 0.5928 GB, free: 11.74 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004853/0.1946, allocations: 374.1 kB / 0.5932 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.741e-05/0.1946, allocations: 12.81 kB / 0.5932 GB, free: 11.33 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.84e-05/0.1947, allocations: 27.94 kB / 0.5932 GB, free: 11.3 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003932/0.1951, allocations: 199.2 kB / 0.5934 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.445e-05/0.1951, allocations: 4 kB / 0.5934 GB, free: 11.1 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.06e-05/0.1951, allocations: 4 kB / 0.5934 GB, free: 11.1 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.725e-06/0.1951, allocations: 4 kB / 0.5934 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003765/0.1955, allocations: 173.6 kB / 0.5936 GB, free: 10.92 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001221/0.1968, allocations: 0.8661 MB / 0.5945 GB, free: 9.984 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003087/0.1971, allocations: 158.6 kB / 0.5946 GB, free: 9.82 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002192/0.1973, allocations: 112.8 kB / 0.5947 GB, free: 9.707 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.506e-05/0.1973, allocations: 4 kB / 0.5947 GB, free: 9.703 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.65e-05/0.1974, allocations: 42.5 kB / 0.5948 GB, free: 9.652 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 1.523e-06/0.1974, allocations: 0 / 0.5948 GB, free: 9.652 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18): time 0.0006015/0.198, allocations: 253.3 kB / 0.595 GB, free: 9.398 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.546e-05/0.198, allocations: 51.41 kB / 0.595 GB, free: 9.336 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004835/0.1985, allocations: 417.7 kB / 0.5954 GB, free: 8.918 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.821e-05/0.1985, allocations: 29.7 kB / 0.5955 GB, free: 8.883 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000151/0.1987, allocations: 204.3 kB / 0.5957 GB, free: 8.68 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 6.003e-05/0.1988, allocations: 63.05 kB / 0.5957 GB, free: 8.617 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.727e-05/0.1988, allocations: 37.7 kB / 0.5958 GB, free: 8.574 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001292/0.199, allocations: 346.8 kB / 0.5961 GB, free: 8.227 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001447/0.1991, allocations: 51.97 kB / 0.5961 GB, free: 8.176 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001359/0.1993, allocations: 58.2 kB / 0.5962 GB, free: 8.121 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002965/0.1996, allocations: 144.7 kB / 0.5963 GB, free: 7.977 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.596e-06/0.1996, allocations: 4 kB / 0.5963 GB, free: 7.973 MB / 0.4981 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003777/0.2, allocations: 211.3 kB / 0.5965 GB, free: 7.762 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.642e-05/0.2, allocations: 10.19 kB / 0.5966 GB, free: 7.754 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.2, allocations: 0 / 0.5966 GB, free: 7.754 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.405e-05/0.2, allocations: 3.938 kB / 0.5966 GB, free: 7.75 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002511/0.2003, allocations: 51.97 kB / 0.5966 GB, free: 7.699 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.265e-06/0.2003, allocations: 4 kB / 0.5966 GB, free: 7.695 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001441/0.2004, allocations: 19.83 kB / 0.5966 GB, free: 7.676 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.128e-05/0.2005, allocations: 7.938 kB / 0.5966 GB, free: 7.668 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 (20): * Single equations (assignments): 20 * 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.0001566/0.2006, allocations: 161.8 kB / 0.5968 GB, free: 7.5 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.879e-05/0.2007, allocations: 39.47 kB / 0.5968 GB, free: 7.461 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.75e-05/0.2008, allocations: 39.59 kB / 0.5969 GB, free: 7.414 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.2008, allocations: 4 kB / 0.5969 GB, free: 7.41 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.2008, allocations: 7.938 kB / 0.5969 GB, free: 7.402 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.2008, allocations: 0 / 0.5969 GB, free: 7.402 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003976/0.2012, allocations: 377.3 kB / 0.5972 GB, free: 6.984 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.2012, allocations: 0 / 0.5972 GB, free: 6.984 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002608/0.2015, allocations: 59.84 kB / 0.5973 GB, free: 6.926 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.706e-06/0.2015, allocations: 0 / 0.5973 GB, free: 6.926 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.592e-05/0.2015, allocations: 4 kB / 0.5973 GB, free: 6.922 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.2015, allocations: 0 / 0.5973 GB, free: 6.922 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2015, allocations: 0 / 0.5973 GB, free: 6.922 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005975/0.2021, allocations: 378.9 kB / 0.5977 GB, free: 6.535 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001035/0.2022, allocations: 120.6 kB / 0.5978 GB, free: 6.398 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.552e-05/0.2023, allocations: 4 kB / 0.5978 GB, free: 6.395 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001723/0.2025, allocations: 7.984 kB / 0.5978 GB, free: 6.387 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.184e-05/0.2025, allocations: 19.89 kB / 0.5978 GB, free: 6.367 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.738e-06/0.2025, allocations: 4.062 kB / 0.5978 GB, free: 6.363 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003214/0.2029, allocations: 303.2 kB / 0.5981 GB, free: 6.074 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2029, allocations: 3.938 kB / 0.5981 GB, free: 6.07 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003103/0.2032, allocations: 71.84 kB / 0.5982 GB, free: 6 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (intRes1UTub.capFil1.T,intRes1UTub.capFil2.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 (18): * Single equations (assignments): 18 * 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.0008888/0.2041, allocations: 0.9214 MB / 0.5991 GB, free: 5.055 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003774/0.2045, allocations: 151.7 kB / 0.5992 GB, free: 4.906 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.2045, allocations: 4 kB / 0.5992 GB, free: 4.902 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001598/0.2047, allocations: 79.89 kB / 0.5993 GB, free: 4.824 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005992/0.2053, allocations: 94.02 kB / 0.5994 GB, free: 4.734 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004345/0.2096, allocations: 3.534 MB / 0.6028 GB, free: 1.121 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000354/0.21, allocations: 0.8028 MB / 0.6036 GB, free: 300 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.000145/0.2102, allocations: 38.95 kB / 0.6037 GB, free: 260 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001664/0.2103, allocations: 115.4 kB / 0.6038 GB, free: 144 kB / 0.4981 GB Notification: Performance of SimCode: time 1.593e-06/0.2103, allocations: 0 / 0.6038 GB, free: 144 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3016/0.5119, allocations: 7.829 MB / 0.6114 GB, free: 51.95 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.574/8.086, allocations: 4.375 kB / 0.6114 GB, free: 51.95 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube_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_InternalResistancesOneUTube.fmu > IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe 2>&1)