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


Performing analysis on: 4FGL_J1045.8-2928_daily_bin1420
RA = 161.468, Dec = -29.4795
tmin = 607392001, tmax = 607651201
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='126566', job_status='RUN', time_executed='2021-09-02 11:40:02.879609', time_epoch_executed='1630608002.88' WHERE source_name='4FGL J1045.8-2928' and cadence='daily' and bin_id='1420'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/126566

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/126566/ft1_4FGL_J1045.8-2928_daily_bin1420.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/126566/ft2_4FGL_J1045.8-2928_daily_bin1420.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/126566/ft1_4FGL_J1045.8-2928_daily_bin1420.fits outfile=/scratch/kocevski/126566/ft1_filteredMKT_4FGL_J1045.8-2928_daily_bin1420.fits ra=161.468 dec=-29.4795 rad=12.0 tmin=607392001.0 tmax=607651201.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.39
user 5.03
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/126566/ft1_filtered_4FGL_J1045.8-2928_daily_bin1420.fits" evtable="EVENTS" scfile=/scratch/kocevski/126566/ft2_4FGL_J1045.8-2928_daily_bin1420.fits sctable="SC_DATA" outfile=/scratch/kocevski/126566/ltcube_607392001_607651201_4FGL_J1045.8-2928_daily_bin1420.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/126566/ft2_4FGL_J1045.8-2928_daily_bin1420.fits
.....................!
real 18.01
user 17.31
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/126566/ft1_filtered_4FGL_J1045.8-2928_daily_bin1420.fits evtable="EVENTS" scfile=/scratch/kocevski/126566/ft2_4FGL_J1045.8-2928_daily_bin1420.fits sctable="SC_DATA" expcube=/scratch/kocevski/126566/ltcube_607392001_607651201_4FGL_J1045.8-2928_daily_bin1420.fits outfile=/scratch/kocevski/126566/expmap_607392001_607651201_4FGL_J1045.8-2928_daily_bin1420.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/126566/ltcube_607392001_607651201_4FGL_J1045.8-2928_daily_bin1420.fits
.....................!
real 194.83
user 187.71
sys 4.78

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/126566/ft1_filtered_4FGL_J1045.8-2928_daily_bin1420.fits scfile=/scratch/kocevski/126566/ft2_4FGL_J1045.8-2928_daily_bin1420.fits outfile=/scratch/kocevski/126566/cmap_607392001_607651201_4FGL_J1045.8-2928_daily_bin1420.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.64
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/126566/ft1_filtered_4FGL_J1045.8-2928_daily_bin1420.fits scfile=/scratch/kocevski/126566/ft2_4FGL_J1045.8-2928_daily_bin1420.fits outfile=/scratch/kocevski/126566/cmap_HighResolution_607392001_607651201_4FGL_J1045.8-2928_daily_bin1420.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.71
user 0.41
sys 0.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/126566/ft1_filtered_4FGL_J1045.8-2928_daily_bin1420.fits evtable="EVENTS" scfile=/scratch/kocevski/126566/ft2_4FGL_J1045.8-2928_daily_bin1420.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/126566/Model_4FGL_J1045.8-2928_daily_bin1420.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/126566/ft1_filtered_4FGL_J1045.8-2928_daily_bin1420.fits.....................!
real 58.62
user 56.07
sys 1.32

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.4386       1.0000         .10000E-03   10000.    
     2 'norm      '    .10164E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.4269       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.0841       1.0000         .10000E-03   10000.    
     5 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10272E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    42.634       1.0000         .10000E-03   10000.    
     9 'norm      '    5.0390       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.2122       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.3852       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.3352       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.541       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16132E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    72.546       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .77499       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2607       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=   5038.486     FROM MIGRAD    STATUS=CONVERGED    416 CALLS     2051 TOTAL
                     EDM=   .52E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.4399        3.3993        .23353E-07   -.57729E-05
   2  norm          .10000E-03    17.041        .97025E-07** at limit **
   3  Prefactor     4.3979        78.974       -.35065E-05   -.24166E-04
   4  Prefactor     8.0777        20.858        .17185E-05    .41878E-04
   5  norm          .10000E-03    26.977       -.21189E-06** at limit **
   6  norm          .10000E-03    16.121        .28586E-06** at limit **
   7  Prefactor     .10000E-03    8.4776       -.13454E-07** at limit **
   8  Prefactor     42.617        38.956       -.28008E-05   -.61380E-04
   9  norm          5.0407        5.8049        .16422E-05   -.19900E-03
  10  Prefactor     .10000E-03    9.3524       -.12637E-06** at limit **
  11  Prefactor     5.2023        8.7425       -.63684E-06    .18972E-04
  12  Prefactor     1.4033        69.225        .20903E-05   -.34426E-04
  13  Prefactor     4.3351        7.0421        .26961E-06   -.28350E-04
  14  Prefactor     14.531        19.150        .89669E-06    .46794E-04
  15  Prefactor     .10000E-03    172.18       -.72331E-06** at limit **
  16  Prefactor     .10000E-03    13.530       -.36864E-06** at limit **
  17  Prefactor     .10000E-03    10.631        .30830E-06** at limit **
  18  Prefactor     72.535        85.021       -.11670E-05   -.21121E-04
  19  Normalizat    .77386        .35445       -.21364E-06   -.18025E-04
  20  Prefactor     1.2611        .16655       -.49758E-06   -.67687E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 9.43986
  norm       = 0.0001
  Prefactor  = 4.39792
  Prefactor  = 8.07773
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.6173
  norm       = 5.04074
  Prefactor  = 0.0001
  Prefactor  = 5.20234
  Prefactor  = 1.40327
  Prefactor  = 4.33507
  Prefactor  = 14.5309
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 72.535
  Normalizat = 0.773863
  Prefactor  = 1.26108
 **********
 **   18 **HESSE 
 **********

 FCN=   5038.486     FROM HESSE     STATUS=OK           289 CALLS     2340 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.4399        3.3988        .75864E-04   -1.5093    
   2  norm          .10000E-03    17.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.3979        80.541        .19140E-03   -1.5289    
   4  Prefactor     8.0777        20.965        .14101E-03   -1.5139    
   5  norm          .10000E-03    27.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    16.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.4858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     42.617        38.856        .61396E-04   -1.4401    
   9  norm          5.0407        5.8203        .80321E-03   -1.5259    
  10  Prefactor     .10000E-03    9.3645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.2023        8.6077        .17607E-03   -1.5252    
  12  Prefactor     1.4033        70.550        .36954E-03   -1.5471    
  13  Prefactor     4.3351        7.0325        .19346E-03   -1.5292    
  14  Prefactor     14.531        19.203        .10504E-03   -1.4945    
  15  Prefactor     .10000E-03    172.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     72.535        85.380        .47135E-04   -1.4003    
  19  Normalizat    .77386        .38762        .46409E-03   -1.0105    
  20  Prefactor     1.2611        .18558        .18211E-03   -.84472    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10379e-10
Minuit parameter uncertainties:
  1  3.39888
  2  1.28971e-05
  3  37.6998
  4  20.984
  5  1.64553e-05
  6  6.53381e-05
  7  1.76675e-06
  8  38.8791
  9  5.82091
  10  5.09984e-06
  11  8.60973
  12  19.9241
  13  7.03381
  14  19.2111
  15  0.000161692
  16  1.9966e-05
  17  1.57425e-05
  18  85.5246
  19  0.38901
  20  0.185673
Done.

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

Extracting fit parameters...

4FGL J1045.8-2928
   Spectrum: PowerLaw
294    Prefactor:  5.202e+00  8.610e+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.261e+00  1.857e-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:  7.739e-01  3.890e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/126566/likelihoodResults_607392001_607651201_4FGL_J1045.8-2928_daily_bin1420.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) = 5038.48545018
delta logL = 0.000802204299362

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5038.48530431
delta logL = 0.000948078373767

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3027       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4972       1.0000          .0000       10.000    
     3 'Normalizat'    .77675       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2603       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=   5038.485     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      226 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3180        291.76        .43634E-02    .19525E-03
   2  Index         2.4991        5.8239        .23545        .27887E-04
   3  Normalizat    .77643        .11314        .10454        .23955E-04
   4  Prefactor     1.2603        .49704E-01    .33339E-01   -.61535E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.31798
  Index      = 2.49913
  Normalizat = 0.776426
  Prefactor  = 1.26028
 **********
 **   18 **HESSE 
 **********

 FCN=   5038.485     FROM HESSE     STATUS=OK            33 CALLS      259 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3180        8.2034        .17454E-03   -1.5247    
   2  Index         2.4991        1.0401        .10675E-01   -.52380    
   3  Normalizat    .77643        .37737        .46339E-03   -1.0095    
   4  Prefactor     1.2603        .18347        .18216E-03   -.84496    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65863e-12
Minuit parameter uncertainties:
  1  8.2051
  2  1.0504
  3  0.378652
  4  0.183567
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/126566': 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) = 5038.48529775
delta logL = 0.000954639408519

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
586    Prefactor:  1.260e+00  1.836e-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:  7.764e-01  3.787e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.62
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/126566/cmap_HighResolution_607392001_607651201_4FGL_J1045.8-2928_daily_bin1420.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.94e-02', job_status='DONE', photon_flux_upper_limit='2.48e-07', time_completed='2021-09-02 11:50:27.562018', job_id='126566', GAL2='1.26', fit_tolerance='1e-08', EG2='0.78', EG='0.77', time_epoch_completed='1630608627.56', return_code2='0', ts='0.62', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='9.55e-04', ts2='0.63', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='1420' AND source_name='4FGL J1045.8-2928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 11:50:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 126566: <4FGL_J1045.8-2928_daily_bin1420> in cluster <slac> Done

Job <4FGL_J1045.8-2928_daily_bin1420> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep  2 11:36:08 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 11:36:09 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:36:09 2021
Terminated at Thu Sep  2 11:50:28 2021
Results reported at Thu Sep  2 11:50:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1045.8-2928_daily_bin1420 161.468 -29.4795 607392001 607651201 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 :                                   580.12 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             250.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            860 sec.

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

