/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 87 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7473
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2126.3-4605_daily_bin547
RA = 321.595, Dec = -46.0978
tmin = 381110401, tmax = 381369601
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='484796', job_status='RUN', time_executed='2021-09-26 13:18:39.142348', time_epoch_executed='1632687519.14' WHERE source_name='4FGL J2126.3-4605' and cadence='daily' and bin_id='547'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/484796

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/484796/ft1_4FGL_J2126.3-4605_daily_bin547.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/484796/ft2_4FGL_J2126.3-4605_daily_bin547.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/484796/ft1_4FGL_J2126.3-4605_daily_bin547.fits outfile=/scratch/kocevski/484796/ft1_filteredMKT_4FGL_J2126.3-4605_daily_bin547.fits ra=321.595 dec=-46.0978 rad=12.0 tmin=381110401.0 tmax=381369601.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.39
user 3.62
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/484796/ft1_filtered_4FGL_J2126.3-4605_daily_bin547.fits" evtable="EVENTS" scfile=/scratch/kocevski/484796/ft2_4FGL_J2126.3-4605_daily_bin547.fits sctable="SC_DATA" outfile=/scratch/kocevski/484796/ltcube_381110401_381369601_4FGL_J2126.3-4605_daily_bin547.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/484796/ft2_4FGL_J2126.3-4605_daily_bin547.fits
.....................!
real 13.52
user 11.98
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/484796/ft1_filtered_4FGL_J2126.3-4605_daily_bin547.fits evtable="EVENTS" scfile=/scratch/kocevski/484796/ft2_4FGL_J2126.3-4605_daily_bin547.fits sctable="SC_DATA" expcube=/scratch/kocevski/484796/ltcube_381110401_381369601_4FGL_J2126.3-4605_daily_bin547.fits outfile=/scratch/kocevski/484796/expmap_381110401_381369601_4FGL_J2126.3-4605_daily_bin547.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/484796/ltcube_381110401_381369601_4FGL_J2126.3-4605_daily_bin547.fits
.....................!
real 163.25
user 152.43
sys 4.12

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/484796/ft1_filtered_4FGL_J2126.3-4605_daily_bin547.fits scfile=/scratch/kocevski/484796/ft2_4FGL_J2126.3-4605_daily_bin547.fits outfile=/scratch/kocevski/484796/cmap_381110401_381369601_4FGL_J2126.3-4605_daily_bin547.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.65
user 0.33
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/484796/ft1_filtered_4FGL_J2126.3-4605_daily_bin547.fits evtable="EVENTS" scfile=/scratch/kocevski/484796/ft2_4FGL_J2126.3-4605_daily_bin547.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/484796/Model_4FGL_J2126.3-4605_daily_bin547.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/484796/ft1_filtered_4FGL_J2126.3-4605_daily_bin547.fits.....................!
real 41.76
user 38.04
sys 1.05

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.9844       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10277E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    54.956       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    14.068       1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.839       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4954       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.1647       1.0000         .10000E-03   10000.    
    11 'Prefactor '    37.553       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.7603       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.5785       1.0000         .10000E-03   10000.    
    14 'norm      '    5.5671       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.1165       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.2971       1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.563       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.8426       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    41.926       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.8764       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .17031E-02   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .98837       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0830       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=   5569.366     FROM MIGRAD    STATUS=CONVERGED    553 CALLS     3307 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.2673        .17710E-07** at limit **
   2  norm          7.9644        14.193        .16376E-06   -.27033E-05
   3  Prefactor     .10000E-03    10.378        .44467E-06** at limit **
   4  Prefactor     55.129        108.61        .19490E-04    .52002E-04
   5  Prefactor     .10000E-03    1.1112       -.14754E-06** at limit **
   6  Prefactor     .10000E-03    17.219       -.57297E-06** at limit **
   7  norm          14.067        3.5811       -.19525E-06   -.13523E-03
   8  Prefactor     15.852        37.252        .17717E-05    .82387E-05
   9  Prefactor     1.5569        293.81        .32796E-04    .15238E-04
  10  Prefactor     1.1640        23.710        .25804E-05   -.81153E-04
  11  Prefactor     37.573        38.060        .12959E-05    .82466E-06
  12  Prefactor     9.7769        24.311        .33907E-05   -.13275E-04
  13  Prefactor     1.5808        4.7624        .23019E-05   -.66975E-04
  14  norm          5.5666        6.6091       -.42758E-07   -.56544E-04
  15  Prefactor     5.1403        14.993        .31101E-06   -.28832E-05
  16  Prefactor     7.2902        11.811       -.77144E-07   -.19658E-04
  17  Prefactor     20.557        47.059        .13476E-04   -.65125E-05
  18  Prefactor     3.9030        16.610       -.14985E-04   -.29552E-03
  19  Prefactor     .10000E-03    1.4149       -.87822E-07** at limit **
  20  Prefactor     41.378        167.40        .21160E-04   -.66633E-04
  21  norm          .10000E-03    5.0690       -.58509E-06** at limit **
  22  Prefactor     8.8663        7.5003        .10075E-05   -.36702E-03
  23  Prefactor     .10099E-03    6.4775        .25247E-05** at limit **
  24  Normalizat    .98797        .27024        .27485E-05   -.27560E-03
  25  Prefactor     1.0831        .15328       -.15486E-05   -.76421E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 7.96438
  Prefactor  = 0.0001
  Prefactor  = 55.1293
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.0666
  Prefactor  = 15.8518
  Prefactor  = 1.55693
  Prefactor  = 1.164
  Prefactor  = 37.5731
  Prefactor  = 9.77694
  Prefactor  = 1.58079
  norm       = 5.56661
  Prefactor  = 5.14025
  Prefactor  = 7.29019
  Prefactor  = 20.5573
  Prefactor  = 3.90305
  Prefactor  = 0.0001
  Prefactor  = 41.3782
  norm       = 0.0001
  Prefactor  = 8.86635
  Prefactor  = 0.000100986
  Normalizat = 0.987966
  Prefactor  = 1.08306
 **********
 **   18 **HESSE 
 **********

 FCN=   5569.366     FROM HESSE     STATUS=OK           437 CALLS     3744 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.2696        .82043E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.9644        14.196        .14190E-03   -1.5143    
   3  Prefactor     .10000E-03    10.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     55.129        108.69        .27054E-03   -1.4222    
   5  Prefactor     .10000E-03    1.1262        .76806E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          14.067        3.5825        .66951E-04   -1.4958    
   8  Prefactor     15.852        37.235        .10064E-03   -1.4911    
   9  Prefactor     1.5569        286.00        .35037E-03   -1.5458    
  10  Prefactor     1.1640        23.533        .42623E-03   -1.5492    
  11  Prefactor     37.573        37.790        .65403E-04   -1.4481    
  12  Prefactor     9.7769        24.252        .12827E-03   -1.5083    
  13  Prefactor     1.5808        4.7327        .26475E-03   -1.5457    
  14  norm          5.5666        6.5933        .17027E-03   -1.5236    
  15  Prefactor     5.1403        14.918        .17774E-03   -1.5254    
  16  Prefactor     7.2902        11.718        .14848E-03   -1.5168    
  17  Prefactor     20.557        47.263        .88327E-04   -1.4801    
  18  Prefactor     3.9030        16.704        .20588E-03   -1.5313    
  19  Prefactor     .10000E-03    1.4266        .86666E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     41.378        169.57        .30955E-03   -1.4421    
  21  norm          .10000E-03    5.1403        .16408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.8663        7.4840        .13453E-03   -1.5112    
  23  Prefactor     .10099E-03    46.581        .35428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .98797        .30968        .33660E-03   -.93435    
  25  Prefactor     1.0831        .17737        .20194E-03   -.90010    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11881e-08
Minuit parameter uncertainties:
  1  1.62669e-06
  2  14.2024
  3  1.67526e-05
  4  109.084
  5  2.29084e-06
  6  3.6269e-05
  7  3.58252
  8  37.2893
  9  42.4092
  10  10.4718
  11  37.8145
  12  24.2759
  13  4.73378
  14  6.59416
  15  14.9284
  16  11.7221
  17  47.3488
  18  16.1562
  19  4.3787e-06
  20  168.36
  21  4.25438e-06
  22  7.48479
  23  0.0135666
  24  0.310248
  25  0.177468
Done.

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

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  1.164e+00  1.047e+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.083e+00  1.775e-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.880e-01  3.102e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/484796/likelihoodResults_381110401_381369601_4FGL_J2126.3-4605_daily_bin547.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) = 5569.26443521
delta logL = 0.101228993296

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5569.20264898
delta logL = 0.163015225824

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23704       1.0000         .10000E-03   10000.    
     2 'Index     '    5.0745       1.0000          .0000       10.000    
     3 'Normalizat'    .95009       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0980       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=   5569.203     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      228 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23731        8.1791        .10145E-01    .20278E-02
   2  Index         5.0775        7.1711        .20138        .84941E-04
   3  Normalizat    .95008        .41857E-01    .77364E-01    .16393E-04
   4  Prefactor     1.0980        .26288E-01    .37663E-01   -.10809E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.237309
  Index      = 5.07748
  Normalizat = 0.950077
  Prefactor  = 1.09804
 **********
 **   18 **HESSE 
 **********

 FCN=   5569.203     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      261 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .23731        39.482        .64078E-04   -1.5611    
   2  Index         5.0775        5.2878        .11617E-01    .15497E-01
   3  Normalizat    .95008        .21935        .34240E-03   -.94722    
   4  Prefactor     1.0980        .13538        .20069E-03   -.89529    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.2301e-06
Minuit parameter uncertainties:
  1  6.12475
  2  16.4384
  3  0.219552
  4  0.135426
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/484796': 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) = 5569.20264366
delta logL = 0.163020549076

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  2.373e-01  6.125e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        Index:  5.077e+00  1.644e+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:  1.098e+00  1.354e-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.501e-01  2.196e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/484796/cmap_HighResolution_381110401_381369601_4FGL_J2126.3-4605_daily_bin547.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-02', job_status='DONE', photon_flux_upper_limit='1.39e-07', time_completed='2021-09-26 13:28:44.751772', job_id='484796', GAL2='1.10', fit_tolerance='1e-08', EG2='0.95', EG='0.99', time_epoch_completed='1632688124.75', return_code2='102', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='1.63e-01', ts2='0.36', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='547' AND source_name='4FGL J2126.3-4605' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:28:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 484796: <4FGL_J2126.3-4605_daily_bin547> in cluster <slac> Done

Job <4FGL_J2126.3-4605_daily_bin547> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Sep 26 13:15:34 2021
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 13:16:40 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:16:40 2021
Terminated at Sun Sep 26 13:28:45 2021
Results reported at Sun Sep 26 13:28:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2126.3-4605_daily_bin547 321.595 -46.0978 381110401 381369601 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 :                                   559.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   725 sec.
    Turnaround time :                            791 sec.

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

