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


Performing analysis on: 4FGL_J2126.3-4605_daily_bin1355
RA = 321.595, Dec = -46.0978
tmin = 590544001, tmax = 590803201
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='487991', job_status='RUN', time_executed='2021-09-26 13:28:34.176011', time_epoch_executed='1632688114.18' WHERE source_name='4FGL J2126.3-4605' and cadence='daily' and bin_id='1355'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/487991

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/487991/ft1_4FGL_J2126.3-4605_daily_bin1355.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/487991/ft2_4FGL_J2126.3-4605_daily_bin1355.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/487991/ft1_4FGL_J2126.3-4605_daily_bin1355.fits outfile=/scratch/kocevski/487991/ft1_filteredMKT_4FGL_J2126.3-4605_daily_bin1355.fits ra=321.595 dec=-46.0978 rad=12.0 tmin=590544001.0 tmax=590803201.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 4.35
user 4.07
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/487991/ft1_filtered_4FGL_J2126.3-4605_daily_bin1355.fits" evtable="EVENTS" scfile=/scratch/kocevski/487991/ft2_4FGL_J2126.3-4605_daily_bin1355.fits sctable="SC_DATA" outfile=/scratch/kocevski/487991/ltcube_590544001_590803201_4FGL_J2126.3-4605_daily_bin1355.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/487991/ft2_4FGL_J2126.3-4605_daily_bin1355.fits
.....................!
real 15.27
user 14.79
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/487991/ft1_filtered_4FGL_J2126.3-4605_daily_bin1355.fits evtable="EVENTS" scfile=/scratch/kocevski/487991/ft2_4FGL_J2126.3-4605_daily_bin1355.fits sctable="SC_DATA" expcube=/scratch/kocevski/487991/ltcube_590544001_590803201_4FGL_J2126.3-4605_daily_bin1355.fits outfile=/scratch/kocevski/487991/expmap_590544001_590803201_4FGL_J2126.3-4605_daily_bin1355.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/487991/ltcube_590544001_590803201_4FGL_J2126.3-4605_daily_bin1355.fits
.....................!
real 192.05
user 186.29
sys 4.44

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/487991/ft1_filtered_4FGL_J2126.3-4605_daily_bin1355.fits scfile=/scratch/kocevski/487991/ft2_4FGL_J2126.3-4605_daily_bin1355.fits outfile=/scratch/kocevski/487991/cmap_590544001_590803201_4FGL_J2126.3-4605_daily_bin1355.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.60
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/487991/ft1_filtered_4FGL_J2126.3-4605_daily_bin1355.fits scfile=/scratch/kocevski/487991/ft2_4FGL_J2126.3-4605_daily_bin1355.fits outfile=/scratch/kocevski/487991/cmap_HighResolution_590544001_590803201_4FGL_J2126.3-4605_daily_bin1355.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/487991/ft1_filtered_4FGL_J2126.3-4605_daily_bin1355.fits evtable="EVENTS" scfile=/scratch/kocevski/487991/ft2_4FGL_J2126.3-4605_daily_bin1355.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/487991/Model_4FGL_J2126.3-4605_daily_bin1355.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/487991/ft1_filtered_4FGL_J2126.3-4605_daily_bin1355.fits.....................!
real 62.18
user 59.33
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.746       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.0527       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.026       1.0000         .10000E-03   10000.    
     7 'norm      '    15.900       1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.625       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .17638E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15400E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.5541       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.9174       1.0000         .10000E-03   10000.    
    14 'norm      '    12.823       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.2464       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .91787E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.5331       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.6216       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.2599       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .93817       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99097       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=   8067.309     FROM MIGRAD    STATUS=CONVERGED    586 CALLS     2872 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.0584        .53741E-08** at limit **
   2  norm          .10000E-03    5.4703       -.39936E-07** at limit **
   3  Prefactor     .10000E-03    12.065        .50965E-07** at limit **
   4  Prefactor     28.750        43.870        .10154E-05    .47263E-04
   5  Prefactor     9.0525        3.2583       -.14730E-07   -.43171E-05
   6  Prefactor     11.019        18.783       -.37033E-06   -.18957E-04
   7  norm          15.899        2.7492       -.15136E-07   -.11206E-04
   8  Prefactor     22.624        25.323        .85854E-07    .57038E-05
   9  Prefactor     .10003E-03    129.88       -.12081E-04** at limit **
  10  Prefactor     .10000E-03    2.0898        .17051E-07** at limit **
  11  Prefactor     .10000E-03    84.043       -.28056E-05** at limit **
  12  Prefactor     6.5428        23.368        .59842E-06    .43235E-04
  13  Prefactor     6.9179        4.5732       -.29629E-06   -.18987E-03
  14  norm          12.815        5.2302       -.37849E-06   -.47198E-03
  15  Prefactor     6.2434        6.9788       -.98190E-06   -.44166E-03
  16  Prefactor     .10000E-03    4.7832       -.20312E-07** at limit **
  17  Prefactor     .10000E-03    17.276        .28831E-06** at limit **
  18  Prefactor     .10001E-03    5.6624       -.11276E-05** at limit **
  19  Prefactor     2.5336        2.5286       -.17293E-07    .16839E-03
  20  Prefactor     .10004E-03    104.24        .12908E-04** at limit **
  21  norm          .10000E-03    1.9757       -.31570E-07** at limit **
  22  Prefactor     2.6215        2.8652       -.13145E-06   -.77783E-06
  23  Prefactor     5.2605        7.5681        .27270E-05   -.99573E-03
  24  Normalizat    .93840        .19773        .46704E-06    .18162E-03
  25  Prefactor     .99077        .11847       -.22139E-06    .28282E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.7495
  Prefactor  = 9.05246
  Prefactor  = 11.019
  norm       = 15.8995
  Prefactor  = 22.6241
  Prefactor  = 0.000100029
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.54283
  Prefactor  = 6.91788
  norm       = 12.8155
  Prefactor  = 6.24342
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 2.53359
  Prefactor  = 0.000100039
  norm       = 0.0001
  Prefactor  = 2.62151
  Prefactor  = 5.26051
  Normalizat = 0.938399
  Prefactor  = 0.990766
 **********
 **   18 **HESSE 
 **********

 FCN=   8067.309     FROM HESSE     STATUS=OK           427 CALLS     3299 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.0689        .90229E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    5.4807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     28.750        43.873        .74724E-04   -1.4635    
   5  Prefactor     9.0525        3.2567        .92553E-04   -1.5106    
   6  Prefactor     11.019        18.782        .12066E-03   -1.5044    
   7  norm          15.899        2.7509        .58761E-04   -1.4910    
   8  Prefactor     22.624        25.344        .84210E-04   -1.4756    
   9  Prefactor     .10003E-03    136.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.1003        .12679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    86.449        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.5428        23.369        .15676E-03   -1.5196    
  13  Prefactor     6.9179        4.5953        .14810E-03   -1.5182    
  14  norm          12.815        5.2592        .11186E-03   -1.4992    
  15  Prefactor     6.2434        7.1218        .16062E-03   -1.5208    
  16  Prefactor     .10000E-03    4.8105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    22.644        .39548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.5336        2.5285        .13792E-03   -1.5390    
  20  Prefactor     .10004E-03    110.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.9760        .12330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.6215        2.8686        .15425E-03   -1.5384    
  23  Prefactor     5.2605        9.0229        .87629E-03   -1.5249    
  24  Normalizat    .93840        .23068        .32169E-03   -.95124    
  25  Prefactor     .99077        .13930        .19935E-03   -.93038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25693e-09
Minuit parameter uncertainties:
  1  8.93939e-07
  2  3.58383e-06
  3  2.9429e-06
  4  43.9218
  5  3.25676
  6  18.7925
  7  2.75091
  8  25.3559
  9  0.00398275
  10  1.59121e-06
  11  0.000351572
  12  23.402
  13  4.59549
  14  5.25934
  15  7.12272
  16  1.93236e-05
  17  4.2459e-05
  18  0.00115452
  19  2.52863
  20  0.00417512
  21  1.48027e-06
  22  2.86879
  23  9.02525
  24  0.230927
  25  0.139355
Done.

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

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  1.000e-04  1.591e-06  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:  9.908e-01  1.394e-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.384e-01  2.309e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 321.595 -46.098
Photon Flux Upper Limit: 5.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/487991/likelihoodResults_590544001_590803201_4FGL_J2126.3-4605_daily_bin1355.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) = 8067.31078417
delta logL = -0.00226348948581

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8067.30851987
delta logL = 8.15326529846e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5253       1.0000          .0000       10.000    
     3 'Normalizat'    .93840       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99076       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.

 FCN=   8067.210     FROM MIGRAD    STATUS=CONVERGED    159 CALLS      312 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .72474        30.995        .44749E-01    .17804E-02
   2  Index         1.1388        2.0580        .37215        .10346E-03
   3  Normalizat    .94384        .23773E-01    .32169E-03   -.38769E-04
   4  Prefactor     .98545        .15199E-01    .19935E-03   -.37810E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.724745
  Index      = 1.13875
  Normalizat = 0.943845
  Prefactor  = 0.985448
 **********
 **   18 **HESSE 
 **********

 FCN=   8067.210     FROM HESSE     STATUS=OK            31 CALLS      343 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .72474        3.4176        .20013E-02   -1.5538    
   2  Index         1.1388        1.2422        .12660E-01   -2.2592    
   3  Normalizat    .94384        .21406        .12867E-04   -.94936    
   4  Prefactor     .98545        .13713        .79740E-05   -.93216    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35201e-10
Minuit parameter uncertainties:
  1  3.1477
  2  1.27628
  3  0.214257
  4  0.137178
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/487991': 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) = 8067.21006472
delta logL = 0.0984559646549

Extracting fit parameters...

4FGL J2126.3-4605
   Spectrum: PowerLaw
280    Prefactor:  7.247e-01  3.148e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        Index:  1.139e+00  1.276e+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:  9.854e-01  1.372e-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.438e-01  2.143e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 321.595 -46.098

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/487991/cmap_HighResolution_590544001_590803201_4FGL_J2126.3-4605_daily_bin1355.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.10e-03', job_status='DONE', photon_flux_upper_limit='5.26e-08', time_completed='2021-09-26 13:42:17.882343', job_id='487991', GAL2='0.99', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1632688937.88', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='9.85e-02', ts2='0.20', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='1355' AND source_name='4FGL J2126.3-4605' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:42:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 487991: <4FGL_J2126.3-4605_daily_bin1355> in cluster <slac> Done

Job <4FGL_J2126.3-4605_daily_bin1355> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 26 13:25:54 2021
Job was executed on host(s) <bullet0296>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 13:27:24 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:27:24 2021
Terminated at Sun Sep 26 13:42:18 2021
Results reported at Sun Sep 26 13:42:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2126.3-4605_daily_bin1355 321.595 -46.0978 590544001 590803201 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 :                                   818.54 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            984 sec.

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

