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


Performing analysis on: 4FGL_J2126.3-4605_daily_bin419
RA = 321.595, Dec = -46.0978
tmin = 347932801, tmax = 348192001
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='483598', job_status='RUN', time_executed='2021-09-26 13:15:28.735098', time_epoch_executed='1632687328.74' WHERE source_name='4FGL J2126.3-4605' and cadence='daily' and bin_id='419'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/483598

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/483598/ft1_4FGL_J2126.3-4605_daily_bin419.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/483598/ft2_4FGL_J2126.3-4605_daily_bin419.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/483598/ft1_4FGL_J2126.3-4605_daily_bin419.fits outfile=/scratch/kocevski/483598/ft1_filteredMKT_4FGL_J2126.3-4605_daily_bin419.fits ra=321.595 dec=-46.0978 rad=12.0 tmin=347932801.0 tmax=348192001.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.49
user 3.23
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/483598/ft1_filtered_4FGL_J2126.3-4605_daily_bin419.fits" evtable="EVENTS" scfile=/scratch/kocevski/483598/ft2_4FGL_J2126.3-4605_daily_bin419.fits sctable="SC_DATA" outfile=/scratch/kocevski/483598/ltcube_347932801_348192001_4FGL_J2126.3-4605_daily_bin419.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/483598/ft2_4FGL_J2126.3-4605_daily_bin419.fits
.....................!
real 14.89
user 14.49
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/483598/ft1_filtered_4FGL_J2126.3-4605_daily_bin419.fits evtable="EVENTS" scfile=/scratch/kocevski/483598/ft2_4FGL_J2126.3-4605_daily_bin419.fits sctable="SC_DATA" expcube=/scratch/kocevski/483598/ltcube_347932801_348192001_4FGL_J2126.3-4605_daily_bin419.fits outfile=/scratch/kocevski/483598/expmap_347932801_348192001_4FGL_J2126.3-4605_daily_bin419.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/483598/ltcube_347932801_348192001_4FGL_J2126.3-4605_daily_bin419.fits
.....................!
real 190.95
user 186.03
sys 4.47

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/483598/ft1_filtered_4FGL_J2126.3-4605_daily_bin419.fits scfile=/scratch/kocevski/483598/ft2_4FGL_J2126.3-4605_daily_bin419.fits outfile=/scratch/kocevski/483598/cmap_347932801_348192001_4FGL_J2126.3-4605_daily_bin419.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/483598/ft1_filtered_4FGL_J2126.3-4605_daily_bin419.fits scfile=/scratch/kocevski/483598/ft2_4FGL_J2126.3-4605_daily_bin419.fits outfile=/scratch/kocevski/483598/cmap_HighResolution_347932801_348192001_4FGL_J2126.3-4605_daily_bin419.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/483598/ft1_filtered_4FGL_J2126.3-4605_daily_bin419.fits evtable="EVENTS" scfile=/scratch/kocevski/483598/ft2_4FGL_J2126.3-4605_daily_bin419.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/483598/Model_4FGL_J2126.3-4605_daily_bin419.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/483598/ft1_filtered_4FGL_J2126.3-4605_daily_bin419.fits.....................!
real 56.71
user 55.02
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3222       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .49649E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.2467       1.0000         .10000E-03   10000.    
     7 'norm      '    7.0641       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    47.273       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.2434       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.3170       1.0000         .10000E-03   10000.    
    14 'norm      '    8.8282       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10656E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .60423       1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.522       1.0000         .10000E-03   10000.    
    21 'norm      '    9.1437       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.9589       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.644       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0711       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0108       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=   7323.494     FROM MIGRAD    STATUS=CONVERGED    591 CALLS     2556 TOTAL
                     EDM=   .85E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3220        1.9459        .11489E-06    .44577E-05
   2  norm          .10000E-03    8.3622        .30090E-07** at limit **
   3  Prefactor     .10000E-03    21.790        .12141E-06** at limit **
   4  Prefactor     .10000E-03    284.85        .11324E-05** at limit **
   5  Prefactor     .10000E-03    .62955        .21670E-07** at limit **
   6  Prefactor     8.2453        13.654        .15525E-06   -.12143E-04
   7  norm          7.0642        2.3662        .31765E-07   -.31564E-04
   8  Prefactor     .10000E-03    25.223        .12347E-06** at limit **
   9  Prefactor     .10000E-03    67.194        .16137E-06** at limit **
  10  Prefactor     47.274        11.725       -.24704E-08   -.18753E-04
  11  Prefactor     3.2483        47.330        .72001E-06   -.13328E-04
  12  Prefactor     .10000E-03    6.1433        .12154E-07** at limit **
  13  Prefactor     2.3172        2.4101        .21056E-07   -.23179E-04
  14  norm          8.8284        4.5635       -.67482E-07   -.17329E-03
  15  Prefactor     .10000E-03    7.6486        .13456E-06** at limit **
  16  Prefactor     .10000E-03    2.8400        .12279E-07** at limit **
  17  Prefactor     .10000E-03    12.397       -.73673E-07** at limit **
  18  Prefactor     .10000E-03    4.2022       -.96411E-06** at limit **
  19  Prefactor     .60596        3.8544        .24974E-05   -.74871E-04
  20  Prefactor     17.471        71.547       -.26081E-05   -.73275E-04
  21  norm          9.1441        6.9233       -.63258E-06    .41950E-05
  22  Prefactor     1.9593        4.3452        .76618E-06   -.26992E-04
  23  Prefactor     10.646        8.6237       -.45161E-07    .31662E-05
  24  Normalizat    1.0708        .20438       -.47445E-08   -.85779E-04
  25  Prefactor     1.0110        .12283       -.40051E-06   -.61400E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.32202
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.24535
  norm       = 7.06421
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 47.2744
  Prefactor  = 3.24834
  Prefactor  = 0.0001
  Prefactor  = 2.31717
  norm       = 8.82836
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.605964
  Prefactor  = 17.4708
  norm       = 9.14406
  Prefactor  = 1.95925
  Prefactor  = 10.646
  Normalizat = 1.07085
  Prefactor  = 1.01102
 **********
 **   18 **HESSE 
 **********

 FCN=   7323.494     FROM HESSE     STATUS=OK           427 CALLS     2983 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3220        1.9149        .14101E-03   -1.5478    
   2  norm          .10000E-03    8.3784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    287.39        .19212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .63334        .66302E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.2453        13.650        .13961E-03   -1.5134    
   7  norm          7.0642        2.3665        .72288E-04   -1.5176    
   8  Prefactor     .10000E-03    25.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    67.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     47.274        11.730        .58319E-04   -1.4332    
  11  Prefactor     3.2483        47.008        .22490E-03   -1.5347    
  12  Prefactor     .10000E-03    6.1492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.3172        2.4050        .13163E-03   -1.5404    
  14  norm          8.8284        4.5509        .12448E-03   -1.5114    
  15  Prefactor     .10000E-03    7.7859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.8473        .14084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.2065        .17071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .60596        3.9188        .31925E-03   -1.5552    
  20  Prefactor     17.471        71.581        .95682E-04   -1.4872    
  21  norm          9.1441        6.9365        .66271E-03   -1.5103    
  22  Prefactor     1.9593        4.3488        .25563E-03   -1.5428    
  23  Prefactor     10.646        8.6402        .12281E-03   -1.5055    
  24  Normalizat    1.0708        .23825        .31012E-03   -.90693    
  25  Prefactor     1.0110        .14340        .19981E-03   -.92363    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6818e-10
Minuit parameter uncertainties:
  1  1.91499
  2  1.79066e-06
  3  1.08473e-05
  4  0.000585865
  5  2.25093e-07
  6  13.655
  7  2.36649
  8  1.08593e-05
  9  1.32559e-05
  10  11.7309
  11  24.7374
  12  8.40113e-07
  13  2.40505
  14  4.55108
  15  4.06513e-06
  16  6.45079e-07
  17  2.04421e-06
  18  3.45147e-06
  19  3.08201
  20  70.8738
  21  6.93706
  22  4.34952
  23  8.64118
  24  0.23849
  25  0.143457
Done.

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

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  4.727e+01  1.173e+01  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.011e+00  1.435e-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:  1.071e+00  2.385e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 39.92
Ra Dec: 321.595 -46.098
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 2.56e-07 +/- 6.35e-08
Energy Flux (Fixed Index): 7.02e-05 +/- 1.74e-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) = 7323.48015946
delta logL = 0.0138360756264

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7323.4716831
delta logL = 0.0223124384092

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    49.026       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4976       1.0000          .0000       10.000    
     3 'Normalizat'    1.0785       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0076       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=   7323.472     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      205 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     49.026        169.40        .14318E-02    .52136E-03
   2  Index         2.4976        2.7882        .93754E-01    .94752E-04
   3  Normalizat    1.0785        .26117        .69884E-01    .12030E-04
   4  Prefactor     1.0076        .15488        .43709E-01    .58222E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 49.0258
  Index      = 2.4976
  Normalizat = 1.07851
  Prefactor  = 1.00757
 **********
 **   18 **HESSE 
 **********

 FCN=   7323.472     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     49.026        14.678        .57271E-04   -1.4306    
   2  Index         2.4976        .26929        .39949E-02   -.52415    
   3  Normalizat    1.0785        .22918        .30921E-03   -.90445    
   4  Prefactor     1.0076        .14249        .20011E-03   -.92478    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02784e-10
Minuit parameter uncertainties:
  1  14.6788
  2  0.269462
  3  0.229395
  4  0.142546
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/483598': 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) = 7323.47168309
delta logL = 0.0223124406994

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  4.903e+01  1.468e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        Index:  2.498e+00  2.695e-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.008e+00  1.425e-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:  1.079e+00  2.294e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 39.92
Ra Dec: 321.595 -46.098
Photon Index (Free Index): 2.50 +/- 0.27
Photon Flux (Free Index): 2.50e-07 +/- 6.83e-08
Energy Flux (Free Index): 7.27e-05 +/- 2.23e-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/483598/cmap_HighResolution_347932801_348192001_4FGL_J2126.3-4605_daily_bin419.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.56e-07', energy_flux2='7.27e-05', photon_flux_error='6.35e-08', dlogl='2.23e-02', energy_flux='7.02e-05', photon_flux2='2.50e-07', job_status='DONE', time_completed='2021-09-26 13:26:15.020138', photon_index_error2='0.27', photon_index2='2.50', ts='39.92', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='2.23e-05', EG='1.07', time_epoch_completed='1632687975.02', return_code='0', job_id='483598', GAL2='1.01', EG2='1.08', return_code2='0', energy_flux_error='1.74e-05', photon_flux_error2='6.83e-08', ts2='39.92', photon_index='2.55' WHERE bin_id='419' AND source_name='4FGL J2126.3-4605' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:26:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0013>
Subject: Job 483598: <4FGL_J2126.3-4605_daily_bin419> in cluster <slac> Done

Job <4FGL_J2126.3-4605_daily_bin419> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep 26 13:10:56 2021
Job was executed on host(s) <bullet0013>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 13:12:13 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:12:13 2021
Terminated at Sun Sep 26 13:26:15 2021
Results reported at Sun Sep 26 13:26:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2126.3-4605_daily_bin419 321.595 -46.0978 347932801 348192001 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 :                                   644.23 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             268.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            919 sec.

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

