Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_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_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.005567/0.005567, allocations: 101.7 kB / 15.73 MB, free: 6.059 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.001202/0.001202, allocations: 196.3 kB / 16.68 MB, free: 5.969 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.424/1.424, allocations: 222.9 MB / 240.4 MB, free: 4.172 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8094/0.8094, allocations: 132.2 MB / 422.7 MB, free: 1.621 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001495/0.001495, allocations: 67.89 kB / 0.5809 GB, free: 7.957 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.475/0.4765, allocations: 80.2 MB / 0.6592 GB, free: 9.836 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube): time 0.003702/0.4803, allocations: 3.028 MB / 0.6622 GB, free: 7.711 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002235/0.4825, allocations: 2.143 MB / 0.6643 GB, free: 6.156 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001459/0.4827, allocations: 9.406 kB / 0.6643 GB, free: 6.152 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001193/0.4839, allocations: 0.4937 MB / 0.6648 GB, free: 5.895 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002175/0.4841, allocations: 153.5 kB / 0.6649 GB, free: 5.766 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001014/0.4843, allocations: 61.34 kB / 0.665 GB, free: 5.711 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0003936/0.4847, allocations: 461.2 kB / 0.6654 GB, free: 5.438 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002229/0.4849, allocations: 149.4 kB / 0.6656 GB, free: 5.352 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001747/0.4851, allocations: 160.7 kB / 0.6657 GB, free: 5.258 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001774/0.4853, allocations: 176.4 kB / 0.6659 GB, free: 5.141 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.857e-05/0.4853, allocations: 34.06 kB / 0.6659 GB, free: 5.141 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.202e-05/0.4854, allocations: 42.75 kB / 0.666 GB, free: 5.133 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.364e-05/0.4855, allocations: 103 kB / 0.6661 GB, free: 5.051 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001658/0.4856, allocations: 217.2 kB / 0.6663 GB, free: 4.906 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0004264/0.4861, allocations: 0.5441 MB / 0.6668 GB, free: 4.496 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.4861, allocations: 0 / 0.6668 GB, free: 4.496 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.373e-06/0.4861, allocations: 1.406 kB / 0.6668 GB, free: 4.496 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.237e-05/0.4861, allocations: 0 / 0.6668 GB, free: 4.496 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.0008457/0.487, allocations: 0.7107 MB / 0.6675 GB, free: 3.867 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.053e-05/0.487, allocations: 10.19 kB / 0.6675 GB, free: 3.867 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.349e-05/0.4871, allocations: 57.42 kB / 0.6676 GB, free: 3.809 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.611e-05/0.4871, allocations: 50.61 kB / 0.6676 GB, free: 3.781 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004081/0.4875, allocations: 381.8 kB / 0.668 GB, free: 3.438 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.835e-05/0.4876, allocations: 20.53 kB / 0.668 GB, free: 3.426 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.214e-05/0.4876, allocations: 26.14 kB / 0.668 GB, free: 3.414 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003497/0.488, allocations: 197.9 kB / 0.6682 GB, free: 3.289 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.428e-05/0.488, allocations: 1.219 kB / 0.6682 GB, free: 3.289 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.729e-05/0.488, allocations: 9.188 kB / 0.6682 GB, free: 3.281 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/0.488, allocations: 5.688 kB / 0.6682 GB, free: 3.281 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003468/0.4884, allocations: 172 kB / 0.6684 GB, free: 3.199 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009301/0.4893, allocations: 0.8608 MB / 0.6692 GB, free: 2.449 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000269/0.4896, allocations: 156.3 kB / 0.6694 GB, free: 2.359 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001917/0.4898, allocations: 121.2 kB / 0.6695 GB, free: 2.293 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.785e-05/0.4898, allocations: 6.75 kB / 0.6695 GB, free: 2.289 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.579e-05/0.4898, allocations: 30.56 kB / 0.6695 GB, free: 2.25 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 1.283e-06/0.4899, allocations: 1.312 kB / 0.6695 GB, free: 2.25 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18): time 0.0005388/0.4904, allocations: 251.5 kB / 0.6698 GB, free: 2.117 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.992e-05/0.4904, allocations: 53 kB / 0.6698 GB, free: 2.055 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003903/0.4908, allocations: 421 kB / 0.6702 GB, free: 1.805 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.274e-05/0.4908, allocations: 33.64 kB / 0.6702 GB, free: 1.766 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 9.63e-05/0.4909, allocations: 209.8 kB / 0.6704 GB, free: 1.578 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.271e-05/0.491, allocations: 66.42 kB / 0.6705 GB, free: 1.52 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.902e-05/0.491, allocations: 36.61 kB / 0.6705 GB, free: 1.488 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 7.154e-05/0.4911, allocations: 347.4 kB / 0.6709 GB, free: 1.148 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001344/0.4913, allocations: 52.72 kB / 0.6709 GB, free: 1.125 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001228/0.4914, allocations: 62.62 kB / 0.671 GB, free: 1.094 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002606/0.4917, allocations: 131.9 kB / 0.6711 GB, free: 1.027 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.4917, allocations: 0 / 0.6711 GB, free: 1.027 MB / 0.4981 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003364/0.492, allocations: 211.1 kB / 0.6713 GB, free: 0.9102 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.46e-05/0.492, allocations: 5.969 kB / 0.6713 GB, free: 0.9102 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.492, allocations: 0 / 0.6713 GB, free: 0.9102 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.519e-05/0.4921, allocations: 1.438 kB / 0.6713 GB, free: 0.9102 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002336/0.4923, allocations: 61.03 kB / 0.6714 GB, free: 0.8906 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.973e-06/0.4923, allocations: 1.188 kB / 0.6714 GB, free: 0.8906 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001212/0.4924, allocations: 21.69 kB / 0.6714 GB, free: 0.875 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.215e-05/0.4924, allocations: 7.781 kB / 0.6714 GB, free: 0.8711 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.0001172/0.4926, allocations: 166.5 kB / 0.6716 GB, free: 0.7227 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.479e-05/0.4926, allocations: 40.39 kB / 0.6716 GB, free: 0.6992 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.439e-05/0.4927, allocations: 39.75 kB / 0.6716 GB, free: 0.668 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.4927, allocations: 5.438 kB / 0.6716 GB, free: 0.6641 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.4927, allocations: 1.125 kB / 0.6716 GB, free: 0.6641 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.4927, allocations: 3.984 kB / 0.6717 GB, free: 0.6602 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003143/0.493, allocations: 374.3 kB / 0.672 GB, free: 332 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.4931, allocations: 3.938 kB / 0.672 GB, free: 328 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002365/0.4933, allocations: 49.81 kB / 0.6721 GB, free: 320 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.4933, allocations: 4.938 kB / 0.6721 GB, free: 316 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.479e-05/0.4933, allocations: 5.281 kB / 0.6721 GB, free: 312 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.424e-06/0.4933, allocations: 1.125 kB / 0.6721 GB, free: 312 kB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.4933, allocations: 3.984 kB / 0.6721 GB, free: 308 kB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005033/0.4938, allocations: 382.3 kB / 0.6724 GB, free: 40 kB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001241/0.494, allocations: 120.7 kB / 0.6726 GB, free: 15.91 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.292e-05/0.494, allocations: 5.438 kB / 0.6726 GB, free: 15.91 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001493/0.4942, allocations: 11.61 kB / 0.6726 GB, free: 15.9 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.867e-05/0.4942, allocations: 17.73 kB / 0.6726 GB, free: 15.89 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.647e-06/0.4942, allocations: 2.75 kB / 0.6726 GB, free: 15.89 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003216/0.4946, allocations: 306 kB / 0.6729 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.41e-07/0.4946, allocations: 0 / 0.6729 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002898/0.4949, allocations: 72.67 kB / 0.673 GB, free: 15.69 MB / 0.5137 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.0008357/0.4957, allocations: 0.9212 MB / 0.6739 GB, free: 14.9 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0003361/0.4961, allocations: 141.3 kB / 0.674 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.4961, allocations: 0.8125 kB / 0.674 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001557/0.4962, allocations: 81.23 kB / 0.6741 GB, free: 14.8 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005209/0.4968, allocations: 97.55 kB / 0.6742 GB, free: 14.75 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004203/0.501, allocations: 3.494 MB / 0.6776 GB, free: 12.41 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004313/0.5014, allocations: 0.8015 MB / 0.6784 GB, free: 11.65 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001335/0.5016, allocations: 37.48 kB / 0.6784 GB, free: 11.64 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001732/0.5017, allocations: 116.5 kB / 0.6785 GB, free: 11.54 MB / 0.5137 GB Notification: Performance of SimCode: time 2.8e-07/0.5018, allocations: 0 / 0.6785 GB, free: 11.54 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02965/0.5314, allocations: 7.972 MB / 0.6863 GB, free: 7.723 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.742/8.273, allocations: 9.391 kB / 0.6863 GB, free: 7.719 MB / 0.5137 GB (rm -f IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; mkfifo IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe >> ../files/IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.sim & python3 -m fmpy simulate --output-file IDEAS_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_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube.fmu > IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe 2>&1)