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


Performing analysis on: 4FGL_J2101.4-2935_daily_bin1053
RA = 315.366, Dec = -29.5926
tmin = 512265601, tmax = 512524801
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='272426', job_status='RUN', time_executed='2021-09-26 01:08:39.912041', time_epoch_executed='1632643719.91' WHERE source_name='4FGL J2101.4-2935' and cadence='daily' and bin_id='1053'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/272426

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/272426/ft1_4FGL_J2101.4-2935_daily_bin1053.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/272426/ft2_4FGL_J2101.4-2935_daily_bin1053.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/272426/ft1_4FGL_J2101.4-2935_daily_bin1053.fits outfile=/scratch/kocevski/272426/ft1_filteredMKT_4FGL_J2101.4-2935_daily_bin1053.fits ra=315.366 dec=-29.5926 rad=12.0 tmin=512265601.0 tmax=512524801.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.63
user 3.34
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/272426/ft2_4FGL_J2101.4-2935_daily_bin1053.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/272426/ft2_4FGL_J2101.4-2935_daily_bin1053.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/272426/ft1_filteredMKT_4FGL_J2101.4-2935_daily_bin1053.fits evtable="EVENTS" outfile="/scratch/kocevski/272426/ft1_filtered_4FGL_J2101.4-2935_daily_bin1053.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.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/272426/ft1_filtered_4FGL_J2101.4-2935_daily_bin1053.fits" evtable="EVENTS" scfile=/scratch/kocevski/272426/ft2_4FGL_J2101.4-2935_daily_bin1053.fits sctable="SC_DATA" outfile=/scratch/kocevski/272426/ltcube_512265601_512524801_4FGL_J2101.4-2935_daily_bin1053.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/272426/ft2_4FGL_J2101.4-2935_daily_bin1053.fits
.....................!
real 14.41
user 13.91
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/272426/ft1_filtered_4FGL_J2101.4-2935_daily_bin1053.fits evtable="EVENTS" scfile=/scratch/kocevski/272426/ft2_4FGL_J2101.4-2935_daily_bin1053.fits sctable="SC_DATA" expcube=/scratch/kocevski/272426/ltcube_512265601_512524801_4FGL_J2101.4-2935_daily_bin1053.fits outfile=/scratch/kocevski/272426/expmap_512265601_512524801_4FGL_J2101.4-2935_daily_bin1053.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/272426/ltcube_512265601_512524801_4FGL_J2101.4-2935_daily_bin1053.fits
.....................!
real 191.84
user 185.23
sys 4.72

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 J2101.4-2935 @ 315.366 -29.5926

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/272426/ft1_filtered_4FGL_J2101.4-2935_daily_bin1053.fits scfile=/scratch/kocevski/272426/ft2_4FGL_J2101.4-2935_daily_bin1053.fits outfile=/scratch/kocevski/272426/cmap_512265601_512524801_4FGL_J2101.4-2935_daily_bin1053.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=315.366 yref=-29.5926 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.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/272426/ft1_filtered_4FGL_J2101.4-2935_daily_bin1053.fits scfile=/scratch/kocevski/272426/ft2_4FGL_J2101.4-2935_daily_bin1053.fits outfile=/scratch/kocevski/272426/cmap_HighResolution_512265601_512524801_4FGL_J2101.4-2935_daily_bin1053.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=315.366 yref=-29.5926 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/272426/ft1_filtered_4FGL_J2101.4-2935_daily_bin1053.fits evtable="EVENTS" scfile=/scratch/kocevski/272426/ft2_4FGL_J2101.4-2935_daily_bin1053.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/272426/Model_4FGL_J2101.4-2935_daily_bin1053.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/272426/ft1_filtered_4FGL_J2101.4-2935_daily_bin1053.fits.....................!
real 80.36
user 78.21
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/272426/ft1_filtered_4FGL_J2101.4-2935_daily_bin1053.fits', '/scratch/kocevski/272426/ft2_4FGL_J2101.4-2935_daily_bin1053.fits', expMap='/scratch/kocevski/272426/expmap_512265601_512524801_4FGL_J2101.4-2935_daily_bin1053.fits', expCube='/scratch/kocevski/272426/ltcube_512265601_512524801_4FGL_J2101.4-2935_daily_bin1053.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/272426/Model_4FGL_J2101.4-2935_daily_bin1053.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2101.4-2935'

4FGL J2101.4-2935
   Spectrum: PowerLaw
284    Prefactor:  4.572e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  2.807e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
286        Scale:  4.062e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/272426/ft1_filtered_4FGL_J2101.4-2935_daily_bin1053.fits
Spacecraft file(s): /scratch/kocevski/272426/ft2_4FGL_J2101.4-2935_daily_bin1053.fits
Exposure map: /scratch/kocevski/272426/expmap_512265601_512524801_4FGL_J2101.4-2935_daily_bin1053.fits
Exposure cube: /scratch/kocevski/272426/ltcube_512265601_512524801_4FGL_J2101.4-2935_daily_bin1053.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/272426/Model_4FGL_J2101.4-2935_daily_bin1053.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) = 9815.78085741

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.703       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.0564       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .23055E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.1768       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .16882E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1038       1.0000         .10000E-03   10000.    
     9 'norm      '    3.4855       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3229       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    12.114       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .74922       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0937       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9815.091     FROM MIGRAD    STATUS=CONVERGED    389 CALLS     1537 TOTAL
                     EDM=   .63E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.703        7.9808        .10204E-06   -.58949E-04
   2  Prefactor     9.0472        29.016       -.25092E-05   -.33920E-05
   3  Prefactor     .10000E-03    2.4195        .17914E-06** at limit **
   4  Prefactor     .10000E-03    12.965        .24437E-06** at limit **
   5  norm          6.1750        11.908        .11330E-06   -.50572E-04
   6  Prefactor     .10000E-03    63.538       -.26078E-05** at limit **
   7  Prefactor     .10000E-03    51.440       -.37929E-05** at limit **
   8  Prefactor     1.1049        .80900        .10792E-06   -.11479E-02
   9  norm          3.4854        3.7315        .32970E-06   -.41333E-04
  10  Prefactor     1.3205        4.8835       -.53913E-06   -.56708E-05
  11  Prefactor     .10000E-03    3.4732       -.19467E-06** at limit **
  12  Prefactor     .10000E-03    8.4719       -.21590E-06** at limit **
  13  norm          .10000E-03    1.5705       -.90156E-07** at limit **
  14  Prefactor     .10000E-03    5.7328       -.14120E-06** at limit **
  15  Prefactor     .10000E-03    24.758       -.12918E-05** at limit **
  16  norm          12.114        4.9451        .22054E-06   -.23524E-04
  17  Normalizat    .74922        .18116       -.61202E-06   -.10443E-03
  18  Prefactor     1.0937        .90305E-01   -.48116E-06   -.14953E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.7027
  Prefactor  = 9.04716
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.17498
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.10494
  norm       = 3.48543
  Prefactor  = 1.32053
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.1141
  Normalizat = 0.749218
  Prefactor  = 1.09373
 **********
 **   18 **HESSE 
 **********

 FCN=   9815.091     FROM HESSE     STATUS=OK           246 CALLS     1783 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.703        7.9935        .56193E-03   -1.4995    
   2  Prefactor     9.0472        28.962        .13318E-03   -1.5106    
   3  Prefactor     .10000E-03    9.8343        .29564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.1750        11.900        .80765E-03   -1.5211    
   6  Prefactor     .10000E-03    62.413        .56210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    50.707        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.1049        4.9869        .20645E-02   -1.5498    
   9  norm          3.4854        3.7286        .19296E-03   -1.5335    
  10  Prefactor     1.3205        4.8598        .38240E-03   -1.5478    
  11  Prefactor     .10000E-03    3.4934        .18013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.5505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.5716        .12122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.7387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    24.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          12.114        4.9759        .11509E-03   -1.5012    
  17  Normalizat    .74922        .20659        .37307E-03   -1.0198    
  18  Prefactor     1.0937        .10323        .15860E-03   -.89667    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25207e-09
Minuit parameter uncertainties:
  1  7.99416
  2  29.0073
  3  0.000119326
  4  1.29965e-06
  5  11.9043
  6  0.000278477
  7  0.00011314
  8  4.69522
  9  3.72886
  10  4.86125
  11  4.23447e-06
  12  1.10628e-05
  13  5.49829e-07
  14  6.10538e-07
  15  3.20443e-05
  16  4.97608
  17  0.206806
  18  0.103246
Done.

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

Extracting fit parameters...

4FGL J2101.4-2935
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  2.785e-04  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  2.807e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
286        Scale:  4.062e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  1.094e+00  1.032e-01  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  7.492e-01  2.068e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 315.366 -29.593
Photon Flux Upper Limit: 9.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/272426/likelihoodResults_512265601_512524801_4FGL_J2101.4-2935_daily_bin1053.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) = 9815.09137327
delta logL = -7.47671347199e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9814.86948945
delta logL = 0.221809046339

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2463       1.0000         .10000E-03   10000.    
     2 'Index     '    4.9092       1.0000          .0000       10.000    
     3 'Normalizat'    .71371       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1023       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+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=   9814.869     FROM MIGRAD    STATUS=FAILED        91 CALLS      453 TOTAL
                     EDM=   .26E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2462        148.63        .16469E-03   -.18047E-02
   2  Index         4.9096        5.9086        .12364E-01   -.27073E-03
   3  Normalizat    .71368        .17553        .38161E-03   -.45562E-03
   4  Prefactor     1.1023        .88316E-01    .15804E-03   -.76112E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9814.869     FROM SIMPLEX   STATUS=UNCHANGED     93 CALLS      546 TOTAL
                     EDM=   .76E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2462        148.63        .99792E-04   -.18047E-02
   2  Index         4.9096        5.9086        .13910E-02   -.27073E-03
   3  Normalizat    .71368        .17553        .12782E-03   -.45562E-03
   4  Prefactor     1.1023        .88316E-01    .58271E-04   -.76112E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9814.869     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      586 TOTAL
                     EDM=   .58E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2457        6.3276        .65877E-05   -.63507E-04
   2  Index         4.9100        3.2758        .49456E-03   -.69881E-05
   3  Normalizat    .71368        .20556        .15265E-04    .11321E-04
   4  Prefactor     1.1023        .10210        .31607E-04    .40716E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.24569
  Index      = 4.91001
  Normalizat = 0.71368
  Prefactor  = 1.10229
 **********
 **   18 **HESSE 
 **********

 FCN=   9814.869     FROM HESSE     STATUS=OK            23 CALLS      609 TOTAL
                     EDM=   .59E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2457        5.9304        .13175E-05   -1.5485    
   2  Index         4.9100        3.1886        .19783E-04   -.17999E-01
   3  Normalizat    .71368        .20561        .30529E-05   -1.0336    
   4  Prefactor     1.1023        .10213        .63215E-05   -.89393    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.94461e-12
Minuit parameter uncertainties:
  1  5.43663
  2  3.45776
  3  0.205832
  4  0.102144
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/272426': 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) = 9814.86948938
delta logL = 0.221809115897

Extracting fit parameters...

4FGL J2101.4-2935
   Spectrum: PowerLaw
284    Prefactor:  1.246e+00  5.437e+00  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  4.910e+00  3.458e+00  0.000e+00  1.000e+01 (-1.000e+00)
286        Scale:  4.062e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  1.102e+00  1.021e-01  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  7.137e-01  2.058e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 315.366 -29.593

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/272426/cmap_HighResolution_512265601_512524801_4FGL_J2101.4-2935_daily_bin1053.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.32e-03', job_status='DONE', photon_flux_upper_limit='9.25e-08', time_completed='2021-09-26 01:20:12.518277', job_id='272426', GAL2='1.10', fit_tolerance='1e-08', EG2='0.71', EG='0.75', time_epoch_completed='1632644412.52', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='2.22e-01', ts2='0.47', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='1053' AND source_name='4FGL J2101.4-2935' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 01:20:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0161>
Subject: Job 272426: <4FGL_J2101.4-2935_daily_bin1053> in cluster <slac> Done

Job <4FGL_J2101.4-2935_daily_bin1053> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep 26 01:05:34 2021
Job was executed on host(s) <bullet0161>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 01:06:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 01:06:29 2021
Terminated at Sun Sep 26 01:20:13 2021
Results reported at Sun Sep 26 01:20:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2101.4-2935_daily_bin1053 315.366 -29.5926 512265601 512524801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2101.4-2935 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   685.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             263.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            879 sec.

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

