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


Performing analysis on: 4FGL_J2126.3-4605_daily_bin600
RA = 321.595, Dec = -46.0978
tmin = 394848001, tmax = 395107201
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='484873', job_status='RUN', time_executed='2021-09-26 13:19:42.694389', time_epoch_executed='1632687582.69' WHERE source_name='4FGL J2126.3-4605' and cadence='daily' and bin_id='600'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/484873

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/484873/ft1_4FGL_J2126.3-4605_daily_bin600.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/484873/ft2_4FGL_J2126.3-4605_daily_bin600.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/484873/ft1_4FGL_J2126.3-4605_daily_bin600.fits outfile=/scratch/kocevski/484873/ft1_filteredMKT_4FGL_J2126.3-4605_daily_bin600.fits ra=321.595 dec=-46.0978 rad=12.0 tmin=394848001.0 tmax=395107201.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.32
user 5.04
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/484873/ft1_filtered_4FGL_J2126.3-4605_daily_bin600.fits" evtable="EVENTS" scfile=/scratch/kocevski/484873/ft2_4FGL_J2126.3-4605_daily_bin600.fits sctable="SC_DATA" outfile=/scratch/kocevski/484873/ltcube_394848001_395107201_4FGL_J2126.3-4605_daily_bin600.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/484873/ft2_4FGL_J2126.3-4605_daily_bin600.fits
.....................!
real 14.19
user 13.79
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/484873/ft1_filtered_4FGL_J2126.3-4605_daily_bin600.fits evtable="EVENTS" scfile=/scratch/kocevski/484873/ft2_4FGL_J2126.3-4605_daily_bin600.fits sctable="SC_DATA" expcube=/scratch/kocevski/484873/ltcube_394848001_395107201_4FGL_J2126.3-4605_daily_bin600.fits outfile=/scratch/kocevski/484873/expmap_394848001_395107201_4FGL_J2126.3-4605_daily_bin600.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/484873/ltcube_394848001_395107201_4FGL_J2126.3-4605_daily_bin600.fits
.....................!
real 192.77
user 186.66
sys 5.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/484873/ft1_filtered_4FGL_J2126.3-4605_daily_bin600.fits scfile=/scratch/kocevski/484873/ft2_4FGL_J2126.3-4605_daily_bin600.fits outfile=/scratch/kocevski/484873/cmap_394848001_395107201_4FGL_J2126.3-4605_daily_bin600.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/484873/ft1_filtered_4FGL_J2126.3-4605_daily_bin600.fits scfile=/scratch/kocevski/484873/ft2_4FGL_J2126.3-4605_daily_bin600.fits outfile=/scratch/kocevski/484873/cmap_HighResolution_394848001_395107201_4FGL_J2126.3-4605_daily_bin600.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.62
user 0.42
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/484873/ft1_filtered_4FGL_J2126.3-4605_daily_bin600.fits evtable="EVENTS" scfile=/scratch/kocevski/484873/ft2_4FGL_J2126.3-4605_daily_bin600.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/484873/Model_4FGL_J2126.3-4605_daily_bin600.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/484873/ft1_filtered_4FGL_J2126.3-4605_daily_bin600.fits.....................!
real 46.23
user 44.59
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.201       1.0000         .10000E-03   10000.    
     2 'norm      '    13.075       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.4620       1.0000         .10000E-03   10000.    
     7 'norm      '    1.6930       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10268E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.0469       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.7124       1.0000         .10000E-03   10000.    
    12 'Prefactor '    38.372       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.8002       1.0000         .10000E-03   10000.    
    14 'norm      '    .12651E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.7731       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12094E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13798E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10811E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .23596E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.8068       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4883       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .79981       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=   5334.668     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     2929 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.200        6.1286       -.27730E-07   -.90341E-04
   2  norm          13.075        17.947        .48436E-07    .45021E-06
   3  Prefactor     .10000E-03    16.300       -.17433E-06** at limit **
   4  Prefactor     .10000E-03    54.370       -.10778E-05** at limit **
   5  Prefactor     .10000E-03    .67592        .96873E-08** at limit **
   6  Prefactor     6.4556        22.757        .84714E-06    .51727E-05
   7  norm          1.6928        1.8789        .46247E-07   -.81940E-06
   8  Prefactor     .10000E-03    15.914        .77542E-07** at limit **
   9  Prefactor     .10000E-03    38.220       -.97461E-07** at limit **
  10  Prefactor     3.0529        11.453        .20373E-05    .82618E-04
  11  Prefactor     3.6703        69.256       -.77292E-05   -.50853E-04
  12  Prefactor     38.355        29.318        .62380E-06    .38525E-04
  13  Prefactor     1.7916        5.3933        .68911E-06    .25204E-03
  14  norm          .10000E-03    4.5068        .40748E-06** at limit **
  15  Prefactor     .10000E-03    3.9714        .62463E-07** at limit **
  16  Prefactor     9.7698        9.2431       -.14849E-06   -.95767E-04
  17  Prefactor     .10000E-03    64.353        .54589E-06** at limit **
  18  Prefactor     .10000E-03    6.0281        .96816E-06** at limit **
  19  Prefactor     .10001E-03    3.0336       -.46908E-06** at limit **
  20  Prefactor     .10000E-03    31.874        .54037E-06** at limit **
  21  norm          .24309E-01    9.8421        .18870E-05   -.44700E-03
  22  Prefactor     .10000E-03    2.9305       -.59080E-07** at limit **
  23  Prefactor     4.8047        9.9595        .40167E-06   -.14741E-04
  24  Normalizat    1.4889        .25679       -.20503E-05   -.16902E-03
  25  Prefactor     .79960        .14479        .48497E-06   -.31611E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.2001
  norm       = 13.0746
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.45562
  norm       = 1.6928
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.05292
  Prefactor  = 3.67029
  Prefactor  = 38.3551
  Prefactor  = 1.79161
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.76981
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  norm       = 0.0243087
  Prefactor  = 0.0001
  Prefactor  = 4.80466
  Normalizat = 1.48886
  Prefactor  = 0.799599
 **********
 **   18 **HESSE 
 **********

 FCN=   5334.668     FROM HESSE     STATUS=OK           437 CALLS     3366 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.200        6.1243        .11970E-03   -1.5039    
   2  norm          13.075        17.956        .11078E-03   -1.4985    
   3  Prefactor     .10000E-03    16.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    54.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .67737        .58640E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.4556        22.742        .15788E-03   -1.5200    
   7  norm          1.6928        1.8571        .10090E-03   -1.5448    
   8  Prefactor     .10000E-03    15.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    38.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.0529        11.416        .11622E-02   -1.5358    
  11  Prefactor     3.6703        70.249        .20959E-03   -1.5325    
  12  Prefactor     38.355        29.270        .64703E-04   -1.4469    
  13  Prefactor     1.7916        5.5964        .14181E-02   -1.5440    
  14  norm          .10000E-03    11.777        .28027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.9813        .14216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.7698        9.2541        .12818E-03   -1.5083    
  17  Prefactor     .10000E-03    64.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    19.563        .31743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    22.211        .22820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    31.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .24309E-01    8.7197        .66391E-01   -1.5677    
  22  Prefactor     .10000E-03    2.9673        .12205E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.8047        9.9781        .18350E-03   -1.5270    
  24  Normalizat    1.4889        .29379        .27207E-03   -.78092    
  25  Prefactor     .79960        .16939        .21698E-03   -.99743    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06924e-09
Minuit parameter uncertainties:
  1  6.12467
  2  17.9631
  3  4.79383e-06
  4  0.000155449
  5  3.04755e-07
  6  22.7726
  7  1.8572
  8  1.61842e-05
  9  2.65653e-05
  10  11.4241
  11  32.1577
  12  29.2808
  13  5.59805
  14  0.000109209
  15  6.59165e-06
  16  9.25547
  17  0.0001616
  18  9.73394e-05
  19  0.000825827
  20  7.67147e-05
  21  0.919033
  22  2.43402e-06
  23  9.9816
  24  0.294131
  25  0.169496
Done.

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

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  3.053e+00  1.142e+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:  7.996e-01  1.695e-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.489e+00  2.941e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/484873/likelihoodResults_394848001_395107201_4FGL_J2126.3-4605_daily_bin600.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) = 5334.01425251
delta logL = 0.653636892175

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5333.95777042
delta logL = 0.710118986829

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1456       1.0000         .10000E-03   10000.    
     2 'Index     '    4.6205       1.0000          .0000       10.000    
     3 'Normalizat'    1.3928       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83572       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=   5333.958     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      237 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1379        18.812        .10834E-01    .16230E-03
   2  Index         4.6253        3.9305        .14204        .65034E-04
   3  Normalizat    1.3924        .63219E-01    .63188E-01   -.22621E-03
   4  Prefactor     .83594        .38562E-01    .44180E-01   -.18948E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.13787
  Index      = 4.62534
  Normalizat = 1.3924
  Prefactor  = 0.835944
 **********
 **   18 **HESSE 
 **********

 FCN=   5333.958     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      266 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1379        43.394        .66614E-04   -1.5495    
   2  Index         4.6253        7.2777        .69702E-02   -.75001E-01
   3  Normalizat    1.3924        .24982        .27948E-03   -.80849    
   4  Prefactor     .83594        .14997        .21263E-03   -.98417    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.91395e-10
Minuit parameter uncertainties:
  1  14.064
  2  8.2933
  3  0.250036
  4  0.150039
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/484873': 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) = 5333.95776737
delta logL = 0.710122032825

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  1.138e+00  1.406e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        Index:  4.625e+00  8.293e+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:  8.359e-01  1.500e-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.392e+00  2.500e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.62
Ra Dec: 321.595 -46.098
Photon Index (Free Index): 4.63 +/- 8.29
Photon Flux (Free Index): 9.64e-08 +/- 8.82e-08
Energy Flux (Free Index): 1.33e-05 +/- 1.87e-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/484873/cmap_HighResolution_394848001_395107201_4FGL_J2126.3-4605_daily_bin600.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-02', comment='SUCCESS', energy_flux2='1.33e-05', dlogl='7.10e-01', photon_flux2='9.64e-08', job_status='DONE', time_completed='2021-09-26 13:30:32.014900', photon_index_error2='8.29', photon_index2='4.63', ts='0.09', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='1.54e-07', energy_flux_error2='1.87e-05', EG='1.49', time_epoch_completed='1632688232.01', return_code='0', job_id='484873', GAL2='0.84', EG2='1.39', return_code2='102', photon_flux_error2='8.82e-08', ts2='1.62', photon_index='2.55' WHERE bin_id='600' AND source_name='4FGL J2126.3-4605' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:30:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 484873: <4FGL_J2126.3-4605_daily_bin600> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2126.3-4605_daily_bin600 321.595 -46.0978 394848001 395107201 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 :                                   646.20 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             286.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            892 sec.

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

