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


Performing analysis on: 4FGL_J1045.8-2928_daily_bin1352
RA = 161.468, Dec = -29.4795
tmin = 589766401, tmax = 590025601
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='125175', job_status='RUN', time_executed='2021-09-02 11:33:40.287484', time_epoch_executed='1630607620.29' WHERE source_name='4FGL J1045.8-2928' and cadence='daily' and bin_id='1352'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/125175

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/125175/ft1_4FGL_J1045.8-2928_daily_bin1352.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/125175/ft2_4FGL_J1045.8-2928_daily_bin1352.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/125175/ft1_4FGL_J1045.8-2928_daily_bin1352.fits outfile=/scratch/kocevski/125175/ft1_filteredMKT_4FGL_J1045.8-2928_daily_bin1352.fits ra=161.468 dec=-29.4795 rad=12.0 tmin=589766401.0 tmax=590025601.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 5.26
user 5.00
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/125175/ft2_4FGL_J1045.8-2928_daily_bin1352.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/125175/ft1_filteredMKT_4FGL_J1045.8-2928_daily_bin1352.fits evtable="EVENTS" outfile="/scratch/kocevski/125175/ft1_filtered_4FGL_J1045.8-2928_daily_bin1352.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.52
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/125175/ft1_filtered_4FGL_J1045.8-2928_daily_bin1352.fits" evtable="EVENTS" scfile=/scratch/kocevski/125175/ft2_4FGL_J1045.8-2928_daily_bin1352.fits sctable="SC_DATA" outfile=/scratch/kocevski/125175/ltcube_589766401_590025601_4FGL_J1045.8-2928_daily_bin1352.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/125175/ft2_4FGL_J1045.8-2928_daily_bin1352.fits
.....................!
real 13.45
user 13.09
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/125175/ft1_filtered_4FGL_J1045.8-2928_daily_bin1352.fits evtable="EVENTS" scfile=/scratch/kocevski/125175/ft2_4FGL_J1045.8-2928_daily_bin1352.fits sctable="SC_DATA" expcube=/scratch/kocevski/125175/ltcube_589766401_590025601_4FGL_J1045.8-2928_daily_bin1352.fits outfile=/scratch/kocevski/125175/expmap_589766401_590025601_4FGL_J1045.8-2928_daily_bin1352.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/125175/ltcube_589766401_590025601_4FGL_J1045.8-2928_daily_bin1352.fits
.....................!
real 192.33
user 187.67
sys 4.27

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/125175/ft1_filtered_4FGL_J1045.8-2928_daily_bin1352.fits scfile=/scratch/kocevski/125175/ft2_4FGL_J1045.8-2928_daily_bin1352.fits outfile=/scratch/kocevski/125175/cmap_589766401_590025601_4FGL_J1045.8-2928_daily_bin1352.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.55
user 0.42
sys 0.12

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/125175/ft1_filtered_4FGL_J1045.8-2928_daily_bin1352.fits evtable="EVENTS" scfile=/scratch/kocevski/125175/ft2_4FGL_J1045.8-2928_daily_bin1352.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/125175/Model_4FGL_J1045.8-2928_daily_bin1352.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/125175/ft1_filtered_4FGL_J1045.8-2928_daily_bin1352.fits.....................!
real 60.03
user 58.66
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5664       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10876E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.2614       1.0000         .10000E-03   10000.    
     6 'norm      '    .10436E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .24988E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .33296E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.8916       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13867E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.8543       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10864E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.5084       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .86510       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=   5324.488     FROM MIGRAD    STATUS=CONVERGED    436 CALLS     1767 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5668        2.9189        .17413E-06    .15890E-03
   2  norm          .10000E-03    5.7892        .15820E-06** at limit **
   3  Prefactor     .10000E-03    15.703        .45320E-06** at limit **
   4  Prefactor     .10000E-03    20.438       -.34895E-06** at limit **
   5  norm          6.2717        9.1447        .16612E-07   -.15197E-03
   6  norm          .10000E-03    5.5414       -.24909E-06** at limit **
   7  Prefactor     .10003E-03    22.957        .47324E-05** at limit **
   8  Prefactor     .10006E-03    18.752        .11683E-05** at limit **
   9  norm          .10001E-03    5.5095        .90606E-05** at limit **
  10  Prefactor     4.0188        39.867       -.63485E-05   -.93807E-04
  11  Prefactor     .10000E-03    2.5665        .75063E-07** at limit **
  12  Prefactor     .10007E-03    24.237       -.22246E-04** at limit **
  13  Prefactor     1.8587        4.3693        .76976E-05    .69791E-03
  14  Prefactor     .10000E-03    5.7973       -.57476E-06** at limit **
  15  Prefactor     .10000E-03    73.279       -.28585E-05** at limit **
  16  Prefactor     .10000E-03    11.430       -.13439E-06** at limit **
  17  Prefactor     .10000E-03    7.3760       -.15473E-06** at limit **
  18  Prefactor     .10000E-03    22.110        .54175E-06** at limit **
  19  Normalizat    1.5081        .27699       -.31694E-05   -.23677E-03
  20  Prefactor     .86522        .12815        .10831E-05   -.36088E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.5668
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.27171
  norm       = 0.0001
  Prefactor  = 0.000100034
  Prefactor  = 0.000100062
  norm       = 0.000100012
  Prefactor  = 4.01876
  Prefactor  = 0.0001
  Prefactor  = 0.000100073
  Prefactor  = 1.85866
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.50812
  Prefactor  = 0.865224
 **********
 **   18 **HESSE 
 **********

 FCN=   5324.488     FROM HESSE     STATUS=OK           287 CALLS     2054 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5668        2.9222        .95814E-04   -1.5281    
   2  norm          .10000E-03    5.7987        .17138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    20.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.2717        9.1305        .16042E-03   -1.5207    
   6  norm          .10000E-03    5.5712        .16771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10003E-03    23.684        .21465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10006E-03    99.347        .56942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10001E-03    18.587        .22938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.0188        40.065        .20453E-03   -1.5307    
  11  Prefactor     .10000E-03    2.5884        .11401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10007E-03    52.555        .40019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.8587        5.5771        .14389E-02   -1.5435    
  14  Prefactor     .10000E-03    5.8269        .17159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    73.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.4213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    22.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.5081        .33049        .31165E-03   -.77550    
  20  Prefactor     .86522        .15543        .18934E-03   -.97367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.62883e-09
Minuit parameter uncertainties:
  1  2.92231
  2  8.23866e-05
  3  0.000146913
  4  2.61745e-05
  5  9.13257
  6  3.76227e-05
  7  0.00178317
  8  0.00495377
  9  0.000947129
  10  25.3997
  11  1.44638e-05
  12  0.00391329
  13  5.57862
  14  4.8604e-06
  15  0.00106429
  16  3.24409e-06
  17  3.66353e-05
  18  0.000217197
  19  0.33097
  20  0.155509
Done.

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

Extracting fit parameters...

4FGL J1045.8-2928
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  1.446e-05  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:  8.652e-01  1.555e-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.508e+00  3.310e-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: 1.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/125175/likelihoodResults_589766401_590025601_4FGL_J1045.8-2928_daily_bin1352.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) = 5324.48995433
delta logL = -0.00183734140501

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5324.48811704
delta logL = -4.70145096187e-08

Fit tolerance = 1e-08

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

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

 FCN=   5324.488     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      238 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    81.043        .11404E-02** at limit **
   2  Index         2.5265        6.2126        .50000        .60498E-05
   3  Normalizat    1.5081        .40326E-01    .31166E-03   -.41512E-04
   4  Prefactor     .86522        .19322E-01    .18934E-03   -.52899E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100048
  Index      = 2.52651
  Normalizat = 1.50812
  Prefactor  = 0.865222
 **********
 **   18 **HESSE 
 **********

 FCN=   5324.488     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      267 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    317.30        .22808E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5265        6.1764        .50000       -.51749    
   3  Normalizat    1.5081        .93213E-01    .12466E-04   -.77550    
   4  Prefactor     .86522        .44636E-01    .75736E-05   -.97367    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.25129e-09
Minuit parameter uncertainties:
  1  0.00785218
  2  1095.53
  3  0.0932236
  4  0.0446379
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/125175': 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): 102
logL (Free Index) = 5324.48811697
delta logL = 1.84672899195e-08

Extracting fit parameters...

4FGL J1045.8-2928
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  7.852e-03  1.000e-04  1.000e+04 ( 1.000e-12)
295        Index:  2.527e+00  1.096e+03  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:  8.652e-01  4.464e-02  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.508e+00  9.322e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/125175/cmap_HighResolution_589766401_590025601_4FGL_J1045.8-2928_daily_bin1352.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.55e-03', job_status='DONE', photon_flux_upper_limit='1.10e-07', time_completed='2021-09-02 11:43:34.364205', job_id='125175', GAL2='0.87', fit_tolerance='1e-08', EG2='1.51', EG='1.51', time_epoch_completed='1630608214.36', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.85e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='1352' AND source_name='4FGL J1045.8-2928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 11:43:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 125175: <4FGL_J1045.8-2928_daily_bin1352> in cluster <slac> Done

Job <4FGL_J1045.8-2928_daily_bin1352> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 11:31:27 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 11:32:16 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:16 2021
Terminated at Thu Sep  2 11:43:35 2021
Results reported at Thu Sep  2 11:43:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1045.8-2928_daily_bin1352 161.468 -29.4795 589766401 590025601 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 :                                   568.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   678 sec.
    Turnaround time :                            728 sec.

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

