/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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)


Waiting 179 seconds before starting...
Proceeding.

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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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 = 7375
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1045.8-2928_daily_bin1331
RA = 161.468, Dec = -29.4795
tmin = 584323201, tmax = 584582401
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='125141', job_status='RUN', time_executed='2021-09-02 11:35:13.716862', time_epoch_executed='1630607713.72' WHERE source_name='4FGL J1045.8-2928' and cadence='daily' and bin_id='1331'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/125141

Creating custom pfile directory:
/scratch/kocevski/125141/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=584323201.0 && nMetStart<584582401.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=584323201.0 && nMetStart<584582401.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/125141/ft1_4FGL_J1045.8-2928_daily_bin1331.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=584323201.0 && nMetStart<584582401.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/125141/ft2_4FGL_J1045.8-2928_daily_bin1331.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/125141/ft1_4FGL_J1045.8-2928_daily_bin1331.fits outfile=/scratch/kocevski/125141/ft1_filteredMKT_4FGL_J1045.8-2928_daily_bin1331.fits ra=161.468 dec=-29.4795 rad=12.0 tmin=584323201.0 tmax=584582401.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.51
user 3.28
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/125141/ft2_4FGL_J1045.8-2928_daily_bin1331.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/125141/ft2_4FGL_J1045.8-2928_daily_bin1331.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/125141/ft1_filteredMKT_4FGL_J1045.8-2928_daily_bin1331.fits evtable="EVENTS" outfile="/scratch/kocevski/125141/ft1_filtered_4FGL_J1045.8-2928_daily_bin1331.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('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.64
user 0.34
sys 0.26

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/125141/ft1_filtered_4FGL_J1045.8-2928_daily_bin1331.fits" evtable="EVENTS" scfile=/scratch/kocevski/125141/ft2_4FGL_J1045.8-2928_daily_bin1331.fits sctable="SC_DATA" outfile=/scratch/kocevski/125141/ltcube_584323201_584582401_4FGL_J1045.8-2928_daily_bin1331.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 /scratch/kocevski/125141/ft2_4FGL_J1045.8-2928_daily_bin1331.fits
.....................!
real 17.75
user 16.99
sys 0.66

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/125141/ft1_filtered_4FGL_J1045.8-2928_daily_bin1331.fits evtable="EVENTS" scfile=/scratch/kocevski/125141/ft2_4FGL_J1045.8-2928_daily_bin1331.fits sctable="SC_DATA" expcube=/scratch/kocevski/125141/ltcube_584323201_584582401_4FGL_J1045.8-2928_daily_bin1331.fits outfile=/scratch/kocevski/125141/expmap_584323201_584582401_4FGL_J1045.8-2928_daily_bin1331.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 /scratch/kocevski/125141/ltcube_584323201_584582401_4FGL_J1045.8-2928_daily_bin1331.fits
.....................!
real 192.85
user 186.46
sys 5.65

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
Added 181 point sources and 0 extended sources

Setting source of interest to:
4FGL J1045.8-2928 @ 161.468 -29.4795

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/125141/ft1_filtered_4FGL_J1045.8-2928_daily_bin1331.fits scfile=/scratch/kocevski/125141/ft2_4FGL_J1045.8-2928_daily_bin1331.fits outfile=/scratch/kocevski/125141/cmap_584323201_584582401_4FGL_J1045.8-2928_daily_bin1331.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=161.468 yref=-29.4795 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.61
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/125141/ft1_filtered_4FGL_J1045.8-2928_daily_bin1331.fits scfile=/scratch/kocevski/125141/ft2_4FGL_J1045.8-2928_daily_bin1331.fits outfile=/scratch/kocevski/125141/cmap_HighResolution_584323201_584582401_4FGL_J1045.8-2928_daily_bin1331.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=161.468 yref=-29.4795 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.58
user 0.43
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/125141/ft1_filtered_4FGL_J1045.8-2928_daily_bin1331.fits evtable="EVENTS" scfile=/scratch/kocevski/125141/ft2_4FGL_J1045.8-2928_daily_bin1331.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/125141/Model_4FGL_J1045.8-2928_daily_bin1331.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
Working on...
/scratch/kocevski/125141/ft1_filtered_4FGL_J1045.8-2928_daily_bin1331.fits.....................!
real 83.66
user 82.21
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/125141/ft1_filtered_4FGL_J1045.8-2928_daily_bin1331.fits', '/scratch/kocevski/125141/ft2_4FGL_J1045.8-2928_daily_bin1331.fits', expMap='/scratch/kocevski/125141/expmap_584323201_584582401_4FGL_J1045.8-2928_daily_bin1331.fits', expCube='/scratch/kocevski/125141/ltcube_584323201_584582401_4FGL_J1045.8-2928_daily_bin1331.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/125141/Model_4FGL_J1045.8-2928_daily_bin1331.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1045.8-2928'

4FGL J1045.8-2928
   Spectrum: PowerLaw
294    Prefactor:  1.056e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
295        Index:  2.544e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
296        Scale:  7.578e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/125141/ft1_filtered_4FGL_J1045.8-2928_daily_bin1331.fits
Spacecraft file(s): /scratch/kocevski/125141/ft2_4FGL_J1045.8-2928_daily_bin1331.fits
Exposure map: /scratch/kocevski/125141/expmap_584323201_584582401_4FGL_J1045.8-2928_daily_bin1331.fits
Exposure cube: /scratch/kocevski/125141/ltcube_584323201_584582401_4FGL_J1045.8-2928_daily_bin1331.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/125141/Model_4FGL_J1045.8-2928_daily_bin1331.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) = 8080.58843789

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.070       1.0000         .10000E-03   10000.    
     2 'norm      '    17.821       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12211E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10303E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .24556E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    4.6881       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14182E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11291E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10638E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.7181       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.3098       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.9792       1.0000         .10000E-03   10000.    
    15 'Prefactor '    33.463       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .23307E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.660       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13627E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1913       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0364       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5890E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8080.572     FROM MIGRAD    STATUS=CONVERGED    435 CALLS     2374 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.065        2.9933        .10523E-06    .66955E-03
   2  norm          17.814        10.212       -.13308E-06   -.63513E-04
   3  Prefactor     .10000E-03    18.468       -.43759E-06** at limit **
   4  Prefactor     .10000E-03    22.516       -.10397E-05** at limit **
   5  norm          .10003E-03    4.8168       -.14499E-06** at limit **
   6  norm          4.6856        7.3681       -.27286E-06   -.34448E-04
   7  Prefactor     .10198E-03    22.801       -.59532E-05** at limit **
   8  Prefactor     .10000E-03    17.977        .44926E-07** at limit **
   9  norm          .10000E-03    2.8798       -.34710E-06** at limit **
  10  Prefactor     .10000E-03    7.5040       -.18926E-06** at limit **
  11  Prefactor     9.7115        6.0592        .92460E-06    .17934E-02
  12  Prefactor     7.3053        13.185        .74955E-06    .33849E-03
  13  Prefactor     .10000E-03    1.8595        .23117E-06** at limit **
  14  Prefactor     4.9818        7.6062        .27705E-06    .18851E-03
  15  Prefactor     33.705        155.80        .25654E-05    .18684E-04
  16  Prefactor     .10000E-03    82.745       -.65360E-06** at limit **
  17  Prefactor     11.662        13.561        .12626E-05    .35005E-03
  18  Prefactor     .10000E-03    16.747       -.28675E-06** at limit **
  19  Normalizat    1.1917        .29295       -.74986E-05    .47320E-03
  20  Prefactor     1.0363        .13446        .39237E-05    .11787E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 15.0648
  norm       = 17.814
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100031
  norm       = 4.6856
  Prefactor  = 0.000101985
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.71149
  Prefactor  = 7.30532
  Prefactor  = 0.0001
  Prefactor  = 4.98183
  Prefactor  = 33.7052
  Prefactor  = 0.0001
  Prefactor  = 11.6617
  Prefactor  = 0.0001
  Normalizat = 1.19167
  Prefactor  = 1.03625
 **********
 **   18 **HESSE 
 **********

 FCN=   8080.572     FROM HESSE     STATUS=OK           297 CALLS     2671 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.065        2.9942        .66852E-04   -1.4932    
   2  norm          17.814        10.190        .94875E-04   -1.4864    
   3  Prefactor     .10000E-03    18.561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    23.270        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10003E-03    74.281        .36554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.6856        7.1421        .18586E-03   -1.5275    
   7  Prefactor     .10198E-03    109.48        .55962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    18.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    5.6398        .28145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.5260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.7115        6.0232        .12855E-03   -1.5085    
  12  Prefactor     7.3053        13.074        .14835E-03   -1.5167    
  13  Prefactor     .10000E-03    1.8732        .11979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.9818        7.6022        .18023E-03   -1.5262    
  15  Prefactor     33.705        154.86        .34636E-03   -1.4546    
  16  Prefactor     .10000E-03    83.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.662        13.583        .11732E-03   -1.5025    
  18  Prefactor     .10000E-03    16.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1917        .29503        .35853E-03   -.86861    
  20  Prefactor     1.0363        .13839        .18784E-03   -.91531    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87354e-08
Minuit parameter uncertainties:
  1  2.99419
  2  10.191
  3  6.96711e-05
  4  0.000278702
  5  0.00305481
  6  7.14335
  7  0.0295369
  8  1.9167e-05
  9  8.99464e-05
  10  6.90056e-06
  11  6.02363
  12  13.0794
  13  1.82281e-05
  14  7.60367
  15  145.118
  16  0.000316444
  17  13.5869
  18  7.62713e-05
  19  0.295438
  20  0.138435
Done.

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

Extracting fit parameters...

4FGL J1045.8-2928
   Spectrum: PowerLaw
294    Prefactor:  9.711e+00  6.024e+00  1.000e-04  1.000e+04 ( 1.000e-12)
295        Index:  2.544e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
296        Scale:  7.578e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
586    Prefactor:  1.036e+00  1.384e-01  0.000e+00  1.000e+01 ( 1.000e+00)
587        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
588        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
585   Normalization:  1.192e+00  2.954e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.59
Ra Dec: 161.468 -29.480
Photon Index (Fixed Index): 2.54 +/- 0.00
Photon Flux (Fixed Index): 1.09e-07 +/- 6.74e-08
Energy Flux (Fixed Index): 3.01e-05 +/- 1.87e-05

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) = 8079.05159401
delta logL = 1.52038041557

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8079.01220532
delta logL = 1.5597691118

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6127       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7612       1.0000          .0000       10.000    
     3 'Normalizat'    1.0679       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0803       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5890E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8079.012     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      253 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6096        15.325        .63089E-02    .48305E-03
   2  Index         3.7619        2.5216        .10440        .19045E-03
   3  Normalizat    1.0681        .88644E-01    .84842E-01    .24316E-04
   4  Prefactor     1.0802        .42384E-01    .38387E-01   -.23678E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.60964
  Index      = 3.76194
  Normalizat = 1.06809
  Prefactor  = 1.08025
 **********
 **   18 **HESSE 
 **********

 FCN=   8079.012     FROM HESSE     STATUS=OK            31 CALLS      284 TOTAL
                     EDM=   .78E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6096        7.5870        .59818E-04   -1.5385    
   2  Index         3.7619        1.7370        .41737E-02   -.25021    
   3  Normalizat    1.0681        .29427        .37566E-03   -.90783    
   4  Prefactor     1.0802        .14253        .18438E-03   -.90100    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.81413e-08
Minuit parameter uncertainties:
  1  7.58979
  2  1.7766
  3  0.294717
  4  0.142583
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/125141': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8079.0122047
delta logL = 1.55976973242

Extracting fit parameters...

4FGL J1045.8-2928
   Spectrum: PowerLaw
294    Prefactor:  2.610e+00  7.590e+00  1.000e-04  1.000e+04 ( 1.000e-12)
295        Index:  3.762e+00  1.777e+00  0.000e+00  1.000e+01 (-1.000e+00)
296        Scale:  7.578e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
586    Prefactor:  1.080e+00  1.426e-01  0.000e+00  1.000e+01 ( 1.000e+00)
587        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
588        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
585   Normalization:  1.068e+00  2.947e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.20
Ra Dec: 161.468 -29.480
Photon Index (Free Index): 3.76 +/- 1.78
Photon Flux (Free Index): 1.93e-07 +/- 8.79e-08
Energy Flux (Free Index): 3.02e-05 +/- 1.60e-05

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 /scratch/kocevski/125141/cmap_HighResolution_584323201_584582401_4FGL_J1045.8-2928_daily_bin1331.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/125141

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.09e-07', energy_flux2='3.02e-05', photon_flux_error='6.74e-08', dlogl='1.56e+00', energy_flux='3.01e-05', photon_flux2='1.93e-07', job_status='DONE', time_completed='2021-09-02 11:47:07.465007', photon_index_error2='1.78', photon_index2='3.76', ts='4.59', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='1.60e-05', EG='1.19', time_epoch_completed='1630608427.47', return_code='0', job_id='125141', GAL2='1.08', EG2='1.07', return_code2='0', energy_flux_error='1.87e-05', photon_flux_error2='8.79e-08', ts2='8.20', photon_index='2.54' WHERE bin_id='1331' AND source_name='4FGL J1045.8-2928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 11:47:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 125141: <4FGL_J1045.8-2928_daily_bin1331> in cluster <slac> Done

Job <4FGL_J1045.8-2928_daily_bin1331> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 11:31:25 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 11:32:06 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 11:32:06 2021
Terminated at Thu Sep  2 11:47:08 2021
Results reported at Thu Sep  2 11:47:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1045.8-2928_daily_bin1331 161.468 -29.4795 584323201 584582401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1045.8-2928 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   697.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             252.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            943 sec.

The output (if any) is above this job summary.

