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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin76
RA = 209.29, Dec = 19.3608
tmin = 259027201, tmax = 259286401
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='60860', job_status='RUN', time_executed='2021-09-08 17:47:18.692837', time_epoch_executed='1631148438.69' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='76'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/60860

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/60860/ft1_4FGL_J1357.1+1921_daily_bin76.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/60860/ft2_4FGL_J1357.1+1921_daily_bin76.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/60860/ft1_4FGL_J1357.1+1921_daily_bin76.fits outfile=/scratch/kocevski/60860/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin76.fits ra=209.29 dec=19.3608 rad=12.0 tmin=259027201.0 tmax=259286401.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 1.45
user 1.26
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/60860/ft1_filtered_4FGL_J1357.1+1921_daily_bin76.fits" evtable="EVENTS" scfile=/scratch/kocevski/60860/ft2_4FGL_J1357.1+1921_daily_bin76.fits sctable="SC_DATA" outfile=/scratch/kocevski/60860/ltcube_259027201_259286401_4FGL_J1357.1+1921_daily_bin76.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/60860/ft2_4FGL_J1357.1+1921_daily_bin76.fits
.....................!
real 12.90
user 12.53
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/60860/ft1_filtered_4FGL_J1357.1+1921_daily_bin76.fits evtable="EVENTS" scfile=/scratch/kocevski/60860/ft2_4FGL_J1357.1+1921_daily_bin76.fits sctable="SC_DATA" expcube=/scratch/kocevski/60860/ltcube_259027201_259286401_4FGL_J1357.1+1921_daily_bin76.fits outfile=/scratch/kocevski/60860/expmap_259027201_259286401_4FGL_J1357.1+1921_daily_bin76.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/60860/ltcube_259027201_259286401_4FGL_J1357.1+1921_daily_bin76.fits
.....................!
real 195.23
user 189.83
sys 4.98

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/60860/ft1_filtered_4FGL_J1357.1+1921_daily_bin76.fits scfile=/scratch/kocevski/60860/ft2_4FGL_J1357.1+1921_daily_bin76.fits outfile=/scratch/kocevski/60860/cmap_259027201_259286401_4FGL_J1357.1+1921_daily_bin76.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/60860/ft1_filtered_4FGL_J1357.1+1921_daily_bin76.fits scfile=/scratch/kocevski/60860/ft2_4FGL_J1357.1+1921_daily_bin76.fits outfile=/scratch/kocevski/60860/cmap_HighResolution_259027201_259286401_4FGL_J1357.1+1921_daily_bin76.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    49.931       1.0000         .10000E-03   10000.    
     2 'norm      '    2.2792       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    25.921       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.5171       1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.939       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7739       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .19017E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    51.429       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .99645       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0049       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=   6725.793     FROM MIGRAD    STATUS=CONVERGED    372 CALLS     1626 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          49.933        26.357        .12895E-05    .20290E-04
   2  norm          2.2774        5.9617       -.17757E-05   -.61177E-03
   3  Prefactor     .10000E-03    14.387       -.54060E-06** at limit **
   4  norm          25.921        10.839       -.11525E-08    .44963E-04
   5  Prefactor     .10000E-03    5.1925       -.13331E-05** at limit **
   6  Prefactor     .10000E-03    4.4201       -.39006E-05** at limit **
   7  Prefactor     .10000E-03    19.327        .86115E-05** at limit **
   8  Prefactor     .10000E-03    2.2363       -.25064E-08** at limit **
   9  Prefactor     .10000E-03    4.4584        .45775E-05** at limit **
  10  Prefactor     6.5149        14.459       -.28054E-05   -.12261E-03
  11  Prefactor     21.938        11.904       -.40954E-06    .29427E-04
  12  Prefactor     1.7735        22.463       -.15414E-05   -.15506E-03
  13  Prefactor     .10000E-03    1.3222       -.39901E-08** at limit **
  14  norm          .10000E-03    1.0344        .36031E-07** at limit **
  15  Prefactor     .10012E-03    3.8856       -.16632E-05** at limit **
  16  norm          .10000E-03    1.1178        .18521E-07** at limit **
  17  Prefactor     51.430        32.756        .17789E-05    .92533E-04
  18  Normalizat    .99656        .17190        .37631E-06    .11819E-03
  19  Prefactor     1.0048        .14438        .13527E-06    .12105E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 49.9327
  norm       = 2.27743
  Prefactor  = 0.0001
  norm       = 25.9213
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.51494
  Prefactor  = 21.9378
  Prefactor  = 1.77349
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100122
  norm       = 0.0001
  Prefactor  = 51.4303
  Normalizat = 0.996562
  Prefactor  = 1.00484
 **********
 **   18 **HESSE 
 **********

 FCN=   6725.793     FROM HESSE     STATUS=OK           270 CALLS     1896 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          49.933        26.388        .56752E-04   -1.4294    
   2  norm          2.2774        6.0951        .27197E-03   -1.5406    
   3  Prefactor     .10000E-03    14.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          25.921        10.801        .78683E-04   -1.4689    
   5  Prefactor     .10000E-03    5.1897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.3758        .16752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    19.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.2766        .11973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.4848        .33202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.5149        14.552        .15721E-03   -1.5197    
  11  Prefactor     21.938        11.913        .85515E-04   -1.4771    
  12  Prefactor     1.7735        22.903        .31435E-03   -1.5442    
  13  Prefactor     .10000E-03    1.3233        .92086E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.0495        .81420E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10012E-03    20.352        .30313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.9052        .16781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     51.430        32.632        .55924E-04   -1.4272    
  18  Normalizat    .99656        .20069        .25584E-03   -.93146    
  19  Prefactor     1.0048        .16876        .21733E-03   -.92568    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.65477e-09
Minuit parameter uncertainties:
  1  26.3946
  2  6.09673
  3  1.50685e-06
  4  10.8023
  5  2.04959e-08
  6  1.34866e-07
  7  1.86325e-06
  8  1.27039e-06
  9  3.86104e-05
  10  14.5598
  11  11.914
  12  12.7521
  13  1.25669e-06
  14  8.29338e-07
  15  0.00315233
  16  8.81605e-06
  17  32.6433
  18  0.200842
  19  0.168854
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  2.194e+01  1.191e+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.005e+00  1.689e-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.966e-01  2.008e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.84
Ra Dec: 209.290 19.361
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 8.53e-08 +/- 4.63e-08
Energy Flux (Fixed Index): 1.97e-05 +/- 1.07e-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) = 6724.36319932
delta logL = 1.42977821479

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6724.36249266
delta logL = 1.4304848717

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.385       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9883       1.0000          .0000       10.000    
     3 'Normalizat'    1.0371       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98545       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=   6724.362     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      212 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.378        13.315        .21165E-02    .20326E-04
   2  Index         1.9883        .33691        .16921       -.71721E-04
   3  Normalizat    1.0372        .16833        .41516E-01    .76282E-05
   4  Prefactor     .98541        .14388        .46085E-01    .53869E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.378
  Index      = 1.9883
  Normalizat = 1.03722
  Prefactor  = 0.985409
 **********
 **   18 **HESSE 
 **********

 FCN=   6724.362     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.378        15.385        .84660E-04   -1.4762    
   2  Index         1.9883        .43219        .67322E-02   -.64643    
   3  Normalizat    1.0372        .19710        .25139E-03   -.91794    
   4  Prefactor     .98541        .16818        .21922E-03   -.93217    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25033e-11
Minuit parameter uncertainties:
  1  15.3874
  2  0.433039
  3  0.197244
  4  0.168271
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/60860': 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) = 6724.3624923
delta logL = 1.43048523486

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  2.238e+01  1.539e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  1.988e+00  4.330e-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.854e-01  1.683e-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.037e+00  1.972e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.71
Ra Dec: 209.290 19.361
Photon Index (Free Index): 1.99 +/- 0.43
Photon Flux (Free Index): 4.75e-08 +/- 3.92e-08
Energy Flux (Free Index): 3.38e-05 +/- 2.65e-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/60860/cmap_HighResolution_259027201_259286401_4FGL_J1357.1+1921_daily_bin76.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.53e-08', energy_flux2='3.38e-05', photon_flux_error='4.63e-08', dlogl='1.43e+00', energy_flux='1.97e-05', photon_flux2='4.75e-08', job_status='DONE', time_completed='2021-09-08 17:56:25.625188', photon_index_error2='0.43', photon_index2='1.99', ts='6.84', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='2.65e-05', EG='1.00', time_epoch_completed='1631148985.63', return_code='0', job_id='60860', GAL2='0.99', EG2='1.04', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='3.92e-08', ts2='9.71', photon_index='2.76' WHERE bin_id='76' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:56:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 60860: <4FGL_J1357.1+1921_daily_bin76> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin76 209.29 19.3608 259027201 259286401 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 :                                   491.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   666 sec.
    Turnaround time :                            669 sec.

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

