/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7440
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0741.0-5226_daily_bin2005
RA = 115.273, Dec = -52.4425
tmin = 759024001, tmax = 759283201
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='62569020', job_status='RUN', time_executed='2025-01-23 01:01:31.265932', time_epoch_executed='1737622891.27' WHERE source_name='4FGL J0741.0-5226' and cadence='daily' and bin_id='2005'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/62569020

Creating custom pfile directory:
/lscratch/kocevski/62569020/pfiles/

Retrieving the FT1 file...

Issuing command:
datacat find --group FT1 --filter 'nMetStop>=759024001.0 && nMetStart<759283201.0' /Data/Flight/Reprocess/P305

Issuing command:
datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=759024001.0 && nMetStart<759283201.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/62569020/ft1_4FGL_J0741.0-5226_daily_bin2005.fits


Retrieving the FT1 file...

Issuing command:
datacat find --group FT2 --filter 'nMetStop>=759024001.0 && nMetStart<759283201.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/62569020/ft2_4FGL_J0741.0-5226_daily_bin2005.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/62569020/ft1_4FGL_J0741.0-5226_daily_bin2005.fits outfile=/lscratch/kocevski/62569020/ft1_filteredMKT_4FGL_J0741.0-5226_daily_bin2005.fits ra=115.273 dec=-52.4425 rad=12.0 tmin=759024001.0 tmax=759283201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.37
user 1.59
sys 0.23

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/62569020/ft2_4FGL_J0741.0-5226_daily_bin2005.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/62569020/ft2_4FGL_J0741.0-5226_daily_bin2005.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/62569020/ft1_filteredMKT_4FGL_J0741.0-5226_daily_bin2005.fits evtable="EVENTS" outfile="/lscratch/kocevski/62569020/ft1_filtered_4FGL_J0741.0-5226_daily_bin2005.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.43
user 0.20
sys 0.13

Number of photons that the gtmktime cut: 4693

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/62569020/ft1_filtered_4FGL_J0741.0-5226_daily_bin2005.fits" evtable="EVENTS" scfile=/lscratch/kocevski/62569020/ft2_4FGL_J0741.0-5226_daily_bin2005.fits sctable="SC_DATA" outfile=/lscratch/kocevski/62569020/ltcube_759024001_759283201_4FGL_J0741.0-5226_daily_bin2005.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /lscratch/kocevski/62569020/ft2_4FGL_J0741.0-5226_daily_bin2005.fits
.....................!
real 8.89
user 8.28
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/62569020/ft1_filtered_4FGL_J0741.0-5226_daily_bin2005.fits evtable="EVENTS" scfile=/lscratch/kocevski/62569020/ft2_4FGL_J0741.0-5226_daily_bin2005.fits sctable="SC_DATA" expcube=/lscratch/kocevski/62569020/ltcube_759024001_759283201_4FGL_J0741.0-5226_daily_bin2005.fits outfile=/lscratch/kocevski/62569020/expmap_759024001_759283201_4FGL_J0741.0-5226_daily_bin2005.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/62569020/ltcube_759024001_759283201_4FGL_J0741.0-5226_daily_bin2005.fits
.....................!
real 70.34
user 65.61
sys 3.95

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source Puppis A in ROI with RadialDisk spatial model.
Extended source Vela X in ROI with RadialDisk spatial model.
Extended source Vela Junior in ROI with RadialDisk spatial model.
Extended source LMC-North in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/LMC-North.fits is the correct path to the extended template.
Added 217 point sources and 4 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0741.0-5226 @ 115.273 -52.4425

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/62569020/ft1_filtered_4FGL_J0741.0-5226_daily_bin2005.fits scfile=/lscratch/kocevski/62569020/ft2_4FGL_J0741.0-5226_daily_bin2005.fits outfile=/lscratch/kocevski/62569020/cmap_759024001_759283201_4FGL_J0741.0-5226_daily_bin2005.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=115.273 yref=-52.4425 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.64
user 0.23
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/62569020/ft1_filtered_4FGL_J0741.0-5226_daily_bin2005.fits scfile=/lscratch/kocevski/62569020/ft2_4FGL_J0741.0-5226_daily_bin2005.fits outfile=/lscratch/kocevski/62569020/cmap_HighResolution_759024001_759283201_4FGL_J0741.0-5226_daily_bin2005.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=115.273 yref=-52.4425 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.45
user 0.24
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/62569020/ft1_filtered_4FGL_J0741.0-5226_daily_bin2005.fits evtable="EVENTS" scfile=/lscratch/kocevski/62569020/ft2_4FGL_J0741.0-5226_daily_bin2005.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/62569020/Model_4FGL_J0741.0-5226_daily_bin2005.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
adding source LMC-North
adding source Puppis A
adding source Vela Junior
adding source Vela X
Working on...
/lscratch/kocevski/62569020/ft1_filtered_4FGL_J0741.0-5226_daily_bin2005.fits.....................!
real 756.34
user 749.32
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/62569020/ft1_filtered_4FGL_J0741.0-5226_daily_bin2005.fits', '/lscratch/kocevski/62569020/ft2_4FGL_J0741.0-5226_daily_bin2005.fits', expMap='/lscratch/kocevski/62569020/expmap_759024001_759283201_4FGL_J0741.0-5226_daily_bin2005.fits', expCube='/lscratch/kocevski/62569020/ltcube_759024001_759283201_4FGL_J0741.0-5226_daily_bin2005.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/62569020/Model_4FGL_J0741.0-5226_daily_bin2005.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0741.0-5226'

4FGL J0741.0-5226
   Spectrum: PowerLaw
329    Prefactor:  6.060e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-16)
330        Index:  1.722e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
331        Scale:  1.530e+04  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/62569020/ft1_filtered_4FGL_J0741.0-5226_daily_bin2005.fits
Spacecraft file(s): /lscratch/kocevski/62569020/ft2_4FGL_J0741.0-5226_daily_bin2005.fits
Exposure map: /lscratch/kocevski/62569020/expmap_759024001_759283201_4FGL_J0741.0-5226_daily_bin2005.fits
Exposure cube: /lscratch/kocevski/62569020/ltcube_759024001_759283201_4FGL_J0741.0-5226_daily_bin2005.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/62569020/Model_4FGL_J0741.0-5226_daily_bin2005.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 38007.7497939

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 38007.743881

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30950E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .36275       1.0000          .0000       .10000E+07
     3 'Prefactor '    9.8025       1.0000          .0000       .10000E+07
     4 'Prefactor '    .72936E-03   1.0000          .0000       .10000E+07
     5 'norm      '    6.9634       1.0000          .0000       .10000E+07
     6 'Prefactor '    .40147E-03   1.0000          .0000       .10000E+07
     7 'norm      '    6.9145       1.0000          .0000       .10000E+07
     8 'norm      '    .11104E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    2.8685       1.0000          .0000       .10000E+07
    10 'Prefactor '    .82508E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    56.572       1.0000          .0000       .10000E+07
    12 'norm      '    .99778E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    .17419E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    4.8333       1.0000          .0000       .10000E+07
    15 'norm      '    .30361E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    26.089       1.0000          .0000       .10000E+07
    17 'Prefactor '    18.295       1.0000          .0000       .10000E+07
    18 'norm      '    .64944E-01   1.0000          .0000       .10000E+07
    19 'Normalizat'    .83922       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0148       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   38007.74     FROM MIGRAD    STATUS=CONVERGED    187 CALLS     1593 TOTAL
                     EDM=   .83E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44797E-07    66.504        .13785E-05** at limit **
   2  Prefactor     .12101E-07    4.7614        .93335E-07** at limit **
   3  Prefactor     9.7900        12.075       -.34605E-06   -.37531E-02
   4  Prefactor     .31641E-08    7.6144        .94926E-06** at limit **
   5  norm          6.9648        7.1918       -.15054E-06    .10528E-02
   6  Prefactor     .55511E-10    4.3053       -.15434E-06** at limit **
   7  norm          6.9369        5.6357       -.67929E-07   -.23633E-03
   8  norm          .20539E-08    3.5547        .26189E-07** at limit **
   9  Prefactor     2.8888        6.2614       -.68632E-07   -.46542E-03
  10  Prefactor     .11102E-09    98.116       -.14355E-05** at limit **
  11  Prefactor     56.240        3.8881       -.30336E-07    .64231E-01
  12  norm          .61062E-09    10.089       -.35450E-06** at limit **
  13  Prefactor      .0000        4.4720       -.83698E-06** at limit **
  14  Prefactor     4.8358        3.8598       -.16412E-06    .48979E-03
  15  norm           .0000        4.4419       -.12180E-06** at limit **
  16  Prefactor     26.070        1.6372        .19389E-08    .16835E-02
  17  Prefactor     18.280        1.9483        .66228E-07   -.24564E-02
  18  norm          .79191E-01    9.8360       -.36382E-06** at limit **
  19  Normalizat    .83977        .18167        .32548E-05    .35133E-04
  20  Prefactor     1.0147        .41372E-01    .16615E-06   -.44556E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.47975e-08
  Prefactor  = 1.21014e-08
  Prefactor  = 9.79004
  Prefactor  = 3.16414e-09
  norm       = 6.96483
  Prefactor  = 5.55112e-11
  norm       = 6.93691
  norm       = 2.05391e-09
  Prefactor  = 2.8888
  Prefactor  = 1.11022e-10
  Prefactor  = 56.24
  norm       = 6.10623e-10
  Prefactor  = 0
  Prefactor  = 4.83578
  norm       = 0
  Prefactor  = 26.0699
  Prefactor  = 18.2804
  norm       = 0.0791912
  Normalizat = 0.839773
  Prefactor  = 1.01469
 **********
 **   18 **HESSE 
 **********

 FCN=   38007.74     FROM HESSE     STATUS=OK           345 CALLS     1938 TOTAL
                     EDM=   .29E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44797E-07    64.583        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .12101E-07    35.815        .93936E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.7900        12.322        .31982E-03   -1.5645    
   4  Prefactor     .31641E-08    7.7726        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.9648        7.2602        .37994E-03   -1.5655    
   6  Prefactor     .55511E-10    8.3499        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.9369        5.8118        .38130E-03   -1.5655    
   8  norm          .20539E-08    7.7807        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.8888        6.3642        .59992E-03   -1.5674    
  10  Prefactor     .11102E-09    98.403        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     56.240        31.795        .13296E-03   -1.5558    
  12  norm          .61062E-09    1.2316        .71246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        4.4822        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.8358        3.9817        .45734E-03   -1.5664    
  15  norm           .0000        4.4547        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     26.070        13.963        .19582E-03   -1.5606    
  17  Prefactor     18.280        14.129        .23388E-03   -1.5622    
  18  norm          .79191E-01    1.0234        .66187E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .83977        .18184        .18500       -.98610    
  20  Prefactor     1.0147        .40905E-01    .42704E-01   -.92241    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.91193e-07
Minuit parameter uncertainties:
  1  0.00340089
  2  0.00131713
  3  12.3216
  4  0.000314159
  5  7.26024
  6  5.19926e-05
  7  5.8118
  8  0.000253287
  9  6.36423
  10  0.000216022
  11  31.7948
  12  5.56535e-05
  13  9.91664e-06
  14  3.98169
  15  9.6011e-07
  16  13.9628
  17  14.1291
  18  0.569365
  19  0.181974
  20  0.0409065
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 38007.7385219

Extracting fit parameters...

4FGL J0741.0-5226
   Spectrum: PowerLaw
329    Prefactor:  1.110e-10  2.160e-04  0.000e+00  1.000e+06 ( 1.000e-16)
330        Index:  1.722e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
331        Scale:  1.530e+04  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
724    Prefactor:  1.015e+00  4.091e-02  0.000e+00  1.000e+01 ( 1.000e+00)
725        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
726        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
723   Normalization:  8.398e-01  1.820e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 115.273 -52.443
Photon Flux Upper Limit: 3.29744670842e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00241162686589 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/62569020/likelihoodResults_759024001_759283201_4FGL_J0741.0-5226_daily_bin2005.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 38007.7433716
delta logL = -0.0048497262469

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 38007.7385229
delta logL = -1.03200727608e-06

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .48317E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.6971       1.0000          .0000       10.000    
     3 'Normalizat'    .83958       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0147       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   38007.74     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      269 TOTAL
                     EDM=   .43E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44409E-09    133.68        .42118E-03** at limit **
   2  Index         .27589        .45088       -.15454E-02    .19898E-11
   3  Normalizat    .83977        1.1774        .96893E-05   -.29511E-04
   4  Prefactor     1.0147        1.2509       -.17256E-05   -.21424E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.44089e-10
  Index      = 0.275885
  Normalizat = 0.839772
  Prefactor  = 1.01469
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   38007.74     FROM HESSE     STATUS=FAILED         9 CALLS      278 TOTAL
                     EDM=   .43E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44409E-09    133.68        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6766        1.2182       -.15454E-02   -1.9045    
   3  Normalizat    .83977        1.1774        .96893E-05   -.98610    
   4  Prefactor     1.0147        1.2509       -.17256E-05   -.92241    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.25699e-12
Minuit parameter uncertainties:
  1  0.000490301
  2  0.456776
  3  1.21651
  4  1.28973
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 38007.7385219
delta logL = 0.0

Extracting fit parameters...

4FGL J0741.0-5226
   Spectrum: PowerLaw
329    Prefactor:  4.441e-10  4.903e-04  0.000e+00  1.000e+06 ( 1.000e-16)
330        Index:  2.759e-01  4.568e-01  0.000e+00  1.000e+01 (-1.000e+00)
331        Scale:  1.530e+04  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
724    Prefactor:  1.015e+00  1.290e+00  0.000e+00  1.000e+01 ( 1.000e+00)
725        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
726        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
723   Normalization:  8.398e-01  1.217e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 115.273 -52.443

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/62569020/cmap_HighResolution_759024001_759283201_4FGL_J0741.0-5226_daily_bin2005.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.41e-03', job_status='DONE', photon_flux_upper_limit='3.30e-08', time_completed='2025-01-23 01:29:20.509583', job_id='62569020', GAL2='1.01', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1737624560.51', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='1.72' WHERE bin_id='2005' AND source_name='4FGL J0741.0-5226' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jan 23 01:29:20 PST 2025

