/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 3 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 = 7423
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2123.6+0535_daily_bin228
RA = 320.921, Dec = 5.592
tmin = 298425601, tmax = 298684801
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='473573', job_status='RUN', time_executed='2021-09-26 12:38:10.600891', time_epoch_executed='1632685090.6' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='228'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/473573

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/473573/ft1_4FGL_J2123.6+0535_daily_bin228.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/473573/ft2_4FGL_J2123.6+0535_daily_bin228.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/473573/ft1_4FGL_J2123.6+0535_daily_bin228.fits outfile=/scratch/kocevski/473573/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin228.fits ra=320.921 dec=5.592 rad=12.0 tmin=298425601.0 tmax=298684801.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.36
user 3.11
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/473573/ft2_4FGL_J2123.6+0535_daily_bin228.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/473573/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin228.fits evtable="EVENTS" outfile="/scratch/kocevski/473573/ft1_filtered_4FGL_J2123.6+0535_daily_bin228.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.54
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/473573/ft1_filtered_4FGL_J2123.6+0535_daily_bin228.fits" evtable="EVENTS" scfile=/scratch/kocevski/473573/ft2_4FGL_J2123.6+0535_daily_bin228.fits sctable="SC_DATA" outfile=/scratch/kocevski/473573/ltcube_298425601_298684801_4FGL_J2123.6+0535_daily_bin228.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/473573/ft2_4FGL_J2123.6+0535_daily_bin228.fits
.....................!
real 13.47
user 13.08
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/473573/ft1_filtered_4FGL_J2123.6+0535_daily_bin228.fits evtable="EVENTS" scfile=/scratch/kocevski/473573/ft2_4FGL_J2123.6+0535_daily_bin228.fits sctable="SC_DATA" expcube=/scratch/kocevski/473573/ltcube_298425601_298684801_4FGL_J2123.6+0535_daily_bin228.fits outfile=/scratch/kocevski/473573/expmap_298425601_298684801_4FGL_J2123.6+0535_daily_bin228.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/473573/ltcube_298425601_298684801_4FGL_J2123.6+0535_daily_bin228.fits
.....................!
real 199.10
user 193.93
sys 4.50

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/473573/ft1_filtered_4FGL_J2123.6+0535_daily_bin228.fits scfile=/scratch/kocevski/473573/ft2_4FGL_J2123.6+0535_daily_bin228.fits outfile=/scratch/kocevski/473573/cmap_298425601_298684801_4FGL_J2123.6+0535_daily_bin228.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/473573/ft1_filtered_4FGL_J2123.6+0535_daily_bin228.fits scfile=/scratch/kocevski/473573/ft2_4FGL_J2123.6+0535_daily_bin228.fits outfile=/scratch/kocevski/473573/cmap_HighResolution_298425601_298684801_4FGL_J2123.6+0535_daily_bin228.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    15.464       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.954       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.910       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    40.100       1.0000         .10000E-03   10000.    
    10 'Prefactor '    42.224       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.818       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.6775       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.0653       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.0121       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.2138       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.984       1.0000         .10000E-03   10000.    
    19 'norm      '    2.7972       1.0000         .10000E-03   10000.    
    20 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.5695       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .13307       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2226       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=   6450.107     FROM MIGRAD    STATUS=CONVERGED   1056 CALLS     4620 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.003        .18142E-02** at limit **
   2  norm          15.464        9.9353        .10185E-03    .62509E-05
   3  Prefactor     .10000E-03    4.6636        .33445E-03** at limit **
   4  Prefactor     .10000E-03    41.902        .18142E-02** at limit **
   5  Prefactor     10.954        14.535        .60525E-03   -.14144E-03
   6  Prefactor     .10000E-03    12.377        .18142E-02** at limit **
   7  Prefactor     25.910        22.237        .78699E-04    .39004E-05
   8  Prefactor     .10000E-03    9.2463        .18142E-02** at limit **
   9  Prefactor     40.104        57.790        .63299E-04    .12033E-04
  10  Prefactor     42.224        28.192        .61692E-04    .15480E-04
  11  Prefactor     15.818        26.868        .50352E-03   -.17521E-04
  12  Prefactor     4.6777        7.1674        .18607E-03    .10814E-04
  13  Prefactor     9.0656        8.3751        .13312E-03    .38517E-04
  14  Prefactor     2.0122        2.8231        .13800E-03   -.78181E-04
  15  Prefactor     3.2161        86.516        .22599E-03    .45779E-05
  16  Prefactor     .10000E-03    10.361        .18142E-02** at limit **
  17  Prefactor     .10000E-03    26.309        .18142E-02** at limit **
  18  Prefactor     12.982        48.568        .11116E-03    .21783E-04
  19  norm          2.7972        2.0759        .94659E-04    .12491E-03
  20  norm          .10000E-03    51.173        .36285E-03** at limit **
  21  Prefactor     7.5691        8.8470        .14576E-03    .81894E-05
  22  Prefactor     .10000E-03    10.958        .18142E-02** at limit **
  23  Prefactor     .10000E-03    17.087        .18142E-02** at limit **
  24  Prefactor     .10000E-03    16.639        .18142E-02** at limit **
  25  Normalizat    .13300        .34229        .84857E-02    .44210E-03
  26  Prefactor     1.2227        .14976        .14659E-03    .18567E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 15.4644
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.954
  Prefactor  = 0.0001
  Prefactor  = 25.9098
  Prefactor  = 0.0001
  Prefactor  = 40.104
  Prefactor  = 42.2245
  Prefactor  = 15.818
  Prefactor  = 4.67771
  Prefactor  = 9.06558
  Prefactor  = 2.01217
  Prefactor  = 3.2161
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.9823
  norm       = 2.79722
  norm       = 0.0001
  Prefactor  = 7.56912
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.133
  Prefactor  = 1.22265
 **********
 **   18 **HESSE 
 **********

 FCN=   6450.107     FROM HESSE     STATUS=OK           432 CALLS     5052 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.004        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          15.464        9.9325        .40740E-05   -1.4921    
   3  Prefactor     .10000E-03    4.6638        .66890E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    41.907        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.954        14.516        .24210E-04   -1.5046    
   6  Prefactor     .10000E-03    12.378        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     25.910        22.236        .31480E-05   -1.4689    
   8  Prefactor     .10000E-03    9.2464        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     40.104        57.558        .25320E-05   -1.4441    
  10  Prefactor     42.224        28.136        .24677E-05   -1.4407    
  11  Prefactor     15.818        26.857        .20141E-04   -1.4912    
  12  Prefactor     4.6777        7.1425        .74430E-05   -1.5275    
  13  Prefactor     9.0656        8.3607        .53247E-05   -1.5106    
  14  Prefactor     2.0122        2.8176        .55199E-05   -1.5424    
  15  Prefactor     3.2161        86.085        .90396E-05   -1.5349    
  16  Prefactor     .10000E-03    10.361        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    26.309        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.982        48.258        .44466E-05   -1.4987    
  19  norm          2.7972        2.0713        .37863E-05   -1.5373    
  20  norm          .10000E-03    51.175        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.5691        8.8460        .58305E-05   -1.5158    
  22  Prefactor     .10000E-03    10.963        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    17.091        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    16.641        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .13300        .31897        .16971E-02   -1.3484    
  26  Prefactor     1.2227        .14055        .58634E-05   -.85637    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26469e-10
Minuit parameter uncertainties:
  1  1.68596e-05
  2  9.93353
  3  2.37162e-06
  4  0.000216342
  5  14.5207
  6  1.41655e-07
  7  22.2433
  8  2.48437e-06
  9  57.638
  10  28.1444
  11  26.8779
  12  7.14378
  13  8.36181
  14  2.81781
  15  33.3308
  16  1.02508e-05
  17  5.71915e-05
  18  48.404
  19  2.07136
  20  2.4763e-05
  21  8.84754
  22  5.48042e-06
  23  2.21019e-05
  24  2.90969e-05
  25  0.323601
  26  0.140591
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  4.222e+01  2.814e+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.223e+00  1.406e-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.330e-01  3.236e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.18
Ra Dec: 320.921 5.592
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 7.96e-08 +/- 5.30e-08
Energy Flux (Fixed Index): 2.64e-05 +/- 1.76e-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) = 6449.92779757
delta logL = 0.179218923434

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6449.92061029
delta logL = 0.186406201935

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    47.939       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0558       1.0000          .0000       10.000    
     3 'Normalizat'    .16269       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2158       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=   6449.921     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      310 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     47.953        35.562        .57914E-04    .36355E-04
   2  Index         2.0560        .56772        .87706E-02   -.17340E-04
   3  Normalizat    .16282        .28921        .78105E-02    .40861E-03
   4  Prefactor     1.2157        .13960        .73488E-03    .15931E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 47.9534
  Index      = 2.05599
  Normalizat = 0.162816
  Prefactor  = 1.21572
 **********
 **   18 **HESSE 
 **********

 FCN=   6449.921     FROM HESSE     STATUS=OK            27 CALLS      337 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     47.953        35.642        .11583E-04   -1.4322    
   2  Index         2.0560        .56764        .35082E-03   -.62958    
   3  Normalizat    .16282        .27927        .15621E-02   -1.3228    
   4  Prefactor     1.2157        .13487        .29395E-04   -.85849    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.17153e-11
Minuit parameter uncertainties:
  1  35.6582
  2  0.569521
  3  0.281739
  4  0.134904
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/473573': 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) = 6449.92060961
delta logL = 0.186406881862

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  4.795e+01  3.566e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.056e+00  5.695e-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.216e+00  1.349e-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.628e-01  2.817e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.52
Ra Dec: 320.921 5.592
Photon Index (Free Index): 2.06 +/- 0.57
Photon Flux (Free Index): 5.46e-08 +/- 6.16e-08
Energy Flux (Free Index): 3.30e-05 +/- 2.87e-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/473573/cmap_HighResolution_298425601_298684801_4FGL_J2123.6+0535_daily_bin228.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.96e-08', energy_flux2='3.30e-05', photon_flux_error='5.30e-08', dlogl='1.86e-01', energy_flux='2.64e-05', photon_flux2='5.46e-08', job_status='DONE', time_completed='2021-09-26 12:51:53.293562', photon_index_error2='0.57', photon_index2='2.06', ts='5.18', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', energy_flux_error2='2.87e-05', EG='0.13', time_epoch_completed='1632685913.29', return_code='0', job_id='473573', GAL2='1.22', EG2='0.16', return_code2='0', energy_flux_error='1.76e-05', photon_flux_error2='6.16e-08', ts2='5.52', photon_index='2.39' WHERE bin_id='228' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 12:51:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 473573: <4FGL_J2123.6+0535_daily_bin228> in cluster <slac> Done

Job <4FGL_J2123.6+0535_daily_bin228> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 26 12:35:37 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 12:37:59 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:37:59 2021
Terminated at Sun Sep 26 12:51:54 2021
Results reported at Sun Sep 26 12:51:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin228 320.921 5.592 298425601 298684801 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 :                                   817.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             338.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            977 sec.

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

