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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin559
RA = 320.921, Dec = 5.592
tmin = 384220801, tmax = 384480001
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='475108', job_status='RUN', time_executed='2021-09-26 12:49:25.474220', time_epoch_executed='1632685765.47' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='559'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/475108

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/475108/ft1_4FGL_J2123.6+0535_daily_bin559.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/475108/ft2_4FGL_J2123.6+0535_daily_bin559.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/475108/ft1_4FGL_J2123.6+0535_daily_bin559.fits outfile=/scratch/kocevski/475108/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin559.fits ra=320.921 dec=5.592 rad=12.0 tmin=384220801.0 tmax=384480001.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 11.67
user 11.25
sys 0.37

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/475108/ft1_filtered_4FGL_J2123.6+0535_daily_bin559.fits evtable="EVENTS" scfile=/scratch/kocevski/475108/ft2_4FGL_J2123.6+0535_daily_bin559.fits sctable="SC_DATA" expcube=/scratch/kocevski/475108/ltcube_384220801_384480001_4FGL_J2123.6+0535_daily_bin559.fits outfile=/scratch/kocevski/475108/expmap_384220801_384480001_4FGL_J2123.6+0535_daily_bin559.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/475108/ltcube_384220801_384480001_4FGL_J2123.6+0535_daily_bin559.fits
.....................!
real 158.45
user 153.21
sys 4.46

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/475108/ft1_filtered_4FGL_J2123.6+0535_daily_bin559.fits scfile=/scratch/kocevski/475108/ft2_4FGL_J2123.6+0535_daily_bin559.fits outfile=/scratch/kocevski/475108/cmap_384220801_384480001_4FGL_J2123.6+0535_daily_bin559.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.52
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/475108/ft1_filtered_4FGL_J2123.6+0535_daily_bin559.fits scfile=/scratch/kocevski/475108/ft2_4FGL_J2123.6+0535_daily_bin559.fits outfile=/scratch/kocevski/475108/cmap_HighResolution_384220801_384480001_4FGL_J2123.6+0535_daily_bin559.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.48
user 0.34
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10177E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.9404       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    52.183       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    125.76       1.0000         .10000E-03   10000.    
    10 'Prefactor '    33.907       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .36698E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10319E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    56.264       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13256E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.2985       1.0000         .10000E-03   10000.    
    20 'norm      '    96.782       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.524       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .13592E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .93963E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    .99524       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1324.329     FROM MIGRAD    STATUS=CONVERGED    102 CALLS     3137 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10099E-03    19.348       -.33786E-04** at limit **
   2  norm          .10000E-03    9.1259       -.27459E-05** at limit **
   3  Prefactor     7.9340        1.0574       -.86745E-06    .20533E-04
   4  Prefactor     .10087E-03    24.618        .48408E-04** at limit **
   5  Prefactor     52.167        3.0755       -.35788E-05    .42342E-03
   6  Prefactor     .12714E-03    239.55       -.27750E-03** at limit **
   7  Prefactor     .10043E-03    30.935       -.56713E-04** at limit **
   8  Prefactor     .10000E-03    21.207        .13814E-04** at limit **
   9  Prefactor     125.75        2.2095       -.18848E-05    .30767E-02
  10  Prefactor     33.878        6.2139       -.10609E-04    .31071E-02
  11  Prefactor     .15717E-02    24.063       -.10120E-03** at limit **
  12  Prefactor     .10000E-03    3.3996       -.18951E-06** at limit **
  13  Prefactor     .10000E-03    7.0713        .33172E-05** at limit **
  14  Prefactor     .10000E-03    5.8210       -.97596E-06** at limit **
  15  Prefactor     .13262E-03    55.203       -.30694E-05** at limit **
  16  Prefactor     56.262        1.2302       -.10347E-05    .82986E-03
  17  Prefactor     .10098E-03    31.150        .49799E-04** at limit **
  18  Prefactor     .10775E-03    36.634       -.67664E-04** at limit **
  19  norm          2.2916        6.7919       -.25845E-05   -.36871E-04
  20  norm          96.766        3.7478       -.38298E-05    .39904E-02
  21  Prefactor     12.506        1.3637        .93119E-06   -.47722E-04
  22  Prefactor     .10178E-03    32.987        .81647E-04** at limit **
  23  Prefactor     .10387E-03    18.634        .17628E-04** at limit **
  24  Prefactor     .10219E-03    18.090       -.18131E-04** at limit **
  25  Normalizat    .96405E-01    1.1481        .73110E-04    .40683E-04
  26  Prefactor     .99438        .27923       -.76855E-05    .28687E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100987
  norm       = 0.0001
  Prefactor  = 7.93403
  Prefactor  = 0.000100873
  Prefactor  = 52.167
  Prefactor  = 0.000127143
  Prefactor  = 0.000100433
  Prefactor  = 0.0001
  Prefactor  = 125.749
  Prefactor  = 33.8779
  Prefactor  = 0.0015717
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000132622
  Prefactor  = 56.2616
  Prefactor  = 0.000100982
  Prefactor  = 0.000107747
  norm       = 2.29159
  norm       = 96.766
  Prefactor  = 12.5063
  Prefactor  = 0.000101784
  Prefactor  = 0.000103874
  Prefactor  = 0.000102192
  Normalizat = 0.0964055
  Prefactor  = 0.994376
 **********
 **   18 **HESSE 
 **********

 FCN=   1324.329     FROM HESSE     STATUS=NOT POSDEF   500 CALLS     3637 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10099E-03    58.975        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    7.7256        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.9340        19.040        .35573E-02   -1.5145    
   4  Prefactor     .10087E-03    80.776        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     52.167        67.976        .13880E-02   -1.4262    
   6  Prefactor     .12714E-03    297.15        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10043E-03    26.710        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.939        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     125.75        1466.9        .89740E-03   -1.3460    
  10  Prefactor     33.878        92.871        .17205E-02   -1.4543    
  11  Prefactor     .15717E-02    1370.4        .97996E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.8903        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.1136        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.9273        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .13262E-03    116.99        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     56.262        566.84        .13370E-02   -1.4206    
  17  Prefactor     .10098E-03    91.303        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10775E-03    44.784        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.2916        23.240        .67675E-02   -1.5405    
  20  norm          96.766        141.48        .10215E-02   -1.3737    
  21  Prefactor     12.506        31.031        .28298E-02   -1.5001    
  22  Prefactor     .10178E-03    30.276        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10387E-03    69.395        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10219E-03    61.861        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .96405E-01    9.7508        .24045       -1.3845    
  26  Prefactor     .99438        1.2535        .33050E-01   -.92917    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.51151e-05
Minuit parameter uncertainties:
  1  0.0152753
  2  4.20825e-05
  3  19.0549
  4  0.0168189
  5  68.0776
  6  0.18052
  7  0.00680735
  8  0.000167506
  9  887.811
  10  93.2706
  11  2.90957
  12  3.52191e-06
  13  2.79789e-05
  14  2.46562e-06
  15  0.123797
  16  361.69
  17  0.0189681
  18  0.0372799
  19  14.6024
  20  141.977
  21  31.0707
  22  0.0147067
  23  0.0328308
  24  0.0233137
  25  3.44735
  26  1.29336
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 1324.3286975

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  3.388e+01  9.327e+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:  9.944e-01  1.293e+00  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:  9.641e-02  3.447e+00  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/475108/likelihoodResults_384220801_384480001_4FGL_J2123.6+0535_daily_bin559.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) = 1324.01393858
delta logL = 0.31475892407

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1324.00828544
delta logL = 0.320412060698

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.438       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5424       1.0000          .0000       10.000    
     3 'Normalizat'    .10030E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0134       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=   1324.008     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      321 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.450        39.969        .11358E-03    .27363E-03
   2  Index         3.5409        1.7791        .41481E-02    .92387E-04
   3  Normalizat    .10000E-01    6.7097        .12380E-01** at limit **
   4  Prefactor     1.0133        .12653        .14457E-03    .34960E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.4498
  Index      = 3.54093
  Normalizat = 0.01
  Prefactor  = 1.01331
 **********
 **   18 **HESSE 
 **********

 FCN=   1324.008     FROM HESSE     STATUS=OK            25 CALLS      346 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.450        32.098        .45432E-05   -1.5002    
   2  Index         3.5409        1.4396        .16592E-03   -.29612    
   3  Normalizat    .10000E-01    6.7142        .24761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0133        .12573        .28914E-04   -.92287    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.61954e-10
Minuit parameter uncertainties:
  1  32.1429
  2  1.46231
  3  7.33356e-05
  4  0.125768
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/475108': 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) = 1324.00827981
delta logL = 0.32041769411

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.245e+01  3.214e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  3.541e+00  1.462e+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.013e+00  1.258e-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.000e-02  7.334e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.19
Ra Dec: 320.921 5.592
Photon Index (Free Index): 3.54 +/- 1.46
Photon Flux (Free Index): 1.88e-07 +/- 2.38e-07
Energy Flux (Free Index): 3.09e-05 +/- 3.60e-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/475108/cmap_HighResolution_384220801_384480001_4FGL_J2123.6+0535_daily_bin559.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.18e-02', comment='SUCCESS', energy_flux2='3.09e-05', dlogl='3.20e-01', photon_flux2='1.88e-07', job_status='DONE', time_completed='2021-09-26 12:55:58.597883', photon_index_error2='1.46', photon_index2='3.54', ts='0.50', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='4.12e-07', energy_flux_error2='3.60e-05', EG='0.10', time_epoch_completed='1632686158.6', return_code='102', job_id='475108', GAL2='1.01', EG2='0.01', return_code2='0', photon_flux_error2='2.38e-07', ts2='1.19', photon_index='2.39' WHERE bin_id='559' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 12:55:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 475108: <4FGL_J2123.6+0535_daily_bin559> in cluster <slac> Done

Job <4FGL_J2123.6+0535_daily_bin559> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 26 12:40:47 2021
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 12:48:30 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:48:30 2021
Terminated at Sun Sep 26 12:55:59 2021
Results reported at Sun Sep 26 12:55:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin559 320.921 5.592 384220801 384480001 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 :                                   387.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   448 sec.
    Turnaround time :                            912 sec.

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

