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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin861
RA = 209.29, Dec = 19.3608
tmin = 462499201, tmax = 462758401
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='64323', job_status='RUN', time_executed='2021-09-08 17:59:22.615396', time_epoch_executed='1631149162.62' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='861'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/64323

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/64323/ft1_4FGL_J1357.1+1921_daily_bin861.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/64323/ft2_4FGL_J1357.1+1921_daily_bin861.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/64323/ft1_4FGL_J1357.1+1921_daily_bin861.fits outfile=/scratch/kocevski/64323/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin861.fits ra=209.29 dec=19.3608 rad=12.0 tmin=462499201.0 tmax=462758401.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.53
user 3.30
sys 0.20

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/64323/ft1_filtered_4FGL_J1357.1+1921_daily_bin861.fits evtable="EVENTS" scfile=/scratch/kocevski/64323/ft2_4FGL_J1357.1+1921_daily_bin861.fits sctable="SC_DATA" expcube=/scratch/kocevski/64323/ltcube_462499201_462758401_4FGL_J1357.1+1921_daily_bin861.fits outfile=/scratch/kocevski/64323/expmap_462499201_462758401_4FGL_J1357.1+1921_daily_bin861.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/64323/ltcube_462499201_462758401_4FGL_J1357.1+1921_daily_bin861.fits
.....................!
real 190.60
user 186.06
sys 4.19

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/64323/ft1_filtered_4FGL_J1357.1+1921_daily_bin861.fits scfile=/scratch/kocevski/64323/ft2_4FGL_J1357.1+1921_daily_bin861.fits outfile=/scratch/kocevski/64323/cmap_462499201_462758401_4FGL_J1357.1+1921_daily_bin861.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/64323/ft1_filtered_4FGL_J1357.1+1921_daily_bin861.fits scfile=/scratch/kocevski/64323/ft2_4FGL_J1357.1+1921_daily_bin861.fits outfile=/scratch/kocevski/64323/cmap_HighResolution_462499201_462758401_4FGL_J1357.1+1921_daily_bin861.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.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    30.972       1.0000         .10000E-03   10000.    
     2 'norm      '    .12582E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .69200E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.8026       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    33.735       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.1426       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.068       1.0000         .10000E-03   10000.    
    14 'norm      '    5.5784       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.5616       1.0000         .10000E-03   10000.    
    16 'norm      '    .11769E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.118       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.4936       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .75393       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=   6503.566     FROM MIGRAD    STATUS=CONVERGED    405 CALLS     1917 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          30.969        25.324        .30953E-05    .85190E-04
   2  norm          .10001E-03    5.4289        .44799E-06** at limit **
   3  Prefactor     .10000E-03    10.730       -.12157E-05** at limit **
   4  norm          .10007E-03    5.9633       -.24027E-05** at limit **
   5  Prefactor     4.8094        17.123       -.32905E-04   -.31843E-04
   6  Prefactor     .10000E-03    7.4898        .79745E-07** at limit **
   7  Prefactor     33.677        48.461       -.27426E-04    .94685E-05
   8  Prefactor     2.1420        4.0960       -.45514E-06   -.57750E-03
   9  Prefactor     .10000E-03    1.2413       -.73234E-07** at limit **
  10  Prefactor     .10000E-03    3.8332        .17419E-06** at limit **
  11  Prefactor     .10000E-03    9.3814        .39593E-06** at limit **
  12  Prefactor     .10000E-03    20.114       -.30548E-05** at limit **
  13  Prefactor     14.067        9.0781       -.39905E-06   -.69062E-03
  14  norm          5.5793        3.0618       -.20172E-06   -.76298E-04
  15  Prefactor     3.5640        9.0338       -.18970E-05   -.32750E-03
  16  norm          .10024E-03    1.5548        .27668E-06** at limit **
  17  Prefactor     12.189        39.923       -.31269E-06   -.12898E-04
  18  Normalizat    1.4937        .19346        .29496E-05    .94366E-04
  19  Prefactor     .75396        .15417        .65824E-06    .25110E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 30.9694
  norm       = 0.000100009
  Prefactor  = 0.0001
  norm       = 0.000100066
  Prefactor  = 4.80939
  Prefactor  = 0.0001
  Prefactor  = 33.677
  Prefactor  = 2.14197
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.0672
  norm       = 5.57932
  Prefactor  = 3.56399
  norm       = 0.000100237
  Prefactor  = 12.1893
  Normalizat = 1.49367
  Prefactor  = 0.753963
 **********
 **   18 **HESSE 
 **********

 FCN=   6503.566     FROM HESSE     STATUS=OK           270 CALLS     2187 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          30.969        25.040        .71996E-04   -1.4594    
   2  norm          .10001E-03    15.309        .34215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10007E-03    24.131        .36234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.8094        17.171        .18358E-03   -1.5269    
   6  Prefactor     .10000E-03    7.4936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     33.677        48.463        .68993E-04   -1.4547    
   8  Prefactor     2.1420        4.0884        .21804E-03   -1.5415    
   9  Prefactor     .10000E-03    1.2438        .87737E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.8404        .15420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.5004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    20.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.067        9.0253        .53395E-03   -1.4958    
  14  norm          5.5793        3.0587        .10078E-03   -1.5236    
  15  Prefactor     3.5640        8.8794        .21416E-03   -1.5330    
  16  norm          .10024E-03    26.761        .18809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.189        39.545        .11507E-03   -1.5010    
  18  Normalizat    1.4937        .22614        .23907E-03   -.77956    
  19  Prefactor     .75396        .18024        .26096E-03   -1.0145    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.258e-08
Minuit parameter uncertainties:
  1  25.0483
  2  0.000731354
  3  1.09684e-07
  4  0.00251657
  5  17.1882
  6  5.06853e-05
  7  48.5193
  8  4.08896
  9  3.6103e-06
  10  1.18386e-07
  11  3.94359e-05
  12  2.17902e-05
  13  9.02616
  14  3.05881
  15  8.88269
  16  0.00503777
  17  39.6306
  18  0.226289
  19  0.180378
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  3.944e-05  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.758e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
269        Scale:  4.625e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
506    Prefactor:  7.540e-01  1.804e-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.494e+00  2.263e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 209.290 19.361
Photon Flux Upper Limit: 8.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/64323/likelihoodResults_462499201_462758401_4FGL_J1357.1+1921_daily_bin861.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): 102
logL (Free Index) = 6503.56605999
delta logL = -0.00050161038871

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6503.56555841
delta logL = -3.28864189214e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11012E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7110       1.0000          .0000       10.000    
     3 'Normalizat'    1.4937       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75393       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6503.553     FROM MIGRAD    STATUS=FAILED       215 CALLS      369 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .97628        2150.8        .18142E-01    .13060E-02
   2  Index         1.7777        7.5284        .48189       -.20551E-04
   3  Normalizat    1.4960        .29456        .23907E-03    .29968E-04
   4  Prefactor     .75044        .37883        .26096E-03    .28535E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6503.553     FROM SIMPLEX   STATUS=UNCHANGED     99 CALLS      468 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .97628        2150.8        .41475E-03    .13060E-02
   2  Index         1.7777        7.5284        .27733E-02   -.20551E-04
   3  Normalizat    1.4960        .29456        .11982E-03    .29968E-04
   4  Prefactor     .75044        .37883        .11345E-03    .28535E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6503.553     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      502 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .97627        10.816        .49958E-03    .19434E-04
   2  Index         1.7777        1.6774        .14780E-01   -.85181E-04
   3  Normalizat    1.4960        .22022        .47814E-04    .30815E-04
   4  Prefactor     .75044        .17946        .10438E-04    .28971E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.976266
  Index      = 1.7777
  Normalizat = 1.49602
  Prefactor  = 0.750436
 **********
 **   18 **HESSE 
 **********

 FCN=   6503.553     FROM HESSE     STATUS=OK            25 CALLS      527 TOTAL
                     EDM=   .91E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .97627        11.199        .19983E-04   -1.5510    
   2  Index         1.7777        1.7071        .29559E-02   -.70032    
   3  Normalizat    1.4960        .22028        .95628E-05   -.77890    
   4  Prefactor     .75044        .17951        .20877E-05   -1.0158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.07703e-12
Minuit parameter uncertainties:
  1  6.61441
  2  1.76966
  3  0.220422
  4  0.179646
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/64323': 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) = 6503.55274488
delta logL = 0.0128134971474

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  9.763e-01  6.614e+00  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  1.778e+00  1.770e+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:  7.504e-01  1.796e-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.496e+00  2.204e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 209.290 19.361

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/64323/cmap_HighResolution_462499201_462758401_4FGL_J1357.1+1921_daily_bin861.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.99e-03', job_status='DONE', photon_flux_upper_limit='8.85e-08', time_completed='2021-09-08 18:08:44.612507', job_id='64323', GAL2='0.75', fit_tolerance='1e-08', EG2='1.50', EG='1.49', time_epoch_completed='1631149724.61', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='1.28e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='861' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 18:08:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 64323: <4FGL_J1357.1+1921_daily_bin861> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin861 209.29 19.3608 462499201 462758401 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 :                                   561.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             250.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            803 sec.

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

