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


Performing analysis on: 4FGL_J1357.1+1921_daily_bin577
RA = 209.29, Dec = 19.3608
tmin = 388886401, tmax = 389145601
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='62657', job_status='RUN', time_executed='2021-09-08 17:53:58.805360', time_epoch_executed='1631148838.81' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='577'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/62657

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/62657/ft1_4FGL_J1357.1+1921_daily_bin577.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/62657/ft2_4FGL_J1357.1+1921_daily_bin577.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/62657/ft1_4FGL_J1357.1+1921_daily_bin577.fits outfile=/scratch/kocevski/62657/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin577.fits ra=209.29 dec=19.3608 rad=12.0 tmin=388886401.0 tmax=389145601.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.28
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/62657/ft1_filtered_4FGL_J1357.1+1921_daily_bin577.fits" evtable="EVENTS" scfile=/scratch/kocevski/62657/ft2_4FGL_J1357.1+1921_daily_bin577.fits sctable="SC_DATA" outfile=/scratch/kocevski/62657/ltcube_388886401_389145601_4FGL_J1357.1+1921_daily_bin577.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/62657/ft2_4FGL_J1357.1+1921_daily_bin577.fits
.....................!
real 12.09
user 11.71
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/62657/ft1_filtered_4FGL_J1357.1+1921_daily_bin577.fits evtable="EVENTS" scfile=/scratch/kocevski/62657/ft2_4FGL_J1357.1+1921_daily_bin577.fits sctable="SC_DATA" expcube=/scratch/kocevski/62657/ltcube_388886401_389145601_4FGL_J1357.1+1921_daily_bin577.fits outfile=/scratch/kocevski/62657/expmap_388886401_389145601_4FGL_J1357.1+1921_daily_bin577.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/62657/ltcube_388886401_389145601_4FGL_J1357.1+1921_daily_bin577.fits
.....................!
real 192.02
user 185.93
sys 5.65

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/62657/ft1_filtered_4FGL_J1357.1+1921_daily_bin577.fits scfile=/scratch/kocevski/62657/ft2_4FGL_J1357.1+1921_daily_bin577.fits outfile=/scratch/kocevski/62657/cmap_388886401_389145601_4FGL_J1357.1+1921_daily_bin577.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/62657/ft1_filtered_4FGL_J1357.1+1921_daily_bin577.fits scfile=/scratch/kocevski/62657/ft2_4FGL_J1357.1+1921_daily_bin577.fits outfile=/scratch/kocevski/62657/cmap_HighResolution_388886401_389145601_4FGL_J1357.1+1921_daily_bin577.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.5117       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10454E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    27.675       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.485       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10691E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.1127       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.648       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .31927E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.030       1.0000         .10000E-03   10000.    
    14 'norm      '    2.7083       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    39.159       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .99443       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1370       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=   6422.421     FROM MIGRAD    STATUS=CONVERGED    401 CALLS     1877 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.2728       -.31110E-07** at limit **
   2  norm          4.5164        5.1169        .16752E-05   -.19056E-02
   3  Prefactor     .10000E-03    11.128        .17776E-07** at limit **
   4  norm          27.676        12.009       -.35128E-06   -.26613E-05
   5  Prefactor     .10000E-03    37.941       -.28624E-06** at limit **
   6  Prefactor     10.487        12.846        .15606E-06    .79519E-05
   7  Prefactor     .10000E-03    25.109        .13662E-06** at limit **
   8  Prefactor     2.1129        3.7311        .12901E-06   -.15239E-03
   9  Prefactor     .10000E-03    4.1182        .19866E-07** at limit **
  10  Prefactor     16.643        16.534        .82360E-06    .50365E-04
  11  Prefactor     .10000E-03    16.833        .57324E-07** at limit **
  12  Prefactor     .10000E-03    133.19        .16178E-05** at limit **
  13  Prefactor     12.022        8.7616       -.23011E-06   -.10245E-03
  14  norm          2.7088        2.3169        .38017E-07   -.55577E-04
  15  Prefactor     .10000E-03    2.0464       -.45281E-08** at limit **
  16  norm          .10000E-03    1.2958       -.57871E-08** at limit **
  17  Prefactor     39.188        34.145        .76212E-05    .40024E-03
  18  Normalizat    .99441        .19779       -.31520E-06   -.37792E-04
  19  Prefactor     1.1369        .16673       -.59993E-06   -.51098E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 4.5164
  Prefactor  = 0.0001
  norm       = 27.676
  Prefactor  = 0.0001
  Prefactor  = 10.4869
  Prefactor  = 0.0001
  Prefactor  = 2.11287
  Prefactor  = 0.0001
  Prefactor  = 16.6432
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.0217
  norm       = 2.70881
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 39.1876
  Normalizat = 0.994412
  Prefactor  = 1.13693
 **********
 **   18 **HESSE 
 **********

 FCN=   6422.421     FROM HESSE     STATUS=OK           268 CALLS     2145 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.2742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.5164        7.8602        .94772E-03   -1.5283    
   3  Prefactor     .10000E-03    11.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          27.676        12.666        .76154E-04   -1.4655    
   5  Prefactor     .10000E-03    39.493        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.487        12.846        .12374E-03   -1.5060    
   7  Prefactor     .10000E-03    25.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.1129        3.7182        .19852E-03   -1.5417    
   9  Prefactor     .10000E-03    4.1961        .15873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     16.643        16.536        .98161E-04   -1.4892    
  11  Prefactor     .10000E-03    17.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    138.66        .36726E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.022        8.7767        .11549E-03   -1.5014    
  14  norm          2.7088        2.3154        .10923E-03   -1.5379    
  15  Prefactor     .10000E-03    2.0528        .11192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.3125        .89050E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     39.188        35.196        .64052E-04   -1.4455    
  18  Normalizat    .99441        .22873        .28160E-03   -.93218    
  19  Prefactor     1.1369        .19292        .22400E-03   -.88295    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.41403e-09
Minuit parameter uncertainties:
  1  8.07978e-07
  2  7.86202
  3  3.26707e-06
  4  12.6669
  5  1.95864e-06
  6  12.8499
  7  1.56917e-05
  8  3.71858
  9  3.6336e-06
  10  16.5409
  11  1.83872e-05
  12  0.000444815
  13  8.77762
  14  2.31551
  15  3.34173e-06
  16  4.8284e-06
  17  35.215
  18  0.228952
  19  0.193036
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  1.839e-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:  1.137e+00  1.930e-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.944e-01  2.290e-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: 1.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/62657/likelihoodResults_388886401_389145601_4FGL_J1357.1+1921_daily_bin577.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) = 6422.42098955
delta logL = -0.000278563016764

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6422.42071101
delta logL = -1.93895175471e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10272E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7824       1.0000          .0000       10.000    
     3 'Normalizat'    .99442       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1369       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=   6422.397     FROM MIGRAD    STATUS=CONVERGED    141 CALLS      291 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18060        3.5338        .27611E-01    .95930E-03
   2  Index         5.2610        2.5336        .50000        .24111E-05
   3  Normalizat    .97972        .13851E-01    .28160E-03   -.87608E-04
   4  Prefactor     1.1440        .11751E-01    .22400E-03   -.16904E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.180595
  Index      = 5.26105
  Normalizat = 0.979725
  Prefactor  = 1.14403
 **********
 **   18 **HESSE 
 **********

 FCN=   6422.397     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      322 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .18060        171.90        .10253E-02   -1.5623    
   2  Index         5.2610        7.2767        .14512E-01    .52233E-01
   3  Normalizat    .97972        .13085        .11264E-04   -.93713    
   4  Prefactor     1.1440        .10272        .44799E-04   -.88072    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.17972e-10
Minuit parameter uncertainties:
  1  11.1728
  2  42.1662
  3  0.130893
  4  0.102738
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/62657': 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): 102
logL (Free Index) = 6422.39719178
delta logL = 0.0235192152531

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.806e-01  1.117e+01  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  5.261e+00  4.217e+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:  1.144e+00  1.027e-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.797e-01  1.309e-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/62657/cmap_HighResolution_388886401_389145601_4FGL_J1357.1+1921_daily_bin577.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.48e-03', job_status='DONE', photon_flux_upper_limit='1.07e-07', time_completed='2021-09-08 18:03:07.030995', job_id='62657', GAL2='1.14', fit_tolerance='1e-08', EG2='0.98', EG='0.99', time_epoch_completed='1631149387.03', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='2.35e-02', ts2='0.05', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='577' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 18:03:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0013>
Subject: Job 62657: <4FGL_J1357.1+1921_daily_bin577> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin577 209.29 19.3608 388886401 389145601 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 :                                   542.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   765 sec.
    Turnaround time :                            767 sec.

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

