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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin73
RA = 209.29, Dec = 19.3608
tmin = 258249601, tmax = 258508801
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='59840', job_status='RUN', time_executed='2021-09-08 17:43:53.326702', time_epoch_executed='1631148233.33' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='73'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/59840

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

Retrieving the FT1 file...

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

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

Retrieving 33 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/59840/ft1_4FGL_J1357.1+1921_daily_bin73.fits


Retrieving the FT1 file...

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

Retrieving 33 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/59840/ft2_4FGL_J1357.1+1921_daily_bin73.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/59840/ft1_4FGL_J1357.1+1921_daily_bin73.fits outfile=/scratch/kocevski/59840/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin73.fits ra=209.29 dec=19.3608 rad=12.0 tmin=258249601.0 tmax=258508801.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 1.15
user 0.97
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/59840/ft1_filtered_4FGL_J1357.1+1921_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/59840/ft2_4FGL_J1357.1+1921_daily_bin73.fits sctable="SC_DATA" expcube=/scratch/kocevski/59840/ltcube_258249601_258508801_4FGL_J1357.1+1921_daily_bin73.fits outfile=/scratch/kocevski/59840/expmap_258249601_258508801_4FGL_J1357.1+1921_daily_bin73.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/59840/ltcube_258249601_258508801_4FGL_J1357.1+1921_daily_bin73.fits
.....................!
real 191.34
user 185.56
sys 5.21

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/59840/ft1_filtered_4FGL_J1357.1+1921_daily_bin73.fits scfile=/scratch/kocevski/59840/ft2_4FGL_J1357.1+1921_daily_bin73.fits outfile=/scratch/kocevski/59840/cmap_258249601_258508801_4FGL_J1357.1+1921_daily_bin73.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.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    34.485       1.0000         .10000E-03   10000.    
     2 'norm      '    16.522       1.0000         .10000E-03   10000.    
     3 'Prefactor '    31.142       1.0000         .10000E-03   10000.    
     4 'norm      '    14.761       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    58.163       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.5508       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.4730       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.8392       1.0000         .10000E-03   10000.    
    16 'norm      '    .25747E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    41.335       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0617       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0143       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=   3799.081     FROM MIGRAD    STATUS=CONVERGED    365 CALLS     1815 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          34.487        32.124        .25969E-05    .93086E-06
   2  norm          16.525        11.672        .31850E-06   -.10332E-04
   3  Prefactor     31.130        47.756       -.18481E-04    .12851E-05
   4  norm          14.762        14.150       -.52101E-06   -.21175E-04
   5  Prefactor     .10000E-03    10.820       -.21272E-05** at limit **
   6  Prefactor     .10000E-03    16.183       -.38925E-05** at limit **
   7  Prefactor     58.162        51.614       -.23059E-05    .28580E-05
   8  Prefactor     1.5510        6.0990       -.16642E-05   -.60746E-03
   9  Prefactor     .10000E-03    1.6493       -.36415E-07** at limit **
  10  Prefactor     .10000E-03    8.9815       -.28156E-05** at limit **
  11  Prefactor     .10000E-03    8.3262        .20247E-05** at limit **
  12  Prefactor     .10000E-03    13.911        .59437E-05** at limit **
  13  Prefactor     .10000E-03    2.4001        .16593E-06** at limit **
  14  norm          3.4729        3.3583        .63931E-07   -.11737E-03
  15  Prefactor     3.8397        4.3746        .50798E-06    .36668E-04
  16  norm          .10000E-03    2.7036       -.81750E-06** at limit **
  17  Prefactor     41.343        53.506        .10609E-04    .25357E-04
  18  Normalizat    1.0613        .23681       -.15870E-05    .13607E-03
  19  Prefactor     1.0147        .20212        .19964E-05    .33783E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 34.4875
  norm       = 16.5246
  Prefactor  = 31.1304
  norm       = 14.7619
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 58.1615
  Prefactor  = 1.55104
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.47286
  Prefactor  = 3.83975
  norm       = 0.0001
  Prefactor  = 41.3427
  Normalizat = 1.0613
  Prefactor  = 1.01468
 **********
 **   18 **HESSE 
 **********

 FCN=   3799.081     FROM HESSE     STATUS=OK           268 CALLS     2083 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          34.487        32.106        .68240E-04   -1.4533    
   2  norm          16.525        11.684        .98534E-04   -1.4895    
   3  Prefactor     31.130        47.627        .71800E-04   -1.4591    
   4  norm          14.762        14.172        .10425E-03   -1.4939    
   5  Prefactor     .10000E-03    10.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     58.162        51.622        .52604E-04   -1.4181    
   8  Prefactor     1.5510        6.2352        .29299E-03   -1.5459    
   9  Prefactor     .10000E-03    1.6507        .77305E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.0180        .18034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.3873        .17360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.4025        .93250E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.4729        3.3532        .10720E-03   -1.5335    
  15  Prefactor     3.8397        4.3711        .13342E-03   -1.5316    
  16  norm          .10000E-03    7.3288        .19581E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     41.343        53.255        .62349E-04   -1.4421    
  18  Normalizat    1.0613        .28206        .25672E-03   -.91004    
  19  Prefactor     1.0147        .24037        .22584E-03   -.92242    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17565e-09
Minuit parameter uncertainties:
  1  32.1216
  2  11.6853
  3  47.6849
  4  14.1753
  5  4.59829e-06
  6  7.92615e-06
  7  51.6621
  8  6.22057
  9  5.67576e-07
  10  4.91489e-06
  11  6.03707e-06
  12  1.11439e-05
  13  3.42353e-06
  14  3.35343
  15  4.37143
  16  5.29218e-06
  17  53.3161
  18  0.282455
  19  0.240621
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  6.037e-06  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.015e+00  2.406e-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.061e+00  2.825e-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: 9.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/59840/likelihoodResults_258249601_258508801_4FGL_J1357.1+1921_daily_bin73.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) = 3799.08161082
delta logL = -0.000567915932152

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3799.08104307
delta logL = -1.69029135577e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7582       1.0000          .0000       10.000    
     3 'Normalizat'    1.0612       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0148       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=   3799.081     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      244 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    124.35        .17360E-02** at limit **
   2  Index         2.7929        7.9414        .50000       -.53192E-06
   3  Normalizat    1.0613        .22855E-01    .25672E-03    .10828E-04
   4  Prefactor     1.0147        .19815E-01    .22583E-03    .78783E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100029
  Index      = 2.7929
  Normalizat = 1.0613
  Prefactor  = 1.01469
 **********
 **   18 **HESSE 
 **********

 FCN=   3799.081     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    528.00        .34720E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7929        6.1274        .50000       -.45718    
   3  Normalizat    1.0613        .50436E-01    .10269E-04   -.91004    
   4  Prefactor     1.0147        .43709E-01    .90334E-05   -.92242    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.02138e-08
Minuit parameter uncertainties:
  1  0.00787619
  2  6011.47
  3  0.0504383
  4  0.0437105
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/59840': 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) = 3799.0810429
delta logL = 2.79896994471e-09

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  7.876e-03  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.793e+00  6.011e+03  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.015e+00  4.371e-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.061e+00  5.044e-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/59840/cmap_HighResolution_258249601_258508801_4FGL_J1357.1+1921_daily_bin73.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.87e-03', job_status='DONE', photon_flux_upper_limit='9.97e-08', time_completed='2021-09-08 17:51:08.726112', job_id='59840', GAL2='1.01', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1631148668.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='2.80e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='73' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:51:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 59840: <4FGL_J1357.1+1921_daily_bin73> in cluster <slac> Done

Job <4FGL_J1357.1+1921_daily_bin73> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 17:41:04 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 17:41:06 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:41:06 2021
Terminated at Wed Sep  8 17:51:09 2021
Results reported at Wed Sep  8 17:51:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin73 209.29 19.3608 258249601 258508801 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 :                                   434.60 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             276.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   604 sec.
    Turnaround time :                            605 sec.

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

