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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin707
RA = 209.29, Dec = 19.3608
tmin = 422582401, tmax = 422841601
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='62847', job_status='RUN', time_executed='2021-09-08 17:53:54.120474', time_epoch_executed='1631148834.12' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='707'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/62847

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/62847/ft1_4FGL_J1357.1+1921_daily_bin707.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/62847/ft2_4FGL_J1357.1+1921_daily_bin707.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/62847/ft1_4FGL_J1357.1+1921_daily_bin707.fits outfile=/scratch/kocevski/62847/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin707.fits ra=209.29 dec=19.3608 rad=12.0 tmin=422582401.0 tmax=422841601.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.59
user 3.37
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/62847/ft2_4FGL_J1357.1+1921_daily_bin707.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/62847/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin707.fits evtable="EVENTS" outfile="/scratch/kocevski/62847/ft1_filtered_4FGL_J1357.1+1921_daily_bin707.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/62847/ft1_filtered_4FGL_J1357.1+1921_daily_bin707.fits" evtable="EVENTS" scfile=/scratch/kocevski/62847/ft2_4FGL_J1357.1+1921_daily_bin707.fits sctable="SC_DATA" outfile=/scratch/kocevski/62847/ltcube_422582401_422841601_4FGL_J1357.1+1921_daily_bin707.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/62847/ft2_4FGL_J1357.1+1921_daily_bin707.fits
.....................!
real 11.64
user 11.28
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/62847/ft1_filtered_4FGL_J1357.1+1921_daily_bin707.fits evtable="EVENTS" scfile=/scratch/kocevski/62847/ft2_4FGL_J1357.1+1921_daily_bin707.fits sctable="SC_DATA" expcube=/scratch/kocevski/62847/ltcube_422582401_422841601_4FGL_J1357.1+1921_daily_bin707.fits outfile=/scratch/kocevski/62847/expmap_422582401_422841601_4FGL_J1357.1+1921_daily_bin707.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/62847/ltcube_422582401_422841601_4FGL_J1357.1+1921_daily_bin707.fits
.....................!
real 191.07
user 186.08
sys 4.62

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/62847/ft1_filtered_4FGL_J1357.1+1921_daily_bin707.fits scfile=/scratch/kocevski/62847/ft2_4FGL_J1357.1+1921_daily_bin707.fits outfile=/scratch/kocevski/62847/cmap_422582401_422841601_4FGL_J1357.1+1921_daily_bin707.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.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    15.240       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    11.187       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 '    28.307       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .94849       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .92395       1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.200       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.2091       1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.402       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11064E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    11.748       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    6.6605       1.0000         .10000E-03   10000.    
    17 'Prefactor '    30.779       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .90562       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0319       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=   5978.667     FROM MIGRAD    STATUS=CONVERGED    368 CALLS     1899 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.6150       -.10332E-05** at limit **
   2  norm          15.240        11.562       -.66565E-06    .47183E-05
   3  Prefactor     .10000E-03    10.539        .13640E-05** at limit **
   4  norm          11.188        14.802        .29999E-06   -.56534E-04
   5  Prefactor     .10000E-03    5.9613        .17642E-05** at limit **
   6  Prefactor     .10000E-03    7.1788       -.20047E-05** at limit **
   7  Prefactor     28.297        43.463       -.17200E-04    .21167E-03
   8  Prefactor     .94856        3.6294       -.21120E-05   -.11336E-02
   9  Prefactor     .92584        2.7770       -.44556E-06   -.58685E-03
  10  Prefactor     24.199        15.826       -.40127E-06    .87382E-04
  11  Prefactor     6.2066        10.104       -.14687E-05   -.38826E-04
  12  Prefactor     24.397        27.074       -.74981E-05    .19266E-03
  13  Prefactor     .10000E-03    11.980       -.72152E-06** at limit **
  14  norm          11.748        3.9609        .63459E-07   -.11180E-03
  15  Prefactor     .10000E-03    6.4282        .64640E-06** at limit **
  16  norm          6.6606        3.7242        .14926E-06   -.25483E-03
  17  Prefactor     30.777        38.165       -.24202E-05    .26162E-04
  18  Normalizat    .90559        .20064        .16193E-05    .76021E-04
  19  Prefactor     1.0320        .16795        .12435E-05    .59051E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 15.2395
  Prefactor  = 0.0001
  norm       = 11.1876
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.297
  Prefactor  = 0.948558
  Prefactor  = 0.925843
  Prefactor  = 24.1994
  Prefactor  = 6.20655
  Prefactor  = 24.3968
  Prefactor  = 0.0001
  norm       = 11.7475
  Prefactor  = 0.0001
  norm       = 6.66057
  Prefactor  = 30.7769
  Normalizat = 0.905587
  Prefactor  = 1.03197
 **********
 **   18 **HESSE 
 **********

 FCN=   5978.667     FROM HESSE     STATUS=OK           270 CALLS     2169 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.6135        .17891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          15.240        11.537        .10260E-03   -1.4927    
   3  Prefactor     .10000E-03    10.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          11.188        14.772        .11978E-03   -1.5039    
   5  Prefactor     .10000E-03    5.9575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.1789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     28.297        42.455        .75300E-04   -1.4644    
   8  Prefactor     .94856        3.8222        .28794E-03   -1.5513    
   9  Prefactor     .92584        2.7041        .21589E-03   -1.5516    
  10  Prefactor     24.199        15.798        .81428E-04   -1.4724    
  11  Prefactor     6.2066        10.120        .16110E-03   -1.5210    
  12  Prefactor     24.397        26.925        .81090E-04   -1.4720    
  13  Prefactor     .10000E-03    12.384        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          11.748        3.9612        .85943E-04   -1.5022    
  15  Prefactor     .10000E-03    6.6076        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.6606        3.7194        .10563E-03   -1.5192    
  17  Prefactor     30.777        38.165        .72221E-04   -1.4598    
  18  Normalizat    .90559        .23464        .27846E-03   -.96264    
  19  Prefactor     1.0320        .19697        .22330E-03   -.91671    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.75323e-09
Minuit parameter uncertainties:
  1  1.84894e-05
  2  11.5392
  3  3.4901e-05
  4  14.7772
  5  3.43004e-05
  6  3.58157e-05
  7  42.5007
  8  3.80842
  9  2.7045
  10  15.8012
  11  10.1225
  12  26.9385
  13  0.000112153
  14  3.96125
  15  1.29662e-05
  16  3.71954
  17  38.1952
  18  0.234901
  19  0.197105
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  6.207e+00  1.012e+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.032e+00  1.971e-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.056e-01  2.349e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/62847/likelihoodResults_422582401_422841601_4FGL_J1357.1+1921_daily_bin707.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) = 5978.58445981
delta logL = 0.0828781294085

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5978.58040547
delta logL = 0.0869324697796

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9974       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2638       1.0000          .0000       10.000    
     3 'Normalizat'    .91597       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0252       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=   5978.580     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      200 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0030        10.536        .37914E-02    .16165E-02
   2  Index         2.2636        1.0389        .24464E-01   -.38153E-03
   3  Normalizat    .91621        .19355        .45105E-01    .14713E-04
   4  Prefactor     1.0249        .16510        .41661E-01    .46766E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.00298
  Index      = 2.26363
  Normalizat = 0.916206
  Prefactor  = 1.02494
 **********
 **   18 **HESSE 
 **********

 FCN=   5978.580     FROM HESSE     STATUS=OK            31 CALLS      231 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0030        10.654        .75829E-03   -1.5179    
   2  Index         2.2636        1.0539        .48928E-02   -.57910    
   3  Normalizat    .91621        .22658        .27699E-03   -.95893    
   4  Prefactor     1.0249        .19335        .22394E-03   -.91903    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65229e-11
Minuit parameter uncertainties:
  1  10.6564
  2  1.06533
  3  0.226821
  4  0.19348
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/62847': 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) = 5978.58040471
delta logL = 0.0869332289813

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  7.003e+00  1.066e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.264e+00  1.065e+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.025e+00  1.935e-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.162e-01  2.268e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.48
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/62847/cmap_HighResolution_422582401_422841601_4FGL_J1357.1+1921_daily_bin707.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.38e-03', job_status='DONE', photon_flux_upper_limit='1.19e-07', time_completed='2021-09-08 18:02:37.201804', job_id='62847', GAL2='1.02', fit_tolerance='1e-08', EG2='0.92', EG='0.91', time_epoch_completed='1631149357.2', return_code2='0', ts='0.48', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='8.69e-02', ts2='0.65', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='707' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 18:02:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 62847: <4FGL_J1357.1+1921_daily_bin707> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin707 209.29 19.3608 422582401 422841601 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 :                                   521.08 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             280.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   721 sec.
    Turnaround time :                            722 sec.

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

