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


Performing analysis on: 4FGL_J1045.8-2928_daily_bin1558
RA = 161.468, Dec = -29.4795
tmin = 643161601, tmax = 643420801
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='126783', job_status='RUN', time_executed='2021-09-02 11:41:31.081962', time_epoch_executed='1630608091.08' WHERE source_name='4FGL J1045.8-2928' and cadence='daily' and bin_id='1558'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/126783

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/126783/ft1_4FGL_J1045.8-2928_daily_bin1558.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/126783/ft2_4FGL_J1045.8-2928_daily_bin1558.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/126783/ft1_4FGL_J1045.8-2928_daily_bin1558.fits outfile=/scratch/kocevski/126783/ft1_filteredMKT_4FGL_J1045.8-2928_daily_bin1558.fits ra=161.468 dec=-29.4795 rad=12.0 tmin=643161601.0 tmax=643420801.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.53
user 3.27
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/126783/ft2_4FGL_J1045.8-2928_daily_bin1558.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/126783/ft1_filteredMKT_4FGL_J1045.8-2928_daily_bin1558.fits evtable="EVENTS" outfile="/scratch/kocevski/126783/ft1_filtered_4FGL_J1045.8-2928_daily_bin1558.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.37
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/126783/ft1_filtered_4FGL_J1045.8-2928_daily_bin1558.fits" evtable="EVENTS" scfile=/scratch/kocevski/126783/ft2_4FGL_J1045.8-2928_daily_bin1558.fits sctable="SC_DATA" outfile=/scratch/kocevski/126783/ltcube_643161601_643420801_4FGL_J1045.8-2928_daily_bin1558.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/126783/ft2_4FGL_J1045.8-2928_daily_bin1558.fits
.....................!
real 14.88
user 14.51
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/126783/ft1_filtered_4FGL_J1045.8-2928_daily_bin1558.fits evtable="EVENTS" scfile=/scratch/kocevski/126783/ft2_4FGL_J1045.8-2928_daily_bin1558.fits sctable="SC_DATA" expcube=/scratch/kocevski/126783/ltcube_643161601_643420801_4FGL_J1045.8-2928_daily_bin1558.fits outfile=/scratch/kocevski/126783/expmap_643161601_643420801_4FGL_J1045.8-2928_daily_bin1558.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/126783/ltcube_643161601_643420801_4FGL_J1045.8-2928_daily_bin1558.fits
.....................!
real 191.61
user 186.75
sys 4.30

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/126783/ft1_filtered_4FGL_J1045.8-2928_daily_bin1558.fits scfile=/scratch/kocevski/126783/ft2_4FGL_J1045.8-2928_daily_bin1558.fits outfile=/scratch/kocevski/126783/cmap_643161601_643420801_4FGL_J1045.8-2928_daily_bin1558.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.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/126783/ft1_filtered_4FGL_J1045.8-2928_daily_bin1558.fits scfile=/scratch/kocevski/126783/ft2_4FGL_J1045.8-2928_daily_bin1558.fits outfile=/scratch/kocevski/126783/cmap_HighResolution_643161601_643420801_4FGL_J1045.8-2928_daily_bin1558.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/126783/ft1_filtered_4FGL_J1045.8-2928_daily_bin1558.fits evtable="EVENTS" scfile=/scratch/kocevski/126783/ft2_4FGL_J1045.8-2928_daily_bin1558.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/126783/Model_4FGL_J1045.8-2928_daily_bin1558.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/126783/ft1_filtered_4FGL_J1045.8-2928_daily_bin1558.fits.....................!
real 71.68
user 69.48
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .29717       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.840       1.0000         .10000E-03   10000.    
     5 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.9896       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.754       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.7416       1.0000         .10000E-03   10000.    
     9 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.3717       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.303       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.8256       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.008       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.172       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2727       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .90496       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=   6633.881     FROM MIGRAD    STATUS=CONVERGED    401 CALLS     2003 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .29704        1.3127       -.11827E-05   -.20345E-02
   2  norm          .10000E-03    11.357        .19611E-05** at limit **
   3  Prefactor     .10000E-03    9.1916       -.62238E-06** at limit **
   4  Prefactor     13.842        12.698       -.83356E-06    .16974E-03
   5  norm          .10000E-03    16.817       -.99970E-05** at limit **
   6  norm          5.9905        8.1307       -.16347E-06    .14760E-03
   7  Prefactor     17.764        19.173        .12714E-04    .45972E-04
   8  Prefactor     8.7362        14.230        .50312E-06   -.14853E-04
   9  norm          .10000E-03    1.3674       -.64081E-07** at limit **
  10  Prefactor     3.3468        43.277       -.45897E-04    .59755E-04
  11  Prefactor     .10000E-03    2.3394       -.49592E-07** at limit **
  12  Prefactor     26.299        13.717        .15400E-06   -.13892E-05
  13  Prefactor     4.8254        4.8739        .27462E-05   -.46031E-03
  14  Prefactor     16.008        10.981       -.32006E-06    .71167E-05
  15  Prefactor     .10000E-03    62.589        .14440E-05** at limit **
  16  Prefactor     .10000E-03    18.688        .91356E-05** at limit **
  17  Prefactor     .10000E-03    4.2933       -.92069E-08** at limit **
  18  Prefactor     22.171        28.190       -.12494E-05    .30590E-04
  19  Normalizat    1.2729        .24595        .68387E-06    .28172E-03
  20  Prefactor     .90487        .11579        .57137E-06    .34831E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.297045
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.8416
  norm       = 0.000100003
  norm       = 5.99051
  Prefactor  = 17.7644
  Prefactor  = 8.73619
  norm       = 0.0001
  Prefactor  = 3.34681
  Prefactor  = 0.0001
  Prefactor  = 26.2987
  Prefactor  = 4.82539
  Prefactor  = 16.008
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 22.1709
  Normalizat = 1.27294
  Prefactor  = 0.90487
 **********
 **   18 **HESSE 
 **********

 FCN=   6633.881     FROM HESSE     STATUS=OK           289 CALLS     2292 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .29704        1.3781        .18338E-03   -1.5599    
   2  norm          .10000E-03    11.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.1974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.842        12.690        .10767E-03   -1.4964    
   5  norm          .10000E-03    17.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.9905        8.1090        .16407E-03   -1.5218    
   7  Prefactor     17.764        19.171        .95055E-04   -1.4865    
   8  Prefactor     8.7362        14.189        .13557E-03   -1.5117    
   9  norm          .10000E-03    1.3710        .92845E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.3468        43.697        .22037E-03   -1.5342    
  11  Prefactor     .10000E-03    2.3734        .12148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     26.299        13.743        .78111E-04   -1.4682    
  13  Prefactor     4.8254        4.8565        .17299E-03   -1.5269    
  14  Prefactor     16.008        10.989        .10011E-03   -1.4908    
  15  Prefactor     .10000E-03    62.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    18.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.2979        .16482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     22.171        28.195        .85065E-04   -1.4766    
  19  Normalizat    1.2729        .29316        .32980E-03   -.84378    
  20  Prefactor     .90487        .13823        .18713E-03   -.95971    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.1192e-09
Minuit parameter uncertainties:
  1  1.27945
  2  7.14143e-05
  3  1.55111e-05
  4  12.692
  5  0.000450553
  6  8.11045
  7  19.1772
  8  14.1942
  9  6.7867e-06
  10  24.2077
  11  8.77876e-06
  12  13.7442
  13  4.85691
  14  10.9908
  15  0.000129334
  16  0.00038928
  17  4.62999e-06
  18  28.2123
  19  0.293545
  20  0.138284
Done.

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

Extracting fit parameters...

4FGL J1045.8-2928
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  8.779e-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:  9.049e-01  1.383e-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.273e+00  2.935e-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: 9.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/126783/likelihoodResults_643161601_643420801_4FGL_J1045.8-2928_daily_bin1558.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) = 6633.88254402
delta logL = -0.00200657065398

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6633.88053754
delta logL = -8.68249117048e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5446       1.0000          .0000       10.000    
     3 'Normalizat'    1.2729       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90490       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=   6633.881     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.0760        .90712E-02** at limit **
   2  Index         2.5449        5.6670        .50000       -.13607E-05
   3  Normalizat    1.2729        .90952E-02    .74523E-01   -.26844E-04
   4  Prefactor     .90487        .44595E-02    .45067E-01   -.48951E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.54489
  Normalizat = 1.27294
  Prefactor  = 0.90487
 **********
 **   18 **HESSE 
 **********

 FCN=   6633.881     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      235 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    238.85        .12148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5449        5.1116        .50000       -.51326    
   3  Normalizat    1.2729        .71084E-01    .32980E-03   -.84378    
   4  Prefactor     .90487        .34858E-01    .18713E-03   -.95971    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.27678e-07
Minuit parameter uncertainties:
  1  3.34687e-05
  2  1505.01
  3  0.0710898
  4  0.0348589
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/126783': 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) = 6633.88053745
delta logL = 2.75576894637e-10

Extracting fit parameters...

4FGL J1045.8-2928
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  3.347e-05  1.000e-04  1.000e+04 ( 1.000e-12)
295        Index:  2.545e+00  1.505e+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:  9.049e-01  3.486e-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.273e+00  7.109e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/126783/cmap_HighResolution_643161601_643420801_4FGL_J1045.8-2928_daily_bin1558.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.08e-03', job_status='DONE', photon_flux_upper_limit='9.08e-08', time_completed='2021-09-02 11:52:15.844116', job_id='126783', GAL2='0.90', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1630608735.84', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='2.76e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='1558' AND source_name='4FGL J1045.8-2928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 11:52:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 126783: <4FGL_J1045.8-2928_daily_bin1558> in cluster <slac> Done

Job <4FGL_J1045.8-2928_daily_bin1558> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep  2 11:36:22 2021
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 11:37:27 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:37:27 2021
Terminated at Thu Sep  2 11:52:16 2021
Results reported at Thu Sep  2 11:52:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1045.8-2928_daily_bin1558 161.468 -29.4795 643161601 643420801 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 :                                   638.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             269.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            954 sec.

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

