/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 65 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 = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2126.3-4605_daily_bin1606
RA = 321.595, Dec = -46.0978
tmin = 655603201, tmax = 655862401
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='469748', job_status='RUN', time_executed='2021-12-08 07:36:46.028837', time_epoch_executed='1638977806.03' WHERE source_name='4FGL J2126.3-4605' and cadence='daily' and bin_id='1606'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/469748

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/469748/ft1_4FGL_J2126.3-4605_daily_bin1606.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/469748/ft2_4FGL_J2126.3-4605_daily_bin1606.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/469748/ft1_4FGL_J2126.3-4605_daily_bin1606.fits outfile=/scratch/kocevski/469748/ft1_filteredMKT_4FGL_J2126.3-4605_daily_bin1606.fits ra=321.595 dec=-46.0978 rad=12.0 tmin=655603201.0 tmax=655862401.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.25
user 3.99
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/469748/ft1_filtered_4FGL_J2126.3-4605_daily_bin1606.fits" evtable="EVENTS" scfile=/scratch/kocevski/469748/ft2_4FGL_J2126.3-4605_daily_bin1606.fits sctable="SC_DATA" outfile=/scratch/kocevski/469748/ltcube_655603201_655862401_4FGL_J2126.3-4605_daily_bin1606.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/469748/ft2_4FGL_J2126.3-4605_daily_bin1606.fits
.....................!
real 13.21
user 12.82
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/469748/ft1_filtered_4FGL_J2126.3-4605_daily_bin1606.fits evtable="EVENTS" scfile=/scratch/kocevski/469748/ft2_4FGL_J2126.3-4605_daily_bin1606.fits sctable="SC_DATA" expcube=/scratch/kocevski/469748/ltcube_655603201_655862401_4FGL_J2126.3-4605_daily_bin1606.fits outfile=/scratch/kocevski/469748/expmap_655603201_655862401_4FGL_J2126.3-4605_daily_bin1606.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/469748/ltcube_655603201_655862401_4FGL_J2126.3-4605_daily_bin1606.fits
.....................!
real 191.40
user 185.77
sys 5.13

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 167 point sources and 0 extended sources

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

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/469748/ft1_filtered_4FGL_J2126.3-4605_daily_bin1606.fits scfile=/scratch/kocevski/469748/ft2_4FGL_J2126.3-4605_daily_bin1606.fits outfile=/scratch/kocevski/469748/cmap_655603201_655862401_4FGL_J2126.3-4605_daily_bin1606.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.36
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.5702       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.4817       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.8394       1.0000         .10000E-03   10000.    
     7 'norm      '    3.5359       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10624E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.555       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.624       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.5270       1.0000         .10000E-03   10000.    
    14 'norm      '    .11286E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12514E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11658E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.6419       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13930E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.9573       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.6849       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .97338       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1398       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=   6305.135     FROM MIGRAD    STATUS=CONVERGED    592 CALLS     2526 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.2288       -.54177E-07** at limit **
   2  norm          5.5715        14.703        .16284E-05    .11962E-03
   3  Prefactor     .10000E-03    21.628       -.23420E-05** at limit **
   4  Prefactor     .10000E-03    29.219        .16462E-05** at limit **
   5  Prefactor     1.4813        1.6993       -.42759E-08    .32142E-06
   6  Prefactor     7.8427        14.679        .10661E-05    .96482E-04
   7  norm          3.5352        2.0461        .31440E-07    .52809E-04
   8  Prefactor     .10000E-03    56.653       -.69197E-06** at limit **
   9  Prefactor     .10000E-03    12.808       -.69817E-07** at limit **
  10  Prefactor     11.559        8.9866       -.12609E-07    .28491E-04
  11  Prefactor     10.648        27.639       -.10871E-05    .13625E-04
  12  Prefactor     .10000E-03    20.270       -.62228E-06** at limit **
  13  Prefactor     4.5248        4.2018        .76588E-06    .48107E-03
  14  norm          .10000E-03    6.0279        .36383E-06** at limit **
  15  Prefactor     .10015E-03    11.013       -.26261E-05** at limit **
  16  Prefactor     .10000E-03    5.8657       -.41076E-07** at limit **
  17  Prefactor     .10000E-03    70.600       -.37445E-05** at limit **
  18  Prefactor     .10000E-03    18.697        .14309E-05** at limit **
  19  Prefactor     2.6409        3.0927        .86990E-06    .57224E-03
  20  Prefactor     .10000E-03    102.00        .42610E-05** at limit **
  21  norm          .10000E-03    2.8705        .34778E-08** at limit **
  22  Prefactor     5.9553        5.7331       -.20719E-06   -.11548E-04
  23  Prefactor     4.6849        5.3079        .30054E-07   -.20348E-04
  24  Normalizat    .97370        .22386       -.10393E-05    .10439E-03
  25  Prefactor     1.1398        .13721        .15126E-06    .15723E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 5.57148
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.48127
  Prefactor  = 7.84269
  norm       = 3.53525
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.5592
  Prefactor  = 10.6479
  Prefactor  = 0.0001
  Prefactor  = 4.5248
  norm       = 0.0001
  Prefactor  = 0.00010015
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.64088
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.95527
  Prefactor  = 4.68492
  Normalizat = 0.973697
  Prefactor  = 1.13976
 **********
 **   18 **HESSE 
 **********

 FCN=   6305.135     FROM HESSE     STATUS=OK           427 CALLS     2953 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.2020        .23046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.5715        14.780        .85112E-03   -1.5236    
   3  Prefactor     .10000E-03    21.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    29.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.4813        1.6916        .10769E-03   -1.5465    
   6  Prefactor     7.8427        14.695        .71606E-03   -1.5148    
   7  norm          3.5352        2.0409        .82824E-04   -1.5332    
   8  Prefactor     .10000E-03    57.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.559        8.9849        .11785E-03   -1.5028    
  11  Prefactor     10.648        27.562        .12292E-03   -1.5055    
  12  Prefactor     .10000E-03    20.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.5248        4.2228        .75714E-03   -1.5283    
  14  norm          .10000E-03    6.2194        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10015E-03    43.647        .40532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.9095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    71.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    19.274        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.6409        3.1194        .73978E-03   -1.5383    
  20  Prefactor     .10000E-03    102.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.8740        .13139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.9553        5.7452        .16452E-03   -1.5220    
  23  Prefactor     4.6849        5.3092        .18592E-03   -1.5275    
  24  Normalizat    .97370        .25245        .32504E-03   -.93917    
  25  Prefactor     1.1398        .15811        .19323E-03   -.88206    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.6797e-09
Minuit parameter uncertainties:
  1  1.06016e-05
  2  14.7893
  3  5.20713e-05
  4  4.43031e-05
  5  1.69161
  6  14.7016
  7  2.04096
  8  1.64992e-05
  9  1.96352e-06
  10  8.98599
  11  27.5954
  12  1.83907e-05
  13  4.22309
  14  4.94231e-05
  15  0.00511958
  16  1.41153e-05
  17  0.00016849
  18  6.16395e-05
  19  3.11964
  20  0.000129577
  21  5.09061e-07
  22  5.74576
  23  5.30973
  24  0.252756
  25  0.15818
Done.

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

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  1.156e+01  8.986e+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.140e+00  1.582e-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:  9.737e-01  2.528e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.92
Ra Dec: 321.595 -46.098
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 6.26e-08 +/- 4.86e-08
Energy Flux (Fixed Index): 1.72e-05 +/- 1.33e-05

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

Saving results to:
/scratch/kocevski/469748/likelihoodResults_655603201_655862401_4FGL_J2126.3-4605_daily_bin1606.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) = 6304.93591924
delta logL = 0.198600803234

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6304.92791205
delta logL = 0.20660799407

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.523       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1399       1.0000          .0000       10.000    
     3 'Normalizat'    .99508       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1312       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=   6304.928     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      207 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.523        26.136        .28299E-02    .87473E-03
   2  Index         2.1399        1.2618        .25041       -.20367E-04
   3  Normalizat    .99509        .21926        .72760E-01    .17177E-04
   4  Prefactor     1.1312        .13925        .36504E-01    .13138E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.5227
  Index      = 2.13988
  Normalizat = 0.995086
  Prefactor  = 1.13125
 **********
 **   18 **HESSE 
 **********

 FCN=   6304.928     FROM HESSE     STATUS=OK            29 CALLS      236 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.523        9.8053        .11320E-03   -1.5000    
   2  Index         2.1399        .60483        .88182E-02   -.60897    
   3  Normalizat    .99509        .24539        .32193E-03   -.93195    
   4  Prefactor     1.1312        .15615        .19383E-03   -.88474    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.21762e-10
Minuit parameter uncertainties:
  1  9.8066
  2  0.607043
  3  0.245665
  4  0.156215
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/469748': 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) = 6304.92791204
delta logL = 0.206608005251

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  1.252e+01  9.807e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        Index:  2.140e+00  6.070e-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.131e+00  1.562e-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:  9.951e-01  2.457e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.33
Ra Dec: 321.595 -46.098
Photon Index (Free Index): 2.14 +/- 0.61
Photon Flux (Free Index): 4.50e-08 +/- 4.50e-08
Energy Flux (Free Index): 2.27e-05 +/- 2.23e-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/469748/cmap_HighResolution_655603201_655862401_4FGL_J2126.3-4605_daily_bin1606.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.32e-02', comment='SUCCESS', photon_flux='6.26e-08', energy_flux2='2.27e-05', photon_flux_error='4.86e-08', dlogl='2.07e-01', energy_flux='1.72e-05', photon_flux2='4.50e-08', job_status='DONE', time_completed='2021-12-08 07:47:42.023170', photon_index_error2='0.61', photon_index2='2.14', ts='2.92', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='1.69e-07', energy_flux_error2='2.23e-05', EG='0.97', time_epoch_completed='1638978462.02', return_code='0', job_id='469748', GAL2='1.13', EG2='1.00', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='4.50e-08', ts2='3.33', photon_index='2.55' WHERE bin_id='1606' AND source_name='4FGL J2126.3-4605' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 07:47:42 PST 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 469748: <4FGL_J2126.3-4605_daily_bin1606> in cluster <slac> Done

Job <4FGL_J2126.3-4605_daily_bin1606> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Dec  8 07:35:28 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 07:35:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 07:35:35 2021
Terminated at Wed Dec  8 07:47:42 2021
Results reported at Wed Dec  8 07:47:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2126.3-4605_daily_bin1606 321.595 -46.0978 655603201 655862401 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 :                                   654.25 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             306.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   729 sec.
    Turnaround time :                            734 sec.

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

