/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 60 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 = 7446
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2123.6+0535_daily_bin1041
RA = 320.921, Dec = 5.592
tmin = 509155201, tmax = 509414401
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='478983', job_status='RUN', time_executed='2021-09-26 12:57:46.817215', time_epoch_executed='1632686266.82' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='1041'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/478983

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/478983/ft1_4FGL_J2123.6+0535_daily_bin1041.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/478983/ft2_4FGL_J2123.6+0535_daily_bin1041.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/478983/ft1_4FGL_J2123.6+0535_daily_bin1041.fits outfile=/scratch/kocevski/478983/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin1041.fits ra=320.921 dec=5.592 rad=12.0 tmin=509155201.0 tmax=509414401.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.68
user 3.40
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/478983/ft2_4FGL_J2123.6+0535_daily_bin1041.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/478983/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin1041.fits evtable="EVENTS" outfile="/scratch/kocevski/478983/ft1_filtered_4FGL_J2123.6+0535_daily_bin1041.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/478983/ft1_filtered_4FGL_J2123.6+0535_daily_bin1041.fits" evtable="EVENTS" scfile=/scratch/kocevski/478983/ft2_4FGL_J2123.6+0535_daily_bin1041.fits sctable="SC_DATA" outfile=/scratch/kocevski/478983/ltcube_509155201_509414401_4FGL_J2123.6+0535_daily_bin1041.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/478983/ft2_4FGL_J2123.6+0535_daily_bin1041.fits
.....................!
real 13.53
user 13.01
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/478983/ft1_filtered_4FGL_J2123.6+0535_daily_bin1041.fits evtable="EVENTS" scfile=/scratch/kocevski/478983/ft2_4FGL_J2123.6+0535_daily_bin1041.fits sctable="SC_DATA" expcube=/scratch/kocevski/478983/ltcube_509155201_509414401_4FGL_J2123.6+0535_daily_bin1041.fits outfile=/scratch/kocevski/478983/expmap_509155201_509414401_4FGL_J2123.6+0535_daily_bin1041.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/478983/ltcube_509155201_509414401_4FGL_J2123.6+0535_daily_bin1041.fits
.....................!
real 191.91
user 186.33
sys 4.18

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/478983/ft1_filtered_4FGL_J2123.6+0535_daily_bin1041.fits scfile=/scratch/kocevski/478983/ft2_4FGL_J2123.6+0535_daily_bin1041.fits outfile=/scratch/kocevski/478983/cmap_509155201_509414401_4FGL_J2123.6+0535_daily_bin1041.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.57
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/478983/ft1_filtered_4FGL_J2123.6+0535_daily_bin1041.fits scfile=/scratch/kocevski/478983/ft2_4FGL_J2123.6+0535_daily_bin1041.fits outfile=/scratch/kocevski/478983/cmap_HighResolution_509155201_509414401_4FGL_J2123.6+0535_daily_bin1041.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.58
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10818E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    10.301       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.334       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.1120       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    49.193       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.7435       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.215       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8283       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .15059       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    52.394       1.0000         .10000E-03   10000.    
    19 'norm      '    9.9595       1.0000         .10000E-03   10000.    
    20 'norm      '    47.606       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12348E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.1830       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.2134       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .31571       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1128       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=   6808.010     FROM MIGRAD    STATUS=CONVERGED    639 CALLS     3167 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    85.347       -.12169E-04** at limit **
   2  norm          10.305        10.700        .15849E-06    .10763E-03
   3  Prefactor     .10000E-03    1.5457        .75194E-07** at limit **
   4  Prefactor     .10000E-03    22.791        .25621E-06** at limit **
   5  Prefactor     .10000E-03    10.921        .20283E-06** at limit **
   6  Prefactor     24.296        39.222        .39770E-06    .86118E-04
   7  Prefactor     7.1243        49.307        .31047E-05   -.12830E-03
   8  Prefactor     .10000E-03    10.341       -.63622E-08** at limit **
   9  Prefactor     .10000E-03    90.381        .60340E-06** at limit **
  10  Prefactor     49.206        35.297       -.13098E-05   -.26485E-03
  11  Prefactor     .10003E-03    90.781        .13536E-04** at limit **
  12  Prefactor     4.7458        6.1948        .40328E-06   -.55601E-04
  13  Prefactor     12.217        8.3347        .85722E-06    .35624E-03
  14  Prefactor     1.8297        2.2909        .40310E-06   -.30708E-03
  15  Prefactor     .10000E-03    35.393        .40976E-05** at limit **
  16  Prefactor     .10067E-03    18.255       -.15646E-06** at limit **
  17  Prefactor     .10000E-03    34.265       -.35418E-05** at limit **
  18  Prefactor     52.385        56.204       -.10461E-06   -.51168E-04
  19  norm          9.9605        3.4685        .19502E-06    .24951E-03
  20  norm          47.608        27.394        .37635E-06    .12096E-04
  21  Prefactor     .10000E-03    9.0583       -.19749E-06** at limit **
  22  Prefactor     4.1882        11.827        .59391E-05   -.78359E-03
  23  Prefactor     2.1990        41.977        .17113E-05   -.27796E-04
  24  Prefactor     .10000E-03    16.577       -.13326E-06** at limit **
  25  Normalizat    .31559        .35381       -.11930E-04   -.11260E-03
  26  Prefactor     1.1129        .14405        .22240E-05    .87561E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100026
  norm       = 10.3046
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.2963
  Prefactor  = 7.12432
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.2057
  Prefactor  = 0.00010003
  Prefactor  = 4.74582
  Prefactor  = 12.217
  Prefactor  = 1.8297
  Prefactor  = 0.000100003
  Prefactor  = 0.000100672
  Prefactor  = 0.000100002
  Prefactor  = 52.3855
  norm       = 9.96055
  norm       = 47.6078
  Prefactor  = 0.0001
  Prefactor  = 4.1882
  Prefactor  = 2.19904
  Prefactor  = 0.0001
  Normalizat = 0.315592
  Prefactor  = 1.11288
 **********
 **   18 **HESSE 
 **********

 FCN=   6808.010     FROM HESSE     STATUS=OK           464 CALLS     3631 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    87.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.305        10.673        .12484E-03   -1.5066    
   3  Prefactor     .10000E-03    1.5540        .10018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    22.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     24.296        38.318        .81204E-04   -1.4722    
   7  Prefactor     7.1243        48.044        .75210E-03   -1.5174    
   8  Prefactor     .10000E-03    10.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    90.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     49.206        34.319        .57174E-04   -1.4304    
  11  Prefactor     .10003E-03    94.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.7458        6.1313        .18474E-03   -1.5272    
  13  Prefactor     12.217        8.3246        .11462E-03   -1.5009    
  14  Prefactor     1.8297        2.2489        .13136E-03   -1.5437    
  15  Prefactor     .10000E-03    35.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10067E-03    19.323        .12953       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    34.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     52.385        54.867        .55409E-04   -1.4259    
  19  norm          9.9605        3.4390        .81469E-04   -1.5077    
  20  norm          47.608        27.281        .58115E-04   -1.4327    
  21  Prefactor     .10000E-03    9.0998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.1882        12.846        .98526E-03   -1.5299    
  23  Prefactor     2.1990        40.702        .27646E-03   -1.5411    
  24  Prefactor     .10000E-03    16.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .31559        .29842        .59284E-03   -1.2192    
  26  Prefactor     1.1129        .12776        .15483E-03   -.89056    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.24173e-09
Minuit parameter uncertainties:
  1  0.00304434
  2  10.6752
  3  1.7542e-06
  4  3.17284e-05
  5  4.54731e-06
  6  38.357
  7  37.0444
  8  3.10548e-06
  9  0.000161609
  10  34.333
  11  0.00337952
  12  6.13208
  13  8.32542
  14  2.24896
  15  0.000686956
  16  0.00720882
  17  0.000586988
  18  54.9197
  19  3.43906
  20  27.288
  21  2.43255e-05
  22  12.8543
  23  18.936
  24  1.1991e-05
  25  0.299939
  26  0.127794
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  4.921e+01  3.433e+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.113e+00  1.278e-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:  3.156e-01  2.999e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.92
Ra Dec: 320.921 5.592
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 9.27e-08 +/- 6.46e-08
Energy Flux (Fixed Index): 3.08e-05 +/- 2.15e-05

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

Saving results to:
/scratch/kocevski/478983/likelihoodResults_509155201_509414401_4FGL_J2123.6+0535_daily_bin1041.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) = 6803.99315608
delta logL = 4.01647063178

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6803.98495943
delta logL = 4.02466728156

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4821       1.0000         .10000E-03   10000.    
     2 'Index     '    4.4532       1.0000          .0000       10.000    
     3 'Normalizat'    .12655       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1722       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=   6803.985     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      268 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4607        11.760        .64871E-02   -.47516E-02
   2  Index         4.4571        1.9584        .64035E-01   -.66572E-03
   3  Normalizat    .12652        .92430E-01    .21314       -.36478E-04
   4  Prefactor     1.1723        .46042E-01    .35323E-01   -.63326E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.46074
  Index      = 4.45715
  Normalizat = 0.126517
  Prefactor  = 1.17225
 **********
 **   18 **HESSE 
 **********

 FCN=   6803.985     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      301 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4607        16.470        .45999E-04   -1.5394    
   2  Index         4.4571        2.3951        .27102E-02   -.10878    
   3  Normalizat    .12652        .26406        .88593E-02   -1.3544    
   4  Prefactor     1.1723        .12530        .15092E-03   -.87189    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.85026e-10
Minuit parameter uncertainties:
  1  12.7373
  2  2.49904
  3  0.266802
  4  0.125328
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/478983': 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) = 6803.98495141
delta logL = 4.0246752945

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  2.461e+00  1.274e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  4.457e+00  2.499e+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:  1.172e+00  1.253e-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:  1.265e-01  2.668e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.13
Ra Dec: 320.921 5.592
Photon Index (Free Index): 4.46 +/- 2.50
Photon Flux (Free Index): 2.31e-07 +/- 8.92e-08
Energy Flux (Free Index): 3.24e-05 +/- 1.69e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/478983/cmap_HighResolution_509155201_509414401_4FGL_J2123.6+0535_daily_bin1041.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.64e-02', comment='SUCCESS', photon_flux='9.27e-08', energy_flux2='3.24e-05', photon_flux_error='6.46e-08', dlogl='4.02e+00', energy_flux='3.08e-05', photon_flux2='2.31e-07', job_status='DONE', time_completed='2021-09-26 13:11:15.621375', photon_index_error2='2.50', photon_index2='4.46', ts='2.92', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='2.12e-07', energy_flux_error2='1.69e-05', EG='0.32', time_epoch_completed='1632687075.62', return_code='0', job_id='478983', GAL2='1.17', EG2='0.13', return_code2='102', energy_flux_error='2.15e-05', photon_flux_error2='8.92e-08', ts2='12.13', photon_index='2.39' WHERE bin_id='1041' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:11:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0010>
Subject: Job 478983: <4FGL_J2123.6+0535_daily_bin1041> in cluster <slac> Done

Job <4FGL_J2123.6+0535_daily_bin1041> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep 26 12:55:35 2021
Job was executed on host(s) <bullet0010>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 12:56:32 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:56:32 2021
Terminated at Sun Sep 26 13:11:16 2021
Results reported at Sun Sep 26 13:11:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin1041 320.921 5.592 509155201 509414401 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 :                                   799.11 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            941 sec.

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

