/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 236 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 = 7440
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1357.1+1921_daily_bin964
RA = 209.29, Dec = 19.3608
tmin = 489196801, tmax = 489456001
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='64485', job_status='RUN', time_executed='2021-09-08 17:59:41.274200', time_epoch_executed='1631149181.27' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='964'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/64485

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/64485/ft1_4FGL_J1357.1+1921_daily_bin964.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/64485/ft2_4FGL_J1357.1+1921_daily_bin964.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/64485/ft1_4FGL_J1357.1+1921_daily_bin964.fits outfile=/scratch/kocevski/64485/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin964.fits ra=209.29 dec=19.3608 rad=12.0 tmin=489196801.0 tmax=489456001.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 5.17
user 4.65
sys 0.24

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/64485/ft1_filtered_4FGL_J1357.1+1921_daily_bin964.fits evtable="EVENTS" scfile=/scratch/kocevski/64485/ft2_4FGL_J1357.1+1921_daily_bin964.fits sctable="SC_DATA" expcube=/scratch/kocevski/64485/ltcube_489196801_489456001_4FGL_J1357.1+1921_daily_bin964.fits outfile=/scratch/kocevski/64485/expmap_489196801_489456001_4FGL_J1357.1+1921_daily_bin964.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/64485/ltcube_489196801_489456001_4FGL_J1357.1+1921_daily_bin964.fits
.....................!
real 190.80
user 184.90
sys 5.59

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/64485/ft1_filtered_4FGL_J1357.1+1921_daily_bin964.fits scfile=/scratch/kocevski/64485/ft2_4FGL_J1357.1+1921_daily_bin964.fits outfile=/scratch/kocevski/64485/cmap_489196801_489456001_4FGL_J1357.1+1921_daily_bin964.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/64485/ft1_filtered_4FGL_J1357.1+1921_daily_bin964.fits scfile=/scratch/kocevski/64485/ft2_4FGL_J1357.1+1921_daily_bin964.fits outfile=/scratch/kocevski/64485/cmap_HighResolution_489196801_489456001_4FGL_J1357.1+1921_daily_bin964.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.67
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.766       1.0000         .10000E-03   10000.    
     2 'norm      '    13.608       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .81736       1.0000         .10000E-03   10000.    
     4 'norm      '    13.305       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .42124       1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.414       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.4843       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1699       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.1761       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.6066       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.9575       1.0000         .10000E-03   10000.    
    16 'norm      '    .64003       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.027       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2465       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1127       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5679.487     FROM MIGRAD    STATUS=CONVERGED    133 CALLS     1645 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.749        6.8984       -.45947E-07   -.57190E-02
   2  norm          13.609        7.0186       -.69030E-06   -.34285E-02
   3  Prefactor     .10931E-03    7719.7        .71458E-04** at limit **
   4  norm          13.305        5.5560       -.32691E-06    .58860E-02
   5  Prefactor     .32320        337.84       -.16423E-04   -.19195E-03
   6  Prefactor     17.399        25.804       -.25203E-05    .25072E-02
   7  Prefactor     .10000E-03    26.309        .68979E-07** at limit **
   8  Prefactor     1.4827        5.3095       -.93104E-06   -.17596E-04
   9  Prefactor     .10000E-03    3.3763        .16395E-07** at limit **
  10  Prefactor     2.1525        25.985        .12582E-05    .54100E-03
  11  Prefactor     .10000E-03    42.678        .21954E-05** at limit **
  12  Prefactor     8.1755        7.2544        .20510E-07    .36175E-02
  13  Prefactor     .10000E-03    3.5679        .29301E-07** at limit **
  14  norm          8.6046        3.8889       -.44795E-06   -.84378E-04
  15  Prefactor     6.9527        9.0336       -.11714E-05    .57650E-05
  16  norm          .63886        2.8605       -.39475E-06   -.19102E-04
  17  Prefactor     10.988        6.9592       -.19709E-06   -.75954E-04
  18  Normalizat    1.2464        .27275        .78271E-06   -.51624E-06
  19  Prefactor     1.1132        .22357        .14999E-05    .17926E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.7489
  norm       = 13.6089
  Prefactor  = 0.000109314
  norm       = 13.3051
  Prefactor  = 0.323198
  Prefactor  = 17.3986
  Prefactor  = 0.0001
  Prefactor  = 1.48274
  Prefactor  = 0.0001
  Prefactor  = 2.15253
  Prefactor  = 0.0001
  Prefactor  = 8.17553
  Prefactor  = 0.0001
  norm       = 8.6046
  Prefactor  = 6.95265
  norm       = 0.638863
  Prefactor  = 10.9876
  Normalizat = 1.24644
  Prefactor  = 1.11322
 **********
 **   18 **HESSE 
 **********

 FCN=   5679.487     FROM HESSE     STATUS=OK           326 CALLS     1971 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.749        19.640        .26058E-02   -1.4940    
   2  norm          13.609        9.4205        .27145E-02   -1.4970    
   3  Prefactor     .10931E-03    47.989        .15550       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          13.305        10.959        .27453E-02   -1.4978    
   5  Prefactor     .32320        23.251        .10945       -1.5594    
   6  Prefactor     17.399        28.537        .23995E-02   -1.4873    
   7  Prefactor     .10000E-03    26.326        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.4827        5.3065        .88034E-02   -1.5464    
   9  Prefactor     .10000E-03    3.3295        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.1525        30.020        .69890E-02   -1.5415    
  11  Prefactor     .10000E-03    41.125        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.1755        21.545        .35053E-02   -1.5136    
  13  Prefactor     .10000E-03    3.5566        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.6046        3.8897        .34159E-02   -1.5121    
  15  Prefactor     6.9527        9.1051        .38024E-02   -1.5181    
  16  norm          .63886        2.9385        .11830E-01   -1.5548    
  17  Prefactor     10.988        34.145        .30162E-02   -1.5045    
  18  Normalizat    1.2464        .22423        .61577E-01   -.85180    
  19  Prefactor     1.1132        .18430        .55356E-01   -.89045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44978e-07
Minuit parameter uncertainties:
  1  19.6488
  2  9.4215
  3  0.0423161
  4  10.9603
  5  5.4839
  6  28.5589
  7  4.20699e-05
  8  5.30817
  9  1.32689e-06
  10  16.0866
  11  0.000280097
  12  21.5658
  13  1.22626e-06
  14  3.88977
  15  9.1069
  16  2.74028
  17  34.2061
  18  0.224402
  19  0.184403
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  2.801e-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.113e+00  1.844e-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.246e+00  2.244e-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.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.01e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/64485/likelihoodResults_489196801_489456001_4FGL_J1357.1+1921_daily_bin964.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) = 5679.48692651
delta logL = -0.000111747920528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5679.48681477
delta logL = -4.12455847254e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10801E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7121       1.0000          .0000       10.000    
     3 'Normalizat'    1.2465       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1132       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=   5679.487     FROM MIGRAD    STATUS=CONVERGED    131 CALLS      296 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10017E-03    20.038        .71181E-01** at limit **
   2  Index         2.1219        6.5719        .50000       -.31980E-05
   3  Normalizat    1.2464        .55683E-02    .27236E-03   -.20338E-02
   4  Prefactor     1.1132        .47855E-02    .24477E-03   -.22676E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010017
  Index      = 2.12189
  Normalizat = 1.24644
  Prefactor  = 1.11322
 **********
 **   18 **HESSE 
 **********

 FCN=   5679.487     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      333 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10017E-03    11.187        .87659E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1219        5.6256        .50000       -.61337    
   3  Normalizat    1.2464        .48317E-02    .54471E-04   -.85180    
   4  Prefactor     1.1132        .41524E-02    .48953E-04   -.89045    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.6027e-09
Minuit parameter uncertainties:
  1  0.00275661
  2  109.121
  3  0.00483173
  4  0.00415242
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/64485': 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) = 5679.48681375
delta logL = 1.01253408502e-06

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.002e-04  2.757e-03  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.122e+00  1.091e+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.113e+00  4.152e-03  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.246e+00  4.832e-03  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/64485/cmap_HighResolution_489196801_489456001_4FGL_J1357.1+1921_daily_bin964.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', job_status='DONE', photon_flux_upper_limit='1.28e-07', time_completed='2021-09-08 18:08:19.875223', job_id='64485', GAL2='1.11', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1631149699.88', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='1.01e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='964' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 18:08:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 64485: <4FGL_J1357.1+1921_daily_bin964> in cluster <slac> Done

Job <4FGL_J1357.1+1921_daily_bin964> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 17:55:36 2021
Job was executed on host(s) <bullet0304>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 17:55:38 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:55:38 2021
Terminated at Wed Sep  8 18:08:20 2021
Results reported at Wed Sep  8 18:08:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin964 209.29 19.3608 489196801 489456001 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 :                                   515.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            764 sec.

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

