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


Performing analysis on: 4FGL_J2126.3-4605_daily_bin245
RA = 321.595, Dec = -46.0978
tmin = 302832001, tmax = 303091201
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='483320', job_status='RUN', time_executed='2021-09-26 13:14:59.860504', time_epoch_executed='1632687299.86' WHERE source_name='4FGL J2126.3-4605' and cadence='daily' and bin_id='245'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/483320

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/483320/ft1_4FGL_J2126.3-4605_daily_bin245.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/483320/ft2_4FGL_J2126.3-4605_daily_bin245.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/483320/ft1_4FGL_J2126.3-4605_daily_bin245.fits outfile=/scratch/kocevski/483320/ft1_filteredMKT_4FGL_J2126.3-4605_daily_bin245.fits ra=321.595 dec=-46.0978 rad=12.0 tmin=302832001.0 tmax=303091201.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.55
user 3.29
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/483320/ft1_filtered_4FGL_J2126.3-4605_daily_bin245.fits" evtable="EVENTS" scfile=/scratch/kocevski/483320/ft2_4FGL_J2126.3-4605_daily_bin245.fits sctable="SC_DATA" outfile=/scratch/kocevski/483320/ltcube_302832001_303091201_4FGL_J2126.3-4605_daily_bin245.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/483320/ft2_4FGL_J2126.3-4605_daily_bin245.fits
.....................!
real 13.13
user 12.69
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/483320/ft1_filtered_4FGL_J2126.3-4605_daily_bin245.fits evtable="EVENTS" scfile=/scratch/kocevski/483320/ft2_4FGL_J2126.3-4605_daily_bin245.fits sctable="SC_DATA" expcube=/scratch/kocevski/483320/ltcube_302832001_303091201_4FGL_J2126.3-4605_daily_bin245.fits outfile=/scratch/kocevski/483320/expmap_302832001_303091201_4FGL_J2126.3-4605_daily_bin245.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/483320/ltcube_302832001_303091201_4FGL_J2126.3-4605_daily_bin245.fits
.....................!
real 191.43
user 186.12
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 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/483320/ft1_filtered_4FGL_J2126.3-4605_daily_bin245.fits scfile=/scratch/kocevski/483320/ft2_4FGL_J2126.3-4605_daily_bin245.fits outfile=/scratch/kocevski/483320/cmap_302832001_303091201_4FGL_J2126.3-4605_daily_bin245.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/483320/ft1_filtered_4FGL_J2126.3-4605_daily_bin245.fits scfile=/scratch/kocevski/483320/ft2_4FGL_J2126.3-4605_daily_bin245.fits outfile=/scratch/kocevski/483320/cmap_HighResolution_302832001_303091201_4FGL_J2126.3-4605_daily_bin245.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.74
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/483320/ft1_filtered_4FGL_J2126.3-4605_daily_bin245.fits evtable="EVENTS" scfile=/scratch/kocevski/483320/ft2_4FGL_J2126.3-4605_daily_bin245.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/483320/Model_4FGL_J2126.3-4605_daily_bin245.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/483320/ft1_filtered_4FGL_J2126.3-4605_daily_bin245.fits.....................!
real 44.31
user 42.89
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    20.100       1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.626       1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.115       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.5007       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.0242       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.169       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.6680       1.0000         .10000E-03   10000.    
    14 'norm      '    2.8967       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .46120       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.7670       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.6929       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    6.0674       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1639       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .88412       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=   5167.464     FROM MIGRAD    STATUS=CONVERGED    625 CALLS     2997 TOTAL
                     EDM=   .61E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.3329        .22867E-07** at limit **
   2  norm          20.080        35.155       -.56234E-05   -.53425E-04
   3  Prefactor     26.607        48.451       -.98623E-06   -.18727E-04
   4  Prefactor     28.091        74.948        .31928E-05    .59289E-05
   5  Prefactor     7.5003        3.9987        .62178E-07    .15707E-04
   6  Prefactor     .10000E-03    19.429       -.55797E-06** at limit **
   7  norm          2.0241        1.7724        .19872E-07    .95333E-05
   8  Prefactor     .10000E-03    12.175        .12881E-07** at limit **
   9  Prefactor     .10000E-03    20.192        .63398E-06** at limit **
  10  Prefactor     18.170        11.253       -.59095E-07    .75681E-05
  11  Prefactor     .10000E-03    31.378       -.12619E-06** at limit **
  12  Prefactor     .10000E-03    9.5985        .18265E-08** at limit **
  13  Prefactor     5.6685        4.8779       -.16120E-06    .91823E-05
  14  norm          2.8968        4.2513        .14468E-06    .12694E-04
  15  Prefactor     .10000E-03    3.8661       -.47509E-08** at limit **
  16  Prefactor     .10000E-03    7.3863       -.31210E-07** at limit **
  17  Prefactor     .10278E-03    60.994       -.39853E-05** at limit **
  18  Prefactor     2.7744        7.4072        .33354E-05   -.36136E-04
  19  Prefactor     5.6924        4.6364       -.26932E-07    .11758E-04
  20  Prefactor     .10000E-03    82.662        .90421E-06** at limit **
  21  norm          6.0670        6.9540       -.10536E-07    .81675E-06
  22  Prefactor     .10000E-03    2.6489        .23340E-07** at limit **
  23  Prefactor     .10000E-03    4.5009        .36008E-07** at limit **
  24  Normalizat    1.1639        .23372       -.32871E-06    .54452E-04
  25  Prefactor     .88424        .13987       -.19130E-06   -.57796E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 20.0798
  Prefactor  = 26.6068
  Prefactor  = 28.0913
  Prefactor  = 7.50032
  Prefactor  = 0.0001
  norm       = 2.02405
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.1702
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.66851
  norm       = 2.89682
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000102782
  Prefactor  = 2.77435
  Prefactor  = 5.6924
  Prefactor  = 0.0001
  norm       = 6.06701
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.16387
  Prefactor  = 0.884236
 **********
 **   18 **HESSE 
 **********

 FCN=   5167.464     FROM HESSE     STATUS=OK           437 CALLS     3434 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.3393        .81048E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          20.080        35.151        .89338E-04   -1.4811    
   3  Prefactor     26.607        48.307        .77636E-04   -1.4676    
   4  Prefactor     28.091        75.058        .75557E-04   -1.4647    
   5  Prefactor     7.5003        3.9975        .10069E-03   -1.5160    
   6  Prefactor     .10000E-03    19.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.0241        1.7777        .86018E-04   -1.5423    
   8  Prefactor     .10000E-03    12.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.170        11.268        .93962E-04   -1.4855    
  11  Prefactor     .10000E-03    31.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.6087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.6685        4.8791        .14081E-03   -1.5232    
  14  norm          2.8968        4.2364        .17359E-03   -1.5368    
  15  Prefactor     .10000E-03    3.8771        .13803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.5451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10278E-03    63.882        .13642       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.7744        7.6447        .12234E-02   -1.5375    
  19  Prefactor     5.6924        4.6481        .13356E-03   -1.5231    
  20  Prefactor     .10000E-03    82.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.0670        6.9515        .16300E-03   -1.5215    
  22  Prefactor     .10000E-03    2.6671        .11423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.5135        .14893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1639        .27597        .28946E-03   -.87727    
  25  Prefactor     .88424        .16451        .20206E-03   -.96694    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2707e-10
Minuit parameter uncertainties:
  1  1.43528e-06
  2  35.1871
  3  48.3781
  4  75.312
  5  3.99764
  6  6.00348e-06
  7  1.77773
  8  8.80466e-07
  9  1.43076e-05
  10  11.2696
  11  1.81919e-06
  12  1.59832e-06
  13  4.87944
  14  4.2368
  15  5.477e-07
  16  5.14441e-07
  17  0.026689
  18  7.64736
  19  4.6484
  20  4.1192e-05
  21  6.95245
  22  1.66358e-06
  23  1.87958e-06
  24  0.276318
  25  0.164601
Done.

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

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  1.817e+01  1.127e+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:  8.842e-01  1.646e-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.164e+00  2.763e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.77
Ra Dec: 321.595 -46.098
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 9.84e-08 +/- 6.10e-08
Energy Flux (Fixed Index): 2.70e-05 +/- 1.67e-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) = 5165.80843378
delta logL = 1.65548011694

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5165.7469446
delta logL = 1.71696929458

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.291       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5755       1.0000          .0000       10.000    
     3 'Normalizat'    1.2385       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85795       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=   5165.747     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      214 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.291        9.4853        .27467E-02    .24646E-02
   2  Index         1.5754        .32545        .14694       -.69847E-04
   3  Normalizat    1.2385        .21998        .63757E-01    .77333E-05
   4  Prefactor     .85796        .13632        .44467E-01    .65959E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.2913
  Index      = 1.57544
  Normalizat = 1.23848
  Prefactor  = 0.857961
 **********
 **   18 **HESSE 
 **********

 FCN=   5165.747     FROM HESSE     STATUS=OK            31 CALLS      245 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.291        12.512        .10987E-03   -1.4979    
   2  Index         1.5754        .46814        .59652E-02   -.75448    
   3  Normalizat    1.2385        .25687        .28202E-03   -.85422    
   4  Prefactor     .85796        .15909        .20476E-03   -.97626    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.03261e-09
Minuit parameter uncertainties:
  1  12.5142
  2  0.469436
  3  0.257129
  4  0.159173
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/483320': 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) = 5165.74694459
delta logL = 1.71696930742

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  1.329e+01  1.251e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        Index:  1.575e+00  4.694e-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:  8.580e-01  1.592e-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.238e+00  2.571e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.23
Ra Dec: 321.595 -46.098
Photon Index (Free Index): 1.58 +/- 0.47
Photon Flux (Free Index): 3.49e-08 +/- 3.43e-08
Energy Flux (Free Index): 8.56e-05 +/- 9.34e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/483320/cmap_HighResolution_302832001_303091201_4FGL_J2126.3-4605_daily_bin245.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.84e-08', energy_flux2='8.56e-05', photon_flux_error='6.10e-08', dlogl='1.72e+00', energy_flux='2.70e-05', photon_flux2='3.49e-08', job_status='DONE', time_completed='2021-09-26 13:24:25.860336', photon_index_error2='0.47', photon_index2='1.58', ts='6.77', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='9.34e-05', EG='1.16', time_epoch_completed='1632687865.86', return_code='0', job_id='483320', GAL2='0.86', EG2='1.24', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='3.43e-08', ts2='10.23', photon_index='2.55' WHERE bin_id='245' AND source_name='4FGL J2126.3-4605' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:24:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 483320: <4FGL_J2126.3-4605_daily_bin245> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2126.3-4605_daily_bin245 321.595 -46.0978 302832001 303091201 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 :                                   565.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             214.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            837 sec.

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

