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


Performing analysis on: 4FGL_J2126.3-4605_daily_bin493
RA = 321.595, Dec = -46.0978
tmin = 367113601, tmax = 367372801
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='484715', job_status='RUN', time_executed='2021-09-26 13:16:18.470987', time_epoch_executed='1632687378.47' WHERE source_name='4FGL J2126.3-4605' and cadence='daily' and bin_id='493'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/484715

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/484715/ft1_4FGL_J2126.3-4605_daily_bin493.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/484715/ft2_4FGL_J2126.3-4605_daily_bin493.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/484715/ft1_4FGL_J2126.3-4605_daily_bin493.fits outfile=/scratch/kocevski/484715/ft1_filteredMKT_4FGL_J2126.3-4605_daily_bin493.fits ra=321.595 dec=-46.0978 rad=12.0 tmin=367113601.0 tmax=367372801.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.33
user 4.09
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/484715/ft1_filtered_4FGL_J2126.3-4605_daily_bin493.fits" evtable="EVENTS" scfile=/scratch/kocevski/484715/ft2_4FGL_J2126.3-4605_daily_bin493.fits sctable="SC_DATA" outfile=/scratch/kocevski/484715/ltcube_367113601_367372801_4FGL_J2126.3-4605_daily_bin493.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/484715/ft2_4FGL_J2126.3-4605_daily_bin493.fits
.....................!
real 12.64
user 12.30
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/484715/ft1_filtered_4FGL_J2126.3-4605_daily_bin493.fits evtable="EVENTS" scfile=/scratch/kocevski/484715/ft2_4FGL_J2126.3-4605_daily_bin493.fits sctable="SC_DATA" expcube=/scratch/kocevski/484715/ltcube_367113601_367372801_4FGL_J2126.3-4605_daily_bin493.fits outfile=/scratch/kocevski/484715/expmap_367113601_367372801_4FGL_J2126.3-4605_daily_bin493.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/484715/ltcube_367113601_367372801_4FGL_J2126.3-4605_daily_bin493.fits
.....................!
real 163.89
user 152.03
sys 4.37

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/484715/ft1_filtered_4FGL_J2126.3-4605_daily_bin493.fits scfile=/scratch/kocevski/484715/ft2_4FGL_J2126.3-4605_daily_bin493.fits outfile=/scratch/kocevski/484715/cmap_367113601_367372801_4FGL_J2126.3-4605_daily_bin493.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.33
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/484715/ft1_filtered_4FGL_J2126.3-4605_daily_bin493.fits scfile=/scratch/kocevski/484715/ft2_4FGL_J2126.3-4605_daily_bin493.fits outfile=/scratch/kocevski/484715/cmap_HighResolution_367113601_367372801_4FGL_J2126.3-4605_daily_bin493.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.58
user 0.32
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/484715/ft1_filtered_4FGL_J2126.3-4605_daily_bin493.fits evtable="EVENTS" scfile=/scratch/kocevski/484715/ft2_4FGL_J2126.3-4605_daily_bin493.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/484715/Model_4FGL_J2126.3-4605_daily_bin493.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/484715/ft1_filtered_4FGL_J2126.3-4605_daily_bin493.fits.....................!
real 40.29
user 35.71
sys 1.05

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5173       1.0000         .10000E-03   10000.    
     2 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    38.709       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.5528       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14034E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.5659       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .34964E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3294       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10571E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    13.762       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.1228       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.0880       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10875E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0983       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99908       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=   5265.682     FROM MIGRAD    STATUS=CONVERGED   1037 CALLS     3350 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5172        2.4040        .10680E-03   -.25973E-04
   2  norm          .10000E-03    41.824        .36285E-03** at limit **
   3  Prefactor     .10000E-03    17.158        .18142E-02** at limit **
   4  Prefactor     38.676        89.517        .64422E-04   -.26577E-04
   5  Prefactor     4.5537        3.1552        .10351E-03   -.11137E-03
   6  Prefactor     .10000E-03    109.51        .36285E-03** at limit **
   7  norm          7.5660        2.6328        .66578E-04   -.28909E-03
   8  Prefactor     .10000E-03    55.923        .18142E-02** at limit **
   9  Prefactor     .10000E-03    38.632        .14868    ** at limit **
  10  Prefactor     1.3300        14.948        .19048E-02    .46596E-03
  11  Prefactor     .10000E-03    21.482        .18142E-02** at limit **
  12  Prefactor     .10000E-03    26.456        .18142E-02** at limit **
  13  Prefactor     .10000E-03    5.4888        .16417E-02** at limit **
  14  norm          13.756        6.3187        .10797E-03   -.32363E-03
  15  Prefactor     1.1197        14.414        .44267E-03    .34414E-05
  16  Prefactor     .10000E-03    5.9977        .17312E-02** at limit **
  17  Prefactor     .10000E-03    43.618        .18142E-02** at limit **
  18  Prefactor     9.0919        11.875        .13295E-03   -.19685E-03
  19  Prefactor     .10000E-03    2.2258        .10503E-02** at limit **
  20  Prefactor     .10000E-03    68.208        .18142E-02** at limit **
  21  norm          .10000E-03    3.4181        .13096E-02** at limit **
  22  Prefactor     .10000E-03    2.5531        .11283E-02** at limit **
  23  Prefactor     .10000E-03    13.887        .36285E-03** at limit **
  24  Normalizat    1.0985        .27887        .30496E-03   -.36513E-03
  25  Prefactor     .99906        .16858        .19877E-03   -.47594E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.51717
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.6757
  Prefactor  = 4.55372
  Prefactor  = 0.000100001
  norm       = 7.56601
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.33
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.7561
  Prefactor  = 1.11972
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.09195
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.09847
  Prefactor  = 0.999062
 **********
 **   18 **HESSE 
 **********

 FCN=   5265.682     FROM HESSE     STATUS=OK           413 CALLS     3763 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5172        2.4040        .42720E-05   -1.5391    
   2  norm          .10000E-03    41.826        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    17.159        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     38.676        89.516        .12884E-04   -1.4463    
   5  Prefactor     4.5537        3.1551        .41405E-05   -1.5281    
   6  Prefactor     .10000E-03    109.52        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.5660        2.6327        .26631E-05   -1.5158    
   8  Prefactor     .10000E-03    55.949        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    38.434        .14938       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.3300        14.909        .38097E-03   -1.5477    
  11  Prefactor     .10000E-03    21.484        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    26.459        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.4923        .32834E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          13.756        6.3184        .21595E-04   -1.4966    
  15  Prefactor     1.1197        14.404        .17707E-04   -1.5496    
  16  Prefactor     .10000E-03    5.9987        .34624E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    43.626        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.0919        11.875        .53180E-05   -1.5105    
  19  Prefactor     .10000E-03    2.2262        .21006E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    68.209        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.4182        .26191E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.5534        .22567E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    13.887        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0985        .27898        .60992E-04   -.89801    
  25  Prefactor     .99906        .16870        .39754E-04   -.92761    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30697e-10
Minuit parameter uncertainties:
  1  2.40408
  2  5.88907e-05
  3  3.39961e-05
  4  89.8288
  5  3.15523
  6  0.000745805
  7  2.63272
  8  0.000279205
  9  0.000283781
  10  8.90831
  11  3.89746e-07
  12  0.000226575
  13  1.48449e-05
  14  6.31873
  15  8.03407
  16  1.23387e-05
  17  9.12904e-06
  18  11.8779
  19  7.34426e-06
  20  0.00019138
  21  1.67983e-06
  22  5.63849e-06
  23  1.13506e-05
  24  0.27935
  25  0.168791
Done.

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

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  1.330e+00  8.908e+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:  9.991e-01  1.688e-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.098e+00  2.794e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/484715/likelihoodResults_367113601_367372801_4FGL_J2126.3-4605_daily_bin493.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) = 5265.44459616
delta logL = 0.237686940171

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5265.44369084
delta logL = 0.238592261519

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9155       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7450       1.0000          .0000       10.000    
     3 'Normalizat'    1.1093       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98768       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=   5265.444     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      249 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9856        9.3883        .45353E-02    .12235E-03
   2  Index         1.7470        .59995        .27500       -.47870E-04
   3  Normalizat    1.1093        .22475        .68626E-01    .93487E-05
   4  Prefactor     .98758        .14166        .46113E-01    .33042E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.98562
  Index      = 1.74703
  Normalizat = 1.10926
  Prefactor  = 0.987579
 **********
 **   18 **HESSE 
 **********

 FCN=   5265.444     FROM HESSE     STATUS=OK            33 CALLS      282 TOTAL
                     EDM=   .50E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9856        8.8670        .18141E-03   -1.5261    
   2  Index         1.7470        .78149        .10111E-01   -.70837    
   3  Normalizat    1.1093        .26354        .30363E-03   -.89455    
   4  Prefactor     .98758        .16610        .19969E-03   -.93145    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.02541e-12
Minuit parameter uncertainties:
  1  8.86933
  2  0.787117
  3  0.263851
  4  0.166182
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/484715': 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) = 5265.44366045
delta logL = 0.238622650953

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  4.986e+00  8.869e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        Index:  1.747e+00  7.871e-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.876e-01  1.662e-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.109e+00  2.639e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/484715/cmap_HighResolution_367113601_367372801_4FGL_J2126.3-4605_daily_bin493.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', job_status='DONE', photon_flux_upper_limit='1.34e-07', time_completed='2021-09-26 13:26:21.962904', job_id='484715', GAL2='0.99', fit_tolerance='1e-08', EG2='1.11', EG='1.10', time_epoch_completed='1632687981.96', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='2.39e-01', ts2='0.50', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='493' AND source_name='4FGL J2126.3-4605' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:26:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 484715: <4FGL_J2126.3-4605_daily_bin493> in cluster <slac> Done

Job <4FGL_J2126.3-4605_daily_bin493> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Sep 26 13:15:28 2021
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 13:16:03 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:16:03 2021
Terminated at Sun Sep 26 13:26:22 2021
Results reported at Sun Sep 26 13:26:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2126.3-4605_daily_bin493 321.595 -46.0978 367113601 367372801 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 :                                   549.56 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             331.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   619 sec.
    Turnaround time :                            654 sec.

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

