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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin275
RA = 209.29, Dec = 19.3608
tmin = 310608001, tmax = 310867201
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='61184', job_status='RUN', time_executed='2021-09-08 17:46:02.832705', time_epoch_executed='1631148362.83' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='275'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/61184

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/61184/ft1_4FGL_J1357.1+1921_daily_bin275.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/61184/ft2_4FGL_J1357.1+1921_daily_bin275.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/61184/ft1_4FGL_J1357.1+1921_daily_bin275.fits outfile=/scratch/kocevski/61184/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin275.fits ra=209.29 dec=19.3608 rad=12.0 tmin=310608001.0 tmax=310867201.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.48
user 3.28
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/61184/ft1_filtered_4FGL_J1357.1+1921_daily_bin275.fits" evtable="EVENTS" scfile=/scratch/kocevski/61184/ft2_4FGL_J1357.1+1921_daily_bin275.fits sctable="SC_DATA" outfile=/scratch/kocevski/61184/ltcube_310608001_310867201_4FGL_J1357.1+1921_daily_bin275.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/61184/ft2_4FGL_J1357.1+1921_daily_bin275.fits
.....................!
real 12.37
user 12.06
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/61184/ft1_filtered_4FGL_J1357.1+1921_daily_bin275.fits evtable="EVENTS" scfile=/scratch/kocevski/61184/ft2_4FGL_J1357.1+1921_daily_bin275.fits sctable="SC_DATA" expcube=/scratch/kocevski/61184/ltcube_310608001_310867201_4FGL_J1357.1+1921_daily_bin275.fits outfile=/scratch/kocevski/61184/expmap_310608001_310867201_4FGL_J1357.1+1921_daily_bin275.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/61184/ltcube_310608001_310867201_4FGL_J1357.1+1921_daily_bin275.fits
.....................!
real 191.26
user 186.55
sys 4.32

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.1958       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.251       1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.846       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.1271       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.7221       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .62616E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.2540       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1844       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0559       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=   6430.273     FROM MIGRAD    STATUS=CONVERGED    398 CALLS     1680 TOTAL
                     EDM=   .96E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    10.804       -.12402E-05** at limit **
   2  norm          .10000E-03    1.7077       -.38073E-06** at limit **
   3  Prefactor     .10000E-03    18.943       -.62017E-06** at limit **
   4  norm          3.1952        4.7399       -.13181E-05    .57001E-06
   5  Prefactor     .10000E-03    12.536        .20913E-05** at limit **
   6  Prefactor     .10000E-03    22.500        .11864E-05** at limit **
   7  Prefactor     23.184        44.703        .10912E-04    .45739E-05
   8  Prefactor     18.845        7.2733        .59058E-06   -.12933E-04
   9  Prefactor     .10000E-03    2.6551        .18243E-05** at limit **
  10  Prefactor     9.1239        16.401       -.13592E-05   -.67588E-05
  11  Prefactor     .10000E-03    14.020       -.65708E-05** at limit **
  12  Prefactor     .10000E-03    13.429       -.10993E-05** at limit **
  13  Prefactor     .10000E-03    5.9605       -.64457E-06** at limit **
  14  norm          4.7220        2.7998       -.10894E-06   -.11601E-03
  15  Prefactor     .10000E-03    54.990        .23994E-04** at limit **
  16  norm          .10000E-03    .94772        .13758E-05** at limit **
  17  Prefactor     6.2178        69.747        .20398E-05   -.27969E-04
  18  Normalizat    1.1844        .19480       -.54342E-06   -.22332E-03
  19  Prefactor     1.0559        .16233       -.18757E-05   -.13327E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.19518
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.1842
  Prefactor  = 18.8448
  Prefactor  = 0.0001
  Prefactor  = 9.12395
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.72196
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.21785
  Normalizat = 1.18443
  Prefactor  = 1.05592
 **********
 **   18 **HESSE 
 **********

 FCN=   6430.273     FROM HESSE     STATUS=OK           264 CALLS     1944 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.7075        .10227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    18.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.1952        4.7271        .20638E-03   -1.5350    
   5  Prefactor     .10000E-03    12.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.184        44.838        .83070E-04   -1.4745    
   8  Prefactor     18.845        7.3128        .92260E-04   -1.4839    
   9  Prefactor     .10000E-03    2.6928        .12767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.1239        16.389        .13266E-03   -1.5104    
  11  Prefactor     .10000E-03    13.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.0545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.7220        2.7987        .99959E-04   -1.5273    
  15  Prefactor     .10000E-03    52.697        .26888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .96017        .76401E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.2178        69.424        .16052E-03   -1.5209    
  18  Normalizat    1.1844        .23204        .26521E-03   -.87085    
  19  Prefactor     1.0559        .19217        .23167E-03   -.90888    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69594e-10
Minuit parameter uncertainties:
  1  1.84829e-05
  2  7.70728e-06
  3  1.86662e-05
  4  4.72764
  5  2.40095e-05
  6  7.66412e-05
  7  44.9028
  8  7.3131
  9  2.88047e-06
  10  16.3968
  11  0.000167666
  12  3.4759e-05
  13  3.79603e-05
  14  2.7988
  15  3.4908e-05
  16  3.43701e-06
  17  41.614
  18  0.232243
  19  0.192291
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  1.677e-04  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.056e+00  1.923e-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.184e+00  2.322e-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: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/61184/likelihoodResults_310608001_310867201_4FGL_J1357.1+1921_daily_bin275.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) = 6430.27328863
delta logL = -0.000340807268913

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6430.27294826
delta logL = -4.32410161011e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12103E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8281       1.0000          .0000       10.000    
     3 'Normalizat'    1.1847       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0557       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=   6430.273     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      218 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10017E-03    40.101        .90712E-01** at limit **
   2  Index         2.9294        5.5752        .50000       -.58395E-04
   3  Normalizat    1.1844        .12421E-01    .59965E-01    .71073E-04
   4  Prefactor     1.0559        .10353E-01    .39586E-01    .46695E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100169
  Index      = 2.9294
  Normalizat = 1.18443
  Prefactor  = 1.05592
 **********
 **   18 **HESSE 
 **********

 FCN=   6430.273     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      253 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10017E-03    6229.9        .39286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9294        6.6248        .50000       -.42698    
   3  Normalizat    1.1844        .50443E-01    .26521E-03   -.87085    
   4  Prefactor     1.0559        .41948E-01    .23167E-03   -.90888    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.44166e-06
Minuit parameter uncertainties:
  1  0.0427229
  2  42.0334
  3  0.0504454
  4  0.0419493
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/61184': 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) = 6430.2729458
delta logL = 2.02195315069e-06

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.002e-04  4.272e-02  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.929e+00  4.203e+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:  1.056e+00  4.195e-02  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.184e+00  5.045e-02  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/61184/cmap_HighResolution_310608001_310867201_4FGL_J1357.1+1921_daily_bin275.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.96e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-09-08 17:55:04.348160', job_id='61184', GAL2='1.06', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1631148904.35', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='2.02e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='275' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:55:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0006>
Subject: Job 61184: <4FGL_J1357.1+1921_daily_bin275> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin275 209.29 19.3608 310608001 310867201 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 :                                   527.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             285.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   559 sec.
    Turnaround time :                            561 sec.

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

