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


Performing analysis on: 4FGL_J2126.3-4605_daily_bin1633
RA = 321.595, Dec = -46.0978
tmin = 662601601, tmax = 662860801
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='692901', job_status='RUN', time_executed='2022-01-03 00:36:58.900361', time_epoch_executed='1641199018.9' WHERE source_name='4FGL J2126.3-4605' and cadence='daily' and bin_id='1633'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/692901

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/692901/ft1_4FGL_J2126.3-4605_daily_bin1633.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/692901/ft2_4FGL_J2126.3-4605_daily_bin1633.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/692901/ft1_4FGL_J2126.3-4605_daily_bin1633.fits outfile=/scratch/kocevski/692901/ft1_filteredMKT_4FGL_J2126.3-4605_daily_bin1633.fits ra=321.595 dec=-46.0978 rad=12.0 tmin=662601601.0 tmax=662860801.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 2.95
user 2.73
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/692901/ft1_filtered_4FGL_J2126.3-4605_daily_bin1633.fits" evtable="EVENTS" scfile=/scratch/kocevski/692901/ft2_4FGL_J2126.3-4605_daily_bin1633.fits sctable="SC_DATA" outfile=/scratch/kocevski/692901/ltcube_662601601_662860801_4FGL_J2126.3-4605_daily_bin1633.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/692901/ft2_4FGL_J2126.3-4605_daily_bin1633.fits
.....................!
real 12.76
user 12.38
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/692901/ft1_filtered_4FGL_J2126.3-4605_daily_bin1633.fits evtable="EVENTS" scfile=/scratch/kocevski/692901/ft2_4FGL_J2126.3-4605_daily_bin1633.fits sctable="SC_DATA" expcube=/scratch/kocevski/692901/ltcube_662601601_662860801_4FGL_J2126.3-4605_daily_bin1633.fits outfile=/scratch/kocevski/692901/expmap_662601601_662860801_4FGL_J2126.3-4605_daily_bin1633.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/692901/ltcube_662601601_662860801_4FGL_J2126.3-4605_daily_bin1633.fits
.....................!
real 190.08
user 184.99
sys 4.75

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/692901/ft1_filtered_4FGL_J2126.3-4605_daily_bin1633.fits scfile=/scratch/kocevski/692901/ft2_4FGL_J2126.3-4605_daily_bin1633.fits outfile=/scratch/kocevski/692901/cmap_662601601_662860801_4FGL_J2126.3-4605_daily_bin1633.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/692901/ft1_filtered_4FGL_J2126.3-4605_daily_bin1633.fits scfile=/scratch/kocevski/692901/ft2_4FGL_J2126.3-4605_daily_bin1633.fits outfile=/scratch/kocevski/692901/cmap_HighResolution_662601601_662860801_4FGL_J2126.3-4605_daily_bin1633.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/692901/ft1_filtered_4FGL_J2126.3-4605_daily_bin1633.fits evtable="EVENTS" scfile=/scratch/kocevski/692901/ft2_4FGL_J2126.3-4605_daily_bin1633.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/692901/Model_4FGL_J2126.3-4605_daily_bin1633.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/692901/ft1_filtered_4FGL_J2126.3-4605_daily_bin1633.fits.....................!
real 41.67
user 40.40
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1339       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 '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.1318       1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.886       1.0000         .10000E-03   10000.    
     7 'norm      '    3.9288       1.0000         .10000E-03   10000.    
     8 'Prefactor '    53.357       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.5940       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.122       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.0479       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.7915       1.0000         .10000E-03   10000.    
    14 'norm      '    9.0923       1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.498       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.1581       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.9017       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10861E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.6430       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .35221       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3475       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=   5140.287     FROM MIGRAD    STATUS=CONVERGED    586 CALLS     2970 TOTAL
                     EDM=   .49E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1334        6.8097       -.98430E-06   -.53354E-04
   2  norm          .10000E-03    20.322        .71577E-06** at limit **
   3  Prefactor     .10000E-03    23.032       -.12349E-05** at limit **
   4  Prefactor     .10000E-03    134.81       -.16487E-05** at limit **
   5  Prefactor     6.1313        7.4247       -.12826E-06   -.37938E-04
   6  Prefactor     22.886        47.409        .62193E-07   -.39994E-05
   7  norm          3.9287        3.3219        .15865E-06    .63408E-04
   8  Prefactor     53.344        39.518        .11901E-05    .10103E-04
   9  Prefactor     .10000E-03    53.762       -.10106E-05** at limit **
  10  Prefactor     1.5920        12.223       -.11141E-05   -.58230E-04
  11  Prefactor     16.113        36.031        .14929E-05    .25484E-04
  12  Prefactor     7.0487        24.944        .87388E-07   -.45900E-05
  13  Prefactor     3.7916        4.3314        .17422E-06    .27874E-04
  14  norm          9.0925        5.9885       -.13020E-06   -.35522E-05
  15  Prefactor     22.499        10.948        .11815E-06   -.21248E-04
  16  Prefactor     .10000E-03    6.3905       -.67065E-07** at limit **
  17  Prefactor     .10000E-03    32.415        .98145E-06** at limit **
  18  Prefactor     3.1611        5.6832       -.70765E-07   -.57100E-04
  19  Prefactor     3.9027        3.8344        .12809E-05   -.11344E-03
  20  Prefactor     .10000E-03    140.77        .20619E-05** at limit **
  21  norm          .10000E-03    1.9588       -.53277E-08** at limit **
  22  Prefactor     5.6436        3.6865        .28522E-06   -.46106E-04
  23  Prefactor     .10000E-03    2.6667       -.58361E-07** at limit **
  24  Normalizat    .35191        .28694       -.50866E-06    .44609E-04
  25  Prefactor     1.3478        .18458       -.28003E-06    .63551E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.13339
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.13133
  Prefactor  = 22.8865
  norm       = 3.92872
  Prefactor  = 53.3438
  Prefactor  = 0.0001
  Prefactor  = 1.59202
  Prefactor  = 16.1133
  Prefactor  = 7.04872
  Prefactor  = 3.7916
  norm       = 9.09248
  Prefactor  = 22.4986
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.16114
  Prefactor  = 3.90266
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.64357
  Prefactor  = 0.0001
  Normalizat = 0.351908
  Prefactor  = 1.34776
 **********
 **   18 **HESSE 
 **********

 FCN=   5140.287     FROM HESSE     STATUS=OK           433 CALLS     3403 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1334        6.7862        .28221E-03   -1.5416    
   2  norm          .10000E-03    20.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    23.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    134.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.1313        7.3919        .16213E-03   -1.5213    
   6  Prefactor     22.886        47.124        .83730E-04   -1.4751    
   7  norm          3.9287        3.3016        .11268E-03   -1.5312    
   8  Prefactor     53.344        39.459        .54909E-04   -1.4246    
   9  Prefactor     .10000E-03    53.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.5920        12.210        .33599E-03   -1.5456    
  11  Prefactor     16.113        35.844        .99750E-04   -1.4905    
  12  Prefactor     7.0487        24.727        .15111E-03   -1.5177    
  13  Prefactor     3.7916        4.3050        .15046E-03   -1.5319    
  14  norm          9.0925        5.9760        .12614E-03   -1.5105    
  15  Prefactor     22.499        10.856        .84446E-04   -1.4759    
  16  Prefactor     .10000E-03    6.4339        .17685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    32.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.1611        5.6048        .21244E-03   -1.5352    
  19  Prefactor     3.9027        3.8445        .64214E-03   -1.5313    
  20  Prefactor     .10000E-03    140.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.9618        .97997E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.6436        3.6769        .52690E-03   -1.5233    
  23  Prefactor     .10000E-03    2.6769        .11431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .35191        .27233        .45330E-03   -1.1987    
  25  Prefactor     1.3478        .18187        .17744E-03   -.81898    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.35645e-11
Minuit parameter uncertainties:
  1  6.78865
  2  1.99878e-05
  3  2.66144e-05
  4  8.60936e-05
  5  7.39303
  6  47.2011
  7  3.30178
  8  39.4788
  9  3.16498e-05
  10  8.82009
  11  35.8916
  12  24.7629
  13  4.3054
  14  5.97644
  15  10.8566
  16  7.58861e-06
  17  1.34396e-05
  18  5.60569
  19  3.84477
  20  0.000190041
  21  7.82152e-07
  22  3.67703
  23  4.796e-06
  24  0.273358
  25  0.181957
Done.

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

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  1.592e+00  8.820e+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:  1.348e+00  1.820e-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:  3.519e-01  2.734e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 321.595 -46.098
Photon Flux Upper Limit: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/692901/likelihoodResults_662601601_662860801_4FGL_J2126.3-4605_daily_bin1633.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) = 5137.43222263
delta logL = 2.85491926362

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5137.31930883
delta logL = 2.9678330604

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13562E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    7.6478       1.0000          .0000       10.000    
     3 'Normalizat'    .21534       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4076       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=   5137.319     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      288 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13418E-01    .12946        .90907E-03    .30490E-02
   2  Index         7.6553        3.2158        .12337        .83068E-04
   3  Normalizat    .21604        .75150E-01    .12995        .68533E-04
   4  Prefactor     1.4070        .55532E-01    .30957E-01   -.15219E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0134183
  Index      = 7.65534
  Normalizat = 0.21604
  Prefactor  = 1.40701
 **********
 **   18 **HESSE 
 **********

 FCN=   5137.319     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      321 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13418E-01    .20981        .43956E-05   -1.5685    
   2  Index         7.6553        7.7180        .52619E-02    .55986    
   3  Normalizat    .21604        .22115        .57230E-03   -1.2826    
   4  Prefactor     1.4070        .16173        .17375E-03   -.80178    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.96871e-10
Minuit parameter uncertainties:
  1  0.105723
  2  4.87046
  3  0.222049
  4  0.161784
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/692901': 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) = 5137.31929486
delta logL = 2.96784702937

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  1.342e-02  1.057e-01  1.000e-04  1.000e+04 ( 1.000e-12)
281        Index:  7.655e+00  4.870e+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:  1.407e+00  1.618e-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:  2.160e-01  2.220e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.32
Ra Dec: 321.595 -46.098
Photon Index (Free Index): 7.66 +/- 4.87
Photon Flux (Free Index): 1.20e-07 +/- 6.61e-08
Energy Flux (Free Index): 1.41e-05 +/- 8.42e-06

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/692901/cmap_HighResolution_662601601_662860801_4FGL_J2126.3-4605_daily_bin1633.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.30e-03', comment='SUCCESS', energy_flux2='1.41e-05', dlogl='2.97e+00', photon_flux2='1.20e-07', job_status='DONE', time_completed='2022-01-03 00:47:07.501317', photon_index_error2='4.87', photon_index2='7.66', ts='0.04', fit_tolerance='1e-08', GAL='1.35', photon_index_error='0.00', photon_flux_upper_limit='1.19e-07', energy_flux_error2='8.42e-06', EG='0.35', time_epoch_completed='1641199627.5', return_code='0', job_id='692901', GAL2='1.41', EG2='0.22', return_code2='102', photon_flux_error2='6.61e-08', ts2='6.32', photon_index='2.55' WHERE bin_id='1633' AND source_name='4FGL J2126.3-4605' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jan  3 00:47:07 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 692901: <4FGL_J2126.3-4605_daily_bin1633> in cluster <slac> Done

Job <4FGL_J2126.3-4605_daily_bin1633> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Mon Jan  3 00:35:22 2022
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jan  3 00:35:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jan  3 00:35:24 2022
Terminated at Mon Jan  3 00:47:08 2022
Results reported at Mon Jan  3 00:47:08 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2126.3-4605_daily_bin1633 321.595 -46.0978 662601601 662860801 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 :                                   611.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            706 sec.

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

