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


Performing analysis on: 4FGL_J2126.3-4605_daily_bin971
RA = 321.595, Dec = -46.0978
tmin = 491011201, tmax = 491270401
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='486426', job_status='RUN', time_executed='2021-09-26 13:24:52.502035', time_epoch_executed='1632687892.5' WHERE source_name='4FGL J2126.3-4605' and cadence='daily' and bin_id='971'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/486426

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/486426/ft1_4FGL_J2126.3-4605_daily_bin971.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/486426/ft2_4FGL_J2126.3-4605_daily_bin971.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/486426/ft1_4FGL_J2126.3-4605_daily_bin971.fits outfile=/scratch/kocevski/486426/ft1_filteredMKT_4FGL_J2126.3-4605_daily_bin971.fits ra=321.595 dec=-46.0978 rad=12.0 tmin=491011201.0 tmax=491270401.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.57
user 3.34
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/486426/ft1_filtered_4FGL_J2126.3-4605_daily_bin971.fits" evtable="EVENTS" scfile=/scratch/kocevski/486426/ft2_4FGL_J2126.3-4605_daily_bin971.fits sctable="SC_DATA" outfile=/scratch/kocevski/486426/ltcube_491011201_491270401_4FGL_J2126.3-4605_daily_bin971.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/486426/ft2_4FGL_J2126.3-4605_daily_bin971.fits
.....................!
real 14.82
user 14.44
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/486426/ft1_filtered_4FGL_J2126.3-4605_daily_bin971.fits evtable="EVENTS" scfile=/scratch/kocevski/486426/ft2_4FGL_J2126.3-4605_daily_bin971.fits sctable="SC_DATA" expcube=/scratch/kocevski/486426/ltcube_491011201_491270401_4FGL_J2126.3-4605_daily_bin971.fits outfile=/scratch/kocevski/486426/expmap_491011201_491270401_4FGL_J2126.3-4605_daily_bin971.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/486426/ltcube_491011201_491270401_4FGL_J2126.3-4605_daily_bin971.fits
.....................!
real 190.64
user 186.11
sys 4.13

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/486426/ft1_filtered_4FGL_J2126.3-4605_daily_bin971.fits scfile=/scratch/kocevski/486426/ft2_4FGL_J2126.3-4605_daily_bin971.fits outfile=/scratch/kocevski/486426/cmap_491011201_491270401_4FGL_J2126.3-4605_daily_bin971.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.62
user 0.37
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/486426/ft1_filtered_4FGL_J2126.3-4605_daily_bin971.fits scfile=/scratch/kocevski/486426/ft2_4FGL_J2126.3-4605_daily_bin971.fits outfile=/scratch/kocevski/486426/cmap_HighResolution_491011201_491270401_4FGL_J2126.3-4605_daily_bin971.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.84
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/486426/ft1_filtered_4FGL_J2126.3-4605_daily_bin971.fits evtable="EVENTS" scfile=/scratch/kocevski/486426/ft2_4FGL_J2126.3-4605_daily_bin971.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/486426/Model_4FGL_J2126.3-4605_daily_bin971.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/486426/ft1_filtered_4FGL_J2126.3-4605_daily_bin971.fits.....................!
real 47.04
user 45.55
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2041       1.0000         .10000E-03   10000.    
     2 'norm      '    18.635       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    88.641       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.3645       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.0083       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8676       1.0000         .10000E-03   10000.    
    14 'norm      '    4.0798       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    160.83       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .89219       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .29369       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.2804       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1618       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0023       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=   5451.234     FROM MIGRAD    STATUS=CONVERGED   1089 CALLS     3456 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2039        4.8427        .19245E-03   -.31131E-04
   2  norm          18.616        26.203        .92780E-04    .17155E-05
   3  Prefactor     .10000E-03    42.040        .18142E-02** at limit **
   4  Prefactor     88.603        109.27        .42676E-04   -.17955E-04
   5  Prefactor     2.3645        2.5021        .11685E-03   -.15402E-03
   6  Prefactor     .10000E-03    33.176        .18142E-02** at limit **
   7  norm          2.0084        1.9742        .98473E-04   -.44564E-04
   8  Prefactor     .10000E-03    25.110        .18142E-02** at limit **
   9  Prefactor     .10000E-03    20.240        .18142E-02** at limit **
  10  Prefactor     .10000E-03    3.0112        .12490E-02** at limit **
  11  Prefactor     .10000E-03    10.641        .18142E-02** at limit **
  12  Prefactor     .10000E-03    8.1179        .18142E-02** at limit **
  13  Prefactor     2.8668        4.1010        .17249E-03    .16114E-03
  14  norm          4.0802        3.6830        .13081E-03   -.63616E-04
  15  Prefactor     .10000E-03    10.624        .18142E-02** at limit **
  16  Prefactor     .10000E-03    9.2250        .18142E-02** at limit **
  17  Prefactor     160.74        77.093        .15899E-03    .14659E-04
  18  Prefactor     .91279        106.58        .47316E-02    .83410E-04
  19  Prefactor     .10000E-03    1.8792        .98345E-03** at limit **
  20  Prefactor     .10002E-03    294.55        .23866    ** at limit **
  21  norm          .10000E-03    3.4038        .13297E-02** at limit **
  22  Prefactor     3.2810        4.9714        .19573E-03    .31888E-04
  23  Prefactor     .10000E-03    5.2272        .16449E-02** at limit **
  24  Normalizat    1.1615        .28492        .30539E-03   -.81898E-06
  25  Prefactor     1.0024        .17137        .20276E-03    .32128E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.20392
  norm       = 18.6156
  Prefactor  = 0.0001
  Prefactor  = 88.6033
  Prefactor  = 2.36449
  Prefactor  = 0.0001
  norm       = 2.00838
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.86682
  norm       = 4.08025
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 160.744
  Prefactor  = 0.912788
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  norm       = 0.0001
  Prefactor  = 3.28102
  Prefactor  = 0.0001
  Normalizat = 1.16151
  Prefactor  = 1.00244
 **********
 **   18 **HESSE 
 **********

 FCN=   5451.234     FROM HESSE     STATUS=OK           413 CALLS     3869 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2039        4.8422        .76981E-05   -1.5350    
   2  norm          18.616        26.205        .37112E-05   -1.4845    
   3  Prefactor     .10000E-03    42.044        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     88.603        109.25        .85352E-05   -1.3823    
   5  Prefactor     2.3645        2.5019        .46739E-05   -1.5400    
   6  Prefactor     .10000E-03    33.190        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.0084        1.9739        .39389E-05   -1.5425    
   8  Prefactor     .10000E-03    25.112        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.241        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.0113        .24980E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.641        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.1181        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.8668        4.0996        .68998E-05   -1.5369    
  14  norm          4.0802        3.6828        .52326E-05   -1.5304    
  15  Prefactor     .10000E-03    10.629        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.2287        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     160.74        75.288        .63595E-05   -1.3165    
  18  Prefactor     .91279        84.839        .18926E-03   -1.5517    
  19  Prefactor     .10000E-03    1.8794        .19669E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10002E-03    246.20        .23866       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.4039        .26594E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.2810        4.9709        .78292E-05   -1.5346    
  23  Prefactor     .10000E-03    5.2279        .32899E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1615        .28451        .12216E-04   -.87801    
  25  Prefactor     1.0024        .17150        .81103E-05   -.92648    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.78757e-11
Minuit parameter uncertainties:
  1  4.84279
  2  26.2212
  3  0.000113636
  4  109.499
  5  2.50206
  6  0.000140672
  7  1.97398
  8  2.05412e-05
  9  1.42773e-05
  10  8.10717e-06
  11  2.18371e-05
  12  7.72578e-06
  13  4.09999
  14  3.68304
  15  6.22604e-05
  16  4.82187e-05
  17  75.3326
  18  17.6249
  19  3.59638e-06
  20  0.00437572
  21  7.7844e-07
  22  4.97151
  23  8.43694e-06
  24  0.284884
  25  0.171597
Done.

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

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  1.000e-04  8.107e-06  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.002e+00  1.716e-01  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
547   Normalization:  1.162e+00  2.849e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/486426/likelihoodResults_491011201_491270401_4FGL_J2126.3-4605_daily_bin971.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5451.23515146
delta logL = -0.00157374369792

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5451.23357769
delta logL = 3.05808498524e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5442       1.0000          .0000       10.000    
     3 'Normalizat'    1.1615       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0025       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=   5451.234     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      253 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.407        .12542E-01** at limit **
   2  Index         2.2187        8.7941        .50000       -.29195E-07
   3  Normalizat    1.1615        .15260E-01    .30540E-03    .41469E-04
   4  Prefactor     1.0024        .95464E-02    .20275E-03    .67790E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.21865
  Normalizat = 1.16151
  Prefactor  = 1.00244
 **********
 **   18 **HESSE 
 **********

 FCN=   5451.234     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      282 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    196.67        .12956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2187        5.7883        .50000       -.58989    
   3  Normalizat    1.1615        .50618E-01    .12216E-04   -.87801    
   4  Prefactor     1.0024        .31667E-01    .81102E-05   -.92648    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.82995e-10
Minuit parameter uncertainties:
  1  8.73289e-05
  2  867.725
  3  0.0506196
  4  0.0316674
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/486426': 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) = 5451.23357653
delta logL = 1.19061496662e-06

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  1.000e-04  8.733e-05  1.000e-04  1.000e+04 ( 1.000e-12)
281        Index:  2.219e+00  8.677e+02  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.002e+00  3.167e-02  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
547   Normalization:  1.162e+00  5.062e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/486426/cmap_HighResolution_491011201_491270401_4FGL_J2126.3-4605_daily_bin971.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.91e-03', job_status='DONE', photon_flux_upper_limit='7.57e-08', time_completed='2021-09-26 13:36:18.110434', job_id='486426', GAL2='1.00', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1632688578.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.19e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='971' AND source_name='4FGL J2126.3-4605' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:36:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 486426: <4FGL_J2126.3-4605_daily_bin971> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2126.3-4605_daily_bin971 321.595 -46.0978 491011201 491270401 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 :                                   684.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             310.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            933 sec.

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

