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


Performing analysis on: 4FGL_J1045.8-2928_daily_bin1284
RA = 161.468, Dec = -29.4795
tmin = 572140801, tmax = 572400001
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='125057', job_status='RUN', time_executed='2021-09-02 11:33:23.531584', time_epoch_executed='1630607603.53' WHERE source_name='4FGL J1045.8-2928' and cadence='daily' and bin_id='1284'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/125057

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/125057/ft1_4FGL_J1045.8-2928_daily_bin1284.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/125057/ft2_4FGL_J1045.8-2928_daily_bin1284.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/125057/ft1_4FGL_J1045.8-2928_daily_bin1284.fits outfile=/scratch/kocevski/125057/ft1_filteredMKT_4FGL_J1045.8-2928_daily_bin1284.fits ra=161.468 dec=-29.4795 rad=12.0 tmin=572140801.0 tmax=572400001.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.35
user 3.08
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/125057/ft1_filtered_4FGL_J1045.8-2928_daily_bin1284.fits" evtable="EVENTS" scfile=/scratch/kocevski/125057/ft2_4FGL_J1045.8-2928_daily_bin1284.fits sctable="SC_DATA" outfile=/scratch/kocevski/125057/ltcube_572140801_572400001_4FGL_J1045.8-2928_daily_bin1284.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/125057/ft2_4FGL_J1045.8-2928_daily_bin1284.fits
.....................!
real 17.00
user 16.63
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/125057/ft1_filtered_4FGL_J1045.8-2928_daily_bin1284.fits evtable="EVENTS" scfile=/scratch/kocevski/125057/ft2_4FGL_J1045.8-2928_daily_bin1284.fits sctable="SC_DATA" expcube=/scratch/kocevski/125057/ltcube_572140801_572400001_4FGL_J1045.8-2928_daily_bin1284.fits outfile=/scratch/kocevski/125057/expmap_572140801_572400001_4FGL_J1045.8-2928_daily_bin1284.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/125057/ltcube_572140801_572400001_4FGL_J1045.8-2928_daily_bin1284.fits
.....................!
real 191.85
user 186.63
sys 4.70

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/125057/ft1_filtered_4FGL_J1045.8-2928_daily_bin1284.fits scfile=/scratch/kocevski/125057/ft2_4FGL_J1045.8-2928_daily_bin1284.fits outfile=/scratch/kocevski/125057/cmap_572140801_572400001_4FGL_J1045.8-2928_daily_bin1284.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.39
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.219       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.7955       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.4163       1.0000         .10000E-03   10000.    
     8 'Prefactor '    35.282       1.0000         .10000E-03   10000.    
     9 'norm      '    .78773       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.766       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.0542       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.157       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16580E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    89.926       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .88096       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0186       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=   10008.55     FROM MIGRAD    STATUS=CONVERGED    421 CALLS     2084 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .78574        .14175E-06** at limit **
   2  norm          .10000E-03    8.7586        .16477E-05** at limit **
   3  Prefactor     19.215        23.416       -.18742E-05   -.23682E-04
   4  Prefactor     .10000E-03    3.9114        .18673E-07** at limit **
   5  norm          7.7948        8.9549       -.29576E-06    .47921E-04
   6  norm          .10000E-03    3.2515        .15247E-06** at limit **
   7  Prefactor     9.4245        15.305       -.19746E-05    .21204E-03
   8  Prefactor     35.306        21.572        .11397E-05    .80032E-03
   9  norm          .78310        4.3616       -.10557E-05    .10928E-02
  10  Prefactor     11.766        11.785       -.62750E-06    .69818E-04
  11  Prefactor     3.0549        3.1466       -.10389E-05    .45250E-03
  12  Prefactor     11.156        7.3025        .43422E-06    .52583E-04
  13  Prefactor     .10000E-03    2.3551        .20862E-06** at limit **
  14  Prefactor     .10000E-03    2.2991        .12660E-07** at limit **
  15  Prefactor     89.913        110.67       -.42658E-05   -.28504E-04
  16  Prefactor     .10000E-03    10.609       -.22683E-05** at limit **
  17  Prefactor     .10000E-03    9.2877        .50433E-06** at limit **
  18  Prefactor     .10000E-03    21.802        .13999E-05** at limit **
  19  Normalizat    .88086        .18905       -.17027E-05    .89154E-04
  20  Prefactor     1.0187        .91257E-01    .78143E-07   -.52823E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 19.2151
  Prefactor  = 0.0001
  norm       = 7.79483
  norm       = 0.0001
  Prefactor  = 9.42451
  Prefactor  = 35.3056
  norm       = 0.783098
  Prefactor  = 11.7663
  Prefactor  = 3.05491
  Prefactor  = 11.1559
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 89.9129
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.880858
  Prefactor  = 1.01872
 **********
 **   18 **HESSE 
 **********

 FCN=   10008.55     FROM HESSE     STATUS=OK           293 CALLS     2377 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.9900        .17213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    9.1094        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     19.215        23.425        .91361E-04   -1.4831    
   4  Prefactor     .10000E-03    3.9149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.7948        8.9239        .14362E-03   -1.5150    
   6  norm          .10000E-03    3.2810        .17603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.4245        15.324        .13060E-03   -1.5094    
   8  Prefactor     35.306        23.070        .67468E-04   -1.4519    
   9  norm          .78310        7.0979        .27296E-02   -1.5531    
  10  Prefactor     11.766        11.770        .11679E-03   -1.5022    
  11  Prefactor     3.0549        3.1248        .16321E-03   -1.5358    
  12  Prefactor     11.156        7.3357        .59972E-03   -1.5040    
  13  Prefactor     .10000E-03    6.4334        .29645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.3203        .14812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     89.913        111.28        .42373E-04   -1.3809    
  16  Prefactor     .10000E-03    10.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.4712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    21.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .88086        .21899        .35337E-03   -.97136    
  20  Prefactor     1.0187        .10740        .16925E-03   -.92108    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22302e-09
Minuit parameter uncertainties:
  1  2.362e-05
  2  4.58669e-05
  3  23.4367
  4  6.74122e-06
  5  8.92542
  6  1.27094e-05
  7  15.3305
  8  23.0762
  9  4.71566
  10  11.7721
  11  3.12494
  12  7.33628
  13  0.000238309
  14  2.90807e-06
  15  111.536
  16  4.45386e-05
  17  3.6903e-05
  18  5.50483e-05
  19  0.219216
  20  0.107421
Done.

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

Extracting fit parameters...

4FGL J1045.8-2928
   Spectrum: PowerLaw
294    Prefactor:  3.055e+00  3.125e+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.019e+00  1.074e-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:  8.809e-01  2.192e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.93
Ra Dec: 161.468 -29.480
Photon Index (Fixed Index): 2.54 +/- 0.00
Photon Flux (Fixed Index): 3.42e-08 +/- 3.50e-08
Energy Flux (Fixed Index): 9.48e-06 +/- 9.69e-06

TS (Fixed Index): 1.93
Ra Dec: 161.468 -29.480
Photon Flux Upper Limit: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/125057/likelihoodResults_572140801_572400001_4FGL_J1045.8-2928_daily_bin1284.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) = 10007.8372174
delta logL = 0.709518395593

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10007.8323812
delta logL = 0.714354546981

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3976       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7130       1.0000          .0000       10.000    
     3 'Normalizat'    .90427       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0113       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=   10007.83     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      212 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3967        3.4114        .54873E-02    .24250E-03
   2  Index         1.7124        .43865        .27756       -.77965E-04
   3  Normalizat    .90431        .17698        .78932E-01    .41453E-04
   4  Prefactor     1.0112        .90799E-01    .43150E-01    .94696E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.39673
  Index      = 1.7124
  Normalizat = 0.904309
  Prefactor  = 1.01122
 **********
 **   18 **HESSE 
 **********

 FCN=   10007.83     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3967        3.6190        .16755E-03   -1.5339    
   2  Index         1.7124        .60190        .10542E-01   -.71752    
   3  Normalizat    .90431        .20750        .34938E-03   -.96309    
   4  Prefactor     1.0112        .10675        .16980E-03   -.92357    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32704e-11
Minuit parameter uncertainties:
  1  3.61926
  2  0.60449
  3  0.207685
  4  0.106776
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/125057': 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) = 10007.8323806
delta logL = 0.714355172851

Extracting fit parameters...

4FGL J1045.8-2928
   Spectrum: PowerLaw
294    Prefactor:  3.397e+00  3.619e+00  1.000e-04  1.000e+04 ( 1.000e-12)
295        Index:  1.712e+00  6.045e-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:  1.011e+00  1.068e-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:  9.043e-01  2.077e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.37
Ra Dec: 161.468 -29.480
Photon Index (Free Index): 1.71 +/- 0.60
Photon Flux (Free Index): 1.52e-08 +/- 1.99e-08
Energy Flux (Free Index): 2.38e-05 +/- 3.26e-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/125057/cmap_HighResolution_572140801_572400001_4FGL_J1045.8-2928_daily_bin1284.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.71e-03', comment='SUCCESS', photon_flux='3.42e-08', energy_flux2='2.38e-05', photon_flux_error='3.50e-08', dlogl='7.14e-01', energy_flux='9.48e-06', photon_flux2='1.52e-08', job_status='DONE', time_completed='2021-09-02 11:47:14.099358', photon_index_error2='0.60', photon_index2='1.71', ts='1.93', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.12e-07', energy_flux_error2='3.26e-05', EG='0.88', time_epoch_completed='1630608434.1', return_code='0', job_id='125057', GAL2='1.01', EG2='0.90', return_code2='0', energy_flux_error='9.69e-06', photon_flux_error2='1.99e-08', ts2='3.37', photon_index='2.54' WHERE bin_id='1284' AND source_name='4FGL J1045.8-2928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 11:47:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 125057: <4FGL_J1045.8-2928_daily_bin1284> in cluster <slac> Done

Job <4FGL_J1045.8-2928_daily_bin1284> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  2 11:31:20 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 11:31:34 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:34 2021
Terminated at Thu Sep  2 11:47:14 2021
Results reported at Thu Sep  2 11:47:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1045.8-2928_daily_bin1284 161.468 -29.4795 572140801 572400001 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 :                                   824.05 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            954 sec.

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

