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.InternalResistancesOneUTubeNegative.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.InternalResistancesOneUTubeNegative,fileNamePrefix="Buildings_8_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesOneUTubeNegative",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTubeNegative,fileNamePrefix="Buildings_8_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesOneUTubeNegative",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.001746/0.001746, 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.00235/0.00235, allocations: 195.4 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 2.075/2.075, allocations: 205.1 MB / 222.4 MB, free: 4.609 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.68/1.68, allocations: 292.3 MB / 0.5489 GB, free: 12.84 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.001547/0.001547, allocations: 66.81 kB / 0.6717 GB, free: 26.22 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2717/0.2732, allocations: 114.5 MB / 0.7835 GB, free: 13.36 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTubeNegative): time 0.00322/0.2765, allocations: 1.431 MB / 0.7849 GB, free: 11.91 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.004874/0.2814, allocations: 2.924 MB / 0.7878 GB, free: 8.973 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.094e-05/0.2815, allocations: 0 / 0.7878 GB, free: 8.973 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.525e-05/0.2816, allocations: 3.938 kB / 0.7878 GB, free: 8.969 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.888e-05/0.2817, allocations: 23.84 kB / 0.7878 GB, free: 8.945 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/internalResistancesOneUTube.mo:2:1-155:32:writable] Warning: Pure function 'Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.internalResistancesOneUTube' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.00429/0.286, allocations: 1.628 MB / 0.7894 GB, free: 7.34 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 8.697e-05/0.2861, allocations: 39.8 kB / 0.7894 GB, free: 7.301 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 4.588e-05/0.2861, allocations: 4 kB / 0.7894 GB, free: 7.297 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 2.763e-05/0.2862, allocations: 7.938 kB / 0.7894 GB, free: 7.289 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 3.231e-05/0.2862, allocations: 27.84 kB / 0.7895 GB, free: 7.262 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.354e-05/0.2862, allocations: 4 kB / 0.7895 GB, free: 7.258 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002233/0.2885, allocations: 1.443 MB / 0.7909 GB, free: 5.812 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.934e-05/0.2885, allocations: 11.94 kB / 0.7909 GB, free: 5.801 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.804e-05/0.2885, allocations: 15.88 kB / 0.7909 GB, free: 5.785 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.001489/0.29, allocations: 1.092 MB / 0.792 GB, free: 4.691 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.2901, allocations: 3.938 kB / 0.792 GB, free: 4.688 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.934e-06/0.2901, allocations: 0 / 0.792 GB, free: 4.688 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.034e-05/0.2901, allocations: 0 / 0.792 GB, free: 4.688 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.0007555/0.2908, allocations: 0.5145 MB / 0.7925 GB, free: 4.125 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.455e-05/0.2909, allocations: 12.02 kB / 0.7925 GB, free: 4.113 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.524e-05/0.291, allocations: 106 kB / 0.7926 GB, free: 4 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.115e-05/0.2911, allocations: 88.22 kB / 0.7927 GB, free: 3.914 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001758/0.2912, allocations: 247.5 kB / 0.7929 GB, free: 3.633 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.187e-05/0.2913, allocations: 150.9 kB / 0.7931 GB, free: 3.484 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.892e-05/0.2914, allocations: 150.9 kB / 0.7932 GB, free: 3.336 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.244e-05/0.2915, allocations: 108.9 kB / 0.7933 GB, free: 3.223 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.399e-05/0.2915, allocations: 75.28 kB / 0.7934 GB, free: 3.148 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.211e-05/0.2916, allocations: 158.5 kB / 0.7935 GB, free: 2.992 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.711e-05/0.2916, allocations: 154.6 kB / 0.7937 GB, free: 2.84 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.049e-05/0.2917, allocations: 150.6 kB / 0.7938 GB, free: 2.691 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003258/0.292, allocations: 461.9 kB / 0.7943 GB, free: 2.191 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 8.107e-05/0.2921, allocations: 177.1 kB / 0.7944 GB, free: 2.008 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.006e-05/0.2921, allocations: 80.14 kB / 0.7945 GB, free: 1.926 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 3.101e-05/0.2922, allocations: 83.16 kB / 0.7946 GB, free: 1.844 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.567e-05/0.2922, allocations: 105.8 kB / 0.7947 GB, free: 1.73 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=0): time 1.293e-06/0.2922, allocations: 0 / 0.7947 GB, free: 1.73 MB / 0.6075 GB Notification: Performance of matching and sorting (n=0): time 8.698e-05/0.2923, allocations: 29.7 kB / 0.7947 GB, free: 1.695 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.459e-05/0.2924, allocations: 130.7 kB / 0.7948 GB, free: 1.555 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001531/0.2926, allocations: 133.7 kB / 0.795 GB, free: 1.414 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.493e-05/0.2926, allocations: 25.7 kB / 0.795 GB, free: 1.383 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.041e-05/0.2926, allocations: 88.14 kB / 0.7951 GB, free: 1.293 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.903e-06/0.2926, allocations: 0 / 0.7951 GB, free: 1.293 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.774e-05/0.2927, allocations: 21.7 kB / 0.7951 GB, free: 1.266 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001278/0.2928, allocations: 314.8 kB / 0.7954 GB, free: 0.9492 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.485e-05/0.2928, allocations: 4 kB / 0.7954 GB, free: 0.9453 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.081e-05/0.2929, allocations: 15.92 kB / 0.7954 GB, free: 0.9297 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.726e-05/0.2929, allocations: 12.86 kB / 0.7954 GB, free: 0.9141 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.2929, allocations: 0 / 0.7954 GB, free: 0.9141 MB / 0.6075 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001731/0.2931, allocations: 49.67 kB / 0.7955 GB, free: 0.8594 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/0.2931, allocations: 6.812 kB / 0.7955 GB, free: 0.8555 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.68e-05/0.2932, allocations: 7.984 kB / 0.7955 GB, free: 0.8477 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.974e-05/0.2932, allocations: 0 / 0.7955 GB, free: 0.8477 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.102e-06/0.2932, allocations: 0 / 0.7955 GB, free: 0.8477 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.305e-06/0.2932, allocations: 0 / 0.7955 GB, free: 0.8477 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.626e-05/0.2932, allocations: 23.78 kB / 0.7955 GB, free: 0.8242 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.865e-06/0.2933, allocations: 4 kB / 0.7955 GB, free: 0.8203 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 0.0001262/0.2934, allocations: 181.1 kB / 0.7957 GB, free: 0.6328 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.382e-05/0.2935, allocations: 116.9 kB / 0.7958 GB, free: 0.5117 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.016e-05/0.2935, allocations: 108.8 kB / 0.7959 GB, free: 404 kB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.095e-05/0.2936, allocations: 184.2 kB / 0.7961 GB, free: 212 kB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.178e-05/0.2937, allocations: 180.3 kB / 0.7963 GB, free: 24 kB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.721e-05/0.2938, allocations: 176.3 kB / 0.7964 GB, free: 15.84 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002517/0.294, allocations: 421.1 kB / 0.7968 GB, free: 15.38 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-05/0.2941, allocations: 105 kB / 0.7969 GB, free: 15.27 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.976e-05/0.2941, allocations: 108.9 kB / 0.797 GB, free: 15.15 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.748e-05/0.2942, allocations: 180.3 kB / 0.7972 GB, free: 14.97 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.597e-05/0.2943, allocations: 180.3 kB / 0.7974 GB, free: 14.79 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.89e-05/0.2943, allocations: 184.2 kB / 0.7975 GB, free: 14.6 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.093e-05/0.2944, allocations: 176.3 kB / 0.7977 GB, free: 14.42 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001694/0.2946, allocations: 315.6 kB / 0.798 GB, free: 14.09 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 9.508e-05/0.2947, allocations: 193.9 kB / 0.7982 GB, free: 13.87 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.136e-05/0.2948, allocations: 180.2 kB / 0.7984 GB, free: 13.69 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.349e-05/0.2949, allocations: 105 kB / 0.7985 GB, free: 13.58 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.021e-05/0.295, allocations: 180.2 kB / 0.7986 GB, free: 13.39 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.192e-05/0.295, allocations: 101 kB / 0.7987 GB, free: 13.29 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 6.43e-05/0.2951, allocations: 99.27 kB / 0.7988 GB, free: 13.19 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2951, allocations: 4 kB / 0.7988 GB, free: 13.19 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0008626/0.296, allocations: 275.8 kB / 0.7991 GB, free: 12.92 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.001594/0.2976, allocations: 1.193 MB / 0.8003 GB, free: 11.71 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0001129/0.2977, allocations: 41.69 kB / 0.8003 GB, free: 11.66 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2977, allocations: 0 / 0.8003 GB, free: 11.66 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 2.034e-06/0.2977, allocations: 0 / 0.8003 GB, free: 11.66 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004249/0.2981, allocations: 463.6 kB / 0.8008 GB, free: 11.2 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001616/0.2998, allocations: 1.587 MB / 0.8023 GB, free: 9.535 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002827/0.3001, allocations: 0.6846 MB / 0.803 GB, free: 8.824 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 1.341e-05/0.3001, allocations: 0 / 0.803 GB, free: 8.824 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.985e-05/0.3001, allocations: 22 kB / 0.803 GB, free: 8.805 MB / 0.6231 GB Notification: Performance of SimCode: time 6.51e-07/0.3001, allocations: 32 / 0.803 GB, free: 8.805 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02815/0.3283, allocations: 7.027 MB / 0.8099 GB, free: 1.977 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.466/8.794, allocations: 14.19 kB / 0.8099 GB, free: 1.965 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTubeNegative.pipe ; mkfifo Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTubeNegative.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTubeNegative.pipe >> ../files/Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTubeNegative.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTubeNegative_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_InternalResistancesOneUTubeNegative.fmu > Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTubeNegative.pipe 2>&1)