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


Performing analysis on: 4FGL_J2126.3-4605_daily_bin749
RA = 321.595, Dec = -46.0978
tmin = 433468801, tmax = 433728001
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='486085', job_status='RUN', time_executed='2021-09-26 13:23:24.868509', time_epoch_executed='1632687804.87' WHERE source_name='4FGL J2126.3-4605' and cadence='daily' and bin_id='749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/486085

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/486085/ft1_4FGL_J2126.3-4605_daily_bin749.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/486085/ft2_4FGL_J2126.3-4605_daily_bin749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/486085/ft1_4FGL_J2126.3-4605_daily_bin749.fits outfile=/scratch/kocevski/486085/ft1_filteredMKT_4FGL_J2126.3-4605_daily_bin749.fits ra=321.595 dec=-46.0978 rad=12.0 tmin=433468801.0 tmax=433728001.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 5.10
user 4.72
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/486085/ft2_4FGL_J2126.3-4605_daily_bin749.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/486085/ft1_filteredMKT_4FGL_J2126.3-4605_daily_bin749.fits evtable="EVENTS" outfile="/scratch/kocevski/486085/ft1_filtered_4FGL_J2126.3-4605_daily_bin749.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.57
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/486085/ft1_filtered_4FGL_J2126.3-4605_daily_bin749.fits" evtable="EVENTS" scfile=/scratch/kocevski/486085/ft2_4FGL_J2126.3-4605_daily_bin749.fits sctable="SC_DATA" outfile=/scratch/kocevski/486085/ltcube_433468801_433728001_4FGL_J2126.3-4605_daily_bin749.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/486085/ft2_4FGL_J2126.3-4605_daily_bin749.fits
.....................!
real 17.62
user 15.64
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/486085/ft1_filtered_4FGL_J2126.3-4605_daily_bin749.fits evtable="EVENTS" scfile=/scratch/kocevski/486085/ft2_4FGL_J2126.3-4605_daily_bin749.fits sctable="SC_DATA" expcube=/scratch/kocevski/486085/ltcube_433468801_433728001_4FGL_J2126.3-4605_daily_bin749.fits outfile=/scratch/kocevski/486085/expmap_433468801_433728001_4FGL_J2126.3-4605_daily_bin749.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/486085/ltcube_433468801_433728001_4FGL_J2126.3-4605_daily_bin749.fits
.....................!
real 158.70
user 152.18
sys 4.74

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/486085/ft1_filtered_4FGL_J2126.3-4605_daily_bin749.fits scfile=/scratch/kocevski/486085/ft2_4FGL_J2126.3-4605_daily_bin749.fits outfile=/scratch/kocevski/486085/cmap_433468801_433728001_4FGL_J2126.3-4605_daily_bin749.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.47
user 0.32
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/486085/ft1_filtered_4FGL_J2126.3-4605_daily_bin749.fits scfile=/scratch/kocevski/486085/ft2_4FGL_J2126.3-4605_daily_bin749.fits outfile=/scratch/kocevski/486085/cmap_HighResolution_433468801_433728001_4FGL_J2126.3-4605_daily_bin749.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.66
user 0.32
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/486085/ft1_filtered_4FGL_J2126.3-4605_daily_bin749.fits evtable="EVENTS" scfile=/scratch/kocevski/486085/ft2_4FGL_J2126.3-4605_daily_bin749.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/486085/Model_4FGL_J2126.3-4605_daily_bin749.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/486085/ft1_filtered_4FGL_J2126.3-4605_daily_bin749.fits.....................!
real 38.86
user 37.22
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9457       1.0000         .10000E-03   10000.    
     2 'norm      '    15.711       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10467E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.3989       1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.380       1.0000         .10000E-03   10000.    
     9 'Prefactor '    67.139       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    45.896       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9970       1.0000         .10000E-03   10000.    
    14 'norm      '    8.7928       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.796       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10106E-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 '    9.3590       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1637       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .75535       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=   5038.600     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     2922 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9457        2.5164       -.67439E-07    .70417E-04
   2  norm          15.708        17.448       -.95442E-06   -.33655E-03
   3  Prefactor     .10000E-03    12.590       -.12390E-05** at limit **
   4  Prefactor     .10000E-03    59.628       -.13827E-05** at limit **
   5  Prefactor     .10000E-03    1.0904       -.56935E-08** at limit **
   6  Prefactor     .10000E-03    9.7159        .20175E-06** at limit **
   7  norm          1.3988        1.6692       -.33796E-06   -.46901E-03
   8  Prefactor     22.379        31.033       -.15042E-05    .11014E-06
   9  Prefactor     67.136        67.918       -.25553E-05    .77032E-05
  10  Prefactor     .10000E-03    13.127        .10425E-05** at limit **
  11  Prefactor     .10000E-03    13.071        .10756E-05** at limit **
  12  Prefactor     45.894        49.238       -.18775E-05    .11961E-04
  13  Prefactor     2.0009        6.1143       -.65998E-06   -.61325E-03
  14  norm          8.7933        4.6573       -.11851E-06    .88410E-04
  15  Prefactor     .10000E-03    3.2316       -.17447E-06** at limit **
  16  Prefactor     .10000E-03    13.714       -.93828E-06** at limit **
  17  Prefactor     22.772        59.445       -.37714E-04    .61495E-05
  18  Prefactor     .10000E-03    5.5466        .25095E-06** at limit **
  19  Prefactor     .10000E-03    2.7881       -.10408E-06** at limit **
  20  Prefactor     .10000E-03    86.534        .15208E-05** at limit **
  21  norm          .10000E-03    6.8601        .28664E-08** at limit **
  22  Prefactor     .10000E-03    4.2407       -.12202E-06** at limit **
  23  Prefactor     9.3613        10.738        .11998E-05    .15299E-04
  24  Normalizat    1.1633        .22596        .41290E-05   -.97420E-04
  25  Prefactor     .75550        .12481       -.38689E-06    .18064E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.94565
  norm       = 15.7081
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.39882
  Prefactor  = 22.3793
  Prefactor  = 67.1361
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.8944
  Prefactor  = 2.0009
  norm       = 8.79332
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.7719
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.36132
  Normalizat = 1.16334
  Prefactor  = 0.755496
 **********
 **   18 **HESSE 
 **********

 FCN=   5038.600     FROM HESSE     STATUS=OK           423 CALLS     3345 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9457        2.5185        .87369E-04   -1.5311    
   2  norm          15.708        17.568        .50524E-03   -1.4915    
   3  Prefactor     .10000E-03    12.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    59.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.0968        .72377E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.7512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.3988        1.6518        .95112E-04   -1.5471    
   8  Prefactor     22.379        31.133        .84669E-04   -1.4761    
   9  Prefactor     67.136        67.847        .48983E-04   -1.4067    
  10  Prefactor     .10000E-03    13.664        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     45.894        49.161        .59183E-04   -1.4352    
  13  Prefactor     2.0009        6.1314        .29100E-03   -1.5425    
  14  norm          8.7933        4.6590        .10847E-03   -1.5115    
  15  Prefactor     .10000E-03    3.2394        .12462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.142        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     22.772        58.782        .83893E-04   -1.4753    
  18  Prefactor     .10000E-03    5.5597        .16331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.7989        .11574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    86.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    6.8658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.2712        .14272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     9.3613        10.757        .13100E-03   -1.5096    
  24  Normalizat    1.1633        .26331        .28288E-03   -.87743    
  25  Prefactor     .75550        .14665        .19325E-03   -1.0139    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37167e-09
Minuit parameter uncertainties:
  1  2.5186
  2  17.5738
  3  5.36931e-06
  4  7.68e-05
  5  1.48779e-06
  6  6.37022e-06
  7  1.65189
  8  31.1553
  9  67.925
  10  2.09763e-05
  11  6.88839e-06
  12  49.2043
  13  6.1333
  14  4.65919
  15  5.29635e-06
  16  2.54826e-05
  17  58.9323
  18  7.02809e-05
  19  3.20243e-06
  20  0.000218727
  21  2.52314e-06
  22  9.99574e-07
  23  10.7589
  24  0.263609
  25  0.146729
Done.

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

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  1.000e-04  2.098e-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:  7.555e-01  1.467e-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.163e+00  2.636e-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: 9.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/486085/likelihoodResults_433468801_433728001_4FGL_J2126.3-4605_daily_bin749.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) = 5038.60057962
delta logL = -0.00034684606544

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5038.60023316
delta logL = -3.84053237212e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11935E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6245       1.0000          .0000       10.000    
     3 'Normalizat'    1.1636       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75536       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5038.600     FROM MIGRAD    STATUS=FAILED        93 CALLS      260 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10045E-03    35.143        .32356E-02** at limit **
   2  Index         2.7212        6.3599        .92482E-02   -.52950E-04
   3  Normalizat    1.1633        .25022        .28288E-03    .14601E-03
   4  Prefactor     .75549        .14168        .19325E-03    .17742E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5038.600     FROM SIMPLEX   STATUS=UNCHANGED    124 CALLS      384 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10045E-03    35.143        .81793E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7212        6.3599        .53706E-03   -.47323    
   3  Normalizat    1.1633        .25022        .64615E-04   -.87743    
   4  Prefactor     .75549        .14168        .41947E-04   -1.0139    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5038.600     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      411 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    28.866        .64711E-03** at limit **
   2  Index         2.7217        6.3500        .18496E-02   -.52757E-04
   3  Normalizat    1.1633        .25032        .11315E-04   -.10992E-03
   4  Prefactor     .75549        .14178        .38650E-04   -.10513E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100044
  Index      = 2.72173
  Normalizat = 1.16335
  Prefactor  = 0.755494
 **********
 **   18 **HESSE 
 **********

 FCN=   5038.600     FROM HESSE     STATUS=OK            27 CALLS      438 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    28.652        .12942E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7217        6.3490        .36993E-01   -.47311    
   3  Normalizat    1.1633        .25046        .22631E-05   -.87743    
   4  Prefactor     .75549        .14184        .77299E-05   -1.0139    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.23695e-09
Minuit parameter uncertainties:
  1  0.00225569
  2  4.45174
  3  0.250715
  4  0.141913
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/486085': 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) = 5038.60023087
delta logL = 1.9042781787e-06

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  1.000e-04  2.256e-03  1.000e-04  1.000e+04 ( 1.000e-12)
281        Index:  2.722e+00  4.452e+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:  7.555e-01  1.419e-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.163e+00  2.507e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/486085/cmap_HighResolution_433468801_433728001_4FGL_J2126.3-4605_daily_bin749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.70e-03', job_status='DONE', photon_flux_upper_limit='9.86e-08', time_completed='2021-09-26 13:32:19.382810', job_id='486085', GAL2='0.76', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1632688339.38', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='1.90e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='749' AND source_name='4FGL J2126.3-4605' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:32:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 486085: <4FGL_J2126.3-4605_daily_bin749> in cluster <slac> Done

Job <4FGL_J2126.3-4605_daily_bin749> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 26 13:20:15 2021
Job was executed on host(s) <bullet0026>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 13:20: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:20:17 2021
Terminated at Sun Sep 26 13:32:20 2021
Results reported at Sun Sep 26 13:32:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2126.3-4605_daily_bin749 321.595 -46.0978 433468801 433728001 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 :                                   529.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   722 sec.
    Turnaround time :                            725 sec.

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

