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.001466/0.001466, allocations: 109.4 kB / 15.69 MB, free: 128 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.001706/0.001705, allocations: 188.9 kB / 16.62 MB, free: 6.613 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.461/1.461, allocations: 205.1 MB / 222.5 MB, free: 4.582 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.71/1.71, allocations: 292.3 MB / 0.549 GB, free: 12.77 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.001365/0.001365, allocations: 69.62 kB / 0.6718 GB, free: 26.31 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2188/0.2202, allocations: 114.5 MB / 0.7837 GB, free: 13.25 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesOneUTubeNegative): time 0.002909/0.2232, allocations: 1.443 MB / 0.7851 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.004263/0.2275, allocations: 2.924 MB / 0.7879 GB, free: 8.855 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.257e-05/0.2275, allocations: 0 / 0.7879 GB, free: 8.855 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.93e-05/0.2276, allocations: 7.922 kB / 0.788 GB, free: 8.848 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 6.448e-05/0.2277, allocations: 15.86 kB / 0.788 GB, free: 8.832 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.00379/0.2315, allocations: 1.62 MB / 0.7895 GB, free: 7.23 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 9.277e-05/0.2316, allocations: 39.73 kB / 0.7896 GB, free: 7.191 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 4.004e-05/0.2316, allocations: 7.984 kB / 0.7896 GB, free: 7.184 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 2.38e-05/0.2317, allocations: 11.94 kB / 0.7896 GB, free: 7.172 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 3.401e-05/0.2317, allocations: 19.88 kB / 0.7896 GB, free: 7.152 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.033e-05/0.2317, allocations: 0 / 0.7896 GB, free: 7.152 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002115/0.2338, allocations: 1.517 MB / 0.7911 GB, free: 5.633 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.508e-05/0.2339, allocations: 3.984 kB / 0.7911 GB, free: 5.629 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.369e-05/0.2339, allocations: 15.88 kB / 0.7911 GB, free: 5.613 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.001453/0.2354, allocations: 1.09 MB / 0.7922 GB, free: 4.523 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.2354, allocations: 0 / 0.7922 GB, free: 4.523 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.255e-06/0.2354, allocations: 0 / 0.7922 GB, free: 4.523 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.784e-06/0.2354, allocations: 0 / 0.7922 GB, free: 4.523 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.0006175/0.236, allocations: 0.5224 MB / 0.7927 GB, free: 3.953 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.429e-05/0.2361, allocations: 8.031 kB / 0.7927 GB, free: 3.945 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.726e-05/0.2361, allocations: 117.9 kB / 0.7928 GB, free: 3.82 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.131e-05/0.2362, allocations: 80.22 kB / 0.7929 GB, free: 3.742 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000162/0.2364, allocations: 251.5 kB / 0.7931 GB, free: 3.457 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.69e-05/0.2365, allocations: 150.9 kB / 0.7933 GB, free: 3.309 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.704e-05/0.2365, allocations: 154.9 kB / 0.7934 GB, free: 3.156 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.698e-05/0.2366, allocations: 108.9 kB / 0.7935 GB, free: 3.043 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.811e-05/0.2366, allocations: 79.28 kB / 0.7936 GB, free: 2.965 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.032e-05/0.2367, allocations: 154.6 kB / 0.7938 GB, free: 2.812 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.115e-05/0.2368, allocations: 150.6 kB / 0.7939 GB, free: 2.664 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.085e-05/0.2368, allocations: 158.5 kB / 0.794 GB, free: 2.508 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003098/0.2371, allocations: 457.9 kB / 0.7945 GB, free: 2.012 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 9.95e-05/0.2372, allocations: 177.1 kB / 0.7947 GB, free: 1.828 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.498e-05/0.2373, allocations: 80.14 kB / 0.7947 GB, free: 1.746 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 3.53e-05/0.2373, allocations: 79.22 kB / 0.7948 GB, free: 1.668 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.315e-05/0.2374, allocations: 109.8 kB / 0.7949 GB, free: 1.551 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=0): time 7.62e-07/0.2374, allocations: 4 kB / 0.7949 GB, free: 1.547 MB / 0.6075 GB Notification: Performance of matching and sorting (n=0): time 7.28e-05/0.2375, allocations: 29.69 kB / 0.7949 GB, free: 1.512 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.35e-05/0.2375, allocations: 130.7 kB / 0.7951 GB, free: 1.371 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000138/0.2377, allocations: 133.7 kB / 0.7952 GB, free: 1.23 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.092e-05/0.2377, allocations: 29.7 kB / 0.7952 GB, free: 1.195 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.806e-05/0.2378, allocations: 84.14 kB / 0.7953 GB, free: 1.109 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.144e-06/0.2378, allocations: 0 / 0.7953 GB, free: 1.109 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.303e-05/0.2378, allocations: 21.7 kB / 0.7953 GB, free: 1.082 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000121/0.2379, allocations: 318.8 kB / 0.7956 GB, free: 0.7617 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.139e-05/0.238, allocations: 8 kB / 0.7956 GB, free: 0.7539 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.385e-05/0.238, allocations: 0 / 0.7956 GB, free: 0.7539 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.038e-05/0.238, allocations: 24.78 kB / 0.7957 GB, free: 0.7266 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.238, allocations: 0 / 0.7957 GB, free: 0.7266 MB / 0.6075 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001253/0.2382, allocations: 41.64 kB / 0.7957 GB, free: 0.6797 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.462e-05/0.2382, allocations: 6.812 kB / 0.7957 GB, free: 0.6758 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.98e-05/0.2382, allocations: 4 kB / 0.7957 GB, free: 0.6719 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.201e-05/0.2382, allocations: 0 / 0.7957 GB, free: 0.6719 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.81e-07/0.2382, allocations: 0 / 0.7957 GB, free: 0.6719 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.264e-06/0.2382, allocations: 3.984 kB / 0.7957 GB, free: 0.668 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.437e-05/0.2383, allocations: 15.91 kB / 0.7957 GB, free: 0.6523 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.159e-05/0.2383, allocations: 3.984 kB / 0.7957 GB, free: 0.6484 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.0001006/0.2384, allocations: 189.1 kB / 0.7959 GB, free: 464 kB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.697e-05/0.2385, allocations: 112.9 kB / 0.796 GB, free: 344 kB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.786e-05/0.2385, allocations: 112.6 kB / 0.7961 GB, free: 220 kB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.625e-05/0.2386, allocations: 176.3 kB / 0.7963 GB, free: 36 kB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.421e-05/0.2387, allocations: 188.2 kB / 0.7965 GB, free: 15.84 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.28e-05/0.2387, allocations: 180.3 kB / 0.7966 GB, free: 15.66 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002414/0.239, allocations: 417.1 kB / 0.797 GB, free: 15.2 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.711e-05/0.239, allocations: 101 kB / 0.7971 GB, free: 15.09 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.938e-05/0.2391, allocations: 109 kB / 0.7972 GB, free: 14.98 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.901e-05/0.2392, allocations: 192.2 kB / 0.7974 GB, free: 14.78 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.047e-05/0.2393, allocations: 184.2 kB / 0.7976 GB, free: 14.59 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.705e-05/0.2393, allocations: 180.2 kB / 0.7978 GB, free: 14.41 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.883e-05/0.2394, allocations: 176.3 kB / 0.7979 GB, free: 14.23 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001598/0.2396, allocations: 319.6 kB / 0.7983 GB, free: 13.89 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 8.879e-05/0.2397, allocations: 186 kB / 0.7984 GB, free: 13.69 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.676e-05/0.2398, allocations: 184.2 kB / 0.7986 GB, free: 13.5 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.02e-05/0.2398, allocations: 101 kB / 0.7987 GB, free: 13.39 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.991e-05/0.2399, allocations: 184.2 kB / 0.7989 GB, free: 13.21 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.588e-05/0.24, allocations: 101 kB / 0.799 GB, free: 13.1 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 6.009e-05/0.24, allocations: 99.27 kB / 0.7991 GB, free: 13 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2401, allocations: 8 kB / 0.7991 GB, free: 13 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0007347/0.2408, allocations: 271.8 kB / 0.7993 GB, free: 12.73 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.001413/0.2422, allocations: 1.191 MB / 0.8005 GB, free: 11.52 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0001/0.2423, allocations: 37.7 kB / 0.8005 GB, free: 11.48 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.2423, allocations: 0 / 0.8005 GB, free: 11.48 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 1.733e-06/0.2423, allocations: 0 / 0.8005 GB, free: 11.48 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004224/0.2428, allocations: 466.9 kB / 0.801 GB, free: 11.02 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001437/0.2442, allocations: 1.59 MB / 0.8025 GB, free: 9.352 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002725/0.2445, allocations: 0.6807 MB / 0.8032 GB, free: 8.645 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 1.648e-05/0.2445, allocations: 4 kB / 0.8032 GB, free: 8.641 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.718e-05/0.2446, allocations: 15.42 kB / 0.8032 GB, free: 8.625 MB / 0.6231 GB Notification: Performance of SimCode: time 2.1e-07/0.2446, allocations: 0 / 0.8032 GB, free: 8.625 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02795/0.2725, allocations: 7.024 MB / 0.8101 GB, free: 1.809 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.794/8.066, allocations: 21.67 kB / 0.8101 GB, free: 1.789 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)