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


Performing analysis on: 4FGL_J2126.3-4605_daily_bin1040
RA = 321.595, Dec = -46.0978
tmin = 508896001, tmax = 509155201
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='487523', job_status='RUN', time_executed='2021-09-26 13:27:49.730136', time_epoch_executed='1632688069.73' WHERE source_name='4FGL J2126.3-4605' and cadence='daily' and bin_id='1040'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/487523

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/487523/ft1_4FGL_J2126.3-4605_daily_bin1040.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/487523/ft2_4FGL_J2126.3-4605_daily_bin1040.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/487523/ft1_4FGL_J2126.3-4605_daily_bin1040.fits outfile=/scratch/kocevski/487523/ft1_filteredMKT_4FGL_J2126.3-4605_daily_bin1040.fits ra=321.595 dec=-46.0978 rad=12.0 tmin=508896001.0 tmax=509155201.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.79
user 3.48
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/487523/ft1_filtered_4FGL_J2126.3-4605_daily_bin1040.fits" evtable="EVENTS" scfile=/scratch/kocevski/487523/ft2_4FGL_J2126.3-4605_daily_bin1040.fits sctable="SC_DATA" outfile=/scratch/kocevski/487523/ltcube_508896001_509155201_4FGL_J2126.3-4605_daily_bin1040.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/487523/ft2_4FGL_J2126.3-4605_daily_bin1040.fits
.....................!
real 13.68
user 13.27
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/487523/ft1_filtered_4FGL_J2126.3-4605_daily_bin1040.fits evtable="EVENTS" scfile=/scratch/kocevski/487523/ft2_4FGL_J2126.3-4605_daily_bin1040.fits sctable="SC_DATA" expcube=/scratch/kocevski/487523/ltcube_508896001_509155201_4FGL_J2126.3-4605_daily_bin1040.fits outfile=/scratch/kocevski/487523/expmap_508896001_509155201_4FGL_J2126.3-4605_daily_bin1040.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/487523/ltcube_508896001_509155201_4FGL_J2126.3-4605_daily_bin1040.fits
.....................!
real 191.41
user 186.01
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/487523/ft1_filtered_4FGL_J2126.3-4605_daily_bin1040.fits scfile=/scratch/kocevski/487523/ft2_4FGL_J2126.3-4605_daily_bin1040.fits outfile=/scratch/kocevski/487523/cmap_508896001_509155201_4FGL_J2126.3-4605_daily_bin1040.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.60
user 0.39
sys 0.16

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

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

This is gtbin version HEAD
real 0.57
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/487523/ft1_filtered_4FGL_J2126.3-4605_daily_bin1040.fits evtable="EVENTS" scfile=/scratch/kocevski/487523/ft2_4FGL_J2126.3-4605_daily_bin1040.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/487523/Model_4FGL_J2126.3-4605_daily_bin1040.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/487523/ft1_filtered_4FGL_J2126.3-4605_daily_bin1040.fits.....................!
real 49.92
user 48.43
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0043       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .23635E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.856       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.0521       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.4805       1.0000         .10000E-03   10000.    
    14 'norm      '    26.956       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    36.292       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10896E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .32997E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.2967       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2473       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96803       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=   5969.203     FROM MIGRAD    STATUS=CONVERGED    595 CALLS     2523 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0045        2.6762        .73124E-02    .17536E-03
   2  norm          .10000E-03    6.5993        .90712E-02** at limit **
   3  Prefactor     .10000E-03    8.8052        .90712E-02** at limit **
   4  Prefactor     .10001E-03    26.322        .90712E-02** at limit **
   5  Prefactor     .10000E-03    1.3342        .90712E-02** at limit **
   6  Prefactor     .10000E-03    7.2206        .90712E-02** at limit **
   7  norm          .10000E-03    1.1493        .90712E-02** at limit **
   8  Prefactor     .10000E-03    86.202        .90712E-02** at limit **
   9  Prefactor     .10000E-03    13.199        .90712E-02** at limit **
  10  Prefactor     22.853        10.755        .20946E-02   -.21257E-03
  11  Prefactor     .10000E-03    16.465        .90712E-02** at limit **
  12  Prefactor     5.0518        13.741        .44724E-02    .21873E-03
  13  Prefactor     1.4801        3.7135        .88188E-02    .85167E-03
  14  norm          26.954        8.6520        .19290E-02    .18654E-03
  15  Prefactor     .10000E-03    3.3525        .90712E-02** at limit **
  16  Prefactor     .10000E-03    6.7452        .90712E-02** at limit **
  17  Prefactor     36.281        33.218        .16631E-02    .62725E-04
  18  Prefactor     .10000E-03    2.9788        .90712E-02** at limit **
  19  Prefactor     .10000E-03    1.9758        .90712E-02** at limit **
  20  Prefactor     .10000E-03    218.37        .90712E-02** at limit **
  21  norm          .10004E-03    6.1571        .75164E-01** at limit **
  22  Prefactor     .10000E-03    1.4749        .90712E-02** at limit **
  23  Prefactor     7.2949        7.9494        .37121E-02    .45494E-04
  24  Normalizat    1.2476        .22693        .67215E-01    .50624E-04
  25  Prefactor     .96784        .13812        .45866E-01    .34256E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.00448
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 22.8531
  Prefactor  = 0.0001
  Prefactor  = 5.05176
  Prefactor  = 1.48011
  norm       = 26.9545
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.2807
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100045
  Prefactor  = 0.0001
  Prefactor  = 7.29494
  Normalizat = 1.2476
  Prefactor  = 0.967844
 **********
 **   18 **HESSE 
 **********

 FCN=   5969.203     FROM HESSE     STATUS=OK           419 CALLS     2942 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0045        2.6635        .14197E-03   -1.5425    
   2  norm          .10000E-03    6.6016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.8074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    26.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.3880        .17423E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.2296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.1996        .16153E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    87.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     22.853        10.766        .83784E-04   -1.4752    
  11  Prefactor     .10000E-03    16.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.0518        13.728        .17889E-03   -1.5258    
  13  Prefactor     1.4801        3.6795        .22644E-03   -1.5465    
  14  norm          26.954        8.6564        .77161E-04   -1.4669    
  15  Prefactor     .10000E-03    3.3570        .13815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.8081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     36.281        33.253        .66525E-04   -1.4503    
  18  Prefactor     .10000E-03    2.9836        .13021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.9967        .10603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    219.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10004E-03    30.905        .37376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.4765        .91631E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.2949        7.9609        .14849E-03   -1.5168    
  24  Normalizat    1.2476        .27098        .29736E-03   -.85144    
  25  Prefactor     .96784        .16504        .20567E-03   -.93809    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90073e-09
Minuit parameter uncertainties:
  1  2.66367
  2  4.50866e-06
  3  2.60271e-05
  4  0.00093493
  5  1.4024e-06
  6  8.39457e-06
  7  8.27068e-07
  8  0.000582725
  9  1.84481e-05
  10  10.7671
  11  1.69579e-05
  12  13.7362
  13  3.68006
  14  8.65677
  15  1.44722e-05
  16  1.73747e-05
  17  33.2695
  18  1.62659e-05
  19  2.38688e-06
  20  0.000789699
  21  0.00234926
  22  4.27624e-06
  23  7.96208
  24  0.271285
  25  0.165121
Done.

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

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  2.285e+01  1.077e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        Index:  2.554e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
282        Scale:  5.669e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  9.678e-01  1.651e-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.248e+00  2.713e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.07
Ra Dec: 321.595 -46.098
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 1.24e-07 +/- 5.82e-08
Energy Flux (Fixed Index): 3.39e-05 +/- 1.60e-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) = 5968.8050629
delta logL = 0.397503473022

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5968.76452323
delta logL = 0.438043140104

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.372       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1100       1.0000          .0000       10.000    
     3 'Normalizat'    1.2928       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94764       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=   5968.765     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      215 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.366        18.794        .19502E-02    .12137E-04
   2  Index         2.1098        .54550        .17816       -.20035E-04
   3  Normalizat    1.2930        .22580        .66255E-01    .11652E-04
   4  Prefactor     .94748        .13888        .45609E-01   -.84136E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.3662
  Index      = 2.10982
  Normalizat = 1.29295
  Prefactor  = 0.947481
 **********
 **   18 **HESSE 
 **********

 FCN=   5968.765     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .64E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.366        12.769        .78008E-04   -1.4681    
   2  Index         2.1098        .43451        .67117E-02   -.61632    
   3  Normalizat    1.2930        .26909        .29310E-03   -.83777    
   4  Prefactor     .94748        .16499        .20755E-03   -.94501    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.3826e-13
Minuit parameter uncertainties:
  1  12.7705
  2  0.435339
  3  0.269386
  4  0.165077
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/487523': 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) = 5968.76452254
delta logL = 0.438043831629

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  2.637e+01  1.277e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        Index:  2.110e+00  4.353e-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:  9.475e-01  1.651e-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.293e+00  2.694e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.94
Ra Dec: 321.595 -46.098
Photon Index (Free Index): 2.11 +/- 0.44
Photon Flux (Free Index): 9.24e-08 +/- 5.71e-08
Energy Flux (Free Index): 4.96e-05 +/- 3.59e-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/487523/cmap_HighResolution_508896001_509155201_4FGL_J2126.3-4605_daily_bin1040.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.24e-07', energy_flux2='4.96e-05', photon_flux_error='5.82e-08', dlogl='4.38e-01', energy_flux='3.39e-05', photon_flux2='9.24e-08', job_status='DONE', time_completed='2021-09-26 13:37:35.008553', photon_index_error2='0.44', photon_index2='2.11', ts='10.07', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='3.59e-05', EG='1.25', time_epoch_completed='1632688655.01', return_code='0', job_id='487523', GAL2='0.95', EG2='1.29', return_code2='0', energy_flux_error='1.60e-05', photon_flux_error2='5.71e-08', ts2='10.94', photon_index='2.55' WHERE bin_id='1040' AND source_name='4FGL J2126.3-4605' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:37:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 487523: <4FGL_J2126.3-4605_daily_bin1040> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2126.3-4605_daily_bin1040 321.595 -46.0978 508896001 509155201 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 :                                   581.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   728 sec.
    Turnaround time :                            741 sec.

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

