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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin236
RA = 209.29, Dec = 19.3608
tmin = 300499201, tmax = 300758401
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='61122', job_status='RUN', time_executed='2021-09-08 17:47:53.733243', time_epoch_executed='1631148473.73' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='236'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/61122

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/61122/ft1_4FGL_J1357.1+1921_daily_bin236.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/61122/ft2_4FGL_J1357.1+1921_daily_bin236.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/61122/ft1_4FGL_J1357.1+1921_daily_bin236.fits outfile=/scratch/kocevski/61122/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin236.fits ra=209.29 dec=19.3608 rad=12.0 tmin=300499201.0 tmax=300758401.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.47
user 3.23
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/61122/ft1_filtered_4FGL_J1357.1+1921_daily_bin236.fits" evtable="EVENTS" scfile=/scratch/kocevski/61122/ft2_4FGL_J1357.1+1921_daily_bin236.fits sctable="SC_DATA" outfile=/scratch/kocevski/61122/ltcube_300499201_300758401_4FGL_J1357.1+1921_daily_bin236.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/61122/ft2_4FGL_J1357.1+1921_daily_bin236.fits
.....................!
real 14.58
user 14.10
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/61122/ft1_filtered_4FGL_J1357.1+1921_daily_bin236.fits evtable="EVENTS" scfile=/scratch/kocevski/61122/ft2_4FGL_J1357.1+1921_daily_bin236.fits sctable="SC_DATA" expcube=/scratch/kocevski/61122/ltcube_300499201_300758401_4FGL_J1357.1+1921_daily_bin236.fits outfile=/scratch/kocevski/61122/expmap_300499201_300758401_4FGL_J1357.1+1921_daily_bin236.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/61122/ltcube_300499201_300758401_4FGL_J1357.1+1921_daily_bin236.fits
.....................!
real 191.32
user 185.22
sys 5.75

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/61122/ft1_filtered_4FGL_J1357.1+1921_daily_bin236.fits scfile=/scratch/kocevski/61122/ft2_4FGL_J1357.1+1921_daily_bin236.fits outfile=/scratch/kocevski/61122/cmap_300499201_300758401_4FGL_J1357.1+1921_daily_bin236.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.70
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/61122/ft1_filtered_4FGL_J1357.1+1921_daily_bin236.fits scfile=/scratch/kocevski/61122/ft2_4FGL_J1357.1+1921_daily_bin236.fits outfile=/scratch/kocevski/61122/cmap_HighResolution_300499201_300758401_4FGL_J1357.1+1921_daily_bin236.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10087E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.8044       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    13.621       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.1782       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.9763       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .32106       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1816       1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.179       1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.938       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    21.142       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0301       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0904       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6722.922     FROM MIGRAD    STATUS=CONVERGED    362 CALLS     1847 TOTAL
                     EDM=   .30E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10060E-03    23.737         .0000    ** at limit **
   2  norm          1.8033        5.9612         .0000        .20101E-01
   3  Prefactor     .10000E-03    17.165         .0000    ** at limit **
   4  norm          13.622        9.3236         .0000       -.42875E-03
   5  Prefactor     .10004E-03    16.740         .0000    ** at limit **
   6  Prefactor     .10021E-03    21.543         .0000    ** at limit **
   7  Prefactor     4.1781        65.805         .0000        .18339E-03
   8  Prefactor     9.9760        4.5808         .0000       -.12912E-02
   9  Prefactor     .32121        3.9614         .0000        .55436E-01
  10  Prefactor     2.1809        8.8154         .0000        .72081E-02
  11  Prefactor     23.178        13.476         .0000        .10305E-02
  12  Prefactor     21.938        25.119         .0000        .94548E-04
  13  Prefactor     .10000E-03    2.1398         .0000    ** at limit **
  14  norm          21.142        4.5109         .0000        .22030E-02
  15  Prefactor     .10000E-03    5.9689         .0000    ** at limit **
  16  norm          .10000E-03    .97353         .0000    ** at limit **
  17  Prefactor     .10019E-03    21.688         .0000    ** at limit **
  18  Normalizat    1.0301        .18733         .0000       -.64451E-04
  19  Prefactor     1.0903        .16074         .0000       -.72314E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100596
  norm       = 1.80332
  Prefactor  = 0.000100002
  norm       = 13.6217
  Prefactor  = 0.000100041
  Prefactor  = 0.000100206
  Prefactor  = 4.17807
  Prefactor  = 9.97602
  Prefactor  = 0.321208
  Prefactor  = 2.18092
  Prefactor  = 23.1783
  Prefactor  = 21.9382
  Prefactor  = 0.0001
  norm       = 21.1417
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100187
  Normalizat = 1.03015
  Prefactor  = 1.09034
 **********
 **   18 **HESSE 
 **********

 FCN=   6722.922     FROM HESSE     STATUS=OK           266 CALLS     2113 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10060E-03    23.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.8033        5.8942        .15557E-02   -1.5439    
   3  Prefactor     .10000E-03    17.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          13.622        9.2722        .10853E-03   -1.4970    
   5  Prefactor     .10004E-03    16.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10021E-03    21.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.1781        65.767        .19717E-03   -1.5299    
   8  Prefactor     9.9760        4.5858        .11519E-03   -1.5076    
   9  Prefactor     .32121        4.0706        .15798E-02   -1.5595    
  10  Prefactor     2.1809        8.7745        .13936E-02   -1.5413    
  11  Prefactor     23.178        13.502        .83199E-04   -1.4745    
  12  Prefactor     21.938        25.124        .85516E-04   -1.4771    
  13  Prefactor     .10000E-03    2.1434        .11712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          21.142        4.5112        .77760E-04   -1.4788    
  15  Prefactor     .10000E-03    6.2224        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .99670        .78981E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10019E-03    21.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0301        .22124        .27120E-03   -.92027    
  19  Prefactor     1.0903        .18944        .23038E-03   -.89776    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.05138e-08
Minuit parameter uncertainties:
  1  0.00755451
  2  5.89609
  3  0.000380674
  4  9.27319
  5  0.0016669
  6  0.00423269
  7  33.1961
  8  4.58592
  9  2.28676
  10  8.75109
  11  13.5041
  12  25.1361
  13  3.72375e-06
  14  4.51132
  15  1.0361e-05
  16  2.79826e-06
  17  0.00403871
  18  0.221437
  19  0.189552
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  2.318e+01  1.350e+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:  1.090e+00  1.896e-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.030e+00  2.214e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.15
Ra Dec: 209.290 19.361
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 9.01e-08 +/- 5.24e-08
Energy Flux (Fixed Index): 2.08e-05 +/- 1.21e-05

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) = 6722.86803
delta logL = 0.0541153554559

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6722.86483127
delta logL = 0.0573140830284

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.984       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5143       1.0000          .0000       10.000    
     3 'Normalizat'    1.0479       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0780       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.

 FCN=   6722.865     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      259 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.013        335.14        .19647E-02    .40789E-03
   2  Index         2.5159        6.1725        .23485        .41413E-04
   3  Normalizat    1.0478        .98762E-01    .60872E-01   -.38280E-04
   4  Prefactor     1.0779        .86618E-01    .38490E-01   -.61367E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.0129
  Index      = 2.51589
  Normalizat = 1.04781
  Prefactor  = 1.07789
 **********
 **   18 **HESSE 
 **********

 FCN=   6722.865     FROM HESSE     STATUS=OK            33 CALLS      292 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.013        16.356        .39293E-03   -1.4687    
   2  Index         2.5159        .67114        .82652E-02   -.51993    
   3  Normalizat    1.0478        .22151        .26922E-03   -.91445    
   4  Prefactor     1.0779        .19044        .23148E-03   -.90176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46126e-11
Minuit parameter uncertainties:
  1  16.3583
  2  0.673844
  3  0.221702
  4  0.190559
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/61122': 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) = 6722.86482419
delta logL = 0.0573211676974

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  2.601e+01  1.636e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.516e+00  6.738e-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:  1.078e+00  1.906e-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.048e+00  2.217e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.21
Ra Dec: 209.290 19.361
Photon Index (Free Index): 2.52 +/- 0.67
Photon Flux (Free Index): 8.10e-08 +/- 5.60e-08
Energy Flux (Free Index): 2.31e-05 +/- 1.59e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/61122/cmap_HighResolution_300499201_300758401_4FGL_J1357.1+1921_daily_bin236.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.01e-08', energy_flux2='2.31e-05', photon_flux_error='5.24e-08', dlogl='5.73e-02', energy_flux='2.08e-05', photon_flux2='8.10e-08', job_status='DONE', time_completed='2021-09-08 17:57:33.499332', photon_index_error2='0.67', photon_index2='2.52', ts='4.15', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='1.59e-05', EG='1.03', time_epoch_completed='1631149053.5', return_code='0', job_id='61122', GAL2='1.08', EG2='1.05', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='5.60e-08', ts2='4.21', photon_index='2.76' WHERE bin_id='236' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:57:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0152>
Subject: Job 61122: <4FGL_J1357.1+1921_daily_bin236> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin236 209.29 19.3608 300499201 300758401 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 :                                   517.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   713 sec.
    Turnaround time :                            715 sec.

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

