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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin310
RA = 209.29, Dec = 19.3608
tmin = 319680001, tmax = 319939201
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='61244', job_status='RUN', time_executed='2021-09-08 17:46:04.756155', time_epoch_executed='1631148364.76' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='310'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/61244

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/61244/ft1_4FGL_J1357.1+1921_daily_bin310.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/61244/ft2_4FGL_J1357.1+1921_daily_bin310.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/61244/ft1_4FGL_J1357.1+1921_daily_bin310.fits outfile=/scratch/kocevski/61244/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin310.fits ra=209.29 dec=19.3608 rad=12.0 tmin=319680001.0 tmax=319939201.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.44
user 3.23
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/61244/ft2_4FGL_J1357.1+1921_daily_bin310.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/61244/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin310.fits evtable="EVENTS" outfile="/scratch/kocevski/61244/ft1_filtered_4FGL_J1357.1+1921_daily_bin310.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/61244/ft1_filtered_4FGL_J1357.1+1921_daily_bin310.fits" evtable="EVENTS" scfile=/scratch/kocevski/61244/ft2_4FGL_J1357.1+1921_daily_bin310.fits sctable="SC_DATA" outfile=/scratch/kocevski/61244/ltcube_319680001_319939201_4FGL_J1357.1+1921_daily_bin310.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/61244/ft2_4FGL_J1357.1+1921_daily_bin310.fits
.....................!
real 12.08
user 11.74
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/61244/ft1_filtered_4FGL_J1357.1+1921_daily_bin310.fits evtable="EVENTS" scfile=/scratch/kocevski/61244/ft2_4FGL_J1357.1+1921_daily_bin310.fits sctable="SC_DATA" expcube=/scratch/kocevski/61244/ltcube_319680001_319939201_4FGL_J1357.1+1921_daily_bin310.fits outfile=/scratch/kocevski/61244/expmap_319680001_319939201_4FGL_J1357.1+1921_daily_bin310.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/61244/ltcube_319680001_319939201_4FGL_J1357.1+1921_daily_bin310.fits
.....................!
real 191.18
user 185.63
sys 4.62

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/61244/ft1_filtered_4FGL_J1357.1+1921_daily_bin310.fits scfile=/scratch/kocevski/61244/ft2_4FGL_J1357.1+1921_daily_bin310.fits outfile=/scratch/kocevski/61244/cmap_319680001_319939201_4FGL_J1357.1+1921_daily_bin310.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.40
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.150       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.511       1.0000         .10000E-03   10000.    
     4 'norm      '    36.646       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.746       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .43035E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.0153       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.784       1.0000         .10000E-03   10000.    
    12 'Prefactor '    45.014       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    9.7811       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.6710       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0105       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .98717       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=   6078.632     FROM MIGRAD    STATUS=CONVERGED    370 CALLS     1854 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.149        14.434        .33759E-06   -.23406E-04
   2  norm          .10000E-03    3.2977        .15485E-05** at limit **
   3  Prefactor     17.507        26.509       -.44547E-05   -.13569E-04
   4  norm          36.645        11.699        .64163E-06   -.16417E-03
   5  Prefactor     .10000E-03    12.483       -.58200E-06** at limit **
   6  Prefactor     17.754        23.054        .83986E-05   -.66495E-04
   7  Prefactor     .10000E-03    47.769        .45318E-05** at limit **
   8  Prefactor     .10000E-03    2.4878        .82503E-06** at limit **
   9  Prefactor     .10000E-03    3.2495       -.18864E-05** at limit **
  10  Prefactor     9.0120        20.373        .17848E-05   -.28403E-04
  11  Prefactor     10.784        15.293        .34338E-05   -.87154E-04
  12  Prefactor     44.999        41.053       -.16272E-04   -.50793E-04
  13  Prefactor     .10000E-03    2.7585        .11549E-06** at limit **
  14  norm          9.7811        3.2413        .29258E-06   -.61749E-04
  15  Prefactor     .10000E-03    3.1518        .15124E-06** at limit **
  16  norm          .10000E-03    1.5933       -.78202E-06** at limit **
  17  Prefactor     6.7251        65.583        .16403E-03    .22692E-04
  18  Normalizat    1.0105        .20413       -.61663E-05   -.20407E-03
  19  Prefactor     .98720        .15989       -.14717E-05   -.34488E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 14.1494
  norm       = 0.0001
  Prefactor  = 17.507
  norm       = 36.645
  Prefactor  = 0.0001
  Prefactor  = 17.7543
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 9.01202
  Prefactor  = 10.7842
  Prefactor  = 44.9993
  Prefactor  = 0.0001
  norm       = 9.7811
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Prefactor  = 6.72509
  Normalizat = 1.01053
  Prefactor  = 0.987196
 **********
 **   18 **HESSE 
 **********

 FCN=   6078.632     FROM HESSE     STATUS=OK           266 CALLS     2120 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.149        14.432        .10648E-03   -1.4955    
   2  norm          .10000E-03    3.3304        .13814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.507        26.508        .95711E-04   -1.4871    
   4  norm          36.645        11.701        .66204E-04   -1.4497    
   5  Prefactor     .10000E-03    12.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.754        23.123        .95074E-04   -1.4865    
   7  Prefactor     .10000E-03    47.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.234        .23530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.2897        .13713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.0120        20.352        .13349E-03   -1.5107    
  11  Prefactor     10.784        15.322        .12200E-03   -1.5051    
  12  Prefactor     44.999        41.063        .59758E-04   -1.4365    
  13  Prefactor     .10000E-03    2.7663        .12642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          9.7811        3.2419        .78361E-04   -1.5082    
  15  Prefactor     .10000E-03    3.1859        .13511E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.6234        .96104E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.7251        65.213        .15536E-03   -1.5189    
  18  Normalizat    1.0105        .23766        .26867E-03   -.92679    
  19  Prefactor     .98720        .18788        .22676E-03   -.93158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40609e-09
Minuit parameter uncertainties:
  1  14.4359
  2  4.74176e-06
  3  26.5261
  4  11.7021
  5  7.22641e-05
  6  23.1347
  7  0.000223543
  8  0.000213847
  9  4.54636e-05
  10  20.3676
  11  15.3278
  12  41.0885
  13  2.06221e-05
  14  3.24191
  15  9.10327e-05
  16  9.73029e-05
  17  41.9434
  18  0.237911
  19  0.188003
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.078e+01  1.533e+01  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:  9.872e-01  1.880e-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.011e+00  2.379e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.62
Ra Dec: 209.290 19.361
Photon Flux Upper Limit: 1.63e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.29e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/61244/likelihoodResults_319680001_319939201_4FGL_J1357.1+1921_daily_bin310.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): 0
logL (Free Index) = 6077.7632179
delta logL = 0.868584014082

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6077.76025119
delta logL = 0.871550724499

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2086       1.0000         .10000E-03   10000.    
     2 'Index     '    4.1649       1.0000          .0000       10.000    
     3 'Normalizat'    .93314       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0250       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=   6077.760     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      300 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2078        13.003        .12722E-03   -.10753E-02
   2  Index         4.1646        1.6268        .66979E-02   -.13817E-03
   3  Normalizat    .93287        .23260        .27811E-03   -.50365E-03
   4  Prefactor     1.0253        .18906        .22280E-03   -.52715E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.2078
  Index      = 4.16463
  Normalizat = 0.932868
  Prefactor  = 1.02529
 **********
 **   18 **HESSE 
 **********

 FCN=   6077.760     FROM HESSE     STATUS=OK            25 CALLS      325 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2078        9.4845        .50889E-05   -1.5210    
   2  Index         4.1646        1.1950        .26792E-03   -.16786    
   3  Normalizat    .93287        .23295        .55622E-04   -.95315    
   4  Prefactor     1.0253        .18897        .44559E-04   -.91891    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.89126e-10
Minuit parameter uncertainties:
  1  9.4868
  2  1.20707
  3  0.233198
  4  0.18909
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/61244': 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): 0
logL (Free Index) = 6077.76024952
delta logL = 0.871552391968

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  6.208e+00  9.487e+00  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  4.165e+00  1.207e+00  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.025e+00  1.891e-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:  9.329e-01  2.332e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.51
Ra Dec: 209.290 19.361
Photon Index (Free Index): 4.16 +/- 1.21
Photon Flux (Free Index): 1.16e-07 +/- 8.49e-08
Energy Flux (Free Index): 1.69e-05 +/- 1.23e-05

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/61244/cmap_HighResolution_319680001_319939201_4FGL_J1357.1+1921_daily_bin310.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.29e-02', comment='SUCCESS', energy_flux2='1.69e-05', dlogl='8.72e-01', photon_flux2='1.16e-07', job_status='DONE', time_completed='2021-09-08 17:55:08.638173', photon_index_error2='1.21', photon_index2='4.16', ts='0.62', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.63e-07', energy_flux_error2='1.23e-05', EG='1.01', time_epoch_completed='1631148908.64', return_code='0', job_id='61244', GAL2='1.03', EG2='0.93', return_code2='0', photon_flux_error2='8.49e-08', ts2='2.51', photon_index='2.76' WHERE bin_id='310' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:55:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 61244: <4FGL_J1357.1+1921_daily_bin310> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin310 209.29 19.3608 319680001 319939201 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 :                                   531.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   557 sec.
    Turnaround time :                            560 sec.

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

