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


Performing analysis on: 4FGL_J2126.3-4605_daily_bin1436
RA = 321.595, Dec = -46.0978
tmin = 611539201, tmax = 611798401
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='488109', job_status='RUN', time_executed='2021-09-26 13:28:26.688451', time_epoch_executed='1632688106.69' WHERE source_name='4FGL J2126.3-4605' and cadence='daily' and bin_id='1436'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/488109

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/488109/ft1_4FGL_J2126.3-4605_daily_bin1436.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/488109/ft2_4FGL_J2126.3-4605_daily_bin1436.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/488109/ft1_4FGL_J2126.3-4605_daily_bin1436.fits outfile=/scratch/kocevski/488109/ft1_filteredMKT_4FGL_J2126.3-4605_daily_bin1436.fits ra=321.595 dec=-46.0978 rad=12.0 tmin=611539201.0 tmax=611798401.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.52
user 3.29
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/488109/ft1_filtered_4FGL_J2126.3-4605_daily_bin1436.fits" evtable="EVENTS" scfile=/scratch/kocevski/488109/ft2_4FGL_J2126.3-4605_daily_bin1436.fits sctable="SC_DATA" outfile=/scratch/kocevski/488109/ltcube_611539201_611798401_4FGL_J2126.3-4605_daily_bin1436.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/488109/ft2_4FGL_J2126.3-4605_daily_bin1436.fits
.....................!
real 17.22
user 16.77
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/488109/ft1_filtered_4FGL_J2126.3-4605_daily_bin1436.fits evtable="EVENTS" scfile=/scratch/kocevski/488109/ft2_4FGL_J2126.3-4605_daily_bin1436.fits sctable="SC_DATA" expcube=/scratch/kocevski/488109/ltcube_611539201_611798401_4FGL_J2126.3-4605_daily_bin1436.fits outfile=/scratch/kocevski/488109/expmap_611539201_611798401_4FGL_J2126.3-4605_daily_bin1436.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/488109/ltcube_611539201_611798401_4FGL_J2126.3-4605_daily_bin1436.fits
.....................!
real 191.22
user 185.43
sys 5.27

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/488109/ft1_filtered_4FGL_J2126.3-4605_daily_bin1436.fits scfile=/scratch/kocevski/488109/ft2_4FGL_J2126.3-4605_daily_bin1436.fits outfile=/scratch/kocevski/488109/cmap_611539201_611798401_4FGL_J2126.3-4605_daily_bin1436.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/488109/ft1_filtered_4FGL_J2126.3-4605_daily_bin1436.fits scfile=/scratch/kocevski/488109/ft2_4FGL_J2126.3-4605_daily_bin1436.fits outfile=/scratch/kocevski/488109/cmap_HighResolution_611539201_611798401_4FGL_J2126.3-4605_daily_bin1436.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=321.595 yref=-46.0978 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/488109/ft1_filtered_4FGL_J2126.3-4605_daily_bin1436.fits evtable="EVENTS" scfile=/scratch/kocevski/488109/ft2_4FGL_J2126.3-4605_daily_bin1436.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/488109/Model_4FGL_J2126.3-4605_daily_bin1436.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/488109/ft1_filtered_4FGL_J2126.3-4605_daily_bin1436.fits.....................!
real 68.19
user 66.73
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .88812       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13324E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.660       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.683       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    12.916       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10343E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.674       1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.392       1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.998       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.5587       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.3358       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.5730       1.0000         .10000E-03   10000.    
    17 'Prefactor '    38.091       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.6527       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.5158       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.0766       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .81854       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1555       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=   9236.236     FROM MIGRAD    STATUS=CONVERGED    597 CALLS     2968 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .88900        2.1632        .15135E-06   -.44943E-03
   2  norm          .10000E-03    5.2402       -.12765E-06** at limit **
   3  Prefactor     .10007E-03    9.9369       -.21622E-05** at limit **
   4  Prefactor     19.677        51.068        .15979E-04    .18577E-03
   5  Prefactor     12.682        3.9117       -.13182E-06   -.19494E-03
   6  Prefactor     .10000E-03    28.537       -.31162E-06** at limit **
   7  norm          12.916        2.6583       -.60844E-07    .36203E-04
   8  Prefactor     .10000E-03    105.87       -.24679E-05** at limit **
   9  Prefactor     .10000E-03    14.432        .77110E-07** at limit **
  10  Prefactor     17.674        8.5253        .15213E-06    .27004E-04
  11  Prefactor     29.392        24.241        .47637E-07   -.11705E-04
  12  Prefactor     25.998        20.975        .18669E-06    .53515E-05
  13  Prefactor     .10000E-03    2.2943        .72269E-07** at limit **
  14  norm          8.5587        3.9464       -.29172E-06   -.23227E-03
  15  Prefactor     2.3377        8.0916        .12334E-05   -.69021E-04
  16  Prefactor     3.5713        5.2339       -.29926E-05   -.61785E-03
  17  Prefactor     38.090        31.835       -.78329E-07   -.81646E-05
  18  Prefactor     7.6529        7.7515       -.33068E-06   -.11023E-03
  19  Prefactor     2.5164        3.5269       -.18991E-06   -.34865E-03
  20  Prefactor     .10000E-03    49.144        .24870E-05** at limit **
  21  norm          .10000E-03    6.0897        .25809E-06** at limit **
  22  Prefactor     .10000E-03    2.1982       -.84982E-07** at limit **
  23  Prefactor     3.0758        3.3603        .14452E-05   -.28483E-02
  24  Normalizat    .81855        .19292        .20644E-06    .70612E-04
  25  Prefactor     1.1554        .11622       -.32619E-06    .27847E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.889004
  norm       = 0.0001
  Prefactor  = 0.000100066
  Prefactor  = 19.6769
  Prefactor  = 12.6822
  Prefactor  = 0.0001
  norm       = 12.9157
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.6743
  Prefactor  = 29.3922
  Prefactor  = 25.9976
  Prefactor  = 0.0001
  norm       = 8.5587
  Prefactor  = 2.33769
  Prefactor  = 3.57129
  Prefactor  = 38.0903
  Prefactor  = 7.65294
  Prefactor  = 2.51641
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.07577
  Normalizat = 0.818551
  Prefactor  = 1.15544
 **********
 **   18 **HESSE 
 **********

 FCN=   9236.236     FROM HESSE     STATUS=OK           433 CALLS     3401 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .88900        2.1722        .21432E-03   -1.5519    
   2  norm          .10000E-03    5.2435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10007E-03    56.921        .57861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.677        51.501        .90331E-04   -1.4821    
   5  Prefactor     12.682        3.9124        .10142E-03   -1.4996    
   6  Prefactor     .10000E-03    29.282        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          12.916        2.6587        .67343E-04   -1.4989    
   8  Prefactor     .10000E-03    109.71        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.674        8.5277        .95268E-04   -1.4867    
  11  Prefactor     29.392        24.236        .73900E-04   -1.4623    
  12  Prefactor     25.998        20.972        .78566E-04   -1.4688    
  13  Prefactor     .10000E-03    2.3409        .14204E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.5587        3.9461        .12347E-03   -1.5123    
  15  Prefactor     2.3377        8.0398        .26829E-03   -1.5402    
  16  Prefactor     3.5713        5.2430        .21380E-03   -1.5330    
  17  Prefactor     38.090        31.854        .64941E-04   -1.4473    
  18  Prefactor     7.6529        7.7516        .14496E-03   -1.5155    
  19  Prefactor     2.5164        3.5179        .20315E-03   -1.5391    
  20  Prefactor     .10000E-03    49.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    6.2015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.7903        .27308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.0758        5.7869        .11562E-02   -1.5357    
  24  Normalizat    .81855        .21428        .35088E-03   -.99384    
  25  Prefactor     1.1554        .12996        .19758E-03   -.87714    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08175e-08
Minuit parameter uncertainties:
  1  2.17239
  2  3.43835e-06
  3  0.0038933
  4  51.6176
  5  3.91245
  6  2.81094e-06
  7  2.65873
  8  0.000238648
  9  4.80579e-06
  10  8.52824
  11  24.2442
  12  20.9775
  13  1.46488e-06
  14  3.94627
  15  8.04349
  16  5.24371
  17  31.8686
  18  7.75266
  19  3.51815
  20  0.000243434
  21  9.18311e-06
  22  6.06611e-06
  23  5.78793
  24  0.214501
  25  0.129998
Done.

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

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  1.767e+01  8.528e+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.155e+00  1.300e-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:  8.186e-01  2.145e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.80
Ra Dec: 321.595 -46.098
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 9.57e-08 +/- 4.61e-08
Energy Flux (Fixed Index): 2.62e-05 +/- 1.27e-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) = 9235.72781294
delta logL = 0.508610042536

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9235.71522708
delta logL = 0.52119590831

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.757       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1312       1.0000          .0000       10.000    
     3 'Normalizat'    .78137       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1713       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=   9235.715     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      244 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.757        74.466        .29208E-02    .50227E-03
   2  Index         3.1312        3.1798        .15647        .15147E-03
   3  Normalizat    .78137        .78846E-01    .80866E-01    .38246E-04
   4  Prefactor     1.1713        .47297E-01    .35348E-01   -.17042E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.7571
  Index      = 3.1312
  Normalizat = 0.781366
  Prefactor  = 1.17127
 **********
 **   18 **HESSE 
 **********

 FCN=   9235.715     FROM HESSE     STATUS=OK            33 CALLS      277 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.757        10.533        .11683E-03   -1.5022    
   2  Index         3.1312        .73207        .59049E-02   -.38306    
   3  Normalizat    .78137        .19751        .35803E-03   -1.0076    
   4  Prefactor     1.1713        .12822        .19639E-03   -.87220    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.76221e-09
Minuit parameter uncertainties:
  1  10.5342
  2  0.735141
  3  0.197694
  4  0.128257
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/488109': 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) = 9235.71522708
delta logL = 0.521195908688

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  1.176e+01  1.053e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        Index:  3.131e+00  7.351e-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.171e+00  1.283e-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:  7.814e-01  1.977e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.98
Ra Dec: 321.595 -46.098
Photon Index (Free Index): 3.13 +/- 0.74
Photon Flux (Free Index): 1.26e-07 +/- 5.84e-08
Energy Flux (Free Index): 2.38e-05 +/- 1.10e-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/488109/cmap_HighResolution_611539201_611798401_4FGL_J2126.3-4605_daily_bin1436.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.57e-08', energy_flux2='2.38e-05', photon_flux_error='4.61e-08', dlogl='5.21e-01', energy_flux='2.62e-05', photon_flux2='1.26e-07', job_status='DONE', time_completed='2021-09-26 13:41:36.227572', photon_index_error2='0.74', photon_index2='3.13', ts='6.80', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='1.10e-05', EG='0.82', time_epoch_completed='1632688896.23', return_code='0', job_id='488109', GAL2='1.17', EG2='0.78', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='5.84e-08', ts2='7.98', photon_index='2.55' WHERE bin_id='1436' AND source_name='4FGL J2126.3-4605' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:41:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 488109: <4FGL_J2126.3-4605_daily_bin1436> in cluster <slac> Done

Job <4FGL_J2126.3-4605_daily_bin1436> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 26 13:26:05 2021
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 13:27:50 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:27:50 2021
Terminated at Sun Sep 26 13:41:37 2021
Results reported at Sun Sep 26 13:41:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2126.3-4605_daily_bin1436 321.595 -46.0978 611539201 611798401 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 :                                   786.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             355.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   826 sec.
    Turnaround time :                            932 sec.

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

