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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin913
RA = 320.921, Dec = 5.592
tmin = 475977601, tmax = 476236801
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='478788', job_status='RUN', time_executed='2021-09-26 12:56:19.307657', time_epoch_executed='1632686179.31' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='913'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/478788

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/478788/ft1_4FGL_J2123.6+0535_daily_bin913.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/478788/ft2_4FGL_J2123.6+0535_daily_bin913.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/478788/ft1_4FGL_J2123.6+0535_daily_bin913.fits outfile=/scratch/kocevski/478788/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin913.fits ra=320.921 dec=5.592 rad=12.0 tmin=475977601.0 tmax=476236801.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.59
user 3.36
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/478788/ft2_4FGL_J2123.6+0535_daily_bin913.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/478788/ft2_4FGL_J2123.6+0535_daily_bin913.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/478788/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin913.fits evtable="EVENTS" outfile="/scratch/kocevski/478788/ft1_filtered_4FGL_J2123.6+0535_daily_bin913.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.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/478788/ft1_filtered_4FGL_J2123.6+0535_daily_bin913.fits" evtable="EVENTS" scfile=/scratch/kocevski/478788/ft2_4FGL_J2123.6+0535_daily_bin913.fits sctable="SC_DATA" outfile=/scratch/kocevski/478788/ltcube_475977601_476236801_4FGL_J2123.6+0535_daily_bin913.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/478788/ft2_4FGL_J2123.6+0535_daily_bin913.fits
.....................!
real 14.90
user 14.48
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/478788/ft1_filtered_4FGL_J2123.6+0535_daily_bin913.fits evtable="EVENTS" scfile=/scratch/kocevski/478788/ft2_4FGL_J2123.6+0535_daily_bin913.fits sctable="SC_DATA" expcube=/scratch/kocevski/478788/ltcube_475977601_476236801_4FGL_J2123.6+0535_daily_bin913.fits outfile=/scratch/kocevski/478788/expmap_475977601_476236801_4FGL_J2123.6+0535_daily_bin913.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/478788/ltcube_475977601_476236801_4FGL_J2123.6+0535_daily_bin913.fits
.....................!
real 191.97
user 186.37
sys 5.07

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 174 point sources and 0 extended sources

Setting source of interest to:
4FGL J2123.6+0535 @ 320.921 5.592

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/478788/ft1_filtered_4FGL_J2123.6+0535_daily_bin913.fits scfile=/scratch/kocevski/478788/ft2_4FGL_J2123.6+0535_daily_bin913.fits outfile=/scratch/kocevski/478788/cmap_475977601_476236801_4FGL_J2123.6+0535_daily_bin913.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=320.921 yref=5.592 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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/478788/ft1_filtered_4FGL_J2123.6+0535_daily_bin913.fits scfile=/scratch/kocevski/478788/ft2_4FGL_J2123.6+0535_daily_bin913.fits outfile=/scratch/kocevski/478788/cmap_HighResolution_475977601_476236801_4FGL_J2123.6+0535_daily_bin913.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=320.921 yref=5.592 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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/478788/ft1_filtered_4FGL_J2123.6+0535_daily_bin913.fits evtable="EVENTS" scfile=/scratch/kocevski/478788/ft2_4FGL_J2123.6+0535_daily_bin913.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/478788/Model_4FGL_J2123.6+0535_daily_bin913.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/478788/ft1_filtered_4FGL_J2123.6+0535_daily_bin913.fits.....................!
real 87.25
user 85.58
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/478788/ft1_filtered_4FGL_J2123.6+0535_daily_bin913.fits', '/scratch/kocevski/478788/ft2_4FGL_J2123.6+0535_daily_bin913.fits', expMap='/scratch/kocevski/478788/expmap_475977601_476236801_4FGL_J2123.6+0535_daily_bin913.fits', expCube='/scratch/kocevski/478788/ltcube_475977601_476236801_4FGL_J2123.6+0535_daily_bin913.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/478788/Model_4FGL_J2123.6+0535_daily_bin913.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2123.6+0535'

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  5.562e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.390e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  1.027e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/478788/ft1_filtered_4FGL_J2123.6+0535_daily_bin913.fits
Spacecraft file(s): /scratch/kocevski/478788/ft2_4FGL_J2123.6+0535_daily_bin913.fits
Exposure map: /scratch/kocevski/478788/expmap_475977601_476236801_4FGL_J2123.6+0535_daily_bin913.fits
Exposure cube: /scratch/kocevski/478788/ltcube_475977601_476236801_4FGL_J2123.6+0535_daily_bin913.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/478788/Model_4FGL_J2123.6+0535_daily_bin913.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) = 8621.53697717

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    65.965       1.0000         .10000E-03   10000.    
     2 'norm      '    2.1881       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.5133       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.524       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10394E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .31713E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.875       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .55276E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.969       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .99143       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.2130       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    31.253       1.0000         .10000E-03   10000.    
    19 'norm      '    5.0664       1.0000         .10000E-03   10000.    
    20 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .67346       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.7347       1.0000         .10000E-03   10000.    
    23 'Prefactor '    36.634       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .90862       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0168       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8621.527     FROM MIGRAD    STATUS=CONVERGED    624 CALLS     3144 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     65.984        47.736        .20791E-05    .19823E-03
   2  norm          2.1832        9.5197        .17533E-05    .44698E-04
   3  Prefactor     .10000E-03    2.6619        .38488E-07** at limit **
   4  Prefactor     2.5129        131.11        .15000E-05   -.45748E-05
   5  Prefactor     17.524        19.141        .60549E-07   -.26891E-04
   6  Prefactor     .10000E-03    49.251       -.49050E-05** at limit **
   7  Prefactor     .10003E-03    16.709        .11434E-06** at limit **
   8  Prefactor     .10000E-03    36.652        .14590E-05** at limit **
   9  Prefactor     .10000E-03    62.610        .38870E-05** at limit **
  10  Prefactor     26.877        26.641       -.23515E-07   -.23729E-04
  11  Prefactor     .10000E-03    23.318       -.72226E-07** at limit **
  12  Prefactor     .10000E-03    4.9866       -.56266E-08** at limit **
  13  Prefactor     11.959        10.835        .40295E-07   -.64392E-04
  14  Prefactor     .99081        1.8544       -.64858E-06   -.84715E-03
  15  Prefactor     .10000E-03    21.505       -.81941E-07** at limit **
  16  Prefactor     2.1805        214.81       -.97852E-05   -.43424E-04
  17  Prefactor     .10000E-03    60.024        .85249E-06** at limit **
  18  Prefactor     31.263        55.177       -.78307E-06   -.35606E-04
  19  norm          5.0662        2.7272        .53353E-07   -.13519E-03
  20  norm          .10000E-03    9.3199        .14814E-06** at limit **
  21  Prefactor     .66771        8.7750        .16707E-05   -.45017E-03
  22  Prefactor     6.7349        10.146        .28277E-05   -.25140E-03
  23  Prefactor     36.636        29.086       -.39724E-06   -.70676E-04
  24  Prefactor     .10000E-03    8.8448       -.48410E-07** at limit **
  25  Normalizat    .90865        .25272       -.66171E-08   -.85872E-04
  26  Prefactor     1.0168        .10491       -.50713E-06   -.93612E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 65.9836
  norm       = 2.18316
  Prefactor  = 0.0001
  Prefactor  = 2.51285
  Prefactor  = 17.524
  Prefactor  = 0.000100004
  Prefactor  = 0.000100028
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 26.877
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 11.9589
  Prefactor  = 0.990808
  Prefactor  = 0.0001
  Prefactor  = 2.18052
  Prefactor  = 0.0001
  Prefactor  = 31.2634
  norm       = 5.06622
  norm       = 0.0001
  Prefactor  = 0.667707
  Prefactor  = 6.73489
  Prefactor  = 36.6359
  Prefactor  = 0.0001
  Normalizat = 0.908647
  Prefactor  = 1.01681
 **********
 **   18 **HESSE 
 **********

 FCN=   8621.527     FROM HESSE     STATUS=OK           466 CALLS     3610 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     65.984        48.019        .49414E-04   -1.4082    
   2  norm          2.1832        9.3223        .27825E-03   -1.5412    
   3  Prefactor     .10000E-03    2.6994        .14787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.5129        131.44        .25772E-03   -1.5391    
   5  Prefactor     17.524        19.127        .95675E-04   -1.4870    
   6  Prefactor     .10000E-03    50.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10003E-03    170.99        .72713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    36.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    63.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     26.877        26.646        .77276E-04   -1.4671    
  11  Prefactor     .10000E-03    23.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.339        .37564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.959        10.360        .11579E-03   -1.5016    
  14  Prefactor     .99081        1.5053        .16490E-02   -1.5509    
  15  Prefactor     .10000E-03    21.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.1805        209.60        .27649E-03   -1.5413    
  17  Prefactor     .10000E-03    60.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     31.263        54.415        .71672E-04   -1.4589    
  19  norm          5.0662        2.7216        .10671E-03   -1.5258    
  20  norm          .10000E-03    9.3456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .66771        30.419        .43152E-02   -1.5545    
  22  Prefactor     6.7349        10.419        .77308E-03   -1.5189    
  23  Prefactor     36.636        29.106        .66215E-04   -1.4497    
  24  Prefactor     .10000E-03    8.8483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .90865        .29097        .40258E-03   -.96157    
  26  Prefactor     1.0168        .12385        .17236E-03   -.92171    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14895e-09
Minuit parameter uncertainties:
  1  48.0473
  2  9.02485
  3  3.09426e-06
  4  36.4319
  5  19.134
  6  0.000935422
  7  0.00437878
  8  0.000264749
  9  0.000926612
  10  26.6575
  11  6.41813e-05
  12  0.000186837
  13  10.3616
  14  1.50535
  15  4.34956e-06
  16  42.9118
  17  0.000196657
  18  54.5016
  19  2.72167
  20  2.17069e-06
  21  9.01778
  22  10.4216
  23  29.117
  24  6.68785e-06
  25  0.291472
  26  0.12388
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  2.688e+01  2.666e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.390e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  1.027e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  1.017e+00  1.239e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  9.086e-01  2.915e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.32
Ra Dec: 320.921 5.592
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 5.06e-08 +/- 5.02e-08
Energy Flux (Fixed Index): 1.68e-05 +/- 1.67e-05

TS (Fixed Index): 1.32
Ra Dec: 320.921 5.592
Photon Flux Upper Limit: 1.53e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.18e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/478788/likelihoodResults_475977601_476236801_4FGL_J2123.6+0535_daily_bin913.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): 0
logL (Free Index) = 8621.36481279
delta logL = 0.161940538525

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8621.36017159
delta logL = 0.166581729949

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.855       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8662       1.0000          .0000       10.000    
     3 'Normalizat'    .87724       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0265       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+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=   8621.360     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      308 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.841        37.272        .97557E-04   -.36778E-03
   2  Index         2.8671        1.2757        .78210E-02   -.80205E-04
   3  Normalizat    .87686        .27953        .40918E-03    .11142E-03
   4  Prefactor     1.0267        .12448        .17162E-03   -.19876E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.841
  Index      = 2.86713
  Normalizat = 0.876857
  Prefactor  = 1.02667
 **********
 **   18 **HESSE 
 **********

 FCN=   8621.360     FROM HESSE     STATUS=OK            25 CALLS      333 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.841        27.154        .39023E-05   -1.4887    
   2  Index         2.8671        .93274        .31284E-03   -.44070    
   3  Normalizat    .87686        .27746        .16367E-04   -.97278    
   4  Prefactor     1.0267        .12344        .34324E-04   -.91846    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.07184e-10
Minuit parameter uncertainties:
  1  27.1734
  2  0.939484
  3  0.277911
  4  0.123475
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/478788': 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) = 8621.36017029
delta logL = 0.166583036607

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.684e+01  2.717e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.867e+00  9.395e-01  0.000e+00  1.000e+01 (-1.000e+00)
315        Scale:  1.027e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  1.027e+00  1.235e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  8.769e-01  2.779e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.68
Ra Dec: 320.921 5.592
Photon Index (Free Index): 2.87 +/- 0.94
Photon Flux (Free Index): 7.19e-08 +/- 6.72e-08
Energy Flux (Free Index): 1.54e-05 +/- 1.40e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/478788/cmap_HighResolution_475977601_476236801_4FGL_J2123.6+0535_daily_bin913.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.18e-02', comment='SUCCESS', photon_flux='5.06e-08', energy_flux2='1.54e-05', photon_flux_error='5.02e-08', dlogl='1.67e-01', energy_flux='1.68e-05', photon_flux2='7.19e-08', job_status='DONE', time_completed='2021-09-26 13:11:43.640867', photon_index_error2='0.94', photon_index2='2.87', ts='1.32', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.53e-07', energy_flux_error2='1.40e-05', EG='0.91', time_epoch_completed='1632687103.64', return_code='0', job_id='478788', GAL2='1.03', EG2='0.88', return_code2='0', energy_flux_error='1.67e-05', photon_flux_error2='6.72e-08', ts2='1.68', photon_index='2.39' WHERE bin_id='913' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:11:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 478788: <4FGL_J2123.6+0535_daily_bin913> in cluster <slac> Done

Job <4FGL_J2123.6+0535_daily_bin913> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep 26 12:55:18 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 12:55:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 12:55:28 2021
Terminated at Sun Sep 26 13:11:44 2021
Results reported at Sun Sep 26 13:11:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin913 320.921 5.592 475977601 476236801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2123.6+0535 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   922.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   977 sec.
    Turnaround time :                            986 sec.

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

