Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.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.InternalResistancesTwoUTubeNegative,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTubeNegative",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTubeNegative",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.001105/0.001105, allocations: 108 kB / 15.61 MB, free: 148 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.001137/0.001137, allocations: 192 kB / 16.53 MB, free: 6.691 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.354/1.354, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002125/0.002125, allocations: 279 kB / 290.7 MB, free: 2.012 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9739/0.9739, allocations: 169.3 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001787/0.001787, allocations: 105.7 kB / 0.5954 GB, free: 27.93 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1524/0.1542, allocations: 86.97 MB / 0.6803 GB, free: 0.5508 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative): time 0.002816/0.157, allocations: 1.425 MB / 0.6817 GB, free: 15.13 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004217/0.1613, allocations: 2.907 MB / 0.6846 GB, free: 12.21 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.895e-05/0.1613, allocations: 0 / 0.6846 GB, free: 12.21 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.32e-05/0.1614, allocations: 3.938 kB / 0.6846 GB, free: 12.21 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.994e-05/0.1615, allocations: 15.86 kB / 0.6846 GB, free: 12.2 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00369/0.1652, allocations: 1.576 MB / 0.6861 GB, free: 10.64 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.773e-05/0.1652, allocations: 35.75 kB / 0.6862 GB, free: 10.6 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.699e-05/0.1653, allocations: 4 kB / 0.6862 GB, free: 10.6 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.813e-05/0.1653, allocations: 19.92 kB / 0.6862 GB, free: 10.58 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.743e-05/0.1654, allocations: 19.88 kB / 0.6862 GB, free: 10.56 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.548e-06/0.1654, allocations: 0 / 0.6862 GB, free: 10.56 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002136/0.1675, allocations: 1.466 MB / 0.6876 GB, free: 9.09 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.387e-05/0.1675, allocations: 0 / 0.6876 GB, free: 9.09 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.544e-05/0.1676, allocations: 23.86 kB / 0.6877 GB, free: 9.066 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001617/0.1692, allocations: 1.103 MB / 0.6887 GB, free: 7.961 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1692, allocations: 0 / 0.6887 GB, free: 7.961 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1692, allocations: 0 / 0.6887 GB, free: 7.961 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.43e-06/0.1692, allocations: 0 / 0.6887 GB, free: 7.961 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.0007096/0.1699, allocations: 0.5224 MB / 0.6892 GB, free: 7.391 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.942e-05/0.17, allocations: 8.031 kB / 0.6893 GB, free: 7.383 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.896e-05/0.1701, allocations: 106 kB / 0.6894 GB, free: 7.27 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.43e-05/0.1701, allocations: 84.12 kB / 0.6894 GB, free: 7.188 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000139/0.1703, allocations: 251.5 kB / 0.6897 GB, free: 6.902 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.498e-05/0.1703, allocations: 150.9 kB / 0.6898 GB, free: 6.754 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.494e-05/0.1704, allocations: 154.9 kB / 0.69 GB, free: 6.602 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.905e-05/0.1705, allocations: 116.9 kB / 0.6901 GB, free: 6.48 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.408e-05/0.1705, allocations: 75.28 kB / 0.6901 GB, free: 6.406 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.97e-05/0.1706, allocations: 154.6 kB / 0.6903 GB, free: 6.254 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.26e-05/0.1706, allocations: 154.6 kB / 0.6904 GB, free: 6.102 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.58e-05/0.1707, allocations: 150.6 kB / 0.6906 GB, free: 5.953 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002713/0.1709, allocations: 473.8 kB / 0.691 GB, free: 5.441 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.317e-05/0.171, allocations: 169.1 kB / 0.6912 GB, free: 5.266 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.932e-05/0.171, allocations: 80.14 kB / 0.6913 GB, free: 5.184 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.828e-05/0.1711, allocations: 87.16 kB / 0.6914 GB, free: 5.098 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.068e-05/0.1711, allocations: 109.8 kB / 0.6915 GB, free: 4.98 MB / 494.1 MB Notification: Performance of pre-optimization done (n=0): time 8.11e-07/0.1711, allocations: 0 / 0.6915 GB, free: 4.98 MB / 494.1 MB Notification: Performance of matching and sorting (n=0): time 7.348e-05/0.1712, allocations: 29.7 kB / 0.6915 GB, free: 4.945 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.497e-05/0.1713, allocations: 134.7 kB / 0.6916 GB, free: 4.801 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001241/0.1714, allocations: 132.1 kB / 0.6917 GB, free: 4.664 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.426e-05/0.1714, allocations: 25.7 kB / 0.6918 GB, free: 4.633 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.47e-05/0.1715, allocations: 92.14 kB / 0.6919 GB, free: 4.539 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.034e-06/0.1715, allocations: 4 kB / 0.6919 GB, free: 4.535 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.436e-05/0.1715, allocations: 17.7 kB / 0.6919 GB, free: 4.512 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.548e-05/0.1716, allocations: 322.8 kB / 0.6922 GB, free: 4.188 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.317e-05/0.1716, allocations: 0 / 0.6922 GB, free: 4.188 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.704e-05/0.1717, allocations: 8 kB / 0.6922 GB, free: 4.18 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.685e-05/0.1717, allocations: 16.86 kB / 0.6922 GB, free: 4.16 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.1717, allocations: 3.984 kB / 0.6922 GB, free: 4.156 MB / 494.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001191/0.1718, allocations: 53.55 kB / 0.6923 GB, free: 4.098 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.1719, allocations: 4 kB / 0.6923 GB, free: 4.094 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.695e-05/0.1719, allocations: 12 kB / 0.6923 GB, free: 4.082 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.143e-05/0.1719, allocations: 0 / 0.6923 GB, free: 4.082 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.81e-07/0.1719, allocations: 0 / 0.6923 GB, free: 4.082 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.298e-06/0.1719, allocations: 0 / 0.6923 GB, free: 4.082 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.148e-05/0.1719, allocations: 0 / 0.6923 GB, free: 4.082 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.45e-06/0.172, allocations: 3.938 kB / 0.6923 GB, free: 4.078 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.65e-05/0.172, allocations: 189.8 kB / 0.6925 GB, free: 3.883 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.411e-05/0.1721, allocations: 112.8 kB / 0.6926 GB, free: 3.766 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.423e-05/0.1722, allocations: 112.9 kB / 0.6927 GB, free: 3.645 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-05/0.1722, allocations: 180.2 kB / 0.6929 GB, free: 3.461 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-05/0.1723, allocations: 184.2 kB / 0.693 GB, free: 3.273 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.59e-05/0.1723, allocations: 180.2 kB / 0.6932 GB, free: 3.09 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002091/0.1725, allocations: 417.2 kB / 0.6936 GB, free: 2.625 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.4e-05/0.1726, allocations: 105 kB / 0.6937 GB, free: 2.516 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.915e-05/0.1726, allocations: 109 kB / 0.6938 GB, free: 2.402 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.616e-05/0.1727, allocations: 180.2 kB / 0.694 GB, free: 2.219 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.556e-05/0.1728, allocations: 184.2 kB / 0.6941 GB, free: 2.031 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.051e-05/0.1728, allocations: 176.3 kB / 0.6943 GB, free: 1.852 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.062e-05/0.1729, allocations: 180.3 kB / 0.6945 GB, free: 1.668 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001114/0.173, allocations: 315.7 kB / 0.6948 GB, free: 1.336 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.644e-05/0.1731, allocations: 189.9 kB / 0.695 GB, free: 1.125 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.262e-05/0.1731, allocations: 176.3 kB / 0.6951 GB, free: 0.9453 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.782e-05/0.1732, allocations: 105 kB / 0.6952 GB, free: 0.8359 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.877e-05/0.1733, allocations: 192.2 kB / 0.6954 GB, free: 0.6406 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.22e-05/0.1733, allocations: 101 kB / 0.6955 GB, free: 0.5352 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5.214e-05/0.1734, allocations: 99.2 kB / 0.6956 GB, free: 448 kB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1734, allocations: 0 / 0.6956 GB, free: 448 kB / 494.1 MB Notification: Performance of remove unused functions: time 0.0007184/0.1741, allocations: 283.8 kB / 0.6959 GB, free: 164 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.001306/0.1754, allocations: 1.185 MB / 0.697 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 9.817e-05/0.1755, allocations: 41.7 kB / 0.6971 GB, free: 14.9 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.1755, allocations: 0 / 0.6971 GB, free: 14.9 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 2.064e-06/0.1755, allocations: 0 / 0.6971 GB, free: 14.9 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003502/0.1759, allocations: 470.9 kB / 0.6975 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001375/0.1773, allocations: 1.59 MB / 0.6991 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002604/0.1775, allocations: 0.6885 MB / 0.6998 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.475e-05/0.1776, allocations: 0 / 0.6998 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.998e-05/0.1776, allocations: 15.44 kB / 0.6998 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of SimCode: time 3.61e-07/0.1776, allocations: 0 / 0.6998 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02587/0.2035, allocations: 7.105 MB / 0.7067 GB, free: 5.152 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.411/7.614, allocations: 9.078 kB / 0.7067 GB, free: 5.145 MB / 0.4981 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative_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_InternalResistancesTwoUTubeNegative.fmu > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.pipe 2>&1)