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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin672
RA = 209.29, Dec = 19.3608
tmin = 413510401, tmax = 413769601
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='62796', job_status='RUN', time_executed='2021-09-08 17:53:06.798761', time_epoch_executed='1631148786.8' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='672'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/62796

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/62796/ft1_4FGL_J1357.1+1921_daily_bin672.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/62796/ft2_4FGL_J1357.1+1921_daily_bin672.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/62796/ft1_4FGL_J1357.1+1921_daily_bin672.fits outfile=/scratch/kocevski/62796/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin672.fits ra=209.29 dec=19.3608 rad=12.0 tmin=413510401.0 tmax=413769601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.57
user 5.24
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/62796/ft1_filtered_4FGL_J1357.1+1921_daily_bin672.fits evtable="EVENTS" scfile=/scratch/kocevski/62796/ft2_4FGL_J1357.1+1921_daily_bin672.fits sctable="SC_DATA" expcube=/scratch/kocevski/62796/ltcube_413510401_413769601_4FGL_J1357.1+1921_daily_bin672.fits outfile=/scratch/kocevski/62796/expmap_413510401_413769601_4FGL_J1357.1+1921_daily_bin672.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/62796/ltcube_413510401_413769601_4FGL_J1357.1+1921_daily_bin672.fits
.....................!
real 193.71
user 186.72
sys 5.72

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/62796/ft1_filtered_4FGL_J1357.1+1921_daily_bin672.fits scfile=/scratch/kocevski/62796/ft2_4FGL_J1357.1+1921_daily_bin672.fits outfile=/scratch/kocevski/62796/cmap_413510401_413769601_4FGL_J1357.1+1921_daily_bin672.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/62796/ft1_filtered_4FGL_J1357.1+1921_daily_bin672.fits scfile=/scratch/kocevski/62796/ft2_4FGL_J1357.1+1921_daily_bin672.fits outfile=/scratch/kocevski/62796/cmap_HighResolution_413510401_413769601_4FGL_J1357.1+1921_daily_bin672.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.534       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10423E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.755       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.9745       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.302       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2610       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0478       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.

 FCN=   5739.992     FROM MIGRAD    STATUS=CONVERGED    397 CALLS     1868 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.2210        .90712E-02** at limit **
   2  norm          .10000E-03    4.4806        .90712E-02** at limit **
   3  Prefactor     .10000E-03    21.567        .90712E-02** at limit **
   4  norm          .10000E-03    4.1207        .90712E-02** at limit **
   5  Prefactor     18.536        24.967        .23258E-02   -.17467E-03
   6  Prefactor     .10000E-03    43.156        .90712E-02** at limit **
   7  Prefactor     .10000E-03    82.439        .90712E-02** at limit **
   8  Prefactor     .10000E-03    2.0670        .90712E-02** at limit **
   9  Prefactor     .10000E-03    5.3804        .90712E-02** at limit **
  10  Prefactor     .10000E-03    5.1592        .90712E-02** at limit **
  11  Prefactor     12.751        18.533        .28039E-02   -.44535E-04
  12  Prefactor     .10000E-03    17.223        .90712E-02** at limit **
  13  Prefactor     .10000E-03    2.6757        .90712E-02** at limit **
  14  norm          3.9745        2.1652        .50579E-02   -.12935E-03
  15  Prefactor     .10000E-03    3.2518        .90712E-02** at limit **
  16  norm          .10000E-03    1.0180        .90712E-02** at limit **
  17  Prefactor     21.299        32.909        .21696E-02    .61756E-03
  18  Normalizat    1.2612        .21003        .59590E-01    .12931E-04
  19  Prefactor     1.0476        .16781        .40042E-01    .11290E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.5356
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.7514
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.97446
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 21.2991
  Normalizat = 1.26117
  Prefactor  = 1.04763
 **********
 **   18 **HESSE 
 **********

 FCN=   5739.992     FROM HESSE     STATUS=OK           256 CALLS     2124 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.2241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.5185        .15660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.1301        .15019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.536        25.008        .93033E-04   -1.4847    
   6  Prefactor     .10000E-03    43.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    82.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.0818        .10637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.5945        .34302E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.1685        .16806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.751        18.615        .11216E-03   -1.4994    
  12  Prefactor     .10000E-03    17.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.6863        .12102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.9745        2.1676        .80137E-04   -1.5309    
  15  Prefactor     .10000E-03    3.2786        .13336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.0286        .74612E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     21.299        32.915        .86784E-04   -1.4785    
  18  Normalizat    1.2612        .25090        .26354E-03   -.84733    
  19  Prefactor     1.0476        .19992        .23112E-03   -.91158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02088e-09
Minuit parameter uncertainties:
  1  7.51265e-08
  2  5.78078e-07
  3  3.34762e-06
  4  3.6051e-07
  5  25.0217
  6  4.06275e-05
  7  0.000103186
  8  5.06471e-08
  9  2.93285e-07
  10  2.88516e-07
  11  18.6232
  12  5.20959e-07
  13  8.74663e-08
  14  2.16763
  15  4.31047e-08
  16  1.45232e-08
  17  32.9433
  18  0.251145
  19  0.200065
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.275e+01  1.862e+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.048e+00  2.001e-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.261e+00  2.511e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.56
Ra Dec: 209.290 19.361
Photon Flux Upper Limit: 1.98e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.57e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/62796/likelihoodResults_413510401_413769601_4FGL_J1357.1+1921_daily_bin672.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) = 5739.10497567
delta logL = 0.886630228733

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5738.59139643
delta logL = 1.40020946571

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26731E-02   1.0000         .10000E-03   10000.    
     2 'Index     '   10.0000       1.0000          .0000       10.000    
     3 'Normalizat'    1.1601       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1172       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.

 FCN=   5738.591     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      426 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .26734E-02    .61076E-01    .61643E-03    .92355E-02
   2  Index        10.0000        5.1229        .50000    ** at limit **
   3  Normalizat    1.1602        .13252        .61645E-01   -.41063E-04
   4  Prefactor     1.1170        .10674        .36968E-01   -.87094E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00267341
  Index      = 10
  Normalizat = 1.16018
  Prefactor  = 1.11696
 **********
 **   18 **HESSE 
 **********

 FCN=   5738.591     FROM HESSE     STATUS=OK            33 CALLS      459 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .26734E-02    .18215E-02    .25779E-04   -1.5698    
   2  Index        10.0000        6.5722        .34445E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1602        .25498        .27266E-03   -.87842    
   4  Prefactor     1.1170        .20408        .22474E-03   -.88926    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.81192e-10
Minuit parameter uncertainties:
  1  0.00182153
  2  2.6076e-06
  3  0.255256
  4  0.204221
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/62796': 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) = 5738.59139516
delta logL = 1.40021074109

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  2.673e-03  1.822e-03  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  1.000e+01  2.608e-06  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.117e+00  2.042e-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.160e+00  2.553e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.59
Ra Dec: 209.290 19.361
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 1.37e-07 +/- 9.07e-08
Energy Flux (Free Index): 1.54e-05 +/- 1.02e-05

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/62796/cmap_HighResolution_413510401_413769601_4FGL_J1357.1+1921_daily_bin672.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.57e-02', comment='SUCCESS', energy_flux2='1.54e-05', dlogl='1.40e+00', photon_flux2='1.37e-07', job_status='DONE', time_completed='2021-09-08 18:02:03.997530', photon_index_error2='0.00', photon_index2='10.00', ts='0.56', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.98e-07', energy_flux_error2='1.02e-05', EG='1.26', time_epoch_completed='1631149324.0', return_code='0', job_id='62796', GAL2='1.12', EG2='1.16', return_code2='0', photon_flux_error2='9.07e-08', ts2='3.59', photon_index='2.76' WHERE bin_id='672' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 18:02:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 62796: <4FGL_J1357.1+1921_daily_bin672> in cluster <slac> Done

Job <4FGL_J1357.1+1921_daily_bin672> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  8 17:50:31 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 17:50:33 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:50:33 2021
Terminated at Wed Sep  8 18:02:04 2021
Results reported at Wed Sep  8 18:02:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin672 209.29 19.3608 413510401 413769601 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 :                                   532.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             243.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   691 sec.
    Turnaround time :                            693 sec.

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

