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.001331/0.001336, 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.001383/0.001383, allocations: 195.1 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.413/1.413, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002609/0.002609, allocations: 283 kB / 290.7 MB, free: 1.992 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.061/1.061, allocations: 178.6 MB / 0.5073 GB, free: 4.574 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002687/0.002688, allocations: 98.94 kB / 0.6066 GB, free: 24.62 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1617/0.1644, allocations: 89.14 MB / 0.6937 GB, free: 4.18 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube): time 0.002765/0.1673, allocations: 1.435 MB / 0.6951 GB, free: 2.746 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004413/0.1717, allocations: 2.901 MB / 0.6979 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.844e-05/0.1717, allocations: 0 / 0.6979 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.013e-05/0.1717, allocations: 0 / 0.6979 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 6.623e-05/0.1718, allocations: 19.78 kB / 0.6979 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003679/0.1755, allocations: 1.587 MB / 0.6995 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 6.446e-05/0.1756, allocations: 43.69 kB / 0.6995 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.815e-05/0.1756, allocations: 4 kB / 0.6995 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 2.859e-05/0.1757, allocations: 19.92 kB / 0.6995 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 2.987e-05/0.1757, allocations: 15.88 kB / 0.6995 GB, free: 14.17 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.012e-05/0.1757, allocations: 0 / 0.6995 GB, free: 14.17 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002034/0.1778, allocations: 1.466 MB / 0.701 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.22e-05/0.1778, allocations: 0 / 0.701 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.778e-05/0.1778, allocations: 23.86 kB / 0.701 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001441/0.1793, allocations: 1.115 MB / 0.7021 GB, free: 11.56 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.582e-06/0.1793, allocations: 0 / 0.7021 GB, free: 11.56 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.693e-06/0.1793, allocations: 3.938 kB / 0.7021 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.069e-06/0.1793, allocations: 8 kB / 0.7021 GB, free: 11.55 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0006159/0.1799, allocations: 0.5145 MB / 0.7026 GB, free: 10.98 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.18, allocations: 12.03 kB / 0.7026 GB, free: 10.97 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.827e-05/0.1801, allocations: 106 kB / 0.7027 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.505e-05/0.1801, allocations: 76.22 kB / 0.7028 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001719/0.1803, allocations: 255.4 kB / 0.703 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.759e-05/0.1804, allocations: 154.9 kB / 0.7032 GB, free: 10.34 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.506e-05/0.1804, allocations: 158.9 kB / 0.7033 GB, free: 10.19 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.6e-05/0.1805, allocations: 108.9 kB / 0.7034 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.313e-05/0.1806, allocations: 75.28 kB / 0.7035 GB, free: 10 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.962e-05/0.1806, allocations: 150.6 kB / 0.7036 GB, free: 9.852 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.109e-05/0.1807, allocations: 154.5 kB / 0.7038 GB, free: 9.699 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.933e-05/0.1808, allocations: 154.6 kB / 0.7039 GB, free: 9.547 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003287/0.1811, allocations: 465.9 kB / 0.7044 GB, free: 9.043 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001087/0.1812, allocations: 169.1 kB / 0.7045 GB, free: 8.867 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.313e-05/0.1813, allocations: 84.14 kB / 0.7046 GB, free: 8.781 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 4.611e-05/0.1813, allocations: 83.16 kB / 0.7047 GB, free: 8.699 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.858e-05/0.1814, allocations: 113.8 kB / 0.7048 GB, free: 8.578 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=0): time 8.51e-07/0.1814, allocations: 0 / 0.7048 GB, free: 8.578 MB / 0.4981 GB Notification: Performance of matching and sorting (n=0): time 8.18e-05/0.1815, allocations: 37.59 kB / 0.7049 GB, free: 8.535 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.268e-05/0.1816, allocations: 126.7 kB / 0.705 GB, free: 8.398 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001438/0.1817, allocations: 128.6 kB / 0.7051 GB, free: 8.266 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.603e-05/0.1817, allocations: 33.7 kB / 0.7051 GB, free: 8.227 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.444e-05/0.1818, allocations: 92.12 kB / 0.7052 GB, free: 8.133 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.044e-06/0.1818, allocations: 0 / 0.7052 GB, free: 8.133 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.026e-05/0.1819, allocations: 25.7 kB / 0.7052 GB, free: 8.102 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001429/0.182, allocations: 310.8 kB / 0.7055 GB, free: 7.789 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.551e-05/0.182, allocations: 8 kB / 0.7055 GB, free: 7.781 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.708e-05/0.1821, allocations: 7.938 kB / 0.7055 GB, free: 7.773 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.406e-05/0.1821, allocations: 16.84 kB / 0.7056 GB, free: 7.754 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.1821, allocations: 0 / 0.7056 GB, free: 7.754 MB / 0.4981 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001241/0.1822, allocations: 57.48 kB / 0.7056 GB, free: 7.691 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.204e-05/0.1823, allocations: 12 kB / 0.7056 GB, free: 7.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.818e-05/0.1823, allocations: 4 kB / 0.7056 GB, free: 7.676 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.207e-05/0.1823, allocations: 0 / 0.7056 GB, free: 7.676 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.52e-07/0.1823, allocations: 0 / 0.7056 GB, free: 7.676 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.268e-06/0.1823, allocations: 0 / 0.7056 GB, free: 7.676 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.19e-05/0.1823, allocations: 4 kB / 0.7056 GB, free: 7.672 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.915e-06/0.1824, allocations: 3.984 kB / 0.7056 GB, free: 7.668 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 (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 0.0001063/0.1825, allocations: 181.1 kB / 0.7058 GB, free: 7.48 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.332e-05/0.1826, allocations: 120.8 kB / 0.7059 GB, free: 7.355 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.011e-05/0.1826, allocations: 116.8 kB / 0.706 GB, free: 7.234 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.533e-05/0.1827, allocations: 180.2 kB / 0.7062 GB, free: 7.051 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.987e-05/0.1828, allocations: 180.2 kB / 0.7064 GB, free: 6.867 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001011/0.1829, allocations: 176.3 kB / 0.7066 GB, free: 6.688 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000342/0.1832, allocations: 421.1 kB / 0.707 GB, free: 6.219 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-05/0.1833, allocations: 105 kB / 0.7071 GB, free: 6.109 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.521e-05/0.1833, allocations: 112.9 kB / 0.7072 GB, free: 5.992 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.098e-05/0.1834, allocations: 176.3 kB / 0.7073 GB, free: 5.812 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.493e-05/0.1835, allocations: 176.3 kB / 0.7075 GB, free: 5.633 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.402e-05/0.1836, allocations: 184.3 kB / 0.7077 GB, free: 5.445 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.836e-05/0.1837, allocations: 192.3 kB / 0.7079 GB, free: 5.25 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001672/0.1839, allocations: 311.6 kB / 0.7082 GB, free: 4.922 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001314/0.184, allocations: 182.1 kB / 0.7083 GB, free: 4.719 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.78e-05/0.1841, allocations: 184.2 kB / 0.7085 GB, free: 4.531 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.633e-05/0.1842, allocations: 101 kB / 0.7086 GB, free: 4.426 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.78e-05/0.1843, allocations: 188.2 kB / 0.7088 GB, free: 4.234 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.942e-05/0.1843, allocations: 101 kB / 0.7089 GB, free: 4.129 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 6.956e-05/0.1844, allocations: 105.6 kB / 0.709 GB, free: 4.027 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.11e-07/0.1844, allocations: 0 / 0.709 GB, free: 4.027 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0007238/0.1852, allocations: 279.8 kB / 0.7092 GB, free: 3.754 MB / 0.4981 GB 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.001452/0.1866, allocations: 1.183 MB / 0.7104 GB, free: 2.547 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001028/0.1867, allocations: 37.7 kB / 0.7104 GB, free: 2.504 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.1867, allocations: 0 / 0.7104 GB, free: 2.504 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.664e-06/0.1868, allocations: 4.062 kB / 0.7104 GB, free: 2.5 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004191/0.1872, allocations: 459.7 kB / 0.7109 GB, free: 2.047 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0015/0.1887, allocations: 1.599 MB / 0.7124 GB, free: 376 kB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003041/0.189, allocations: 0.6846 MB / 0.7131 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 1.312e-05/0.189, allocations: 0 / 0.7131 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.435e-05/0.1891, allocations: 11.44 kB / 0.7131 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of SimCode: time 2.4e-07/0.1891, allocations: 0 / 0.7131 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02988/0.219, allocations: 7.109 MB / 0.7201 GB, free: 8.738 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.191/8.41, allocations: 12.88 kB / 0.7201 GB, free: 8.734 MB / 0.5137 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)