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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin48
RA = 209.29, Dec = 19.3608
tmin = 251769601, tmax = 252028801
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='59800', job_status='RUN', time_executed='2021-09-08 17:43:16.176921', time_epoch_executed='1631148196.18' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='48'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/59800

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/59800/ft1_4FGL_J1357.1+1921_daily_bin48.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/59800/ft2_4FGL_J1357.1+1921_daily_bin48.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/59800/ft1_4FGL_J1357.1+1921_daily_bin48.fits outfile=/scratch/kocevski/59800/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin48.fits ra=209.29 dec=19.3608 rad=12.0 tmin=251769601.0 tmax=252028801.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 2.13
user 1.93
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/59800/ft1_filtered_4FGL_J1357.1+1921_daily_bin48.fits" evtable="EVENTS" scfile=/scratch/kocevski/59800/ft2_4FGL_J1357.1+1921_daily_bin48.fits sctable="SC_DATA" outfile=/scratch/kocevski/59800/ltcube_251769601_252028801_4FGL_J1357.1+1921_daily_bin48.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/59800/ft2_4FGL_J1357.1+1921_daily_bin48.fits
.....................!
real 12.28
user 11.91
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/59800/ft1_filtered_4FGL_J1357.1+1921_daily_bin48.fits evtable="EVENTS" scfile=/scratch/kocevski/59800/ft2_4FGL_J1357.1+1921_daily_bin48.fits sctable="SC_DATA" expcube=/scratch/kocevski/59800/ltcube_251769601_252028801_4FGL_J1357.1+1921_daily_bin48.fits outfile=/scratch/kocevski/59800/expmap_251769601_252028801_4FGL_J1357.1+1921_daily_bin48.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/59800/ltcube_251769601_252028801_4FGL_J1357.1+1921_daily_bin48.fits
.....................!
real 192.64
user 187.22
sys 5.05

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/59800/ft1_filtered_4FGL_J1357.1+1921_daily_bin48.fits scfile=/scratch/kocevski/59800/ft2_4FGL_J1357.1+1921_daily_bin48.fits outfile=/scratch/kocevski/59800/cmap_251769601_252028801_4FGL_J1357.1+1921_daily_bin48.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/59800/ft1_filtered_4FGL_J1357.1+1921_daily_bin48.fits scfile=/scratch/kocevski/59800/ft2_4FGL_J1357.1+1921_daily_bin48.fits outfile=/scratch/kocevski/59800/cmap_HighResolution_251769601_252028801_4FGL_J1357.1+1921_daily_bin48.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.54
user 0.36
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/59800/ft1_filtered_4FGL_J1357.1+1921_daily_bin48.fits', '/scratch/kocevski/59800/ft2_4FGL_J1357.1+1921_daily_bin48.fits', expMap='/scratch/kocevski/59800/expmap_251769601_252028801_4FGL_J1357.1+1921_daily_bin48.fits', expCube='/scratch/kocevski/59800/ltcube_251769601_252028801_4FGL_J1357.1+1921_daily_bin48.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/59800/Model_4FGL_J1357.1+1921_daily_bin48.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/59800/ft1_filtered_4FGL_J1357.1+1921_daily_bin48.fits
Spacecraft file(s): /scratch/kocevski/59800/ft2_4FGL_J1357.1+1921_daily_bin48.fits
Exposure map: /scratch/kocevski/59800/expmap_251769601_252028801_4FGL_J1357.1+1921_daily_bin48.fits
Exposure cube: /scratch/kocevski/59800/ltcube_251769601_252028801_4FGL_J1357.1+1921_daily_bin48.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/59800/Model_4FGL_J1357.1+1921_daily_bin48.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) = 9470.66340786

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    23.054       1.0000         .10000E-03   10000.    
     2 'norm      '    2.1375       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    12.042       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.1828       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .21620E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.141       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.2870       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.2599       1.0000         .10000E-03   10000.    
    16 'norm      '    2.1657       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2130       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0007       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=   9470.559     FROM MIGRAD    STATUS=CONVERGED    400 CALLS     1643 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          23.054        17.250       -.10758E-06   -.18132E-04
   2  norm          2.1374        4.5766        .79109E-06   -.18334E-03
   3  Prefactor     .10000E-03    7.8481       -.45376E-07** at limit **
   4  norm          12.041        6.5393       -.21054E-06   -.97163E-04
   5  Prefactor     .10000E-03    5.3125        .39009E-07** at limit **
   6  Prefactor     .10000E-03    19.926       -.63540E-06** at limit **
   7  Prefactor     .10000E-03    18.768       -.16796E-05** at limit **
   8  Prefactor     3.1826        3.1088        .13590E-06   -.49924E-04
   9  Prefactor     .10001E-03    2.6140        .50351E-06** at limit **
  10  Prefactor     .10000E-03    4.3948        .12249E-10** at limit **
  11  Prefactor     10.141        8.6486        .14082E-05   -.23013E-03
  12  Prefactor     .10000E-03    52.931       -.64257E-06** at limit **
  13  Prefactor     .10000E-03    2.2782       -.82211E-08** at limit **
  14  norm          7.2871        2.6345        .12387E-07   -.31763E-04
  15  Prefactor     6.2602        4.3836        .99812E-07   -.10372E-04
  16  norm          2.1662        2.2165        .18389E-06   -.11138E-03
  17  Prefactor     .10000E-03    20.685        .25548E-05** at limit **
  18  Normalizat    1.2130        .15764       -.33007E-06   -.78909E-04
  19  Prefactor     1.0007        .13385       -.19218E-06   -.10772E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 23.0539
  norm       = 2.13743
  Prefactor  = 0.0001
  norm       = 12.0414
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.18256
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 10.1412
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.28708
  Prefactor  = 6.26018
  norm       = 2.16616
  Prefactor  = 0.000100003
  Normalizat = 1.21303
  Prefactor  = 1.00065
 **********
 **   18 **HESSE 
 **********

 FCN=   9470.559     FROM HESSE     STATUS=OK           270 CALLS     1913 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          23.054        17.234        .83424E-04   -1.4747    
   2  norm          2.1374        4.5944        .28006E-03   -1.5416    
   3  Prefactor     .10000E-03    7.8538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          12.041        6.5157        .11544E-03   -1.5014    
   5  Prefactor     .10000E-03    5.3191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    19.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.1826        3.1059        .16436E-03   -1.5351    
   9  Prefactor     .10001E-03    11.700        .29639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.4088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.141        8.7686        .62913E-03   -1.5071    
  12  Prefactor     .10000E-03    55.032        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.2879        .14338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.2871        2.6354        .91814E-04   -1.5168    
  15  Prefactor     6.2602        4.3770        .16044E-03   -1.5208    
  16  norm          2.1662        2.2072        .14062E-03   -1.5414    
  17  Prefactor     .10000E-03    22.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2130        .19037        .25534E-03   -.86201    
  19  Prefactor     1.0007        .16129        .23676E-03   -.92708    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.90101e-10
Minuit parameter uncertainties:
  1  17.2379
  2  4.5952
  3  5.3717e-06
  4  6.51612
  5  4.36529e-06
  6  0.000101944
  7  0.00030676
  8  3.10601
  9  0.000553001
  10  1.53836e-06
  11  8.76971
  12  0.000144614
  13  1.43194e-06
  14  2.63543
  15  4.37718
  16  2.20732
  17  0.000475705
  18  0.190484
  19  0.161367
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.014e+01  8.770e+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

GAL_V02
   Spectrum: PowerLaw
506    Prefactor:  1.001e+00  1.614e-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.213e+00  1.905e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.88
Ra Dec: 209.290 19.361
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 3.94e-08 +/- 3.41e-08
Energy Flux (Fixed Index): 9.09e-06 +/- 7.86e-06

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

Saving results to:
/scratch/kocevski/59800/likelihoodResults_251769601_252028801_4FGL_J1357.1+1921_daily_bin48.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) = 9470.54952961
delta logL = 0.00981592606331

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9470.54849868
delta logL = 0.0108468612707

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.453       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6362       1.0000          .0000       10.000    
     3 'Normalizat'    1.2173       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99828       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=   9470.548     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      247 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.451        9.2358        .12393E-03   -.30824E-04
   2  Index         2.6361        .81369        .13586E-01    .66396E-04
   3  Normalizat    1.2174        .18992        .25495E-03   -.13628E-03
   4  Prefactor     .99821        .16059        .23701E-03    .82694E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.451
  Index      = 2.63615
  Normalizat = 1.21737
  Prefactor  = 0.998206
 **********
 **   18 **HESSE 
 **********

 FCN=   9470.548     FROM HESSE     STATUS=OK            25 CALLS      272 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.451        9.1641        .49570E-05   -1.5061    
   2  Index         2.6361        .80714        .27173E-02   -.49243    
   3  Normalizat    1.2174        .19010        .10198E-04   -.86068    
   4  Prefactor     .99821        .16072        .94806E-05   -.92789    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43527e-10
Minuit parameter uncertainties:
  1  9.16537
  2  0.811727
  3  0.190208
  4  0.160801
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/59800': 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) = 9470.54849853
delta logL = 0.0108470108553

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.045e+01  9.165e+00  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.636e+00  8.117e-01  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:  9.982e-01  1.608e-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.217e+00  1.902e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.89
Ra Dec: 209.290 19.361
Photon Index (Free Index): 2.64 +/- 0.81
Photon Flux (Free Index): 3.62e-08 +/- 3.86e-08
Energy Flux (Free Index): 9.20e-06 +/- 8.02e-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/59800/cmap_HighResolution_251769601_252028801_4FGL_J1357.1+1921_daily_bin48.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.80e-03', comment='SUCCESS', photon_flux='3.94e-08', energy_flux2='9.20e-06', photon_flux_error='3.41e-08', dlogl='1.08e-02', energy_flux='9.09e-06', photon_flux2='3.62e-08', job_status='DONE', time_completed='2021-09-08 17:53:47.976809', photon_index_error2='0.81', photon_index2='2.64', ts='1.88', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.11e-07', energy_flux_error2='8.02e-06', EG='1.21', time_epoch_completed='1631148827.98', return_code='0', job_id='59800', GAL2='1.00', EG2='1.22', return_code2='0', energy_flux_error='7.86e-06', photon_flux_error2='3.86e-08', ts2='1.89', photon_index='2.76' WHERE bin_id='48' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:53:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 59800: <4FGL_J1357.1+1921_daily_bin48> in cluster <slac> Done

Job <4FGL_J1357.1+1921_daily_bin48> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 17:41:01 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 17:41:03 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:03 2021
Terminated at Wed Sep  8 17:53:51 2021
Results reported at Wed Sep  8 17:53:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin48 209.29 19.3608 251769601 252028801 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 :                                   631.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   765 sec.
    Turnaround time :                            770 sec.

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

