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.001095/0.001095, 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.001245/0.001245, allocations: 185.6 kB / 16.64 MB, free: 6.594 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.45/1.45, allocations: 205.1 MB / 222.5 MB, free: 4.566 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.646/1.646, allocations: 292.3 MB / 0.549 GB, free: 12.75 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.001375/0.001375, allocations: 71.64 kB / 0.6718 GB, free: 26.31 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2056/0.207, allocations: 114.6 MB / 0.7837 GB, free: 13.23 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative): time 0.002329/0.2093, allocations: 1.441 MB / 0.7851 GB, free: 11.78 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.003926/0.2133, allocations: 2.978 MB / 0.788 GB, free: 8.781 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.276e-05/0.2133, allocations: 0 / 0.788 GB, free: 8.781 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.807e-05/0.2133, allocations: 3.984 kB / 0.788 GB, free: 8.777 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.778e-05/0.2134, allocations: 11.81 kB / 0.788 GB, free: 8.766 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.003461/0.2169, allocations: 1.657 MB / 0.7896 GB, free: 7.125 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 8.794e-05/0.217, allocations: 47.66 kB / 0.7897 GB, free: 7.078 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 4.02e-05/0.217, allocations: 4 kB / 0.7897 GB, free: 7.074 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 2.395e-05/0.2171, allocations: 11.94 kB / 0.7897 GB, free: 7.062 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 3.203e-05/0.2171, allocations: 15.92 kB / 0.7897 GB, free: 7.047 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 9.939e-06/0.2171, allocations: 3.938 kB / 0.7897 GB, free: 7.043 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002088/0.2192, allocations: 1.548 MB / 0.7912 GB, free: 5.492 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.497e-05/0.2192, allocations: 4 kB / 0.7912 GB, free: 5.488 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.362e-05/0.2193, allocations: 31.8 kB / 0.7913 GB, free: 5.457 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.001328/0.2206, allocations: 1.115 MB / 0.7924 GB, free: 4.34 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.2206, allocations: 0 / 0.7924 GB, free: 4.34 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.936e-06/0.2206, allocations: 0 / 0.7924 GB, free: 4.34 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.009e-06/0.2206, allocations: 3.938 kB / 0.7924 GB, free: 4.336 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.0004986/0.2211, allocations: 0.5223 MB / 0.7929 GB, free: 3.766 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.506e-05/0.2212, allocations: 8.031 kB / 0.7929 GB, free: 3.758 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.289e-05/0.2212, allocations: 106 kB / 0.793 GB, free: 3.645 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.558e-05/0.2213, allocations: 80.22 kB / 0.7931 GB, free: 3.566 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001343/0.2214, allocations: 259.4 kB / 0.7933 GB, free: 3.273 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.593e-05/0.2215, allocations: 150.9 kB / 0.7935 GB, free: 3.125 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.844e-05/0.2215, allocations: 158.9 kB / 0.7936 GB, free: 2.969 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.459e-05/0.2216, allocations: 108.9 kB / 0.7937 GB, free: 2.855 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.448e-05/0.2216, allocations: 75.28 kB / 0.7938 GB, free: 2.781 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.151e-05/0.2217, allocations: 154.6 kB / 0.7939 GB, free: 2.629 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.096e-05/0.2217, allocations: 154.6 kB / 0.7941 GB, free: 2.477 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.435e-05/0.2218, allocations: 158.5 kB / 0.7942 GB, free: 2.32 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002619/0.222, allocations: 461.9 kB / 0.7947 GB, free: 1.82 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 6.882e-05/0.2221, allocations: 165.1 kB / 0.7948 GB, free: 1.648 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.341e-05/0.2222, allocations: 84.14 kB / 0.7949 GB, free: 1.562 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.448e-05/0.2222, allocations: 79.22 kB / 0.795 GB, free: 1.484 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.607e-05/0.2223, allocations: 113.8 kB / 0.7951 GB, free: 1.363 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=0): time 8.31e-07/0.2223, allocations: 4 kB / 0.7951 GB, free: 1.359 MB / 0.6075 GB Notification: Performance of matching and sorting (n=0): time 7.141e-05/0.2223, allocations: 25.7 kB / 0.7951 GB, free: 1.328 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.06e-05/0.2224, allocations: 126.7 kB / 0.7952 GB, free: 1.191 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001316/0.2225, allocations: 144.7 kB / 0.7954 GB, free: 1.043 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.185e-05/0.2226, allocations: 25.7 kB / 0.7954 GB, free: 1.012 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.484e-05/0.2226, allocations: 88.12 kB / 0.7955 GB, free: 0.9219 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.893e-06/0.2226, allocations: 4 kB / 0.7955 GB, free: 0.918 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.227e-05/0.2227, allocations: 17.72 kB / 0.7955 GB, free: 0.8945 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.624e-05/0.2228, allocations: 314.8 kB / 0.7958 GB, free: 0.5781 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.588e-05/0.2228, allocations: 8 kB / 0.7958 GB, free: 0.5703 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.595e-05/0.2228, allocations: 4 kB / 0.7958 GB, free: 0.5664 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.842e-05/0.2229, allocations: 24.89 kB / 0.7958 GB, free: 0.5391 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.2229, allocations: 4 kB / 0.7958 GB, free: 0.5352 MB / 0.6075 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000116/0.223, allocations: 53.53 kB / 0.7959 GB, free: 488 kB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/0.223, allocations: 8 kB / 0.7959 GB, free: 480 kB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.874e-05/0.223, allocations: 0 / 0.7959 GB, free: 480 kB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.587e-05/0.2231, allocations: 4 kB / 0.7959 GB, free: 476 kB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.72e-07/0.2231, allocations: 0 / 0.7959 GB, free: 476 kB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.41e-06/0.2231, allocations: 3.984 kB / 0.7959 GB, free: 472 kB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.048e-05/0.2231, allocations: 0 / 0.7959 GB, free: 472 kB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.893e-06/0.2231, allocations: 3.938 kB / 0.7959 GB, free: 468 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 7.8e-05/0.2232, allocations: 189.2 kB / 0.7961 GB, free: 268 kB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.88e-05/0.2233, allocations: 116.8 kB / 0.7962 GB, free: 144 kB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.155e-05/0.2233, allocations: 112.8 kB / 0.7963 GB, free: 20 kB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.724e-05/0.2234, allocations: 180.2 kB / 0.7965 GB, free: 15.84 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.361e-05/0.2234, allocations: 180.2 kB / 0.7967 GB, free: 15.65 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-05/0.2235, allocations: 188.2 kB / 0.7968 GB, free: 15.46 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001913/0.2237, allocations: 421.1 kB / 0.7972 GB, free: 14.99 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.008e-05/0.2237, allocations: 109 kB / 0.7973 GB, free: 14.88 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.787e-05/0.2238, allocations: 104.9 kB / 0.7974 GB, free: 14.77 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.512e-05/0.2238, allocations: 176.3 kB / 0.7976 GB, free: 14.59 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.846e-05/0.2239, allocations: 180.3 kB / 0.7978 GB, free: 14.41 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.122e-05/0.2239, allocations: 192.2 kB / 0.798 GB, free: 14.21 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.331e-05/0.224, allocations: 176.3 kB / 0.7981 GB, free: 14.03 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001073/0.2241, allocations: 307.6 kB / 0.7984 GB, free: 13.71 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 5.93e-05/0.2241, allocations: 190.1 kB / 0.7986 GB, free: 13.5 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.801e-05/0.2242, allocations: 184.2 kB / 0.7988 GB, free: 13.31 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.876e-05/0.2243, allocations: 101 kB / 0.7989 GB, free: 13.2 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.34e-05/0.2243, allocations: 184.2 kB / 0.7991 GB, free: 13.02 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.58e-05/0.2244, allocations: 101 kB / 0.7992 GB, free: 12.91 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 5.142e-05/0.2244, allocations: 103.2 kB / 0.7993 GB, free: 12.81 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2244, allocations: 0 / 0.7993 GB, free: 12.81 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0006439/0.2251, allocations: 287.8 kB / 0.7995 GB, free: 12.53 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.00119/0.2263, allocations: 1.203 MB / 0.8007 GB, free: 11.31 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 8.664e-05/0.2264, 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.034e-06/0.2264, allocations: 0 / 0.8007 GB, free: 11.27 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 4.028e-06/0.2264, allocations: 4.344 kB / 0.8007 GB, free: 11.26 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003426/0.2267, allocations: 471.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.001185/0.2279, allocations: 1.605 MB / 0.8028 GB, free: 9.113 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001995/0.2282, allocations: 0.6846 MB / 0.8034 GB, free: 8.402 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 1.253e-05/0.2282, allocations: 0 / 0.8034 GB, free: 8.402 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.216e-05/0.2282, allocations: 15.44 kB / 0.8034 GB, free: 8.387 MB / 0.6231 GB Notification: Performance of SimCode: time 2.01e-07/0.2282, allocations: 0 / 0.8034 GB, free: 8.387 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02277/0.251, allocations: 7.232 MB / 0.8105 GB, free: 1.367 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.825/8.076, allocations: 19.88 kB / 0.8105 GB, free: 1.352 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 & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative_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_InternalResistancesTwoUTubeNegative.fmu > Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.pipe 2>&1)