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.InternalResistancesTwoUTubeNegative.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.InternalResistancesTwoUTubeNegative,fileNamePrefix="Buildings_8_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTubeNegative",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative,fileNamePrefix="Buildings_8_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTubeNegative",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.001535/0.001534, 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.001834/0.001834, allocations: 197 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.421/1.421, allocations: 205.1 MB / 222.4 MB, free: 4.594 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.67/1.67, allocations: 292.3 MB / 0.5489 GB, free: 12.81 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.001392/0.001392, allocations: 70.52 kB / 0.6717 GB, free: 26.26 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1873/0.1887, allocations: 114.6 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.InternalResistancesTwoUTubeNegative): time 0.002356/0.1911, allocations: 1.439 MB / 0.7849 GB, free: 11.87 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.003891/0.195, allocations: 2.967 MB / 0.7878 GB, free: 8.891 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.311e-05/0.195, allocations: 3.938 kB / 0.7878 GB, free: 8.887 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.766e-05/0.1951, allocations: 7.938 kB / 0.7879 GB, free: 8.879 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.621e-05/0.1951, allocations: 15.84 kB / 0.7879 GB, free: 8.863 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.003456/0.1986, allocations: 1.648 MB / 0.7895 GB, free: 7.23 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 7.037e-05/0.1987, allocations: 47.67 kB / 0.7895 GB, free: 7.184 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 3.838e-05/0.1987, allocations: 8 kB / 0.7895 GB, free: 7.176 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 2.634e-05/0.1988, allocations: 15.92 kB / 0.7895 GB, free: 7.16 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 2.556e-05/0.1988, allocations: 15.94 kB / 0.7896 GB, free: 7.145 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 9.247e-06/0.1988, allocations: 0 / 0.7896 GB, free: 7.145 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001814/0.2006, allocations: 1.482 MB / 0.791 GB, free: 5.66 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.261e-05/0.2007, allocations: 7.922 kB / 0.791 GB, free: 5.652 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 2.88e-05/0.2007, allocations: 19.88 kB / 0.791 GB, free: 5.633 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.001236/0.2019, allocations: 1.119 MB / 0.7921 GB, free: 4.512 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.2019, allocations: 0 / 0.7921 GB, free: 4.512 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.052e-06/0.202, allocations: 4 kB / 0.7921 GB, free: 4.508 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.288e-06/0.202, allocations: 0 / 0.7921 GB, free: 4.508 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.0005153/0.2025, allocations: 0.5184 MB / 0.7926 GB, free: 3.941 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.388e-05/0.2025, allocations: 8.031 kB / 0.7926 GB, free: 3.934 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.059e-05/0.2026, allocations: 106 kB / 0.7928 GB, free: 3.82 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.773e-05/0.2026, allocations: 80.22 kB / 0.7928 GB, free: 3.742 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001259/0.2028, allocations: 259.3 kB / 0.7931 GB, free: 3.449 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.277e-05/0.2028, allocations: 154.9 kB / 0.7932 GB, free: 3.297 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.143e-05/0.2029, allocations: 158.9 kB / 0.7934 GB, free: 3.141 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.605e-05/0.2029, allocations: 108.9 kB / 0.7935 GB, free: 3.027 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.123e-05/0.203, allocations: 75.28 kB / 0.7935 GB, free: 2.953 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.444e-05/0.203, allocations: 150.6 kB / 0.7937 GB, free: 2.805 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.818e-05/0.203, allocations: 150.6 kB / 0.7938 GB, free: 2.656 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.392e-05/0.2031, allocations: 154.6 kB / 0.794 GB, free: 2.504 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002507/0.2034, allocations: 465.9 kB / 0.7944 GB, free: 2 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 6.633e-05/0.2034, allocations: 165.1 kB / 0.7946 GB, free: 1.828 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.646e-05/0.2035, allocations: 84.14 kB / 0.7947 GB, free: 1.742 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.451e-05/0.2035, allocations: 83.22 kB / 0.7947 GB, free: 1.66 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.923e-05/0.2035, allocations: 113.8 kB / 0.7949 GB, free: 1.539 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=0): time 9.52e-07/0.2035, allocations: 0 / 0.7949 GB, free: 1.539 MB / 0.6075 GB Notification: Performance of matching and sorting (n=0): time 7.064e-05/0.2036, allocations: 33.64 kB / 0.7949 GB, free: 1.5 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.73e-05/0.2037, allocations: 130.7 kB / 0.795 GB, free: 1.359 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001154/0.2038, allocations: 136.9 kB / 0.7951 GB, free: 1.219 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.066e-05/0.2038, allocations: 25.7 kB / 0.7952 GB, free: 1.188 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.73e-05/0.2039, allocations: 92.14 kB / 0.7953 GB, free: 1.094 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.934e-06/0.2039, allocations: 0 / 0.7953 GB, free: 1.094 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.088e-05/0.2039, allocations: 21.7 kB / 0.7953 GB, free: 1.066 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.551e-05/0.204, allocations: 318.8 kB / 0.7956 GB, free: 0.7461 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.264e-05/0.204, allocations: 8 kB / 0.7956 GB, free: 0.7383 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.342e-05/0.204, allocations: 0 / 0.7956 GB, free: 0.7383 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.644e-05/0.2041, allocations: 24.91 kB / 0.7956 GB, free: 0.7109 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.2041, allocations: 0 / 0.7956 GB, free: 0.7109 MB / 0.6075 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001149/0.2042, allocations: 61.52 kB / 0.7957 GB, free: 0.6445 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.358e-05/0.2042, allocations: 4 kB / 0.7957 GB, free: 0.6406 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.928e-05/0.2042, allocations: 4 kB / 0.7957 GB, free: 0.6367 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.01e-05/0.2043, allocations: 0 / 0.7957 GB, free: 0.6367 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.31e-07/0.2043, allocations: 0 / 0.7957 GB, free: 0.6367 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.727e-06/0.2043, allocations: 0 / 0.7957 GB, free: 0.6367 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.922e-05/0.2043, allocations: 0 / 0.7957 GB, free: 0.6367 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.005e-06/0.2043, allocations: 4 kB / 0.7957 GB, free: 0.6328 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 7.619e-05/0.2044, allocations: 185.1 kB / 0.7959 GB, free: 452 kB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.859e-05/0.2045, allocations: 116.9 kB / 0.796 GB, free: 328 kB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.435e-05/0.2045, allocations: 116.6 kB / 0.7961 GB, free: 200 kB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.214e-05/0.2046, allocations: 180.3 kB / 0.7963 GB, free: 12 kB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.291e-05/0.2046, allocations: 184.2 kB / 0.7964 GB, free: 15.82 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.493e-05/0.2047, allocations: 176.3 kB / 0.7966 GB, free: 15.64 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001878/0.2049, allocations: 421.2 kB / 0.797 GB, free: 15.18 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-05/0.2049, allocations: 112.9 kB / 0.7971 GB, free: 15.06 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.838e-05/0.2049, allocations: 101 kB / 0.7972 GB, free: 14.95 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.781e-05/0.205, allocations: 188.2 kB / 0.7974 GB, free: 14.76 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.897e-05/0.2051, allocations: 176.3 kB / 0.7975 GB, free: 14.58 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.068e-05/0.2051, allocations: 180.3 kB / 0.7977 GB, free: 14.4 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.253e-05/0.2052, allocations: 184.2 kB / 0.7979 GB, free: 14.21 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001088/0.2053, allocations: 315.6 kB / 0.7982 GB, free: 13.88 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 5.968e-05/0.2054, allocations: 186 kB / 0.7984 GB, free: 13.67 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.201e-05/0.2054, allocations: 180.2 kB / 0.7985 GB, free: 13.49 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.951e-05/0.2055, allocations: 109 kB / 0.7986 GB, free: 13.38 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.293e-05/0.2056, allocations: 180.2 kB / 0.7988 GB, free: 13.19 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.829e-05/0.2056, allocations: 104.9 kB / 0.7989 GB, free: 13.08 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 5.34e-05/0.2056, allocations: 99.27 kB / 0.799 GB, free: 12.98 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2057, allocations: 4 kB / 0.799 GB, free: 12.98 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0006539/0.2063, 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.001242/0.2076, allocations: 1.206 MB / 0.8005 GB, free: 11.48 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 9.043e-05/0.2077, allocations: 45.64 kB / 0.8005 GB, free: 11.43 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.2077, allocations: 4 kB / 0.8005 GB, free: 11.43 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 1.803e-06/0.2077, allocations: 368 / 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.0003604/0.2081, allocations: 467.6 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.001201/0.2093, 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.0002048/0.2095, allocations: 0.6846 MB / 0.8032 GB, free: 8.582 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 1.104e-05/0.2095, allocations: 3.938 kB / 0.8032 GB, free: 8.578 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.555e-05/0.2095, allocations: 15.44 kB / 0.8032 GB, free: 8.562 MB / 0.6231 GB Notification: Performance of SimCode: time 2.61e-07/0.2095, allocations: 0 / 0.8032 GB, free: 8.562 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9754/1.185, allocations: 7.238 MB / 0.8103 GB, free: 1.523 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.821/11.01, allocations: 13.5 kB / 0.8103 GB, free: 1.512 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.pipe ; mkfifo Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.pipe >> ../files/Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTubeNegative_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTubeNegative.fmu > Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.pipe 2>&1)