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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin755
RA = 209.29, Dec = 19.3608
tmin = 435024001, tmax = 435283201
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='62921', job_status='RUN', time_executed='2021-09-08 17:53:05.932197', time_epoch_executed='1631148785.93' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='755'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/62921

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/62921/ft1_4FGL_J1357.1+1921_daily_bin755.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/62921/ft2_4FGL_J1357.1+1921_daily_bin755.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/62921/ft1_4FGL_J1357.1+1921_daily_bin755.fits outfile=/scratch/kocevski/62921/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin755.fits ra=209.29 dec=19.3608 rad=12.0 tmin=435024001.0 tmax=435283201.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.04
user 4.77
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/62921/ft2_4FGL_J1357.1+1921_daily_bin755.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/62921/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin755.fits evtable="EVENTS" outfile="/scratch/kocevski/62921/ft1_filtered_4FGL_J1357.1+1921_daily_bin755.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/62921/ft1_filtered_4FGL_J1357.1+1921_daily_bin755.fits" evtable="EVENTS" scfile=/scratch/kocevski/62921/ft2_4FGL_J1357.1+1921_daily_bin755.fits sctable="SC_DATA" outfile=/scratch/kocevski/62921/ltcube_435024001_435283201_4FGL_J1357.1+1921_daily_bin755.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/62921/ft2_4FGL_J1357.1+1921_daily_bin755.fits
.....................!
real 12.40
user 12.04
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/62921/ft1_filtered_4FGL_J1357.1+1921_daily_bin755.fits evtable="EVENTS" scfile=/scratch/kocevski/62921/ft2_4FGL_J1357.1+1921_daily_bin755.fits sctable="SC_DATA" expcube=/scratch/kocevski/62921/ltcube_435024001_435283201_4FGL_J1357.1+1921_daily_bin755.fits outfile=/scratch/kocevski/62921/expmap_435024001_435283201_4FGL_J1357.1+1921_daily_bin755.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/62921/ltcube_435024001_435283201_4FGL_J1357.1+1921_daily_bin755.fits
.....................!
real 191.72
user 185.56
sys 5.77

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/62921/ft1_filtered_4FGL_J1357.1+1921_daily_bin755.fits scfile=/scratch/kocevski/62921/ft2_4FGL_J1357.1+1921_daily_bin755.fits outfile=/scratch/kocevski/62921/cmap_435024001_435283201_4FGL_J1357.1+1921_daily_bin755.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.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.9140       1.0000         .10000E-03   10000.    
     2 'norm      '    .10190E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .33748E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    8.1117       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.1817       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.650       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.9911       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.0661       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .59137       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.510       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.9205       1.0000         .10000E-03   10000.    
    14 'norm      '    1.3232       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .81706       1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.112       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1199       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1410       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=   8575.818     FROM MIGRAD    STATUS=CONVERGED    399 CALLS     1901 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.9149        14.625       -.90432E-06   -.26419E-05
   2  norm          .10000E-03    4.0507        .55831E-06** at limit **
   3  Prefactor     .10000E-03    212.27       -.12781E-04** at limit **
   4  norm          8.1192        8.3948       -.79187E-05   -.87546E-04
   5  Prefactor     4.1966        19.675       -.27612E-04   -.38163E-04
   6  Prefactor     18.652        16.273        .50856E-08    .78720E-04
   7  Prefactor     7.9565        39.045       -.26508E-04    .16396E-04
   8  Prefactor     8.0670        4.7932       -.12546E-05    .30481E-04
   9  Prefactor     .59659        2.3794       -.12601E-05    .37821E-03
  10  Prefactor     16.505        12.455       -.14941E-05    .15073E-03
  11  Prefactor     .10000E-03    8.7709       -.24394E-06** at limit **
  12  Prefactor     .10000E-03    16.862       -.87691E-06** at limit **
  13  Prefactor     5.9227        4.9164       -.46641E-06   -.28035E-04
  14  norm          1.3238        1.3450       -.12537E-06   -.15422E-03
  15  Prefactor     .10000E-03    3.7050       -.77979E-07** at limit **
  16  norm          .81986        2.1647       -.17954E-05   -.19783E-02
  17  Prefactor     18.071        29.935       -.58519E-06    .51611E-04
  18  Normalizat    1.1201        .17236        .43166E-05    .26347E-03
  19  Prefactor     1.1406        .14289        .60984E-06    .63104E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.91494
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 8.11916
  Prefactor  = 4.19661
  Prefactor  = 18.6519
  Prefactor  = 7.95647
  Prefactor  = 8.06704
  Prefactor  = 0.59659
  Prefactor  = 16.5053
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.92266
  norm       = 1.32378
  Prefactor  = 0.0001
  norm       = 0.81986
  Prefactor  = 18.0708
  Normalizat = 1.12008
  Prefactor  = 1.14063
 **********
 **   18 **HESSE 
 **********

 FCN=   8575.818     FROM HESSE     STATUS=OK           276 CALLS     2177 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.9149        14.622        .12726E-03   -1.5078    
   2  norm          .10000E-03    4.0866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    219.17        .39394E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.1192        8.4002        .14077E-03   -1.5138    
   5  Prefactor     4.1966        19.647        .19708E-03   -1.5298    
   6  Prefactor     18.652        16.266        .92744E-04   -1.4844    
   7  Prefactor     7.9565        38.926        .14184E-03   -1.5144    
   8  Prefactor     8.0670        4.8086        .14117E-03   -1.5140    
   9  Prefactor     .59659        8.3770        .27031E-02   -1.5553    
  10  Prefactor     16.505        12.430        .98569E-04   -1.4895    
  11  Prefactor     .10000E-03    8.8467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.9227        4.9155        .16504E-03   -1.5221    
  14  norm          1.3238        1.3417        .10506E-03   -1.5478    
  15  Prefactor     .10000E-03    3.7628        .17384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .81986        2.1756        .21054E-03   -1.5527    
  17  Prefactor     18.071        29.854        .94109E-04   -1.4858    
  18  Normalizat    1.1201        .20870        .27819E-03   -.89110    
  19  Prefactor     1.1406        .17480        .22916E-03   -.88178    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.82221e-09
Minuit parameter uncertainties:
  1  14.6268
  2  0.000118374
  3  2.44049e-05
  4  8.40145
  5  18.1699
  6  16.2701
  7  35.2341
  8  4.80879
  9  4.47146
  10  12.432
  11  4.25535e-05
  12  5.61179e-05
  13  4.91588
  14  1.3417
  15  2.23068e-05
  16  2.1758
  17  29.8785
  18  0.208854
  19  0.174888
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  4.255e-05  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.141e+00  1.749e-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.120e+00  2.089e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 209.290 19.361
Photon Flux Upper Limit: 8.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/62921/likelihoodResults_435024001_435283201_4FGL_J1357.1+1921_daily_bin755.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): 102
logL (Free Index) = 8575.81879228
delta logL = -0.000538743990546

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8575.81825372
delta logL = -1.79568814929e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7751       1.0000          .0000       10.000    
     3 'Normalizat'    1.1200       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1407       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8575.345     FROM MIGRAD    STATUS=FAILED       174 CALLS      334 TOTAL
                     EDM=   .63E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .79363E-03    .50200E-01    .67351E-03** at limit **
   2  Index        10.0000        9.3157        .50000    ** at limit **
   3  Normalizat    1.0760        .68290E-01    .27819E-03   -.75359E-04
   4  Prefactor     1.1647        .52910E-01    .22916E-03   -.62708E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8575.345     FROM SIMPLEX   STATUS=UNCHANGED    148 CALLS      482 TOTAL
                     EDM=   .40E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .79363E-03    .50200E-01    .27859E-07** at limit **
   2  Index        10.0000        9.3157        .85210E-02** at limit **
   3  Normalizat    1.0760        .68290E-01    .75357E-07   -.75359E-04
   4  Prefactor     1.1647        .52910E-01    .15409E-07   -.62708E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8575.345     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      522 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .79363E-03    .11160E-02    .34806E-04** at limit **
   2  Index        10.0000        6.2238        .50000    ** at limit **
   3  Normalizat    1.0760        .20945        .11127E-04   -.75196E-04
   4  Prefactor     1.1647        .17195        .91663E-05   -.63006E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000793625
  Index      = 10
  Normalizat = 1.07603
  Prefactor  = 1.16466
 **********
 **   18 **HESSE 
 **********

 FCN=   8575.345     FROM HESSE     STATUS=OK            31 CALLS      553 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .79363E-03    .10655E-02    .13922E-05   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        2.2540        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0760        .20957        .22255E-05   -.90525    
   4  Prefactor     1.1647        .17196        .18333E-05   -.87426    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0702e-11
Minuit parameter uncertainties:
  1  0.00106546
  2  2.18403e-05
  3  0.209727
  4  0.172041
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/62921': 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) = 8575.34461109
delta logL = 0.473642448353

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  7.936e-04  1.065e-03  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  1.000e+01  2.184e-05  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.165e+00  1.720e-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.076e+00  2.097e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.00
Ra Dec: 209.290 19.361
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 4.08e-08 +/- 5.30e-08
Energy Flux (Free Index): 4.56e-06 +/- 5.97e-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/62921/cmap_HighResolution_435024001_435283201_4FGL_J1357.1+1921_daily_bin755.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.01e-03', comment='SUCCESS', energy_flux2='4.56e-06', dlogl='4.74e-01', photon_flux2='4.08e-08', job_status='DONE', time_completed='2021-09-08 18:03:56.186321', photon_index_error2='0.00', photon_index2='10.00', ts='-0.00', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='8.87e-08', energy_flux_error2='5.97e-06', EG='1.12', time_epoch_completed='1631149436.19', return_code='0', job_id='62921', GAL2='1.16', EG2='1.08', return_code2='0', photon_flux_error2='5.30e-08', ts2='1.00', photon_index='2.76' WHERE bin_id='755' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 18:03:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 62921: <4FGL_J1357.1+1921_daily_bin755> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin755 209.29 19.3608 435024001 435283201 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 :                                   648.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             282.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            796 sec.

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

