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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin779
RA = 209.29, Dec = 19.3608
tmin = 441244801, tmax = 441504001
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='62955', job_status='RUN', time_executed='2021-09-08 17:50:59.048395', time_epoch_executed='1631148659.05' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='779'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/62955

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/62955/ft1_4FGL_J1357.1+1921_daily_bin779.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/62955/ft2_4FGL_J1357.1+1921_daily_bin779.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/62955/ft1_4FGL_J1357.1+1921_daily_bin779.fits outfile=/scratch/kocevski/62955/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin779.fits ra=209.29 dec=19.3608 rad=12.0 tmin=441244801.0 tmax=441504001.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.38
user 3.16
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/62955/ft1_filtered_4FGL_J1357.1+1921_daily_bin779.fits evtable="EVENTS" scfile=/scratch/kocevski/62955/ft2_4FGL_J1357.1+1921_daily_bin779.fits sctable="SC_DATA" expcube=/scratch/kocevski/62955/ltcube_441244801_441504001_4FGL_J1357.1+1921_daily_bin779.fits outfile=/scratch/kocevski/62955/expmap_441244801_441504001_4FGL_J1357.1+1921_daily_bin779.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/62955/ltcube_441244801_441504001_4FGL_J1357.1+1921_daily_bin779.fits
.....................!
real 190.86
user 185.30
sys 5.16

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/62955/ft1_filtered_4FGL_J1357.1+1921_daily_bin779.fits scfile=/scratch/kocevski/62955/ft2_4FGL_J1357.1+1921_daily_bin779.fits outfile=/scratch/kocevski/62955/cmap_441244801_441504001_4FGL_J1357.1+1921_daily_bin779.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.35
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .15788E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.5011       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .18484E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12642E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10528E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.405       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.782       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12239E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.3877       1.0000         .10000E-03   10000.    
    14 'norm      '    9.3023       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.6386       1.0000         .10000E-03   10000.    
    16 'norm      '    6.0635       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10465E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.8187       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .44836       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=   7252.640     FROM MIGRAD    STATUS=CONVERGED    373 CALLS     1848 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.9978        .13659E-05** at limit **
   2  norm          5.4943        5.0623        .36447E-05    .44807E-03
   3  Prefactor     .10000E-03    8.9623        .32386E-05** at limit **
   4  norm          .10001E-03    3.1079       -.27070E-05** at limit **
   5  Prefactor     .10000E-03    11.952       -.74694E-05** at limit **
   6  Prefactor     .10000E-03    15.544        .44155E-05** at limit **
   7  Prefactor     .10000E-03    18.900        .97780E-05** at limit **
   8  Prefactor     .10000E-03    1.0364        .73467E-07** at limit **
   9  Prefactor     .10000E-03    1.3584       -.10026E-06** at limit **
  10  Prefactor     10.442        15.037        .21790E-04   -.48489E-04
  11  Prefactor     12.688        10.386       -.11081E-05   -.75571E-04
  12  Prefactor     .10000E-03    8.0770        .57657E-05** at limit **
  13  Prefactor     7.3925        6.7152       -.47909E-07   -.91917E-04
  14  norm          9.2935        3.1552        .18891E-06   -.14900E-04
  15  Prefactor     6.6353        6.2081       -.19904E-06   -.24600E-03
  16  norm          6.0645        2.9887        .36929E-06   -.12088E-03
  17  Prefactor     .10000E-03    10.951       -.64793E-05** at limit **
  18  Normalizat    1.8189        .18617       -.18624E-05    .32618E-03
  19  Prefactor     .44840        .15185       -.25024E-05   -.56970E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 5.49427
  Prefactor  = 0.0001
  norm       = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.4422
  Prefactor  = 12.6883
  Prefactor  = 0.0001
  Prefactor  = 7.39246
  norm       = 9.29351
  Prefactor  = 6.63532
  norm       = 6.06449
  Prefactor  = 0.0001
  Normalizat = 1.81886
  Prefactor  = 0.448398
 **********
 **   18 **HESSE 
 **********

 FCN=   7252.640     FROM HESSE     STATUS=OK           266 CALLS     2114 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.9993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.4943        5.0200        .17131E-03   -1.5239    
   3  Prefactor     .10000E-03    8.9663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10001E-03    6.3352        .28672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.0393        .84664E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.3648        .96925E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.442        14.986        .12422E-03   -1.5062    
  11  Prefactor     12.688        10.397        .11204E-03   -1.4995    
  12  Prefactor     .10000E-03    8.0817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.3925        6.6999        .14756E-03   -1.5164    
  14  norm          9.2935        3.1543        .85222E-04   -1.5098    
  15  Prefactor     6.6353        6.1903        .15574E-03   -1.5193    
  16  norm          6.0645        2.9859        .99147E-04   -1.5215    
  17  Prefactor     .10000E-03    10.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.8189        .21226        .21674E-03   -.69172    
  19  Prefactor     .44840        .17165        .32986E-03   -1.1441    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73014e-09
Minuit parameter uncertainties:
  1  5.655e-06
  2  5.02041
  3  3.93624e-06
  4  0.000423929
  5  3.76427e-05
  6  3.97221e-05
  7  2.99564e-05
  8  2.60866e-06
  9  1.18293e-05
  10  14.9909
  11  10.3984
  12  2.54402e-06
  13  6.70059
  14  3.15439
  15  6.19089
  16  2.98597
  17  1.23512e-05
  18  0.212365
  19  0.171845
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.269e+01  1.040e+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:  4.484e-01  1.718e-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.819e+00  2.124e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.26
Ra Dec: 209.290 19.361
Photon Index (Fixed Index): 2.76 +/- 0.00
Photon Flux (Fixed Index): 4.93e-08 +/- 4.04e-08
Energy Flux (Fixed Index): 1.14e-05 +/- 9.32e-06

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

Saving results to:
/scratch/kocevski/62955/likelihoodResults_441244801_441504001_4FGL_J1357.1+1921_daily_bin779.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) = 7252.5672362
delta logL = 0.0728356620912

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7252.5634459
delta logL = 0.0766259633992

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.244       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4984       1.0000          .0000       10.000    
     3 'Normalizat'    1.8273       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .44279       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=   7252.563     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      269 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.243        11.777        .10613E-03    .21704E-02
   2  Index         2.4992        .63332        .98540E-02    .55421E-03
   3  Normalizat    1.8272        .21052        .21635E-03   -.30768E-03
   4  Prefactor     .44290        .17092        .33175E-03   -.24807E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.2429
  Index      = 2.49915
  Normalizat = 1.82722
  Prefactor  = 0.442899
 **********
 **   18 **HESSE 
 **********

 FCN=   7252.563     FROM HESSE     STATUS=OK            23 CALLS      292 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.243        11.699        .21225E-04   -1.4953    
   2  Index         2.4992        .62911        .39416E-03   -.52379    
   3  Normalizat    1.8272        .21062        .43270E-04   -.68955    
   4  Prefactor     .44290        .17098        .13270E-04   -1.1467    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.7066e-09
Minuit parameter uncertainties:
  1  11.7012
  2  0.631346
  3  0.210725
  4  0.171175
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/62955': 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) = 7252.56344502
delta logL = 0.0766268405823

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.424e+01  1.170e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.499e+00  6.313e-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:  4.429e-01  1.712e-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.827e+00  2.107e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.41
Ra Dec: 209.290 19.361
Photon Index (Free Index): 2.50 +/- 0.63
Photon Flux (Free Index): 4.37e-08 +/- 3.98e-08
Energy Flux (Free Index): 1.27e-05 +/- 1.09e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/62955/cmap_HighResolution_441244801_441504001_4FGL_J1357.1+1921_daily_bin779.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-02', comment='SUCCESS', photon_flux='4.93e-08', energy_flux2='1.27e-05', photon_flux_error='4.04e-08', dlogl='7.66e-02', energy_flux='1.14e-05', photon_flux2='4.37e-08', job_status='DONE', time_completed='2021-09-08 18:00:35.050203', photon_index_error2='0.63', photon_index2='2.50', ts='2.26', fit_tolerance='1e-08', GAL='0.45', photon_index_error='0.00', photon_flux_upper_limit='1.36e-07', energy_flux_error2='1.09e-05', EG='1.82', time_epoch_completed='1631149235.05', return_code='0', job_id='62955', GAL2='0.44', EG2='1.83', return_code2='0', energy_flux_error='9.32e-06', photon_flux_error2='3.98e-08', ts2='2.41', photon_index='2.76' WHERE bin_id='779' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 18:00:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0133>
Subject: Job 62955: <4FGL_J1357.1+1921_daily_bin779> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin779 209.29 19.3608 441244801 441504001 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 :                                   572.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   591 sec.
    Turnaround time :                            592 sec.

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

