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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin509
RA = 209.29, Dec = 19.3608
tmin = 371260801, tmax = 371520001
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='61548', job_status='RUN', time_executed='2021-09-08 17:49:15.921314', time_epoch_executed='1631148555.92' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='509'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/61548

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/61548/ft1_4FGL_J1357.1+1921_daily_bin509.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/61548/ft2_4FGL_J1357.1+1921_daily_bin509.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/61548/ft1_4FGL_J1357.1+1921_daily_bin509.fits outfile=/scratch/kocevski/61548/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin509.fits ra=209.29 dec=19.3608 rad=12.0 tmin=371260801.0 tmax=371520001.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.37
user 5.11
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/61548/ft2_4FGL_J1357.1+1921_daily_bin509.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/61548/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin509.fits evtable="EVENTS" outfile="/scratch/kocevski/61548/ft1_filtered_4FGL_J1357.1+1921_daily_bin509.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/61548/ft1_filtered_4FGL_J1357.1+1921_daily_bin509.fits" evtable="EVENTS" scfile=/scratch/kocevski/61548/ft2_4FGL_J1357.1+1921_daily_bin509.fits sctable="SC_DATA" outfile=/scratch/kocevski/61548/ltcube_371260801_371520001_4FGL_J1357.1+1921_daily_bin509.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/61548/ft2_4FGL_J1357.1+1921_daily_bin509.fits
.....................!
real 11.61
user 11.24
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/61548/ft1_filtered_4FGL_J1357.1+1921_daily_bin509.fits evtable="EVENTS" scfile=/scratch/kocevski/61548/ft2_4FGL_J1357.1+1921_daily_bin509.fits sctable="SC_DATA" expcube=/scratch/kocevski/61548/ltcube_371260801_371520001_4FGL_J1357.1+1921_daily_bin509.fits outfile=/scratch/kocevski/61548/expmap_371260801_371520001_4FGL_J1357.1+1921_daily_bin509.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/61548/ltcube_371260801_371520001_4FGL_J1357.1+1921_daily_bin509.fits
.....................!
real 192.78
user 186.66
sys 5.76

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/61548/ft1_filtered_4FGL_J1357.1+1921_daily_bin509.fits scfile=/scratch/kocevski/61548/ft2_4FGL_J1357.1+1921_daily_bin509.fits outfile=/scratch/kocevski/61548/cmap_371260801_371520001_4FGL_J1357.1+1921_daily_bin509.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/61548/ft1_filtered_4FGL_J1357.1+1921_daily_bin509.fits scfile=/scratch/kocevski/61548/ft2_4FGL_J1357.1+1921_daily_bin509.fits outfile=/scratch/kocevski/61548/cmap_HighResolution_371260801_371520001_4FGL_J1357.1+1921_daily_bin509.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.56
user 0.37
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    55.090       1.0000         .10000E-03   10000.    
     2 'norm      '    .17062       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    14.582       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.2374       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .41789       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.934       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.249       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.0887       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .43449E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .16490       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10208E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2750       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .81720       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=   6101.653     FROM MIGRAD    STATUS=CONVERGED    421 CALLS     1686 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          55.142        32.333        .31765E-04    .45956E-03
   2  norm          .75617E-01    9.4031       -.41789E-05    .25930E-03
   3  Prefactor     .10000E-03    8.7450        .58866E-06** at limit **
   4  norm          14.648        13.702       -.85562E-05    .10905E-02
   5  Prefactor     .10000E-03    17.512        .68277E-05** at limit **
   6  Prefactor     .10000E-03    11.935        .87404E-05** at limit **
   7  Prefactor     .10000E-03    13.497       -.10513E-04** at limit **
   8  Prefactor     6.2369        5.9796       -.26179E-05   -.25126E-03
   9  Prefactor     .41916        1.5861       -.78958E-06   -.89145E-03
  10  Prefactor     13.936        11.759       -.15556E-06    .39452E-04
  11  Prefactor     11.251        13.667        .16680E-05    .31884E-04
  12  Prefactor     .10000E-03    10.011       -.29556E-05** at limit **
  13  Prefactor     .10000E-03    4.2212       -.47259E-07** at limit **
  14  norm          5.0892        2.8741       -.66626E-07    .23046E-04
  15  Prefactor     .10001E-03    3.6593       -.37697E-06** at limit **
  16  norm          .16831        1.4747       -.33068E-06   -.46207E-05
  17  Prefactor     .10000E-03    53.515       -.77312E-05** at limit **
  18  Normalizat    1.2754        .19658        .10578E-05    .57967E-03
  19  Prefactor     .81667        .15712       -.73790E-06    .55623E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 55.1421
  norm       = 0.0756173
  Prefactor  = 0.0001
  norm       = 14.6485
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.23691
  Prefactor  = 0.419158
  Prefactor  = 13.9359
  Prefactor  = 11.2515
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.08919
  Prefactor  = 0.00010001
  norm       = 0.168312
  Prefactor  = 0.0001
  Normalizat = 1.27539
  Prefactor  = 0.816675
 **********
 **   18 **HESSE 
 **********

 FCN=   6101.653     FROM HESSE     STATUS=OK           276 CALLS     1962 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          55.142        32.787        .27022E-03   -1.4221    
   2  norm          .75617E-01    12.667        .58065E-01   -1.5653    
   3  Prefactor     .10000E-03    8.7499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          14.648        13.861        .10489E-03   -1.4942    
   5  Prefactor     .10000E-03    17.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.2369        6.0068        .16073E-03   -1.5208    
   9  Prefactor     .41916        1.9704        .18618E-02   -1.5578    
  10  Prefactor     13.936        11.754        .10730E-03   -1.4961    
  11  Prefactor     11.251        13.674        .11945E-03   -1.5037    
  12  Prefactor     .10000E-03    10.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.2535        .15663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.0892        2.8727        .96104E-04   -1.5257    
  15  Prefactor     .10001E-03    20.046        .28250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .16831        8.6017        .17961E-02   -1.5626    
  17  Prefactor     .10000E-03    53.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2754        .23685        .24571E-03   -.84304    
  19  Prefactor     .81667        .18891        .24358E-03   -.99117    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90705e-08
Minuit parameter uncertainties:
  1  32.7976
  2  1.95648
  3  9.26371e-07
  4  13.8641
  5  7.99176e-06
  6  6.62224e-06
  7  1.56214e-06
  8  6.00738
  9  1.81745
  10  11.7558
  11  13.6783
  12  2.37151e-07
  13  2.9718e-06
  14  2.87282
  15  0.000884
  16  2.40613
  17  5.59044e-05
  18  0.237047
  19  0.189058
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.125e+01  1.368e+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:  8.167e-01  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:  1.275e+00  2.370e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/61548/likelihoodResults_371260801_371520001_4FGL_J1357.1+1921_daily_bin509.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) = 6101.3905211
delta logL = 0.26266009962

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6101.35157336
delta logL = 0.301607845567

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.509       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1216       1.0000          .0000       10.000    
     3 'Normalizat'    1.3020       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79427       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=   6101.352     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      216 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 26.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.508        13.267       -.33832E-05    .80007E-03
   2  Index         2.1216        .41960        .75076E-05    .38910E-03
   3  Normalizat    1.3020        .19028       -.29543E-06   -.81561E-04
   4  Prefactor     .79432        .15610        .74991E-06   -.11109E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.5081
  Index      = 2.12159
  Normalizat = 1.30199
  Prefactor  = 0.794321
 **********
 **   18 **HESSE 
 **********

 FCN=   6101.352     FROM HESSE     STATUS=OK            29 CALLS      245 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.508        15.658        .10170E-03   -1.4920    
   2  Index         2.1216        .64802        .86887E-02   -.61344    
   3  Normalizat    1.3020        .22776        .24353E-03   -.83507    
   4  Prefactor     .79432        .18598        .24648E-03   -.99938    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.68521e-09
Minuit parameter uncertainties:
  1  15.662
  2  0.650761
  3  0.227938
  4  0.186125
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/61548': 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) = 6101.3515733
delta logL = 0.301607904474

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
506    Prefactor:  7.943e-01  1.861e-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.302e+00  2.279e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.42
Ra Dec: 209.290 19.361
Photon Index (Free Index): 2.12 +/- 0.65
Photon Flux (Free Index): 3.56e-08 +/- 4.20e-08
Energy Flux (Free Index): 1.87e-05 +/- 2.26e-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/61548/cmap_HighResolution_371260801_371520001_4FGL_J1357.1+1921_daily_bin509.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-02', comment='SUCCESS', energy_flux2='1.87e-05', dlogl='3.02e-01', photon_flux2='3.56e-08', job_status='DONE', time_completed='2021-09-08 17:58:36.881518', photon_index_error2='0.65', photon_index2='2.12', ts='0.81', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.53e-07', energy_flux_error2='2.26e-05', EG='1.28', time_epoch_completed='1631149116.88', return_code='0', job_id='61548', GAL2='0.79', EG2='1.30', return_code2='0', photon_flux_error2='4.20e-08', ts2='1.42', photon_index='2.76' WHERE bin_id='509' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:58:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 61548: <4FGL_J1357.1+1921_daily_bin509> in cluster <slac> Done

Job <4FGL_J1357.1+1921_daily_bin509> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 17:46:17 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 17:46:18 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:46:18 2021
Terminated at Wed Sep  8 17:58:37 2021
Results reported at Wed Sep  8 17:58:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin509 209.29 19.3608 371260801 371520001 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 :                                   523.28 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             216.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   739 sec.
    Turnaround time :                            740 sec.

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

