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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin944
RA = 209.29, Dec = 19.3608
tmin = 484012801, tmax = 484272001
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='64456', job_status='RUN', time_executed='2021-09-08 17:55:45.282005', time_epoch_executed='1631148945.28' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='944'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/64456

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/64456/ft1_4FGL_J1357.1+1921_daily_bin944.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/64456/ft2_4FGL_J1357.1+1921_daily_bin944.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/64456/ft1_4FGL_J1357.1+1921_daily_bin944.fits outfile=/scratch/kocevski/64456/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin944.fits ra=209.29 dec=19.3608 rad=12.0 tmin=484012801.0 tmax=484272001.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.40
user 3.18
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/64456/ft1_filtered_4FGL_J1357.1+1921_daily_bin944.fits evtable="EVENTS" scfile=/scratch/kocevski/64456/ft2_4FGL_J1357.1+1921_daily_bin944.fits sctable="SC_DATA" expcube=/scratch/kocevski/64456/ltcube_484012801_484272001_4FGL_J1357.1+1921_daily_bin944.fits outfile=/scratch/kocevski/64456/expmap_484012801_484272001_4FGL_J1357.1+1921_daily_bin944.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/64456/ltcube_484012801_484272001_4FGL_J1357.1+1921_daily_bin944.fits
.....................!
real 191.78
user 186.69
sys 4.73

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/64456/ft1_filtered_4FGL_J1357.1+1921_daily_bin944.fits scfile=/scratch/kocevski/64456/ft2_4FGL_J1357.1+1921_daily_bin944.fits outfile=/scratch/kocevski/64456/cmap_484012801_484272001_4FGL_J1357.1+1921_daily_bin944.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.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.602       1.0000         .10000E-03   10000.    
     2 'norm      '    7.3419       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.4941       1.0000         .10000E-03   10000.    
     4 'norm      '    21.002       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.268       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10634E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .63514       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.819       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.3439       1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.056       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.0235       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.6540       1.0000         .10000E-03   10000.    
    16 'norm      '    4.4575       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.647       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0286       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0437       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=   6086.928     FROM MIGRAD    STATUS=CONVERGED    387 CALLS     1907 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.603        11.899       -.16058E-06   -.13015E-04
   2  norm          7.3422        6.8852        .17060E-05   -.86640E-03
   3  Prefactor     7.4870        44.709       -.26166E-05   -.60741E-04
   4  norm          21.003        12.270       -.79058E-06   -.92600E-04
   5  Prefactor     .10000E-03    22.465       -.77059E-07** at limit **
   6  Prefactor     26.273        24.162       -.65039E-06   -.11765E-03
   7  Prefactor     .10000E-03    146.02        .20288E-05** at limit **
   8  Prefactor     .10000E-03    2.2833        .57047E-07** at limit **
   9  Prefactor     .63472        2.8199        .99246E-06   -.31218E-03
  10  Prefactor     16.817        12.942        .49623E-06    .21531E-03
  11  Prefactor     6.3449        11.680        .30261E-06    .15827E-04
  12  Prefactor     20.057        30.847       -.24033E-07   -.36889E-06
  13  Prefactor     .10000E-03    3.9895        .33884E-07** at limit **
  14  norm          5.0235        2.6214        .36343E-07    .12238E-03
  15  Prefactor     7.6540        6.6765        .66083E-07   -.11308E-03
  16  norm          4.4574        2.7022        .58703E-07   -.95113E-05
  17  Prefactor     15.627        35.243       -.56155E-05   -.24784E-03
  18  Normalizat    1.0284        .20181       -.33979E-06   -.25592E-04
  19  Prefactor     1.0438        .17081        .33795E-06   -.54621E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.6025
  norm       = 7.34224
  Prefactor  = 7.487
  norm       = 21.003
  Prefactor  = 0.0001
  Prefactor  = 26.2728
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.634719
  Prefactor  = 16.8174
  Prefactor  = 6.3449
  Prefactor  = 20.0569
  Prefactor  = 0.0001
  norm       = 5.02346
  Prefactor  = 7.65399
  norm       = 4.45738
  Prefactor  = 15.6269
  Normalizat = 1.02844
  Prefactor  = 1.04378
 **********
 **   18 **HESSE 
 **********

 FCN=   6086.928     FROM HESSE     STATUS=OK           276 CALLS     2183 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.603        11.902        .11761E-03   -1.5027    
   2  norm          7.3422        7.3934        .74012E-03   -1.5166    
   3  Prefactor     7.4870        45.727        .14650E-03   -1.5161    
   4  norm          21.003        12.362        .87401E-04   -1.4791    
   5  Prefactor     .10000E-03    22.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     26.273        24.354        .78163E-04   -1.4682    
   7  Prefactor     .10000E-03    148.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.106        .22610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .63472        2.8299        .25949E-03   -1.5549    
  10  Prefactor     16.817        12.999        .97661E-04   -1.4888    
  11  Prefactor     6.3449        11.691        .15936E-03   -1.5204    
  12  Prefactor     20.057        30.836        .89435E-04   -1.4812    
  13  Prefactor     .10000E-03    4.0030        .15206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.0235        2.6230        .88403E-04   -1.5260    
  15  Prefactor     7.6540        6.6662        .14495E-03   -1.5155    
  16  norm          4.4574        2.7014        .95974E-04   -1.5286    
  17  Prefactor     15.627        38.052        .10125E-03   -1.4917    
  18  Normalizat    1.0284        .23171        .26373E-03   -.92084    
  19  Prefactor     1.0438        .19778        .22988E-03   -.91284    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36939e-09
Minuit parameter uncertainties:
  1  11.9041
  2  7.39434
  3  37.0478
  4  12.3637
  5  1.6043e-05
  6  24.363
  7  0.000786812
  8  1.9888e-05
  9  2.68042
  10  13.0007
  11  11.6947
  12  30.8608
  13  5.00526e-06
  14  2.62303
  15  6.66687
  16  2.70144
  17  38.1107
  18  0.231935
  19  0.197921
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  6.345e+00  1.169e+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.044e+00  1.979e-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.028e+00  2.319e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/64456/likelihoodResults_484012801_484272001_4FGL_J1357.1+1921_daily_bin944.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) = 6086.17811534
delta logL = 0.749936860708

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6086.10133263
delta logL = 0.826719571906

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .38066       1.0000         .10000E-03   10000.    
     2 'Index     '    5.8927       1.0000          .0000       10.000    
     3 'Normalizat'    .97027       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0791       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=   6086.101     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      275 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .37980        4.6341        .84213E-02    .69110E-03
   2  Index         5.8968        3.5821        .20168        .73164E-04
   3  Normalizat    .97018        .43485E-01    .45793E-01   -.30487E-04
   4  Prefactor     1.0792        .38365E-01    .38440E-01   -.47726E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.379796
  Index      = 5.8968
  Normalizat = 0.970184
  Prefactor  = 1.07923
 **********
 **   18 **HESSE 
 **********

 FCN=   6086.101     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      310 TOTAL
                     EDM=   .41E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .37980        12.433        .38626E-03   -1.5585    
   2  Index         5.8968        7.9437        .73178E-02    .18034    
   3  Normalizat    .97018        .16648        .27044E-03   -.94036    
   4  Prefactor     1.0792        .14487        .22644E-03   -.90133    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.06863e-07
Minuit parameter uncertainties:
  1  4.3465
  2  8.31212
  3  0.166573
  4  0.144927
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/64456': 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) = 6086.10132317
delta logL = 0.826729031134

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  3.798e-01  4.347e+00  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  5.897e+00  8.312e+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.079e+00  1.449e-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:  9.702e-01  1.666e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.08
Ra Dec: 209.290 19.361
Photon Index (Free Index): 5.90 +/- 8.31
Photon Flux (Free Index): 6.54e-08 +/- 5.61e-08
Energy Flux (Free Index): 8.19e-06 +/- 9.20e-06

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/64456/cmap_HighResolution_484012801_484272001_4FGL_J1357.1+1921_daily_bin944.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.58e-03', comment='SUCCESS', energy_flux2='8.19e-06', dlogl='8.27e-01', photon_flux2='6.54e-08', job_status='DONE', time_completed='2021-09-08 18:04:53.067353', photon_index_error2='8.31', photon_index2='5.90', ts='0.34', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.21e-07', energy_flux_error2='9.20e-06', EG='1.03', time_epoch_completed='1631149493.07', return_code='0', job_id='64456', GAL2='1.08', EG2='0.97', return_code2='102', photon_flux_error2='5.61e-08', ts2='2.08', photon_index='2.76' WHERE bin_id='944' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 18:04:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 64456: <4FGL_J1357.1+1921_daily_bin944> in cluster <slac> Done

Job <4FGL_J1357.1+1921_daily_bin944> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 17:55:34 2021
Job was executed on host(s) <bullet0150>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 17:55:35 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:55:35 2021
Terminated at Wed Sep  8 18:04:53 2021
Results reported at Wed Sep  8 18:04:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin944 209.29 19.3608 484012801 484272001 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 :                                   543.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   558 sec.
    Turnaround time :                            559 sec.

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

