Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/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.InternalResistancesTwoUTube,fileNamePrefix="IDEAS_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_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.001193/0.001192, 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.001732/0.001732, allocations: 194.1 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.323/1.323, 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/package.mo): time 0.7466/0.7466, allocations: 132.2 MB / 422.6 MB, free: 1.777 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 68.48 kB / 0.5019 GB, free: 3.715 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.397/0.3983, allocations: 80.19 MB / 0.5802 GB, free: 4.594 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.004431/0.4028, allocations: 4.139 MB / 0.5843 GB, free: 1.656 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003173/0.406, allocations: 2.417 MB / 0.5866 GB, free: 15.88 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002778/0.4063, allocations: 9.969 kB / 0.5866 GB, free: 15.88 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001487/0.4078, allocations: 0.5395 MB / 0.5872 GB, free: 15.63 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004416/0.4082, allocations: 246.3 kB / 0.5874 GB, free: 15.46 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00027/0.4085, allocations: 138.5 kB / 0.5875 GB, free: 15.37 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008721/0.4094, allocations: 0.812 MB / 0.5883 GB, free: 14.95 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004707/0.4098, allocations: 327.6 kB / 0.5886 GB, free: 14.79 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003367/0.4102, allocations: 286 kB / 0.5889 GB, free: 14.64 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003629/0.4106, allocations: 332.8 kB / 0.5892 GB, free: 14.47 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 9.715e-05/0.4107, allocations: 75.34 kB / 0.5893 GB, free: 14.47 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001282/0.4108, allocations: 73.53 kB / 0.5894 GB, free: 14.47 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001706/0.411, allocations: 173.5 kB / 0.5895 GB, free: 14.36 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003636/0.4113, allocations: 387.7 kB / 0.5899 GB, free: 14.12 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001006/0.4124, allocations: 0.9797 MB / 0.5909 GB, free: 13.78 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.4124, allocations: 0.9375 kB / 0.5909 GB, free: 13.78 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.4124, allocations: 0 / 0.5909 GB, free: 13.78 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.24e-05/0.4124, allocations: 0 / 0.5909 GB, free: 13.78 MB / 446.1 MB 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.001432/0.4138, allocations: 0.9607 MB / 0.5918 GB, free: 13.07 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.4139, allocations: 9.094 kB / 0.5918 GB, free: 13.07 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.703e-05/0.414, allocations: 90.72 kB / 0.5919 GB, free: 13 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001083/0.4141, allocations: 72.12 kB / 0.592 GB, free: 12.96 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005756/0.4147, allocations: 461.4 kB / 0.5924 GB, free: 12.6 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.095e-05/0.4147, allocations: 35.88 kB / 0.5924 GB, free: 12.58 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.909e-05/0.4148, allocations: 51 kB / 0.5925 GB, free: 12.56 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007659/0.4156, allocations: 426.2 kB / 0.5929 GB, free: 12.38 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.745e-05/0.4156, allocations: 1.344 kB / 0.5929 GB, free: 12.38 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.01e-05/0.4157, allocations: 20.09 kB / 0.5929 GB, free: 12.36 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.487e-05/0.4157, allocations: 12.34 kB / 0.5929 GB, free: 12.36 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007504/0.4164, allocations: 364.9 kB / 0.5933 GB, free: 12.23 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002252/0.4187, allocations: 1.541 MB / 0.5948 GB, free: 11.32 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005162/0.4192, allocations: 347 kB / 0.5951 GB, free: 11.16 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004628/0.4197, allocations: 322.5 kB / 0.5954 GB, free: 11.03 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.127e-05/0.4197, allocations: 3.625 kB / 0.5954 GB, free: 11.03 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.442e-05/0.4198, allocations: 41.31 kB / 0.5955 GB, free: 10.98 MB / 446.1 MB Notification: Performance of pre-optimization done (n=42): time 3.727e-06/0.4198, allocations: 3.984 kB / 0.5955 GB, free: 10.98 MB / 446.1 MB Notification: Performance of matching and sorting (n=42): time 0.0008945/0.4207, allocations: 0.4946 MB / 0.5959 GB, free: 10.72 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.054e-05/0.4207, allocations: 55.47 kB / 0.596 GB, free: 10.66 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005046/0.4212, allocations: 486 kB / 0.5965 GB, free: 10.38 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.935e-05/0.4213, allocations: 31.23 kB / 0.5965 GB, free: 10.35 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001706/0.4214, allocations: 275 kB / 0.5968 GB, free: 10.1 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001072/0.4215, allocations: 147.2 kB / 0.5969 GB, free: 9.973 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.438e-05/0.4216, allocations: 64.41 kB / 0.597 GB, free: 9.922 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.4218, allocations: 363.1 kB / 0.5973 GB, free: 9.57 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002396/0.422, allocations: 122 kB / 0.5974 GB, free: 9.512 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002329/0.4223, allocations: 130.2 kB / 0.5975 GB, free: 9.449 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005051/0.4228, allocations: 287.2 kB / 0.5978 GB, free: 9.305 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.4228, allocations: 3.938 kB / 0.5978 GB, free: 9.301 MB / 446.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006362/0.4234, allocations: 408.7 kB / 0.5982 GB, free: 9.082 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.671e-05/0.4235, allocations: 5.766 kB / 0.5982 GB, free: 9.082 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.65e-06/0.4235, allocations: 1.281 kB / 0.5982 GB, free: 9.082 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.922e-05/0.4235, allocations: 1.25 kB / 0.5982 GB, free: 9.082 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004854/0.424, allocations: 124.2 kB / 0.5983 GB, free: 9.055 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.899e-06/0.424, allocations: 5.172 kB / 0.5983 GB, free: 9.051 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002186/0.4242, allocations: 28.81 kB / 0.5984 GB, free: 9.031 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.133e-05/0.4243, allocations: 15.75 kB / 0.5984 GB, free: 9.023 MB / 446.1 MB 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.0002038/0.4245, allocations: 207.7 kB / 0.5986 GB, free: 8.848 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.971e-05/0.4246, allocations: 51.78 kB / 0.5986 GB, free: 8.82 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000102/0.4247, allocations: 62.5 kB / 0.5987 GB, free: 8.77 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.073e-06/0.4247, allocations: 5.125 kB / 0.5987 GB, free: 8.77 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.575e-06/0.4247, allocations: 0 / 0.5987 GB, free: 8.77 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.4247, allocations: 0 / 0.5987 GB, free: 8.77 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006309/0.4253, allocations: 0.5713 MB / 0.5993 GB, free: 8.297 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.4254, allocations: 0 / 0.5993 GB, free: 8.297 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005017/0.4259, allocations: 127.6 kB / 0.5994 GB, free: 8.266 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.4259, allocations: 1.562 kB / 0.5994 GB, free: 8.266 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.196e-05/0.4259, allocations: 6.594 kB / 0.5994 GB, free: 8.262 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.4259, allocations: 2.25 kB / 0.5994 GB, free: 8.262 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.4259, allocations: 3.938 kB / 0.5994 GB, free: 8.258 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009605/0.4269, allocations: 0.6487 MB / 0.6 GB, free: 7.859 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001102/0.427, allocations: 135 kB / 0.6002 GB, free: 7.723 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.398e-05/0.4271, allocations: 10.66 kB / 0.6002 GB, free: 7.715 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002224/0.4273, allocations: 12.36 kB / 0.6002 GB, free: 7.707 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.165e-05/0.4274, allocations: 27.06 kB / 0.6002 GB, free: 7.691 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.565e-05/0.4274, allocations: 7.438 kB / 0.6002 GB, free: 7.691 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003802/0.4278, allocations: 355.8 kB / 0.6005 GB, free: 7.484 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4278, allocations: 0 / 0.6005 GB, free: 7.484 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0004012/0.4282, allocations: 152.7 kB / 0.6007 GB, free: 7.445 MB / 446.1 MB 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.001225/0.4294, allocations: 1.205 MB / 0.6019 GB, free: 6.508 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0006934/0.4301, allocations: 341.8 kB / 0.6022 GB, free: 6.352 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.4301, allocations: 0 / 0.6022 GB, free: 6.352 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002799/0.4304, allocations: 175.8 kB / 0.6024 GB, free: 6.277 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006705/0.4311, allocations: 128.9 kB / 0.6025 GB, free: 6.211 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006136/0.4372, allocations: 5.021 MB / 0.6074 GB, free: 2.945 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004021/0.4377, allocations: 0.8678 MB / 0.6082 GB, free: 2.172 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0002201/0.4379, allocations: 53.73 kB / 0.6083 GB, free: 2.145 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002249/0.4381, allocations: 187.3 kB / 0.6085 GB, free: 1.988 MB / 446.1 MB Notification: Performance of SimCode: time 7.92e-07/0.4381, allocations: 4 kB / 0.6085 GB, free: 1.984 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0291/0.4672, allocations: 11.21 MB / 0.6194 GB, free: 9.176 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.396/7.863, allocations: 15.66 kB / 0.6194 GB, free: 9.164 MB / 462.1 MB (rm -f IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; mkfifo IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe >> ../files/IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.sim & python3 -m fmpy simulate --output-file IDEAS_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_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube.fmu > IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1)