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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin643
RA = 209.29, Dec = 19.3608
tmin = 405993601, tmax = 406252801
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='62752', job_status='RUN', time_executed='2021-09-08 17:50:45.457110', time_epoch_executed='1631148645.46' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='643'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/62752

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/62752/ft1_4FGL_J1357.1+1921_daily_bin643.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/62752/ft2_4FGL_J1357.1+1921_daily_bin643.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/62752/ft1_4FGL_J1357.1+1921_daily_bin643.fits outfile=/scratch/kocevski/62752/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin643.fits ra=209.29 dec=19.3608 rad=12.0 tmin=405993601.0 tmax=406252801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.45
user 3.22
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/62752/ft1_filtered_4FGL_J1357.1+1921_daily_bin643.fits" evtable="EVENTS" scfile=/scratch/kocevski/62752/ft2_4FGL_J1357.1+1921_daily_bin643.fits sctable="SC_DATA" outfile=/scratch/kocevski/62752/ltcube_405993601_406252801_4FGL_J1357.1+1921_daily_bin643.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/62752/ft2_4FGL_J1357.1+1921_daily_bin643.fits
.....................!
real 12.24
user 11.80
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/62752/ft1_filtered_4FGL_J1357.1+1921_daily_bin643.fits evtable="EVENTS" scfile=/scratch/kocevski/62752/ft2_4FGL_J1357.1+1921_daily_bin643.fits sctable="SC_DATA" expcube=/scratch/kocevski/62752/ltcube_405993601_406252801_4FGL_J1357.1+1921_daily_bin643.fits outfile=/scratch/kocevski/62752/expmap_405993601_406252801_4FGL_J1357.1+1921_daily_bin643.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/62752/ltcube_405993601_406252801_4FGL_J1357.1+1921_daily_bin643.fits
.....................!
real 190.84
user 185.77
sys 4.70

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/62752/ft1_filtered_4FGL_J1357.1+1921_daily_bin643.fits scfile=/scratch/kocevski/62752/ft2_4FGL_J1357.1+1921_daily_bin643.fits outfile=/scratch/kocevski/62752/cmap_405993601_406252801_4FGL_J1357.1+1921_daily_bin643.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/62752/ft1_filtered_4FGL_J1357.1+1921_daily_bin643.fits scfile=/scratch/kocevski/62752/ft2_4FGL_J1357.1+1921_daily_bin643.fits outfile=/scratch/kocevski/62752/cmap_HighResolution_405993601_406252801_4FGL_J1357.1+1921_daily_bin643.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/62752/ft1_filtered_4FGL_J1357.1+1921_daily_bin643.fits evtable="EVENTS" scfile=/scratch/kocevski/62752/ft2_4FGL_J1357.1+1921_daily_bin643.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/62752/Model_4FGL_J1357.1+1921_daily_bin643.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/62752/ft1_filtered_4FGL_J1357.1+1921_daily_bin643.fits.....................!
real 42.96
user 41.60
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10147E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    14.121       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    12.293       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.2532       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4106       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-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 '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.0294       1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.036       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11216E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.5608       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.4935       1.0000         .10000E-03   10000.    
    16 'norm      '    .89361       1.0000         .10000E-03   10000.    
    17 'Prefactor '    30.456       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3143       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .65287       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=   5332.136     FROM MIGRAD    STATUS=CONVERGED    380 CALLS     1862 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.186        .83061E-06** at limit **
   2  norm          14.119        8.2257        .16651E-07   -.11108E-03
   3  Prefactor     .10000E-03    13.318        .15972E-07** at limit **
   4  norm          12.292        9.7241       -.10573E-07   -.99494E-04
   5  Prefactor     4.2817        28.497        .35220E-05    .88598E-04
   6  Prefactor     1.3797        88.152        .72534E-05    .17581E-04
   7  Prefactor     .10000E-03    16.335       -.14224E-06** at limit **
   8  Prefactor     .10000E-03    .95710       -.69500E-07** at limit **
   9  Prefactor     .10000E-03    1.4690        .60968E-07** at limit **
  10  Prefactor     .10000E-03    6.1122       -.24441E-07** at limit **
  11  Prefactor     6.0274        7.0019        .12410E-05   -.12200E-02
  12  Prefactor     26.045        26.454        .14963E-05    .14705E-03
  13  Prefactor     .10000E-03    10.755       -.68737E-06** at limit **
  14  norm          5.5611        2.6069        .27550E-07   -.12052E-04
  15  Prefactor     6.4938        6.3318        .16221E-06    .18367E-04
  16  norm          .89364        2.6562        .11514E-06   -.51997E-03
  17  Prefactor     30.463        31.666        .22578E-05    .19096E-03
  18  Normalizat    1.3143        .19534       -.11939E-05   -.80725E-04
  19  Prefactor     .65285        .15954       -.17223E-06   -.16525E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 14.119
  Prefactor  = 0.0001
  norm       = 12.2922
  Prefactor  = 4.28166
  Prefactor  = 1.37972
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.02736
  Prefactor  = 26.0454
  Prefactor  = 0.0001
  norm       = 5.56106
  Prefactor  = 6.49378
  norm       = 0.893641
  Prefactor  = 30.4628
  Normalizat = 1.31431
  Prefactor  = 0.652849
 **********
 **   18 **HESSE 
 **********

 FCN=   5332.136     FROM HESSE     STATUS=OK           266 CALLS     2128 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          14.119        8.2330        .10659E-03   -1.4956    
   3  Prefactor     .10000E-03    13.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          12.292        9.7363        .11425E-03   -1.5007    
   5  Prefactor     4.2817        26.773        .19537E-03   -1.5294    
   6  Prefactor     1.3797        82.485        .36477E-03   -1.5473    
   7  Prefactor     .10000E-03    16.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .95876        .69782E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.4718        .86447E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.1263        .17630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.0274        9.5781        .81759E-03   -1.5217    
  12  Prefactor     26.045        26.683        .78509E-04   -1.4687    
  13  Prefactor     .10000E-03    11.176        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.5611        2.6068        .78348E-04   -1.5236    
  15  Prefactor     6.4938        6.3020        .15749E-03   -1.5198    
  16  norm          .89364        2.7035        .19823E-03   -1.5519    
  17  Prefactor     30.463        32.255        .72602E-04   -1.4604    
  18  Normalizat    1.3143        .23130        .22027E-03   -.83140    
  19  Prefactor     .65285        .18977        .25471E-03   -1.0540    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74149e-09
Minuit parameter uncertainties:
  1  8.8842e-05
  2  8.23371
  3  6.91317e-06
  4  9.73755
  5  21.4272
  6  21.3661
  7  1.27714e-05
  8  2.47668e-06
  9  3.35821e-06
  10  3.53947e-06
  11  9.58055
  12  26.6951
  13  8.19499e-05
  14  2.60689
  15  6.30261
  16  2.70382
  17  32.2737
  18  0.23148
  19  0.189954
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  6.027e+00  9.581e+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

GAL_V02
   Spectrum: PowerLaw
506    Prefactor:  6.528e-01  1.900e-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.314e+00  2.315e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/62752/likelihoodResults_405993601_406252801_4FGL_J1357.1+1921_daily_bin643.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) = 5331.75511731
delta logL = 0.381270779223

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5331.7321308
delta logL = 0.404257280461

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.2493       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8743       1.0000          .0000       10.000    
     3 'Normalizat'    1.3373       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63415       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=   5331.732     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      214 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2493        9.9656        .34896E-02   -.28948E-02
   2  Index         1.8743        .55783        .20161       -.69781E-04
   3  Normalizat    1.3373        .18686        .49452E-01    .13625E-05
   4  Prefactor     .63415        .15884        .41518E-01    .19409E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.24931
  Index      = 1.87431
  Normalizat = 1.33726
  Prefactor  = 0.634152
 **********
 **   18 **HESSE 
 **********

 FCN=   5331.732     FROM HESSE     STATUS=OK            31 CALLS      245 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2493        10.969        .13958E-03   -1.5133    
   2  Index         1.8743        .74180        .10113E-01   -.67531    
   3  Normalizat    1.3373        .22083        .21862E-03   -.82461    
   4  Prefactor     .63415        .18735        .25794E-03   -1.0617    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28581e-08
Minuit parameter uncertainties:
  1  10.9712
  2  0.74634
  3  0.220982
  4  0.187536
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/62752': 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) = 5331.7321308
delta logL = 0.404257282128

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  8.249e+00  1.097e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  1.874e+00  7.463e-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:  6.342e-01  1.875e-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.337e+00  2.210e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.33
Ra Dec: 209.290 19.361
Photon Index (Free Index): 1.87 +/- 0.75
Photon Flux (Free Index): 1.66e-08 +/- 2.47e-08
Energy Flux (Free Index): 1.60e-05 +/- 2.74e-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/62752/cmap_HighResolution_405993601_406252801_4FGL_J1357.1+1921_daily_bin643.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.94e-03', comment='SUCCESS', energy_flux2='1.60e-05', dlogl='4.04e-01', photon_flux2='1.66e-08', job_status='DONE', time_completed='2021-09-08 17:59:08.599750', photon_index_error2='0.75', photon_index2='1.87', ts='0.51', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', photon_flux_upper_limit='1.13e-07', energy_flux_error2='2.74e-05', EG='1.31', time_epoch_completed='1631149148.6', return_code='0', job_id='62752', GAL2='0.63', EG2='1.34', return_code2='0', photon_flux_error2='2.47e-08', ts2='1.33', photon_index='2.76' WHERE bin_id='643' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:59:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 62752: <4FGL_J1357.1+1921_daily_bin643> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin643 209.29 19.3608 405993601 406252801 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 :                                   500.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             405.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   518 sec.
    Turnaround time :                            521 sec.

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

