/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 148 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 = 6705
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1357.1+1921_daily_bin59
RA = 209.29, Dec = 19.3608
tmin = 254620801, tmax = 254880001
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='59816', job_status='RUN', time_executed='2021-09-08 17:43:41.040885', time_epoch_executed='1631148221.04' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='59'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/59816

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

Retrieving the FT1 file...

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

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

Retrieving 43 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/59816/ft1_4FGL_J1357.1+1921_daily_bin59.fits


Retrieving the FT1 file...

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

Retrieving 43 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/59816/ft2_4FGL_J1357.1+1921_daily_bin59.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/59816/ft1_4FGL_J1357.1+1921_daily_bin59.fits outfile=/scratch/kocevski/59816/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin59.fits ra=209.29 dec=19.3608 rad=12.0 tmin=254620801.0 tmax=254880001.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 1.35
user 1.19
sys 0.15

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/59816/ft2_4FGL_J1357.1+1921_daily_bin59.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/59816/ft2_4FGL_J1357.1+1921_daily_bin59.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/59816/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin59.fits evtable="EVENTS" outfile="/scratch/kocevski/59816/ft1_filtered_4FGL_J1357.1+1921_daily_bin59.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/59816/ft1_filtered_4FGL_J1357.1+1921_daily_bin59.fits" evtable="EVENTS" scfile=/scratch/kocevski/59816/ft2_4FGL_J1357.1+1921_daily_bin59.fits sctable="SC_DATA" outfile=/scratch/kocevski/59816/ltcube_254620801_254880001_4FGL_J1357.1+1921_daily_bin59.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/59816/ft2_4FGL_J1357.1+1921_daily_bin59.fits
.....................!
real 11.58
user 11.20
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/59816/ft1_filtered_4FGL_J1357.1+1921_daily_bin59.fits evtable="EVENTS" scfile=/scratch/kocevski/59816/ft2_4FGL_J1357.1+1921_daily_bin59.fits sctable="SC_DATA" expcube=/scratch/kocevski/59816/ltcube_254620801_254880001_4FGL_J1357.1+1921_daily_bin59.fits outfile=/scratch/kocevski/59816/expmap_254620801_254880001_4FGL_J1357.1+1921_daily_bin59.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/59816/ltcube_254620801_254880001_4FGL_J1357.1+1921_daily_bin59.fits
.....................!
real 192.01
user 186.78
sys 4.85

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 157 point sources and 0 extended sources

Setting source of interest to:
4FGL J1357.1+1921 @ 209.29 19.3608

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/59816/ft1_filtered_4FGL_J1357.1+1921_daily_bin59.fits scfile=/scratch/kocevski/59816/ft2_4FGL_J1357.1+1921_daily_bin59.fits outfile=/scratch/kocevski/59816/cmap_254620801_254880001_4FGL_J1357.1+1921_daily_bin59.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=209.29 yref=19.3608 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/59816/ft1_filtered_4FGL_J1357.1+1921_daily_bin59.fits scfile=/scratch/kocevski/59816/ft2_4FGL_J1357.1+1921_daily_bin59.fits outfile=/scratch/kocevski/59816/cmap_HighResolution_254620801_254880001_4FGL_J1357.1+1921_daily_bin59.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=209.29 yref=19.3608 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/59816/ft1_filtered_4FGL_J1357.1+1921_daily_bin59.fits evtable="EVENTS" scfile=/scratch/kocevski/59816/ft2_4FGL_J1357.1+1921_daily_bin59.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/59816/Model_4FGL_J1357.1+1921_daily_bin59.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/59816/ft1_filtered_4FGL_J1357.1+1921_daily_bin59.fits.....................!
real 55.83
user 54.46
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/59816/ft1_filtered_4FGL_J1357.1+1921_daily_bin59.fits', '/scratch/kocevski/59816/ft2_4FGL_J1357.1+1921_daily_bin59.fits', expMap='/scratch/kocevski/59816/expmap_254620801_254880001_4FGL_J1357.1+1921_daily_bin59.fits', expCube='/scratch/kocevski/59816/ltcube_254620801_254880001_4FGL_J1357.1+1921_daily_bin59.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/59816/Model_4FGL_J1357.1+1921_daily_bin59.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1357.1+1921'

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  2.782e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.758e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  4.625e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/59816/ft1_filtered_4FGL_J1357.1+1921_daily_bin59.fits
Spacecraft file(s): /scratch/kocevski/59816/ft2_4FGL_J1357.1+1921_daily_bin59.fits
Exposure map: /scratch/kocevski/59816/expmap_254620801_254880001_4FGL_J1357.1+1921_daily_bin59.fits
Exposure cube: /scratch/kocevski/59816/ltcube_254620801_254880001_4FGL_J1357.1+1921_daily_bin59.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/59816/Model_4FGL_J1357.1+1921_daily_bin59.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) = 7155.48921445

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10605E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    36.942       1.0000         .10000E-03   10000.    
     4 'norm      '    51.973       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.935       1.0000         .10000E-03   10000.    
     7 'Prefactor '    84.373       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.9724       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.3686       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.4348       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.1240       1.0000         .10000E-03   10000.    
    16 'norm      '    1.4581       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.3702       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0980       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0170       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7155.483     FROM MIGRAD    STATUS=CONVERGED    382 CALLS     1902 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.1085       -.21055E-06** at limit **
   2  norm          .10000E-03    62.768       -.31969E-04** at limit **
   3  Prefactor     36.956        25.258       -.21969E-05   -.91409E-04
   4  norm          51.956        13.898       -.25428E-06    .51634E-03
   5  Prefactor     .10000E-03    7.1173        .23301E-06** at limit **
   6  Prefactor     23.928        20.022        .35036E-06    .55857E-04
   7  Prefactor     84.399        57.434       -.52490E-05   -.93017E-04
   8  Prefactor     .10000E-03    2.4763        .17978E-06** at limit **
   9  Prefactor     2.9725        2.7111        .84591E-07   -.10651E-04
  10  Prefactor     .10000E-03    20.321        .16382E-05** at limit **
  11  Prefactor     8.3704        10.780       -.66746E-06    .64198E-04
  12  Prefactor     .10000E-03    27.610       -.36076E-05** at limit **
  13  Prefactor     .10000E-03    4.1360        .70781E-06** at limit **
  14  norm          3.4348        2.0716        .48411E-07    .18489E-03
  15  Prefactor     3.1243        6.3852       -.24112E-05    .30497E-03
  16  norm          1.4584        2.7151       -.19494E-05    .34003E-03
  17  Prefactor     8.3790        32.005       -.91858E-06    .59730E-04
  18  Normalizat    1.0978        .18285        .10088E-05    .42445E-03
  19  Prefactor     1.0170        .15261        .11929E-05    .24502E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 36.9556
  norm       = 51.9561
  Prefactor  = 0.0001
  Prefactor  = 23.9283
  Prefactor  = 84.3993
  Prefactor  = 0.0001
  Prefactor  = 2.9725
  Prefactor  = 0.0001
  Prefactor  = 8.3704
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.43483
  Prefactor  = 3.1243
  norm       = 1.45843
  Prefactor  = 8.37905
  Normalizat = 1.09784
  Prefactor  = 1.01702
 **********
 **   18 **HESSE 
 **********

 FCN=   7155.483     FROM HESSE     STATUS=OK           274 CALLS     2176 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.1177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    7.0073        .57484E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     36.956        25.353        .65939E-04   -1.4491    
   4  norm          51.956        13.880        .55632E-04   -1.4265    
   5  Prefactor     .10000E-03    7.1201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     23.928        20.076        .81877E-04   -1.4729    
   7  Prefactor     84.399        57.950        .21866E-03   -1.3868    
   8  Prefactor     .10000E-03    2.5123        .12989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.9725        2.7166        .12934E-03   -1.5363    
  10  Prefactor     .10000E-03    20.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.3704        10.813        .13858E-03   -1.5129    
  12  Prefactor     .10000E-03    27.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.1838        .16806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.4348        2.0744        .91836E-04   -1.5337    
  15  Prefactor     3.1243        6.3530        .22939E-03   -1.5354    
  16  norm          1.4584        2.7019        .17902E-03   -1.5466    
  17  Prefactor     8.3790        31.951        .13857E-03   -1.5129    
  18  Normalizat    1.0978        .21872        .26481E-03   -.89821    
  19  Prefactor     1.0170        .18093        .23142E-03   -.92164    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.92937e-10
Minuit parameter uncertainties:
  1  1.60399e-05
  2  7.89991e-06
  3  25.3601
  4  13.8805
  5  1.58176e-05
  6  20.082
  7  57.9891
  8  2.1199e-05
  9  2.7167
  10  8.15348e-05
  11  10.8152
  12  0.000190922
  13  4.91717e-05
  14  2.07446
  15  6.35437
  16  2.70212
  17  32.0163
  18  0.218905
  19  0.181041
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  8.370e+00  1.082e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.758e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  4.625e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
506    Prefactor:  1.017e+00  1.810e-01  0.000e+00  1.000e+01 ( 1.000e+00)
507        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
508        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
505   Normalization:  1.098e+00  2.189e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.75
Ra Dec: 209.290 19.361
Photon Flux Upper Limit: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/59816/likelihoodResults_254620801_254880001_4FGL_J1357.1+1921_daily_bin59.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) = 7155.07020137
delta logL = 0.413145446756

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7155.0660302
delta logL = 0.417316617101

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7519       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8357       1.0000          .0000       10.000    
     3 'Normalizat'    1.0649       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0342       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5090E+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=   7155.066     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      275 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7517        11.372        .15360E-03   -.36520E-03
   2  Index         3.8373        1.8705        .90741E-02   -.49451E-04
   3  Normalizat    1.0650        .21521        .26831E-03   -.15627E-03
   4  Prefactor     1.0341        .17960        .22967E-03   -.16361E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.75166
  Index      = 3.83727
  Normalizat = 1.06499
  Prefactor  = 1.03411
 **********
 **   18 **HESSE 
 **********

 FCN=   7155.066     FROM HESSE     STATUS=OK            25 CALLS      300 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7517        8.1983        .61439E-05   -1.5272    
   2  Index         3.8373        1.3640        .36296E-03   -.23469    
   3  Normalizat    1.0650        .21542        .10732E-04   -.90884    
   4  Prefactor     1.0341        .17949        .45933E-04   -.91601    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02085e-10
Minuit parameter uncertainties:
  1  8.20026
  2  1.38251
  3  0.215593
  4  0.179592
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/59816': 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) = 7155.06602696
delta logL = 0.417319863426

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  4.752e+00  8.200e+00  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  3.837e+00  1.383e+00  0.000e+00  1.000e+01 (-1.000e+00)
269        Scale:  4.625e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
506    Prefactor:  1.034e+00  1.796e-01  0.000e+00  1.000e+01 ( 1.000e+00)
507        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
508        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
505   Normalization:  1.065e+00  2.156e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.62
Ra Dec: 209.290 19.361
Photon Index (Free Index): 3.84 +/- 1.38
Photon Flux (Free Index): 5.99e-08 +/- 5.40e-08
Energy Flux (Free Index): 9.24e-06 +/- 8.29e-06

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/59816/cmap_HighResolution_254620801_254880001_4FGL_J1357.1+1921_daily_bin59.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.65e-03', comment='SUCCESS', energy_flux2='9.24e-06', dlogl='4.17e-01', photon_flux2='5.99e-08', job_status='DONE', time_completed='2021-09-08 17:53:11.821271', photon_index_error2='1.38', photon_index2='3.84', ts='0.75', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='8.29e-06', EG='1.10', time_epoch_completed='1631148791.82', return_code='0', job_id='59816', GAL2='1.03', EG2='1.06', return_code2='0', photon_flux_error2='5.40e-08', ts2='1.62', photon_index='2.76' WHERE bin_id='59' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:53:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 59816: <4FGL_J1357.1+1921_daily_bin59> in cluster <slac> Done

Job <4FGL_J1357.1+1921_daily_bin59> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 17:41:02 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 17:41:04 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 17:41:04 2021
Terminated at Wed Sep  8 17:53:12 2021
Results reported at Wed Sep  8 17:53:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin59 209.29 19.3608 254620801 254880001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1357.1+1921 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   570.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             290.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   728 sec.
    Turnaround time :                            730 sec.

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

