/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 9 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 = 7411
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1357.1+1921_daily_bin251
RA = 209.29, Dec = 19.3608
tmin = 304387201, tmax = 304646401
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='61146', job_status='RUN', time_executed='2021-09-08 17:46:00.025972', time_epoch_executed='1631148360.03' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='251'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/61146

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/61146/ft1_4FGL_J1357.1+1921_daily_bin251.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/61146/ft2_4FGL_J1357.1+1921_daily_bin251.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/61146/ft1_4FGL_J1357.1+1921_daily_bin251.fits outfile=/scratch/kocevski/61146/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin251.fits ra=209.29 dec=19.3608 rad=12.0 tmin=304387201.0 tmax=304646401.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 4.16
user 3.92
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/61146/ft2_4FGL_J1357.1+1921_daily_bin251.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/61146/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin251.fits evtable="EVENTS" outfile="/scratch/kocevski/61146/ft1_filtered_4FGL_J1357.1+1921_daily_bin251.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/61146/ft1_filtered_4FGL_J1357.1+1921_daily_bin251.fits" evtable="EVENTS" scfile=/scratch/kocevski/61146/ft2_4FGL_J1357.1+1921_daily_bin251.fits sctable="SC_DATA" outfile=/scratch/kocevski/61146/ltcube_304387201_304646401_4FGL_J1357.1+1921_daily_bin251.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/61146/ft2_4FGL_J1357.1+1921_daily_bin251.fits
.....................!
real 12.09
user 11.48
sys 0.58

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/61146/ft1_filtered_4FGL_J1357.1+1921_daily_bin251.fits evtable="EVENTS" scfile=/scratch/kocevski/61146/ft2_4FGL_J1357.1+1921_daily_bin251.fits sctable="SC_DATA" expcube=/scratch/kocevski/61146/ltcube_304387201_304646401_4FGL_J1357.1+1921_daily_bin251.fits outfile=/scratch/kocevski/61146/expmap_304387201_304646401_4FGL_J1357.1+1921_daily_bin251.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/61146/ltcube_304387201_304646401_4FGL_J1357.1+1921_daily_bin251.fits
.....................!
real 192.42
user 187.12
sys 4.98

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/61146/ft1_filtered_4FGL_J1357.1+1921_daily_bin251.fits scfile=/scratch/kocevski/61146/ft2_4FGL_J1357.1+1921_daily_bin251.fits outfile=/scratch/kocevski/61146/cmap_HighResolution_304387201_304646401_4FGL_J1357.1+1921_daily_bin251.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    10.456       1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.602       1.0000         .10000E-03   10000.    
     4 'norm      '    .10142E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.2169       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.054       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.1954       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12948E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11325E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    37.431       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.2768       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.0597       1.0000         .10000E-03   10000.    
    16 'norm      '    .54174       1.0000         .10000E-03   10000.    
    17 'Prefactor '    27.945       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.5727       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .49501       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=   5398.093     FROM MIGRAD    STATUS=CONVERGED    386 CALLS     1886 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.6344       -.12697E-06** at limit **
   2  norm          10.453        6.6117        .10926E-06   -.35975E-03
   3  Prefactor     29.595        30.823       -.49198E-05   -.26702E-03
   4  norm          .10000E-03    7.1884       -.31489E-07** at limit **
   5  Prefactor     .10000E-03    4.9229        .21346E-06** at limit **
   6  Prefactor     3.2082        24.029       -.70608E-05   -.14803E-03
   7  Prefactor     .10000E-03    14.333       -.43425E-06** at limit **
   8  Prefactor     17.052        6.1089        .35479E-08    .29198E-04
   9  Prefactor     2.1945        3.7865        .49409E-06    .81990E-05
  10  Prefactor     .10000E-03    6.8062       -.32560E-07** at limit **
  11  Prefactor     .10000E-03    13.904        .16529E-06** at limit **
  12  Prefactor     37.427        29.181       -.24007E-05   -.16634E-03
  13  Prefactor     .10000E-03    2.4550       -.14263E-06** at limit **
  14  norm          7.2765        3.1715       -.83561E-08    .31118E-04
  15  Prefactor     2.0595        2.5071        .11447E-05   -.23022E-02
  16  norm          .53987        1.9141        .52032E-07   -.45418E-03
  17  Prefactor     27.948        34.323        .17769E-05    .97496E-04
  18  Normalizat    1.5729        .20190        .91907E-06   -.26512E-04
  19  Prefactor     .49505        .16513       -.60467E-06    .55678E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 10.4531
  Prefactor  = 29.5954
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.20817
  Prefactor  = 0.0001
  Prefactor  = 17.0525
  Prefactor  = 2.19447
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.4273
  Prefactor  = 0.0001
  norm       = 7.27648
  Prefactor  = 2.05948
  norm       = 0.53987
  Prefactor  = 27.9479
  Normalizat = 1.57287
  Prefactor  = 0.495047
 **********
 **   18 **HESSE 
 **********

 FCN=   5398.093     FROM HESSE     STATUS=OK           268 CALLS     2154 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.6504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.453        6.6614        .61955E-03   -1.5061    
   3  Prefactor     29.595        31.432        .73638E-04   -1.4619    
   4  norm          .10000E-03    7.2787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.9255        .15924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.2082        24.987        .22587E-03   -1.5350    
   7  Prefactor     .10000E-03    14.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.052        6.1219        .96985E-04   -1.4882    
   9  Prefactor     2.1945        3.7671        .18133E-03   -1.5412    
  10  Prefactor     .10000E-03    30.558        .37022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.442        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     37.427        29.296        .65508E-04   -1.4484    
  13  Prefactor     .10000E-03    2.4620        .11240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.2765        3.1705        .83528E-04   -1.5168    
  15  Prefactor     2.0595        3.6123        .89978E-03   -1.5421    
  16  norm          .53987        1.8798        .18470E-03   -1.5561    
  17  Prefactor     27.948        34.483        .75786E-04   -1.4650    
  18  Normalizat    1.5729        .23932        .21259E-03   -.75751    
  19  Prefactor     .49505        .19409        .29450E-03   -1.1220    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.19633e-09
Minuit parameter uncertainties:
  1  7.64751e-06
  2  6.66186
  3  31.4494
  4  3.89149e-06
  5  1.35285e-05
  6  17.9166
  7  3.0323e-05
  8  6.12217
  9  3.76748
  10  6.89681e-05
  11  1.29003e-05
  12  29.3073
  13  1.71342e-06
  14  3.17062
  15  3.61266
  16  1.88004
  17  34.5076
  18  0.239491
  19  0.194347
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  1.290e-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:  4.950e-01  1.943e-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.573e+00  2.395e-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: 7.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/61146/likelihoodResults_304387201_304646401_4FGL_J1357.1+1921_daily_bin251.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) = 5398.09335717
delta logL = -0.000330524579113

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5398.09302667
delta logL = -2.51548044616e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7772       1.0000          .0000       10.000    
     3 'Normalizat'    1.5728       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49512       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.

 FCN=   5398.093     FROM MIGRAD    STATUS=CONVERGED    125 CALLS      289 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.962        .47141E-01** at limit **
   2  Index         3.5419        5.7882        .50000       -.19283E-04
   3  Normalizat    1.5729        .10594E-01    .21259E-03   -.51125E-04
   4  Prefactor     .49505        .87466E-02    .29450E-03   -.36287E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 3.54185
  Normalizat = 1.57287
  Prefactor  = 0.495046
 **********
 **   18 **HESSE 
 **********

 FCN=   5398.093     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      322 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8306.4        .29265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.5419        5.2130        .50000       -.29593    
   3  Normalizat    1.5729        .15895        .85035E-05   -.75751    
   4  Prefactor     .49505        .11814        .11780E-04   -1.1220    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.94979e-08
Minuit parameter uncertainties:
  1  0.00995171
  2  71.8625
  3  0.158998
  4  0.1182
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/61146': 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) = 5398.09302436
delta logL = 2.28098360822e-06

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  9.952e-03  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  3.542e+00  7.186e+01  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:  4.950e-01  1.182e-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.573e+00  1.590e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 209.290 19.361

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/61146/cmap_HighResolution_304387201_304646401_4FGL_J1357.1+1921_daily_bin251.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.26e-03', job_status='DONE', photon_flux_upper_limit='7.93e-08', time_completed='2021-09-08 17:54:52.153178', job_id='61146', GAL2='0.50', fit_tolerance='1e-08', EG2='1.57', EG='1.57', time_epoch_completed='1631148892.15', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.50', dlogl='2.28e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='251' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:54:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 61146: <4FGL_J1357.1+1921_daily_bin251> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin251 209.29 19.3608 304387201 304646401 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 :                                   519.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   551 sec.
    Turnaround time :                            554 sec.

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

