/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 85 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 = 7373
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2126.3-4605_daily_bin555
RA = 321.595, Dec = -46.0978
tmin = 383184001, tmax = 383443201
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='484807', job_status='RUN', time_executed='2021-09-26 13:18:33.760886', time_epoch_executed='1632687513.76' WHERE source_name='4FGL J2126.3-4605' and cadence='daily' and bin_id='555'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/484807

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/484807/ft1_4FGL_J2126.3-4605_daily_bin555.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/484807/ft2_4FGL_J2126.3-4605_daily_bin555.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/484807/ft1_4FGL_J2126.3-4605_daily_bin555.fits outfile=/scratch/kocevski/484807/ft1_filteredMKT_4FGL_J2126.3-4605_daily_bin555.fits ra=321.595 dec=-46.0978 rad=12.0 tmin=383184001.0 tmax=383443201.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.44
user 3.19
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/484807/ft2_4FGL_J2126.3-4605_daily_bin555.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/484807/ft1_filteredMKT_4FGL_J2126.3-4605_daily_bin555.fits evtable="EVENTS" outfile="/scratch/kocevski/484807/ft1_filtered_4FGL_J2126.3-4605_daily_bin555.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.68
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/484807/ft1_filtered_4FGL_J2126.3-4605_daily_bin555.fits" evtable="EVENTS" scfile=/scratch/kocevski/484807/ft2_4FGL_J2126.3-4605_daily_bin555.fits sctable="SC_DATA" outfile=/scratch/kocevski/484807/ltcube_383184001_383443201_4FGL_J2126.3-4605_daily_bin555.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/484807/ft2_4FGL_J2126.3-4605_daily_bin555.fits
.....................!
real 13.79
user 13.40
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/484807/ft1_filtered_4FGL_J2126.3-4605_daily_bin555.fits evtable="EVENTS" scfile=/scratch/kocevski/484807/ft2_4FGL_J2126.3-4605_daily_bin555.fits sctable="SC_DATA" expcube=/scratch/kocevski/484807/ltcube_383184001_383443201_4FGL_J2126.3-4605_daily_bin555.fits outfile=/scratch/kocevski/484807/expmap_383184001_383443201_4FGL_J2126.3-4605_daily_bin555.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/484807/ltcube_383184001_383443201_4FGL_J2126.3-4605_daily_bin555.fits
.....................!
real 191.91
user 186.50
sys 4.78

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/484807/ft1_filtered_4FGL_J2126.3-4605_daily_bin555.fits scfile=/scratch/kocevski/484807/ft2_4FGL_J2126.3-4605_daily_bin555.fits outfile=/scratch/kocevski/484807/cmap_383184001_383443201_4FGL_J2126.3-4605_daily_bin555.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.55
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/484807/ft1_filtered_4FGL_J2126.3-4605_daily_bin555.fits scfile=/scratch/kocevski/484807/ft2_4FGL_J2126.3-4605_daily_bin555.fits outfile=/scratch/kocevski/484807/cmap_HighResolution_383184001_383443201_4FGL_J2126.3-4605_daily_bin555.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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/484807/ft1_filtered_4FGL_J2126.3-4605_daily_bin555.fits evtable="EVENTS" scfile=/scratch/kocevski/484807/ft2_4FGL_J2126.3-4605_daily_bin555.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/484807/Model_4FGL_J2126.3-4605_daily_bin555.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/484807/ft1_filtered_4FGL_J2126.3-4605_daily_bin555.fits.....................!
real 64.64
user 63.18
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/484807/ft1_filtered_4FGL_J2126.3-4605_daily_bin555.fits', '/scratch/kocevski/484807/ft2_4FGL_J2126.3-4605_daily_bin555.fits', expMap='/scratch/kocevski/484807/expmap_383184001_383443201_4FGL_J2126.3-4605_daily_bin555.fits', expCube='/scratch/kocevski/484807/ltcube_383184001_383443201_4FGL_J2126.3-4605_daily_bin555.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/484807/Model_4FGL_J2126.3-4605_daily_bin555.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/484807/ft1_filtered_4FGL_J2126.3-4605_daily_bin555.fits
Spacecraft file(s): /scratch/kocevski/484807/ft2_4FGL_J2126.3-4605_daily_bin555.fits
Exposure map: /scratch/kocevski/484807/expmap_383184001_383443201_4FGL_J2126.3-4605_daily_bin555.fits
Exposure cube: /scratch/kocevski/484807/ltcube_383184001_383443201_4FGL_J2126.3-4605_daily_bin555.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/484807/Model_4FGL_J2126.3-4605_daily_bin555.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) = 8903.12497711

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9738       1.0000         .10000E-03   10000.    
     2 'norm      '    .13677E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14312E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .41450E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .18936E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    14.439       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .40268E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11919E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.4608       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .24203E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    28.675       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    9.4306       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .15206E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15452E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .58299       1.0000         .10000E-03   10000.    
    20 'Prefactor '    39.362       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.1372       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11618E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .73201       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0242       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.

 FCN=   8903.027     FROM MIGRAD    STATUS=CONVERGED    634 CALLS     2188 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9725        2.8744        .58861E-02    .37101E-03
   2  norm          .10000E-03    4.3790        .90712E-02** at limit **
   3  Prefactor     .10000E-03    7.4244        .90712E-02** at limit **
   4  Prefactor     .10000E-03    35.188        .97249E-02** at limit **
   5  Prefactor     .10000E-03    .63843        .90712E-02** at limit **
   6  Prefactor     .10000E-03    10.722        .90712E-02** at limit **
   7  norm          14.437        2.5709        .26351E-02    .31969E-03
   8  Prefactor     .10000E-03    61.302        .92225E-02** at limit **
   9  Prefactor     .10000E-03    10.355        .90712E-02** at limit **
  10  Prefactor     4.4566        5.3730        .47662E-02    .47619E-03
  11  Prefactor     .10000E-03    5.7104        .90712E-02** at limit **
  12  Prefactor     28.186        21.903        .18704E-02   -.50996E-04
  13  Prefactor     .10000E-03    1.5010        .41966E-01** at limit **
  14  norm          9.4430        4.0726        .32625E-02    .31593E-03
  15  Prefactor     .10000E-03    2.8618        .90712E-02** at limit **
  16  Prefactor     .10000E-03    1.6085        .90712E-02** at limit **
  17  Prefactor     .10000E-03    40.211        .90712E-02** at limit **
  18  Prefactor     .10000E-03    4.4016        .90712E-02** at limit **
  19  Prefactor     .58605        3.1150        .11605E-01    .20635E-02
  20  Prefactor     38.753        46.004        .15972E-02   -.18578E-04
  21  norm          .10000E-03    1.6213        .90712E-02** at limit **
  22  Prefactor     3.1354        2.8271        .57219E-02    .39134E-03
  23  Prefactor     .10000E-03    2.4299        .54370E-01** at limit **
  24  Normalizat    .73265        .16191        .71558E-01    .29641E-03
  25  Prefactor     1.0241        .10219        .41748E-01    .56779E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.9725
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.437
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.45661
  Prefactor  = 0.0001
  Prefactor  = 28.1858
  Prefactor  = 0.0001
  norm       = 9.443
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.586053
  Prefactor  = 38.7534
  norm       = 0.0001
  Prefactor  = 3.13535
  Prefactor  = 0.0001
  Normalizat = 0.732647
  Prefactor  = 1.02412
 **********
 **   18 **HESSE 
 **********

 FCN=   8903.027     FROM HESSE     STATUS=OK           421 CALLS     2609 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9725        2.8705        .15222E-03   -1.5363    
   2  norm          .10000E-03    4.3843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.4311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    35.236        .19450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .65000        .73613E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          14.437        2.5696        .60358E-04   -1.4948    
   8  Prefactor     .10000E-03    63.481        .36890E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.4566        5.3609        .19065E-03   -1.5286    
  11  Prefactor     .10000E-03    5.7185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     28.186        21.898        .74817E-04   -1.4646    
  13  Prefactor     .10000E-03    3.0582        .22310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          9.4430        4.0714        .12046E-03   -1.5093    
  15  Prefactor     .10000E-03    2.9072        .15582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.6125        .11686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    40.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.4713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .58605        3.1793        .31521E-03   -1.5555    
  20  Prefactor     38.753        45.951        .63887E-04   -1.4462    
  21  norm          .10000E-03    1.6217        .11733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.1354        2.8283        .14513E-03   -1.5354    
  23  Prefactor     .10000E-03    6.2083        .28601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .73265        .18491        .31670E-03   -1.0262    
  25  Prefactor     1.0241        .11838        .17938E-03   -.91930    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67923e-10
Minuit parameter uncertainties:
  1  2.87067
  2  4.38769e-06
  3  3.91099e-05
  4  0.000168818
  5  8.64737e-07
  6  8.91069e-06
  7  2.56958
  8  0.000120772
  9  1.91346e-05
  10  5.36149
  11  3.34535e-05
  12  21.9043
  13  5.61441e-06
  14  4.07148
  15  8.92893e-06
  16  5.6172e-06
  17  6.22628e-05
  18  5.16485e-06
  19  2.73002
  20  45.993
  21  7.78892e-06
  22  2.82847
  23  1.40501e-05
  24  0.18507
  25  0.118407
Done.

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

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  4.457e+00  5.361e+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.024e+00  1.184e-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:  7.326e-01  1.851e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.99
Ra Dec: 321.595 -46.098
Photon Flux Upper Limit: 9.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/484807/likelihoodResults_383184001_383443201_4FGL_J2126.3-4605_daily_bin555.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): 0
logL (Free Index) = 8903.01047631
delta logL = 0.0164821611306

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8903.00781038
delta logL = 0.0191480921494

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0941       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7509       1.0000          .0000       10.000    
     3 'Normalizat'    .72819       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0259       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.

 FCN=   8903.008     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      213 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0953        156.59        .49811E-02    .53703E-03
   2  Index         2.7506        6.0609        .22743        .74670E-04
   3  Normalizat    .72815        .55768E-01    .71758E-01    .43043E-04
   4  Prefactor     1.0259        .34733E-01    .41596E-01    .42320E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.0953
  Index      = 2.75061
  Normalizat = 0.728153
  Prefactor  = 1.02591
 **********
 **   18 **HESSE 
 **********

 FCN=   8903.008     FROM HESSE     STATUS=OK            31 CALLS      244 TOTAL
                     EDM=   .76E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0953        5.7351        .19924E-03   -1.5303    
   2  Index         2.7506        1.0784        .13574E-01   -.46663    
   3  Normalizat    .72815        .17933        .31758E-03   -1.0279    
   4  Prefactor     1.0259        .11778        .17924E-03   -.91871    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.61639e-12
Minuit parameter uncertainties:
  1  5.73586
  2  1.08917
  3  0.179472
  4  0.117808
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/484807': 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) = 8903.00781028
delta logL = 0.0191481895981

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  4.095e+00  5.736e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        Index:  2.751e+00  1.089e+00  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.026e+00  1.178e-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:  7.282e-01  1.795e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.03
Ra Dec: 321.595 -46.098
Photon Index (Free Index): 2.75 +/- 1.09
Photon Flux (Free Index): 2.77e-08 +/- 3.48e-08
Energy Flux (Free Index): 6.41e-06 +/- 7.70e-06

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/484807/cmap_HighResolution_383184001_383443201_4FGL_J2126.3-4605_daily_bin555.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.10e-03', comment='SUCCESS', energy_flux2='6.41e-06', dlogl='1.91e-02', photon_flux2='2.77e-08', job_status='DONE', time_completed='2021-09-26 13:31:32.518934', photon_index_error2='1.09', photon_index2='2.75', ts='0.99', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='9.09e-08', energy_flux_error2='7.70e-06', EG='0.73', time_epoch_completed='1632688292.52', return_code='0', job_id='484807', GAL2='1.03', EG2='0.73', return_code2='0', photon_flux_error2='3.48e-08', ts2='1.03', photon_index='2.55' WHERE bin_id='555' AND source_name='4FGL J2126.3-4605' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:31:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0181>
Subject: Job 484807: <4FGL_J2126.3-4605_daily_bin555> in cluster <slac> Done

Job <4FGL_J2126.3-4605_daily_bin555> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Sep 26 13:15:35 2021
Job was executed on host(s) <bullet0181>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 13:16:43 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:16:43 2021
Terminated at Sun Sep 26 13:31:33 2021
Results reported at Sun Sep 26 13:31:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2126.3-4605_daily_bin555 321.595 -46.0978 383184001 383443201 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 :                                   778.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             278.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            958 sec.

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

