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


Performing analysis on: 4FGL_J2126.3-4605_daily_bin1433
RA = 321.595, Dec = -46.0978
tmin = 610761601, tmax = 611020801
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='488105', job_status='RUN', time_executed='2021-09-26 13:28:04.915393', time_epoch_executed='1632688084.92' WHERE source_name='4FGL J2126.3-4605' and cadence='daily' and bin_id='1433'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/488105

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/488105/ft1_4FGL_J2126.3-4605_daily_bin1433.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/488105/ft2_4FGL_J2126.3-4605_daily_bin1433.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/488105/ft1_4FGL_J2126.3-4605_daily_bin1433.fits outfile=/scratch/kocevski/488105/ft1_filteredMKT_4FGL_J2126.3-4605_daily_bin1433.fits ra=321.595 dec=-46.0978 rad=12.0 tmin=610761601.0 tmax=611020801.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.65
user 3.30
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/488105/ft1_filtered_4FGL_J2126.3-4605_daily_bin1433.fits" evtable="EVENTS" scfile=/scratch/kocevski/488105/ft2_4FGL_J2126.3-4605_daily_bin1433.fits sctable="SC_DATA" outfile=/scratch/kocevski/488105/ltcube_610761601_611020801_4FGL_J2126.3-4605_daily_bin1433.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/488105/ft2_4FGL_J2126.3-4605_daily_bin1433.fits
.....................!
real 14.39
user 13.99
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/488105/ft1_filtered_4FGL_J2126.3-4605_daily_bin1433.fits evtable="EVENTS" scfile=/scratch/kocevski/488105/ft2_4FGL_J2126.3-4605_daily_bin1433.fits sctable="SC_DATA" expcube=/scratch/kocevski/488105/ltcube_610761601_611020801_4FGL_J2126.3-4605_daily_bin1433.fits outfile=/scratch/kocevski/488105/expmap_610761601_611020801_4FGL_J2126.3-4605_daily_bin1433.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/488105/ltcube_610761601_611020801_4FGL_J2126.3-4605_daily_bin1433.fits
.....................!
real 194.86
user 188.17
sys 5.05

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/488105/ft1_filtered_4FGL_J2126.3-4605_daily_bin1433.fits scfile=/scratch/kocevski/488105/ft2_4FGL_J2126.3-4605_daily_bin1433.fits outfile=/scratch/kocevski/488105/cmap_610761601_611020801_4FGL_J2126.3-4605_daily_bin1433.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/488105/ft1_filtered_4FGL_J2126.3-4605_daily_bin1433.fits scfile=/scratch/kocevski/488105/ft2_4FGL_J2126.3-4605_daily_bin1433.fits outfile=/scratch/kocevski/488105/cmap_HighResolution_610761601_611020801_4FGL_J2126.3-4605_daily_bin1433.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/488105/ft1_filtered_4FGL_J2126.3-4605_daily_bin1433.fits evtable="EVENTS" scfile=/scratch/kocevski/488105/ft2_4FGL_J2126.3-4605_daily_bin1433.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/488105/Model_4FGL_J2126.3-4605_daily_bin1433.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/488105/ft1_filtered_4FGL_J2126.3-4605_daily_bin1433.fits.....................!
real 59.29
user 57.83
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8262       1.0000         .10000E-03   10000.    
     2 'norm      '    4.4645       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    34.888       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.8053       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.140       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.8739       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.1346       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7710       1.0000         .10000E-03   10000.    
    14 'norm      '    3.4471       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.5866       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10462E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0499       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1305       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=   7493.660     FROM MIGRAD    STATUS=CONVERGED    568 CALLS     2879 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8262        4.2595        .77136E-05    .35902E-03
   2  norm          4.4643        10.747       -.30652E-06   -.10257E-03
   3  Prefactor     .10000E-03    19.846        .41274E-06** at limit **
   4  Prefactor     34.867        47.568        .17342E-05   -.86264E-04
   5  Prefactor     5.8045        3.4107       -.16129E-06   -.93900E-03
   6  Prefactor     .10001E-03    46.200        .38365E-06** at limit **
   7  norm          10.140        2.9089       -.93707E-07   -.11283E-02
   8  Prefactor     .10000E-03    30.689       -.81229E-06** at limit **
   9  Prefactor     7.8671        60.029        .34896E-06   -.85433E-04
  10  Prefactor     6.1353        9.6625        .37032E-06   -.16647E-03
  11  Prefactor     .10000E-03    19.585        .75388E-06** at limit **
  12  Prefactor     .10000E-03    22.173        .51444E-06** at limit **
  13  Prefactor     2.7711        4.5506        .36413E-06   -.21718E-03
  14  norm          3.4473        3.5528        .42545E-07   -.29914E-03
  15  Prefactor     .10000E-03    3.9686        .16192E-07** at limit **
  16  Prefactor     7.5859        8.8930        .31557E-06   -.75566E-04
  17  Prefactor     .10000E-03    16.705       -.10870E-05** at limit **
  18  Prefactor     .10000E-03    4.2754        .10375E-06** at limit **
  19  Prefactor     .10053E-03    2.2611        .35215E-05** at limit **
  20  Prefactor     .10000E-03    30.665       -.12953E-05** at limit **
  21  norm          .10000E-03    2.4308        .18512E-07** at limit **
  22  Prefactor     .10000E-03    1.7203        .32218E-07** at limit **
  23  Prefactor     .10000E-03    6.8290        .10050E-06** at limit **
  24  Normalizat    1.0498        .20112       -.14536E-05   -.71718E-03
  25  Prefactor     1.1306        .12844       -.75553E-06   -.84976E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.82618
  norm       = 4.46429
  Prefactor  = 0.000100001
  Prefactor  = 34.8672
  Prefactor  = 5.80447
  Prefactor  = 0.000100012
  norm       = 10.1399
  Prefactor  = 0.000100001
  Prefactor  = 7.86714
  Prefactor  = 6.13525
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.77107
  norm       = 3.44732
  Prefactor  = 0.0001
  Prefactor  = 7.58591
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100528
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.0498
  Prefactor  = 1.13056
 **********
 **   18 **HESSE 
 **********

 FCN=   7493.660     FROM HESSE     STATUS=OK           423 CALLS     3302 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8262        4.2942        .13247E-02   -1.5438    
   2  norm          4.4643        10.740        .19057E-03   -1.5285    
   3  Prefactor     .10000E-03    20.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     34.867        47.646        .67846E-04   -1.4526    
   5  Prefactor     5.8045        3.4143        .11806E-03   -1.5226    
   6  Prefactor     .10001E-03    47.323        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.140        2.9094        .74769E-04   -1.5071    
   8  Prefactor     .10000E-03    30.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.8671        60.027        .14290E-03   -1.5147    
  10  Prefactor     6.1353        9.6465        .16209E-03   -1.5213    
  11  Prefactor     .10000E-03    19.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    22.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.7711        4.5345        .22335E-03   -1.5375    
  14  norm          3.4473        3.5460        .16015E-03   -1.5337    
  15  Prefactor     .10000E-03    3.9873        .16836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.5859        8.8892        .14560E-03   -1.5157    
  17  Prefactor     .10000E-03    16.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.3199        .17473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10053E-03    30.182        .21667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    30.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.4350        .13181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.7313        .11085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.9773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0498        .22887        .31685E-03   -.91380    
  25  Prefactor     1.1306        .14711        .19956E-03   -.88496    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7826e-08
Minuit parameter uncertainties:
  1  4.29493
  2  10.7443
  3  0.000301551
  4  47.6982
  5  3.41443
  6  0.00147948
  7  2.90942
  8  0.000393716
  9  43.5229
  10  9.64898
  11  0.00015513
  12  0.000248677
  13  4.53507
  14  3.54623
  15  2.35462e-06
  16  8.89071
  17  0.00014485
  18  1.46196e-05
  19  0.00799026
  20  0.000174895
  21  6.80075e-07
  22  3.55533e-06
  23  1.53581e-05
  24  0.229082
  25  0.147166
Done.

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

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  6.135e+00  9.649e+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.131e+00  1.472e-01  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
547   Normalization:  1.050e+00  2.291e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/488105/likelihoodResults_610761601_611020801_4FGL_J2126.3-4605_daily_bin1433.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) = 7493.63890163
delta logL = 0.0213094460623

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7493.63605819
delta logL = 0.0241528898277

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4760       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7936       1.0000          .0000       10.000    
     3 'Normalizat'    1.0422       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1338       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=   7493.636     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      259 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4729        10.638        .85853E-03   -.18486E-04
   2  Index         2.7950        1.2901        .13590E-01    .21125E-03
   3  Normalizat    1.0424        .22694        .31782E-03    .23680E-04
   4  Prefactor     1.1337        .14607        .19931E-03    .11636E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.47286
  Index      = 2.79505
  Normalizat = 1.04239
  Prefactor  = 1.13368
 **********
 **   18 **HESSE 
 **********

 FCN=   7493.636     FROM HESSE     STATUS=OK            27 CALLS      286 TOTAL
                     EDM=   .60E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4729        9.7023        .34341E-04   -1.5240    
   2  Index         2.7950        1.1788        .27179E-02   -.45670    
   3  Normalizat    1.0424        .22714        .12713E-04   -.91623    
   4  Prefactor     1.1337        .14600        .79726E-05   -.88397    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.95858e-12
Minuit parameter uncertainties:
  1  9.70507
  2  1.19284
  3  0.227354
  4  0.14605
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/488105': 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) = 7493.63605648
delta logL = 0.0241545999052

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  5.473e+00  9.705e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        Index:  2.795e+00  1.193e+00  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.134e+00  1.461e-01  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
547   Normalization:  1.042e+00  2.274e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.47
Ra Dec: 321.595 -46.098

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/488105/cmap_HighResolution_610761601_611020801_4FGL_J2126.3-4605_daily_bin1433.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', job_status='DONE', photon_flux_upper_limit='1.41e-07', time_completed='2021-09-26 13:40:55.879822', job_id='488105', GAL2='1.13', fit_tolerance='1e-08', EG2='1.04', EG='1.05', time_epoch_completed='1632688855.88', return_code2='0', ts='0.47', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='2.42e-02', ts2='0.52', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='1433' AND source_name='4FGL J2126.3-4605' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:40:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0134>
Subject: Job 488105: <4FGL_J2126.3-4605_daily_bin1433> in cluster <slac> Done

Job <4FGL_J2126.3-4605_daily_bin1433> 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) <bullet0134>, 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:40:56 2021
Results reported at Sun Sep 26 13:40:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2126.3-4605_daily_bin1433 321.595 -46.0978 610761601 611020801 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 :                                   768.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            891 sec.

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

