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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin1483
RA = 320.921, Dec = 5.592
tmin = 623721601, tmax = 623980801
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='480710', job_status='RUN', time_executed='2021-09-26 13:04:47.742983', time_epoch_executed='1632686687.74' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='1483'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/480710

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/480710/ft1_4FGL_J2123.6+0535_daily_bin1483.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/480710/ft2_4FGL_J2123.6+0535_daily_bin1483.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/480710/ft1_4FGL_J2123.6+0535_daily_bin1483.fits outfile=/scratch/kocevski/480710/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin1483.fits ra=320.921 dec=5.592 rad=12.0 tmin=623721601.0 tmax=623980801.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 5.24
user 4.97
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/480710/ft2_4FGL_J2123.6+0535_daily_bin1483.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/480710/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin1483.fits evtable="EVENTS" outfile="/scratch/kocevski/480710/ft1_filtered_4FGL_J2123.6+0535_daily_bin1483.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.52
user 0.34
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/480710/ft1_filtered_4FGL_J2123.6+0535_daily_bin1483.fits evtable="EVENTS" scfile=/scratch/kocevski/480710/ft2_4FGL_J2123.6+0535_daily_bin1483.fits sctable="SC_DATA" expcube=/scratch/kocevski/480710/ltcube_623721601_623980801_4FGL_J2123.6+0535_daily_bin1483.fits outfile=/scratch/kocevski/480710/expmap_623721601_623980801_4FGL_J2123.6+0535_daily_bin1483.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/480710/ltcube_623721601_623980801_4FGL_J2123.6+0535_daily_bin1483.fits
.....................!
real 192.63
user 186.98
sys 4.78

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/480710/ft1_filtered_4FGL_J2123.6+0535_daily_bin1483.fits scfile=/scratch/kocevski/480710/ft2_4FGL_J2123.6+0535_daily_bin1483.fits outfile=/scratch/kocevski/480710/cmap_623721601_623980801_4FGL_J2123.6+0535_daily_bin1483.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.59
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/480710/ft1_filtered_4FGL_J2123.6+0535_daily_bin1483.fits scfile=/scratch/kocevski/480710/ft2_4FGL_J2123.6+0535_daily_bin1483.fits outfile=/scratch/kocevski/480710/cmap_HighResolution_623721601_623980801_4FGL_J2123.6+0535_daily_bin1483.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.5671       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.3500       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.5895       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.8613       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.3999       1.0000         .10000E-03   10000.    
     8 'Prefactor '    55.513       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11478E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    64.388       1.0000         .10000E-03   10000.    
    11 'Prefactor '    47.255       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .70367       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.7544       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1837       1.0000         .10000E-03   10000.    
    15 'Prefactor '    65.319       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.472       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .15684E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    18.882       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.6900       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .57094       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1120       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=   7058.498     FROM MIGRAD    STATUS=CONVERGED    633 CALLS     3192 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.379        .45938E-06** at limit **
   2  norm          7.5662        6.3618        .42322E-06    .69895E-04
   3  Prefactor     5.3491        4.7448        .83467E-06   -.74757E-04
   4  Prefactor     .10000E-03    37.182       -.15398E-05** at limit **
   5  Prefactor     8.5793        14.070       -.35925E-06   -.19707E-04
   6  Prefactor     2.8527        84.195       -.11067E-05   -.41509E-04
   7  Prefactor     1.4390        77.596        .30903E-05    .58595E-05
   8  Prefactor     55.503        41.063       -.69942E-06   -.14403E-04
   9  Prefactor     .10000E-03    147.57        .73790E-06** at limit **
  10  Prefactor     64.388        28.824       -.15308E-06    .28935E-04
  11  Prefactor     47.249        38.992       -.55194E-06   -.12571E-04
  12  Prefactor     .69331        3.1838        .20656E-07   -.23610E-03
  13  Prefactor     9.7522        8.4720        .17004E-06    .11062E-03
  14  Prefactor     3.1835        2.4578        .19742E-07   -.31374E-04
  15  Prefactor     65.290        41.811       -.17687E-05   -.36563E-04
  16  Prefactor     .10000E-03    27.530        .24115E-05** at limit **
  17  Prefactor     14.359        95.383        .48007E-06    .57702E-04
  18  Prefactor     .10000E-03    87.776        .10816E-05** at limit **
  19  norm          .10080E-03    1.2514       -.13061E-05** at limit **
  20  norm          18.910        19.372        .28053E-05    .31680E-03
  21  Prefactor     .10000E-03    2.3423       -.10904E-07** at limit **
  22  Prefactor     .10000E-03    11.809       -.51451E-06** at limit **
  23  Prefactor     2.6854        37.694       -.48243E-07    .49532E-07
  24  Prefactor     .10000E-03    11.412        .33215E-06** at limit **
  25  Normalizat    .57128        .29544        .61204E-05    .23935E-03
  26  Prefactor     1.1119        .12463       -.81414E-06    .65755E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 7.56617
  Prefactor  = 5.3491
  Prefactor  = 0.0001
  Prefactor  = 8.57928
  Prefactor  = 2.85271
  Prefactor  = 1.43905
  Prefactor  = 55.5027
  Prefactor  = 0.0001
  Prefactor  = 64.3883
  Prefactor  = 47.249
  Prefactor  = 0.693308
  Prefactor  = 9.75218
  Prefactor  = 3.18355
  Prefactor  = 65.2897
  Prefactor  = 0.0001
  Prefactor  = 14.3586
  Prefactor  = 0.0001
  norm       = 0.000100796
  norm       = 18.9102
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.68544
  Prefactor  = 0.0001
  Normalizat = 0.571276
  Prefactor  = 1.11195
 **********
 **   18 **HESSE 
 **********

 FCN=   7058.498     FROM HESSE     STATUS=OK           458 CALLS     3650 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.5662        6.3478        .14579E-03   -1.5158    
   3  Prefactor     5.3491        4.6973        .82378E-03   -1.5245    
   4  Prefactor     .10000E-03    37.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.5793        14.047        .13677E-03   -1.5122    
   6  Prefactor     2.8527        55.216        .24033E-03   -1.5370    
   7  Prefactor     1.4390        51.691        .36676E-03   -1.5468    
   8  Prefactor     55.503        40.856        .53838E-04   -1.4217    
   9  Prefactor     .10000E-03    148.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     64.388        28.780        .50012E-04   -1.4101    
  11  Prefactor     47.249        38.949        .58330E-04   -1.4332    
  12  Prefactor     .69331        10.604        .26548E-02   -1.5541    
  13  Prefactor     9.7522        8.4006        .12831E-03   -1.5083    
  14  Prefactor     3.1835        2.4493        .10787E-03   -1.5351    
  15  Prefactor     65.290        41.814        .49656E-04   -1.4090    
  16  Prefactor     .10000E-03    27.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     14.359        96.773        .10529E-03   -1.4950    
  18  Prefactor     .10000E-03    88.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10080E-03    24.101        .15584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          18.910        19.264        .92172E-04   -1.4838    
  21  Prefactor     .10000E-03    2.3484        .12557E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.6854        37.476        .24841E-03   -1.5380    
  24  Prefactor     .10000E-03    11.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .57128        .30680        .46777E-03   -1.0922    
  26  Prefactor     1.1119        .13424        .16223E-03   -.89086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.15996e-08
Minuit parameter uncertainties:
  1  5.93185e-06
  2  6.34834
  3  4.69767
  4  0.000149112
  5  14.0523
  6  25.1273
  7  17.265
  8  40.8769
  9  0.000304569
  10  28.7858
  11  38.9701
  12  5.4236
  13  8.4016
  14  2.44935
  15  41.8332
  16  9.44534e-05
  17  74.7275
  18  0.000389588
  19  0.00876579
  20  19.2708
  21  5.80844e-06
  22  5.37395e-05
  23  20.0789
  24  4.76359e-06
  25  0.30772
  26  0.134286
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  6.439e+01  2.879e+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.112e+00  1.343e-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.713e-01  3.077e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.59
Ra Dec: 320.921 5.592
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 1.21e-07 +/- 5.42e-08
Energy Flux (Fixed Index): 4.03e-05 +/- 1.80e-05

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) = 7058.21388385
delta logL = 0.28394857169

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7058.21218261
delta logL = 0.285649808641

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    80.789       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1055       1.0000          .0000       10.000    
     3 'Normalizat'    .60411       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1019       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=   7058.212     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      302 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     80.655        40.251        .44684E-04    .38626E-03
   2  Index         2.1037        .36747        .56622E-02    .17593E-03
   3  Normalizat    .60436        .28072        .45551E-03   -.62096E-04
   4  Prefactor     1.1019        .13220        .16286E-03    .30435E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 80.6547
  Index      = 2.10371
  Normalizat = 0.604365
  Prefactor  = 1.10195
 **********
 **   18 **HESSE 
 **********

 FCN=   7058.212     FROM HESSE     STATUS=OK            25 CALLS      327 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     80.655        39.763        .89369E-05   -1.3909    
   2  Index         2.1037        .36276        .22649E-03   -.61782    
   3  Normalizat    .60436        .28069        .18220E-04   -1.0780    
   4  Prefactor     1.1019        .13222        .65146E-05   -.89404    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.32401e-10
Minuit parameter uncertainties:
  1  39.7763
  2  0.363241
  3  0.281355
  4  0.132255
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/480710': 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) = 7058.21215303
delta logL = 0.285679390638

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  8.065e+01  3.978e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.104e+00  3.632e-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.102e+00  1.323e-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:  6.044e-01  2.814e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.12
Ra Dec: 320.921 5.592
Photon Index (Free Index): 2.10 +/- 0.36
Photon Flux (Free Index): 9.82e-08 +/- 5.55e-08
Energy Flux (Free Index): 5.35e-05 +/- 3.41e-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/480710/cmap_HighResolution_623721601_623980801_4FGL_J2123.6+0535_daily_bin1483.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.21e-07', energy_flux2='5.35e-05', photon_flux_error='5.42e-08', dlogl='2.86e-01', energy_flux='4.03e-05', photon_flux2='9.82e-08', job_status='DONE', time_completed='2021-09-26 13:17:22.941243', photon_index_error2='0.36', photon_index2='2.10', ts='11.59', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='3.41e-05', EG='0.57', time_epoch_completed='1632687442.94', return_code='0', job_id='480710', GAL2='1.10', EG2='0.60', return_code2='0', energy_flux_error='1.80e-05', photon_flux_error2='5.55e-08', ts2='12.12', photon_index='2.39' WHERE bin_id='1483' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:17:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 480710: <4FGL_J2123.6+0535_daily_bin1483> in cluster <slac> Done

Job <4FGL_J2123.6+0535_daily_bin1483> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 26 13:00:59 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 13:04:22 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:04:22 2021
Terminated at Sun Sep 26 13:17:23 2021
Results reported at Sun Sep 26 13:17:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin1483 320.921 5.592 623721601 623980801 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 :                                   744.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            984 sec.

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

