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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin955
RA = 209.29, Dec = 19.3608
tmin = 486864001, tmax = 487123201
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='64472', job_status='RUN', time_executed='2021-09-08 17:58:02.743919', time_epoch_executed='1631149082.74' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='955'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/64472

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/64472/ft1_4FGL_J1357.1+1921_daily_bin955.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/64472/ft2_4FGL_J1357.1+1921_daily_bin955.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/64472/ft1_4FGL_J1357.1+1921_daily_bin955.fits outfile=/scratch/kocevski/64472/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin955.fits ra=209.29 dec=19.3608 rad=12.0 tmin=486864001.0 tmax=487123201.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.51
user 3.26
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/64472/ft1_filtered_4FGL_J1357.1+1921_daily_bin955.fits evtable="EVENTS" scfile=/scratch/kocevski/64472/ft2_4FGL_J1357.1+1921_daily_bin955.fits sctable="SC_DATA" expcube=/scratch/kocevski/64472/ltcube_486864001_487123201_4FGL_J1357.1+1921_daily_bin955.fits outfile=/scratch/kocevski/64472/expmap_486864001_487123201_4FGL_J1357.1+1921_daily_bin955.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/64472/ltcube_486864001_487123201_4FGL_J1357.1+1921_daily_bin955.fits
.....................!
real 191.13
user 185.54
sys 5.20

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/64472/ft1_filtered_4FGL_J1357.1+1921_daily_bin955.fits scfile=/scratch/kocevski/64472/ft2_4FGL_J1357.1+1921_daily_bin955.fits outfile=/scratch/kocevski/64472/cmap_486864001_487123201_4FGL_J1357.1+1921_daily_bin955.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.57
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/64472/ft1_filtered_4FGL_J1357.1+1921_daily_bin955.fits scfile=/scratch/kocevski/64472/ft2_4FGL_J1357.1+1921_daily_bin955.fits outfile=/scratch/kocevski/64472/cmap_HighResolution_486864001_487123201_4FGL_J1357.1+1921_daily_bin955.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.58
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.784       1.0000         .10000E-03   10000.    
     2 'norm      '    2.5740       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6575       1.0000         .10000E-03   10000.    
     4 'norm      '    5.1928       1.0000         .10000E-03   10000.    
     5 'Prefactor '    33.071       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.4299       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.7275       1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.812       1.0000         .10000E-03   10000.    
    12 'Prefactor '    33.865       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.843       1.0000         .10000E-03   10000.    
    14 'norm      '    5.9532       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .81488E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    11.779       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .42073E-02   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .45711       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.3153       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5605.562     FROM MIGRAD    STATUS=CONVERGED    705 CALLS     2256 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.780        25.116        .92411E-04    .10088E-04
   2  norm          2.5725        6.2744        .12720E-02   -.18172E-03
   3  Prefactor     1.5802        106.04        .32776E-03    .24627E-04
   4  norm          5.1923        7.4759        .17641E-03   -.26423E-05
   5  Prefactor     33.066        24.247        .69679E-04    .37526E-05
   6  Prefactor     .10000E-03    10.073        .18142E-02** at limit **
   7  Prefactor     .10000E-03    14.552        .18142E-02** at limit **
   8  Prefactor     .10000E-03    1.1596        .78649E-03** at limit **
   9  Prefactor     3.4292        4.0249        .15753E-03    .45755E-04
  10  Prefactor     5.7270        8.1381        .16783E-03   -.73834E-05
  11  Prefactor     18.812        13.343        .92343E-04    .78669E-04
  12  Prefactor     33.867        27.167        .68860E-04    .24434E-04
  13  Prefactor     11.851        8.4427        .11640E-03    .12345E-03
  14  norm          5.9530        2.7552        .81990E-04    .52552E-04
  15  Prefactor     .10790E-03    9.6647        .50392E-01** at limit **
  16  norm          11.781        3.9456        .82303E-04    .12349E-03
  17  Prefactor     .10053E-03    179.78        .68924E-02** at limit **
  18  Normalizat    .45702        .22157        .35527E-03    .44033E-04
  19  Prefactor     1.3154        .19438        .19430E-03   -.35399E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 18.7802
  norm       = 2.57251
  Prefactor  = 1.58025
  norm       = 5.19235
  Prefactor  = 33.0661
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.42921
  Prefactor  = 5.72701
  Prefactor  = 18.8116
  Prefactor  = 33.8666
  Prefactor  = 11.8509
  norm       = 5.95299
  Prefactor  = 0.000107901
  norm       = 11.7805
  Prefactor  = 0.000100528
  Normalizat = 0.457021
  Prefactor  = 1.31544
 **********
 **   18 **HESSE 
 **********

 FCN=   5605.562     FROM HESSE     STATUS=OK           260 CALLS     2516 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.780        25.099        .36965E-05   -1.4841    
   2  norm          2.5725        6.2590        .50880E-04   -1.5387    
   3  Prefactor     1.5802        106.02        .13111E-04   -1.5457    
   4  norm          5.1923        7.4661        .70563E-05   -1.5252    
   5  Prefactor     33.066        24.247        .27872E-05   -1.4557    
   6  Prefactor     .10000E-03    10.074        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.553        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.1596        .15730E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.4292        4.0248        .63011E-05   -1.5338    
  10  Prefactor     5.7270        8.1381        .67133E-05   -1.5229    
  11  Prefactor     18.812        13.343        .36937E-05   -1.4840    
  12  Prefactor     33.867        27.167        .27544E-05   -1.4543    
  13  Prefactor     11.851        8.4382        .46562E-05   -1.5019    
  14  norm          5.9530        2.7551        .32796E-05   -1.5220    
  15  Prefactor     .10790E-03    8.5083        .54442E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          11.781        3.9453        .32921E-05   -1.5021    
  17  Prefactor     .10053E-03    186.28        .27570E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .45702        .22169        .14211E-04   -1.1445    
  19  Prefactor     1.3154        .19449        .77721E-05   -.82849    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71599e-09
Minuit parameter uncertainties:
  1  25.1136
  2  6.26059
  3  25.934
  4  7.4674
  5  24.2542
  6  2.56535e-05
  7  2.17652e-05
  8  5.43876e-06
  9  4.02513
  10  8.13966
  11  13.3455
  12  27.177
  13  8.439
  14  2.7552
  15  0.0164002
  16  3.94541
  17  0.0198884
  18  0.222121
  19  0.194597
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.881e+01  1.335e+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.315e+00  1.946e-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:  4.570e-01  2.221e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.85
Ra Dec: 209.290 19.361
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 7.31e-08 +/- 5.18e-08
Energy Flux (Fixed Index): 1.69e-05 +/- 1.20e-05

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

Saving results to:
/scratch/kocevski/64472/likelihoodResults_486864001_487123201_4FGL_J1357.1+1921_daily_bin955.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) = 5604.41186102
delta logL = 1.14988463761

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5604.40909956
delta logL = 1.15264610059

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.0488       1.0000         .10000E-03   10000.    
     2 'Index     '    4.1130       1.0000          .0000       10.000    
     3 'Normalizat'    .39554       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3525       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5604.409     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      277 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0497        14.854        .99080E-04    .66160E-03
   2  Index         4.1134        1.6613        .55507E-02    .77469E-04
   3  Normalizat    .39553        .21817        .38038E-03    .21268E-03
   4  Prefactor     1.3525        .19304        .19184E-03    .42928E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.04971
  Index      = 4.11335
  Normalizat = 0.395527
  Prefactor  = 1.35251
 **********
 **   18 **HESSE 
 **********

 FCN=   5604.409     FROM HESSE     STATUS=OK            25 CALLS      302 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0497        10.069        .39632E-05   -1.5177    
   2  Index         4.1134        1.1373        .22203E-03   -.17827    
   3  Normalizat    .39553        .21803        .15215E-04   -1.1753    
   4  Prefactor     1.3525        .19237        .38368E-04   -.81759    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.4617e-10
Minuit parameter uncertainties:
  1  10.0719
  2  1.14767
  3  0.218496
  4  0.192472
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/64472': 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) = 5604.40909907
delta logL = 1.15264658539

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  7.050e+00  1.007e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  4.113e+00  1.148e+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:  1.353e+00  1.925e-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:  3.955e-01  2.185e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.35
Ra Dec: 209.290 19.361
Photon Index (Free Index): 4.11 +/- 1.15
Photon Flux (Free Index): 1.24e-07 +/- 6.65e-08
Energy Flux (Free Index): 1.82e-05 +/- 9.93e-06

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/64472/cmap_HighResolution_486864001_487123201_4FGL_J1357.1+1921_daily_bin955.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.39e-02', comment='SUCCESS', photon_flux='7.31e-08', energy_flux2='1.82e-05', photon_flux_error='5.18e-08', dlogl='1.15e+00', energy_flux='1.69e-05', photon_flux2='1.24e-07', job_status='DONE', time_completed='2021-09-08 18:06:56.433658', photon_index_error2='1.15', photon_index2='4.11', ts='2.85', fit_tolerance='1e-08', GAL='1.32', photon_index_error='0.00', photon_flux_upper_limit='1.76e-07', energy_flux_error2='9.93e-06', EG='0.46', time_epoch_completed='1631149616.43', return_code='0', job_id='64472', GAL2='1.35', EG2='0.40', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='6.65e-08', ts2='5.35', photon_index='2.76' WHERE bin_id='955' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 18:06:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 64472: <4FGL_J1357.1+1921_daily_bin955> in cluster <slac> Done

Job <4FGL_J1357.1+1921_daily_bin955> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 17:55:35 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 17:55:36 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:55:36 2021
Terminated at Wed Sep  8 18:06:57 2021
Results reported at Wed Sep  8 18:06:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin955 209.29 19.3608 486864001 487123201 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 :                                   531.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   680 sec.
    Turnaround time :                            682 sec.

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

