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


Performing analysis on: 4FGL_J2126.3-4605_daily_bin1107
RA = 321.595, Dec = -46.0978
tmin = 526262401, tmax = 526521601
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='487620', job_status='RUN', time_executed='2021-09-26 13:26:31.622547', time_epoch_executed='1632687991.62' WHERE source_name='4FGL J2126.3-4605' and cadence='daily' and bin_id='1107'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/487620

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/487620/ft1_4FGL_J2126.3-4605_daily_bin1107.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/487620/ft2_4FGL_J2126.3-4605_daily_bin1107.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/487620/ft1_4FGL_J2126.3-4605_daily_bin1107.fits outfile=/scratch/kocevski/487620/ft1_filteredMKT_4FGL_J2126.3-4605_daily_bin1107.fits ra=321.595 dec=-46.0978 rad=12.0 tmin=526262401.0 tmax=526521601.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.13
user 3.86
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/487620/ft1_filtered_4FGL_J2126.3-4605_daily_bin1107.fits" evtable="EVENTS" scfile=/scratch/kocevski/487620/ft2_4FGL_J2126.3-4605_daily_bin1107.fits sctable="SC_DATA" outfile=/scratch/kocevski/487620/ltcube_526262401_526521601_4FGL_J2126.3-4605_daily_bin1107.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/487620/ft2_4FGL_J2126.3-4605_daily_bin1107.fits
.....................!
real 18.77
user 18.22
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/487620/ft1_filtered_4FGL_J2126.3-4605_daily_bin1107.fits evtable="EVENTS" scfile=/scratch/kocevski/487620/ft2_4FGL_J2126.3-4605_daily_bin1107.fits sctable="SC_DATA" expcube=/scratch/kocevski/487620/ltcube_526262401_526521601_4FGL_J2126.3-4605_daily_bin1107.fits outfile=/scratch/kocevski/487620/expmap_526262401_526521601_4FGL_J2126.3-4605_daily_bin1107.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/487620/ltcube_526262401_526521601_4FGL_J2126.3-4605_daily_bin1107.fits
.....................!
real 191.01
user 185.77
sys 4.60

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/487620/ft1_filtered_4FGL_J2126.3-4605_daily_bin1107.fits scfile=/scratch/kocevski/487620/ft2_4FGL_J2126.3-4605_daily_bin1107.fits outfile=/scratch/kocevski/487620/cmap_526262401_526521601_4FGL_J2126.3-4605_daily_bin1107.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=321.595 yref=-46.0978 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/487620/ft1_filtered_4FGL_J2126.3-4605_daily_bin1107.fits scfile=/scratch/kocevski/487620/ft2_4FGL_J2126.3-4605_daily_bin1107.fits outfile=/scratch/kocevski/487620/cmap_HighResolution_526262401_526521601_4FGL_J2126.3-4605_daily_bin1107.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/487620/ft1_filtered_4FGL_J2126.3-4605_daily_bin1107.fits evtable="EVENTS" scfile=/scratch/kocevski/487620/ft2_4FGL_J2126.3-4605_daily_bin1107.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/487620/Model_4FGL_J2126.3-4605_daily_bin1107.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/487620/ft1_filtered_4FGL_J2126.3-4605_daily_bin1107.fits.....................!
real 61.99
user 60.71
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10723E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.1546       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10481E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.3834       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .34811E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.500       1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.941       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .24983       1.0000         .10000E-03   10000.    
    14 'norm      '    12.138       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.6477       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.1546       1.0000         .10000E-03   10000.    
    17 'Prefactor '    43.274       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.4056       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.0207       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.5023       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .67131       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1893       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8461.509     FROM MIGRAD    STATUS=CONVERGED   1037 CALLS     3400 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.7093        .25263E-02** at limit **
   2  norm          6.1550        8.0669        .16183E-03   -.35126E-05
   3  Prefactor     .10000E-03    9.2305        .18142E-02** at limit **
   4  Prefactor     .10000E-03    18.644        .18142E-02** at limit **
   5  Prefactor     .10000E-03    1.1411        .18917E-03** at limit **
   6  Prefactor     .10000E-03    28.143        .18142E-02** at limit **
   7  norm          5.3841        1.8360        .69388E-04    .16319E-03
   8  Prefactor     .10000E-03    142.43        .67950E-02** at limit **
   9  Prefactor     .10000E-03    19.275        .18142E-02** at limit **
  10  Prefactor     10.502        6.7800        .61824E-03    .92717E-04
  11  Prefactor     24.942        24.853        .80211E-04    .56694E-06
  12  Prefactor     .10000E-03    15.974        .18142E-02** at limit **
  13  Prefactor     .24847        13.941        .23209E-02    .18598E-02
  14  norm          12.138        5.0082        .11498E-03    .11865E-05
  15  Prefactor     3.6481        5.2373        .21151E-03    .23650E-05
  16  Prefactor     6.1548        6.1988        .80912E-03    .13601E-03
  17  Prefactor     43.276        37.297        .60942E-04   -.39548E-04
  18  Prefactor     8.4116        9.0068        .69136E-03   -.10307E-03
  19  Prefactor     3.0219        3.7548        .18721E-03   -.33643E-04
  20  Prefactor     .10000E-03    71.936        .18142E-02** at limit **
  21  norm          .10000E-03    7.3149        .36285E-02** at limit **
  22  Prefactor     .10000E-03    .88774        .84544E-03** at limit **
  23  Prefactor     4.5039        6.6130        .18975E-03   -.32114E-04
  24  Normalizat    .67119        .22154        .35535E-03    .78128E-04
  25  Prefactor     1.1892        .13459        .17938E-03    .29491E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 6.15496
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.38411
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.5015
  Prefactor  = 24.9421
  Prefactor  = 0.0001
  Prefactor  = 0.248472
  norm       = 12.1385
  Prefactor  = 3.64812
  Prefactor  = 6.15483
  Prefactor  = 43.2765
  Prefactor  = 8.41157
  Prefactor  = 3.02186
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.50394
  Normalizat = 0.671186
  Prefactor  = 1.18922
 **********
 **   18 **HESSE 
 **********

 FCN=   8461.509     FROM HESSE     STATUS=OK           403 CALLS     3803 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.7398        .50526E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.1550        8.0666        .64730E-05   -1.5212    
   3  Prefactor     .10000E-03    9.2321        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    18.644        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.1411        .37833E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    28.161        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.3841        1.8359        .27755E-05   -1.5244    
   8  Prefactor     .10000E-03    148.06        .27180E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    19.276        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.502        6.7767        .24729E-04   -1.5060    
  11  Prefactor     24.942        24.845        .32084E-05   -1.4709    
  12  Prefactor     .10000E-03    15.976        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .24847        13.910        .46418E-03   -1.5608    
  14  norm          12.138        5.0081        .45992E-05   -1.5011    
  15  Prefactor     3.6481        5.2361        .84605E-05   -1.5326    
  16  Prefactor     6.1548        6.1973        .32365E-04   -1.5212    
  17  Prefactor     43.276        37.285        .24377E-05   -1.4391    
  18  Prefactor     8.4116        9.0004        .27654E-04   -1.5128    
  19  Prefactor     3.0219        3.7541        .74883E-05   -1.5360    
  20  Prefactor     .10000E-03    71.937        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    7.3725        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    .88775        .16909E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.5039        6.6120        .75899E-05   -1.5283    
  24  Normalizat    .67119        .22121        .14214E-04   -1.0504    
  25  Prefactor     1.1892        .13462        .35876E-04   -.86664    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13311e-10
Minuit parameter uncertainties:
  1  2.55988e-05
  2  8.06799
  3  2.43493e-06
  4  7.01601e-07
  5  7.13332e-07
  6  7.48452e-05
  7  1.83588
  8  6.46395e-05
  9  1.41381e-06
  10  6.77721
  11  24.8555
  12  4.9203e-06
  13  3.71842
  14  5.00824
  15  5.23676
  16  6.1979
  17  37.3046
  18  9.00189
  19  3.75443
  20  3.03941e-05
  21  5.05731e-07
  22  2.80181e-07
  23  6.61304
  24  0.221507
  25  0.134654
Done.

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

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  1.050e+01  6.777e+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.189e+00  1.347e-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.712e-01  2.215e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.03
Ra Dec: 321.595 -46.098
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 5.69e-08 +/- 3.67e-08
Energy Flux (Fixed Index): 1.56e-05 +/- 1.01e-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) = 8461.49838288
delta logL = 0.010178599272

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8461.49564262
delta logL = 0.0129188598785

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8461.496     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      237 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.000        7.6753        .12080E-03    .11493E-02
   2  Index         2.4583        .59451        .85887E-02    .24050E-03
   3  Normalizat    .67585        .20238        .35422E-03   -.15117E-03
   4  Prefactor     1.1872        .13193        .17951E-03   -.34366E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.9995
  Index      = 2.45826
  Normalizat = 0.675848
  Prefactor  = 1.18715
 **********
 **   18 **HESSE 
 **********

 FCN=   8461.496     FROM HESSE     STATUS=OK            23 CALLS      260 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.000        7.5509        .48319E-05   -1.5045    
   2  Index         2.4583        .58458        .34355E-03   -.53327    
   3  Normalizat    .67585        .20244        .14169E-04   -1.0485    
   4  Prefactor     1.1872        .13196        .35903E-04   -.86728    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25385e-09
Minuit parameter uncertainties:
  1  7.55154
  2  0.586394
  3  0.202668
  4  0.131999
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/487620': 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) = 8461.49564262
delta logL = 0.0129188653118

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  1.100e+01  7.552e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        Index:  2.458e+00  5.864e-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.187e+00  1.320e-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.758e-01  2.027e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.05
Ra Dec: 321.595 -46.098
Photon Index (Free Index): 2.46 +/- 0.59
Photon Flux (Free Index): 5.37e-08 +/- 4.02e-08
Energy Flux (Free Index): 1.64e-05 +/- 1.18e-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/487620/cmap_HighResolution_526262401_526521601_4FGL_J2126.3-4605_daily_bin1107.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.69e-08', energy_flux2='1.64e-05', photon_flux_error='3.67e-08', dlogl='1.29e-02', energy_flux='1.56e-05', photon_flux2='5.37e-08', job_status='DONE', time_completed='2021-09-26 13:39:43.005125', photon_index_error2='0.59', photon_index2='2.46', ts='4.03', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', energy_flux_error2='1.18e-05', EG='0.67', time_epoch_completed='1632688783.01', return_code='0', job_id='487620', GAL2='1.19', EG2='0.68', return_code2='0', energy_flux_error='1.01e-05', photon_flux_error2='4.02e-08', ts2='4.05', photon_index='2.55' WHERE bin_id='1107' AND source_name='4FGL J2126.3-4605' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:39:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 487620: <4FGL_J2126.3-4605_daily_bin1107> in cluster <slac> Done

Job <4FGL_J2126.3-4605_daily_bin1107> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 26 13:25:23 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 13:26:05 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:26:05 2021
Terminated at Sun Sep 26 13:39:43 2021
Results reported at Sun Sep 26 13:39:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2126.3-4605_daily_bin1107 321.595 -46.0978 526262401 526521601 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 :                                   788.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             330.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            860 sec.

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

