/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 6 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 = 7397
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2126.3-4605_daily_bin322
RA = 321.595, Dec = -46.0978
tmin = 322790401, tmax = 323049601
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='483440', job_status='RUN', time_executed='2021-09-26 13:11:54.274218', time_epoch_executed='1632687114.27' WHERE source_name='4FGL J2126.3-4605' and cadence='daily' and bin_id='322'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/483440

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/483440/ft1_4FGL_J2126.3-4605_daily_bin322.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/483440/ft2_4FGL_J2126.3-4605_daily_bin322.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/483440/ft1_4FGL_J2126.3-4605_daily_bin322.fits outfile=/scratch/kocevski/483440/ft1_filteredMKT_4FGL_J2126.3-4605_daily_bin322.fits ra=321.595 dec=-46.0978 rad=12.0 tmin=322790401.0 tmax=323049601.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 12.28
user 11.87
sys 0.35

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/483440/ft1_filtered_4FGL_J2126.3-4605_daily_bin322.fits" evtable="EVENTS" scfile=/scratch/kocevski/483440/ft2_4FGL_J2126.3-4605_daily_bin322.fits sctable="SC_DATA" outfile=/scratch/kocevski/483440/ltcube_322790401_323049601_4FGL_J2126.3-4605_daily_bin322.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/483440/ft2_4FGL_J2126.3-4605_daily_bin322.fits
.....................!
real 14.08
user 13.64
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/483440/ft1_filtered_4FGL_J2126.3-4605_daily_bin322.fits evtable="EVENTS" scfile=/scratch/kocevski/483440/ft2_4FGL_J2126.3-4605_daily_bin322.fits sctable="SC_DATA" expcube=/scratch/kocevski/483440/ltcube_322790401_323049601_4FGL_J2126.3-4605_daily_bin322.fits outfile=/scratch/kocevski/483440/expmap_322790401_323049601_4FGL_J2126.3-4605_daily_bin322.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/483440/ltcube_322790401_323049601_4FGL_J2126.3-4605_daily_bin322.fits
.....................!
real 194.48
user 187.73
sys 5.93

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/483440/ft1_filtered_4FGL_J2126.3-4605_daily_bin322.fits scfile=/scratch/kocevski/483440/ft2_4FGL_J2126.3-4605_daily_bin322.fits outfile=/scratch/kocevski/483440/cmap_322790401_323049601_4FGL_J2126.3-4605_daily_bin322.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.55
user 0.37
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/483440/ft1_filtered_4FGL_J2126.3-4605_daily_bin322.fits evtable="EVENTS" scfile=/scratch/kocevski/483440/ft2_4FGL_J2126.3-4605_daily_bin322.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/483440/Model_4FGL_J2126.3-4605_daily_bin322.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/483440/ft1_filtered_4FGL_J2126.3-4605_daily_bin322.fits.....................!
real 26.95
user 25.54
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10330E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10318E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13274E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.6364       1.0000         .10000E-03   10000.    
     6 'Prefactor '    58.695       1.0000         .10000E-03   10000.    
     7 'norm      '    2.7633       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.651       1.0000         .10000E-03   10000.    
    10 'Prefactor '    41.844       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14233E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.3059       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10551E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.0672       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11175E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.127       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10383E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.759       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11053E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .51336E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3701       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2132.273     FROM MIGRAD    STATUS=CONVERGED     95 CALLS     2859 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.7595        .95233E-06** at limit **
   2  norm          .10014E-03    18.198        .62910E-04** at limit **
   3  Prefactor     .10006E-03    12.366        .22109E-04** at limit **
   4  Prefactor     .11119E-01    5.2870       -.62449E-04    .87023E-03
   5  Prefactor     3.6377        1.0359       -.15806E-05   -.75402E-04
   6  Prefactor     58.707        2.7141        .44721E-05   -.22018E-02
   7  norm          2.7643        3.2301        .21798E-06   -.10061E-03
   8  Prefactor     .10001E-03    14.188        .12736E-04** at limit **
   9  Prefactor     22.650        1.0621       -.10468E-05    .31086E-03
  10  Prefactor     41.843        1.0150        .11735E-06   -.57679E-04
  11  Prefactor     .10011E-03    31.820       -.10401E-03** at limit **
  12  Prefactor     .11984E-03    78.418        .12651E-03** at limit **
  13  Prefactor     9.3123        1.2498       -.90649E-08   -.81548E-03
  14  norm          .10000E-03    4.1500        .29175E-05** at limit **
  15  Prefactor     .10089E-03    9.7226        .21179E-04** at limit **
  16  Prefactor     3.0735        1.4463       -.40367E-05   -.59494E-03
  17  Prefactor     .18378E-03    79.753       -.92677E-04** at limit **
  18  Prefactor     12.131        1.0550       -.35235E-06   -.10936E-03
  19  Prefactor     .10000E-03    3.4089        .10639E-05** at limit **
  20  Prefactor     .39308E-03    233.32       -.39793E-03** at limit **
  21  norm          .10097E-03    9.1471       -.31959E-04** at limit **
  22  Prefactor     19.761        1.0074       -.76686E-07   -.16975E-03
  23  Prefactor     .10000E-03    12.307        .13513E-05** at limit **
  24  Normalizat    .51665E-01    .95892        .59028E-04    .15105E-04
  25  Prefactor     1.3699        .25061       -.13864E-04    .94873E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.00010014
  Prefactor  = 0.000100057
  Prefactor  = 0.0111192
  Prefactor  = 3.63766
  Prefactor  = 58.7069
  norm       = 2.76425
  Prefactor  = 0.000100009
  Prefactor  = 22.65
  Prefactor  = 41.8427
  Prefactor  = 0.00010011
  Prefactor  = 0.000119844
  Prefactor  = 9.31232
  norm       = 0.0001
  Prefactor  = 0.000100894
  Prefactor  = 3.07347
  Prefactor  = 0.000183784
  Prefactor  = 12.1313
  Prefactor  = 0.0001
  Prefactor  = 0.000393078
  norm       = 0.000100973
  Prefactor  = 19.7607
  Prefactor  = 0.000100001
  Normalizat = 0.0516649
  Prefactor  = 1.36991
 **********
 **   18 **HESSE 
 **********

 FCN=   2132.273     FROM HESSE     STATUS=NOT POSDEF   477 CALLS     3336 TOTAL
                     EDM=   .30E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.4750        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10014E-03    25.092        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10006E-03    25.855        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .11119E-01    7291.3        .90893E-02   -1.5687    
   5  Prefactor     3.6377        15.160        .52963E-02   -1.5326    
   6  Prefactor     58.707        104.55        .13092E-02   -1.4174    
   7  norm          2.7643        3.7386        .61213E-02   -1.5375    
   8  Prefactor     .10001E-03    12.012        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     22.650        251.20        .21040E-02   -1.4756    
  10  Prefactor     41.843        44.916        .15493E-02   -1.4413    
  11  Prefactor     .10011E-03    29.125        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .11984E-03    79.025        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.3123        20.522        .32844E-02   -1.5098    
  14  norm          .10000E-03    3.4875        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10089E-03    15.296        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.0735        324.66        .57905E-02   -1.5357    
  17  Prefactor     .18378E-03    111.88        .90712E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.131        29.858        .28758E-02   -1.5011    
  19  Prefactor     .10000E-03    2.8718        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .39308E-03    357.52        .90712E-02   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10097E-03    14.299        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     19.761        17.565        .22526E-02   -1.4819    
  23  Prefactor     .10000E-03    10.397        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .51665E-01    9.9073        .21545       -1.4415    
  25  Prefactor     1.3699        1.3488        .31488E-01   -.81251    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.96808e-06
Minuit parameter uncertainties:
  1  1.34016e-05
  2  0.00375372
  3  0.00243591
  4  15.6336
  5  14.8584
  6  104.876
  7  3.73896
  8  0.000648999
  9  151.675
  10  44.9526
  11  0.00358457
  12  0.0793042
  13  20.5378
  14  1.51599e-06
  15  0.00739571
  16  63.5326
  17  0.193999
  18  29.8943
  19  1.79767e-06
  20  0.651321
  21  0.00746269
  22  17.5699
  23  0.000179879
  24  2.24942
  25  1.38607
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 2132.27344636

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  4.184e+01  4.495e+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.370e+00  1.386e+00  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.166e-02  2.249e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.08
Ra Dec: 321.595 -46.098
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 2.27e-07 +/- 2.43e-07
Energy Flux (Fixed Index): 6.21e-05 +/- 6.67e-05

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) = 2130.90384454
delta logL = 1.3696018221

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2130.87193366
delta logL = 1.40151269708

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.143       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8920       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3845       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=   2130.872     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      274 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.171        131.46        .30004E-02    .83393E-04
   2  Index         3.8896        4.0460        .72994E-01    .59316E-04
   3  Normalizat    .10000E-01    .14722        .32094    ** at limit **
   4  Prefactor     1.3850        .11843        .31280E-01   -.88915E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.171
  Index      = 3.88961
  Normalizat = 0.01
  Prefactor  = 1.385
 **********
 **   18 **HESSE 
 **********

 FCN=   2130.872     FROM HESSE     STATUS=OK            31 CALLS      305 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.171        15.824        .74300E-04   -1.5039    
   2  Index         3.8896        .99526        .31632E-03   -.22395    
   3  Normalizat    .10000E-01    1.9307        .11128E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3850        .12209        .15676E-03   -.80814    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27136e-11
Minuit parameter uncertainties:
  1  15.8299
  2  1.00231
  3  1.46012e-05
  4  0.122111
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/483440': 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) = 2130.87192022
delta logL = 1.40152614242

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  1.117e+01  1.583e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        Index:  3.890e+00  1.002e+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.385e+00  1.221e-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.000e-02  1.460e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.05
Ra Dec: 321.595 -46.098
Photon Index (Free Index): 3.89 +/- 1.00
Photon Flux (Free Index): 3.31e-07 +/- 1.66e-07
Energy Flux (Free Index): 5.05e-05 +/- 2.58e-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/483440/cmap_HighResolution_322790401_323049601_4FGL_J2126.3-4605_daily_bin322.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.27e-07', energy_flux2='5.05e-05', photon_flux_error='2.43e-07', dlogl='1.40e+00', energy_flux='6.21e-05', photon_flux2='3.31e-07', job_status='DONE', time_completed='2021-09-26 13:19:39.898432', photon_index_error2='1.00', photon_index2='3.89', ts='6.08', fit_tolerance='1e-08', GAL='1.37', photon_index_error='0.00', energy_flux_error2='2.58e-05', EG='0.05', time_epoch_completed='1632687579.9', return_code='102', job_id='483440', GAL2='1.38', EG2='0.01', return_code2='0', energy_flux_error='6.67e-05', photon_flux_error2='1.66e-07', ts2='9.05', photon_index='2.55' WHERE bin_id='322' AND source_name='4FGL J2126.3-4605' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:19:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 483440: <4FGL_J2126.3-4605_daily_bin322> in cluster <slac> Done

Job <4FGL_J2126.3-4605_daily_bin322> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep 26 13:10:40 2021
Job was executed on host(s) <bullet0115>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 13:11:38 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:11:38 2021
Terminated at Sun Sep 26 13:19:40 2021
Results reported at Sun Sep 26 13:19:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2126.3-4605_daily_bin322 321.595 -46.0978 322790401 323049601 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 :                                   460.63 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   482 sec.
    Turnaround time :                            540 sec.

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

