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.001888/0.001888, allocations: 108 kB / 15.6 MB, free: 132 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.00211/0.00211, allocations: 198.7 kB / 16.54 MB, free: 6.672 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.409/1.409, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002452/0.002452, allocations: 287 kB / 290.7 MB, free: 2.027 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.091/1.091, allocations: 178.6 MB / 0.5073 GB, free: 4.574 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002874/0.002874, allocations: 96.52 kB / 0.6066 GB, free: 24.67 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1563/0.1592, allocations: 89.14 MB / 0.6936 GB, free: 4.203 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.005803/0.1651, allocations: 4.148 MB / 0.6977 GB, free: 40 kB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00362/0.1687, allocations: 2.418 MB / 0.7 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003159/0.1691, allocations: 8 kB / 0.7001 GB, free: 13.6 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001625/0.1707, allocations: 0.5299 MB / 0.7006 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0005224/0.1713, allocations: 249.9 kB / 0.7008 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002459/0.1715, allocations: 147.8 kB / 0.701 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0007962/0.1723, allocations: 0.8021 MB / 0.7017 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000449/0.1728, allocations: 322.5 kB / 0.702 GB, free: 11.56 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003268/0.1731, allocations: 290.9 kB / 0.7023 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003683/0.1735, allocations: 330.6 kB / 0.7026 GB, free: 10.95 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 8.91e-05/0.1736, allocations: 76 kB / 0.7027 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001184/0.1737, allocations: 76 kB / 0.7028 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001751/0.1739, allocations: 163.5 kB / 0.7029 GB, free: 10.64 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003619/0.1743, allocations: 390.3 kB / 0.7033 GB, free: 10.26 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0008903/0.1752, allocations: 0.9888 MB / 0.7043 GB, free: 9.266 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.271e-06/0.1752, allocations: 4 kB / 0.7043 GB, free: 9.262 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.443e-06/0.1752, allocations: 0 / 0.7043 GB, free: 9.262 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.071e-05/0.1752, allocations: 0 / 0.7043 GB, free: 9.262 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.00149/0.1767, allocations: 0.9501 MB / 0.7052 GB, free: 8.262 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/0.1767, allocations: 8.031 kB / 0.7052 GB, free: 8.254 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001101/0.1769, allocations: 90.7 kB / 0.7053 GB, free: 8.156 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000117/0.177, allocations: 76 kB / 0.7054 GB, free: 8.082 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005868/0.1776, allocations: 453.7 kB / 0.7058 GB, free: 7.598 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.704e-05/0.1776, allocations: 37.38 kB / 0.7058 GB, free: 7.562 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.459e-05/0.1777, allocations: 52.36 kB / 0.7059 GB, free: 7.512 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007729/0.1785, allocations: 426.6 kB / 0.7063 GB, free: 7.09 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.072e-05/0.1785, allocations: 4 kB / 0.7063 GB, free: 7.086 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.339e-05/0.1786, allocations: 23.98 kB / 0.7063 GB, free: 7.062 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.124e-05/0.1786, allocations: 12 kB / 0.7063 GB, free: 7.051 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000732/0.1793, allocations: 371.7 kB / 0.7067 GB, free: 6.688 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002172/0.1815, allocations: 1.524 MB / 0.7082 GB, free: 5.094 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000566/0.1821, allocations: 343.7 kB / 0.7085 GB, free: 4.75 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005191/0.1826, allocations: 329.9 kB / 0.7088 GB, free: 4.426 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.728e-05/0.1827, allocations: 7.938 kB / 0.7088 GB, free: 4.418 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.651e-05/0.1827, allocations: 38.5 kB / 0.7089 GB, free: 4.371 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=42): time 2.595e-06/0.1827, allocations: 3.938 kB / 0.7089 GB, free: 4.367 MB / 0.4981 GB Notification: Performance of matching and sorting (n=42): time 0.001048/0.1838, allocations: 0.4931 MB / 0.7093 GB, free: 3.867 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.683e-05/0.1838, allocations: 63.33 kB / 0.7094 GB, free: 3.793 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006002/0.1844, allocations: 485.9 kB / 0.7099 GB, free: 3.305 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.94e-05/0.1845, allocations: 29.7 kB / 0.7099 GB, free: 3.27 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002147/0.1847, allocations: 280.3 kB / 0.7102 GB, free: 2.992 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001344/0.1848, allocations: 145.8 kB / 0.7103 GB, free: 2.848 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001058/0.185, allocations: 62.08 kB / 0.7104 GB, free: 2.777 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000171/0.1851, allocations: 362.8 kB / 0.7107 GB, free: 2.414 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002642/0.1854, allocations: 124.7 kB / 0.7108 GB, free: 2.293 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002545/0.1857, allocations: 125.2 kB / 0.711 GB, free: 2.172 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005521/0.1862, allocations: 305.9 kB / 0.7112 GB, free: 1.871 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.1862, allocations: 0 / 0.7112 GB, free: 1.871 MB / 0.4981 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007097/0.187, allocations: 400.4 kB / 0.7116 GB, free: 1.473 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.762e-05/0.187, allocations: 4 kB / 0.7116 GB, free: 1.469 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.187, allocations: 0 / 0.7116 GB, free: 1.469 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.775e-05/0.187, allocations: 4 kB / 0.7116 GB, free: 1.465 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005158/0.1875, allocations: 123.9 kB / 0.7118 GB, free: 1.344 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.174e-06/0.1876, allocations: 0 / 0.7118 GB, free: 1.344 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002298/0.1878, allocations: 31.67 kB / 0.7118 GB, free: 1.312 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.259e-05/0.1878, allocations: 12 kB / 0.7118 GB, free: 1.301 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.0002344/0.1881, allocations: 201.7 kB / 0.712 GB, free: 1.094 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.414e-05/0.1882, allocations: 55.28 kB / 0.712 GB, free: 1.039 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001137/0.1883, allocations: 61.09 kB / 0.7121 GB, free: 0.9805 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.1883, allocations: 4 kB / 0.7121 GB, free: 0.9766 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.72e-06/0.1883, allocations: 0 / 0.7121 GB, free: 0.9766 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.513e-06/0.1883, allocations: 3.984 kB / 0.7121 GB, free: 0.9727 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007012/0.189, allocations: 0.5596 MB / 0.7126 GB, free: 372 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.189, allocations: 7.875 kB / 0.7127 GB, free: 364 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005344/0.1896, allocations: 131.8 kB / 0.7128 GB, free: 232 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.456e-06/0.1896, allocations: 0 / 0.7128 GB, free: 232 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.006e-05/0.1896, allocations: 12 kB / 0.7128 GB, free: 220 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.1896, allocations: 0 / 0.7128 GB, free: 220 kB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.245e-06/0.1896, allocations: 0 / 0.7128 GB, free: 220 kB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001141/0.1908, allocations: 0.6485 MB / 0.7134 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001662/0.191, allocations: 144.2 kB / 0.7136 GB, free: 15.39 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.529e-05/0.191, allocations: 8 kB / 0.7136 GB, free: 15.38 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00023/0.1913, allocations: 12 kB / 0.7136 GB, free: 15.37 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.178e-05/0.1914, allocations: 31.89 kB / 0.7136 GB, free: 15.34 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.955e-05/0.1914, allocations: 8 kB / 0.7136 GB, free: 15.33 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0004745/0.1919, allocations: 351.1 kB / 0.714 GB, free: 14.99 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.5e-07/0.1919, allocations: 0 / 0.714 GB, free: 14.99 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0004416/0.1923, allocations: 143.6 kB / 0.7141 GB, free: 14.85 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.001413/0.1937, allocations: 1.211 MB / 0.7153 GB, free: 13.61 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0007876/0.1945, allocations: 347.5 kB / 0.7156 GB, free: 13.27 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.1946, allocations: 0 / 0.7156 GB, free: 13.27 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0003062/0.1949, allocations: 176.2 kB / 0.7158 GB, free: 13.1 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007435/0.1956, allocations: 134.5 kB / 0.7159 GB, free: 12.97 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006879/0.2025, allocations: 5.03 MB / 0.7208 GB, free: 7.859 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005001/0.2031, allocations: 0.8742 MB / 0.7217 GB, free: 6.953 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0002168/0.2033, allocations: 48.39 kB / 0.7217 GB, free: 6.902 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002696/0.2036, allocations: 191.4 kB / 0.7219 GB, free: 6.715 MB / 0.5137 GB Notification: Performance of SimCode: time 7.81e-07/0.2036, allocations: 4 kB / 0.7219 GB, free: 6.711 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04003/0.2436, allocations: 11.25 MB / 0.7329 GB, free: 11.77 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.006/8.249, allocations: 8.906 kB / 0.7329 GB, free: 11.77 MB / 0.5294 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)