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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin683
RA = 209.29, Dec = 19.3608
tmin = 416361601, tmax = 416620801
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='62812', job_status='RUN', time_executed='2021-09-08 17:54:12.720648', time_epoch_executed='1631148852.72' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='683'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/62812

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/62812/ft1_4FGL_J1357.1+1921_daily_bin683.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/62812/ft2_4FGL_J1357.1+1921_daily_bin683.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/62812/ft1_4FGL_J1357.1+1921_daily_bin683.fits outfile=/scratch/kocevski/62812/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin683.fits ra=209.29 dec=19.3608 rad=12.0 tmin=416361601.0 tmax=416620801.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.05
user 4.82
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/62812/ft2_4FGL_J1357.1+1921_daily_bin683.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/62812/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin683.fits evtable="EVENTS" outfile="/scratch/kocevski/62812/ft1_filtered_4FGL_J1357.1+1921_daily_bin683.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/62812/ft1_filtered_4FGL_J1357.1+1921_daily_bin683.fits" evtable="EVENTS" scfile=/scratch/kocevski/62812/ft2_4FGL_J1357.1+1921_daily_bin683.fits sctable="SC_DATA" outfile=/scratch/kocevski/62812/ltcube_416361601_416620801_4FGL_J1357.1+1921_daily_bin683.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/62812/ft2_4FGL_J1357.1+1921_daily_bin683.fits
.....................!
real 11.91
user 11.55
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/62812/ft1_filtered_4FGL_J1357.1+1921_daily_bin683.fits evtable="EVENTS" scfile=/scratch/kocevski/62812/ft2_4FGL_J1357.1+1921_daily_bin683.fits sctable="SC_DATA" expcube=/scratch/kocevski/62812/ltcube_416361601_416620801_4FGL_J1357.1+1921_daily_bin683.fits outfile=/scratch/kocevski/62812/expmap_416361601_416620801_4FGL_J1357.1+1921_daily_bin683.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/62812/ltcube_416361601_416620801_4FGL_J1357.1+1921_daily_bin683.fits
.....................!
real 190.84
user 185.22
sys 5.27

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/62812/ft1_filtered_4FGL_J1357.1+1921_daily_bin683.fits scfile=/scratch/kocevski/62812/ft2_4FGL_J1357.1+1921_daily_bin683.fits outfile=/scratch/kocevski/62812/cmap_416361601_416620801_4FGL_J1357.1+1921_daily_bin683.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/62812/ft1_filtered_4FGL_J1357.1+1921_daily_bin683.fits scfile=/scratch/kocevski/62812/ft2_4FGL_J1357.1+1921_daily_bin683.fits outfile=/scratch/kocevski/62812/cmap_HighResolution_416361601_416620801_4FGL_J1357.1+1921_daily_bin683.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2707       1.0000         .10000E-03   10000.    
     2 'norm      '    7.4583       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    24.605       1.0000         .10000E-03   10000.    
     5 'Prefactor '    32.145       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .20893E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10748E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.3127       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12506E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.3991       1.0000         .10000E-03   10000.    
    12 'Prefactor '    37.217       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.5395       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.7380       1.0000         .10000E-03   10000.    
    16 'norm      '    .94011       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0807       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .83947       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=   6202.420     FROM MIGRAD    STATUS=CONVERGED    397 CALLS     1911 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2694        9.7976        .33543E-06   -.27083E-03
   2  norm          7.4582        7.5645        .10242E-05   -.52762E-05
   3  Prefactor     .10000E-03    12.739        .94974E-06** at limit **
   4  norm          24.610        11.878       -.17173E-05   -.23286E-04
   5  Prefactor     32.156        26.773        .54931E-05    .41826E-04
   6  Prefactor     .10000E-03    106.58       -.45086E-05** at limit **
   7  Prefactor     .10000E-03    18.359       -.54746E-06** at limit **
   8  Prefactor     3.3127        4.4650       -.17507E-06   -.57581E-04
   9  Prefactor     .10000E-03    1.8426        .12080E-06** at limit **
  10  Prefactor     .10000E-03    6.5096        .15553E-07** at limit **
  11  Prefactor     6.3970        12.229        .24130E-05   -.10791E-04
  12  Prefactor     37.224        29.124        .28349E-05   -.45829E-05
  13  Prefactor     .10000E-03    2.1075       -.20958E-06** at limit **
  14  norm          6.5392        2.4965        .72286E-08   -.22857E-04
  15  Prefactor     5.7383        5.8503       -.27690E-07   -.62174E-03
  16  norm          .93955        2.1720        .23905E-06   -.44505E-04
  17  Prefactor     .10000E-03    8.7903        .24691E-06** at limit **
  18  Normalizat    1.0806        .18630       -.14720E-05    .34141E-04
  19  Prefactor     .83962        .14717       -.18263E-06   -.87534E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.26941
  norm       = 7.45817
  Prefactor  = 0.0001
  norm       = 24.6096
  Prefactor  = 32.156
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 3.3127
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.39697
  Prefactor  = 37.224
  Prefactor  = 0.0001
  norm       = 6.53925
  Prefactor  = 5.73827
  norm       = 0.939548
  Prefactor  = 0.0001
  Normalizat = 1.08058
  Prefactor  = 0.83962
 **********
 **   18 **HESSE 
 **********

 FCN=   6202.420     FROM HESSE     STATUS=OK           274 CALLS     2185 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2694        62.285        .19734E-02   -1.5483    
   2  norm          7.4582        7.6015        .14685E-03   -1.5162    
   3  Prefactor     .10000E-03    12.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          24.610        11.885        .80756E-04   -1.4715    
   5  Prefactor     32.156        26.923        .70674E-04   -1.4573    
   6  Prefactor     .10000E-03    110.19        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.3127        4.4724        .18476E-03   -1.5344    
   9  Prefactor     .10000E-03    4.1231        .20814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.5329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.3970        12.268        .15867E-03   -1.5202    
  12  Prefactor     37.224        29.090        .65696E-04   -1.4487    
  13  Prefactor     .10000E-03    2.1116        .11163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.5392        2.4973        .74595E-04   -1.5196    
  15  Prefactor     5.7383        6.2248        .83839E-03   -1.5229    
  16  norm          .93955        2.1365        .16713E-03   -1.5514    
  17  Prefactor     .10000E-03    8.7950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0806        .22577        .24736E-03   -.90378    
  19  Prefactor     .83962        .17728        .22860E-03   -.98284    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.177e-09
Minuit parameter uncertainties:
  1  17.8027
  2  7.60246
  3  7.24001e-06
  4  11.8856
  5  26.9329
  6  0.00144331
  7  5.72896e-06
  8  4.47283
  9  5.63049e-06
  10  8.0187e-07
  11  12.2728
  12  29.1015
  13  1.29584e-06
  14  2.4973
  15  6.22554
  16  2.13665
  17  3.00508e-06
  18  0.225975
  19  0.177402
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  6.397e+00  1.227e+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.396e-01  1.774e-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.081e+00  2.260e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/62812/likelihoodResults_416361601_416620801_4FGL_J1357.1+1921_daily_bin683.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) = 6201.42922128
delta logL = 0.990800930247

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6201.4147184
delta logL = 1.00530381147

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1185       1.0000         .10000E-03   10000.    
     2 'Index     '    5.3440       1.0000          .0000       10.000    
     3 'Normalizat'    .99754       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88573       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=   6201.415     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      302 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1121        12.108        .11114E-01   -.76861E-04
   2  Index         5.3485        3.5901        .18751        .39661E-04
   3  Normalizat    .99767        .44774E-01    .46136E-01   -.66818E-04
   4  Prefactor     .88564        .37163E-01    .44823E-01   -.74268E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11208
  Index      = 5.34845
  Normalizat = 0.997671
  Prefactor  = 0.885637
 **********
 **   18 **HESSE 
 **********

 FCN=   6201.415     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      335 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1121        29.197        .59254E-04   -1.5497    
   2  Index         5.3485        7.6625        .68391E-02    .69747E-01
   3  Normalizat    .99767        .19372        .25596E-03   -.93108    
   4  Prefactor     .88564        .15775        .22312E-03   -.96645    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.33446e-10
Minuit parameter uncertainties:
  1  11.4021
  2  7.69852
  3  0.193854
  4  0.157834
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/62812': 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) = 6201.41471649
delta logL = 1.00530572529

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.112e+00  1.140e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  5.348e+00  7.699e+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.856e-01  1.578e-01  0.000e+00  1.000e+01 ( 1.000e+00)
507        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
508        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
505   Normalization:  9.977e-01  1.939e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.51
Ra Dec: 209.290 19.361
Photon Index (Free Index): 5.35 +/- 7.70
Photon Flux (Free Index): 9.30e-08 +/- 7.12e-08
Energy Flux (Free Index): 1.20e-05 +/- 1.25e-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/62812/cmap_HighResolution_416361601_416620801_4FGL_J1357.1+1921_daily_bin683.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', comment='SUCCESS', energy_flux2='1.20e-05', dlogl='1.01e+00', photon_flux2='9.30e-08', job_status='DONE', time_completed='2021-09-08 18:03:19.120134', photon_index_error2='7.70', photon_index2='5.35', ts='0.33', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.29e-07', energy_flux_error2='1.25e-05', EG='1.08', time_epoch_completed='1631149399.12', return_code='0', job_id='62812', GAL2='0.89', EG2='1.00', return_code2='102', photon_flux_error2='7.12e-08', ts2='2.51', photon_index='2.76' WHERE bin_id='683' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 18:03:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 62812: <4FGL_J1357.1+1921_daily_bin683> in cluster <slac> Done

Job <4FGL_J1357.1+1921_daily_bin683> 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) <bullet0252>, 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:03:19 2021
Results reported at Wed Sep  8 18:03:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin683 209.29 19.3608 416361601 416620801 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 :                                   544.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   765 sec.
    Turnaround time :                            767 sec.

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

