/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 203 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 = 7365
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1357.1+1921_daily_bin103
RA = 209.29, Dec = 19.3608
tmin = 266025601, tmax = 266284801
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='60903', job_status='RUN', time_executed='2021-09-08 17:48:54.681012', time_epoch_executed='1631148534.68' WHERE source_name='4FGL J1357.1+1921' and cadence='daily' and bin_id='103'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/60903

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/60903/ft1_4FGL_J1357.1+1921_daily_bin103.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/60903/ft2_4FGL_J1357.1+1921_daily_bin103.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/60903/ft1_4FGL_J1357.1+1921_daily_bin103.fits outfile=/scratch/kocevski/60903/ft1_filteredMKT_4FGL_J1357.1+1921_daily_bin103.fits ra=209.29 dec=19.3608 rad=12.0 tmin=266025601.0 tmax=266284801.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 1.46
user 1.21
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/60903/ft1_filtered_4FGL_J1357.1+1921_daily_bin103.fits" evtable="EVENTS" scfile=/scratch/kocevski/60903/ft2_4FGL_J1357.1+1921_daily_bin103.fits sctable="SC_DATA" outfile=/scratch/kocevski/60903/ltcube_266025601_266284801_4FGL_J1357.1+1921_daily_bin103.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/60903/ft2_4FGL_J1357.1+1921_daily_bin103.fits
.....................!
real 12.80
user 12.17
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/60903/ft1_filtered_4FGL_J1357.1+1921_daily_bin103.fits evtable="EVENTS" scfile=/scratch/kocevski/60903/ft2_4FGL_J1357.1+1921_daily_bin103.fits sctable="SC_DATA" expcube=/scratch/kocevski/60903/ltcube_266025601_266284801_4FGL_J1357.1+1921_daily_bin103.fits outfile=/scratch/kocevski/60903/expmap_266025601_266284801_4FGL_J1357.1+1921_daily_bin103.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/60903/ltcube_266025601_266284801_4FGL_J1357.1+1921_daily_bin103.fits
.....................!
real 192.25
user 186.69
sys 4.91

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/60903/ft1_filtered_4FGL_J1357.1+1921_daily_bin103.fits scfile=/scratch/kocevski/60903/ft2_4FGL_J1357.1+1921_daily_bin103.fits outfile=/scratch/kocevski/60903/cmap_266025601_266284801_4FGL_J1357.1+1921_daily_bin103.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.57
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/60903/ft1_filtered_4FGL_J1357.1+1921_daily_bin103.fits scfile=/scratch/kocevski/60903/ft2_4FGL_J1357.1+1921_daily_bin103.fits outfile=/scratch/kocevski/60903/cmap_HighResolution_266025601_266284801_4FGL_J1357.1+1921_daily_bin103.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/60903/ft1_filtered_4FGL_J1357.1+1921_daily_bin103.fits evtable="EVENTS" scfile=/scratch/kocevski/60903/ft2_4FGL_J1357.1+1921_daily_bin103.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/60903/Model_4FGL_J1357.1+1921_daily_bin103.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/60903/ft1_filtered_4FGL_J1357.1+1921_daily_bin103.fits.....................!
real 74.50
user 72.91
sys 1.34

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0051       1.0000         .10000E-03   10000.    
     2 'norm      '    77.155       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.9430       1.0000         .10000E-03   10000.    
     4 'norm      '    9.7311       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.920       1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.228       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.5082       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .18791       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.983       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    50.167       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    10.561       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .11239       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.4530       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .76311       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=   9899.954     FROM MIGRAD    STATUS=CONVERGED    385 CALLS     1928 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9932        16.430        .13903E-05    .87576E-04
   2  norm          77.154        11.185       -.23459E-07   -.35401E-03
   3  Prefactor     2.9253        67.598        .14180E-06   -.38342E-04
   4  norm          9.7310        6.5449        .72255E-07   -.70617E-04
   5  Prefactor     .10000E-03    4.4347        .52479E-07** at limit **
   6  Prefactor     10.919        15.887        .34581E-06   -.71402E-05
   7  Prefactor     30.176        47.098       -.14006E-05   -.21478E-03
   8  Prefactor     5.5080        4.0901        .39801E-06    .48002E-03
   9  Prefactor     .19812        4.0651       -.30451E-05    .38319E-03
  10  Prefactor     15.981        11.274        .11626E-05    .61889E-03
  11  Prefactor     .10000E-03    12.800        .21328E-05** at limit **
  12  Prefactor     50.162        24.395       -.61797E-07   -.17303E-03
  13  Prefactor     .10000E-03    2.6949        .38942E-06** at limit **
  14  norm          10.562        2.9300       -.51511E-07   -.64838E-03
  15  Prefactor     .10000E-03    2.7824        .67036E-06** at limit **
  16  norm          .10131        1.9474       -.16115E-05    .15543E-02
  17  Prefactor     .10000E-03    28.316        .11558E-05** at limit **
  18  Normalizat    1.4530        .16369       -.18784E-05   -.96339E-03
  19  Prefactor     .76316        .13520        .55950E-06   -.82207E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.99324
  norm       = 77.154
  Prefactor  = 2.92529
  norm       = 9.73101
  Prefactor  = 0.0001
  Prefactor  = 10.9189
  Prefactor  = 30.1758
  Prefactor  = 5.50801
  Prefactor  = 0.198121
  Prefactor  = 15.9814
  Prefactor  = 0.000100004
  Prefactor  = 50.1622
  Prefactor  = 0.0001
  norm       = 10.5616
  Prefactor  = 0.0001
  norm       = 0.101309
  Prefactor  = 0.000100001
  Normalizat = 1.45298
  Prefactor  = 0.763157
 **********
 **   18 **HESSE 
 **********

 FCN=   9899.954     FROM HESSE     STATUS=OK           268 CALLS     2196 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9932        16.564        .20152E-03   -1.5308    
   2  norm          77.154        11.185        .45716E-04   -1.3949    
   3  Prefactor     2.9253        68.297        .23675E-03   -1.5366    
   4  norm          9.7310        6.5456        .12846E-03   -1.5084    
   5  Prefactor     .10000E-03    4.4368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.919        15.930        .12124E-03   -1.5047    
   7  Prefactor     30.176        47.403        .72874E-04   -1.4609    
   8  Prefactor     5.5080        4.1234        .16833E-03   -1.5239    
   9  Prefactor     .19812        5.5793        .25868E-02   -1.5619    
  10  Prefactor     15.981        11.517        .50092E-03   -1.4908    
  11  Prefactor     .10000E-03    13.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     50.162        24.412        .56619E-04   -1.4290    
  13  Prefactor     .10000E-03    2.7369        .15987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          10.562        2.9307        .86958E-04   -1.5058    
  15  Prefactor     .10000E-03    2.8567        .16313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10131        12.823        .18627E-02   -1.5644    
  17  Prefactor     .10000E-03    28.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.4530        .19553        .25190E-03   -.79108    
  19  Prefactor     .76316        .16089        .27550E-03   -1.0110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8904e-08
Minuit parameter uncertainties:
  1  16.2734
  2  11.1854
  3  28.3053
  4  6.5461
  5  6.35849e-06
  6  15.9362
  7  47.4622
  8  4.1236
  9  2.10242
  10  11.5188
  11  0.000478257
  12  24.4165
  13  4.0188e-05
  14  2.93079
  15  7.30761e-05
  16  2.27895
  17  0.000404209
  18  0.195636
  19  0.160987
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
506    Prefactor:  7.632e-01  1.610e-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.453e+00  1.956e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/60903/likelihoodResults_266025601_266284801_4FGL_J1357.1+1921_daily_bin103.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) = 9899.95455081
delta logL = -0.000354535348379

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9899.95419662
delta logL = -3.47319655702e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11731E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8270       1.0000          .0000       10.000    
     3 'Normalizat'    1.4532       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76300       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=   9899.954     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      228 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10012E-03    18.470        .90712E-01** at limit **
   2  Index         2.9236        5.5308        .50000       -.57312E-04
   3  Normalizat    1.4530        .83204E-02    .56967E-01    .71951E-04
   4  Prefactor     .76316        .68758E-02    .62284E-01    .74209E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010012
  Index      = 2.92359
  Normalizat = 1.45298
  Prefactor  = 0.763157
 **********
 **   18 **HESSE 
 **********

 FCN=   9899.954     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      261 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10012E-03    6336.1        .41094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9236        8.4562        .50000       -.42825    
   3  Normalizat    1.4530        .49317E-01    .25190E-03   -.79108    
   4  Prefactor     .76316        .40370E-01    .27550E-03   -1.0110    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.56861e-06
Minuit parameter uncertainties:
  1  0.0376406
  2  46.8965
  3  0.0493187
  4  0.0403714
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/60903': 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) = 9899.95419432
delta logL = 1.95674329007e-06

Extracting fit parameters...

4FGL J1357.1+1921
   Spectrum: PowerLaw
267    Prefactor:  1.001e-04  3.764e-02  1.000e-04  1.000e+04 ( 1.000e-12)
268        Index:  2.924e+00  4.690e+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:  7.632e-01  4.037e-02  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.453e+00  4.932e-02  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/60903/cmap_HighResolution_266025601_266284801_4FGL_J1357.1+1921_daily_bin103.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.45e-03', job_status='DONE', photon_flux_upper_limit='8.17e-08', time_completed='2021-09-08 18:00:56.601916', job_id='60903', GAL2='0.76', fit_tolerance='1e-08', EG2='1.45', EG='1.45', time_epoch_completed='1631149256.6', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='1.96e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='103' AND source_name='4FGL J1357.1+1921' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 18:00:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 60903: <4FGL_J1357.1+1921_daily_bin103> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1357.1+1921_daily_bin103 209.29 19.3608 266025601 266284801 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 :                                   677.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            936 sec.

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

