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


Performing analysis on: 4FGL_J2126.3-4605_daily_bin358
RA = 321.595, Dec = -46.0978
tmin = 332121601, tmax = 332380801
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='483497', job_status='RUN', time_executed='2021-09-26 13:12:01.296081', time_epoch_executed='1632687121.3' WHERE source_name='4FGL J2126.3-4605' and cadence='daily' and bin_id='358'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/483497

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/483497/ft1_4FGL_J2126.3-4605_daily_bin358.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/483497/ft2_4FGL_J2126.3-4605_daily_bin358.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/483497/ft1_4FGL_J2126.3-4605_daily_bin358.fits outfile=/scratch/kocevski/483497/ft1_filteredMKT_4FGL_J2126.3-4605_daily_bin358.fits ra=321.595 dec=-46.0978 rad=12.0 tmin=332121601.0 tmax=332380801.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 2.87
user 2.53
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/483497/ft2_4FGL_J2126.3-4605_daily_bin358.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/483497/ft2_4FGL_J2126.3-4605_daily_bin358.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/483497/ft1_filteredMKT_4FGL_J2126.3-4605_daily_bin358.fits evtable="EVENTS" outfile="/scratch/kocevski/483497/ft1_filtered_4FGL_J2126.3-4605_daily_bin358.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.46
user 0.29
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/483497/ft1_filtered_4FGL_J2126.3-4605_daily_bin358.fits" evtable="EVENTS" scfile=/scratch/kocevski/483497/ft2_4FGL_J2126.3-4605_daily_bin358.fits sctable="SC_DATA" outfile=/scratch/kocevski/483497/ltcube_332121601_332380801_4FGL_J2126.3-4605_daily_bin358.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/483497/ft2_4FGL_J2126.3-4605_daily_bin358.fits
.....................!
real 12.11
user 11.73
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/483497/ft1_filtered_4FGL_J2126.3-4605_daily_bin358.fits evtable="EVENTS" scfile=/scratch/kocevski/483497/ft2_4FGL_J2126.3-4605_daily_bin358.fits sctable="SC_DATA" expcube=/scratch/kocevski/483497/ltcube_332121601_332380801_4FGL_J2126.3-4605_daily_bin358.fits outfile=/scratch/kocevski/483497/expmap_332121601_332380801_4FGL_J2126.3-4605_daily_bin358.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/483497/ltcube_332121601_332380801_4FGL_J2126.3-4605_daily_bin358.fits
.....................!
real 155.75
user 151.20
sys 4.13

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 167 point sources and 0 extended sources

Setting source of interest to:
4FGL J2126.3-4605 @ 321.595 -46.0978

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/483497/ft1_filtered_4FGL_J2126.3-4605_daily_bin358.fits scfile=/scratch/kocevski/483497/ft2_4FGL_J2126.3-4605_daily_bin358.fits outfile=/scratch/kocevski/483497/cmap_332121601_332380801_4FGL_J2126.3-4605_daily_bin358.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=321.595 yref=-46.0978 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.56
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/483497/ft1_filtered_4FGL_J2126.3-4605_daily_bin358.fits scfile=/scratch/kocevski/483497/ft2_4FGL_J2126.3-4605_daily_bin358.fits outfile=/scratch/kocevski/483497/cmap_HighResolution_332121601_332380801_4FGL_J2126.3-4605_daily_bin358.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=321.595 yref=-46.0978 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.33
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/483497/ft1_filtered_4FGL_J2126.3-4605_daily_bin358.fits evtable="EVENTS" scfile=/scratch/kocevski/483497/ft2_4FGL_J2126.3-4605_daily_bin358.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/483497/Model_4FGL_J2126.3-4605_daily_bin358.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/483497/ft1_filtered_4FGL_J2126.3-4605_daily_bin358.fits.....................!
real 52.82
user 51.47
sys 1.05

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/483497/ft1_filtered_4FGL_J2126.3-4605_daily_bin358.fits', '/scratch/kocevski/483497/ft2_4FGL_J2126.3-4605_daily_bin358.fits', expMap='/scratch/kocevski/483497/expmap_332121601_332380801_4FGL_J2126.3-4605_daily_bin358.fits', expCube='/scratch/kocevski/483497/ltcube_332121601_332380801_4FGL_J2126.3-4605_daily_bin358.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/483497/Model_4FGL_J2126.3-4605_daily_bin358.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2126.3-4605'

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  5.352e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        Index:  2.554e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
282        Scale:  5.669e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/483497/ft1_filtered_4FGL_J2126.3-4605_daily_bin358.fits
Spacecraft file(s): /scratch/kocevski/483497/ft2_4FGL_J2126.3-4605_daily_bin358.fits
Exposure map: /scratch/kocevski/483497/expmap_332121601_332380801_4FGL_J2126.3-4605_daily_bin358.fits
Exposure cube: /scratch/kocevski/483497/ltcube_332121601_332380801_4FGL_J2126.3-4605_daily_bin358.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/483497/Model_4FGL_J2126.3-4605_daily_bin358.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) = 8686.5366002

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1241       1.0000         .10000E-03   10000.    
     2 'norm      '    5.0507       1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.328       1.0000         .10000E-03   10000.    
     4 'Prefactor '    53.510       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.1684       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.5524       1.0000         .10000E-03   10000.    
     7 'norm      '    7.5173       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .17650E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.970       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.5403       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.4072       1.0000         .10000E-03   10000.    
    14 'norm      '    2.2531       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.2831       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .20000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11258E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11141E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.7100       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.6465       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .43426       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.4045       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8686.535     FROM MIGRAD    STATUS=CONVERGED    608 CALLS     3389 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1242        2.4273       -.15833E-06   -.31160E-03
   2  norm          5.0514        11.989       -.14688E-05   -.69418E-04
   3  Prefactor     25.325        20.685        .55343E-06    .15143E-05
   4  Prefactor     53.478        57.974       -.18598E-04    .12162E-05
   5  Prefactor     2.1662        2.8815        .96823E-06   -.56024E-03
   6  Prefactor     7.5399        17.539       -.30612E-04   -.72071E-04
   7  norm          7.5165        2.2110        .17752E-06    .36503E-04
   8  Prefactor     .10000E-03    29.095        .23792E-06** at limit **
   9  Prefactor     .10000E-03    111.73        .75970E-05** at limit **
  10  Prefactor     17.969        7.6014       -.72441E-06    .18618E-03
  11  Prefactor     .10000E-03    6.0296       -.11269E-07** at limit **
  12  Prefactor     7.4888        25.404        .15135E-04    .11644E-06
  13  Prefactor     1.4062        3.3894       -.17160E-05   -.13228E-02
  14  norm          2.2526        2.8075       -.42791E-06   -.67762E-03
  15  Prefactor     .10000E-03    4.3037       -.92185E-07** at limit **
  16  Prefactor     2.2833        4.6653       -.14323E-05   -.72399E-03
  17  Prefactor     .10291E-03    25.895       -.44000E-05** at limit **
  18  Prefactor     .10000E-03    2.5136       -.48583E-07** at limit **
  19  Prefactor     .10000E-03    1.6590       -.15378E-06** at limit **
  20  Prefactor     .10000E-03    14.727        .60069E-08** at limit **
  21  norm          3.7107        4.2961       -.24724E-06   -.70082E-04
  22  Prefactor     .10000E-03    1.6939       -.53443E-07** at limit **
  23  Prefactor     4.6457        5.7806       -.17198E-05   -.18489E-03
  24  Normalizat    .43446        .20047        .35649E-05    .33165E-03
  25  Prefactor     1.4045        .13092        .11658E-05    .34019E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.12416
  norm       = 5.05139
  Prefactor  = 25.325
  Prefactor  = 53.4783
  Prefactor  = 2.16617
  Prefactor  = 7.53985
  norm       = 7.51646
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.9694
  Prefactor  = 0.0001
  Prefactor  = 7.48883
  Prefactor  = 1.40623
  norm       = 2.25255
  Prefactor  = 0.0001
  Prefactor  = 2.2833
  Prefactor  = 0.000102912
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.7107
  Prefactor  = 0.0001
  Prefactor  = 4.64568
  Normalizat = 0.434456
  Prefactor  = 1.40448
 **********
 **   18 **HESSE 
 **********

 FCN=   8686.535     FROM HESSE     STATUS=OK           441 CALLS     3830 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1242        2.4177        .15089E-03   -1.5416    
   2  norm          5.0514        11.983        .17892E-03   -1.5258    
   3  Prefactor     25.325        20.684        .79597E-04   -1.4701    
   4  Prefactor     53.478        58.010        .54831E-04   -1.4244    
   5  Prefactor     2.1662        2.8541        .17110E-03   -1.5414    
   6  Prefactor     7.5399        17.436        .14593E-03   -1.5159    
   7  norm          7.5165        2.2048        .71219E-04   -1.5160    
   8  Prefactor     .10000E-03    29.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    112.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.969        7.5778        .94481E-04   -1.4860    
  11  Prefactor     .10000E-03    6.0462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.4888        25.183        .14605E-03   -1.5161    
  13  Prefactor     1.4062        3.3950        .25489E-03   -1.5471    
  14  norm          2.2526        2.7956        .16904E-03   -1.5408    
  15  Prefactor     .10000E-03    4.3715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.2833        4.6571        .27171E-03   -1.5406    
  17  Prefactor     .10291E-03    25.816        .12395       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.5236        .28375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.6935        .11715E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    14.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.7107        4.2919        .20292E-03   -1.5323    
  22  Prefactor     .10000E-03    1.7249        .11839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.6457        5.7793        .18671E-03   -1.5277    
  24  Normalizat    .43446        .20295        .43193E-03   -1.1556    
  25  Prefactor     1.4045        .13617        .17456E-03   -.80251    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.78517e-09
Minuit parameter uncertainties:
  1  2.4178
  2  11.9883
  3  20.6894
  4  58.0711
  5  2.85433
  6  17.4473
  7  2.20481
  8  0.000119032
  9  0.000392386
  10  7.57822
  11  3.04307e-06
  12  25.2189
  13  3.3955
  14  2.79578
  15  1.5846e-05
  16  4.65787
  17  0.0173472
  18  3.00334e-05
  19  1.55158e-05
  20  1.6715e-06
  21  4.29228
  22  5.88132e-06
  23  5.77998
  24  0.203298
  25  0.136203
Done.

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

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  1.797e+01  7.578e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        Index:  2.554e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
282        Scale:  5.669e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  1.404e+00  1.362e-01  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
547   Normalization:  4.345e-01  2.033e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.23
Ra Dec: 321.595 -46.098
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 9.73e-08 +/- 4.10e-08
Energy Flux (Fixed Index): 2.67e-05 +/- 1.12e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8686.50595633
delta logL = 0.0286858205127

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8686.49728356
delta logL = 0.0373585894104

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.043       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4170       1.0000          .0000       10.000    
     3 'Normalizat'    .44678       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3990       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5510E+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=   8686.497     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      257 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.041        8.8747        .91783E-04    .38398E-04
   2  Index         2.4172        .49662        .78628E-02    .25552E-03
   3  Normalizat    .44683        .19627        .42626E-03   -.39633E-04
   4  Prefactor     1.3990        .13391        .17486E-03    .72817E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.0407
  Index      = 2.41724
  Normalizat = 0.446833
  Prefactor  = 1.39898
 **********
 **   18 **HESSE 
 **********

 FCN=   8686.497     FROM HESSE     STATUS=OK            25 CALLS      282 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.041        8.7501        .36713E-05   -1.4835    
   2  Index         2.4172        .48915        .15726E-02   -.54282    
   3  Normalizat    .44683        .19619        .17050E-04   -1.1495    
   4  Prefactor     1.3990        .13388        .69944E-05   -.80410    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.07277e-11
Minuit parameter uncertainties:
  1  8.7507
  2  0.490224
  3  0.19649
  4  0.133917
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/483497': 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) = 8686.49728289
delta logL = 0.0373592631677

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  1.904e+01  8.751e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        Index:  2.417e+00  4.902e-01  0.000e+00  1.000e+01 (-1.000e+00)
282        Scale:  5.669e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  1.399e+00  1.339e-01  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
547   Normalization:  4.468e-01  1.965e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.26
Ra Dec: 321.595 -46.098
Photon Index (Free Index): 2.42 +/- 0.49
Photon Flux (Free Index): 8.91e-08 +/- 4.90e-08
Energy Flux (Free Index): 2.86e-05 +/- 1.47e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/483497/cmap_HighResolution_332121601_332380801_4FGL_J2126.3-4605_daily_bin358.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.73e-08', energy_flux2='2.86e-05', photon_flux_error='4.10e-08', dlogl='3.74e-02', energy_flux='2.67e-05', photon_flux2='8.91e-08', job_status='DONE', time_completed='2021-09-26 13:22:54.699429', photon_index_error2='0.49', photon_index2='2.42', ts='11.23', fit_tolerance='1e-08', GAL='1.40', photon_index_error='0.00', energy_flux_error2='1.47e-05', EG='0.43', time_epoch_completed='1632687774.7', return_code='0', job_id='483497', GAL2='1.40', EG2='0.45', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='4.90e-08', ts2='11.26', photon_index='2.55' WHERE bin_id='358' AND source_name='4FGL J2126.3-4605' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:22:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 483497: <4FGL_J2126.3-4605_daily_bin358> in cluster <slac> Done

Job <4FGL_J2126.3-4605_daily_bin358> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep 26 13:10:47 2021
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 13:11:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 13:11:52 2021
Terminated at Sun Sep 26 13:22:55 2021
Results reported at Sun Sep 26 13:22:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2126.3-4605_daily_bin358 321.595 -46.0978 332121601 332380801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2126.3-4605 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   649.38 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             384.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   662 sec.
    Turnaround time :                            728 sec.

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

