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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin391
RA = 320.921, Dec = 5.592
tmin = 340675201, tmax = 340934401
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='473823', job_status='RUN', time_executed='2021-09-26 12:40:49.483624', time_epoch_executed='1632685249.48' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='391'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/473823

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/473823/ft1_4FGL_J2123.6+0535_daily_bin391.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/473823/ft2_4FGL_J2123.6+0535_daily_bin391.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/473823/ft1_4FGL_J2123.6+0535_daily_bin391.fits outfile=/scratch/kocevski/473823/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin391.fits ra=320.921 dec=5.592 rad=12.0 tmin=340675201.0 tmax=340934401.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 6.17
user 5.92
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/473823/ft1_filtered_4FGL_J2123.6+0535_daily_bin391.fits" evtable="EVENTS" scfile=/scratch/kocevski/473823/ft2_4FGL_J2123.6+0535_daily_bin391.fits sctable="SC_DATA" outfile=/scratch/kocevski/473823/ltcube_340675201_340934401_4FGL_J2123.6+0535_daily_bin391.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/473823/ft2_4FGL_J2123.6+0535_daily_bin391.fits
.....................!
real 12.65
user 12.24
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/473823/ft1_filtered_4FGL_J2123.6+0535_daily_bin391.fits evtable="EVENTS" scfile=/scratch/kocevski/473823/ft2_4FGL_J2123.6+0535_daily_bin391.fits sctable="SC_DATA" expcube=/scratch/kocevski/473823/ltcube_340675201_340934401_4FGL_J2123.6+0535_daily_bin391.fits outfile=/scratch/kocevski/473823/expmap_340675201_340934401_4FGL_J2123.6+0535_daily_bin391.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/473823/ltcube_340675201_340934401_4FGL_J2123.6+0535_daily_bin391.fits
.....................!
real 190.39
user 185.80
sys 4.24

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/473823/ft1_filtered_4FGL_J2123.6+0535_daily_bin391.fits scfile=/scratch/kocevski/473823/ft2_4FGL_J2123.6+0535_daily_bin391.fits outfile=/scratch/kocevski/473823/cmap_340675201_340934401_4FGL_J2123.6+0535_daily_bin391.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/473823/ft1_filtered_4FGL_J2123.6+0535_daily_bin391.fits scfile=/scratch/kocevski/473823/ft2_4FGL_J2123.6+0535_daily_bin391.fits outfile=/scratch/kocevski/473823/cmap_HighResolution_340675201_340934401_4FGL_J2123.6+0535_daily_bin391.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/473823/ft1_filtered_4FGL_J2123.6+0535_daily_bin391.fits evtable="EVENTS" scfile=/scratch/kocevski/473823/ft2_4FGL_J2123.6+0535_daily_bin391.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/473823/Model_4FGL_J2123.6+0535_daily_bin391.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/473823/ft1_filtered_4FGL_J2123.6+0535_daily_bin391.fits.....................!
real 59.91
user 58.57
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    14.102       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .50526       1.0000         .10000E-03   10000.    
     4 'Prefactor '    51.506       1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.888       1.0000         .10000E-03   10000.    
     6 'Prefactor '    33.135       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10222E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.8128       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    87.595       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12559E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.559       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    69.356       1.0000         .10000E-03   10000.    
    16 'Prefactor '    53.552       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10445E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14175E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    2.2720       1.0000         .10000E-03   10000.    
    20 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .84823       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .33745       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .35829       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1033       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=   5843.738     FROM MIGRAD    STATUS=CONVERGED    656 CALLS     3174 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    116.79        .31011E-06** at limit **
   2  norm          14.102        11.837        .43817E-06    .63174E-04
   3  Prefactor     .50570        5.2206        .25553E-05   -.40199E-03
   4  Prefactor     51.509        46.995        .20258E-07   -.31498E-04
   5  Prefactor     18.891        20.651        .42747E-06   -.24195E-04
   6  Prefactor     33.143        30.379        .53940E-06    .75614E-04
   7  Prefactor     .10000E-03    48.977        .17956E-06** at limit **
   8  Prefactor     6.8122        52.316       -.58308E-07    .99544E-05
   9  Prefactor     .10000E-03    26.665        .99985E-07** at limit **
  10  Prefactor     87.593        40.234        .46700E-06   -.21853E-04
  11  Prefactor     .10000E-03    234.48        .61720E-05** at limit **
  12  Prefactor     11.560        8.3216        .13187E-05   -.50983E-03
  13  Prefactor     .10000E-03    8.8764       -.92414E-07** at limit **
  14  Prefactor     .10000E-03    .91278        .18941E-06** at limit **
  15  Prefactor     69.304        49.445        .17004E-05    .33714E-05
  16  Prefactor     53.546        43.687        .52158E-06   -.15783E-04
  17  Prefactor     .10000E-03    153.31       -.12709E-05** at limit **
  18  Prefactor     .10002E-03    284.26        .55102E-05** at limit **
  19  norm          2.2712        3.2850        .52836E-06    .20559E-04
  20  norm          .10000E-03    7.6370        .38257E-07** at limit **
  21  Prefactor     .82762        11.182        .17554E-05   -.17219E-03
  22  Prefactor     .10000E-03    16.786        .19073E-06** at limit **
  23  Prefactor     .10000E-03    34.593        .19127E-06** at limit **
  24  Prefactor     .63555E-01    36.193        .14666E-06    .14294E-03
  25  Normalizat    .35834        .35099       -.12783E-04   -.16553E-03
  26  Prefactor     1.1033        .14453        .20571E-05   -.15507E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 14.1019
  Prefactor  = 0.505702
  Prefactor  = 51.5085
  Prefactor  = 18.8909
  Prefactor  = 33.1434
  Prefactor  = 0.0001
  Prefactor  = 6.81221
  Prefactor  = 0.0001
  Prefactor  = 87.5932
  Prefactor  = 0.0001
  Prefactor  = 11.5598
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 69.3037
  Prefactor  = 53.5456
  Prefactor  = 0.000100003
  Prefactor  = 0.000100019
  norm       = 2.27116
  norm       = 0.0001
  Prefactor  = 0.827621
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0635546
  Normalizat = 0.358338
  Prefactor  = 1.10326
 **********
 **   18 **HESSE 
 **********

 FCN=   5843.738     FROM HESSE     STATUS=OK           462 CALLS     3636 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    117.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          14.102        11.862        .10666E-03   -1.4957    
   3  Prefactor     .50570        5.0516        .33125E-03   -1.5566    
   4  Prefactor     51.509        46.966        .55882E-04   -1.4271    
   5  Prefactor     18.891        20.530        .92156E-04   -1.4838    
   6  Prefactor     33.143        30.356        .69612E-04   -1.4556    
   7  Prefactor     .10000E-03    49.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.8122        52.027        .15372E-03   -1.5186    
   9  Prefactor     .10000E-03    26.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     87.593        40.060        .42928E-04   -1.3833    
  11  Prefactor     .10000E-03    240.76        .41210E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.560        8.2988        .58915E-03   -1.5028    
  13  Prefactor     .10000E-03    9.0256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .91566        .71195E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     69.304        48.803        .48199E-04   -1.4041    
  16  Prefactor     53.546        43.660        .54809E-04   -1.4243    
  17  Prefactor     .10000E-03    153.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10002E-03    290.56        .41029E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.2712        3.2589        .15092E-03   -1.5407    
  20  norm          .10000E-03    7.6442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .82762        32.466        .43925E-02   -1.5526    
  22  Prefactor     .10000E-03    16.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    34.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .63555E-01    42.643        .11963       -1.5658    
  25  Normalizat    .35834        .34710        .57221E-03   -1.1951    
  26  Prefactor     1.1033        .14345        .15720E-03   -.89363    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13396e-09
Minuit parameter uncertainties:
  1  0.000309342
  2  11.8637
  3  3.19667
  4  46.9998
  5  20.5374
  6  30.3698
  7  8.03381e-05
  8  37.6975
  9  1.03963e-06
  10  40.0724
  11  3.04531e-05
  12  8.29961
  13  1.52592e-05
  14  5.28094e-06
  15  48.831
  16  43.6856
  17  0.00141305
  18  0.00478123
  19  3.25914
  20  5.82432e-07
  21  10.3725
  22  1.4021e-06
  23  9.65636e-05
  24  3.29229
  25  0.34921
  26  0.143505
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  8.759e+01  4.007e+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.103e+00  1.435e-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.583e-01  3.492e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.83
Ra Dec: 320.921 5.592
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 1.65e-07 +/- 7.54e-08
Energy Flux (Fixed Index): 5.48e-05 +/- 2.51e-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) = 5843.62589994
delta logL = 0.111639589754

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5843.61049383
delta logL = 0.127045699939

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    67.441       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6413       1.0000          .0000       10.000    
     3 'Normalizat'    .31906       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1162       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=   5843.610     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      286 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     67.426        57.735        .48874E-04    .28365E-03
   2  Index         2.6409        .58031        .41372E-02    .16386E-03
   3  Normalizat    .31887        .30836        .60491E-03   -.33220E-03
   4  Prefactor     1.1163        .14149        .15636E-03   -.18783E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 67.4264
  Index      = 2.64092
  Normalizat = 0.318871
  Prefactor  = 1.11634
 **********
 **   18 **HESSE 
 **********

 FCN=   5843.610     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     67.426        52.240        .97749E-05   -1.4064    
   2  Index         2.6409        .52444        .16549E-03   -.49135    
   3  Normalizat    .31887        .30627        .24197E-04   -1.2173    
   4  Prefactor     1.1163        .14071        .31272E-04   -.88946    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09102e-09
Minuit parameter uncertainties:
  1  52.2755
  2  0.525686
  3  0.307897
  4  0.140754
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/473823': 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) = 5843.61049178
delta logL = 0.127047749385

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  6.743e+01  5.228e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.641e+00  5.257e-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.116e+00  1.408e-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.189e-01  3.079e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.17
Ra Dec: 320.921 5.592
Photon Index (Free Index): 2.64 +/- 0.53
Photon Flux (Free Index): 1.93e-07 +/- 9.84e-08
Energy Flux (Free Index): 4.88e-05 +/- 2.33e-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/473823/cmap_HighResolution_340675201_340934401_4FGL_J2123.6+0535_daily_bin391.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.65e-07', energy_flux2='4.88e-05', photon_flux_error='7.54e-08', dlogl='1.27e-01', energy_flux='5.48e-05', photon_flux2='1.93e-07', job_status='DONE', time_completed='2021-09-26 12:52:03.670380', photon_index_error2='0.53', photon_index2='2.64', ts='8.83', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='2.33e-05', EG='0.36', time_epoch_completed='1632685923.67', return_code='0', job_id='473823', GAL2='1.12', EG2='0.32', return_code2='0', energy_flux_error='2.51e-05', photon_flux_error2='9.84e-08', ts2='9.17', photon_index='2.39' WHERE bin_id='391' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 12:52:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 473823: <4FGL_J2123.6+0535_daily_bin391> in cluster <slac> Done

Job <4FGL_J2123.6+0535_daily_bin391> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 26 12:36:00 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 12:40:36 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:40:36 2021
Terminated at Sun Sep 26 12:52:04 2021
Results reported at Sun Sep 26 12:52:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin391 320.921 5.592 340675201 340934401 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 :                                   669.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             344.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   687 sec.
    Turnaround time :                            964 sec.

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

