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.InternalResistancesOneUTube.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.InternalResistancesOneUTube,fileNamePrefix="Buildings_8_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesOneUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTube,fileNamePrefix="Buildings_8_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesOneUTube",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.00118/0.00118, allocations: 108 kB / 15.61 MB, free: 148 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.00127/0.00127, allocations: 196.4 kB / 16.53 MB, free: 6.656 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.8/1.8, allocations: 205.1 MB / 222.4 MB, free: 4.605 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.868/1.868, allocations: 292.3 MB / 0.5489 GB, free: 12.85 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.001504/0.001504, allocations: 64.33 kB / 0.6717 GB, free: 26.27 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2959/0.2975, allocations: 114.6 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.InternalResistancesOneUTube): time 0.00297/0.3005, allocations: 1.431 MB / 0.7849 GB, free: 11.91 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.004694/0.3052, allocations: 2.924 MB / 0.7878 GB, free: 8.977 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.468e-05/0.3053, allocations: 0 / 0.7878 GB, free: 8.977 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.704e-05/0.3053, allocations: 7.922 kB / 0.7878 GB, free: 8.969 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.521e-05/0.3054, allocations: 11.88 kB / 0.7878 GB, free: 8.957 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.004318/0.3097, allocations: 1.63 MB / 0.7894 GB, free: 7.344 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 8.245e-05/0.3098, allocations: 47.73 kB / 0.7894 GB, free: 7.297 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 5.181e-05/0.3099, allocations: 4 kB / 0.7894 GB, free: 7.293 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 3.363e-05/0.3099, allocations: 15.92 kB / 0.7895 GB, free: 7.277 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 3.326e-05/0.31, allocations: 15.88 kB / 0.7895 GB, free: 7.262 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.555e-05/0.31, allocations: 4 kB / 0.7895 GB, free: 7.258 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002283/0.3123, allocations: 1.443 MB / 0.7909 GB, free: 5.812 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.547e-05/0.3123, allocations: 4 kB / 0.7909 GB, free: 5.809 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.813e-05/0.3124, allocations: 15.88 kB / 0.7909 GB, free: 5.793 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.00165/0.314, allocations: 1.092 MB / 0.792 GB, free: 4.699 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.314, allocations: 4 kB / 0.792 GB, free: 4.695 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.032e-06/0.314, allocations: 0 / 0.792 GB, free: 4.695 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.115e-06/0.3141, allocations: 0 / 0.792 GB, free: 4.695 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.0007137/0.3148, allocations: 0.5184 MB / 0.7925 GB, free: 4.129 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.265e-05/0.3148, allocations: 8.031 kB / 0.7925 GB, free: 4.121 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.095e-05/0.3149, allocations: 114 kB / 0.7926 GB, free: 4 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.9e-05/0.315, allocations: 80.22 kB / 0.7927 GB, free: 3.922 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001877/0.3152, allocations: 250 kB / 0.7929 GB, free: 3.641 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.745e-05/0.3153, allocations: 154.9 kB / 0.7931 GB, free: 3.488 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.556e-05/0.3154, allocations: 150.9 kB / 0.7932 GB, free: 3.34 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.223e-05/0.3155, allocations: 112.9 kB / 0.7933 GB, free: 3.223 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.192e-05/0.3155, allocations: 75.28 kB / 0.7934 GB, free: 3.148 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.477e-05/0.3156, allocations: 154.6 kB / 0.7935 GB, free: 2.996 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.05e-05/0.3156, allocations: 150.6 kB / 0.7937 GB, free: 2.848 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.697e-05/0.3157, allocations: 158.5 kB / 0.7938 GB, free: 2.691 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003387/0.3161, allocations: 461.9 kB / 0.7943 GB, free: 2.191 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001103/0.3162, allocations: 169.1 kB / 0.7944 GB, free: 2.016 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.18e-05/0.3162, allocations: 80.14 kB / 0.7945 GB, free: 1.934 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 3.603e-05/0.3163, allocations: 83.22 kB / 0.7946 GB, free: 1.852 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.313e-05/0.3163, allocations: 109.8 kB / 0.7947 GB, free: 1.734 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=0): time 9.52e-07/0.3164, allocations: 0 / 0.7947 GB, free: 1.734 MB / 0.6075 GB Notification: Performance of matching and sorting (n=0): time 8.094e-05/0.3164, allocations: 29.7 kB / 0.7947 GB, free: 1.699 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.022e-05/0.3165, allocations: 126.7 kB / 0.7948 GB, free: 1.562 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000145/0.3167, allocations: 133.7 kB / 0.795 GB, free: 1.422 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.588e-05/0.3167, allocations: 29.7 kB / 0.795 GB, free: 1.387 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.221e-05/0.3168, allocations: 96.11 kB / 0.7951 GB, free: 1.289 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.084e-06/0.3168, allocations: 0 / 0.7951 GB, free: 1.289 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.313e-05/0.3168, allocations: 17.72 kB / 0.7951 GB, free: 1.266 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001334/0.317, allocations: 322.8 kB / 0.7954 GB, free: 0.9414 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.595e-05/0.317, allocations: 8 kB / 0.7954 GB, free: 0.9336 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.394e-05/0.317, allocations: 0 / 0.7954 GB, free: 0.9336 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.13e-05/0.3171, allocations: 20.8 kB / 0.7954 GB, free: 0.9102 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.3171, allocations: 32 / 0.7954 GB, free: 0.9102 MB / 0.6075 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001344/0.3172, allocations: 53.62 kB / 0.7955 GB, free: 0.8516 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/0.3172, allocations: 4 kB / 0.7955 GB, free: 0.8477 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.908e-05/0.3172, allocations: 4 kB / 0.7955 GB, free: 0.8438 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.275e-05/0.3173, allocations: 0 / 0.7955 GB, free: 0.8438 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.52e-07/0.3173, allocations: 0 / 0.7955 GB, free: 0.8438 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.3173, allocations: 0 / 0.7955 GB, free: 0.8438 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.717e-05/0.3173, allocations: 15.78 kB / 0.7955 GB, free: 0.8281 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.842e-06/0.3173, allocations: 0 / 0.7955 GB, free: 0.8281 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.0001298/0.3175, allocations: 189.2 kB / 0.7957 GB, free: 0.6328 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.957e-05/0.3175, allocations: 112.9 kB / 0.7958 GB, free: 0.5156 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.007e-05/0.3176, allocations: 116.9 kB / 0.7959 GB, free: 400 kB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.617e-05/0.3177, allocations: 176.3 kB / 0.7961 GB, free: 216 kB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.9e-05/0.3178, allocations: 180.2 kB / 0.7963 GB, free: 28 kB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.251e-05/0.3179, allocations: 180.3 kB / 0.7964 GB, free: 15.84 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002743/0.3182, allocations: 425.1 kB / 0.7968 GB, free: 15.37 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.686e-05/0.3182, allocations: 101 kB / 0.7969 GB, free: 15.27 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.349e-05/0.3182, allocations: 105 kB / 0.797 GB, free: 15.16 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.212e-05/0.3183, allocations: 184.2 kB / 0.7972 GB, free: 14.97 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.211e-05/0.3184, allocations: 180.3 kB / 0.7974 GB, free: 14.79 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.002e-05/0.3185, allocations: 184.2 kB / 0.7976 GB, free: 14.6 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.086e-05/0.3186, allocations: 184.2 kB / 0.7977 GB, free: 14.41 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001566/0.3187, allocations: 315.6 kB / 0.798 GB, free: 14.08 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 9.17e-05/0.3188, allocations: 186 kB / 0.7982 GB, free: 13.87 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.712e-05/0.3189, allocations: 184.2 kB / 0.7984 GB, free: 13.68 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.752e-05/0.319, allocations: 105 kB / 0.7985 GB, free: 13.57 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.841e-05/0.3191, allocations: 180.2 kB / 0.7987 GB, free: 13.39 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.52e-05/0.3191, allocations: 101 kB / 0.7988 GB, free: 13.29 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 7.948e-05/0.3192, allocations: 106.1 kB / 0.7989 GB, free: 13.18 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3192, allocations: 0 / 0.7989 GB, free: 13.18 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.000837/0.3201, allocations: 275.8 kB / 0.7991 GB, free: 12.91 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.001539/0.3216, allocations: 1.189 MB / 0.8003 GB, free: 11.7 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0001127/0.3217, allocations: 37.7 kB / 0.8003 GB, free: 11.66 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.3217, allocations: 4.062 kB / 0.8003 GB, free: 11.66 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 2.084e-06/0.3217, 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.0004372/0.3222, allocations: 455.7 kB / 0.8008 GB, free: 11.21 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001653/0.3239, allocations: 1.594 MB / 0.8023 GB, free: 9.535 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004042/0.3243, allocations: 0.6846 MB / 0.803 GB, free: 8.824 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 1.86e-05/0.3243, allocations: 0 / 0.803 GB, free: 8.824 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.62e-05/0.3243, allocations: 15.44 kB / 0.803 GB, free: 8.809 MB / 0.6231 GB Notification: Performance of SimCode: time 5.91e-07/0.3243, allocations: 0 / 0.803 GB, free: 8.809 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03008/0.3544, allocations: 7.015 MB / 0.8098 GB, free: 1.988 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.367/8.721, allocations: 12.92 kB / 0.8099 GB, free: 1.977 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTube.pipe ; mkfifo Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTube.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTube.pipe >> ../files/Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTube.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTube_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_InternalResistancesOneUTube.fmu > Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTube.pipe 2>&1)