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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin1358
RA = 320.921, Dec = 5.592
tmin = 591321601, tmax = 591580801
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='480512', job_status='RUN', time_executed='2021-09-26 13:06:24.067459', time_epoch_executed='1632686784.07' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='1358'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/480512

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/480512/ft1_4FGL_J2123.6+0535_daily_bin1358.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/480512/ft2_4FGL_J2123.6+0535_daily_bin1358.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/480512/ft1_4FGL_J2123.6+0535_daily_bin1358.fits outfile=/scratch/kocevski/480512/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin1358.fits ra=320.921 dec=5.592 rad=12.0 tmin=591321601.0 tmax=591580801.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.90
user 2.70
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/480512/ft1_filtered_4FGL_J2123.6+0535_daily_bin1358.fits evtable="EVENTS" scfile=/scratch/kocevski/480512/ft2_4FGL_J2123.6+0535_daily_bin1358.fits sctable="SC_DATA" expcube=/scratch/kocevski/480512/ltcube_591321601_591580801_4FGL_J2123.6+0535_daily_bin1358.fits outfile=/scratch/kocevski/480512/expmap_591321601_591580801_4FGL_J2123.6+0535_daily_bin1358.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/480512/ltcube_591321601_591580801_4FGL_J2123.6+0535_daily_bin1358.fits
.....................!
real 191.76
user 185.81
sys 5.34

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/480512/ft1_filtered_4FGL_J2123.6+0535_daily_bin1358.fits scfile=/scratch/kocevski/480512/ft2_4FGL_J2123.6+0535_daily_bin1358.fits outfile=/scratch/kocevski/480512/cmap_591321601_591580801_4FGL_J2123.6+0535_daily_bin1358.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/480512/ft1_filtered_4FGL_J2123.6+0535_daily_bin1358.fits scfile=/scratch/kocevski/480512/ft2_4FGL_J2123.6+0535_daily_bin1358.fits outfile=/scratch/kocevski/480512/cmap_HighResolution_591321601_591580801_4FGL_J2123.6+0535_daily_bin1358.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.55
user 0.37
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/480512/ft1_filtered_4FGL_J2123.6+0535_daily_bin1358.fits', '/scratch/kocevski/480512/ft2_4FGL_J2123.6+0535_daily_bin1358.fits', expMap='/scratch/kocevski/480512/expmap_591321601_591580801_4FGL_J2123.6+0535_daily_bin1358.fits', expCube='/scratch/kocevski/480512/ltcube_591321601_591580801_4FGL_J2123.6+0535_daily_bin1358.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/480512/Model_4FGL_J2123.6+0535_daily_bin1358.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/480512/ft1_filtered_4FGL_J2123.6+0535_daily_bin1358.fits
Spacecraft file(s): /scratch/kocevski/480512/ft2_4FGL_J2123.6+0535_daily_bin1358.fits
Exposure map: /scratch/kocevski/480512/expmap_591321601_591580801_4FGL_J2123.6+0535_daily_bin1358.fits
Exposure cube: /scratch/kocevski/480512/ltcube_591321601_591580801_4FGL_J2123.6+0535_daily_bin1358.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/480512/Model_4FGL_J2123.6+0535_daily_bin1358.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) = 3730.79119489

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4968       1.0000         .10000E-03   10000.    
     2 'norm      '    6.4444       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.1808       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.0246       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.3662       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    168.86       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .35244E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.1116       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.1870       1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.316       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.6045       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .72844E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.710       1.0000         .10000E-03   10000.    
    17 'Prefactor '    239.15       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.2243       1.0000         .10000E-03   10000.    
    20 'norm      '    2.5987       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.101       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .83640       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .90561       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=   3730.660     FROM MIGRAD    STATUS=CONVERGED    606 CALLS     3181 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5019        114.74        .30922E-06   -.54273E-05
   2  norm          6.4461        11.415       -.53558E-07   -.78485E-04
   3  Prefactor     3.1840        8.5854        .13448E-05   -.27067E-04
   4  Prefactor     .10000E-03    40.177       -.61355E-06** at limit **
   5  Prefactor     3.0264        15.431        .13422E-04   -.19245E-03
   6  Prefactor     9.3624        32.605       -.81302E-06    .15053E-04
   7  Prefactor     .10000E-03    59.772       -.26513E-05** at limit **
   8  Prefactor     .10000E-03    40.550        .23231E-07** at limit **
   9  Prefactor     168.85        135.30        .11531E-05   -.39387E-04
  10  Prefactor     .10000E-03    428.92       -.14760E-05** at limit **
  11  Prefactor     5.1243        634.05       -.67839E-05   -.74132E-05
  12  Prefactor     1.1889        28.875        .37257E-05   -.38125E-04
  13  Prefactor     26.325        21.847       -.13116E-05   -.99226E-04
  14  Prefactor     2.6014        7.3375        .13492E-05   -.97742E-04
  15  Prefactor     .10001E-03    361.88        .10049E-04** at limit **
  16  Prefactor     17.733        50.548        .79708E-06   -.10823E-06
  17  Prefactor     239.42        208.34        .12843E-04    .16708E-03
  18  Prefactor     .10000E-03    89.584        .11714E-05** at limit **
  19  norm          2.2219        6.0835       -.33878E-06   -.12786E-03
  20  norm          2.5895        101.67        .69092E-06    .54518E-05
  21  Prefactor     .10000E-03    26.383        .27916E-06** at limit **
  22  Prefactor     10.101        20.408        .59358E-06   -.15643E-04
  23  Prefactor     .10000E-03    54.400        .11615E-05** at limit **
  24  Prefactor     .10000E-03    53.619        .17843E-05** at limit **
  25  Normalizat    .83595        .38672       -.33567E-05   -.79933E-04
  26  Prefactor     .90571        .14233       -.54437E-06   -.13254E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.5019
  norm       = 6.4461
  Prefactor  = 3.184
  Prefactor  = 0.0001
  Prefactor  = 3.02641
  Prefactor  = 9.36244
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 168.851
  Prefactor  = 0.000100001
  Prefactor  = 5.1243
  Prefactor  = 1.18893
  Prefactor  = 26.3254
  Prefactor  = 2.60137
  Prefactor  = 0.00010001
  Prefactor  = 17.7334
  Prefactor  = 239.417
  Prefactor  = 0.0001
  norm       = 2.2219
  norm       = 2.5895
  Prefactor  = 0.0001
  Prefactor  = 10.1008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.835946
  Prefactor  = 0.905707
 **********
 **   18 **HESSE 
 **********

 FCN=   3730.660     FROM HESSE     STATUS=OK           460 CALLS     3641 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5019        113.88        .21622E-03   -1.5334    
   2  norm          6.4461        11.346        .15810E-03   -1.5200    
   3  Prefactor     3.1840        8.5610        .22722E-03   -1.5351    
   4  Prefactor     .10000E-03    40.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.0264        15.775        .11667E-02   -1.5360    
   6  Prefactor     9.3624        32.535        .13095E-03   -1.5096    
   7  Prefactor     .10000E-03    59.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    40.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     168.85        136.15        .31045E-04   -1.3102    
  10  Prefactor     .10000E-03    444.76        .36791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.1243        554.95        .17783E-03   -1.5255    
  12  Prefactor     1.1889        27.437        .41861E-03   -1.5490    
  13  Prefactor     26.325        21.340        .78090E-04   -1.4681    
  14  Prefactor     2.6014        6.8457        .15336E-03   -1.5385    
  15  Prefactor     .10001E-03    367.60        .20957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     17.733        50.487        .95172E-04   -1.4865    
  17  Prefactor     239.42        217.63        .13090E-03   -1.2601    
  18  Prefactor     .10000E-03    89.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.2219        6.0576        .20865E-03   -1.5410    
  20  norm          2.5895        100.73        .25309E-03   -1.5386    
  21  Prefactor     .10000E-03    26.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10.101        20.402        .12607E-03   -1.5072    
  23  Prefactor     .10000E-03    54.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    53.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .83595        .44824        .40596E-03   -.98749    
  26  Prefactor     .90571        .16859        .16591E-03   -.95942    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02566e-09
Minuit parameter uncertainties:
  1  40.0218
  2  11.3501
  3  8.56426
  4  5.64717e-05
  5  13.8246
  6  32.5962
  7  0.000435129
  8  2.12616e-05
  9  136.407
  10  0.00134072
  11  107.693
  12  11.4284
  13  21.3466
  14  6.84775
  15  0.0038027
  16  50.6094
  17  218.37
  18  0.000197327
  19  6.05929
  20  32.359
  21  3.5641e-05
  22  20.416
  23  0.000195418
  24  0.000285401
  25  0.450249
  26  0.168688
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.341e-03  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:  9.057e-01  1.687e-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.359e-01  4.502e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/480512/likelihoodResults_591321601_591580801_4FGL_J2123.6+0535_daily_bin1358.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) = 3730.66017312
delta logL = -1.05093326965e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3730.66017312
delta logL = -1.05073436316e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96365E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3898       1.0000          .0000       10.000    
     3 'Normalizat'    .83594       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90571       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.

 FCN=   3727.735     FROM MIGRAD    STATUS=CONVERGED    211 CALLS      366 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .88143E-03    .10250E-01    .28751E-03** at limit **
   2  Index         8.2342        2.5282        .87428E-01    .24854E-03
   3  Normalizat    .52687        .11882        .11313       -.13957E-03
   4  Prefactor     .99398        .50680E-01    .45078E-01   -.33784E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000881432
  Index      = 8.23419
  Normalizat = 0.526874
  Prefactor  = 0.993979
 **********
 **   18 **HESSE 
 **********

 FCN=   3727.735     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      397 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .88143E-03    .16133E-01    .10538E-05   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.2342        3.1085        .37712E-02    .70343    
   3  Normalizat    .52687        .36161        .50147E-03   -1.1119    
   4  Prefactor     .99398        .15259        .15884E-03   -.92930    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.01807e-10
Minuit parameter uncertainties:
  1  0.00710122
  2  3.63425
  3  0.363243
  4  0.15266
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/480512': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3727.73504206
delta logL = 2.92512055371

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  8.814e-04  7.101e-03  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  8.234e+00  3.634e+00  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:  9.940e-01  1.527e-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:  5.269e-01  3.632e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.45
Ra Dec: 320.921 5.592
Photon Index (Free Index): 8.23 +/- 3.63
Photon Flux (Free Index): 2.66e-07 +/- 1.48e-07
Energy Flux (Free Index): 3.07e-05 +/- 1.76e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/480512/cmap_HighResolution_591321601_591580801_4FGL_J2123.6+0535_daily_bin1358.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.57e-02', comment='SUCCESS', energy_flux2='3.07e-05', dlogl='2.93e+00', photon_flux2='2.66e-07', job_status='DONE', time_completed='2021-09-26 13:15:59.835142', photon_index_error2='3.63', photon_index2='8.23', ts='-0.00', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='2.03e-07', energy_flux_error2='1.76e-05', EG='0.84', time_epoch_completed='1632687359.84', return_code='0', job_id='480512', GAL2='0.99', EG2='0.53', return_code2='102', photon_flux_error2='1.48e-07', ts2='6.45', photon_index='2.39' WHERE bin_id='1358' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:15:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 480512: <4FGL_J2123.6+0535_daily_bin1358> in cluster <slac> Done

Job <4FGL_J2123.6+0535_daily_bin1358> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 26 13:00:41 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 13:02:52 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:02:52 2021
Terminated at Sun Sep 26 13:16:00 2021
Results reported at Sun Sep 26 13:16:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin1358 320.921 5.592 591321601 591580801 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 :                                   572.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   790 sec.
    Turnaround time :                            919 sec.

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

