/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 = 7627
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0733.5-5445_daily_bin1885
RA = 113.385, Dec = -54.7593
tmin = 727920001, tmax = 728179201
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='38914331', job_status='RUN', time_executed='2024-01-29 00:10:50.618354', time_epoch_executed='1706515850.62' WHERE source_name='4FGL J0733.5-5445' and cadence='daily' and bin_id='1885'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/38914331

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/38914331/ft1_4FGL_J0733.5-5445_daily_bin1885.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/38914331/ft2_4FGL_J0733.5-5445_daily_bin1885.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/38914331/ft1_4FGL_J0733.5-5445_daily_bin1885.fits outfile=/lscratch/kocevski/38914331/ft1_filteredMKT_4FGL_J0733.5-5445_daily_bin1885.fits ra=113.385 dec=-54.7593 rad=12.0 tmin=727920001.0 tmax=728179201.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 2.47
user 2.07
sys 0.21

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/38914331/ft2_4FGL_J0733.5-5445_daily_bin1885.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/38914331/ft2_4FGL_J0733.5-5445_daily_bin1885.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/38914331/ft1_filteredMKT_4FGL_J0733.5-5445_daily_bin1885.fits evtable="EVENTS" outfile="/lscratch/kocevski/38914331/ft1_filtered_4FGL_J0733.5-5445_daily_bin1885.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.62
user 0.21
sys 0.22

Number of photons that the gtmktime cut: 1737

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/38914331/ft1_filtered_4FGL_J0733.5-5445_daily_bin1885.fits" evtable="EVENTS" scfile=/lscratch/kocevski/38914331/ft2_4FGL_J0733.5-5445_daily_bin1885.fits sctable="SC_DATA" outfile=/lscratch/kocevski/38914331/ltcube_727920001_728179201_4FGL_J0733.5-5445_daily_bin1885.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/38914331/ft2_4FGL_J0733.5-5445_daily_bin1885.fits
.....................!
real 13.40
user 12.69
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/38914331/ft1_filtered_4FGL_J0733.5-5445_daily_bin1885.fits evtable="EVENTS" scfile=/lscratch/kocevski/38914331/ft2_4FGL_J0733.5-5445_daily_bin1885.fits sctable="SC_DATA" expcube=/lscratch/kocevski/38914331/ltcube_727920001_728179201_4FGL_J0733.5-5445_daily_bin1885.fits outfile=/lscratch/kocevski/38914331/expmap_727920001_728179201_4FGL_J0733.5-5445_daily_bin1885.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/38914331/ltcube_727920001_728179201_4FGL_J0733.5-5445_daily_bin1885.fits
.....................!
real 69.84
user 65.21
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-Galaxy in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/LMC-Galaxy.fits is the correct path to the extended template.
Extended source LMC-30DorWest in ROI, make sure /sdf/group/fermi/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/LMC-30DorWest.fits is the correct path to the extended template.
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 222 point sources and 6 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 J0733.5-5445 @ 113.385 -54.7593

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/38914331/ft1_filtered_4FGL_J0733.5-5445_daily_bin1885.fits scfile=/lscratch/kocevski/38914331/ft2_4FGL_J0733.5-5445_daily_bin1885.fits outfile=/lscratch/kocevski/38914331/cmap_727920001_728179201_4FGL_J0733.5-5445_daily_bin1885.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=113.385 yref=-54.7593 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.60
user 0.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/38914331/ft1_filtered_4FGL_J0733.5-5445_daily_bin1885.fits scfile=/lscratch/kocevski/38914331/ft2_4FGL_J0733.5-5445_daily_bin1885.fits outfile=/lscratch/kocevski/38914331/cmap_HighResolution_727920001_728179201_4FGL_J0733.5-5445_daily_bin1885.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=113.385 yref=-54.7593 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.69
user 0.23
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/38914331/ft1_filtered_4FGL_J0733.5-5445_daily_bin1885.fits evtable="EVENTS" scfile=/lscratch/kocevski/38914331/ft2_4FGL_J0733.5-5445_daily_bin1885.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/38914331/Model_4FGL_J0733.5-5445_daily_bin1885.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-30DorWest
adding source LMC-Galaxy
adding source LMC-North
adding source Puppis A
adding source Vela Junior
adding source Vela X
Working on...
/lscratch/kocevski/38914331/ft1_filtered_4FGL_J0733.5-5445_daily_bin1885.fits.....................!
real 3550.51
user 3534.00
sys 1.65

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/38914331/ft1_filtered_4FGL_J0733.5-5445_daily_bin1885.fits', '/lscratch/kocevski/38914331/ft2_4FGL_J0733.5-5445_daily_bin1885.fits', expMap='/lscratch/kocevski/38914331/expmap_727920001_728179201_4FGL_J0733.5-5445_daily_bin1885.fits', expCube='/lscratch/kocevski/38914331/ltcube_727920001_728179201_4FGL_J0733.5-5445_daily_bin1885.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/38914331/Model_4FGL_J0733.5-5445_daily_bin1885.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0733.5-5445'

4FGL J0733.5-5445
   Spectrum: PowerLaw
338    Prefactor:  1.694e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
339        Index:  2.193e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
340        Scale:  1.788e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/38914331/ft1_filtered_4FGL_J0733.5-5445_daily_bin1885.fits
Spacecraft file(s): /lscratch/kocevski/38914331/ft2_4FGL_J0733.5-5445_daily_bin1885.fits
Exposure map: /lscratch/kocevski/38914331/expmap_727920001_728179201_4FGL_J0733.5-5445_daily_bin1885.fits
Exposure cube: /lscratch/kocevski/38914331/ltcube_727920001_728179201_4FGL_J0733.5-5445_daily_bin1885.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/38914331/Model_4FGL_J0733.5-5445_daily_bin1885.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) = 16648.5048239

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .55511E-10   1.0000          .0000       .10000E+07
     2 'Prefactor '    21.815       1.0000          .0000       .10000E+07
     3 'Prefactor '    43.754       1.0000          .0000       .10000E+07
     4 'Prefactor '    .58686E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    .33457E-06   1.0000          .0000       .10000E+07
     6 'norm      '    7.3397       1.0000          .0000       .10000E+07
     7 'Prefactor '    1.6913       1.0000          .0000       .10000E+07
     8 'norm      '    29.609       1.0000          .0000       .10000E+07
     9 'norm      '    .55511E-10   1.0000          .0000       .10000E+07
    10 'Prefactor '    .11324E-07   1.0000          .0000       .10000E+07
    11 'Prefactor '    .40714E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    .10547E-08   1.0000          .0000       .10000E+07
    13 'norm      '    .52956E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .55511E-10   1.0000          .0000       .10000E+07
    15 'Prefactor '    7.9617       1.0000          .0000       .10000E+07
    16 'norm      '    10.194       1.0000          .0000       .10000E+07
    17 'Prefactor '    .55511E-10   1.0000          .0000       .10000E+07
    18 'Prefactor '    13.226       1.0000          .0000       .10000E+07
    19 'norm      '     .0000       1.0000          .0000       .10000E+07
    20 'Normalizat'    .99597       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .95405       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   16648.49     FROM MIGRAD    STATUS=CONVERGED    150 CALLS     1996 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.1227       -.46916E-06** at limit **
   2  Prefactor     21.815        15.516       -.33841E-05   -.12339E-02
   3  Prefactor     43.747        1.1011        .68239E-07   -.17584E-01
   4  Prefactor     .74440E-07    16.848       -.15263E-05** at limit **
   5  Prefactor     .35527E-08    34.462        .17927E-05** at limit **
   6  norm          7.3401        7.9449        .44462E-06    .56181E-02
   7  Prefactor     1.6905        9.1350       -.30176E-06   -.37056E-02
   8  norm          29.609        5.8482       -.77336E-06   -.55045E-01
   9  norm          .48850E-08    3.0648       -.75625E-06** at limit **
  10  Prefactor      .0000        4.1919        .36400E-07** at limit **
  11  Prefactor     .55511E-09    86.932       -.41025E-06** at limit **
  12  Prefactor     .29454E-06    7.5587        .54434E-06** at limit **
  13  norm          .17503E-06    15.082        .32284E-05** at limit **
  14  Prefactor     .24425E-08    3.1172        .76113E-06** at limit **
  15  Prefactor     7.9619        5.4184       -.22905E-06    .20037E-02
  16  norm          10.195        6.7221       -.13788E-06   -.75873E-04
  17  Prefactor     .12323E-07    2.3796        .19492E-05** at limit **
  18  Prefactor     13.225        1.1744       -.14634E-06   -.37846E-02
  19  norm           .0000        .68582       -.29728E-07** at limit **
  20  Normalizat    .99594        .20807        .16709E-04    .54312E-05
  21  Prefactor     .95407        .54962E-01   -.14576E-05    .18782E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 21.8151
  Prefactor  = 43.7475
  Prefactor  = 7.44405e-08
  Prefactor  = 3.55271e-09
  norm       = 7.34008
  Prefactor  = 1.69052
  norm       = 29.6088
  norm       = 4.88498e-09
  Prefactor  = 0
  Prefactor  = 5.55112e-10
  Prefactor  = 2.94542e-07
  norm       = 1.75027e-07
  Prefactor  = 2.44249e-09
  Prefactor  = 7.96189
  norm       = 10.1948
  Prefactor  = 1.23235e-08
  Prefactor  = 13.2246
  norm       = 0
  Normalizat = 0.995938
  Prefactor  = 0.954067
 **********
 **   18 **HESSE 
 **********

 FCN=   16648.49     FROM HESSE     STATUS=OK           359 CALLS     2355 TOTAL
                     EDM=   .79E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.1196        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     21.815        15.581        .21416E-03   -1.5615    
   3  Prefactor     43.747        116.20        .15119E-03   -1.5576    
   4  Prefactor     .74440E-07    19.570        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .35527E-08    34.473        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          7.3401        8.0532        .36998E-03   -1.5654    
   7  Prefactor     1.6905        9.5689        .80909E-03   -1.5682    
   8  norm          29.609        8.1447        .18380E-03   -1.5599    
   9  norm          .48850E-08    3.4340        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        4.1791        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-09    86.861        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .29454E-06    17.571        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .17503E-06    20.088        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .24425E-08    3.2930        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.9619        5.4265        .35511E-03   -1.5652    
  16  norm          10.195        6.7565        .31358E-03   -1.5644    
  17  Prefactor     .12323E-07    3.3537        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.225        13.881        .27517E-03   -1.5635    
  19  norm           .0000        .68557        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .99594        .20363        .12023       -.93167    
  21  Prefactor     .95407        .52551E-01    .34053E-01   -.94277    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.92255e-07
Minuit parameter uncertainties:
  1  3.68087e-06
  2  15.5807
  3  116.201
  4  0.00241439
  5  0.000700858
  6  8.0532
  7  8.044
  8  8.1447
  9  0.000258315
  10  7.75473e-06
  11  0.000442892
  12  0.00454983
  13  0.00375008
  14  0.000178414
  15  5.4265
  16  6.75655
  17  0.000406522
  18  13.8807
  19  4.98117e-07
  20  0.203792
  21  0.0525536
Done.

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

Extracting fit parameters...

4FGL J0733.5-5445
   Spectrum: PowerLaw
338    Prefactor:  0.000e+00  7.755e-06  0.000e+00  1.000e+06 ( 1.000e-13)
339        Index:  2.193e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
340        Scale:  1.788e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
736    Prefactor:  9.541e-01  5.255e-02  0.000e+00  1.000e+01 ( 1.000e+00)
737        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
738        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
735   Normalization:  9.959e-01  2.038e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 113.385 -54.759
Photon Flux Upper Limit: 5.49748926014e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00418641558338 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/38914331/likelihoodResults_727920001_728179201_4FGL_J0733.5-5445_daily_bin1885.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): 0
logL (Free Index) = 16648.611237
delta logL = -0.124073199047

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 16648.4871653
delta logL = -1.4905599528e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   16648.49     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      218 TOTAL
                     EDM=   .31E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.8099        .42118E-03** at limit **
   2  Index         2.5463        1.6222       -.45152E-05     .0000    
   3  Normalizat    .99594        1.3258       -.43227E-05   -.11256E-04
   4  Prefactor     .95407        1.2961        .29330E-05   -.71877E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.54632
  Normalizat = 0.995938
  Prefactor  = 0.954067
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   16648.49     FROM HESSE     STATUS=FAILED         9 CALLS      227 TOTAL
                     EDM=   .31E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.8099        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .73180        1.9910       -.45152E-05   -.51293    
   3  Normalizat    .99594        1.3258       -.43227E-05   -.93167    
   4  Prefactor     .95407        1.2961        .29330E-05   -.94277    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.128e-12
Minuit parameter uncertainties:
  1  1.21978e-05
  2  1.66222
  3  1.37393
  4  1.3423
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) = 16648.4871638
delta logL = 0.0

Extracting fit parameters...

4FGL J0733.5-5445
   Spectrum: PowerLaw
338    Prefactor:  0.000e+00  1.220e-05  0.000e+00  1.000e+06 ( 1.000e-13)
339        Index:  2.546e+00  1.662e+00  0.000e+00  1.000e+01 (-1.000e+00)
340        Scale:  1.788e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
736    Prefactor:  9.541e-01  1.342e+00  0.000e+00  1.000e+01 ( 1.000e+00)
737        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
738        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
735   Normalization:  9.959e-01  1.374e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 113.385 -54.759

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/38914331/cmap_HighResolution_727920001_728179201_4FGL_J0733.5-5445_daily_bin1885.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.19e-03', job_status='DONE', photon_flux_upper_limit='5.50e-08', time_completed='2024-01-29 01:21:48.981992', job_id='38914331', GAL2='0.95', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1706520108.98', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1885' AND source_name='4FGL J0733.5-5445' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jan 29 01:21:49 PST 2024

