Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_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.001097/0.001097, allocations: 108 kB / 15.61 MB, free: 152 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.001118/0.001119, allocations: 197 kB / 16.53 MB, free: 6.664 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.334/1.334, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002353/0.002353, allocations: 283 kB / 290.7 MB, free: 1.988 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9545/0.9545, allocations: 169.3 MB / 0.4982 GB, free: 13.97 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001723/0.001723, allocations: 106.7 kB / 0.5954 GB, free: 27.85 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1509/0.1527, allocations: 86.98 MB / 0.6804 GB, free: 0.5352 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube): time 0.002353/0.1551, allocations: 1.42 MB / 0.6817 GB, free: 15.11 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004026/0.1591, allocations: 2.898 MB / 0.6846 GB, free: 12.21 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.183e-05/0.1592, allocations: 0 / 0.6846 GB, free: 12.21 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.906e-05/0.1592, allocations: 0 / 0.6846 GB, free: 12.21 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.92e-05/0.1593, allocations: 23.78 kB / 0.6846 GB, free: 12.18 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003348/0.1626, allocations: 1.579 MB / 0.6861 GB, free: 10.62 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.08e-05/0.1627, allocations: 35.75 kB / 0.6862 GB, free: 10.59 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.536e-05/0.1627, allocations: 11.98 kB / 0.6862 GB, free: 10.58 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.414e-05/0.1628, allocations: 11.94 kB / 0.6862 GB, free: 10.57 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.654e-05/0.1628, allocations: 15.88 kB / 0.6862 GB, free: 10.55 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.237e-06/0.1628, allocations: 0 / 0.6862 GB, free: 10.55 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001885/0.1647, allocations: 1.466 MB / 0.6876 GB, free: 9.082 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.167e-05/0.1647, allocations: 0 / 0.6876 GB, free: 9.082 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.171e-05/0.1648, allocations: 23.86 kB / 0.6877 GB, free: 9.059 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001293/0.1661, allocations: 1.099 MB / 0.6887 GB, free: 7.957 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.1661, allocations: 0 / 0.6887 GB, free: 7.957 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1661, allocations: 0 / 0.6887 GB, free: 7.957 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.448e-06/0.1661, allocations: 8 kB / 0.6887 GB, free: 7.949 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0005056/0.1666, allocations: 0.5146 MB / 0.6892 GB, free: 7.387 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.646e-05/0.1666, allocations: 12.03 kB / 0.6893 GB, free: 7.375 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.595e-05/0.1667, allocations: 110 kB / 0.6894 GB, free: 7.258 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.877e-05/0.1668, allocations: 80.12 kB / 0.6894 GB, free: 7.18 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001272/0.1669, allocations: 251.5 kB / 0.6897 GB, free: 6.895 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.944e-05/0.1669, allocations: 154.9 kB / 0.6898 GB, free: 6.742 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.763e-05/0.167, allocations: 158.9 kB / 0.69 GB, free: 6.586 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.895e-05/0.1671, allocations: 108.9 kB / 0.6901 GB, free: 6.473 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.391e-05/0.1671, allocations: 75.28 kB / 0.6902 GB, free: 6.398 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.963e-05/0.1672, allocations: 154.6 kB / 0.6903 GB, free: 6.246 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.983e-05/0.1672, allocations: 150.6 kB / 0.6904 GB, free: 6.098 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.914e-05/0.1672, allocations: 158.5 kB / 0.6906 GB, free: 5.941 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002511/0.1675, allocations: 473.8 kB / 0.691 GB, free: 5.43 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.102e-05/0.1676, allocations: 169.1 kB / 0.6912 GB, free: 5.254 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.55e-05/0.1676, allocations: 80.14 kB / 0.6913 GB, free: 5.172 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.816e-05/0.1676, allocations: 83.22 kB / 0.6914 GB, free: 5.09 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.737e-05/0.1677, allocations: 109.8 kB / 0.6915 GB, free: 4.973 MB / 494.1 MB Notification: Performance of pre-optimization done (n=0): time 8.32e-07/0.1677, allocations: 0 / 0.6915 GB, free: 4.973 MB / 494.1 MB Notification: Performance of matching and sorting (n=0): time 7.733e-05/0.1678, allocations: 37.69 kB / 0.6915 GB, free: 4.93 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.301e-05/0.1678, allocations: 126.7 kB / 0.6916 GB, free: 4.793 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001152/0.168, allocations: 131.6 kB / 0.6917 GB, free: 4.656 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.531e-05/0.168, allocations: 25.7 kB / 0.6918 GB, free: 4.625 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.281e-05/0.168, allocations: 100.1 kB / 0.6919 GB, free: 4.523 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.794e-06/0.168, allocations: 0 / 0.6919 GB, free: 4.523 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.136e-05/0.1681, allocations: 17.7 kB / 0.6919 GB, free: 4.5 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.261e-05/0.1682, allocations: 318.8 kB / 0.6922 GB, free: 4.18 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.368e-05/0.1682, allocations: 8 kB / 0.6922 GB, free: 4.172 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.567e-05/0.1682, allocations: 4 kB / 0.6922 GB, free: 4.168 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.144e-05/0.1683, allocations: 24.84 kB / 0.6922 GB, free: 4.141 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.1683, allocations: 0 / 0.6922 GB, free: 4.141 MB / 494.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001107/0.1684, allocations: 53.55 kB / 0.6923 GB, free: 4.082 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/0.1684, allocations: 8.062 kB / 0.6923 GB, free: 4.074 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.699e-05/0.1684, allocations: 7.938 kB / 0.6923 GB, free: 4.066 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.175e-05/0.1684, allocations: 0 / 0.6923 GB, free: 4.066 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.22e-07/0.1684, allocations: 0 / 0.6923 GB, free: 4.066 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.987e-06/0.1685, allocations: 0 / 0.6923 GB, free: 4.066 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.849e-05/0.1685, allocations: 0 / 0.6923 GB, free: 4.066 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.371e-06/0.1685, allocations: 7.984 kB / 0.6923 GB, free: 4.059 MB / 494.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 (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 8.347e-05/0.1686, allocations: 185.8 kB / 0.6925 GB, free: 3.867 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.584e-05/0.1686, allocations: 120.8 kB / 0.6926 GB, free: 3.742 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.76e-05/0.1687, allocations: 108.9 kB / 0.6927 GB, free: 3.625 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-05/0.1687, allocations: 180.3 kB / 0.6929 GB, free: 3.441 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.443e-05/0.1688, allocations: 184.2 kB / 0.693 GB, free: 3.254 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.071e-05/0.1689, allocations: 176.3 kB / 0.6932 GB, free: 3.074 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000205/0.1691, allocations: 425.1 kB / 0.6936 GB, free: 2.602 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-05/0.1691, allocations: 101 kB / 0.6937 GB, free: 2.496 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.341e-05/0.1691, allocations: 101 kB / 0.6938 GB, free: 2.391 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.413e-05/0.1692, allocations: 188.2 kB / 0.694 GB, free: 2.199 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.017e-05/0.1693, allocations: 176.3 kB / 0.6942 GB, free: 2.02 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.35e-05/0.1693, allocations: 180.2 kB / 0.6943 GB, free: 1.836 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.403e-05/0.1694, allocations: 184.3 kB / 0.6945 GB, free: 1.648 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001111/0.1695, allocations: 315.7 kB / 0.6948 GB, free: 1.316 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.199e-05/0.1696, allocations: 182 kB / 0.695 GB, free: 1.113 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.065e-05/0.1696, allocations: 184.2 kB / 0.6952 GB, free: 0.9258 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.053e-05/0.1697, allocations: 112.9 kB / 0.6953 GB, free: 0.8086 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.779e-05/0.1698, allocations: 188.2 kB / 0.6954 GB, free: 0.6172 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.972e-05/0.1698, allocations: 101 kB / 0.6955 GB, free: 0.5117 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5.369e-05/0.1699, allocations: 101.5 kB / 0.6956 GB, free: 424 kB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1699, allocations: 0 / 0.6956 GB, free: 424 kB / 494.1 MB Notification: Performance of remove unused functions: time 0.0005777/0.1704, allocations: 279.8 kB / 0.6959 GB, free: 144 kB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (0): * Single equations (assignments): 0 * 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.001201/0.1717, allocations: 1.182 MB / 0.6971 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 8.936e-05/0.1718, allocations: 37.7 kB / 0.6971 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.1718, allocations: 0 / 0.6971 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.964e-06/0.1718, allocations: 4.062 kB / 0.6971 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003491/0.1721, allocations: 463.7 kB / 0.6975 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001268/0.1734, allocations: 1.597 MB / 0.6991 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002076/0.1736, allocations: 0.6846 MB / 0.6998 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.357e-05/0.1737, allocations: 0 / 0.6998 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.377e-05/0.1737, allocations: 15.44 kB / 0.6998 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of SimCode: time 2.1e-07/0.1737, allocations: 0 / 0.6998 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02244/0.1961, allocations: 7.084 MB / 0.7067 GB, free: 5.148 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.432/7.628, allocations: 10.58 kB / 0.7067 GB, free: 5.145 MB / 0.4981 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTube.fmu > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube.pipe 2>&1)