/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 99 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 = 7408
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1357.1+1921_daily_bin187
RA = 209.29, Dec = 19.3608
tmin = 287798401, tmax = 288057601
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='61038', job_status='RUN', time_executed='2021-09-08 17:47:30.351595', time_epoch_executed='1631148450.35' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='187'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/61038

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/61038/ft1_4FGL_J1357.1+1921_daily_bin187.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/61038/ft2_4FGL_J1357.1+1921_daily_bin187.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/61038/ft1_4FGL_J1357.1+1921_daily_bin187.fits outfile=/scratch/kocevski/61038/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin187.fits ra=209.29 dec=19.3608 rad=12.0 tmin=287798401.0 tmax=288057601.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.62
user 3.37
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/61038/ft1_filtered_4FGL_J1357.1+1921_daily_bin187.fits evtable="EVENTS" scfile=/scratch/kocevski/61038/ft2_4FGL_J1357.1+1921_daily_bin187.fits sctable="SC_DATA" expcube=/scratch/kocevski/61038/ltcube_287798401_288057601_4FGL_J1357.1+1921_daily_bin187.fits outfile=/scratch/kocevski/61038/expmap_287798401_288057601_4FGL_J1357.1+1921_daily_bin187.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/61038/ltcube_287798401_288057601_4FGL_J1357.1+1921_daily_bin187.fits
.....................!
real 191.08
user 186.02
sys 4.63

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/61038/ft1_filtered_4FGL_J1357.1+1921_daily_bin187.fits scfile=/scratch/kocevski/61038/ft2_4FGL_J1357.1+1921_daily_bin187.fits outfile=/scratch/kocevski/61038/cmap_287798401_288057601_4FGL_J1357.1+1921_daily_bin187.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=209.29 yref=19.3608 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/61038/ft1_filtered_4FGL_J1357.1+1921_daily_bin187.fits scfile=/scratch/kocevski/61038/ft2_4FGL_J1357.1+1921_daily_bin187.fits outfile=/scratch/kocevski/61038/cmap_HighResolution_287798401_288057601_4FGL_J1357.1+1921_daily_bin187.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    4.2079       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    16.517       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    29.513       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11550E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.5318       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.1937       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.542       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.221       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .83697       1.0000         .10000E-03   10000.    
    14 'norm      '    1.8486       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.913       1.0000         .10000E-03   10000.    
    16 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.9685       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .85744       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2044       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=   6369.143     FROM MIGRAD    STATUS=CONVERGED    399 CALLS     1916 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.6465        .69873E-06** at limit **
   2  norm          4.2087        7.6473       -.84284E-06   -.14031E-03
   3  Prefactor     .10000E-03    6.4293        .23505E-07** at limit **
   4  norm          16.515        10.213        .28067E-06    .19628E-03
   5  Prefactor     .10000E-03    6.9755       -.50253E-06** at limit **
   6  Prefactor     29.516        25.972        .18489E-05    .49293E-03
   7  Prefactor     .10000E-03    62.975       -.18303E-06** at limit **
   8  Prefactor     2.5311        4.5475        .15323E-05    .13637E-02
   9  Prefactor     .10000E-03    2.0026        .19392E-07** at limit **
  10  Prefactor     9.1930        15.190       -.65388E-07   -.33683E-04
  11  Prefactor     14.539        16.162        .97548E-07    .67887E-05
  12  Prefactor     13.199        40.311       -.61661E-06   -.56399E-04
  13  Prefactor     .83112        25.850        .12385E-04   -.38530E-03
  14  norm          1.8484        1.6755       -.57082E-07   -.35553E-03
  15  Prefactor     12.915        9.9178       -.13481E-05   -.76135E-03
  16  norm          .10000E-03    .85213       -.51731E-07** at limit **
  17  Prefactor     8.7683        47.696        .26327E-05    .32109E-04
  18  Normalizat    .85741        .20637        .11015E-05    .83088E-04
  19  Prefactor     1.2045        .16672       -.11411E-05   -.14755E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  norm       = 4.20875
  Prefactor  = 0.0001
  norm       = 16.515
  Prefactor  = 0.0001
  Prefactor  = 29.5161
  Prefactor  = 0.0001
  Prefactor  = 2.5311
  Prefactor  = 0.0001
  Prefactor  = 9.19296
  Prefactor  = 14.5391
  Prefactor  = 13.1986
  Prefactor  = 0.831123
  norm       = 1.84844
  Prefactor  = 12.9148
  norm       = 0.0001
  Prefactor  = 8.76827
  Normalizat = 0.857411
  Prefactor  = 1.2045
 **********
 **   18 **HESSE 
 **********

 FCN=   6369.143     FROM HESSE     STATUS=OK           272 CALLS     2188 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.6917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.2087        7.5145        .19645E-03   -1.5298    
   3  Prefactor     .10000E-03    6.4298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          16.515        10.184        .98549E-04   -1.4895    
   5  Prefactor     .10000E-03    6.9983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     29.516        26.330        .73749E-04   -1.4621    
   7  Prefactor     .10000E-03    63.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.5311        4.7093        .22622E-03   -1.5390    
   9  Prefactor     .10000E-03    2.0318        .11027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.1930        15.165        .13218E-03   -1.5101    
  11  Prefactor     14.539        16.244        .10503E-03   -1.4945    
  12  Prefactor     13.199        39.458        .11016E-03   -1.4981    
  13  Prefactor     .83112        28.711        .33878E-02   -1.5526    
  14  norm          1.8484        1.6873        .95698E-04   -1.5436    
  15  Prefactor     12.915        9.7033        .11147E-03   -1.4989    
  16  norm          .10000E-03    .85730        .71926E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.7683        47.775        .13384E-03   -1.5116    
  18  Normalizat    .85741        .24145        .29794E-03   -.97973    
  19  Prefactor     1.2045        .19482        .21637E-03   -.86193    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22052e-09
Minuit parameter uncertainties:
  1  0.000145664
  2  7.51618
  3  3.29304e-06
  4  10.1849
  5  9.69254e-05
  6  26.3404
  7  7.41379e-05
  8  4.71003
  9  1.67634e-06
  10  15.1717
  11  16.2493
  12  39.5365
  13  9.7743
  14  1.68736
  15  9.70445
  16  3.68764e-06
  17  40.9847
  18  0.24175
  19  0.194934
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.454e+01  1.625e+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.204e+00  1.949e-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:  8.574e-01  2.418e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.02
Ra Dec: 209.290 19.361
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 5.65e-08 +/- 6.31e-08
Energy Flux (Fixed Index): 1.30e-05 +/- 1.46e-05

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

Saving results to:
/scratch/kocevski/61038/likelihoodResults_287798401_288057601_4FGL_J1357.1+1921_daily_bin187.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) = 6367.88008121
delta logL = 1.26317259389

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6367.85007143
delta logL = 1.29318236751

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3448       1.0000         .10000E-03   10000.    
     2 'Index     '    4.9021       1.0000          .0000       10.000    
     3 'Normalizat'    .73477       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2761       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=   6367.850     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      268 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3485        29.694        .55325E-02    .47733E-03
   2  Index         4.9019        3.6126        .14818        .12077E-03
   3  Normalizat    .73486        .64581E-01    .72169E-01    .27028E-04
   4  Prefactor     1.2760        .54633E-01    .47729E-01   -.83843E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.34845
  Index      = 4.9019
  Normalizat = 0.734864
  Prefactor  = 1.27597
 **********
 **   18 **HESSE 
 **********

 FCN=   6367.850     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      301 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3485        48.472        .77329E-04   -1.5342    
   2  Index         4.9019        7.2830        .57242E-02   -.19622E-01
   3  Normalizat    .73486        .22008        .31941E-03   -1.0253    
   4  Prefactor     1.2760        .18658        .21099E-03   -.84024    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.00906e-10
Minuit parameter uncertainties:
  1  25.5043
  2  5.91134
  3  0.220347
  4  0.186678
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/61038': 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) = 6367.85006971
delta logL = 1.2931840861

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  3.348e+00  2.550e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  4.902e+00  5.911e+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.276e+00  1.867e-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:  7.349e-01  2.203e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.01
Ra Dec: 209.290 19.361
Photon Index (Free Index): 4.90 +/- 5.91
Photon Flux (Free Index): 1.57e-07 +/- 9.10e-08
Energy Flux (Free Index): 2.11e-05 +/- 1.72e-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/61038/cmap_HighResolution_287798401_288057601_4FGL_J1357.1+1921_daily_bin187.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.42e-02', comment='SUCCESS', photon_flux='5.65e-08', energy_flux2='2.11e-05', photon_flux_error='6.31e-08', dlogl='1.29e+00', energy_flux='1.30e-05', photon_flux2='1.57e-07', job_status='DONE', time_completed='2021-09-08 17:57:33.663724', photon_index_error2='5.91', photon_index2='4.90', ts='1.02', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', photon_flux_upper_limit='1.80e-07', energy_flux_error2='1.72e-05', EG='0.86', time_epoch_completed='1631149053.66', return_code='0', job_id='61038', GAL2='1.28', EG2='0.73', return_code2='102', energy_flux_error='1.46e-05', photon_flux_error2='9.10e-08', ts2='4.01', photon_index='2.76' WHERE bin_id='187' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:57:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 61038: <4FGL_J1357.1+1921_daily_bin187> in cluster <slac> Done

Job <4FGL_J1357.1+1921_daily_bin187> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 17:45:33 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 17:45: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:45:35 2021
Terminated at Wed Sep  8 17:57:34 2021
Results reported at Wed Sep  8 17:57:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin187 209.29 19.3608 287798401 288057601 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 :                                   541.01 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             283.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   718 sec.
    Turnaround time :                            721 sec.

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

