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


Performing analysis on: 4FGL_J1045.8-2928_daily_bin1358
RA = 161.468, Dec = -29.4795
tmin = 591321601, tmax = 591580801
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='125192', job_status='RUN', time_executed='2021-09-02 11:33:37.406942', time_epoch_executed='1630607617.41' WHERE source_name='4FGL J1045.8-2928' and cadence='daily' and bin_id='1358'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/125192

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/125192/ft1_4FGL_J1045.8-2928_daily_bin1358.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/125192/ft2_4FGL_J1045.8-2928_daily_bin1358.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/125192/ft1_4FGL_J1045.8-2928_daily_bin1358.fits outfile=/scratch/kocevski/125192/ft1_filteredMKT_4FGL_J1045.8-2928_daily_bin1358.fits ra=161.468 dec=-29.4795 rad=12.0 tmin=591321601.0 tmax=591580801.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.00
user 2.69
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/125192/ft1_filtered_4FGL_J1045.8-2928_daily_bin1358.fits" evtable="EVENTS" scfile=/scratch/kocevski/125192/ft2_4FGL_J1045.8-2928_daily_bin1358.fits sctable="SC_DATA" outfile=/scratch/kocevski/125192/ltcube_591321601_591580801_4FGL_J1045.8-2928_daily_bin1358.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/125192/ft2_4FGL_J1045.8-2928_daily_bin1358.fits
.....................!
real 16.04
user 15.60
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/125192/ft1_filtered_4FGL_J1045.8-2928_daily_bin1358.fits evtable="EVENTS" scfile=/scratch/kocevski/125192/ft2_4FGL_J1045.8-2928_daily_bin1358.fits sctable="SC_DATA" expcube=/scratch/kocevski/125192/ltcube_591321601_591580801_4FGL_J1045.8-2928_daily_bin1358.fits outfile=/scratch/kocevski/125192/expmap_591321601_591580801_4FGL_J1045.8-2928_daily_bin1358.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/125192/ltcube_591321601_591580801_4FGL_J1045.8-2928_daily_bin1358.fits
.....................!
real 193.83
user 186.82
sys 5.03

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/125192/ft1_filtered_4FGL_J1045.8-2928_daily_bin1358.fits scfile=/scratch/kocevski/125192/ft2_4FGL_J1045.8-2928_daily_bin1358.fits outfile=/scratch/kocevski/125192/cmap_591321601_591580801_4FGL_J1045.8-2928_daily_bin1358.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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/125192/ft1_filtered_4FGL_J1045.8-2928_daily_bin1358.fits scfile=/scratch/kocevski/125192/ft2_4FGL_J1045.8-2928_daily_bin1358.fits outfile=/scratch/kocevski/125192/cmap_HighResolution_591321601_591580801_4FGL_J1045.8-2928_daily_bin1358.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/125192/ft1_filtered_4FGL_J1045.8-2928_daily_bin1358.fits evtable="EVENTS" scfile=/scratch/kocevski/125192/ft2_4FGL_J1045.8-2928_daily_bin1358.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/125192/Model_4FGL_J1045.8-2928_daily_bin1358.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/125192/ft1_filtered_4FGL_J1045.8-2928_daily_bin1358.fits.....................!
real 35.77
user 33.94
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5720       1.0000         .10000E-03   10000.    
     2 'norm      '    17.854       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .81952       1.0000         .10000E-03   10000.    
     5 'norm      '    .11028E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    6.9212       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    9.2730       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11604E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10545E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .31620E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .27646E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.0089       1.0000         .10000E-03   10000.    
    18 'Prefactor '    580.28       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0303       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1216       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=   2487.272     FROM MIGRAD    STATUS=CONVERGED    401 CALLS     2277 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5716        2.7125       -.11466E-06   -.33536E-04
   2  norm          17.844        16.967       -.11043E-06   -.44424E-04
   3  Prefactor     .10000E-03    8.8794        .18622E-06** at limit **
   4  Prefactor     .81584        18.261        .58128E-06   -.56813E-04
   5  norm          .10000E-03    24.453        .75310E-06** at limit **
   6  norm          6.9130        14.492        .44249E-06   -.12572E-04
   7  Prefactor     .10000E-03    11.072        .21035E-06** at limit **
   8  Prefactor     .10000E-03    31.109        .19749E-06** at limit **
   9  norm          9.2709        9.2380       -.59589E-06   -.80608E-04
  10  Prefactor     .10000E-03    55.167        .16981E-05** at limit **
  11  Prefactor     .10000E-03    5.1084        .88857E-07** at limit **
  12  Prefactor     .10000E-03    8.2456        .21854E-06** at limit **
  13  Prefactor     .10000E-03    11.161       -.15633E-05** at limit **
  14  Prefactor     .10000E-03    40.678        .32562E-05** at limit **
  15  Prefactor     .10001E-03    851.11       -.81852E-05** at limit **
  16  Prefactor     .10001E-03    218.68       -.16502E-04** at limit **
  17  Prefactor     7.6387        429.20       -.47771E-04   -.20457E-04
  18  Prefactor     580.76        518.62       -.13568E-05   -.47707E-06
  19  Normalizat    1.0304        .50407        .12867E-04   -.94335E-04
  20  Prefactor     1.1217        .23583       -.57775E-05    .45321E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.57158
  norm       = 17.8443
  Prefactor  = 0.0001
  Prefactor  = 0.815838
  norm       = 0.0001
  norm       = 6.91302
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.27088
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.000100006
  Prefactor  = 7.63872
  Prefactor  = 580.755
  Normalizat = 1.03042
  Prefactor  = 1.1217
 **********
 **   18 **HESSE 
 **********

 FCN=   2487.272     FROM HESSE     STATUS=OK           289 CALLS     2566 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5716        2.7139        .60356E-04   -1.5280    
   2  norm          17.844        16.940        .94787E-04   -1.4863    
   3  Prefactor     .10000E-03    8.8807        .14516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .81584        49.215        .40929E-02   -1.5527    
   5  norm          .10000E-03    24.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.9130        14.430        .15250E-03   -1.5182    
   7  Prefactor     .10000E-03    11.079        .16209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    31.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          9.2709        9.2308        .13161E-03   -1.5099    
  10  Prefactor     .10000E-03    56.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.1304        .11003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.2508        .13988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.225        .16287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    40.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    855.64        .19771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    221.02        .21424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.6387        442.68        .14168E-02   -1.5155    
  18  Prefactor     580.76        519.31        .85545E-04   -1.0840    
  19  Normalizat    1.0304        .54936        .39552E-03   -.92018    
  20  Prefactor     1.1217        .25971        .18333E-03   -.88776    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35437e-08
Minuit parameter uncertainties:
  1  2.71399
  2  16.9445
  3  2.48223e-06
  4  12.6832
  5  5.63925e-06
  6  14.4374
  7  5.24597e-06
  8  1.16893e-05
  9  9.23222
  10  0.000206765
  11  2.46841e-06
  12  5.59377e-06
  13  5.13628e-05
  14  0.000244694
  15  0.00471999
  16  0.00228689
  17  117.222
  18  523.674
  19  0.552423
  20  0.260006
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
586    Prefactor:  1.122e+00  2.600e-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.030e+00  5.524e-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: 2.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.74e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/125192/likelihoodResults_591321601_591580801_4FGL_J1045.8-2928_daily_bin1358.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) = 2487.2725646
delta logL = -0.000922079502288

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2487.27164351
delta logL = -9.91292836261e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5306       1.0000          .0000       10.000    
     3 'Normalizat'    1.0297       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1220       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=   2487.272     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      236 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10146E-03    133.25        .11087E-02** at limit **
   2  Index         2.4550        6.2265        .50000        .18265E-04
   3  Normalizat    1.0304        .56128E-01    .39548E-03    .51744E-06
   4  Prefactor     1.1217        .27206E-01    .18334E-03    .52709E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101459
  Index      = 2.45503
  Normalizat = 1.03043
  Prefactor  = 1.12169
 **********
 **   18 **HESSE 
 **********

 FCN=   2487.272     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      265 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10146E-03    486.52        .22174E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4550        5.9018        .50000       -.53402    
   3  Normalizat    1.0304        .11868        .15819E-04   -.92018    
   4  Prefactor     1.1217        .57530E-01    .73334E-05   -.88776    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.3897e-08
Minuit parameter uncertainties:
  1  0.0537249
  2  1165.04
  3  0.118711
  4  0.0575329
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/125192': 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) = 2487.27164222
delta logL = 2.97341557598e-07

Extracting fit parameters...

4FGL J1045.8-2928
   Spectrum: PowerLaw
294    Prefactor:  1.015e-04  5.372e-02  1.000e-04  1.000e+04 ( 1.000e-12)
295        Index:  2.455e+00  1.165e+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:  1.122e+00  5.753e-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.030e+00  1.187e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/125192/cmap_HighResolution_591321601_591580801_4FGL_J1045.8-2928_daily_bin1358.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.74e-02', job_status='DONE', photon_flux_upper_limit='2.23e-07', time_completed='2021-09-02 11:41:35.461200', job_id='125192', GAL2='1.12', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1630608095.46', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='2.97e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='1358' AND source_name='4FGL J1045.8-2928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 11:41:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 125192: <4FGL_J1045.8-2928_daily_bin1358> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1045.8-2928_daily_bin1358 161.468 -29.4795 591321601 591580801 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 :                                   454.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             343.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   554 sec.
    Turnaround time :                            608 sec.

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

