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


Performing analysis on: 4FGL_J2126.3-4605_daily_bin1127
RA = 321.595, Dec = -46.0978
tmin = 531446401, tmax = 531705601
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='487649', job_status='RUN', time_executed='2021-09-26 13:26:40.141335', time_epoch_executed='1632688000.14' WHERE source_name='4FGL J2126.3-4605' and cadence='daily' and bin_id='1127'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/487649

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/487649/ft1_4FGL_J2126.3-4605_daily_bin1127.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/487649/ft2_4FGL_J2126.3-4605_daily_bin1127.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/487649/ft1_4FGL_J2126.3-4605_daily_bin1127.fits outfile=/scratch/kocevski/487649/ft1_filteredMKT_4FGL_J2126.3-4605_daily_bin1127.fits ra=321.595 dec=-46.0978 rad=12.0 tmin=531446401.0 tmax=531705601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.73
user 3.44
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/487649/ft2_4FGL_J2126.3-4605_daily_bin1127.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/487649/ft1_filteredMKT_4FGL_J2126.3-4605_daily_bin1127.fits evtable="EVENTS" outfile="/scratch/kocevski/487649/ft1_filtered_4FGL_J2126.3-4605_daily_bin1127.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.52
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/487649/ft1_filtered_4FGL_J2126.3-4605_daily_bin1127.fits" evtable="EVENTS" scfile=/scratch/kocevski/487649/ft2_4FGL_J2126.3-4605_daily_bin1127.fits sctable="SC_DATA" outfile=/scratch/kocevski/487649/ltcube_531446401_531705601_4FGL_J2126.3-4605_daily_bin1127.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/487649/ft2_4FGL_J2126.3-4605_daily_bin1127.fits
.....................!
real 15.86
user 15.47
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/487649/ft1_filtered_4FGL_J2126.3-4605_daily_bin1127.fits evtable="EVENTS" scfile=/scratch/kocevski/487649/ft2_4FGL_J2126.3-4605_daily_bin1127.fits sctable="SC_DATA" expcube=/scratch/kocevski/487649/ltcube_531446401_531705601_4FGL_J2126.3-4605_daily_bin1127.fits outfile=/scratch/kocevski/487649/expmap_531446401_531705601_4FGL_J2126.3-4605_daily_bin1127.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/487649/ltcube_531446401_531705601_4FGL_J2126.3-4605_daily_bin1127.fits
.....................!
real 192.07
user 186.66
sys 4.82

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/487649/ft1_filtered_4FGL_J2126.3-4605_daily_bin1127.fits scfile=/scratch/kocevski/487649/ft2_4FGL_J2126.3-4605_daily_bin1127.fits outfile=/scratch/kocevski/487649/cmap_531446401_531705601_4FGL_J2126.3-4605_daily_bin1127.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 1.18
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/487649/ft1_filtered_4FGL_J2126.3-4605_daily_bin1127.fits scfile=/scratch/kocevski/487649/ft2_4FGL_J2126.3-4605_daily_bin1127.fits outfile=/scratch/kocevski/487649/cmap_HighResolution_531446401_531705601_4FGL_J2126.3-4605_daily_bin1127.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.70
user 0.40
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/487649/ft1_filtered_4FGL_J2126.3-4605_daily_bin1127.fits evtable="EVENTS" scfile=/scratch/kocevski/487649/ft2_4FGL_J2126.3-4605_daily_bin1127.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/487649/Model_4FGL_J2126.3-4605_daily_bin1127.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/487649/ft1_filtered_4FGL_J2126.3-4605_daily_bin1127.fits.....................!
real 60.31
user 58.31
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.864       1.0000         .10000E-03   10000.    
     8 'Prefactor '    52.710       1.0000         .10000E-03   10000.    
     9 'Prefactor '    49.968       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.2901       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.8049       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.3720       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.1712       1.0000         .10000E-03   10000.    
    14 'norm      '    28.407       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.6310       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.4972       1.0000         .10000E-03   10000.    
    17 'Prefactor '    60.575       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2895       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .56435       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    10.111       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.3824       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .34211       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .98883       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0780       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=   7487.412     FROM MIGRAD    STATUS=CONVERGED    589 CALLS     2926 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.2385        .68010E-07** at limit **
   2  norm          .10000E-03    21.339        .83334E-07** at limit **
   3  Prefactor     .10000E-03    15.260        .12401E-06** at limit **
   4  Prefactor     .10000E-03    36.038        .58657E-07** at limit **
   5  Prefactor     .10000E-03    .92570        .63330E-07** at limit **
   6  Prefactor     .10000E-03    9.8735        .10426E-06** at limit **
   7  norm          10.865        2.6130        .88885E-08   -.47351E-04
   8  Prefactor     52.724        36.905       -.31615E-06   -.17661E-03
   9  Prefactor     49.975        44.451       -.70994E-07   -.36342E-04
  10  Prefactor     3.2960        8.8984        .72798E-06    .22367E-04
  11  Prefactor     5.8066        30.924       -.67391E-08   -.22712E-04
  12  Prefactor     7.3751        17.920       -.27344E-06   -.98863E-04
  13  Prefactor     9.1711        5.2300       -.40734E-08   -.29123E-04
  14  norm          28.410        8.0236       -.24134E-07    .39373E-04
  15  Prefactor     2.6338        6.0967        .68126E-06    .39674E-04
  16  Prefactor     3.4995        7.1261        .33105E-06    .41417E-04
  17  Prefactor     60.445        52.408       -.53233E-06   -.34036E-04
  18  Prefactor     2.3125        12.643        .75068E-06    .55172E-04
  19  Prefactor     .56321        2.1231        .18189E-05    .32297E-03
  20  Prefactor     .10000E-03    27.814       -.27378E-07** at limit **
  21  norm          10.111        7.0714       -.97460E-07   -.28847E-04
  22  Prefactor     6.3835        4.5297       -.22976E-07    .61692E-04
  23  Prefactor     .39334        8.2414       -.16975E-05    .47375E-03
  24  Normalizat    .98793        .22541       -.11766E-06   -.59023E-06
  25  Prefactor     1.0784        .12903       -.39536E-06   -.29430E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.8649
  Prefactor  = 52.7239
  Prefactor  = 49.9748
  Prefactor  = 3.29596
  Prefactor  = 5.80661
  Prefactor  = 7.37513
  Prefactor  = 9.17114
  norm       = 28.4101
  Prefactor  = 2.63375
  Prefactor  = 3.49948
  Prefactor  = 60.4454
  Prefactor  = 2.31246
  Prefactor  = 0.563214
  Prefactor  = 0.0001
  norm       = 10.1106
  Prefactor  = 6.38352
  Prefactor  = 0.393345
  Normalizat = 0.987932
  Prefactor  = 1.07842
 **********
 **   18 **HESSE 
 **********

 FCN=   7487.412     FROM HESSE     STATUS=OK           431 CALLS     3357 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.2567        .94044E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    21.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    36.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .93761        .81293E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.9157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.865        2.6167        .64976E-04   -1.5049    
   8  Prefactor     52.724        37.003        .55244E-04   -1.4254    
   9  Prefactor     49.975        44.455        .56731E-04   -1.4293    
  10  Prefactor     3.2960        8.8885        .22322E-03   -1.5345    
  11  Prefactor     5.8066        30.704        .16669E-03   -1.5226    
  12  Prefactor     7.3751        17.946        .14772E-03   -1.5165    
  13  Prefactor     9.1711        5.2303        .13234E-03   -1.5102    
  14  norm          28.410        8.0049        .75168E-04   -1.4641    
  15  Prefactor     2.6338        6.0816        .25140E-03   -1.5383    
  16  Prefactor     3.4995        7.0957        .21620E-03   -1.5334    
  17  Prefactor     60.445        51.668        .51552E-04   -1.4151    
  18  Prefactor     2.3125        12.089        .27129E-03   -1.5404    
  19  Prefactor     .56321        2.1468        .24496E-03   -1.5558    
  20  Prefactor     .10000E-03    27.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          10.111        7.0739        .12601E-03   -1.5072    
  22  Prefactor     6.3835        4.5376        .14996E-03   -1.5203    
  23  Prefactor     .39334        32.718        .40395E-02   -1.5583    
  24  Normalizat    .98793        .26051        .33718E-03   -.93436    
  25  Prefactor     1.0784        .14809        .20331E-03   -.90159    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.15911e-09
Minuit parameter uncertainties:
  1  1.67941e-06
  2  2.43758e-06
  3  1.54407e-05
  4  1.27846e-05
  5  1.43664e-06
  6  6.43017e-06
  7  2.61677
  8  37.0188
  9  44.4849
  10  8.89205
  11  26.726
  12  17.9587
  13  5.2306
  14  8.00525
  15  6.08302
  16  7.09739
  17  51.7061
  18  10.5777
  19  2.14705
  20  3.29457e-05
  21  7.07451
  22  4.53789
  23  7.1779
  24  0.260842
  25  0.148149
Done.

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

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  3.296e+00  8.892e+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.078e+00  1.481e-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.879e-01  2.608e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.16
Ra Dec: 321.595 -46.098
Photon Flux Upper Limit: 1.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/487649/likelihoodResults_531446401_531705601_4FGL_J2126.3-4605_daily_bin1127.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) = 7487.33671506
delta logL = 0.0753363265867

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7486.83842358
delta logL = 0.573627805943

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11459E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    9.9997       1.0000          .0000       10.000    
     3 'Normalizat'    .94841       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0985       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7486.838     FROM MIGRAD    STATUS=FAILED       137 CALLS      449 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11452E-03    .33134E-03    .15525E-04** at limit **
   2  Index        10.0000        1.6604        .50000    ** at limit **
   3  Normalizat    .94866        .23426        .34304E-03   -.32478E-05
   4  Prefactor     1.0984        .14590        .20168E-03    .46224E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7486.838     FROM SIMPLEX   STATUS=UNCHANGED    124 CALLS      573 TOTAL
                     EDM=   .30E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11452E-03    .33134E-03    .16412E-07   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        1.6604        .19413E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .94866        .23426        .38396E-05   -.94771    
   4  Prefactor     1.0984        .14590        .43691E-06   -.89517    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7486.838     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      606 TOTAL
                     EDM=   .42E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11452E-03    .30799E-03    .31049E-05** at limit **
   2  Index        10.0000        1.5502        .50000    ** at limit **
   3  Normalizat    .94866        .23425        .13722E-04   -.33141E-05
   4  Prefactor     1.0984        .14597        .80672E-05    .47915E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00011452
  Index      = 10
  Normalizat = 0.94866
  Prefactor  = 1.09841
 **********
 **   18 **HESSE 
 **********

 FCN=   7486.838     FROM HESSE     STATUS=OK            31 CALLS      637 TOTAL
                     EDM=   .64E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11452E-03    .30315E-03    .12420E-06   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        1.5290        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .94866        .23384        .27443E-05   -.94771    
   4  Prefactor     1.0984        .14572        .16134E-05   -.89517    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.3582e-12
Minuit parameter uncertainties:
  1  0.000132693
  2  3.83563e-05
  3  0.234096
  4  0.14577
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/487649': 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) = 7486.83841911
delta logL = 0.573632277347

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  1.145e-04  1.327e-04  1.000e-04  1.000e+04 ( 1.000e-12)
281        Index:  1.000e+01  3.836e-05  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.458e-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.487e-01  2.341e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.35
Ra Dec: 321.595 -46.098
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 4.50e-08 +/- 5.06e-08
Energy Flux (Free Index): 5.03e-06 +/- 5.69e-06

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/487649/cmap_HighResolution_531446401_531705601_4FGL_J2126.3-4605_daily_bin1127.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.82e-03', comment='SUCCESS', energy_flux2='5.03e-06', dlogl='5.74e-01', photon_flux2='4.50e-08', job_status='DONE', time_completed='2021-09-26 13:40:13.378933', photon_index_error2='0.00', photon_index2='10.00', ts='0.16', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.26e-07', energy_flux_error2='5.69e-06', EG='0.99', time_epoch_completed='1632688813.38', return_code='0', job_id='487649', GAL2='1.10', EG2='0.95', return_code2='0', photon_flux_error2='5.06e-08', ts2='1.35', photon_index='2.55' WHERE bin_id='1127' AND source_name='4FGL J2126.3-4605' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:40:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 487649: <4FGL_J2126.3-4605_daily_bin1127> in cluster <slac> Done

Job <4FGL_J2126.3-4605_daily_bin1127> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 26 13:25:25 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 13:26:12 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:26:12 2021
Terminated at Sun Sep 26 13:40:14 2021
Results reported at Sun Sep 26 13:40:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2126.3-4605_daily_bin1127 321.595 -46.0978 531446401 531705601 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 :                                   809.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   841 sec.
    Turnaround time :                            889 sec.

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

