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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin682
RA = 209.29, Dec = 19.3608
tmin = 416102401, tmax = 416361601
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='62811', job_status='RUN', time_executed='2021-09-08 17:53:00.586825', time_epoch_executed='1631148780.59' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='682'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/62811

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/62811/ft1_4FGL_J1357.1+1921_daily_bin682.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/62811/ft2_4FGL_J1357.1+1921_daily_bin682.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/62811/ft1_4FGL_J1357.1+1921_daily_bin682.fits outfile=/scratch/kocevski/62811/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin682.fits ra=209.29 dec=19.3608 rad=12.0 tmin=416102401.0 tmax=416361601.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 6.51
user 6.22
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/62811/ft2_4FGL_J1357.1+1921_daily_bin682.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/62811/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin682.fits evtable="EVENTS" outfile="/scratch/kocevski/62811/ft1_filtered_4FGL_J1357.1+1921_daily_bin682.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.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/62811/ft1_filtered_4FGL_J1357.1+1921_daily_bin682.fits" evtable="EVENTS" scfile=/scratch/kocevski/62811/ft2_4FGL_J1357.1+1921_daily_bin682.fits sctable="SC_DATA" outfile=/scratch/kocevski/62811/ltcube_416102401_416361601_4FGL_J1357.1+1921_daily_bin682.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/62811/ft2_4FGL_J1357.1+1921_daily_bin682.fits
.....................!
real 12.40
user 12.02
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/62811/ft1_filtered_4FGL_J1357.1+1921_daily_bin682.fits evtable="EVENTS" scfile=/scratch/kocevski/62811/ft2_4FGL_J1357.1+1921_daily_bin682.fits sctable="SC_DATA" expcube=/scratch/kocevski/62811/ltcube_416102401_416361601_4FGL_J1357.1+1921_daily_bin682.fits outfile=/scratch/kocevski/62811/expmap_416102401_416361601_4FGL_J1357.1+1921_daily_bin682.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/62811/ltcube_416102401_416361601_4FGL_J1357.1+1921_daily_bin682.fits
.....................!
real 190.57
user 185.17
sys 5.01

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/62811/ft1_filtered_4FGL_J1357.1+1921_daily_bin682.fits scfile=/scratch/kocevski/62811/ft2_4FGL_J1357.1+1921_daily_bin682.fits outfile=/scratch/kocevski/62811/cmap_416102401_416361601_4FGL_J1357.1+1921_daily_bin682.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.66
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/62811/ft1_filtered_4FGL_J1357.1+1921_daily_bin682.fits scfile=/scratch/kocevski/62811/ft2_4FGL_J1357.1+1921_daily_bin682.fits outfile=/scratch/kocevski/62811/cmap_HighResolution_416102401_416361601_4FGL_J1357.1+1921_daily_bin682.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.61
user 0.38
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    25.531       1.0000         .10000E-03   10000.    
     2 'norm      '    9.2788       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.635       1.0000         .10000E-03   10000.    
     4 'norm      '    .12278E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .79581E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.982       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .31384E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.082       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.753       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.0985       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14788E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    5.2085       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3847       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .78029       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=   9411.215     FROM MIGRAD    STATUS=CONVERGED    414 CALLS     1679 TOTAL
                     EDM=   .57E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          25.533        19.260        .11236E-05   -.57236E-05
   2  norm          9.2770        6.0468       -.28956E-06   -.14231E-03
   3  Prefactor     12.637        24.455       -.14062E-05   -.11262E-04
   4  norm          .10000E-03    5.2948        .55316E-07** at limit **
   5  Prefactor     .10009E-03    8.6809        .70880E-08** at limit **
   6  Prefactor     11.981        16.595        .14774E-05   -.30943E-04
   7  Prefactor     .10000E-03    32.130        .16517E-06** at limit **
   8  Prefactor     .10000E-03    1.5116       -.64143E-08** at limit **
   9  Prefactor     .10000E-03    .87838       -.51603E-09** at limit **
  10  Prefactor     .10000E-03    9.4905       -.39797E-06** at limit **
  11  Prefactor     10.083        10.111        .37974E-05   -.75846E-04
  12  Prefactor     14.751        15.292       -.40442E-05   -.29387E-04
  13  Prefactor     .10000E-03    2.5354        .44481E-07** at limit **
  14  norm          5.0985        1.8643        .13670E-07    .80549E-04
  15  Prefactor     .10000E-03    1.9150        .19980E-06** at limit **
  16  norm          5.2078        2.2199        .21366E-08   -.32197E-03
  17  Prefactor     .10000E-03    8.5817       -.45406E-08** at limit **
  18  Normalizat    1.3845        .15538       -.71625E-06    .42785E-04
  19  Prefactor     .78039        .12736        .17578E-06   -.87325E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 25.5326
  norm       = 9.27697
  Prefactor  = 12.6374
  norm       = 0.0001
  Prefactor  = 0.000100085
  Prefactor  = 11.9815
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 10.0833
  Prefactor  = 14.7508
  Prefactor  = 0.0001
  norm       = 5.09847
  Prefactor  = 0.0001
  norm       = 5.20779
  Prefactor  = 0.0001
  Normalizat = 1.3845
  Prefactor  = 0.780388
 **********
 **   18 **HESSE 
 **********

 FCN=   9411.215     FROM HESSE     STATUS=OK           284 CALLS     1963 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          25.533        19.260        .79280E-04   -1.4697    
   2  norm          9.2770        6.0430        .13157E-03   -1.5099    
   3  Prefactor     12.637        24.463        .11269E-03   -1.4997    
   4  norm          .10000E-03    5.3486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10009E-03    127.89        .53570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.981        16.179        .11573E-03   -1.5016    
   7  Prefactor     .10000E-03    32.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.5484        .11644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .88020        .88783E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.181        .78397E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.083        10.015        .12620E-03   -1.5073    
  12  Prefactor     14.751        15.365        .10428E-03   -1.4940    
  13  Prefactor     .10000E-03    2.5545        .15073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.0985        1.8650        .77844E-04   -1.5256    
  15  Prefactor     .10000E-03    12.707        .25525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.2078        2.2143        .90606E-04   -1.5252    
  17  Prefactor     .10000E-03    8.5937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.3845        .18356        .23133E-03   -.81078    
  19  Prefactor     .78039        .15096        .25004E-03   -1.0046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.23319e-10
Minuit parameter uncertainties:
  1  19.2642
  2  6.04345
  3  24.4826
  4  9.39027e-06
  5  0.0066154
  6  16.1844
  7  1.36247e-05
  8  6.57597e-07
  9  4.88501e-07
  10  0.000328814
  11  10.0164
  12  15.3692
  13  8.71469e-06
  14  1.86506
  15  7.70295e-05
  16  2.21429
  17  2.48949e-06
  18  0.18365
  19  0.151037
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.008e+01  1.002e+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:  7.804e-01  1.510e-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.385e+00  1.836e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.32
Ra Dec: 209.290 19.361
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 3.92e-08 +/- 3.89e-08
Energy Flux (Fixed Index): 9.04e-06 +/- 8.98e-06

TS (Fixed Index): 1.32
Ra Dec: 209.290 19.361
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/62811/likelihoodResults_416102401_416361601_4FGL_J1357.1+1921_daily_bin682.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) = 9411.09165908
delta logL = 0.123218223598

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9410.96010369
delta logL = 0.254773613889

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .97065E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    6.8711       1.0000          .0000       10.000    
     3 'Normalizat'    1.3353       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81953       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=   9410.960     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      313 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .94258E-01    .89431        .51960E-02    .64749E-02
   2  Index         6.8923        3.1054        .21827        .16149E-03
   3  Normalizat    1.3355        .30418E-01    .53108E-01    .24506E-04
   4  Prefactor     .81948        .25649E-01    .43971E-01   -.13956E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0942581
  Index      = 6.8923
  Normalizat = 1.33549
  Prefactor  = 0.819475
 **********
 **   18 **HESSE 
 **********

 FCN=   9410.960     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      348 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .94258E-01    2.9632        .23710E-03   -1.5647    
   2  Index         6.8923        8.3675        .92214E-02    .38813    
   3  Normalizat    1.3355        .12632        .23482E-03   -.82513    
   4  Prefactor     .81948        .10372        .24472E-03   -.99014    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.56019e-10
Minuit parameter uncertainties:
  1  1.05648
  2  7.90223
  3  0.126352
  4  0.103741
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/62811': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9410.96009475
delta logL = 0.25478255073

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  9.426e-02  1.056e+00  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  6.892e+00  7.902e+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:  8.195e-01  1.037e-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.335e+00  1.264e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.94
Ra Dec: 209.290 19.361
Photon Index (Free Index): 6.89 +/- 7.90
Photon Flux (Free Index): 6.23e-08 +/- 5.35e-08
Energy Flux (Free Index): 7.47e-06 +/- 7.63e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/62811/cmap_HighResolution_416102401_416361601_4FGL_J1357.1+1921_daily_bin682.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.24e-03', comment='SUCCESS', photon_flux='3.92e-08', energy_flux2='7.47e-06', photon_flux_error='3.89e-08', dlogl='2.55e-01', energy_flux='9.04e-06', photon_flux2='6.23e-08', job_status='DONE', time_completed='2021-09-08 18:04:15.001954', photon_index_error2='7.90', photon_index2='6.89', ts='1.32', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='7.63e-06', EG='1.38', time_epoch_completed='1631149455.0', return_code='0', job_id='62811', GAL2='0.82', EG2='1.34', return_code2='102', energy_flux_error='8.98e-06', photon_flux_error2='5.35e-08', ts2='1.94', photon_index='2.76' WHERE bin_id='682' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 18:04:15 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin682 209.29 19.3608 416102401 416361601 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 :                                   670.20 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             271.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            823 sec.

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

