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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin765
RA = 209.29, Dec = 19.3608
tmin = 437616001, tmax = 437875201
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='62936', job_status='RUN', time_executed='2021-09-08 17:52:43.205345', time_epoch_executed='1631148763.21' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='765'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/62936

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/62936/ft1_4FGL_J1357.1+1921_daily_bin765.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/62936/ft2_4FGL_J1357.1+1921_daily_bin765.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/62936/ft1_4FGL_J1357.1+1921_daily_bin765.fits outfile=/scratch/kocevski/62936/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin765.fits ra=209.29 dec=19.3608 rad=12.0 tmin=437616001.0 tmax=437875201.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.59
user 5.32
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/62936/ft2_4FGL_J1357.1+1921_daily_bin765.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/62936/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin765.fits evtable="EVENTS" outfile="/scratch/kocevski/62936/ft1_filtered_4FGL_J1357.1+1921_daily_bin765.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/62936/ft1_filtered_4FGL_J1357.1+1921_daily_bin765.fits" evtable="EVENTS" scfile=/scratch/kocevski/62936/ft2_4FGL_J1357.1+1921_daily_bin765.fits sctable="SC_DATA" outfile=/scratch/kocevski/62936/ltcube_437616001_437875201_4FGL_J1357.1+1921_daily_bin765.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/62936/ft2_4FGL_J1357.1+1921_daily_bin765.fits
.....................!
real 12.69
user 12.34
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/62936/ft1_filtered_4FGL_J1357.1+1921_daily_bin765.fits evtable="EVENTS" scfile=/scratch/kocevski/62936/ft2_4FGL_J1357.1+1921_daily_bin765.fits sctable="SC_DATA" expcube=/scratch/kocevski/62936/ltcube_437616001_437875201_4FGL_J1357.1+1921_daily_bin765.fits outfile=/scratch/kocevski/62936/expmap_437616001_437875201_4FGL_J1357.1+1921_daily_bin765.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/62936/ltcube_437616001_437875201_4FGL_J1357.1+1921_daily_bin765.fits
.....................!
real 189.75
user 184.95
sys 4.43

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/62936/ft1_filtered_4FGL_J1357.1+1921_daily_bin765.fits scfile=/scratch/kocevski/62936/ft2_4FGL_J1357.1+1921_daily_bin765.fits outfile=/scratch/kocevski/62936/cmap_437616001_437875201_4FGL_J1357.1+1921_daily_bin765.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=209.29 yref=19.3608 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/62936/ft1_filtered_4FGL_J1357.1+1921_daily_bin765.fits scfile=/scratch/kocevski/62936/ft2_4FGL_J1357.1+1921_daily_bin765.fits outfile=/scratch/kocevski/62936/cmap_HighResolution_437616001_437875201_4FGL_J1357.1+1921_daily_bin765.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/62936/ft1_filtered_4FGL_J1357.1+1921_daily_bin765.fits evtable="EVENTS" scfile=/scratch/kocevski/62936/ft2_4FGL_J1357.1+1921_daily_bin765.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/62936/Model_4FGL_J1357.1+1921_daily_bin765.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/62936/ft1_filtered_4FGL_J1357.1+1921_daily_bin765.fits.....................!
real 47.13
user 45.78
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    80.954       1.0000         .10000E-03   10000.    
     2 'norm      '    2.8574       1.0000         .10000E-03   10000.    
     3 'Prefactor '    27.275       1.0000         .10000E-03   10000.    
     4 'norm      '    .10112E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .86689E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.654       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.2639       1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.738       1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.323       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.4129       1.0000         .10000E-03   10000.    
    14 'norm      '    4.3977       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.3543       1.0000         .10000E-03   10000.    
    16 'norm      '    .11808E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.425       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1704       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .93706       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=   5814.923     FROM MIGRAD    STATUS=CONVERGED    678 CALLS     2194 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          80.957        42.016        .44639E-04   -.98969E-04
   2  norm          2.8586        6.1665        .24050E-03   -.99363E-04
   3  Prefactor     27.273        32.364        .76709E-04    .29582E-04
   4  norm          .10000E-03    9.2071        .36285E-03** at limit **
   5  Prefactor     .10000E-03    8.2737        .18142E-02** at limit **
   6  Prefactor     .10000E-03    74.158        .36672E-03** at limit **
   7  Prefactor     .10000E-03    17.290        .18142E-02** at limit **
   8  Prefactor     10.657        6.8352        .61374E-03    .90562E-04
   9  Prefactor     8.2636        5.4302        .13827E-03   -.23672E-03
  10  Prefactor     22.737        18.182        .84001E-04   -.23143E-04
  11  Prefactor     29.324        15.031        .73988E-04   -.12600E-04
  12  Prefactor     .10000E-03    12.608        .18142E-02** at limit **
  13  Prefactor     8.4111        9.6440        .13821E-03   -.74853E-04
  14  norm          4.3976        2.5809        .90976E-04   -.11434E-03
  15  Prefactor     6.3555        7.3433        .79615E-03   -.10208E-03
  16  norm          .10000E-03    2.4462        .29285E-01** at limit **
  17  Prefactor     21.422        25.036        .86533E-04   -.42042E-05
  18  Normalizat    1.1702        .25166        .26941E-03   -.29755E-03
  19  Prefactor     .93732        .20185        .24271E-03   -.20726E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 80.9568
  norm       = 2.85864
  Prefactor  = 27.2728
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 10.6565
  Prefactor  = 8.26357
  Prefactor  = 22.7366
  Prefactor  = 29.3236
  Prefactor  = 0.0001
  Prefactor  = 8.41114
  norm       = 4.39756
  Prefactor  = 6.35555
  norm       = 0.0001
  Prefactor  = 21.4218
  Normalizat = 1.17016
  Prefactor  = 0.937317
 **********
 **   18 **HESSE 
 **********

 FCN=   5814.923     FROM HESSE     STATUS=OK           260 CALLS     2454 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          80.957        42.013        .89278E-05   -1.3906    
   2  norm          2.8586        6.1657        .96201E-05   -1.5370    
   3  Prefactor     27.273        32.364        .15342E-04   -1.4663    
   4  norm          .10000E-03    9.2077        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.2738        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    74.163        .73345E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.290        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.657        6.8351        .24550E-04   -1.5055    
   9  Prefactor     8.2636        5.4301        .55307E-05   -1.5133    
  10  Prefactor     22.737        18.182        .33600E-05   -1.4754    
  11  Prefactor     29.324        15.031        .29595E-05   -1.4624    
  12  Prefactor     .10000E-03    12.609        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.4111        9.6390        .55284E-05   -1.5128    
  14  norm          4.3976        2.5809        .36391E-05   -1.5289    
  15  Prefactor     6.3555        7.3382        .31846E-04   -1.5204    
  16  norm          .10000E-03    2.0435        .33430E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     21.422        25.038        .34613E-05   -1.4782    
  18  Normalizat    1.1702        .25186        .53883E-04   -.87530    
  19  Prefactor     .93732        .20201        .48542E-04   -.94849    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21888e-10
Minuit parameter uncertainties:
  1  42.0288
  2  6.16711
  3  32.3846
  4  2.70979e-05
  5  6.5344e-06
  6  0.000497341
  7  9.83021e-05
  8  6.83561
  9  5.43047
  10  18.186
  11  15.0326
  12  1.93927e-05
  13  9.64083
  14  2.58098
  15  7.33923
  16  9.46503e-07
  17  25.0503
  18  0.252122
  19  0.202174
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  2.932e+01  1.503e+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.373e-01  2.022e-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.170e+00  2.521e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.06
Ra Dec: 209.290 19.361
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 1.14e-07 +/- 5.84e-08
Energy Flux (Fixed Index): 2.63e-05 +/- 1.35e-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) = 5814.92268711
delta logL = 0.000697160378877

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5814.92231967
delta logL = 0.00106459497692

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.899       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7902       1.0000          .0000       10.000    
     3 'Normalizat'    1.1674       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93908       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=   5814.922     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      268 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.906        17.997        .74527E-04    .74899E-04
   2  Index         2.7899        .72391        .73853E-02    .19761E-03
   3  Normalizat    1.1673        .25250        .26968E-03   -.22890E-04
   4  Prefactor     .93906        .20274        .24251E-03   -.58130E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.9058
  Index      = 2.78987
  Normalizat = 1.16735
  Prefactor  = 0.939062
 **********
 **   18 **HESSE 
 **********

 FCN=   5814.922     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.906        17.552        .29811E-05   -1.4632    
   2  Index         2.7899        .70547        .14771E-02   -.45786    
   3  Normalizat    1.1673        .25248        .10787E-04   -.87618    
   4  Prefactor     .93906        .20274        .97004E-05   -.94789    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35618e-11
Minuit parameter uncertainties:
  1  17.5547
  2  0.708414
  3  0.25274
  4  0.2029
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/62936': 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) = 5814.92231952
delta logL = 0.00106474729546

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  2.891e+01  1.755e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.790e+00  7.084e-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:  9.391e-01  2.029e-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.167e+00  2.527e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.01
Ra Dec: 209.290 19.361
Photon Index (Free Index): 2.79 +/- 0.71
Photon Flux (Free Index): 1.16e-07 +/- 7.20e-08
Energy Flux (Free Index): 2.61e-05 +/- 1.37e-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/62936/cmap_HighResolution_437616001_437875201_4FGL_J1357.1+1921_daily_bin765.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.14e-07', energy_flux2='2.61e-05', photon_flux_error='5.84e-08', dlogl='1.06e-03', energy_flux='2.63e-05', photon_flux2='1.16e-07', job_status='DONE', time_completed='2021-09-08 18:01:16.954320', photon_index_error2='0.71', photon_index2='2.79', ts='7.06', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.37e-05', EG='1.17', time_epoch_completed='1631149276.95', return_code='0', job_id='62936', GAL2='0.94', EG2='1.17', return_code2='0', energy_flux_error='1.35e-05', photon_flux_error2='7.20e-08', ts2='7.01', photon_index='2.76' WHERE bin_id='765' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 18:01:16 PDT 2021


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

Job <4FGL_J1357.1+1921_daily_bin765> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  8 17:50:41 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 17:50:43 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:50:43 2021
Terminated at Wed Sep  8 18:01:17 2021
Results reported at Wed Sep  8 18:01:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin765 209.29 19.3608 437616001 437875201 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 :                                   511.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   634 sec.
    Turnaround time :                            636 sec.

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

