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.00835/0.00835, allocations: 99.27 kB / 15.73 MB, free: 6.035 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.001872/0.001872, allocations: 193.3 kB / 16.67 MB, free: 5.961 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.557/1.557, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7182/0.7182, allocations: 132.2 MB / 422.7 MB, free: 1.719 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001135/0.001135, allocations: 64.3 kB / 0.5809 GB, free: 1.156 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1451/0.1463, allocations: 80.2 MB / 0.6592 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.005005/0.1513, allocations: 4.139 MB / 0.6633 GB, free: 9.902 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.003351/0.1547, allocations: 2.414 MB / 0.6656 GB, free: 7.48 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005004/0.1553, allocations: 15.88 kB / 0.6657 GB, free: 7.465 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001625/0.1569, allocations: 0.5403 MB / 0.6662 GB, free: 6.922 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0007268/0.1577, allocations: 254 kB / 0.6664 GB, free: 6.672 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003357/0.158, allocations: 135.8 kB / 0.6666 GB, free: 6.539 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001014/0.159, allocations: 0.8098 MB / 0.6673 GB, free: 5.723 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004458/0.1595, allocations: 334.5 kB / 0.6677 GB, free: 5.395 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003593/0.1599, allocations: 294.9 kB / 0.6679 GB, free: 5.105 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003183/0.1602, allocations: 330.6 kB / 0.6683 GB, free: 4.781 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.963e-05/0.1603, allocations: 72 kB / 0.6683 GB, free: 4.711 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 9.094e-05/0.1604, allocations: 76 kB / 0.6684 GB, free: 4.637 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001492/0.1605, allocations: 167.5 kB / 0.6686 GB, free: 4.473 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002939/0.1608, allocations: 382.3 kB / 0.6689 GB, free: 4.098 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0008547/0.1617, allocations: 1.006 MB / 0.6699 GB, free: 3.09 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.1617, allocations: 0 / 0.6699 GB, free: 3.09 MB / 0.4981 GB Notification: Performance of FrontEnd: time 4.118e-06/0.1617, allocations: 3.984 kB / 0.6699 GB, free: 3.086 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.07e-05/0.1617, allocations: 0 / 0.6699 GB, free: 3.086 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.001302/0.1631, allocations: 0.9652 MB / 0.6709 GB, free: 2.07 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/0.1631, allocations: 12.03 kB / 0.6709 GB, free: 2.059 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.25e-05/0.1632, allocations: 86.7 kB / 0.6709 GB, free: 1.965 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.625e-05/0.1633, allocations: 80.47 kB / 0.671 GB, free: 1.887 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005997/0.1639, allocations: 470 kB / 0.6715 GB, free: 1.391 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.823e-05/0.1639, allocations: 37.12 kB / 0.6715 GB, free: 1.355 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.265e-05/0.164, allocations: 48 kB / 0.6716 GB, free: 1.309 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006698/0.1647, allocations: 426.5 kB / 0.672 GB, free: 0.8867 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.931e-05/0.1647, allocations: 3.984 kB / 0.672 GB, free: 0.8828 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.933e-05/0.1648, allocations: 20 kB / 0.672 GB, free: 0.8633 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.174e-05/0.1648, allocations: 12 kB / 0.672 GB, free: 0.8516 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006354/0.1654, allocations: 367.8 kB / 0.6723 GB, free: 500 kB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001843/0.1673, allocations: 1.524 MB / 0.6738 GB, free: 14.89 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004839/0.1678, allocations: 343.2 kB / 0.6742 GB, free: 14.54 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000434/0.1682, allocations: 319.8 kB / 0.6745 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 2.275e-05/0.1683, allocations: 8 kB / 0.6745 GB, free: 14.22 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.35e-05/0.1683, allocations: 42.5 kB / 0.6745 GB, free: 14.17 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=42): time 1.934e-06/0.1683, allocations: 0 / 0.6745 GB, free: 14.17 MB / 0.5137 GB Notification: Performance of matching and sorting (n=42): time 0.0008724/0.1692, allocations: 0.4905 MB / 0.675 GB, free: 13.68 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.567e-05/0.1692, allocations: 55.41 kB / 0.675 GB, free: 13.61 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004956/0.1697, allocations: 485.9 kB / 0.6755 GB, free: 13.12 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 2.701e-05/0.1698, allocations: 41.64 kB / 0.6755 GB, free: 13.07 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001637/0.1699, allocations: 276.7 kB / 0.6758 GB, free: 12.8 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001073/0.17, allocations: 154.7 kB / 0.676 GB, free: 12.65 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.546e-05/0.1701, allocations: 58.08 kB / 0.676 GB, free: 12.58 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001307/0.1703, allocations: 362.8 kB / 0.6764 GB, free: 12.22 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002321/0.1705, allocations: 128.6 kB / 0.6765 GB, free: 12.09 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002163/0.1707, allocations: 130.3 kB / 0.6766 GB, free: 11.97 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004639/0.1712, allocations: 298.4 kB / 0.6769 GB, free: 11.68 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.1712, allocations: 0 / 0.6769 GB, free: 11.68 MB / 0.5137 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005872/0.1718, allocations: 400.5 kB / 0.6773 GB, free: 11.28 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/0.1718, allocations: 4 kB / 0.6773 GB, free: 11.27 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.1718, allocations: 0 / 0.6773 GB, free: 11.27 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.816e-05/0.1719, allocations: 4 kB / 0.6773 GB, free: 11.27 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00047/0.1723, allocations: 127.9 kB / 0.6774 GB, free: 11.14 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.314e-06/0.1724, allocations: 0 / 0.6774 GB, free: 11.14 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001929/0.1725, allocations: 39.77 kB / 0.6774 GB, free: 11.11 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.913e-05/0.1726, allocations: 8 kB / 0.6775 GB, free: 11.1 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 (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.0001961/0.1728, allocations: 203 kB / 0.6776 GB, free: 10.89 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.961e-05/0.1729, allocations: 51.67 kB / 0.6777 GB, free: 10.84 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001068/0.173, allocations: 61.11 kB / 0.6778 GB, free: 10.78 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.173, allocations: 4 kB / 0.6778 GB, free: 10.78 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.261e-06/0.173, allocations: 4 kB / 0.6778 GB, free: 10.77 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/0.173, allocations: 3.984 kB / 0.6778 GB, free: 10.77 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005847/0.1736, allocations: 0.5752 MB / 0.6783 GB, free: 10.14 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.1736, allocations: 0 / 0.6783 GB, free: 10.14 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004769/0.1741, allocations: 123.9 kB / 0.6784 GB, free: 10.02 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.1741, allocations: 7.938 kB / 0.6785 GB, free: 10.02 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.304e-05/0.1741, allocations: 7.984 kB / 0.6785 GB, free: 10.01 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.907e-06/0.1741, allocations: 4 kB / 0.6785 GB, free: 10 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.1741, allocations: 4 kB / 0.6785 GB, free: 10 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009188/0.1751, allocations: 0.6585 MB / 0.6791 GB, free: 9.324 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001133/0.1752, allocations: 136.7 kB / 0.6792 GB, free: 9.172 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.825e-05/0.1752, allocations: 15.94 kB / 0.6793 GB, free: 9.156 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001957/0.1754, allocations: 11.98 kB / 0.6793 GB, free: 9.145 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.379e-05/0.1755, allocations: 23.97 kB / 0.6793 GB, free: 9.121 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.688e-05/0.1755, allocations: 12 kB / 0.6793 GB, free: 9.109 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003525/0.1759, allocations: 351.1 kB / 0.6796 GB, free: 8.77 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1759, allocations: 0 / 0.6796 GB, free: 8.77 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003603/0.1763, allocations: 143.7 kB / 0.6798 GB, free: 8.629 MB / 0.5137 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.001163/0.1774, allocations: 1.208 MB / 0.681 GB, free: 7.395 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0005327/0.178, allocations: 323.7 kB / 0.6813 GB, free: 7.078 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.178, allocations: 0 / 0.6813 GB, free: 7.078 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0002599/0.1783, allocations: 175.8 kB / 0.6814 GB, free: 6.906 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006048/0.1789, allocations: 133.7 kB / 0.6816 GB, free: 6.781 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005636/0.1845, allocations: 4.866 MB / 0.6863 GB, free: 1.832 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003861/0.1849, allocations: 0.8704 MB / 0.6872 GB, free: 0.9375 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001921/0.1851, allocations: 56.38 kB / 0.6872 GB, free: 0.8828 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002245/0.1854, allocations: 191.4 kB / 0.6874 GB, free: 0.6953 MB / 0.5137 GB Notification: Performance of SimCode: time 4.71e-07/0.1854, allocations: 0 / 0.6874 GB, free: 0.6953 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03212/0.2175, allocations: 11.45 MB / 0.6986 GB, free: 5.57 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.022/8.24, allocations: 9.219 kB / 0.6986 GB, free: 5.562 MB / 0.5294 GB (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)