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


Performing analysis on: 4FGL_J2126.3-4605_daily_bin1660
RA = 321.595, Dec = -46.0978
tmin = 669600001, tmax = 669859201
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='993181', job_status='RUN', time_executed='2022-03-25 00:37:02.445446', time_epoch_executed='1648193822.45' WHERE source_name='4FGL J2126.3-4605' and cadence='daily' and bin_id='1660'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/993181

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/993181/ft1_4FGL_J2126.3-4605_daily_bin1660.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/993181/ft2_4FGL_J2126.3-4605_daily_bin1660.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/993181/ft1_4FGL_J2126.3-4605_daily_bin1660.fits outfile=/scratch/kocevski/993181/ft1_filteredMKT_4FGL_J2126.3-4605_daily_bin1660.fits ra=321.595 dec=-46.0978 rad=12.0 tmin=669600001.0 tmax=669859201.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 4.55
user 4.30
sys 0.23

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

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

Number of photons that the gtmktime cut: 575

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/993181/ft1_filtered_4FGL_J2126.3-4605_daily_bin1660.fits" evtable="EVENTS" scfile=/scratch/kocevski/993181/ft2_4FGL_J2126.3-4605_daily_bin1660.fits sctable="SC_DATA" outfile=/scratch/kocevski/993181/ltcube_669600001_669859201_4FGL_J2126.3-4605_daily_bin1660.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/993181/ft2_4FGL_J2126.3-4605_daily_bin1660.fits
.....................!
real 11.73
user 11.34
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/993181/ft1_filtered_4FGL_J2126.3-4605_daily_bin1660.fits evtable="EVENTS" scfile=/scratch/kocevski/993181/ft2_4FGL_J2126.3-4605_daily_bin1660.fits sctable="SC_DATA" expcube=/scratch/kocevski/993181/ltcube_669600001_669859201_4FGL_J2126.3-4605_daily_bin1660.fits outfile=/scratch/kocevski/993181/expmap_669600001_669859201_4FGL_J2126.3-4605_daily_bin1660.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/993181/ltcube_669600001_669859201_4FGL_J2126.3-4605_daily_bin1660.fits
.....................!
real 190.35
user 185.80
sys 4.04

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/993181/ft1_filtered_4FGL_J2126.3-4605_daily_bin1660.fits scfile=/scratch/kocevski/993181/ft2_4FGL_J2126.3-4605_daily_bin1660.fits outfile=/scratch/kocevski/993181/cmap_669600001_669859201_4FGL_J2126.3-4605_daily_bin1660.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/993181/ft1_filtered_4FGL_J2126.3-4605_daily_bin1660.fits scfile=/scratch/kocevski/993181/ft2_4FGL_J2126.3-4605_daily_bin1660.fits outfile=/scratch/kocevski/993181/cmap_HighResolution_669600001_669859201_4FGL_J2126.3-4605_daily_bin1660.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.57
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.7003       1.0000         .10000E-03   10000.    
     2 'norm      '    2.9865       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.0272       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .62371E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.2577       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.9465       1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.513       1.0000         .10000E-03   10000.    
     9 'Prefactor '    126.12       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.6804       1.0000         .10000E-03   10000.    
    11 'Prefactor '    27.026       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.565       1.0000         .10000E-03   10000.    
    14 'norm      '    1.5937       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10378E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    197.70       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10584E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    72.350       1.0000         .10000E-03   10000.    
    21 'norm      '    6.5763       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .30692E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.762       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .67771       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2182       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=   6323.249     FROM MIGRAD    STATUS=CONVERGED    557 CALLS     2913 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.7005        4.2197       -.13762E-05    .15487E-05
   2  norm          2.9881        17.307       -.57224E-05   -.77099E-04
   3  Prefactor     7.0308        18.373       -.47713E-05   -.43399E-05
   4  Prefactor     .10000E-03    159.00       -.16245E-04** at limit **
   5  Prefactor     4.2576        2.9576        .23234E-06   -.11120E-03
   6  Prefactor     .10000E-03    11.964        .31342E-06** at limit **
   7  norm          2.9466        1.9551       -.22214E-09   -.15262E-03
   8  Prefactor     24.512        28.494       -.66307E-06   -.19307E-06
   9  Prefactor     126.09        71.156       -.18600E-04   -.17047E-05
  10  Prefactor     8.6800        10.248        .10103E-05   -.66167E-04
  11  Prefactor     27.027        29.817        .91913E-06    .67966E-05
  12  Prefactor     .10000E-03    13.003       -.61877E-06** at limit **
  13  Prefactor     10.565        6.1411        .30378E-06   -.94052E-04
  14  norm          1.5933        3.4642       -.77139E-06   -.57816E-03
  15  Prefactor     .10003E-03    6.9270       -.10759E-06** at limit **
  16  Prefactor     .10000E-03    13.119        .70951E-06** at limit **
  17  Prefactor     197.68        68.121       -.16414E-04    .39284E-05
  18  Prefactor     .10000E-03    6.0024       -.11002E-05** at limit **
  19  Prefactor     .10000E-03    2.8271       -.43780E-06** at limit **
  20  Prefactor     72.431        109.62        .88922E-04    .97210E-05
  21  norm          6.5765        6.2865       -.57584E-06    .49366E-04
  22  Prefactor     .10000E-03    2.5499        .30553E-06** at limit **
  23  Prefactor     12.763        10.227       -.17322E-05   -.68629E-04
  24  Normalizat    .67779        .25507        .73830E-06    .23786E-04
  25  Prefactor     1.2182        .14902        .78494E-06    .39378E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.70051
  norm       = 2.9881
  Prefactor  = 7.03084
  Prefactor  = 0.0001
  Prefactor  = 4.25757
  Prefactor  = 0.0001
  norm       = 2.94662
  Prefactor  = 24.5123
  Prefactor  = 126.091
  Prefactor  = 8.67998
  Prefactor  = 27.0268
  Prefactor  = 0.0001
  Prefactor  = 10.5646
  norm       = 1.59332
  Prefactor  = 0.000100025
  Prefactor  = 0.0001
  Prefactor  = 197.679
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 72.4308
  norm       = 6.57647
  Prefactor  = 0.0001
  Prefactor  = 12.7633
  Normalizat = 0.677785
  Prefactor  = 1.21815
 **********
 **   18 **HESSE 
 **********

 FCN=   6323.249     FROM HESSE     STATUS=OK           441 CALLS     3354 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.7005        4.2185        .12567E-03   -1.5190    
   2  norm          2.9881        17.250        .23491E-03   -1.5362    
   3  Prefactor     7.0308        18.328        .15133E-03   -1.5178    
   4  Prefactor     .10000E-03    162.15        .21043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.2576        2.9526        .10980E-03   -1.5295    
   6  Prefactor     .10000E-03    12.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.9466        1.9484        .86599E-04   -1.5365    
   8  Prefactor     24.512        28.512        .80907E-04   -1.4717    
   9  Prefactor     126.09        71.042        .17923E-03   -1.3457    
  10  Prefactor     8.6800        10.219        .13605E-03   -1.5119    
  11  Prefactor     27.027        29.725        .77060E-04   -1.4668    
  12  Prefactor     .10000E-03    13.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.565        6.1282        .12327E-03   -1.5058    
  14  norm          1.5933        3.4144        .20836E-03   -1.5456    
  15  Prefactor     .10003E-03    110.99        .39364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     197.68        68.157        .14367E-03   -1.2887    
  18  Prefactor     .10000E-03    6.0290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.8783        .13050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     72.431        109.39        .23599E-03   -1.4004    
  21  norm          6.5765        6.2880        .15649E-03   -1.5195    
  22  Prefactor     .10000E-03    12.994        .24413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     12.763        10.223        .11213E-03   -1.4993    
  24  Normalizat    .67779        .27220        .39363E-03   -1.0478    
  25  Prefactor     1.2182        .16481        .19251E-03   -.85775    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40841e-09
Minuit parameter uncertainties:
  1  4.21868
  2  14.365
  3  18.3428
  4  0.000498116
  5  2.9527
  6  6.5543e-05
  7  1.94848
  8  28.5275
  9  71.0901
  10  10.2212
  11  29.741
  12  5.34858e-05
  13  6.12852
  14  3.41478
  15  0.00336547
  16  1.44655e-05
  17  68.1846
  18  0.000315429
  19  7.35859e-05
  20  109.692
  21  6.28864
  22  8.29561e-05
  23  10.2241
  24  0.272743
  25  0.164881
Done.

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

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  8.680e+00  1.022e+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.218e+00  1.649e-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:  6.778e-01  2.727e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.94
Ra Dec: 321.595 -46.098
Photon Flux Upper Limit: 1.63e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.27e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/993181/likelihoodResults_669600001_669859201_4FGL_J2126.3-4605_daily_bin1660.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6322.38168346
delta logL = 0.867543683223

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6322.14077945
delta logL = 1.10844769617

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18402E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    9.9999       1.0000          .0000       10.000    
     3 'Normalizat'    .63642       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2452       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6322.141     FROM MIGRAD    STATUS=CONVERGED    121 CALLS      551 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18390E-03    .19620E-03    .12163E-04** at limit **
   2  Index        10.0000        1.5143        .38337    ** at limit **
   3  Normalizat    .63658        .25269        .40483E-03    .16513E-03
   4  Prefactor     1.2451        .16135        .19069E-03    .39287E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001839
  Index      = 10
  Normalizat = 0.636582
  Prefactor  = 1.24505
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .18390E-03    .17214E-03    .24325E-05   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        1.0383        .43477        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .63658        .25308        .16193E-04   -1.0645    
   4  Prefactor     1.2451        .16149        .38138E-04   -.84956    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04717e-10
Minuit parameter uncertainties:
  1  0.000172136
  2  9.65873e-05
  3  0.253544
  4  0.161552
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/993181': 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) = 6322.14077697
delta logL = 1.10845016777

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  1.839e-04  1.721e-04  1.000e-04  1.000e+04 ( 1.000e-12)
281        Index:  1.000e+01  9.659e-05  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.245e+00  1.616e-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:  6.366e-01  2.535e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.24
Ra Dec: 321.595 -46.098
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 7.23e-08 +/- 6.56e-08
Energy Flux (Free Index): 8.08e-06 +/- 7.38e-06

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/993181/cmap_HighResolution_669600001_669859201_4FGL_J2126.3-4605_daily_bin1660.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.27e-02', comment='SUCCESS', energy_flux2='8.08e-06', dlogl='1.11e+00', photon_flux2='7.23e-08', job_status='DONE', time_completed='2022-03-25 00:48:46.691691', photon_index_error2='0.00', photon_index2='10.00', ts='0.94', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', photon_flux_upper_limit='1.63e-07', energy_flux_error2='7.38e-06', EG='0.68', time_epoch_completed='1648194526.69', return_code='0', job_id='993181', GAL2='1.25', EG2='0.64', return_code2='0', photon_flux_error2='6.56e-08', ts2='3.24', photon_index='2.55' WHERE bin_id='1660' AND source_name='4FGL J2126.3-4605' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Mar 25 00:48:46 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 993181: <4FGL_J2126.3-4605_daily_bin1660> in cluster <slac> Done

Job <4FGL_J2126.3-4605_daily_bin1660> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Mar 25 00:35:36 2022
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Mar 25 00:35:38 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Mar 25 00:35:38 2022
Terminated at Fri Mar 25 00:48:47 2022
Results reported at Fri Mar 25 00:48:47 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2126.3-4605_daily_bin1660 321.595 -46.0978 669600001 669859201 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 :                                   704.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             325.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            791 sec.

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

