Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube,fileNamePrefix="Buildings_8_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube,fileNamePrefix="Buildings_8_Buildings_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.001122/0.001122, allocations: 105.4 kB / 15.7 MB, free: 24 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.001229/0.001229, allocations: 187.2 kB / 16.64 MB, free: 6.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.406/1.406, allocations: 205.1 MB / 222.5 MB, free: 4.582 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.647/1.647, allocations: 292.3 MB / 0.549 GB, free: 12.77 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001427, allocations: 69.95 kB / 0.6718 GB, free: 26.24 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2044/0.2058, allocations: 114.6 MB / 0.7837 GB, free: 13.24 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube): time 0.002675/0.2085, allocations: 1.45 MB / 0.7851 GB, free: 11.78 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.00395/0.2125, allocations: 2.978 MB / 0.788 GB, free: 8.785 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.355e-05/0.2126, allocations: 0 / 0.788 GB, free: 8.785 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.271e-05/0.2126, allocations: 3.938 kB / 0.788 GB, free: 8.781 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 6.336e-05/0.2127, allocations: 19.8 kB / 0.788 GB, free: 8.762 MB / 0.6075 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:2829:3-2870:10:writable] Warning: Pure function 'Modelica.Math.Matrices.inv' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgetrf'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Fluid/Geothermal/Borefields/BaseClasses/Boreholes/BaseClasses/Functions/internalResistancesTwoUTube.mo:2:1-162:32:writable] Warning: Pure function 'Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.internalResistancesTwoUTube' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.003801/0.2165, allocations: 1.649 MB / 0.7897 GB, free: 7.129 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 8.65e-05/0.2166, allocations: 43.67 kB / 0.7897 GB, free: 7.086 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 3.773e-05/0.2167, allocations: 7.984 kB / 0.7897 GB, free: 7.078 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 2.472e-05/0.2167, allocations: 11.94 kB / 0.7897 GB, free: 7.066 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 2.705e-05/0.2167, allocations: 11.94 kB / 0.7897 GB, free: 7.055 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 9.638e-06/0.2167, allocations: 0 / 0.7897 GB, free: 7.055 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002132/0.2189, allocations: 1.556 MB / 0.7912 GB, free: 5.496 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.368e-05/0.2189, allocations: 3.938 kB / 0.7912 GB, free: 5.492 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.405e-05/0.2189, allocations: 23.88 kB / 0.7913 GB, free: 5.469 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.001406/0.2204, allocations: 1.119 MB / 0.7924 GB, free: 4.348 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.2204, allocations: 3.938 kB / 0.7924 GB, free: 4.344 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.673e-06/0.2204, allocations: 0 / 0.7924 GB, free: 4.344 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.03e-05/0.2204, allocations: 0 / 0.7924 GB, free: 4.344 MB / 0.6075 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.0006084/0.221, allocations: 0.5184 MB / 0.7929 GB, free: 3.777 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/0.2211, allocations: 8.031 kB / 0.7929 GB, free: 3.77 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.852e-05/0.2211, allocations: 110 kB / 0.793 GB, free: 3.652 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.266e-05/0.2212, allocations: 84.2 kB / 0.7931 GB, free: 3.57 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001331/0.2213, allocations: 259.4 kB / 0.7933 GB, free: 3.277 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.478e-05/0.2214, allocations: 150.9 kB / 0.7935 GB, free: 3.129 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.037e-05/0.2214, allocations: 154.9 kB / 0.7936 GB, free: 2.977 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.357e-05/0.2215, allocations: 112.9 kB / 0.7937 GB, free: 2.859 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.808e-05/0.2215, allocations: 79.22 kB / 0.7938 GB, free: 2.781 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.474e-05/0.2216, allocations: 154.6 kB / 0.7939 GB, free: 2.629 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.354e-05/0.2216, allocations: 150.6 kB / 0.7941 GB, free: 2.48 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.748e-05/0.2217, allocations: 154.5 kB / 0.7942 GB, free: 2.328 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002563/0.222, allocations: 461.9 kB / 0.7947 GB, free: 1.828 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 6.931e-05/0.222, allocations: 169.1 kB / 0.7948 GB, free: 1.652 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.069e-05/0.2221, allocations: 84.12 kB / 0.7949 GB, free: 1.566 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.347e-05/0.2221, allocations: 83.22 kB / 0.795 GB, free: 1.484 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.286e-05/0.2221, allocations: 113.8 kB / 0.7951 GB, free: 1.363 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=0): time 1.072e-06/0.2221, allocations: 0 / 0.7951 GB, free: 1.363 MB / 0.6075 GB Notification: Performance of matching and sorting (n=0): time 7.028e-05/0.2222, allocations: 29.7 kB / 0.7951 GB, free: 1.328 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.215e-05/0.2223, allocations: 126.7 kB / 0.7952 GB, free: 1.191 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001231/0.2224, allocations: 133.7 kB / 0.7954 GB, free: 1.051 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.437e-05/0.2224, allocations: 29.7 kB / 0.7954 GB, free: 1.016 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.531e-05/0.2225, allocations: 92.12 kB / 0.7955 GB, free: 0.9219 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.274e-06/0.2225, allocations: 0 / 0.7955 GB, free: 0.9219 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.99e-05/0.2225, allocations: 17.72 kB / 0.7955 GB, free: 0.8984 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.181e-05/0.2226, allocations: 318.8 kB / 0.7958 GB, free: 0.5781 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.35e-05/0.2227, allocations: 4 kB / 0.7958 GB, free: 0.5742 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.509e-05/0.2227, allocations: 4 kB / 0.7958 GB, free: 0.5703 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.739e-05/0.2227, allocations: 24.83 kB / 0.7958 GB, free: 0.543 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.2227, allocations: 0 / 0.7958 GB, free: 0.543 MB / 0.6075 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001192/0.2229, allocations: 53.55 kB / 0.7959 GB, free: 496 kB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/0.2229, allocations: 10.95 kB / 0.7959 GB, free: 488 kB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.167e-05/0.2229, allocations: 8.062 kB / 0.7959 GB, free: 480 kB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.327e-05/0.2229, allocations: 3.984 kB / 0.7959 GB, free: 476 kB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.62e-07/0.2229, allocations: 0 / 0.7959 GB, free: 476 kB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.029e-06/0.2229, allocations: 0 / 0.7959 GB, free: 476 kB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.066e-05/0.223, allocations: 0 / 0.7959 GB, free: 476 kB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.837e-06/0.223, allocations: 4 kB / 0.7959 GB, free: 472 kB / 0.6075 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 8.225e-05/0.2231, allocations: 185.2 kB / 0.7961 GB, free: 276 kB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.779e-05/0.2231, allocations: 120.7 kB / 0.7962 GB, free: 148 kB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.429e-05/0.2232, allocations: 112.8 kB / 0.7963 GB, free: 24 kB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.677e-05/0.2233, allocations: 180.3 kB / 0.7965 GB, free: 15.84 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.664e-05/0.2233, allocations: 180.2 kB / 0.7967 GB, free: 15.66 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.893e-05/0.2234, allocations: 180.3 kB / 0.7968 GB, free: 15.47 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002077/0.2236, allocations: 429.1 kB / 0.7972 GB, free: 15 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-05/0.2236, allocations: 105 kB / 0.7973 GB, free: 14.89 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.761e-05/0.2237, allocations: 101 kB / 0.7974 GB, free: 14.78 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.318e-05/0.2237, allocations: 180.2 kB / 0.7976 GB, free: 14.6 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.256e-05/0.2238, allocations: 184.3 kB / 0.7978 GB, free: 14.41 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.452e-05/0.2238, allocations: 180.2 kB / 0.798 GB, free: 14.23 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.082e-05/0.2239, allocations: 184.2 kB / 0.7981 GB, free: 14.04 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001178/0.224, allocations: 311.6 kB / 0.7984 GB, free: 13.71 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 6.353e-05/0.2241, allocations: 182.1 kB / 0.7986 GB, free: 13.51 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.029e-05/0.2241, allocations: 188.2 kB / 0.7988 GB, free: 13.32 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.264e-05/0.2242, allocations: 105 kB / 0.7989 GB, free: 13.21 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.35e-05/0.2243, allocations: 180.2 kB / 0.7991 GB, free: 13.02 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.763e-05/0.2243, allocations: 101 kB / 0.7992 GB, free: 12.92 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 5.111e-05/0.2244, allocations: 99.27 kB / 0.7992 GB, free: 12.82 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2244, allocations: 0 / 0.7992 GB, free: 12.82 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0007267/0.2251, allocations: 283.8 kB / 0.7995 GB, free: 12.54 MB / 0.6231 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.001315/0.2264, allocations: 1.208 MB / 0.8007 GB, free: 11.32 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 9.17e-05/0.2265, allocations: 37.7 kB / 0.8007 GB, free: 11.27 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.2266, allocations: 0 / 0.8007 GB, free: 11.27 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 3.095e-06/0.2266, allocations: 368 / 0.8007 GB, free: 11.27 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003655/0.2269, allocations: 478.7 kB / 0.8012 GB, free: 10.8 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001305/0.2282, allocations: 1.606 MB / 0.8028 GB, free: 9.117 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002133/0.2285, allocations: 0.6846 MB / 0.8034 GB, free: 8.406 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 1.503e-05/0.2285, allocations: 4 kB / 0.8034 GB, free: 8.402 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.589e-05/0.2285, allocations: 11.44 kB / 0.8034 GB, free: 8.391 MB / 0.6231 GB Notification: Performance of SimCode: time 5.2e-07/0.2285, allocations: 0 / 0.8034 GB, free: 8.391 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02512/0.2537, allocations: 7.216 MB / 0.8105 GB, free: 1.387 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.745/7.999, allocations: 10.11 kB / 0.8105 GB, free: 1.375 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube.pipe ; mkfifo Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube.pipe >> ../files/Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTube.fmu > Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube.pipe 2>&1)