Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/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.Examples.InternalResistancesTwoUTube,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="BuildingSystems_BuildingSystems_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.001223/0.001222, 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.001114/0.001114, allocations: 195.5 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.285/1.285, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002037/0.002037, allocations: 278.5 kB / 290.7 MB, free: 2.02 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.926/0.926, allocations: 169.3 MB / 0.4982 GB, free: 13.96 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00174/0.00174, allocations: 100.9 kB / 0.5954 GB, free: 27.95 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1448/0.1465, allocations: 86.98 MB / 0.6803 GB, free: 0.5469 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.004972/0.1516, allocations: 4.138 MB / 0.6844 GB, free: 12.4 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002963/0.1545, allocations: 2.402 MB / 0.6867 GB, free: 9.992 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002257/0.1548, allocations: 11.94 kB / 0.6867 GB, free: 9.98 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001312/0.1561, allocations: 0.5441 MB / 0.6873 GB, free: 9.434 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003767/0.1565, allocations: 246 kB / 0.6875 GB, free: 9.191 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002001/0.1567, allocations: 139.9 kB / 0.6876 GB, free: 9.055 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006634/0.1574, allocations: 0.8098 MB / 0.6884 GB, free: 8.242 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004145/0.1578, allocations: 326.5 kB / 0.6887 GB, free: 7.922 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002852/0.1581, allocations: 294.9 kB / 0.689 GB, free: 7.633 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003198/0.1584, allocations: 318.6 kB / 0.6893 GB, free: 7.32 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.066e-05/0.1585, allocations: 79.94 kB / 0.6894 GB, free: 7.242 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001088/0.1586, allocations: 76 kB / 0.6895 GB, free: 7.168 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001514/0.1588, allocations: 171.5 kB / 0.6896 GB, free: 7 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003204/0.1591, allocations: 390.2 kB / 0.69 GB, free: 6.617 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007871/0.1599, allocations: 0.985 MB / 0.691 GB, free: 5.629 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.1599, allocations: 0 / 0.691 GB, free: 5.629 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.1599, allocations: 0 / 0.691 GB, free: 5.629 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.104e-05/0.16, allocations: 4 kB / 0.691 GB, free: 5.625 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: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.001362/0.1613, allocations: 0.9463 MB / 0.6919 GB, free: 4.629 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.1614, allocations: 8.031 kB / 0.6919 GB, free: 4.621 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001038/0.1615, allocations: 94.64 kB / 0.692 GB, free: 4.52 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001003/0.1616, allocations: 76.09 kB / 0.6921 GB, free: 4.445 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005228/0.1621, allocations: 453.7 kB / 0.6925 GB, free: 3.965 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.044e-05/0.1622, allocations: 37.38 kB / 0.6925 GB, free: 3.93 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.918e-05/0.1622, allocations: 52.28 kB / 0.6926 GB, free: 3.879 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006892/0.1629, allocations: 430.6 kB / 0.693 GB, free: 3.453 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.607e-05/0.163, allocations: 0 / 0.693 GB, free: 3.453 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.699e-05/0.163, allocations: 20 kB / 0.693 GB, free: 3.434 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.163, allocations: 15.94 kB / 0.693 GB, free: 3.418 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006559/0.1637, allocations: 367.8 kB / 0.6934 GB, free: 3.055 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001897/0.1656, allocations: 1.532 MB / 0.6949 GB, free: 1.453 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005187/0.1661, allocations: 342.9 kB / 0.6952 GB, free: 1.109 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004504/0.1666, allocations: 315.4 kB / 0.6955 GB, free: 0.8008 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.541e-05/0.1666, allocations: 11.92 kB / 0.6955 GB, free: 0.7891 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.229e-05/0.1666, allocations: 38.56 kB / 0.6955 GB, free: 0.7422 MB / 494.1 MB Notification: Performance of pre-optimization done (n=42): time 1.583e-06/0.1667, allocations: 3.938 kB / 0.6955 GB, free: 0.7383 MB / 494.1 MB Notification: Performance of matching and sorting (n=42): time 0.000901/0.1676, allocations: 0.4939 MB / 0.696 GB, free: 244 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.614e-05/0.1676, allocations: 55.41 kB / 0.6961 GB, free: 176 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005217/0.1681, allocations: 485.9 kB / 0.6965 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.398e-05/0.1682, allocations: 29.7 kB / 0.6966 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001877/0.1684, allocations: 276.4 kB / 0.6968 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001069/0.1685, allocations: 149.8 kB / 0.697 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.879e-05/0.1686, allocations: 74 kB / 0.697 GB, free: 15.15 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000136/0.1687, allocations: 358.8 kB / 0.6974 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002424/0.169, allocations: 116.7 kB / 0.6975 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002262/0.1692, allocations: 129.4 kB / 0.6976 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005034/0.1697, allocations: 294 kB / 0.6979 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/0.1697, allocations: 4 kB / 0.6979 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006171/0.1704, allocations: 400.2 kB / 0.6983 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.283e-05/0.1704, allocations: 4 kB / 0.6983 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.1704, allocations: 0 / 0.6983 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.357e-05/0.1704, allocations: 0 / 0.6983 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004751/0.1709, allocations: 123.9 kB / 0.6984 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.647e-06/0.1709, allocations: 4 kB / 0.6984 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002017/0.1711, allocations: 43.58 kB / 0.6985 GB, free: 13.69 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.838e-05/0.1711, allocations: 12 kB / 0.6985 GB, free: 13.68 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 (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.0001951/0.1713, allocations: 194.4 kB / 0.6987 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.245e-05/0.1714, allocations: 51.38 kB / 0.6987 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.085e-05/0.1715, allocations: 57.11 kB / 0.6988 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.703e-06/0.1715, allocations: 15.97 kB / 0.6988 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.1715, allocations: 0 / 0.6988 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.1715, allocations: 0 / 0.6988 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006099/0.1722, allocations: 0.5789 MB / 0.6993 GB, free: 12.72 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.1722, allocations: 11.94 kB / 0.6993 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004912/0.1727, allocations: 123.9 kB / 0.6995 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.1727, allocations: 0 / 0.6995 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.66e-05/0.1727, allocations: 12 kB / 0.6995 GB, free: 12.58 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.1727, allocations: 3.938 kB / 0.6995 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1727, allocations: 0 / 0.6995 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009445/0.1737, allocations: 0.6518 MB / 0.7001 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001051/0.1738, allocations: 136.4 kB / 0.7002 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.819e-05/0.1739, allocations: 8 kB / 0.7003 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002097/0.1741, allocations: 15.98 kB / 0.7003 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.559e-05/0.1741, allocations: 19.97 kB / 0.7003 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.552e-05/0.1742, allocations: 12 kB / 0.7003 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003638/0.1745, allocations: 351.1 kB / 0.7006 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.01e-07/0.1745, allocations: 0 / 0.7006 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003779/0.1749, allocations: 143.7 kB / 0.7008 GB, free: 11.22 MB / 0.4981 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.001215/0.1761, allocations: 1.204 MB / 0.7019 GB, free: 9.988 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0006623/0.1768, allocations: 347.7 kB / 0.7023 GB, free: 9.648 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.1768, allocations: 0 / 0.7023 GB, free: 9.648 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002692/0.1771, allocations: 179.8 kB / 0.7025 GB, free: 9.473 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006672/0.1778, allocations: 122.5 kB / 0.7026 GB, free: 9.352 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005915/0.1837, allocations: 5.029 MB / 0.7075 GB, free: 4.234 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004193/0.1841, allocations: 0.8742 MB / 0.7083 GB, free: 3.336 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001919/0.1843, allocations: 52.39 kB / 0.7084 GB, free: 3.281 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002382/0.1846, allocations: 195.3 kB / 0.7086 GB, free: 3.09 MB / 0.4981 GB Notification: Performance of SimCode: time 7.51e-07/0.1846, allocations: 0 / 0.7086 GB, free: 3.09 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02989/0.2145, allocations: 11.26 MB / 0.7196 GB, free: 8.141 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.165/7.379, allocations: 11.88 kB / 0.7196 GB, free: 8.133 MB / 0.5137 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube.fmu > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1)