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.001269/0.001269, 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.001645/0.001645, allocations: 196.7 kB / 16.53 MB, free: 6.664 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.587/1.587, allocations: 205.1 MB / 222.4 MB, free: 4.586 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.966/1.966, allocations: 292.3 MB / 0.5489 GB, free: 12.82 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.001561/0.001561, allocations: 69 kB / 0.6717 GB, free: 26.09 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2243/0.2259, allocations: 114.5 MB / 0.7835 GB, free: 13.33 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube): time 0.002397/0.2283, allocations: 1.446 MB / 0.7849 GB, free: 11.87 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.004243/0.2326, allocations: 2.967 MB / 0.7878 GB, free: 8.891 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.904e-05/0.2327, allocations: 7.938 kB / 0.7878 GB, free: 8.883 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.168e-05/0.2327, allocations: 11.86 kB / 0.7879 GB, free: 8.871 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.559e-05/0.2328, allocations: 15.8 kB / 0.7879 GB, free: 8.855 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.00374/0.2365, allocations: 1.644 MB / 0.7895 GB, free: 7.23 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 7.546e-05/0.2366, allocations: 47.67 kB / 0.7895 GB, free: 7.184 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 4.563e-05/0.2367, allocations: 4 kB / 0.7895 GB, free: 7.18 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 2.695e-05/0.2367, allocations: 15.94 kB / 0.7895 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 3.516e-05/0.2367, allocations: 11.94 kB / 0.7895 GB, free: 7.152 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.059e-05/0.2367, allocations: 4 kB / 0.7896 GB, free: 7.148 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002016/0.2388, allocations: 1.482 MB / 0.791 GB, free: 5.664 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.374e-05/0.2388, allocations: 7.938 kB / 0.791 GB, free: 5.656 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.309e-05/0.2388, allocations: 15.88 kB / 0.791 GB, free: 5.641 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.001381/0.2402, allocations: 1.119 MB / 0.7921 GB, free: 4.52 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.2402, allocations: 0 / 0.7921 GB, free: 4.52 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.443e-06/0.2402, allocations: 0 / 0.7921 GB, free: 4.52 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.12e-06/0.2402, allocations: 0 / 0.7921 GB, free: 4.52 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.0006413/0.2409, allocations: 0.5262 MB / 0.7926 GB, free: 3.945 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.411e-05/0.2409, allocations: 12.03 kB / 0.7926 GB, free: 3.934 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.938e-05/0.241, allocations: 114 kB / 0.7928 GB, free: 3.812 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.858e-05/0.2411, allocations: 80.22 kB / 0.7928 GB, free: 3.734 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000184/0.2413, allocations: 251.4 kB / 0.7931 GB, free: 3.449 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.543e-05/0.2413, allocations: 150.9 kB / 0.7932 GB, free: 3.301 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.361e-05/0.2414, allocations: 158.9 kB / 0.7934 GB, free: 3.145 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.029e-05/0.2415, allocations: 112.9 kB / 0.7935 GB, free: 3.027 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.423e-05/0.2415, allocations: 75.28 kB / 0.7935 GB, free: 2.953 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.887e-05/0.2416, allocations: 150.6 kB / 0.7937 GB, free: 2.805 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.658e-05/0.2417, allocations: 150.6 kB / 0.7938 GB, free: 2.656 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.221e-05/0.2417, allocations: 154.5 kB / 0.794 GB, free: 2.504 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003004/0.242, allocations: 469.9 kB / 0.7944 GB, free: 1.996 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 7.952e-05/0.2421, allocations: 177.1 kB / 0.7946 GB, free: 1.812 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.921e-05/0.2422, allocations: 80.14 kB / 0.7947 GB, free: 1.73 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.825e-05/0.2422, allocations: 79.22 kB / 0.7947 GB, free: 1.652 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.19e-05/0.2422, allocations: 117.7 kB / 0.7949 GB, free: 1.527 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=0): time 8.91e-07/0.2423, allocations: 0 / 0.7949 GB, free: 1.527 MB / 0.6075 GB Notification: Performance of matching and sorting (n=0): time 7.531e-05/0.2423, allocations: 29.7 kB / 0.7949 GB, free: 1.492 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.899e-05/0.2424, allocations: 126.7 kB / 0.795 GB, free: 1.355 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001373/0.2425, allocations: 136.7 kB / 0.7951 GB, free: 1.215 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.32e-05/0.2426, allocations: 25.7 kB / 0.7952 GB, free: 1.184 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.511e-05/0.2426, allocations: 96.12 kB / 0.7953 GB, free: 1.086 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.184e-06/0.2426, allocations: 0 / 0.7953 GB, free: 1.086 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.969e-05/0.2427, allocations: 17.72 kB / 0.7953 GB, free: 1.062 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001093/0.2428, allocations: 322.8 kB / 0.7956 GB, free: 0.7383 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.409e-05/0.2428, allocations: 4 kB / 0.7956 GB, free: 0.7344 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.871e-05/0.2428, allocations: 4 kB / 0.7956 GB, free: 0.7305 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.942e-05/0.2429, allocations: 20.86 kB / 0.7956 GB, free: 0.707 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.2429, allocations: 0 / 0.7956 GB, free: 0.707 MB / 0.6075 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001286/0.243, allocations: 53.55 kB / 0.7957 GB, free: 0.6484 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/0.2431, allocations: 7.984 kB / 0.7957 GB, free: 0.6406 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.123e-05/0.2431, allocations: 4 kB / 0.7957 GB, free: 0.6367 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.2431, allocations: 4.062 kB / 0.7957 GB, free: 0.6328 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.31e-07/0.2431, allocations: 0 / 0.7957 GB, free: 0.6328 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.929e-06/0.2431, allocations: 0 / 0.7957 GB, free: 0.6328 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.936e-05/0.2431, allocations: 0 / 0.7957 GB, free: 0.6328 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.473e-06/0.2432, allocations: 4 kB / 0.7957 GB, free: 0.6289 MB / 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 9.474e-05/0.2433, allocations: 185.1 kB / 0.7959 GB, free: 448 kB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.863e-05/0.2433, allocations: 116.8 kB / 0.796 GB, free: 324 kB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.955e-05/0.2434, allocations: 112.6 kB / 0.7961 GB, free: 200 kB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.633e-05/0.2434, allocations: 184.3 kB / 0.7962 GB, free: 8 kB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.485e-05/0.2435, allocations: 184.2 kB / 0.7964 GB, free: 15.82 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-05/0.2436, allocations: 176.3 kB / 0.7966 GB, free: 15.64 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002425/0.2438, allocations: 421.1 kB / 0.797 GB, free: 15.17 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.145e-05/0.2439, allocations: 105 kB / 0.7971 GB, free: 15.06 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.671e-05/0.2439, allocations: 105 kB / 0.7972 GB, free: 14.95 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.993e-05/0.244, allocations: 188.2 kB / 0.7974 GB, free: 14.76 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.928e-05/0.2441, allocations: 176.3 kB / 0.7975 GB, free: 14.58 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.584e-05/0.2441, allocations: 180.2 kB / 0.7977 GB, free: 14.4 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.094e-05/0.2442, allocations: 180.2 kB / 0.7979 GB, free: 14.21 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001285/0.2443, allocations: 319.6 kB / 0.7982 GB, free: 13.88 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 7.801e-05/0.2444, allocations: 182 kB / 0.7984 GB, free: 13.68 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.806e-05/0.2445, allocations: 188.2 kB / 0.7985 GB, free: 13.48 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.435e-05/0.2446, allocations: 104.9 kB / 0.7986 GB, free: 13.38 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.079e-05/0.2446, allocations: 180.2 kB / 0.7988 GB, free: 13.19 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.816e-05/0.2447, allocations: 109 kB / 0.7989 GB, free: 13.08 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 5.279e-05/0.2447, allocations: 103.3 kB / 0.799 GB, free: 12.98 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2447, allocations: 0 / 0.799 GB, free: 12.98 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0006885/0.2454, allocations: 283.8 kB / 0.7993 GB, free: 12.7 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.00128/0.2467, allocations: 1.207 MB / 0.8005 GB, free: 11.48 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0001005/0.2468, allocations: 37.7 kB / 0.8005 GB, free: 11.43 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.2468, allocations: 4 kB / 0.8005 GB, free: 11.43 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 1.753e-06/0.2468, allocations: 432 / 0.8005 GB, free: 11.43 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003876/0.2472, allocations: 471.7 kB / 0.801 GB, free: 10.96 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001308/0.2486, allocations: 1.59 MB / 0.8025 GB, free: 9.293 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000218/0.2488, allocations: 0.6807 MB / 0.8032 GB, free: 8.586 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 1.273e-05/0.2488, allocations: 3.938 kB / 0.8032 GB, free: 8.582 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.892e-05/0.2488, allocations: 23.42 kB / 0.8032 GB, free: 8.559 MB / 0.6231 GB Notification: Performance of SimCode: time 5.01e-07/0.2488, allocations: 0 / 0.8032 GB, free: 8.559 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02623/0.2751, allocations: 7.229 MB / 0.8103 GB, free: 1.527 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.035/8.31, allocations: 14.11 kB / 0.8103 GB, free: 1.512 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)