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


Performing analysis on: 4FGL_J2126.3-4605_daily_bin907
RA = 321.595, Dec = -46.0978
tmin = 474422401, tmax = 474681601
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='486330', job_status='RUN', time_executed='2021-09-26 13:21:39.155640', time_epoch_executed='1632687699.16' WHERE source_name='4FGL J2126.3-4605' and cadence='daily' and bin_id='907'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/486330

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/486330/ft1_4FGL_J2126.3-4605_daily_bin907.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/486330/ft2_4FGL_J2126.3-4605_daily_bin907.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/486330/ft1_4FGL_J2126.3-4605_daily_bin907.fits outfile=/scratch/kocevski/486330/ft1_filteredMKT_4FGL_J2126.3-4605_daily_bin907.fits ra=321.595 dec=-46.0978 rad=12.0 tmin=474422401.0 tmax=474681601.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.50
user 3.21
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/486330/ft2_4FGL_J2126.3-4605_daily_bin907.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/486330/ft1_filteredMKT_4FGL_J2126.3-4605_daily_bin907.fits evtable="EVENTS" outfile="/scratch/kocevski/486330/ft1_filtered_4FGL_J2126.3-4605_daily_bin907.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.59
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/486330/ft1_filtered_4FGL_J2126.3-4605_daily_bin907.fits" evtable="EVENTS" scfile=/scratch/kocevski/486330/ft2_4FGL_J2126.3-4605_daily_bin907.fits sctable="SC_DATA" outfile=/scratch/kocevski/486330/ltcube_474422401_474681601_4FGL_J2126.3-4605_daily_bin907.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/486330/ft2_4FGL_J2126.3-4605_daily_bin907.fits
.....................!
real 13.38
user 12.99
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/486330/ft1_filtered_4FGL_J2126.3-4605_daily_bin907.fits evtable="EVENTS" scfile=/scratch/kocevski/486330/ft2_4FGL_J2126.3-4605_daily_bin907.fits sctable="SC_DATA" expcube=/scratch/kocevski/486330/ltcube_474422401_474681601_4FGL_J2126.3-4605_daily_bin907.fits outfile=/scratch/kocevski/486330/expmap_474422401_474681601_4FGL_J2126.3-4605_daily_bin907.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/486330/ltcube_474422401_474681601_4FGL_J2126.3-4605_daily_bin907.fits
.....................!
real 192.71
user 186.05
sys 4.96

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/486330/ft1_filtered_4FGL_J2126.3-4605_daily_bin907.fits scfile=/scratch/kocevski/486330/ft2_4FGL_J2126.3-4605_daily_bin907.fits outfile=/scratch/kocevski/486330/cmap_474422401_474681601_4FGL_J2126.3-4605_daily_bin907.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/486330/ft1_filtered_4FGL_J2126.3-4605_daily_bin907.fits scfile=/scratch/kocevski/486330/ft2_4FGL_J2126.3-4605_daily_bin907.fits outfile=/scratch/kocevski/486330/cmap_HighResolution_474422401_474681601_4FGL_J2126.3-4605_daily_bin907.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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/486330/ft1_filtered_4FGL_J2126.3-4605_daily_bin907.fits evtable="EVENTS" scfile=/scratch/kocevski/486330/ft2_4FGL_J2126.3-4605_daily_bin907.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/486330/Model_4FGL_J2126.3-4605_daily_bin907.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/486330/ft1_filtered_4FGL_J2126.3-4605_daily_bin907.fits.....................!
real 63.89
user 61.83
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.8426       1.0000         .10000E-03   10000.    
     2 'norm      '    .62362E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .99289       1.0000         .10000E-03   10000.    
     4 'Prefactor '    48.362       1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.201       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.3754       1.0000         .10000E-03   10000.    
     8 'Prefactor '    38.043       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.9165       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10648E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .60401       1.0000         .10000E-03   10000.    
    14 'norm      '    13.374       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.971       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .60140       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.4792       1.0000         .10000E-03   10000.    
    20 'Prefactor '    108.03       1.0000         .10000E-03   10000.    
    21 'norm      '    3.8897       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.2004       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .92062       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98777       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=   8538.182     FROM MIGRAD    STATUS=CONVERGED    598 CALLS     3375 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.8426        3.7122       -.16128E-07   -.52159E-04
   2  norm          .10065E-03    15.510        .23845E-05** at limit **
   3  Prefactor     .98825        45.501       -.14934E-05   -.41070E-04
   4  Prefactor     48.359        55.954       -.14093E-06   -.17130E-04
   5  Prefactor     18.200        4.0530       -.11163E-07   -.10605E-03
   6  Prefactor     .10000E-03    11.692        .56976E-06** at limit **
   7  norm          2.3751        1.6664        .42823E-08   -.60321E-04
   8  Prefactor     38.046        24.909        .14316E-07   -.20952E-04
   9  Prefactor     .10000E-03    11.743        .19213E-06** at limit **
  10  Prefactor     3.9148        6.1467       -.13252E-05    .16602E-04
  11  Prefactor     .10000E-03    7.8148        .17552E-06** at limit **
  12  Prefactor     .10000E-03    33.190        .17413E-05** at limit **
  13  Prefactor     .60336        3.0749        .54981E-06    .17432E-03
  14  norm          13.374        4.3967       -.35891E-07   -.32674E-04
  15  Prefactor     .10000E-03    2.2586        .40477E-06** at limit **
  16  Prefactor     .10000E-03    2.4036        .32352E-06** at limit **
  17  Prefactor     22.993        26.348        .36928E-06    .13773E-03
  18  Prefactor     .56714        27.822       -.72525E-05   -.92571E-06
  19  Prefactor     1.4790        3.2543       -.14530E-06    .14025E-03
  20  Prefactor     108.30        100.83        .82670E-05    .59932E-04
  21  norm          3.8898        3.8649        .96152E-08    .22356E-04
  22  Prefactor     7.1979        4.7378       -.26732E-06    .51312E-04
  23  Prefactor     .10000E-03    6.9717        .57521E-06** at limit **
  24  Normalizat    .92123        .18549        .31050E-05   -.97149E-04
  25  Prefactor     .98744        .11370       -.20912E-05    .14328E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.84256
  norm       = 0.000100651
  Prefactor  = 0.988254
  Prefactor  = 48.3588
  Prefactor  = 18.2
  Prefactor  = 0.0001
  norm       = 2.3751
  Prefactor  = 38.0462
  Prefactor  = 0.0001
  Prefactor  = 3.91476
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.603355
  norm       = 13.3739
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.9933
  Prefactor  = 0.567137
  Prefactor  = 1.47896
  Prefactor  = 108.297
  norm       = 3.88976
  Prefactor  = 7.19788
  Prefactor  = 0.0001
  Normalizat = 0.921233
  Prefactor  = 0.987442
 **********
 **   18 **HESSE 
 **********

 FCN=   8538.182     FROM HESSE     STATUS=OK           445 CALLS     3820 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.8426        3.7117        .13732E-03   -1.5224    
   2  norm          .10065E-03    16.342        .10795       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .98825        47.131        .52562E-02   -1.5509    
   4  Prefactor     48.359        55.932        .57661E-04   -1.4316    
   5  Prefactor     18.200        4.0536        .84660E-04   -1.4854    
   6  Prefactor     .10000E-03    11.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.3751        1.6588        .95005E-04   -1.5400    
   8  Prefactor     38.046        24.926        .64981E-04   -1.4474    
   9  Prefactor     .10000E-03    11.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.9148        6.1002        .10193E-02   -1.5312    
  11  Prefactor     .10000E-03    7.8292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    34.231        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .60336        3.0522        .30783E-03   -1.5553    
  14  norm          13.374        4.3977        .10744E-03   -1.4976    
  15  Prefactor     .10000E-03    2.2739        .13569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.4172        .13996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     22.993        26.356        .83574E-04   -1.4749    
  18  Prefactor     .56714        30.862        .40546E-02   -1.5557    
  19  Prefactor     1.4790        3.2206        .23216E-03   -1.5465    
  20  Prefactor     108.30        105.85        .19347E-03   -1.3623    
  21  norm          3.8898        3.8715        .17667E-03   -1.5313    
  22  Prefactor     7.1979        4.7525        .14948E-03   -1.5171    
  23  Prefactor     .10000E-03    7.0715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .92123        .20187        .30562E-03   -.95718    
  25  Prefactor     .98744        .12562        .19434E-03   -.93149    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26882e-07
Minuit parameter uncertainties:
  1  3.71187
  2  0.00652277
  3  13.6603
  4  55.9929
  5  4.0537
  6  2.91787e-05
  7  1.65884
  8  24.9325
  9  5.96114e-06
  10  6.10121
  11  1.13651e-05
  12  0.000125987
  13  2.71408
  14  4.39782
  15  7.10479e-06
  16  6.34114e-06
  17  26.3689
  18  8.37115
  19  3.22094
  20  106.034
  21  3.87179
  22  4.75277
  23  1.82291e-06
  24  0.202038
  25  0.125656
Done.

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

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  3.915e+00  6.101e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        Index:  2.554e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
282        Scale:  5.669e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  9.874e-01  1.257e-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:  9.212e-01  2.020e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/486330/likelihoodResults_474422401_474681601_4FGL_J2126.3-4605_daily_bin907.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) = 8538.07160863
delta logL = 0.110186427153

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8538.06100374
delta logL = 0.120791311158

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4401       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0731       1.0000          .0000       10.000    
     3 'Normalizat'    .93082       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98139       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=   8538.061     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      290 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4393        7.2269        .17228E-03   -.15178E-04
   2  Index         2.0730        .77453        .13212E-01   -.19764E-03
   3  Normalizat    .93082        .18391        .15209E-02    .34550E-04
   4  Prefactor     .98138        .12138        .19484E-03    .77604E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.43935
  Index      = 2.07299
  Normalizat = 0.930824
  Prefactor  = 0.981384
 **********
 **   18 **HESSE 
 **********

 FCN=   8538.061     FROM HESSE     STATUS=OK            25 CALLS      315 TOTAL
                     EDM=   .40E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4393        7.2182        .68912E-05   -1.5241    
   2  Index         2.0730        .77395        .26423E-02   -.62538    
   3  Normalizat    .93082        .18424        .60835E-04   -.95385    
   4  Prefactor     .98138        .12158        .77936E-05   -.93353    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.99088e-12
Minuit parameter uncertainties:
  1  7.21936
  2  0.778733
  3  0.184361
  4  0.121612
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/486330': 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) = 8538.06100373
delta logL = 0.120791319254

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  5.439e+00  7.219e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        Index:  2.073e+00  7.787e-01  0.000e+00  1.000e+01 (-1.000e+00)
282        Scale:  5.669e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  9.814e-01  1.216e-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:  9.308e-01  1.844e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/486330/cmap_HighResolution_474422401_474681601_4FGL_J2126.3-4605_daily_bin907.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.45e-03', job_status='DONE', photon_flux_upper_limit='9.54e-08', time_completed='2021-09-26 13:36:34.402265', job_id='486330', GAL2='0.98', fit_tolerance='1e-08', EG2='0.93', EG='0.92', time_epoch_completed='1632688594.4', return_code2='0', ts='0.50', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='1.21e-01', ts2='0.74', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='907' AND source_name='4FGL J2126.3-4605' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:36:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 486330: <4FGL_J2126.3-4605_daily_bin907> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2126.3-4605_daily_bin907 321.595 -46.0978 474422401 474681601 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 :                                   885.38 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             330.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            960 sec.

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

