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


Performing analysis on: 4FGL_J2126.3-4605_daily_bin1528
RA = 321.595, Dec = -46.0978
tmin = 635385601, tmax = 635644801
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='488850', job_status='RUN', time_executed='2021-09-26 13:33:56.155002', time_epoch_executed='1632688436.16' WHERE source_name='4FGL J2126.3-4605' and cadence='daily' and bin_id='1528'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/488850

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/488850/ft1_4FGL_J2126.3-4605_daily_bin1528.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/488850/ft2_4FGL_J2126.3-4605_daily_bin1528.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/488850/ft1_4FGL_J2126.3-4605_daily_bin1528.fits outfile=/scratch/kocevski/488850/ft1_filteredMKT_4FGL_J2126.3-4605_daily_bin1528.fits ra=321.595 dec=-46.0978 rad=12.0 tmin=635385601.0 tmax=635644801.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 2.84
user 2.60
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/488850/ft1_filtered_4FGL_J2126.3-4605_daily_bin1528.fits" evtable="EVENTS" scfile=/scratch/kocevski/488850/ft2_4FGL_J2126.3-4605_daily_bin1528.fits sctable="SC_DATA" outfile=/scratch/kocevski/488850/ltcube_635385601_635644801_4FGL_J2126.3-4605_daily_bin1528.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/488850/ft2_4FGL_J2126.3-4605_daily_bin1528.fits
.....................!
real 14.71
user 14.33
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/488850/ft1_filtered_4FGL_J2126.3-4605_daily_bin1528.fits evtable="EVENTS" scfile=/scratch/kocevski/488850/ft2_4FGL_J2126.3-4605_daily_bin1528.fits sctable="SC_DATA" expcube=/scratch/kocevski/488850/ltcube_635385601_635644801_4FGL_J2126.3-4605_daily_bin1528.fits outfile=/scratch/kocevski/488850/expmap_635385601_635644801_4FGL_J2126.3-4605_daily_bin1528.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/488850/ltcube_635385601_635644801_4FGL_J2126.3-4605_daily_bin1528.fits
.....................!
real 190.55
user 185.67
sys 4.33

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/488850/ft1_filtered_4FGL_J2126.3-4605_daily_bin1528.fits scfile=/scratch/kocevski/488850/ft2_4FGL_J2126.3-4605_daily_bin1528.fits outfile=/scratch/kocevski/488850/cmap_635385601_635644801_4FGL_J2126.3-4605_daily_bin1528.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/488850/ft1_filtered_4FGL_J2126.3-4605_daily_bin1528.fits scfile=/scratch/kocevski/488850/ft2_4FGL_J2126.3-4605_daily_bin1528.fits outfile=/scratch/kocevski/488850/cmap_HighResolution_635385601_635644801_4FGL_J2126.3-4605_daily_bin1528.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11270E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    42.067       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    106.25       1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.510       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    667.20       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11038E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10680E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .81837E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    70.002       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.161       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    .57650       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=   550.4886     FROM MIGRAD    STATUS=CONVERGED    193 CALLS     3033 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.9094       -.15760E-06** at limit **
   2  norm          42.067        1.0062       -.27129E-08   -.24793E-04
   3  Prefactor     .10000E-03    24.728       -.45425E-07** at limit **
   4  Prefactor     106.24        3.0703        .41038E-07    .96587E-03
   5  Prefactor     25.576        17.373       -.49001E-06   -.19603E-02
   6  Prefactor     .12030E-03    90.476        .30111E-06** at limit **
   7  norm          .10000E-03    5.9803       -.60371E-07** at limit **
   8  Prefactor     .10001E-03    59.678       -.30884E-07** at limit **
   9  Prefactor     667.19        1.9635        .10057E-07    .19666E-02
  10  Prefactor    10000.0        165.46        .22314E-05** at limit **
  11  Prefactor    10000.0        359.07       -.53260E-05** at limit **
  12  Prefactor     .10176E-03    92.183       -.15027E-05** at limit **
  13  Prefactor     .10000E-03    16.965        .32990E-06** at limit **
  14  norm          .19758E-03    178.55        .39488E-06** at limit **
  15  Prefactor    10000.0        472.26       -.58401E-05** at limit **
  16  Prefactor     .53653E-02    24.409        .14366E-05    .40594E-03
  17  Prefactor     69.988        3.6321        .58481E-07    .39663E-03
  18  Prefactor     .10000E-03    11.276       -.21996E-06** at limit **
  19  Prefactor     .10000E-03    16.915       -.34634E-06** at limit **
  20  Prefactor     .12020E-03    85.696        .24070E-05** at limit **
  21  norm          .10000E-03    6.2042        .38805E-07** at limit **
  22  Prefactor     .10000E-03    5.2262       -.12307E-06** at limit **
  23  Prefactor     12.158        14.407        .20237E-06    .18736E-02
  24  Normalizat    .10000E-01    .12981       -.54468E-06** at limit **
  25  Prefactor     .57650        .16399       -.26047E-07    .10501E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 42.0674
  Prefactor  = 0.0001
  Prefactor  = 106.24
  Prefactor  = 25.5763
  Prefactor  = 0.000120298
  norm       = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 667.19
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.000101758
  Prefactor  = 0.000100001
  norm       = 0.000197578
  Prefactor  = 10000
  Prefactor  = 0.00536527
  Prefactor  = 69.9876
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000120201
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.1577
  Normalizat = 0.01
  Prefactor  = 0.576504
 **********
 **   18 **HESSE 
 **********

 FCN=   550.4886     FROM HESSE     STATUS=OK           465 CALLS     3498 TOTAL
                     EDM=   .34E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.5895        .28443E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          42.067        40.044        .15452E-02   -1.4410    
   3  Prefactor     .10000E-03    24.725        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     106.24        208.96        .97535E-03   -1.3643    
   5  Prefactor     25.576        142.22        .19828E-02   -1.4696    
   6  Prefactor     .12030E-03    159.80        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    5.9781        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    59.707        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     667.19        1333.5        .40074E-03   -1.0483    
  10  Prefactor    10000.0        273.41        .90712E-02    1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor    10000.0        1525.1        .90712E-02    1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10176E-03    94.616        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    16.974        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .19758E-03    379.12        .90712E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor    10000.0        1014.4        .90712E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .53653E-02    8282.9        .92189E-02   -1.5693    
  17  Prefactor     69.988        88.991        .11995E-02   -1.4033    
  18  Prefactor     .10000E-03    11.283        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    16.524        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .12020E-03    125.14        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    6.2023        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.2313        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     12.158        14.543        .28718E-02   -1.5010    
  24  Normalizat    .10000E-01    .12859        .11838       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .57650        .17706        .40733E-01   -1.0858    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.43991e-06
Minuit parameter uncertainties:
  1  6.17236e-05
  2  40.0691
  3  3.49653e-05
  4  210.434
  5  121.068
  6  0.114209
  7  2.44362e-05
  8  0.00136241
  9  1406.87
  10  0.10086
  11  1.71266
  12  0.0258386
  13  0.000213141
  14  0.387146
  15  0.0419656
  16  13.7197
  17  89.1611
  18  0.000122426
  19  0.000221901
  20  0.100766
  21  1.60128e-05
  22  4.66131e-05
  23  14.5474
  24  1.02452e-06
  25  0.177232
Done.

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

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  1.000e+04  1.009e-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:  5.765e-01  1.772e-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.025e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 61.24
Ra Dec: 321.595 -46.098
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 5.41e-05 +/- 5.46e-10
Energy Flux (Fixed Index): 1.48e-02 +/- 1.50e-07

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) = 493.955617444
delta logL = 56.5329557703

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 493.955592383
delta logL = 56.5329808315

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     2 'Index     '    5.0551       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .41506       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=   493.9556     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      214 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        1261.5        .90716E-02** at limit **
   2  Index         5.0551        .13533        .13288E-01   -.94336E-04
   3  Normalizat    .10000E-01    .69731E-01    .82265E-01** at limit **
   4  Prefactor     .41505        .13264        .38469E-01    .13611E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Index      = 5.05506
  Normalizat = 0.01
  Prefactor  = 0.41505
 **********
 **   18 **HESSE 
 **********

 FCN=   493.9556     FROM HESSE     STATUS=OK            27 CALLS      241 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        1261.5        .18143E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.0551        .13538        .58755E-04    .11011E-01
   3  Normalizat    .10000E-01    .69967E-01    .18089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .41505        .13211        .14385E-03   -1.1605    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37646e-11
Minuit parameter uncertainties:
  1  0.00662977
  2  0.135395
  3  2.19514e-08
  4  0.132211
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/488850': 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) = 493.955588743
delta logL = 56.5329844706

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  1.000e+04  6.630e-03  1.000e-04  1.000e+04 ( 1.000e-12)
281        Index:  5.055e+00  1.354e-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:  4.150e-01  1.322e-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  2.195e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 177.36
Ra Dec: 321.595 -46.098
Photon Index (Free Index): 5.06 +/- 0.14
Photon Flux (Free Index): 1.60e-03 +/- 3.20e-04
Energy Flux (Free Index): 2.12e-01 +/- 4.02e-02

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/488850/cmap_HighResolution_635385601_635644801_4FGL_J2126.3-4605_daily_bin1528.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.41e-05', energy_flux2='2.12e-01', photon_flux_error='5.46e-10', dlogl='5.65e+01', energy_flux='1.48e-02', photon_flux2='1.60e-03', job_status='DONE', time_completed='2021-09-26 13:39:46.375442', photon_index_error2='0.14', photon_index2='5.06', ts='61.24', fit_tolerance='1e-08', GAL='0.58', photon_index_error='0.00', energy_flux_error2='4.02e-02', EG='0.01', time_epoch_completed='1632688786.38', return_code='0', job_id='488850', GAL2='0.42', EG2='0.01', return_code2='0', energy_flux_error='1.50e-07', photon_flux_error2='3.20e-04', ts2='177.36', photon_index='2.55' WHERE bin_id='1528' AND source_name='4FGL J2126.3-4605' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:39:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 488850: <4FGL_J2126.3-4605_daily_bin1528> in cluster <slac> Done

Job <4FGL_J2126.3-4605_daily_bin1528> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep 26 13:30:37 2021
Job was executed on host(s) <bullet0024>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 13:31:39 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:31:39 2021
Terminated at Sun Sep 26 13:39:47 2021
Results reported at Sun Sep 26 13:39:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2126.3-4605_daily_bin1528 321.595 -46.0978 635385601 635644801 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 :                                   348.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   487 sec.
    Turnaround time :                            550 sec.

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

