/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 64 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 = 7427
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2126.3-4605_daily_bin636
RA = 321.595, Dec = -46.0978
tmin = 404179201, tmax = 404438401
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='484927', job_status='RUN', time_executed='2021-09-26 13:18:42.093885', time_epoch_executed='1632687522.09' WHERE source_name='4FGL J2126.3-4605' and cadence='daily' and bin_id='636'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/484927

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/484927/ft1_4FGL_J2126.3-4605_daily_bin636.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/484927/ft2_4FGL_J2126.3-4605_daily_bin636.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/484927/ft1_4FGL_J2126.3-4605_daily_bin636.fits outfile=/scratch/kocevski/484927/ft1_filteredMKT_4FGL_J2126.3-4605_daily_bin636.fits ra=321.595 dec=-46.0978 rad=12.0 tmin=404179201.0 tmax=404438401.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.81
user 3.45
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/484927/ft1_filtered_4FGL_J2126.3-4605_daily_bin636.fits" evtable="EVENTS" scfile=/scratch/kocevski/484927/ft2_4FGL_J2126.3-4605_daily_bin636.fits sctable="SC_DATA" outfile=/scratch/kocevski/484927/ltcube_404179201_404438401_4FGL_J2126.3-4605_daily_bin636.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/484927/ft2_4FGL_J2126.3-4605_daily_bin636.fits
.....................!
real 15.64
user 15.14
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/484927/ft1_filtered_4FGL_J2126.3-4605_daily_bin636.fits evtable="EVENTS" scfile=/scratch/kocevski/484927/ft2_4FGL_J2126.3-4605_daily_bin636.fits sctable="SC_DATA" expcube=/scratch/kocevski/484927/ltcube_404179201_404438401_4FGL_J2126.3-4605_daily_bin636.fits outfile=/scratch/kocevski/484927/expmap_404179201_404438401_4FGL_J2126.3-4605_daily_bin636.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/484927/ltcube_404179201_404438401_4FGL_J2126.3-4605_daily_bin636.fits
.....................!
real 195.86
user 189.49
sys 5.21

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/484927/ft1_filtered_4FGL_J2126.3-4605_daily_bin636.fits scfile=/scratch/kocevski/484927/ft2_4FGL_J2126.3-4605_daily_bin636.fits outfile=/scratch/kocevski/484927/cmap_404179201_404438401_4FGL_J2126.3-4605_daily_bin636.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.56
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/484927/ft1_filtered_4FGL_J2126.3-4605_daily_bin636.fits scfile=/scratch/kocevski/484927/ft2_4FGL_J2126.3-4605_daily_bin636.fits outfile=/scratch/kocevski/484927/cmap_HighResolution_404179201_404438401_4FGL_J2126.3-4605_daily_bin636.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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/484927/ft1_filtered_4FGL_J2126.3-4605_daily_bin636.fits evtable="EVENTS" scfile=/scratch/kocevski/484927/ft2_4FGL_J2126.3-4605_daily_bin636.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/484927/Model_4FGL_J2126.3-4605_daily_bin636.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/484927/ft1_filtered_4FGL_J2126.3-4605_daily_bin636.fits.....................!
real 51.78
user 50.16
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    16.792       1.0000         .10000E-03   10000.    
     3 'Prefactor '    90.177       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .27883E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.6027       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.4178       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    50.450       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.7352       1.0000         .10000E-03   10000.    
    11 'Prefactor '    52.950       1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.032       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10844E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .79719       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12965E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.8698       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .81815       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=   5934.011     FROM MIGRAD    STATUS=CONVERGED    604 CALLS     2903 TOTAL
                     EDM=   .19E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.5263        .17692E-07** at limit **
   2  norm          16.806        25.252        .62326E-06    .23837E-04
   3  Prefactor     90.206        62.337       -.21507E-05    .13590E-04
   4  Prefactor     .10000E-03    1457.3       -.14855E-04** at limit **
   5  Prefactor     2.6028        2.3766        .11598E-06   -.74217E-05
   6  Prefactor     .10000E-03    6.2518        .10131E-06** at limit **
   7  norm          1.4180        2.5165        .36292E-06    .64175E-04
   8  Prefactor     .10000E-03    16.645       -.30619E-07** at limit **
   9  Prefactor     50.390        45.806        .29270E-06    .30421E-04
  10  Prefactor     5.7327        12.683        .13984E-06   -.62478E-05
  11  Prefactor     52.979        40.363        .22472E-06   -.23600E-04
  12  Prefactor     24.016        28.612        .30015E-06   -.10139E-04
  13  Prefactor     .10000E-03    4.4156        .58180E-06** at limit **
  14  norm          .10000E-03    2.0020       -.39881E-06** at limit **
  15  Prefactor     .10000E-03    13.543       -.29404E-06** at limit **
  16  Prefactor     .10000E-03    12.302       -.46310E-06** at limit **
  17  Prefactor     .10000E-03    12.116        .35484E-07** at limit **
  18  Prefactor     .10000E-03    5.3962        .36071E-07** at limit **
  19  Prefactor     .79673        2.8331        .14242E-05    .74620E-04
  20  Prefactor     .10000E-03    52.893        .11470E-07** at limit **
  21  norm          .10000E-03    3.0739       -.54476E-08** at limit **
  22  Prefactor     .10000E-03    1.2836        .10944E-08** at limit **
  23  Prefactor     .10000E-03    10.475        .40828E-07** at limit **
  24  Normalizat    1.8699        .25260       -.44094E-06   -.71508E-04
  25  Prefactor     .81816        .14925       -.11212E-05   -.32744E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 16.8064
  Prefactor  = 90.2057
  Prefactor  = 0.000100004
  Prefactor  = 2.60281
  Prefactor  = 0.0001
  norm       = 1.41804
  Prefactor  = 0.0001
  Prefactor  = 50.3904
  Prefactor  = 5.73273
  Prefactor  = 52.9795
  Prefactor  = 24.0163
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.79673
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.86995
  Prefactor  = 0.818157
 **********
 **   18 **HESSE 
 **********

 FCN=   5934.011     FROM HESSE     STATUS=OK           419 CALLS     3322 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.5300        .92947E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          16.806        25.257        .97738E-04   -1.4888    
   3  Prefactor     90.206        61.892        .42314E-04   -1.3806    
   4  Prefactor     .10000E-03    1458.8        .36646E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.6028        2.3702        .11018E-03   -1.5385    
   6  Prefactor     .10000E-03    6.2574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.4180        2.5031        .15366E-03   -1.5470    
   8  Prefactor     .10000E-03    16.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     50.390        45.899        .28231E-03   -1.4287    
  10  Prefactor     5.7327        12.698        .16772E-03   -1.5229    
  11  Prefactor     52.979        40.427        .55119E-04   -1.4251    
  12  Prefactor     24.016        28.635        .81711E-04   -1.4727    
  13  Prefactor     .10000E-03    4.5081        .15815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.0021        .10626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.4285        .17472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .79673        2.8199        .24059E-03   -1.5529    
  20  Prefactor     .10000E-03    52.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.0763        .13190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.2844        .85233E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.8699        .29553        .28166E-03   -.67852    
  25  Prefactor     .81816        .17190        .24145E-03   -.99062    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.97129e-11
Minuit parameter uncertainties:
  1  2.26222e-06
  2  25.273
  3  61.9363
  4  0.00471834
  5  2.37024
  6  2.456e-06
  7  2.50332
  8  1.0575e-05
  9  45.9312
  10  12.7044
  11  40.4476
  12  28.6511
  13  6.00975e-06
  14  1.44408e-06
  15  3.57405e-05
  16  1.71643e-05
  17  1.00904e-05
  18  1.32399e-06
  19  2.82039
  20  2.04977e-06
  21  1.49558e-07
  22  4.4984e-07
  23  1.154e-05
  24  0.295812
  25  0.172009
Done.

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

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  5.733e+00  1.270e+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:  8.182e-01  1.720e-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.870e+00  2.958e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/484927/likelihoodResults_404179201_404438401_4FGL_J2126.3-4605_daily_bin636.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) = 5932.20366875
delta logL = 1.8071778082

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5931.22875088
delta logL = 2.78209567821

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39506E-03   1.0000         .10000E-03   10000.    
     2 'Index     '   10.0000       1.0000          .0000       10.000    
     3 'Normalizat'    1.7351       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87621       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=   5931.229     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      345 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .39515E-03    .90034E-02    .22535E-03** at limit **
   2  Index        10.0000        6.3507        .50000    ** at limit **
   3  Normalizat    1.7352        .18786        .65307E-01    .68770E-05
   4  Prefactor     .87613        .11137        .44701E-01    .69247E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000395151
  Index      = 10
  Normalizat = 1.73516
  Prefactor  = 0.876128
 **********
 **   18 **HESSE 
 **********

 FCN=   5931.229     FROM HESSE     STATUS=OK            39 CALLS      384 TOTAL
                     EDM=   .68E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .39515E-03    .24937E-03    .97315E-05   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        .42282        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.7352        .29267        .28884E-03   -.71368    
   4  Prefactor     .87613        .17459        .23418E-03   -.96980    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.78155e-12
Minuit parameter uncertainties:
  1  0.000249371
  2  1.12953e-06
  3  0.29296
  4  0.174698
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/484927': 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) = 5931.22875041
delta logL = 2.78209615237

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  3.952e-04  2.494e-04  1.000e-04  1.000e+04 ( 1.000e-12)
281        Index:  1.000e+01  1.130e-06  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.761e-01  1.747e-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.735e+00  2.930e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.04
Ra Dec: 321.595 -46.098
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 1.55e-07 +/- 9.50e-08
Energy Flux (Free Index): 1.74e-05 +/- 1.07e-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/484927/cmap_HighResolution_404179201_404438401_4FGL_J2126.3-4605_daily_bin636.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.41e-02', comment='SUCCESS', energy_flux2='1.74e-05', dlogl='2.78e+00', photon_flux2='1.55e-07', job_status='DONE', time_completed='2021-09-26 13:30:13.936651', photon_index_error2='0.00', photon_index2='10.00', ts='0.24', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.81e-07', energy_flux_error2='1.07e-05', EG='1.87', time_epoch_completed='1632688213.94', return_code='0', job_id='484927', GAL2='0.88', EG2='1.74', return_code2='0', photon_flux_error2='9.50e-08', ts2='6.04', photon_index='2.55' WHERE bin_id='636' AND source_name='4FGL J2126.3-4605' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:30:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 484927: <4FGL_J2126.3-4605_daily_bin636> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2126.3-4605_daily_bin636 321.595 -46.0978 404179201 404438401 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 :                                   689.33 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             269.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            869 sec.

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

