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


Performing analysis on: 4FGL_J2126.3-4605_daily_bin752
RA = 321.595, Dec = -46.0978
tmin = 434246401, tmax = 434505601
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='486089', job_status='RUN', time_executed='2021-09-26 13:22:38.319459', time_epoch_executed='1632687758.32' WHERE source_name='4FGL J2126.3-4605' and cadence='daily' and bin_id='752'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/486089

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/486089/ft1_4FGL_J2126.3-4605_daily_bin752.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/486089/ft2_4FGL_J2126.3-4605_daily_bin752.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/486089/ft1_4FGL_J2126.3-4605_daily_bin752.fits outfile=/scratch/kocevski/486089/ft1_filteredMKT_4FGL_J2126.3-4605_daily_bin752.fits ra=321.595 dec=-46.0978 rad=12.0 tmin=434246401.0 tmax=434505601.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 6.34
user 5.73
sys 0.26

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/486089/ft1_filtered_4FGL_J2126.3-4605_daily_bin752.fits" evtable="EVENTS" scfile=/scratch/kocevski/486089/ft2_4FGL_J2126.3-4605_daily_bin752.fits sctable="SC_DATA" outfile=/scratch/kocevski/486089/ltcube_434246401_434505601_4FGL_J2126.3-4605_daily_bin752.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/486089/ft2_4FGL_J2126.3-4605_daily_bin752.fits
.....................!
real 14.69
user 14.27
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/486089/ft1_filtered_4FGL_J2126.3-4605_daily_bin752.fits evtable="EVENTS" scfile=/scratch/kocevski/486089/ft2_4FGL_J2126.3-4605_daily_bin752.fits sctable="SC_DATA" expcube=/scratch/kocevski/486089/ltcube_434246401_434505601_4FGL_J2126.3-4605_daily_bin752.fits outfile=/scratch/kocevski/486089/expmap_434246401_434505601_4FGL_J2126.3-4605_daily_bin752.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/486089/ltcube_434246401_434505601_4FGL_J2126.3-4605_daily_bin752.fits
.....................!
real 192.24
user 186.62
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/486089/ft1_filtered_4FGL_J2126.3-4605_daily_bin752.fits scfile=/scratch/kocevski/486089/ft2_4FGL_J2126.3-4605_daily_bin752.fits outfile=/scratch/kocevski/486089/cmap_434246401_434505601_4FGL_J2126.3-4605_daily_bin752.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/486089/ft1_filtered_4FGL_J2126.3-4605_daily_bin752.fits scfile=/scratch/kocevski/486089/ft2_4FGL_J2126.3-4605_daily_bin752.fits outfile=/scratch/kocevski/486089/cmap_HighResolution_434246401_434505601_4FGL_J2126.3-4605_daily_bin752.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=321.595 yref=-46.0978 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/486089/ft1_filtered_4FGL_J2126.3-4605_daily_bin752.fits evtable="EVENTS" scfile=/scratch/kocevski/486089/ft2_4FGL_J2126.3-4605_daily_bin752.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/486089/Model_4FGL_J2126.3-4605_daily_bin752.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/486089/ft1_filtered_4FGL_J2126.3-4605_daily_bin752.fits.....................!
real 43.45
user 41.96
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0579       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 '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.3197       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.138       1.0000         .10000E-03   10000.    
     7 'norm      '    7.1759       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .70642E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.997       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.963       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.3044       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.2124       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.6314       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .31044       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.3376       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.0905       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.661       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .53332       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3250       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=   4989.174     FROM MIGRAD    STATUS=CONVERGED    586 CALLS     2909 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0582        3.5978        .59022E-06   -.17554E-03
   2  norm          .10000E-03    9.6605        .55484E-07** at limit **
   3  Prefactor     .10000E-03    16.437       -.10721E-05** at limit **
   4  Prefactor     .10000E-03    75.155        .68217E-06** at limit **
   5  Prefactor     4.3206        3.4764        .12045E-07   -.76277E-04
   6  Prefactor     12.143        19.439        .77800E-06   -.10255E-03
   7  norm          7.1772        3.2707        .48382E-07    .21505E-05
   8  Prefactor     .10009E-03    141.65       -.19470E-04** at limit **
   9  Prefactor     .10001E-03    26.006       -.50320E-05** at limit **
  10  Prefactor     15.002        10.974        .23550E-06    .58151E-04
  11  Prefactor     .10000E-03    9.1684        .27505E-07** at limit **
  12  Prefactor     29.968        22.925        .36722E-06    .75448E-04
  13  Prefactor     .10000E-03    2.2010        .61240E-07** at limit **
  14  norm          2.3048        2.8470        .18075E-07   -.63086E-04
  15  Prefactor     6.2153        10.996        .50075E-06    .20540E-04
  16  Prefactor     4.6326        7.4641       -.11322E-06   -.87993E-04
  17  Prefactor     .10000E-03    20.256        .31210E-05** at limit **
  18  Prefactor     .35636        7.1183       -.79956E-06    .13737E-03
  19  Prefactor     7.3379        4.8588       -.21154E-07    .13200E-03
  20  Prefactor     .10000E-03    39.146        .34627E-05** at limit **
  21  norm          4.0909        7.0904        .35164E-05   -.11174E-02
  22  Prefactor     10.662        5.6388        .57993E-06    .64224E-03
  23  Prefactor     .10000E-03    2.2910       -.29356E-07** at limit **
  24  Normalizat    .53312        .26577       -.14465E-05    .11109E-03
  25  Prefactor     1.3250        .16697       -.25678E-07    .24149E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.05824
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.32061
  Prefactor  = 12.1434
  norm       = 7.17722
  Prefactor  = 0.000100091
  Prefactor  = 0.000100008
  Prefactor  = 15.0016
  Prefactor  = 0.0001
  Prefactor  = 29.9676
  Prefactor  = 0.0001
  norm       = 2.30482
  Prefactor  = 6.21535
  Prefactor  = 4.63263
  Prefactor  = 0.000100003
  Prefactor  = 0.356356
  Prefactor  = 7.33793
  Prefactor  = 0.000100004
  norm       = 4.09087
  Prefactor  = 10.6623
  Prefactor  = 0.0001
  Normalizat = 0.533119
  Prefactor  = 1.32495
 **********
 **   18 **HESSE 
 **********

 FCN=   4989.174     FROM HESSE     STATUS=OK           429 CALLS     3338 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0582        3.5318        .24095E-03   -1.5502    
   2  norm          .10000E-03    9.6618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    75.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.3206        3.4720        .11386E-03   -1.5292    
   6  Prefactor     12.143        19.469        .57490E-03   -1.5011    
   7  norm          7.1772        3.2641        .81237E-04   -1.5172    
   8  Prefactor     .10009E-03    155.51        .41949E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    27.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.002        10.961        .10343E-03   -1.4933    
  11  Prefactor     .10000E-03    9.1744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     29.968        22.924        .73195E-04   -1.4613    
  13  Prefactor     .10000E-03    2.2276        .10230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.3048        2.8333        .12898E-03   -1.5404    
  15  Prefactor     6.2153        10.939        .16106E-03   -1.5209    
  16  Prefactor     4.6326        7.4369        .18702E-03   -1.5277    
  17  Prefactor     .10000E-03    20.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .35636        26.379        .34585E-02   -1.5589    
  19  Prefactor     7.3379        4.8486        .11901E-03   -1.5166    
  20  Prefactor     .10000E-03    39.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.0909        8.0367        .99667E-03   -1.5303    
  22  Prefactor     10.662        5.6772        .11645E-03   -1.5055    
  23  Prefactor     .10000E-03    2.2930        .10441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .53312        .27879        .39866E-03   -1.1090    
  25  Prefactor     1.3250        .17907        .18213E-03   -.82568    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.8811e-09
Minuit parameter uncertainties:
  1  3.53254
  2  6.40909e-06
  3  0.000157629
  4  0.000225043
  5  3.47218
  6  19.4789
  7  3.26422
  8  0.00755694
  9  0.000953839
  10  10.9622
  11  3.41049e-06
  12  22.931
  13  4.51129e-06
  14  2.83349
  15  10.9429
  16  7.43837
  17  0.00053358
  18  6.13392
  19  4.84886
  20  0.000819626
  21  8.03885
  22  5.67745
  23  2.0201e-06
  24  0.27952
  25  0.179154
Done.

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

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  1.500e+01  1.096e+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:  1.325e+00  1.792e-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:  5.331e-01  2.795e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.77
Ra Dec: 321.595 -46.098
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 8.12e-08 +/- 5.93e-08
Energy Flux (Fixed Index): 2.23e-05 +/- 1.63e-05

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

Saving results to:
/scratch/kocevski/486089/likelihoodResults_434246401_434505601_4FGL_J2126.3-4605_daily_bin752.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) = 4987.78389457
delta logL = 1.38976387915

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4987.77864616
delta logL = 1.39501229716

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3773       1.0000         .10000E-03   10000.    
     2 'Index     '    4.4005       1.0000          .0000       10.000    
     3 'Normalizat'    .44297       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3673       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=   4987.779     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      255 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3737        20.996        .66425E-02    .44121E-03
   2  Index         4.4015        3.4063        .10817        .12354E-03
   3  Normalizat    .44304        .87928E-01    .98097E-01    .51901E-04
   4  Prefactor     1.3672        .60287E-01    .31530E-01   -.30925E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.37374
  Index      = 4.40149
  Normalizat = 0.443038
  Prefactor  = 1.36722
 **********
 **   18 **HESSE 
 **********

 FCN=   4987.779     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      288 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3737        31.528        .53914E-04   -1.5400    
   2  Index         4.4015        6.9531        .44420E-02   -.11999    
   3  Normalizat    .44304        .24992        .43468E-03   -1.1513    
   4  Prefactor     1.3672        .17389        .17953E-03   -.81330    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.11299e-10
Minuit parameter uncertainties:
  1  17.3127
  2  4.97366
  3  0.25055
  4  0.173965
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/486089': 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) = 4987.77864586
delta logL = 1.39501259769

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  2.374e+00  1.731e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        Index:  4.401e+00  4.974e+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.367e+00  1.740e-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:  4.430e-01  2.506e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.88
Ra Dec: 321.595 -46.098
Photon Index (Free Index): 4.40 +/- 4.97
Photon Flux (Free Index): 1.45e-07 +/- 7.78e-08
Energy Flux (Free Index): 2.05e-05 +/- 1.82e-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/486089/cmap_HighResolution_434246401_434505601_4FGL_J2126.3-4605_daily_bin752.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.57e-02', comment='SUCCESS', photon_flux='8.12e-08', energy_flux2='2.05e-05', photon_flux_error='5.93e-08', dlogl='1.40e+00', energy_flux='2.23e-05', photon_flux2='1.45e-07', job_status='DONE', time_completed='2021-09-26 13:33:18.648179', photon_index_error2='4.97', photon_index2='4.40', ts='2.77', fit_tolerance='1e-08', GAL='1.32', photon_index_error='0.00', photon_flux_upper_limit='2.01e-07', energy_flux_error2='1.82e-05', EG='0.53', time_epoch_completed='1632688398.65', return_code='0', job_id='486089', GAL2='1.37', EG2='0.44', return_code2='102', energy_flux_error='1.63e-05', photon_flux_error2='7.78e-08', ts2='5.88', photon_index='2.55' WHERE bin_id='752' AND source_name='4FGL J2126.3-4605' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:33:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 486089: <4FGL_J2126.3-4605_daily_bin752> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2126.3-4605_daily_bin752 321.595 -46.0978 434246401 434505601 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 :                                   636.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            783 sec.

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

