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


Performing analysis on: 4FGL_J1045.8-2928_daily_bin1584
RA = 161.468, Dec = -29.4795
tmin = 649900801, tmax = 650160001
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='128383', job_status='RUN', time_executed='2021-09-02 11:42:19.095877', time_epoch_executed='1630608139.1' WHERE source_name='4FGL J1045.8-2928' and cadence='daily' and bin_id='1584'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/128383

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/128383/ft1_4FGL_J1045.8-2928_daily_bin1584.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/128383/ft2_4FGL_J1045.8-2928_daily_bin1584.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/128383/ft1_4FGL_J1045.8-2928_daily_bin1584.fits outfile=/scratch/kocevski/128383/ft1_filteredMKT_4FGL_J1045.8-2928_daily_bin1584.fits ra=161.468 dec=-29.4795 rad=12.0 tmin=649900801.0 tmax=650160001.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.21
user 4.88
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/128383/ft1_filtered_4FGL_J1045.8-2928_daily_bin1584.fits" evtable="EVENTS" scfile=/scratch/kocevski/128383/ft2_4FGL_J1045.8-2928_daily_bin1584.fits sctable="SC_DATA" outfile=/scratch/kocevski/128383/ltcube_649900801_650160001_4FGL_J1045.8-2928_daily_bin1584.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/128383/ft2_4FGL_J1045.8-2928_daily_bin1584.fits
.....................!
real 17.67
user 17.18
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/128383/ft1_filtered_4FGL_J1045.8-2928_daily_bin1584.fits evtable="EVENTS" scfile=/scratch/kocevski/128383/ft2_4FGL_J1045.8-2928_daily_bin1584.fits sctable="SC_DATA" expcube=/scratch/kocevski/128383/ltcube_649900801_650160001_4FGL_J1045.8-2928_daily_bin1584.fits outfile=/scratch/kocevski/128383/expmap_649900801_650160001_4FGL_J1045.8-2928_daily_bin1584.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/128383/ltcube_649900801_650160001_4FGL_J1045.8-2928_daily_bin1584.fits
.....................!
real 193.83
user 189.02
sys 4.18

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/128383/ft1_filtered_4FGL_J1045.8-2928_daily_bin1584.fits scfile=/scratch/kocevski/128383/ft2_4FGL_J1045.8-2928_daily_bin1584.fits outfile=/scratch/kocevski/128383/cmap_649900801_650160001_4FGL_J1045.8-2928_daily_bin1584.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.58
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/128383/ft1_filtered_4FGL_J1045.8-2928_daily_bin1584.fits scfile=/scratch/kocevski/128383/ft2_4FGL_J1045.8-2928_daily_bin1584.fits outfile=/scratch/kocevski/128383/cmap_HighResolution_649900801_650160001_4FGL_J1045.8-2928_daily_bin1584.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.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/128383/ft1_filtered_4FGL_J1045.8-2928_daily_bin1584.fits evtable="EVENTS" scfile=/scratch/kocevski/128383/ft2_4FGL_J1045.8-2928_daily_bin1584.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/128383/Model_4FGL_J1045.8-2928_daily_bin1584.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/128383/ft1_filtered_4FGL_J1045.8-2928_daily_bin1584.fits.....................!
real 84.36
user 82.25
sys 1.33

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8387       1.0000         .10000E-03   10000.    
     2 'norm      '    8.7052       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.153       1.0000         .10000E-03   10000.    
     9 'norm      '    1.2053       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.0865       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.4099       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .17021       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.5018       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.440       1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.185       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2859       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .87147       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=   8385.373     FROM MIGRAD    STATUS=CONVERGED    413 CALLS     1816 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8375        1.7783        .76824E-07   -.85852E-04
   2  norm          8.7028        7.4989        .85276E-07   -.29188E-04
   3  Prefactor     .10000E-03    11.904        .13261E-07** at limit **
   4  Prefactor     .10000E-03    3.5612        .64424E-07** at limit **
   5  norm          .10000E-03    3.4908        .38928E-07** at limit **
   6  norm          .10000E-03    2.7510        .80586E-07** at limit **
   7  Prefactor     .10000E-03    8.5621       -.66789E-06** at limit **
   8  Prefactor     17.157        19.669       -.14143E-05   -.89501E-04
   9  norm          1.2006        4.3050        .21741E-05   -.23652E-03
  10  Prefactor     .10000E-03    22.780       -.96726E-06** at limit **
  11  Prefactor     7.0868        5.1712       -.26756E-07   -.12191E-03
  12  Prefactor     3.4023        10.236        .11906E-05   -.72723E-05
  13  Prefactor     .93611E-01    2.1456        .82623E-06   -.83692E-03
  14  Prefactor     5.4961        8.1220        .44181E-05   -.67747E-03
  15  Prefactor     .10000E-03    35.848       -.42940E-06** at limit **
  16  Prefactor     .10000E-03    8.6866        .54948E-06** at limit **
  17  Prefactor     10.436        8.8335        .18227E-06   -.41332E-04
  18  Prefactor     18.153        32.663       -.91120E-05   -.40831E-03
  19  Normalizat    1.2868        .20551       -.16786E-05   -.18579E-03
  20  Prefactor     .87123        .99115E-01    .10556E-06   -.37353E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.83755
  norm       = 8.7028
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.1574
  norm       = 1.20059
  Prefactor  = 0.0001
  Prefactor  = 7.08676
  Prefactor  = 3.40228
  Prefactor  = 0.0936107
  Prefactor  = 5.49606
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.4359
  Prefactor  = 18.1534
  Normalizat = 1.2868
  Prefactor  = 0.871232
 **********
 **   18 **HESSE 
 **********

 FCN=   8385.373     FROM HESSE     STATUS=OK           293 CALLS     2109 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8375        1.7793        .93218E-04   -1.5371    
   2  norm          8.7028        7.5013        .13586E-03   -1.5118    
   3  Prefactor     .10000E-03    11.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.5631        .16877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.5051        .16707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.7636        .14831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.6081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.157        19.196        .96706E-04   -1.4879    
   9  norm          1.2006        4.1933        .29247E-03   -1.5489    
  10  Prefactor     .10000E-03    23.448        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.0868        5.0983        .14708E-03   -1.5175    
  12  Prefactor     3.4023        10.156        .21908E-03   -1.5339    
  13  Prefactor     .93611E-01    41.112        .25063E-02   -1.5647    
  14  Prefactor     5.4961        8.4235        .85648E-03   -1.5239    
  15  Prefactor     .10000E-03    35.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.6978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.436        8.8467        .12400E-03   -1.5062    
  18  Prefactor     18.153        34.967        .93920E-04   -1.4856    
  19  Normalizat    1.2868        .24657        .30629E-03   -.83961    
  20  Prefactor     .87123        .11862        .18333E-03   -.97154    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19179e-08
Minuit parameter uncertainties:
  1  1.77936
  2  7.50207
  3  7.08488e-08
  4  3.24689e-06
  5  8.68922e-07
  6  2.22406e-06
  7  6.02629e-05
  8  19.2031
  9  4.19429
  10  0.000132495
  11  5.09857
  12  10.1612
  13  3.92415
  14  8.42529
  15  8.04726e-05
  16  4.81338e-05
  17  8.84779
  18  35.0069
  19  0.246795
  20  0.118658
Done.

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

Extracting fit parameters...

4FGL J1045.8-2928
   Spectrum: PowerLaw
294    Prefactor:  7.087e+00  5.099e+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:  8.712e-01  1.187e-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.287e+00  2.468e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.34
Ra Dec: 161.468 -29.480
Photon Index (Fixed Index): 2.54 +/- 0.00
Photon Flux (Fixed Index): 7.94e-08 +/- 5.71e-08
Energy Flux (Fixed Index): 2.20e-05 +/- 1.58e-05

TS (Fixed Index): 3.34
Ra Dec: 161.468 -29.480
Photon Flux Upper Limit: 1.78e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.39e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/128383/likelihoodResults_649900801_650160001_4FGL_J1045.8-2928_daily_bin1584.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) = 8385.27557132
delta logL = 0.0970177831423

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8385.26806613
delta logL = 0.10452297538

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.5680       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2114       1.0000          .0000       10.000    
     3 'Normalizat'    1.3097       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86357       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=   8385.268     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      275 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.5682        5.7459        .13695E-03   -.82750E-03
   2  Index         2.2116        .66041        .98415E-02   -.13015E-03
   3  Normalizat    1.3097        .23575        .30406E-03    .63488E-04
   4  Prefactor     .86359        .11685        .18404E-03    .14096E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.56823
  Index      = 2.21158
  Normalizat = 1.30968
  Prefactor  = 0.863587
 **********
 **   18 **HESSE 
 **********

 FCN=   8385.268     FROM HESSE     STATUS=OK            23 CALLS      298 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.5682        5.6689        .54779E-05   -1.5122    
   2  Index         2.2116        .65082        .39366E-03   -.59159    
   3  Normalizat    1.3097        .23581        .12162E-04   -.83278    
   4  Prefactor     .86359        .11689        .73617E-05   -.97425    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.20451e-10
Minuit parameter uncertainties:
  1  5.66929
  2  0.653514
  3  0.236002
  4  0.116921
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/128383': 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) = 8385.26806601
delta logL = 0.104523094404

Extracting fit parameters...

4FGL J1045.8-2928
   Spectrum: PowerLaw
294    Prefactor:  8.568e+00  5.669e+00  1.000e-04  1.000e+04 ( 1.000e-12)
295        Index:  2.212e+00  6.535e-01  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.636e-01  1.169e-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.310e+00  2.360e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.56
Ra Dec: 161.468 -29.480
Photon Index (Free Index): 2.21 +/- 0.65
Photon Flux (Free Index): 6.24e-08 +/- 5.83e-08
Energy Flux (Free Index): 2.74e-05 +/- 2.28e-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/128383/cmap_HighResolution_649900801_650160001_4FGL_J1045.8-2928_daily_bin1584.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.39e-02', comment='SUCCESS', photon_flux='7.94e-08', energy_flux2='2.74e-05', photon_flux_error='5.71e-08', dlogl='1.05e-01', energy_flux='2.20e-05', photon_flux2='6.24e-08', job_status='DONE', time_completed='2021-09-02 11:54:58.055881', photon_index_error2='0.65', photon_index2='2.21', ts='3.34', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.78e-07', energy_flux_error2='2.28e-05', EG='1.29', time_epoch_completed='1630608898.06', return_code='0', job_id='128383', GAL2='0.86', EG2='1.31', return_code2='0', energy_flux_error='1.58e-05', photon_flux_error2='5.83e-08', ts2='3.56', photon_index='2.54' WHERE bin_id='1584' AND source_name='4FGL J1045.8-2928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 11:54:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0158>
Subject: Job 128383: <4FGL_J1045.8-2928_daily_bin1584> in cluster <slac> Done

Job <4FGL_J1045.8-2928_daily_bin1584> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  2 11:41:39 2021
Job was executed on host(s) <bullet0158>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 11:41:42 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:41:42 2021
Terminated at Thu Sep  2 11:54:59 2021
Results reported at Thu Sep  2 11:54:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1045.8-2928_daily_bin1584 161.468 -29.4795 649900801 650160001 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 :                                   743.52 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             356.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            800 sec.

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

