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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin716
RA = 209.29, Dec = 19.3608
tmin = 424915201, tmax = 425174401
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='62860', job_status='RUN', time_executed='2021-09-08 17:53:43.331897', time_epoch_executed='1631148823.33' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='716'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/62860

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/62860/ft1_4FGL_J1357.1+1921_daily_bin716.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/62860/ft2_4FGL_J1357.1+1921_daily_bin716.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/62860/ft1_4FGL_J1357.1+1921_daily_bin716.fits outfile=/scratch/kocevski/62860/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin716.fits ra=209.29 dec=19.3608 rad=12.0 tmin=424915201.0 tmax=425174401.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.38
user 3.15
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/62860/ft2_4FGL_J1357.1+1921_daily_bin716.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/62860/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin716.fits evtable="EVENTS" outfile="/scratch/kocevski/62860/ft1_filtered_4FGL_J1357.1+1921_daily_bin716.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/62860/ft1_filtered_4FGL_J1357.1+1921_daily_bin716.fits evtable="EVENTS" scfile=/scratch/kocevski/62860/ft2_4FGL_J1357.1+1921_daily_bin716.fits sctable="SC_DATA" expcube=/scratch/kocevski/62860/ltcube_424915201_425174401_4FGL_J1357.1+1921_daily_bin716.fits outfile=/scratch/kocevski/62860/expmap_424915201_425174401_4FGL_J1357.1+1921_daily_bin716.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/62860/ltcube_424915201_425174401_4FGL_J1357.1+1921_daily_bin716.fits
.....................!
real 191.39
user 185.45
sys 5.62

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/62860/ft1_filtered_4FGL_J1357.1+1921_daily_bin716.fits scfile=/scratch/kocevski/62860/ft2_4FGL_J1357.1+1921_daily_bin716.fits outfile=/scratch/kocevski/62860/cmap_424915201_425174401_4FGL_J1357.1+1921_daily_bin716.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.53
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.130       1.0000         .10000E-03   10000.    
     2 'norm      '    3.1077       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    7.9264       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.7601       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.472       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1257       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11780E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.277       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .41429       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.6437       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.3262       1.0000         .10000E-03   10000.    
    16 'norm      '    2.2511       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.4319       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .69865       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5789.586     FROM MIGRAD    STATUS=CONVERGED    406 CALLS     1901 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.132        13.974         .0000        .75859E-03
   2  norm          3.1074        8.4968         .0000        .23596E-02
   3  Prefactor     .10000E-03    28.688         .0000    ** at limit **
   4  norm          7.9317        13.344         .0000        .27066E-02
   5  Prefactor     2.7585        18.472         .0000        .24319E-02
   6  Prefactor     .10000E-03    12.424         .0000    ** at limit **
   7  Prefactor     11.475        40.996         .0000       -.13145E-04
   8  Prefactor     1.1249        3.8355         .0000        .11008E-02
   9  Prefactor     .10000E-03    1.4990         .0000    ** at limit **
  10  Prefactor     .10000E-03    14.010         .0000    ** at limit **
  11  Prefactor     12.274        14.437         .0000       -.62510E-03
  12  Prefactor     .36518        15.344         .0000        .11979E-03
  13  Prefactor     .10000E-03    5.3977         .0000    ** at limit **
  14  norm          7.6424        2.9429         .0000       -.43397E-04
  15  Prefactor     2.3276        5.8791         .0000        .14669E-01
  16  norm          2.2517        3.3579         .0000        .77622E-03
  17  Prefactor     .10000E-03    20.738         .0000    ** at limit **
  18  Normalizat    1.4319        .19908         .0000        .39140E-04
  19  Prefactor     .69865        .15936         .0000        .32356E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.1323
  norm       = 3.10736
  Prefactor  = 0.0001
  norm       = 7.93168
  Prefactor  = 2.7585
  Prefactor  = 0.0001
  Prefactor  = 11.4751
  Prefactor  = 1.12494
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.2739
  Prefactor  = 0.365178
  Prefactor  = 0.0001
  norm       = 7.64241
  Prefactor  = 2.32762
  norm       = 2.2517
  Prefactor  = 0.0001
  Normalizat = 1.43193
  Prefactor  = 0.698655
 **********
 **   18 **HESSE 
 **********

 FCN=   5789.586     FROM HESSE     STATUS=OK           270 CALLS     2171 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.132        13.963        .11502E-03   -1.5011    
   2  norm          3.1074        8.2314        .23002E-03   -1.5355    
   3  Prefactor     .10000E-03    28.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.9317        13.010        .14242E-03   -1.5145    
   5  Prefactor     2.7585        18.469        .12250E-02   -1.5376    
   6  Prefactor     .10000E-03    12.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.475        41.019        .11828E-03   -1.5030    
   8  Prefactor     1.1249        3.8558        .26020E-03   -1.5496    
   9  Prefactor     .10000E-03    1.5031        .90971E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.274        14.534        .11433E-03   -1.5007    
  12  Prefactor     .36518        284.75        .56884E-02   -1.5587    
  13  Prefactor     .10000E-03    5.4716        .17248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.6424        2.9434        .78633E-04   -1.5155    
  15  Prefactor     2.3276        5.8425        .13446E-02   -1.5403    
  16  norm          2.2517        3.3388        .16054E-03   -1.5408    
  17  Prefactor     .10000E-03    20.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.4319        .23731        .22471E-03   -.79709    
  19  Prefactor     .69865        .18901        .25775E-03   -1.0358    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.125e-08
Minuit parameter uncertainties:
  1  13.9667
  2  8.23439
  3  7.63311e-05
  4  13.0151
  5  14.2815
  6  6.21491e-05
  7  41.1203
  8  3.85668
  9  5.99458e-07
  10  0.000132387
  11  14.5384
  12  20.4903
  13  2.72304e-06
  14  2.94343
  15  5.84397
  16  3.3391
  17  5.00286e-05
  18  0.237492
  19  0.18918
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.227e+01  1.454e+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:  6.987e-01  1.892e-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.432e+00  2.375e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/62860/likelihoodResults_424915201_425174401_4FGL_J1357.1+1921_daily_bin716.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) = 5787.98895178
delta logL = 1.59666847103

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5787.98575246
delta logL = 1.59986779064

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .75674       1.0000         .10000E-03   10000.    
     2 'Index     '    5.8577       1.0000          .0000       10.000    
     3 'Normalizat'    1.3307       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76042       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=   5787.986     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      252 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .74598        6.2296        .80827E-02    .51669E-03
   2  Index         5.8681        3.4357        .14013        .91811E-04
   3  Normalizat    1.3308        .56110E-01    .52310E-01   -.10439E-04
   4  Prefactor     .76038        .46947E-01    .43200E-01    .54489E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.745979
  Index      = 5.86806
  Normalizat = 1.3308
  Prefactor  = 0.760378
 **********
 **   18 **HESSE 
 **********

 FCN=   5787.986     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      285 TOTAL
                     EDM=   .27E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .74598        12.017        .36364E-04   -1.5535    
   2  Index         5.8681        7.5741        .56235E-02    .17450    
   3  Normalizat    1.3308        .20481        .23128E-03   -.82652    
   4  Prefactor     .76038        .16793        .24787E-03   -1.0121    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.65996e-07
Minuit parameter uncertainties:
  1  5.98904
  2  5.91879
  3  0.204933
  4  0.16804
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/62860': 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) = 5787.98574154
delta logL = 1.5998787154

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  7.460e-01  5.989e+00  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  5.868e+00  5.919e+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:  7.604e-01  1.680e-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.331e+00  2.049e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.30
Ra Dec: 209.290 19.361
Photon Index (Free Index): 5.87 +/- 5.92
Photon Flux (Free Index): 1.24e-07 +/- 7.33e-08
Energy Flux (Free Index): 1.55e-05 +/- 1.15e-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/62860/cmap_HighResolution_424915201_425174401_4FGL_J1357.1+1921_daily_bin716.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.26e-02', comment='SUCCESS', energy_flux2='1.55e-05', dlogl='1.60e+00', photon_flux2='1.24e-07', job_status='DONE', time_completed='2021-09-08 18:02:32.255095', photon_index_error2='5.92', photon_index2='5.87', ts='0.86', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='1.59e-07', energy_flux_error2='1.15e-05', EG='1.43', time_epoch_completed='1631149352.26', return_code='0', job_id='62860', GAL2='0.76', EG2='1.33', return_code2='102', photon_flux_error2='7.33e-08', ts2='4.30', photon_index='2.76' WHERE bin_id='716' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 18:02:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 62860: <4FGL_J1357.1+1921_daily_bin716> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin716 209.29 19.3608 424915201 425174401 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 :                                   526.04 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             263.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            716 sec.

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

