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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin195
RA = 209.29, Dec = 19.3608
tmin = 289872001, tmax = 290131201
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='61051', job_status='RUN', time_executed='2021-09-08 17:48:45.136083', time_epoch_executed='1631148525.14' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='195'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/61051

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/61051/ft1_4FGL_J1357.1+1921_daily_bin195.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/61051/ft2_4FGL_J1357.1+1921_daily_bin195.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/61051/ft1_4FGL_J1357.1+1921_daily_bin195.fits outfile=/scratch/kocevski/61051/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin195.fits ra=209.29 dec=19.3608 rad=12.0 tmin=289872001.0 tmax=290131201.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.63
user 3.28
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/61051/ft1_filtered_4FGL_J1357.1+1921_daily_bin195.fits" evtable="EVENTS" scfile=/scratch/kocevski/61051/ft2_4FGL_J1357.1+1921_daily_bin195.fits sctable="SC_DATA" outfile=/scratch/kocevski/61051/ltcube_289872001_290131201_4FGL_J1357.1+1921_daily_bin195.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/61051/ft2_4FGL_J1357.1+1921_daily_bin195.fits
.....................!
real 12.26
user 11.85
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/61051/ft1_filtered_4FGL_J1357.1+1921_daily_bin195.fits evtable="EVENTS" scfile=/scratch/kocevski/61051/ft2_4FGL_J1357.1+1921_daily_bin195.fits sctable="SC_DATA" expcube=/scratch/kocevski/61051/ltcube_289872001_290131201_4FGL_J1357.1+1921_daily_bin195.fits outfile=/scratch/kocevski/61051/expmap_289872001_290131201_4FGL_J1357.1+1921_daily_bin195.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/61051/ltcube_289872001_290131201_4FGL_J1357.1+1921_daily_bin195.fits
.....................!
real 190.28
user 185.44
sys 4.36

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/61051/ft1_filtered_4FGL_J1357.1+1921_daily_bin195.fits scfile=/scratch/kocevski/61051/ft2_4FGL_J1357.1+1921_daily_bin195.fits outfile=/scratch/kocevski/61051/cmap_289872001_290131201_4FGL_J1357.1+1921_daily_bin195.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/61051/ft1_filtered_4FGL_J1357.1+1921_daily_bin195.fits scfile=/scratch/kocevski/61051/ft2_4FGL_J1357.1+1921_daily_bin195.fits outfile=/scratch/kocevski/61051/cmap_HighResolution_289872001_290131201_4FGL_J1357.1+1921_daily_bin195.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=209.29 yref=19.3608 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    26.594       1.0000         .10000E-03   10000.    
     2 'norm      '    10.839       1.0000         .10000E-03   10000.    
     3 'Prefactor '    47.607       1.0000         .10000E-03   10000.    
     4 'norm      '    4.0090       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.398       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .95738       1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.034       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    35.925       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.976       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .32978E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.7764       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16027E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .88755       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1634       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=   6213.228     FROM MIGRAD    STATUS=CONVERGED    433 CALLS     1937 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          26.639        19.082        .37939E-06   -.54670E-04
   2  norm          10.839        7.1968       -.29884E-05    .36165E-03
   3  Prefactor     47.700        39.780        .49852E-05    .26736E-03
   4  norm          4.0161        7.1701        .12560E-05    .14286E-03
   5  Prefactor     16.374        16.963        .14775E-05   -.20177E-03
   6  Prefactor     .86369        89.973       -.41017E-04   -.16723E-03
   7  Prefactor     20.686        53.997       -.47312E-05   -.42866E-04
   8  Prefactor     .10000E-03    .87667       -.76293E-07** at limit **
   9  Prefactor     .10000E-03    1.8093       -.26790E-06** at limit **
  10  Prefactor     35.899        17.623       -.16167E-05   -.24940E-03
  11  Prefactor     .10000E-03    11.453       -.73662E-06** at limit **
  12  Prefactor     12.075        31.498       -.20976E-05   -.18036E-04
  13  Prefactor     .10023E-03    39.466        .26601E-04** at limit **
  14  norm          6.7775        3.0165       -.11021E-06    .10743E-04
  15  Prefactor     .10000E-03    6.1300        .14364E-06** at limit **
  16  norm          .10000E-03    .95935       -.40667E-07** at limit **
  17  Prefactor     .10000E-03    9.8203       -.44817E-07** at limit **
  18  Normalizat    .88777        .19231        .30546E-05   -.22125E-03
  19  Prefactor     1.1630        .16703       -.64953E-06   -.17375E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 26.6387
  norm       = 10.8386
  Prefactor  = 47.6999
  norm       = 4.01609
  Prefactor  = 16.3738
  Prefactor  = 0.863686
  Prefactor  = 20.6859
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.8992
  Prefactor  = 0.0001
  Prefactor  = 12.0749
  Prefactor  = 0.000100227
  norm       = 6.77746
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.887766
  Prefactor  = 1.16296
 **********
 **   18 **HESSE 
 **********

 FCN=   6213.228     FROM HESSE     STATUS=OK           276 CALLS     2213 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          26.639        19.091        .77683E-04   -1.4675    
   2  norm          10.839        7.2179        .60846E-03   -1.5049    
   3  Prefactor     47.700        40.323        .58115E-04   -1.4326    
   4  norm          4.0161        7.1493        .20141E-03   -1.5307    
   5  Prefactor     16.374        17.082        .98906E-04   -1.4898    
   6  Prefactor     .86369        140.40        .56003E-02   -1.5522    
   7  Prefactor     20.686        54.102        .89484E-04   -1.4798    
   8  Prefactor     .10000E-03    .87875        .72074E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.8254        .10352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     35.899        17.666        .66863E-04   -1.4509    
  11  Prefactor     .10000E-03    11.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.075        31.614        .11576E-03   -1.5013    
  13  Prefactor     .10023E-03    8.9698        .58755E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.7775        3.0170        .88147E-04   -1.5187    
  15  Prefactor     .10000E-03    6.2583        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .97108        .75372E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.8246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .88777        .22103        .27239E-03   -.96891    
  19  Prefactor     1.1630        .19337        .21552E-03   -.87479    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67144e-09
Minuit parameter uncertainties:
  1  19.0957
  2  7.21852
  3  40.3463
  4  7.15083
  5  17.0874
  6  22.0755
  7  54.2307
  8  1.3234e-06
  9  6.60938e-06
  10  17.6685
  11  1.47083e-05
  12  31.6577
  13  0.00285597
  14  3.01709
  15  2.64177e-05
  16  2.4622e-06
  17  6.84907e-06
  18  0.221256
  19  0.193489
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  1.471e-05  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.758e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  4.625e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
506    Prefactor:  1.163e+00  1.935e-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.878e-01  2.213e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/61051/likelihoodResults_289872001_290131201_4FGL_J1357.1+1921_daily_bin195.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) = 6213.2287226
delta logL = -0.000409278280131

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6213.22831801
delta logL = -4.69202677778e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16097E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7366       1.0000          .0000       10.000    
     3 'Normalizat'    .88736       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1634       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=   6213.228     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      245 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10230E-03    1.8021        .71186E-01** at limit **
   2  Index         2.6430        6.1591        .50000        .10627E-04
   3  Normalizat    .88777        .23514E-02    .27238E-03    .38274E-04
   4  Prefactor     1.1630        .21100E-02    .21552E-03    .47633E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102304
  Index      = 2.64304
  Normalizat = 0.887769
  Prefactor  = 1.16296
 **********
 **   18 **HESSE 
 **********

 FCN=   6213.228     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      276 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10230E-03    178.67        .39287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6430        5.2627        .50000       -.49087    
   3  Normalizat    .88777        .17132E-01    .10895E-04   -.96891    
   4  Prefactor     1.1630        .15373E-01    .86208E-05   -.87479    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.87344e-08
Minuit parameter uncertainties:
  1  0.0407042
  2  619.577
  3  0.0171319
  4  0.0153731
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/61051': 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) = 6213.22831308
delta logL = 2.4199107429e-07

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.023e-04  4.070e-02  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.643e+00  6.196e+02  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.163e+00  1.537e-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:  8.878e-01  1.713e-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/61051/cmap_HighResolution_289872001_290131201_4FGL_J1357.1+1921_daily_bin195.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.86e-03', job_status='DONE', photon_flux_upper_limit='8.69e-08', time_completed='2021-09-08 17:58:38.798000', job_id='61051', GAL2='1.16', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1631149118.8', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='2.42e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='195' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:58:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 61051: <4FGL_J1357.1+1921_daily_bin195> in cluster <slac> Done

Job <4FGL_J1357.1+1921_daily_bin195> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 17:45:34 2021
Job was executed on host(s) <bullet0072>, 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:58:39 2021
Results reported at Wed Sep  8 17:58:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin195 209.29 19.3608 289872001 290131201 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 :                                   545.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            785 sec.

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

