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


Performing analysis on: 4FGL_J1045.8-2928_daily_bin1316
RA = 161.468, Dec = -29.4795
tmin = 580435201, tmax = 580694401
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='125114', job_status='RUN', time_executed='2021-09-02 11:34:46.446966', time_epoch_executed='1630607686.45' WHERE source_name='4FGL J1045.8-2928' and cadence='daily' and bin_id='1316'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/125114

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/125114/ft1_4FGL_J1045.8-2928_daily_bin1316.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/125114/ft2_4FGL_J1045.8-2928_daily_bin1316.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/125114/ft1_4FGL_J1045.8-2928_daily_bin1316.fits outfile=/scratch/kocevski/125114/ft1_filteredMKT_4FGL_J1045.8-2928_daily_bin1316.fits ra=161.468 dec=-29.4795 rad=12.0 tmin=580435201.0 tmax=580694401.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.13
user 2.87
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/125114/ft2_4FGL_J1045.8-2928_daily_bin1316.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/125114/ft1_filteredMKT_4FGL_J1045.8-2928_daily_bin1316.fits evtable="EVENTS" outfile="/scratch/kocevski/125114/ft1_filtered_4FGL_J1045.8-2928_daily_bin1316.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.53
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/125114/ft1_filtered_4FGL_J1045.8-2928_daily_bin1316.fits" evtable="EVENTS" scfile=/scratch/kocevski/125114/ft2_4FGL_J1045.8-2928_daily_bin1316.fits sctable="SC_DATA" outfile=/scratch/kocevski/125114/ltcube_580435201_580694401_4FGL_J1045.8-2928_daily_bin1316.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/125114/ft2_4FGL_J1045.8-2928_daily_bin1316.fits
.....................!
real 17.58
user 17.13
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/125114/ft1_filtered_4FGL_J1045.8-2928_daily_bin1316.fits evtable="EVENTS" scfile=/scratch/kocevski/125114/ft2_4FGL_J1045.8-2928_daily_bin1316.fits sctable="SC_DATA" expcube=/scratch/kocevski/125114/ltcube_580435201_580694401_4FGL_J1045.8-2928_daily_bin1316.fits outfile=/scratch/kocevski/125114/expmap_580435201_580694401_4FGL_J1045.8-2928_daily_bin1316.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/125114/ltcube_580435201_580694401_4FGL_J1045.8-2928_daily_bin1316.fits
.....................!
real 194.60
user 189.24
sys 4.87

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/125114/ft1_filtered_4FGL_J1045.8-2928_daily_bin1316.fits scfile=/scratch/kocevski/125114/ft2_4FGL_J1045.8-2928_daily_bin1316.fits outfile=/scratch/kocevski/125114/cmap_580435201_580694401_4FGL_J1045.8-2928_daily_bin1316.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.60
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/125114/ft1_filtered_4FGL_J1045.8-2928_daily_bin1316.fits scfile=/scratch/kocevski/125114/ft2_4FGL_J1045.8-2928_daily_bin1316.fits outfile=/scratch/kocevski/125114/cmap_HighResolution_580435201_580694401_4FGL_J1045.8-2928_daily_bin1316.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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/125114/ft1_filtered_4FGL_J1045.8-2928_daily_bin1316.fits evtable="EVENTS" scfile=/scratch/kocevski/125114/ft2_4FGL_J1045.8-2928_daily_bin1316.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/125114/Model_4FGL_J1045.8-2928_daily_bin1316.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/125114/ft1_filtered_4FGL_J1045.8-2928_daily_bin1316.fits.....................!
real 69.14
user 67.63
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/125114/ft1_filtered_4FGL_J1045.8-2928_daily_bin1316.fits', '/scratch/kocevski/125114/ft2_4FGL_J1045.8-2928_daily_bin1316.fits', expMap='/scratch/kocevski/125114/expmap_580435201_580694401_4FGL_J1045.8-2928_daily_bin1316.fits', expCube='/scratch/kocevski/125114/ltcube_580435201_580694401_4FGL_J1045.8-2928_daily_bin1316.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/125114/Model_4FGL_J1045.8-2928_daily_bin1316.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/125114/ft1_filtered_4FGL_J1045.8-2928_daily_bin1316.fits
Spacecraft file(s): /scratch/kocevski/125114/ft2_4FGL_J1045.8-2928_daily_bin1316.fits
Exposure map: /scratch/kocevski/125114/expmap_580435201_580694401_4FGL_J1045.8-2928_daily_bin1316.fits
Exposure cube: /scratch/kocevski/125114/ltcube_580435201_580694401_4FGL_J1045.8-2928_daily_bin1316.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/125114/Model_4FGL_J1045.8-2928_daily_bin1316.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) = 6638.22086569

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.6710       1.0000         .10000E-03   10000.    
     2 'norm      '    .10319E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.130       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.1039       1.0000         .10000E-03   10000.    
     5 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    15.750       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15588       1.0000         .10000E-03   10000.    
     9 'norm      '    1.4136       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.5801       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10708E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10395E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.1323       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1390       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0413       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=   6638.214     FROM MIGRAD    STATUS=CONVERGED    426 CALLS     2044 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.6709        2.4060        .49452E-07   -.44133E-04
   2  norm          .10000E-03    30.479        .21051E-04** at limit **
   3  Prefactor     20.136        28.951       -.54833E-05   -.54994E-04
   4  Prefactor     9.1038        9.5791       -.80615E-06   -.63157E-04
   5  norm          .10000E-03    6.8105       -.13536E-05** at limit **
   6  norm          15.752        9.7063        .39750E-05   -.16311E-03
   7  Prefactor     .10000E-03    8.3689        .41203E-06** at limit **
   8  Prefactor     .10014E-03    13.459       -.31984E-06** at limit **
   9  norm          1.4232        3.2270       -.29391E-06   -.79001E-03
  10  Prefactor     .10000E-03    4.1728       -.24776E-06** at limit **
  11  Prefactor     .10000E-03    2.0647        .11077E-06** at limit **
  12  Prefactor     .10000E-03    6.9488        .10155E-05** at limit **
  13  Prefactor     9.5789        6.2201       -.32856E-06   -.14013E-03
  14  Prefactor     .10000E-03    4.4856        .34860E-06** at limit **
  15  Prefactor     .10000E-03    40.390        .25808E-04** at limit **
  16  Prefactor     .10000E-03    35.121       -.28363E-04** at limit **
  17  Prefactor     7.1156        15.824        .86439E-05    .53762E-04
  18  Prefactor     .10000E-03    33.179       -.16668E-04** at limit **
  19  Normalizat    1.1392        .25926       -.95074E-06   -.12633E-03
  20  Prefactor     1.0413        .12462       -.49795E-06   -.23971E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.67093
  norm       = 0.000100002
  Prefactor  = 20.1362
  Prefactor  = 9.10382
  norm       = 0.0001
  norm       = 15.7522
  Prefactor  = 0.0001
  Prefactor  = 0.000100139
  norm       = 1.42317
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.57888
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.1156
  Prefactor  = 0.0001
  Normalizat = 1.13919
  Prefactor  = 1.04129
 **********
 **   18 **HESSE 
 **********

 FCN=   6638.214     FROM HESSE     STATUS=OK           297 CALLS     2341 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.6709        2.4103        .68216E-04   -1.5154    
   2  norm          .10000E-03    31.244        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     20.136        29.029        .89272E-04   -1.4810    
   4  Prefactor     9.1038        9.5796        .13283E-03   -1.5104    
   5  norm          .10000E-03    6.8756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          15.752        9.6803        .10092E-03   -1.4914    
   7  Prefactor     .10000E-03    8.4313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10014E-03    15.429        .87127E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.4232        3.1677        .20465E-03   -1.5469    
  10  Prefactor     .10000E-03    4.1759        .16254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.0765        .11422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.9891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.5789        6.2343        .12947E-03   -1.5089    
  14  Prefactor     .10000E-03    4.5010        .16852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    40.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    35.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.1156        15.873        .15020E-03   -1.5174    
  18  Prefactor     .10000E-03    33.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1392        .30735        .35508E-03   -.88503    
  20  Prefactor     1.0413        .14803        .18483E-03   -.91366    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.3935e-10
Minuit parameter uncertainties:
  1  2.41034
  2  0.000505008
  3  29.0489
  4  9.58121
  5  5.13574e-05
  6  9.68124
  7  1.27343e-05
  8  0.00293427
  9  3.16803
  10  3.00835e-06
  11  1.32791e-06
  12  1.30943e-06
  13  6.2347
  14  3.76775e-06
  15  3.39308e-06
  16  0.000210112
  17  15.8828
  18  2.10971e-05
  19  0.307839
  20  0.14809
Done.

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

Extracting fit parameters...

4FGL J1045.8-2928
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  1.328e-06  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.041e+00  1.481e-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.139e+00  3.078e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 161.468 -29.480
Photon Flux Upper Limit: 9.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/125114/likelihoodResults_580435201_580694401_4FGL_J1045.8-2928_daily_bin1316.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) = 6638.21647224
delta logL = -0.0022893898913

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6638.21418285
delta logL = 1.73076841747e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5355       1.0000          .0000       10.000    
     3 'Normalizat'    1.1391       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0413       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6638.214     FROM MIGRAD    STATUS=FAILED        85 CALLS      235 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10092E-03    81.803        .11459E-02** at limit **
   2  Index         2.4621        8.7689        .50000        .28089E-04
   3  Normalizat    1.1392        .40749E-01    .35508E-03    .20427E-04
   4  Prefactor     1.0413        .20515E-01    .18483E-03    .47142E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6638.214     FROM SIMPLEX   STATUS=UNCHANGED    145 CALLS      380 TOTAL
                     EDM=   .94E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10092E-03    81.803        .21119E-03** at limit **
   2  Index         2.4621        8.7689        .19265E-03    .28089E-04
   3  Normalizat    1.1392        .40749E-01    .57493E-05    .20427E-04
   4  Prefactor     1.0413        .20515E-01    .27145E-05    .47142E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6638.214     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      421 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    442.30        .22917E-03** at limit **
   2  Index         2.2296        5.3454        .50000       -.59913E-07
   3  Normalizat    1.1392        .14612        .14203E-04   -.11126E-03
   4  Prefactor     1.0413        .73501E-01    .36965E-04   -.19708E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.22957
  Normalizat = 1.13919
  Prefactor  = 1.04129
 **********
 **   18 **HESSE 
 **********

 FCN=   6638.214     FROM HESSE     STATUS=OK            29 CALLS      450 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.4070        .45835E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2296        6.7555        .50000       -.58727    
   3  Normalizat    1.1392        .29307        .28406E-05   -.88503    
   4  Prefactor     1.0413        .14767        .73930E-05   -.91366    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67974e-11
Minuit parameter uncertainties:
  1  3.06526e-07
  2  101.547
  3  0.293491
  4  0.147726
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/125114': 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) = 6638.21418147
delta logL = 1.38191262522e-06

Extracting fit parameters...

4FGL J1045.8-2928
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  3.065e-07  1.000e-04  1.000e+04 ( 1.000e-12)
295        Index:  2.230e+00  1.015e+02  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.041e+00  1.477e-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.139e+00  2.935e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 161.468 -29.480

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/125114/cmap_HighResolution_580435201_580694401_4FGL_J1045.8-2928_daily_bin1316.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.61e-03', job_status='DONE', photon_flux_upper_limit='9.75e-08', time_completed='2021-09-02 11:46:04.431442', job_id='125114', GAL2='1.04', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1630608364.43', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.38e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='1316' AND source_name='4FGL J1045.8-2928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 11:46:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 125114: <4FGL_J1045.8-2928_daily_bin1316> in cluster <slac> Done

Job <4FGL_J1045.8-2928_daily_bin1316> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 11:31:23 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 11:31:54 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:31:54 2021
Terminated at Thu Sep  2 11:46:05 2021
Results reported at Thu Sep  2 11:46:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1045.8-2928_daily_bin1316 161.468 -29.4795 580435201 580694401 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 :                                   665.16 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             252.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            882 sec.

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

