/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 224 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 = 7427
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1357.1+1921_daily_bin405
RA = 209.29, Dec = 19.3608
tmin = 344304001, tmax = 344563201
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='61383', job_status='RUN', time_executed='2021-09-08 17:49:55.244273', time_epoch_executed='1631148595.24' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='405'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/61383

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/61383/ft1_4FGL_J1357.1+1921_daily_bin405.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/61383/ft2_4FGL_J1357.1+1921_daily_bin405.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/61383/ft1_4FGL_J1357.1+1921_daily_bin405.fits outfile=/scratch/kocevski/61383/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin405.fits ra=209.29 dec=19.3608 rad=12.0 tmin=344304001.0 tmax=344563201.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.48
user 3.24
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/61383/ft1_filtered_4FGL_J1357.1+1921_daily_bin405.fits evtable="EVENTS" scfile=/scratch/kocevski/61383/ft2_4FGL_J1357.1+1921_daily_bin405.fits sctable="SC_DATA" expcube=/scratch/kocevski/61383/ltcube_344304001_344563201_4FGL_J1357.1+1921_daily_bin405.fits outfile=/scratch/kocevski/61383/expmap_344304001_344563201_4FGL_J1357.1+1921_daily_bin405.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/61383/ltcube_344304001_344563201_4FGL_J1357.1+1921_daily_bin405.fits
.....................!
real 192.41
user 187.26
sys 4.80

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/61383/ft1_filtered_4FGL_J1357.1+1921_daily_bin405.fits scfile=/scratch/kocevski/61383/ft2_4FGL_J1357.1+1921_daily_bin405.fits outfile=/scratch/kocevski/61383/cmap_344304001_344563201_4FGL_J1357.1+1921_daily_bin405.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.52
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/61383/ft1_filtered_4FGL_J1357.1+1921_daily_bin405.fits scfile=/scratch/kocevski/61383/ft2_4FGL_J1357.1+1921_daily_bin405.fits outfile=/scratch/kocevski/61383/cmap_HighResolution_344304001_344563201_4FGL_J1357.1+1921_daily_bin405.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/61383/ft1_filtered_4FGL_J1357.1+1921_daily_bin405.fits evtable="EVENTS" scfile=/scratch/kocevski/61383/ft2_4FGL_J1357.1+1921_daily_bin405.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/61383/Model_4FGL_J1357.1+1921_daily_bin405.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/61383/ft1_filtered_4FGL_J1357.1+1921_daily_bin405.fits.....................!
real 56.99
user 55.67
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    10.466       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.757       1.0000         .10000E-03   10000.    
     4 'norm      '    4.5157       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11310E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.0992       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.7173       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.6090       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .80923E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .36916E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.7877       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.4362       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.6381       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2860       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0593       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=   7405.499     FROM MIGRAD    STATUS=CONVERGED    390 CALLS     1622 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.2115       -.24427E-06** at limit **
   2  norm          10.465        5.7020        .17764E-06   -.10749E-04
   3  Prefactor     10.744        18.073        .13605E-04   -.17491E-04
   4  norm          4.5161        6.5917        .37143E-06   -.20434E-03
   5  Prefactor     .10000E-03    5.5351        .40379E-06** at limit **
   6  Prefactor     .10000E-03    10.687        .75055E-06** at limit **
   7  Prefactor     .10000E-03    25.740       -.15943E-05** at limit **
   8  Prefactor     4.0986        5.0020        .23109E-06   -.55646E-03
   9  Prefactor     5.7174        3.7484        .60601E-06   -.12115E-03
  10  Prefactor     2.6071        20.650        .75307E-05   -.16663E-03
  11  Prefactor     .10000E-03    4.3490        .14223E-06** at limit **
  12  Prefactor     .10000E-03    119.36        .99860E-04** at limit **
  13  Prefactor     .10001E-03    4.6494       -.16609E-05** at limit **
  14  norm          8.7873        3.0680        .13759E-06   -.63292E-04
  15  Prefactor     7.4339        6.1083       -.14216E-05   -.41998E-03
  16  norm          .10000E-03    .85755       -.13315E-06** at limit **
  17  Prefactor     5.7222        45.170        .94137E-04   -.20156E-05
  18  Normalizat    1.2861        .18908       -.21245E-05   -.68582E-03
  19  Prefactor     1.0593        .15785       -.33386E-05   -.67954E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 10.4646
  Prefactor  = 10.7442
  norm       = 4.51612
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.09857
  Prefactor  = 5.71737
  Prefactor  = 2.60712
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100013
  norm       = 8.78733
  Prefactor  = 7.43391
  norm       = 0.0001
  Prefactor  = 5.72221
  Normalizat = 1.28608
  Prefactor  = 1.05932
 **********
 **   18 **HESSE 
 **********

 FCN=   7405.499     FROM HESSE     STATUS=OK           268 CALLS     1890 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.2130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.465        5.7038        .12385E-03   -1.5061    
   3  Prefactor     10.744        18.070        .12216E-03   -1.5052    
   4  norm          4.5161        6.5799        .18946E-03   -1.5283    
   5  Prefactor     .10000E-03    5.5382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    25.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.0986        5.0073        .19912E-03   -1.5303    
   9  Prefactor     5.7174        3.7480        .13092E-03   -1.5230    
  10  Prefactor     2.6071        20.526        .25255E-03   -1.5385    
  11  Prefactor     .10000E-03    4.3641        .17524E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    121.24        .20895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    11.930        .35188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.7873        3.0685        .86433E-04   -1.5115    
  15  Prefactor     7.4339        6.0086        .14707E-03   -1.5163    
  16  norm          .10000E-03    .87538        .77806E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.7222        45.069        .16918E-03   -1.5229    
  18  Normalizat    1.2861        .22506        .26348E-03   -.83983    
  19  Prefactor     1.0593        .18714        .24164E-03   -.90778    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90955e-09
Minuit parameter uncertainties:
  1  3.99471e-06
  2  5.70408
  3  18.0788
  4  6.58099
  5  6.89838e-06
  6  3.22444e-05
  7  2.92811e-05
  8  5.00777
  9  3.74819
  10  14.6372
  11  1.51703e-05
  12  0.000982634
  13  0.000794878
  14  3.0686
  15  6.00904
  16  1.17222e-05
  17  32.1513
  18  0.225232
  19  0.187254
Done.

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

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  1.517e-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.059e+00  1.873e-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.286e+00  2.252e-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: 7.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/61383/likelihoodResults_344304001_344563201_4FGL_J1357.1+1921_daily_bin405.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) = 7405.50021144
delta logL = -0.00108967310462

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7405.49912171
delta logL = 5.79548213864e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7337       1.0000          .0000       10.000    
     3 'Normalizat'    1.2861       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0593       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=   7405.499     FROM MIGRAD    STATUS=FAILED       105 CALLS      257 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    76.538        .17952E-01** at limit **
   2  Index         1.9451        5.9497        .50000       -.61861E-05
   3  Normalizat    1.2861        .14835E-01    .26348E-03    .47677E-03
   4  Prefactor     1.0593        .12564E-01    .24164E-03    .61231E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7405.499     FROM SIMPLEX   STATUS=UNCHANGED    148 CALLS      405 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    76.538        .45170E-03** at limit **
   2  Index         1.9451        5.9497        .20541E-04   -.61861E-05
   3  Normalizat    1.2861        .14835E-01    .45921E-07    .47677E-03
   4  Prefactor     1.0593        .12564E-01    .83292E-08    .61231E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7405.499     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      436 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1680.3        .46796E-03** at limit **
   2  Index         1.9465        5.3439        .50000        .13260E-06
   3  Normalizat    1.2861        .12721        .52696E-04    .47545E-03
   4  Prefactor     1.0593        .10774        .48328E-04    .61078E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.94648
  Normalizat = 1.28608
  Prefactor  = 1.05932
 **********
 **   18 **HESSE 
 **********

 FCN=   7405.499     FROM HESSE     STATUS=OK            29 CALLS      465 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.6869        .93592E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9465        5.7953        .50000       -.65695    
   3  Normalizat    1.2861        .21936        .10539E-04   -.83983    
   4  Prefactor     1.0593        .18579        .96656E-05   -.90778    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.68536e-10
Minuit parameter uncertainties:
  1  0.000128374
  2  83.2927
  3  0.219521
  4  0.185902
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/61383': 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) = 7405.49911648
delta logL = 5.29252520209e-06

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.000e-04  1.284e-04  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  1.946e+00  8.329e+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.059e+00  1.859e-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.286e+00  2.195e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/61383/cmap_HighResolution_344304001_344563201_4FGL_J1357.1+1921_daily_bin405.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.62e-03', job_status='DONE', photon_flux_upper_limit='7.11e-08', time_completed='2021-09-08 17:59:45.161974', job_id='61383', GAL2='1.06', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1631149185.16', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='5.29e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='405' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 17:59:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 61383: <4FGL_J1357.1+1921_daily_bin405> in cluster <slac> Done

Job <4FGL_J1357.1+1921_daily_bin405> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 17:46:02 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 17:46:03 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:46:03 2021
Terminated at Wed Sep  8 17:59:45 2021
Results reported at Wed Sep  8 17:59:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin405 209.29 19.3608 344304001 344563201 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 :                                   579.55 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             249.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            823 sec.

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

