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


Performing analysis on: 4FGL_J2126.3-4605_daily_bin267
RA = 321.595, Dec = -46.0978
tmin = 308534401, tmax = 308793601
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='483354', job_status='RUN', time_executed='2021-09-26 13:11:30.117115', time_epoch_executed='1632687090.12' WHERE source_name='4FGL J2126.3-4605' and cadence='daily' and bin_id='267'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/483354

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/483354/ft1_4FGL_J2126.3-4605_daily_bin267.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/483354/ft2_4FGL_J2126.3-4605_daily_bin267.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/483354/ft1_4FGL_J2126.3-4605_daily_bin267.fits outfile=/scratch/kocevski/483354/ft1_filteredMKT_4FGL_J2126.3-4605_daily_bin267.fits ra=321.595 dec=-46.0978 rad=12.0 tmin=308534401.0 tmax=308793601.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 5.56
user 5.22
sys 0.29

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/483354/ft1_filtered_4FGL_J2126.3-4605_daily_bin267.fits" evtable="EVENTS" scfile=/scratch/kocevski/483354/ft2_4FGL_J2126.3-4605_daily_bin267.fits sctable="SC_DATA" outfile=/scratch/kocevski/483354/ltcube_308534401_308793601_4FGL_J2126.3-4605_daily_bin267.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/483354/ft2_4FGL_J2126.3-4605_daily_bin267.fits
.....................!
real 16.78
user 16.40
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/483354/ft1_filtered_4FGL_J2126.3-4605_daily_bin267.fits evtable="EVENTS" scfile=/scratch/kocevski/483354/ft2_4FGL_J2126.3-4605_daily_bin267.fits sctable="SC_DATA" expcube=/scratch/kocevski/483354/ltcube_308534401_308793601_4FGL_J2126.3-4605_daily_bin267.fits outfile=/scratch/kocevski/483354/expmap_308534401_308793601_4FGL_J2126.3-4605_daily_bin267.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/483354/ltcube_308534401_308793601_4FGL_J2126.3-4605_daily_bin267.fits
.....................!
real 194.53
user 189.69
sys 4.43

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/483354/ft1_filtered_4FGL_J2126.3-4605_daily_bin267.fits scfile=/scratch/kocevski/483354/ft2_4FGL_J2126.3-4605_daily_bin267.fits outfile=/scratch/kocevski/483354/cmap_308534401_308793601_4FGL_J2126.3-4605_daily_bin267.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.58
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/483354/ft1_filtered_4FGL_J2126.3-4605_daily_bin267.fits scfile=/scratch/kocevski/483354/ft2_4FGL_J2126.3-4605_daily_bin267.fits outfile=/scratch/kocevski/483354/cmap_HighResolution_308534401_308793601_4FGL_J2126.3-4605_daily_bin267.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.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/483354/ft1_filtered_4FGL_J2126.3-4605_daily_bin267.fits evtable="EVENTS" scfile=/scratch/kocevski/483354/ft2_4FGL_J2126.3-4605_daily_bin267.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/483354/Model_4FGL_J2126.3-4605_daily_bin267.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/483354/ft1_filtered_4FGL_J2126.3-4605_daily_bin267.fits.....................!
real 63.81
user 62.20
sys 1.44

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4655       1.0000         .10000E-03   10000.    
     2 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.3375       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.2613       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .83499       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.6636       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.803       1.0000         .10000E-03   10000.    
    11 'Prefactor '    61.559       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8280       1.0000         .10000E-03   10000.    
    14 'norm      '    5.9912       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.9697       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.1324       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10987E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.9446       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .67517       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11756E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    18.830       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .86432       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1117       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=   8299.339     FROM MIGRAD    STATUS=CONVERGED     95 CALLS     2436 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 14.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4656        2.3553       -.23524E-06   -.23466E-03
   2  norm          .10000E-03    7.6453       -.12430E-05** at limit **
   3  Prefactor     9.3338        1.2229       -.15030E-05    .32379E-03
   4  Prefactor     .10004E-03    14.962       -.11786E-04** at limit **
   5  Prefactor     4.2614        3.1084       -.12501E-06    .63563E-03
   6  Prefactor     .10000E-03    17.206       -.22120E-04** at limit **
   7  norm          .83497        1.6241       -.40167E-06    .12341E-03
   8  Prefactor     1.6624        1.0583        .48144E-07    .66174E-05
   9  Prefactor     .10019E-03    22.896        .43702E-04** at limit **
  10  Prefactor     19.803        1.0144       -.19883E-06   -.50681E-03
  11  Prefactor     61.555        1.3677       -.82187E-06    .13245E-02
  12  Prefactor     .10000E-03    18.873        .43336E-05** at limit **
  13  Prefactor     2.8282        2.7762       -.15642E-06   -.37422E-03
  14  norm          5.9909        3.7466       -.39387E-07    .29797E-02
  15  Prefactor     2.9687        1.0825       -.15373E-05   -.17258E-02
  16  Prefactor     4.1313        1.3789       -.35220E-05   -.35676E-02
  17  Prefactor     .10001E-03    23.671        .51581E-04** at limit **
  18  Prefactor     .10000E-03    5.7569       -.86083E-06** at limit **
  19  Prefactor     4.9453        3.0172        .20676E-05    .64203E-02
  20  Prefactor     .10017E-03    72.133       -.79963E-04** at limit **
  21  norm          .67504        2.5460       -.72563E-05   -.31911E-02
  22  Prefactor     .10000E-03    4.9343       -.51831E-06** at limit **
  23  Prefactor     18.829        1.0078        .19612E-06    .26338E-03
  24  Normalizat    .86451        .20939       -.28924E-05   -.18725E-03
  25  Prefactor     1.1116        .13584        .17204E-05    .40473E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.46565
  norm       = 0.0001
  Prefactor  = 9.3338
  Prefactor  = 0.00010004
  Prefactor  = 4.26135
  Prefactor  = 0.0001
  norm       = 0.83497
  Prefactor  = 1.66236
  Prefactor  = 0.000100192
  Prefactor  = 19.8027
  Prefactor  = 61.5552
  Prefactor  = 0.0001
  Prefactor  = 2.82816
  norm       = 5.9909
  Prefactor  = 2.96871
  Prefactor  = 4.13132
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 4.94526
  Prefactor  = 0.000100166
  norm       = 0.675036
  Prefactor  = 0.0001
  Prefactor  = 18.829
  Normalizat = 0.864505
  Prefactor  = 1.1116
 **********
 **   18 **HESSE 
 **********

 FCN=   8299.339     FROM HESSE     STATUS=OK           487 CALLS     2923 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4656        2.3528        .65109E-02   -1.5394    
   2  norm          .10000E-03    7.6420        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.3338        24.665        .32788E-02   -1.5097    
   4  Prefactor     .10004E-03    32.510        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.2614        3.1300        .48795E-02   -1.5295    
   6  Prefactor     .10000E-03    31.159        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .83497        1.6624        .12570E-01   -1.5525    
   8  Prefactor     1.6624        42.604        .81753E-02   -1.5450    
   9  Prefactor     .10019E-03    49.712        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     19.803        9.5862        .22501E-02   -1.4818    
  11  Prefactor     61.555        30.165        .12785E-02   -1.4137    
  12  Prefactor     .10000E-03    18.808        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.8282        2.7842        .60459E-02   -1.5372    
  14  norm          5.9909        3.9461        .41012E-02   -1.5218    
  15  Prefactor     2.9687        6.1866        .58904E-02   -1.5363    
  16  Prefactor     4.1313        6.2279        .49573E-02   -1.5301    
  17  Prefactor     .10001E-03    46.350        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.6709        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.9453        3.6735        .45217E-02   -1.5263    
  20  Prefactor     .10017E-03    75.952        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .67504        5.0065        .11966E-01   -1.5544    
  22  Prefactor     .10000E-03    2.1914        .43779E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     18.829        8.7531        .23075E-02   -1.4840    
  24  Normalizat    .86451        .19315        .74265E-01   -.97719    
  25  Prefactor     1.1116        .12024        .37159E-01   -.89097    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.1758e-08
Minuit parameter uncertainties:
  1  2.35287
  2  5.27378e-05
  3  24.6917
  4  0.00228926
  5  3.13014
  6  0.000229794
  7  1.66253
  8  16.8442
  9  0.0061762
  10  9.58694
  11  30.1722
  12  4.68409e-06
  13  2.78436
  14  3.9463
  15  6.18798
  16  6.22883
  17  0.00139504
  18  7.15206e-05
  19  3.67371
  20  0.00710483
  21  3.6769
  22  5.83537e-05
  23  8.75371
  24  0.193307
  25  0.120266
Done.

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

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  1.980e+01  9.587e+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.112e+00  1.203e-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:  8.645e-01  1.933e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.11
Ra Dec: 321.595 -46.098
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 1.07e-07 +/- 5.19e-08
Energy Flux (Fixed Index): 2.94e-05 +/- 1.42e-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) = 8299.09889943
delta logL = 0.240178234504

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8299.06884466
delta logL = 0.270233007775

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.542       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9331       1.0000          .0000       10.000    
     3 'Normalizat'    .83395       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1252       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=   8299.069     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      260 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.549        104.47        .25399E-02    .16995E-03
   2  Index         2.9338        3.2944        .15492        .14607E-03
   3  Normalizat    .83396        .83017E-01    .75423E-01    .38222E-04
   4  Prefactor     1.1250        .50571E-01    .36700E-01   -.70963E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.549
  Index      = 2.93384
  Normalizat = 0.833957
  Prefactor  = 1.12504
 **********
 **   18 **HESSE 
 **********

 FCN=   8299.069     FROM HESSE     STATUS=OK            33 CALLS      293 TOTAL
                     EDM=   .82E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.549        11.007        .10159E-03   -1.4919    
   2  Index         2.9338        .58890        .58655E-02   -.42600    
   3  Normalizat    .83396        .21259        .33382E-03   -.98821    
   4  Prefactor     1.1250        .13649        .19032E-03   -.88670    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.1988e-12
Minuit parameter uncertainties:
  1  11.0083
  2  0.590552
  3  0.212805
  4  0.136531
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/483354': 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) = 8299.06883935
delta logL = 0.270238316789

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  1.555e+01  1.101e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        Index:  2.934e+00  5.906e-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.125e+00  1.365e-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:  8.340e-01  2.128e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.79
Ra Dec: 321.595 -46.098
Photon Index (Free Index): 2.93 +/- 0.59
Photon Flux (Free Index): 1.31e-07 +/- 6.19e-08
Energy Flux (Free Index): 2.70e-05 +/- 1.27e-05

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/483354/cmap_HighResolution_308534401_308793601_4FGL_J2126.3-4605_daily_bin267.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.07e-07', energy_flux2='2.70e-05', photon_flux_error='5.19e-08', dlogl='2.70e-01', energy_flux='2.94e-05', photon_flux2='1.31e-07', job_status='DONE', time_completed='2021-09-26 13:23:17.885205', photon_index_error2='0.59', photon_index2='2.93', ts='7.11', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='1.27e-05', EG='0.86', time_epoch_completed='1632687797.89', return_code='0', job_id='483354', GAL2='1.13', EG2='0.83', return_code2='0', energy_flux_error='1.42e-05', photon_flux_error2='6.19e-08', ts2='7.79', photon_index='2.55' WHERE bin_id='267' AND source_name='4FGL J2126.3-4605' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:23:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 483354: <4FGL_J2126.3-4605_daily_bin267> in cluster <slac> Done

Job <4FGL_J2126.3-4605_daily_bin267> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep 26 13:10:33 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 13:11:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 13:11:18 2021
Terminated at Sun Sep 26 13:23:18 2021
Results reported at Sun Sep 26 13:23:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2126.3-4605_daily_bin267 321.595 -46.0978 308534401 308793601 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 :                                   707.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             332.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   720 sec.
    Turnaround time :                            765 sec.

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

