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


Performing analysis on: 4FGL_J2126.3-4605_daily_bin806
RA = 321.595, Dec = -46.0978
tmin = 448243201, tmax = 448502401
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='486173', job_status='RUN', time_executed='2021-09-26 13:21:01.313351', time_epoch_executed='1632687661.31' WHERE source_name='4FGL J2126.3-4605' and cadence='daily' and bin_id='806'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/486173

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/486173/ft1_4FGL_J2126.3-4605_daily_bin806.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/486173/ft2_4FGL_J2126.3-4605_daily_bin806.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/486173/ft1_4FGL_J2126.3-4605_daily_bin806.fits outfile=/scratch/kocevski/486173/ft1_filteredMKT_4FGL_J2126.3-4605_daily_bin806.fits ra=321.595 dec=-46.0978 rad=12.0 tmin=448243201.0 tmax=448502401.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 4.50
user 4.21
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/486173/ft1_filtered_4FGL_J2126.3-4605_daily_bin806.fits" evtable="EVENTS" scfile=/scratch/kocevski/486173/ft2_4FGL_J2126.3-4605_daily_bin806.fits sctable="SC_DATA" outfile=/scratch/kocevski/486173/ltcube_448243201_448502401_4FGL_J2126.3-4605_daily_bin806.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/486173/ft2_4FGL_J2126.3-4605_daily_bin806.fits
.....................!
real 10.84
user 10.33
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/486173/ft1_filtered_4FGL_J2126.3-4605_daily_bin806.fits evtable="EVENTS" scfile=/scratch/kocevski/486173/ft2_4FGL_J2126.3-4605_daily_bin806.fits sctable="SC_DATA" expcube=/scratch/kocevski/486173/ltcube_448243201_448502401_4FGL_J2126.3-4605_daily_bin806.fits outfile=/scratch/kocevski/486173/expmap_448243201_448502401_4FGL_J2126.3-4605_daily_bin806.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/486173/ltcube_448243201_448502401_4FGL_J2126.3-4605_daily_bin806.fits
.....................!
real 158.19
user 151.77
sys 5.14

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/486173/ft1_filtered_4FGL_J2126.3-4605_daily_bin806.fits scfile=/scratch/kocevski/486173/ft2_4FGL_J2126.3-4605_daily_bin806.fits outfile=/scratch/kocevski/486173/cmap_448243201_448502401_4FGL_J2126.3-4605_daily_bin806.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=321.595 yref=-46.0978 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.47
user 0.33
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/486173/ft1_filtered_4FGL_J2126.3-4605_daily_bin806.fits scfile=/scratch/kocevski/486173/ft2_4FGL_J2126.3-4605_daily_bin806.fits outfile=/scratch/kocevski/486173/cmap_HighResolution_448243201_448502401_4FGL_J2126.3-4605_daily_bin806.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.60
user 0.32
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/486173/ft1_filtered_4FGL_J2126.3-4605_daily_bin806.fits evtable="EVENTS" scfile=/scratch/kocevski/486173/ft2_4FGL_J2126.3-4605_daily_bin806.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/486173/Model_4FGL_J2126.3-4605_daily_bin806.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/486173/ft1_filtered_4FGL_J2126.3-4605_daily_bin806.fits....................!
real 64.25
user 62.88
sys 1.04

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.2985       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.5090       1.0000         .10000E-03   10000.    
     7 'norm      '    10.393       1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.998       1.0000         .10000E-03   10000.    
     9 'Prefactor '    40.032       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.1929       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.747       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.3173       1.0000         .10000E-03   10000.    
    14 'norm      '    6.6130       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .30409       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.6011       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.537       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.0474       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11008E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    6.1509       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .58159       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2514       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=   11299.67     FROM MIGRAD    STATUS=CONVERGED    573 CALLS     2540 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.0055       -.21465E-07** at limit **
   2  norm          .10000E-03    9.2097        .78727E-05** at limit **
   3  Prefactor     6.3051        12.925       -.14845E-07   -.48662E-03
   4  Prefactor     .10000E-03    20.742        .43487E-05** at limit **
   5  Prefactor     .10000E-03    1.3738        .80561E-07** at limit **
   6  Prefactor     6.5067        14.093       -.94058E-07   -.10629E-04
   7  norm          10.392        2.0188       -.35062E-09   -.33286E-04
   8  Prefactor     25.995        17.795       -.11417E-05   -.55110E-04
   9  Prefactor     40.029        35.277       -.29655E-05   -.31908E-04
  10  Prefactor     6.1932        5.9888        .48731E-06    .90471E-05
  11  Prefactor     15.745        15.726       -.57276E-06   -.11061E-04
  12  Prefactor     .10000E-03    11.185       -.61770E-05** at limit **
  13  Prefactor     2.3178        3.1262       -.32684E-06   -.22795E-03
  14  norm          6.6133        3.0472        .78938E-06    .32123E-03
  15  Prefactor     .28612        2.8927        .11281E-06   -.28462E-03
  16  Prefactor     2.6014        2.6407       -.46012E-07    .72851E-04
  17  Prefactor     .10000E-03    8.3782       -.37865E-05** at limit **
  18  Prefactor     12.534        8.4357       -.36612E-06    .25983E-04
  19  Prefactor     3.0481        1.8501        .54350E-06   -.41700E-02
  20  Prefactor     .10000E-03    34.343       -.34483E-05** at limit **
  21  norm          6.1508        5.2234       -.63886E-07    .25013E-03
  22  Prefactor     .10000E-03    1.5397       -.18465E-07** at limit **
  23  Prefactor     .10000E-03    3.9025       -.46163E-07** at limit **
  24  Normalizat    .58143        .17609        .61806E-07    .12441E-05
  25  Prefactor     1.2515        .10637        .12003E-07   -.48366E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.30505
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.50666
  norm       = 10.3925
  Prefactor  = 25.9945
  Prefactor  = 40.0287
  Prefactor  = 6.19321
  Prefactor  = 15.7448
  Prefactor  = 0.0001
  Prefactor  = 2.31783
  norm       = 6.61329
  Prefactor  = 0.286116
  Prefactor  = 2.60141
  Prefactor  = 0.0001
  Prefactor  = 12.5339
  Prefactor  = 3.04807
  Prefactor  = 0.0001
  norm       = 6.15082
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.581425
  Prefactor  = 1.25155
 **********
 **   18 **HESSE 
 **********

 FCN=   11299.67     FROM HESSE     STATUS=OK           437 CALLS     2977 TOTAL
                     EDM=   .87E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1904        .20705E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    9.2940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.3051        13.163        .79971E-03   -1.5206    
   4  Prefactor     .10000E-03    20.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.4103        .24304E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.5067        14.064        .15730E-03   -1.5198    
   7  norm          10.392        2.0174        .63088E-04   -1.5063    
   8  Prefactor     25.995        17.823        .78566E-04   -1.4688    
   9  Prefactor     40.029        35.250        .31676E-03   -1.4442    
  10  Prefactor     6.1932        5.9767        .16132E-03   -1.5210    
  11  Prefactor     15.745        15.718        .10093E-03   -1.4914    
  12  Prefactor     .10000E-03    11.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.3178        3.1096        .20835E-03   -1.5403    
  14  norm          6.6133        3.0476        .12072E-03   -1.5194    
  15  Prefactor     .28612        12.194        .34560E-02   -1.5601    
  16  Prefactor     2.6014        2.6480        .16935E-03   -1.5385    
  17  Prefactor     .10000E-03    8.3920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.534        8.4796        .11313E-03   -1.5000    
  19  Prefactor     3.0481        3.6501        .10546E-02   -1.5359    
  20  Prefactor     .10000E-03    34.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.1508        5.2391        .80937E-03   -1.5212    
  22  Prefactor     .10000E-03    1.5540        .12878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.9248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .58143        .19073        .39839E-03   -1.0878    
  25  Prefactor     1.2515        .11645        .17908E-03   -.84759    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.65046e-08
Minuit parameter uncertainties:
  1  1.00639e-06
  2  0.000109269
  3  13.1695
  4  0.000102001
  5  2.61412e-06
  6  14.071
  7  2.01738
  8  17.8271
  9  35.2683
  10  5.97723
  11  15.7223
  12  9.02983e-05
  13  3.10977
  14  3.04767
  15  3.73594
  16  2.64815
  17  5.63722e-05
  18  8.48045
  19  3.65033
  20  9.32256e-05
  21  5.23945
  22  4.70516e-07
  23  4.25958e-08
  24  0.190945
  25  0.116475
Done.

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

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  6.193e+00  5.977e+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.252e+00  1.165e-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.814e-01  1.909e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.55
Ra Dec: 321.595 -46.098
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 3.35e-08 +/- 3.23e-08
Energy Flux (Fixed Index): 9.19e-06 +/- 8.87e-06

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

Saving results to:
/scratch/kocevski/486173/likelihoodResults_448243201_448502401_4FGL_J2126.3-4605_daily_bin806.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) = 11299.6196849
delta logL = 0.0546881315804

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11299.6053491
delta logL = 0.0690239876221

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2036       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9905       1.0000          .0000       10.000    
     3 'Normalizat'    .56293       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2589       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=   11299.61     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      270 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2024        8.8168        .17622E-03   -.93481E-03
   2  Index         2.9904        1.6850        .12084E-01   -.14089E-03
   3  Normalizat    .56258        .19063        .40458E-03   -.58426E-03
   4  Prefactor     1.2592        .11801        .17860E-03   -.17398E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.20237
  Index      = 2.99039
  Normalizat = 0.562575
  Prefactor  = 1.2592
 **********
 **   18 **HESSE 
 **********

 FCN=   11299.61     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2024        6.9070        .70488E-05   -1.5252    
   2  Index         2.9904        1.3279        .48335E-03   -.41362    
   3  Normalizat    .56258        .18763        .16183E-04   -1.0960    
   4  Prefactor     1.2592        .11672        .35721E-04   -.84528    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76244e-09
Minuit parameter uncertainties:
  1  6.90801
  2  1.34729
  3  0.18784
  4  0.116745
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/486173': 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) = 11299.6053451
delta logL = 0.0690279872324

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  5.202e+00  6.908e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        Index:  2.990e+00  1.347e+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.259e+00  1.167e-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.626e-01  1.878e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.72
Ra Dec: 321.595 -46.098
Photon Index (Free Index): 2.99 +/- 1.35
Photon Flux (Free Index): 4.69e-08 +/- 5.10e-08
Energy Flux (Free Index): 9.41e-06 +/- 8.17e-06

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/486173/cmap_HighResolution_448243201_448502401_4FGL_J2126.3-4605_daily_bin806.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.98e-03', comment='SUCCESS', photon_flux='3.35e-08', energy_flux2='9.41e-06', photon_flux_error='3.23e-08', dlogl='6.90e-02', energy_flux='9.19e-06', photon_flux2='4.69e-08', job_status='DONE', time_completed='2021-09-26 13:34:06.548500', photon_index_error2='1.35', photon_index2='2.99', ts='1.55', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', photon_flux_upper_limit='1.02e-07', energy_flux_error2='8.17e-06', EG='0.58', time_epoch_completed='1632688446.55', return_code='0', job_id='486173', GAL2='1.26', EG2='0.56', return_code2='0', energy_flux_error='8.87e-06', photon_flux_error2='5.10e-08', ts2='1.72', photon_index='2.55' WHERE bin_id='806' AND source_name='4FGL J2126.3-4605' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:34:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 486173: <4FGL_J2126.3-4605_daily_bin806> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2126.3-4605_daily_bin806 321.595 -46.0978 448243201 448502401 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 :                                   780.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            824 sec.

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

