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


Performing analysis on: 4FGL_J2126.3-4605_daily_bin1029
RA = 321.595, Dec = -46.0978
tmin = 506044801, tmax = 506304001
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='487506', job_status='RUN', time_executed='2021-09-26 13:25:51.248682', time_epoch_executed='1632687951.25' WHERE source_name='4FGL J2126.3-4605' and cadence='daily' and bin_id='1029'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/487506

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/487506/ft1_4FGL_J2126.3-4605_daily_bin1029.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/487506/ft2_4FGL_J2126.3-4605_daily_bin1029.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/487506/ft1_4FGL_J2126.3-4605_daily_bin1029.fits outfile=/scratch/kocevski/487506/ft1_filteredMKT_4FGL_J2126.3-4605_daily_bin1029.fits ra=321.595 dec=-46.0978 rad=12.0 tmin=506044801.0 tmax=506304001.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.36
user 4.10
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/487506/ft2_4FGL_J2126.3-4605_daily_bin1029.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/487506/ft1_filteredMKT_4FGL_J2126.3-4605_daily_bin1029.fits evtable="EVENTS" outfile="/scratch/kocevski/487506/ft1_filtered_4FGL_J2126.3-4605_daily_bin1029.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/487506/ft1_filtered_4FGL_J2126.3-4605_daily_bin1029.fits" evtable="EVENTS" scfile=/scratch/kocevski/487506/ft2_4FGL_J2126.3-4605_daily_bin1029.fits sctable="SC_DATA" outfile=/scratch/kocevski/487506/ltcube_506044801_506304001_4FGL_J2126.3-4605_daily_bin1029.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/487506/ft2_4FGL_J2126.3-4605_daily_bin1029.fits
.....................!
real 13.55
user 13.02
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/487506/ft1_filtered_4FGL_J2126.3-4605_daily_bin1029.fits evtable="EVENTS" scfile=/scratch/kocevski/487506/ft2_4FGL_J2126.3-4605_daily_bin1029.fits sctable="SC_DATA" expcube=/scratch/kocevski/487506/ltcube_506044801_506304001_4FGL_J2126.3-4605_daily_bin1029.fits outfile=/scratch/kocevski/487506/expmap_506044801_506304001_4FGL_J2126.3-4605_daily_bin1029.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/487506/ltcube_506044801_506304001_4FGL_J2126.3-4605_daily_bin1029.fits
.....................!
real 191.23
user 186.07
sys 4.76

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/487506/ft1_filtered_4FGL_J2126.3-4605_daily_bin1029.fits scfile=/scratch/kocevski/487506/ft2_4FGL_J2126.3-4605_daily_bin1029.fits outfile=/scratch/kocevski/487506/cmap_506044801_506304001_4FGL_J2126.3-4605_daily_bin1029.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.58
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/487506/ft1_filtered_4FGL_J2126.3-4605_daily_bin1029.fits scfile=/scratch/kocevski/487506/ft2_4FGL_J2126.3-4605_daily_bin1029.fits outfile=/scratch/kocevski/487506/cmap_HighResolution_506044801_506304001_4FGL_J2126.3-4605_daily_bin1029.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/487506/ft1_filtered_4FGL_J2126.3-4605_daily_bin1029.fits evtable="EVENTS" scfile=/scratch/kocevski/487506/ft2_4FGL_J2126.3-4605_daily_bin1029.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/487506/Model_4FGL_J2126.3-4605_daily_bin1029.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/487506/ft1_filtered_4FGL_J2126.3-4605_daily_bin1029.fits.....................!
real 52.44
user 50.96
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12449       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.6050       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.5466       1.0000         .10000E-03   10000.    
     8 'Prefactor '    52.031       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.9413       1.0000         .10000E-03   10000.    
    14 'norm      '    7.9175       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .19902E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.8788       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    28.458       1.0000         .10000E-03   10000.    
    21 'norm      '    3.4285       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.3933       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .91047E-02   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1051       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87513       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=   6726.973     FROM MIGRAD    STATUS=CONVERGED    623 CALLS     3000 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11738        2.1228       -.84913E-06   -.31838E-03
   2  norm          .10000E-03    4.9718       -.31569E-09** at limit **
   3  Prefactor     .10000E-03    14.931       -.54027E-07** at limit **
   4  Prefactor     .10000E-03    24.764        .27781E-05** at limit **
   5  Prefactor     4.6049        2.7486       -.40711E-08   -.24660E-03
   6  Prefactor     .10000E-03    3.8514        .52006E-07** at limit **
   7  norm          1.5465        1.4566       -.25275E-07   -.43696E-03
   8  Prefactor     52.022        34.963        .49351E-06   -.60410E-05
   9  Prefactor     .10000E-03    22.887       -.53949E-05** at limit **
  10  Prefactor     .10000E-03    3.5587       -.10850E-06** at limit **
  11  Prefactor     .10000E-03    6.5178       -.50371E-07** at limit **
  12  Prefactor     .10000E-03    30.695        .53930E-06** at limit **
  13  Prefactor     4.9406        4.2418       -.94730E-06   -.48861E-03
  14  norm          7.9175        3.9238       -.34053E-07   -.76700E-04
  15  Prefactor     .10000E-03    2.5947       -.48333E-08** at limit **
  16  Prefactor     .10001E-03    4.5052        .48399E-06** at limit **
  17  Prefactor     6.8001        79.672        .95487E-04    .11216E-04
  18  Prefactor     .10000E-03    5.2819        .48600E-06** at limit **
  19  Prefactor     .10000E-03    2.3870        .41171E-06** at limit **
  20  Prefactor     28.300        75.905       -.11575E-03   -.48188E-04
  21  norm          3.4287        4.3494        .54722E-06    .41853E-04
  22  Prefactor     5.3914        4.3009       -.11781E-05   -.52723E-03
  23  Prefactor     .10002E-03    4.3403        .11106E-05** at limit **
  24  Normalizat    1.1053        .18798       -.17976E-05   -.20149E-03
  25  Prefactor     .87506        .11482        .64163E-06   -.33010E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.11738
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.60487
  Prefactor  = 0.0001
  norm       = 1.54647
  Prefactor  = 52.0225
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.94064
  norm       = 7.91754
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 6.80011
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 28.3004
  norm       = 3.42868
  Prefactor  = 5.39144
  Prefactor  = 0.000100016
  Normalizat = 1.10531
  Prefactor  = 0.875058
 **********
 **   18 **HESSE 
 **********

 FCN=   6726.973     FROM HESSE     STATUS=OK           429 CALLS     3429 TOTAL
                     EDM=   .57E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11738        8.2279        .23175E-02   -1.5639    
   2  norm          .10000E-03    4.9730        .17862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    24.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.6049        2.7453        .10130E-03   -1.5279    
   6  Prefactor     .10000E-03    3.8527        .15720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.5465        1.4413        .92035E-04   -1.5459    
   8  Prefactor     52.022        34.984        .55601E-04   -1.4264    
   9  Prefactor     .10000E-03    22.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.5834        .15106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.5217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    30.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.9406        4.2439        .14867E-03   -1.5263    
  14  norm          7.9175        3.9233        .11103E-03   -1.5145    
  15  Prefactor     .10000E-03    2.6045        .12900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    20.828        .33667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.8001        79.986        .15297E-03   -1.5186    
  18  Prefactor     .10000E-03    5.3405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.4641        .24738E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     28.300        76.083        .75101E-04   -1.4644    
  21  norm          3.4287        4.3447        .18800E-03   -1.5338    
  22  Prefactor     5.3914        4.3057        .14569E-03   -1.5244    
  23  Prefactor     .10002E-03    76.722        .32601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1053        .21928        .27006E-03   -.89582    
  25  Prefactor     .87506        .13514        .19320E-03   -.97018    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.73966e-08
Minuit parameter uncertainties:
  1  1.96493
  2  3.7503e-07
  3  3.93517e-06
  4  5.42661e-06
  5  2.74539
  6  1.56341e-06
  7  1.44134
  8  34.9975
  9  1.92368e-05
  10  2.02888e-05
  11  7.9473e-06
  12  0.00010685
  13  4.24412
  14  3.92343
  15  5.3363e-07
  16  0.000991602
  17  46.722
  18  0.000109711
  19  6.48875e-05
  20  76.3454
  21  4.34505
  22  4.30597
  23  0.002205
  24  0.219458
  25  0.135191
Done.

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

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  1.000e-04  2.029e-05  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:  8.751e-01  1.352e-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.105e+00  2.195e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 321.595 -46.098
Photon Flux Upper Limit: 7.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/487506/likelihoodResults_506044801_506304001_4FGL_J2126.3-4605_daily_bin1029.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): 102
logL (Free Index) = 6726.97456292
delta logL = -0.00133012284005

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6726.97323482
delta logL = -2.03014224098e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5451       1.0000          .0000       10.000    
     3 'Normalizat'    1.1052       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87497       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=   6726.973     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      251 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.559        .15158E-01** at limit **
   2  Index         2.1835        8.9079        .50000        .25657E-06
   3  Normalizat    1.1053        .14057E-01    .27006E-03    .10857E-03
   4  Prefactor     .87506        .91092E-02    .19320E-03    .17048E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.18348
  Normalizat = 1.10531
  Prefactor  = 0.875059
 **********
 **   18 **HESSE 
 **********

 FCN=   6726.973     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      280 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    544.40        .15654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1835        5.0247        .50000       -.59838    
   3  Normalizat    1.1053        .70620E-01    .10803E-04   -.89582    
   4  Prefactor     .87506        .45770E-01    .38640E-04   -.97018    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.53693e-09
Minuit parameter uncertainties:
  1  0.000336316
  2  1323.88
  3  0.0706264
  4  0.0457716
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/487506': 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): 102
logL (Free Index) = 6726.97323172
delta logL = 1.07475716504e-06

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  1.000e-04  3.363e-04  1.000e-04  1.000e+04 ( 1.000e-12)
281        Index:  2.183e+00  1.324e+03  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:  8.751e-01  4.577e-02  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.105e+00  7.063e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/487506/cmap_HighResolution_506044801_506304001_4FGL_J2126.3-4605_daily_bin1029.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.64e-03', job_status='DONE', photon_flux_upper_limit='7.22e-08', time_completed='2021-09-26 13:38:03.898107', job_id='487506', GAL2='0.88', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1632688683.9', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='1.07e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='1029' AND source_name='4FGL J2126.3-4605' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:38:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 487506: <4FGL_J2126.3-4605_daily_bin1029> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2126.3-4605_daily_bin1029 321.595 -46.0978 506044801 506304001 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 :                                   731.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             323.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   767 sec.
    Turnaround time :                            771 sec.

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

