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.007697/0.007697, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001736/0.001736, allocations: 193.5 kB / 16.67 MB, free: 5.93 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.271/1.271, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7497/0.7497, allocations: 132.2 MB / 422.7 MB, free: 6.562 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 62.34 kB / 0.5809 GB, free: 24.07 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1876/0.1889, allocations: 80.21 MB / 0.6592 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube): time 0.005504/0.1944, allocations: 3.015 MB / 0.6622 GB, free: 7.715 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.003438/0.1979, allocations: 2.156 MB / 0.6643 GB, free: 5.551 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003479/0.1983, allocations: 4 kB / 0.6643 GB, free: 5.547 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.00156/0.1999, allocations: 0.5016 MB / 0.6648 GB, free: 5.043 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0004003/0.2003, allocations: 146.9 kB / 0.6649 GB, free: 4.898 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001471/0.2005, allocations: 67.86 kB / 0.665 GB, free: 4.832 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0004938/0.201, allocations: 445.8 kB / 0.6654 GB, free: 4.395 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000272/0.2013, allocations: 143.2 kB / 0.6655 GB, free: 4.25 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002095/0.2015, allocations: 159.4 kB / 0.6657 GB, free: 4.094 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002227/0.2017, allocations: 183.2 kB / 0.6659 GB, free: 3.914 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 5.511e-05/0.2018, allocations: 36 kB / 0.6659 GB, free: 3.879 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.113e-05/0.2018, allocations: 32 kB / 0.6659 GB, free: 3.848 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001195/0.202, allocations: 99.61 kB / 0.666 GB, free: 3.75 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002001/0.2022, allocations: 218.9 kB / 0.6662 GB, free: 3.535 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.000614/0.2028, allocations: 0.5524 MB / 0.6668 GB, free: 2.98 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.2028, allocations: 0 / 0.6668 GB, free: 2.98 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.905e-06/0.2028, allocations: 0 / 0.6668 GB, free: 2.98 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.829e-06/0.2028, allocations: 0 / 0.6668 GB, free: 2.98 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.001241/0.2041, allocations: 0.7083 MB / 0.6675 GB, free: 2.223 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.717e-05/0.2041, allocations: 8.031 kB / 0.6675 GB, free: 2.215 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.451e-05/0.2042, allocations: 66.66 kB / 0.6675 GB, free: 2.141 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.628e-05/0.2043, allocations: 48.61 kB / 0.6676 GB, free: 2.094 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006608/0.205, allocations: 378.4 kB / 0.668 GB, free: 1.684 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.101e-05/0.205, allocations: 20.56 kB / 0.668 GB, free: 1.664 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.178e-05/0.2051, allocations: 31.94 kB / 0.668 GB, free: 1.633 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000427/0.2055, allocations: 191.3 kB / 0.6682 GB, free: 1.438 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.596e-05/0.2055, allocations: 11.92 kB / 0.6682 GB, free: 1.426 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.479e-05/0.2056, allocations: 8 kB / 0.6682 GB, free: 1.418 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.2056, allocations: 4 kB / 0.6682 GB, free: 1.414 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003849/0.206, allocations: 169.6 kB / 0.6684 GB, free: 1.25 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001318/0.2073, allocations: 0.8626 MB / 0.6692 GB, free: 320 kB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003106/0.2076, allocations: 146.6 kB / 0.6694 GB, free: 164 kB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002245/0.2079, allocations: 116.8 kB / 0.6695 GB, free: 44 kB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.808e-05/0.2079, allocations: 7.938 kB / 0.6695 GB, free: 36 kB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.093e-05/0.2079, allocations: 30.56 kB / 0.6695 GB, free: 16 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=18): time 1.613e-06/0.2079, allocations: 0 / 0.6695 GB, free: 16 MB / 0.5137 GB Notification: Performance of matching and sorting (n=18): time 0.0006141/0.2086, allocations: 255.2 kB / 0.6697 GB, free: 15.74 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.122e-05/0.2086, allocations: 59.39 kB / 0.6698 GB, free: 15.67 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004622/0.2091, allocations: 413.7 kB / 0.6702 GB, free: 15.26 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 2.812e-05/0.2091, allocations: 29.7 kB / 0.6702 GB, free: 15.23 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001652/0.2093, allocations: 216.3 kB / 0.6704 GB, free: 15.01 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 6.076e-05/0.2093, allocations: 67.38 kB / 0.6705 GB, free: 14.95 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.77e-05/0.2094, allocations: 33.7 kB / 0.6705 GB, free: 14.91 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001633/0.2096, allocations: 342.8 kB / 0.6709 GB, free: 14.56 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001493/0.2097, allocations: 67.95 kB / 0.6709 GB, free: 14.5 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001324/0.2099, allocations: 54.03 kB / 0.671 GB, free: 14.45 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002955/0.2102, allocations: 132.8 kB / 0.6711 GB, free: 14.31 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.2102, allocations: 4 kB / 0.6711 GB, free: 14.31 MB / 0.5137 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003871/0.2106, allocations: 211 kB / 0.6713 GB, free: 14.1 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.115e-05/0.2106, allocations: 8 kB / 0.6713 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.281e-06/0.2106, allocations: 4 kB / 0.6713 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.556e-05/0.2107, allocations: 0 / 0.6713 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002693/0.2109, allocations: 51.91 kB / 0.6714 GB, free: 14.04 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.765e-06/0.211, allocations: 4 kB / 0.6714 GB, free: 14.03 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001425/0.2111, allocations: 19.88 kB / 0.6714 GB, free: 14.01 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.208e-05/0.2111, allocations: 4 kB / 0.6714 GB, free: 14.01 MB / 0.5137 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.0001682/0.2113, allocations: 162.7 kB / 0.6715 GB, free: 13.84 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.131e-05/0.2114, allocations: 47.69 kB / 0.6716 GB, free: 13.79 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.843e-05/0.2115, allocations: 39.59 kB / 0.6716 GB, free: 13.75 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.01e-06/0.2115, allocations: 4 kB / 0.6716 GB, free: 13.75 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.634e-06/0.2115, allocations: 0 / 0.6716 GB, free: 13.75 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.2115, allocations: 0 / 0.6716 GB, free: 13.75 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00045/0.212, allocations: 373.3 kB / 0.672 GB, free: 13.33 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.672e-06/0.212, allocations: 7.922 kB / 0.672 GB, free: 13.32 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002655/0.2122, allocations: 55.97 kB / 0.672 GB, free: 13.27 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.408e-06/0.2123, allocations: 3.984 kB / 0.672 GB, free: 13.27 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.506e-05/0.2123, allocations: 0 / 0.672 GB, free: 13.27 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.2123, allocations: 8 kB / 0.6721 GB, free: 13.26 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.2123, allocations: 3.938 kB / 0.6721 GB, free: 13.25 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000722/0.213, allocations: 381.2 kB / 0.6724 GB, free: 12.87 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001625/0.2132, allocations: 128.8 kB / 0.6725 GB, free: 12.72 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.047e-05/0.2133, allocations: 4 kB / 0.6726 GB, free: 12.72 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001596/0.2134, allocations: 12.06 kB / 0.6726 GB, free: 12.71 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.954e-05/0.2135, allocations: 7.984 kB / 0.6726 GB, free: 12.7 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.287e-05/0.2135, allocations: 11.98 kB / 0.6726 GB, free: 12.69 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003292/0.2138, allocations: 299.2 kB / 0.6729 GB, free: 12.39 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2138, allocations: 3.938 kB / 0.6729 GB, free: 12.39 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003087/0.2142, allocations: 71.89 kB / 0.6729 GB, free: 12.32 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.0009791/0.2151, allocations: 0.921 MB / 0.6738 GB, free: 11.38 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0003827/0.2155, allocations: 149 kB / 0.674 GB, free: 11.23 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.2156, allocations: 0 / 0.674 GB, free: 11.23 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.000159/0.2157, allocations: 83.97 kB / 0.6741 GB, free: 11.15 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005848/0.2163, allocations: 98.3 kB / 0.6742 GB, free: 11.05 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004903/0.2212, allocations: 3.494 MB / 0.6776 GB, free: 7.484 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005225/0.2218, allocations: 0.7989 MB / 0.6783 GB, free: 6.66 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001619/0.2219, allocations: 30.97 kB / 0.6784 GB, free: 6.633 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001864/0.2221, allocations: 119.4 kB / 0.6785 GB, free: 6.516 MB / 0.5137 GB Notification: Performance of SimCode: time 1.643e-06/0.2221, allocations: 3.938 kB / 0.6785 GB, free: 6.512 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0297/0.2518, allocations: 7.973 MB / 0.6863 GB, free: 14.79 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.351/8.603, allocations: 7.766 kB / 0.6863 GB, free: 14.79 MB / 0.5294 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)