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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin1605
RA = 320.921, Dec = 5.592
tmin = 655344001, tmax = 655603201
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='469712', job_status='RUN', time_executed='2021-12-08 07:39:12.170863', time_epoch_executed='1638977952.17' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='1605'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/469712

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/469712/ft1_4FGL_J2123.6+0535_daily_bin1605.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/469712/ft2_4FGL_J2123.6+0535_daily_bin1605.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/469712/ft1_4FGL_J2123.6+0535_daily_bin1605.fits outfile=/scratch/kocevski/469712/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin1605.fits ra=320.921 dec=5.592 rad=12.0 tmin=655344001.0 tmax=655603201.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 2.76
user 2.56
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/469712/ft1_filtered_4FGL_J2123.6+0535_daily_bin1605.fits evtable="EVENTS" scfile=/scratch/kocevski/469712/ft2_4FGL_J2123.6+0535_daily_bin1605.fits sctable="SC_DATA" expcube=/scratch/kocevski/469712/ltcube_655344001_655603201_4FGL_J2123.6+0535_daily_bin1605.fits outfile=/scratch/kocevski/469712/expmap_655344001_655603201_4FGL_J2123.6+0535_daily_bin1605.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/469712/ltcube_655344001_655603201_4FGL_J2123.6+0535_daily_bin1605.fits
.....................!
real 192.70
user 187.33
sys 4.72

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/469712/ft1_filtered_4FGL_J2123.6+0535_daily_bin1605.fits scfile=/scratch/kocevski/469712/ft2_4FGL_J2123.6+0535_daily_bin1605.fits outfile=/scratch/kocevski/469712/cmap_655344001_655603201_4FGL_J2123.6+0535_daily_bin1605.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.40
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.693       1.0000         .10000E-03   10000.    
     2 'norm      '    8.5509       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.369       1.0000         .10000E-03   10000.    
     4 'Prefactor '    53.325       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.719       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.494       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    39.294       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.7778       1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.968       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .29034E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.7170       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    128.90       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .69489       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.0712       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    63.435       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .68230       1.0000         .10000E-01   10.000    
    26 '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.

 FCN=   5192.460     FROM MIGRAD    STATUS=CONVERGED    613 CALLS     3193 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.665        73.619       -.41338E-05   -.58593E-04
   2  norm          8.5531        15.577        .15799E-05    .28025E-04
   3  Prefactor     15.370        7.2898        .24932E-06   -.18002E-04
   4  Prefactor     53.328        46.414        .54550E-06    .36582E-05
   5  Prefactor     13.714        19.427        .12482E-05    .52871E-04
   6  Prefactor     10.491        33.904        .20590E-05    .23168E-04
   7  Prefactor     .10000E-03    11.172        .54091E-07** at limit **
   8  Prefactor     .10000E-03    14.114       -.38380E-07** at limit **
   9  Prefactor     .10000E-03    49.215        .75245E-07** at limit **
  10  Prefactor     .10000E-03    21.205       -.48672E-06** at limit **
  11  Prefactor     39.362        54.126       -.19665E-05   -.11875E-03
  12  Prefactor     5.7754        13.389        .90065E-05   -.15204E-03
  13  Prefactor     16.969        17.876       -.28434E-05   -.10312E-03
  14  Prefactor     .10007E-03    2.2613        .16924E-05** at limit **
  15  Prefactor     5.7910        124.82       -.24379E-05   -.46013E-04
  16  Prefactor     .10000E-03    21.840        .44255E-06** at limit **
  17  Prefactor     128.78        127.69       -.90969E-05   -.23509E-03
  18  Prefactor     .10001E-03    276.48        .10754E-04** at limit **
  19  norm          .69764        3.3587        .41152E-07    .12393E-03
  20  norm          .10000E-03    7.4012        .28754E-07** at limit **
  21  Prefactor     5.0709        7.5493        .16130E-05   -.14623E-03
  22  Prefactor     .10000E-03    8.2494        .91264E-07** at limit **
  23  Prefactor     63.404        48.717       -.54601E-06   -.10021E-03
  24  Prefactor     .10000E-03    25.491        .14726E-06** at limit **
  25  Normalizat    .68220        .34187       -.86151E-05   -.20304E-03
  26  Prefactor     1.0134        .13316        .12325E-05   -.62815E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.665
  norm       = 8.55308
  Prefactor  = 15.3697
  Prefactor  = 53.3278
  Prefactor  = 13.7144
  Prefactor  = 10.4912
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.3623
  Prefactor  = 5.7754
  Prefactor  = 16.9688
  Prefactor  = 0.000100071
  Prefactor  = 5.79101
  Prefactor  = 0.0001
  Prefactor  = 128.775
  Prefactor  = 0.000100006
  norm       = 0.697639
  norm       = 0.0001
  Prefactor  = 5.07095
  Prefactor  = 0.0001
  Prefactor  = 63.4043
  Prefactor  = 0.0001
  Normalizat = 0.682202
  Prefactor  = 1.01342
 **********
 **   18 **HESSE 
 **********

 FCN=   5192.460     FROM HESSE     STATUS=OK           452 CALLS     3645 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.665        73.224        .63621E-04   -1.4448    
   2  norm          8.5531        15.459        .13708E-03   -1.5123    
   3  Prefactor     15.370        7.2827        .10216E-03   -1.4924    
   4  Prefactor     53.328        46.426        .54926E-04   -1.4246    
   5  Prefactor     13.714        19.425        .10814E-03   -1.4967    
   6  Prefactor     10.491        33.860        .12369E-03   -1.5060    
   7  Prefactor     .10000E-03    11.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    49.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    21.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     39.362        52.467        .63942E-04   -1.4452    
  12  Prefactor     5.7754        13.359        .83545E-03   -1.5227    
  13  Prefactor     16.969        17.809        .97230E-04   -1.4884    
  14  Prefactor     .10007E-03    12.926        .18541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.7910        117.37        .16799E-03   -1.5227    
  16  Prefactor     .10000E-03    21.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     128.78        128.30        .17730E-03   -1.3433    
  18  Prefactor     .10001E-03    284.70        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .69764        3.0607        .21502E-03   -1.5541    
  20  norm          .10000E-03    7.4033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.0709        7.5358        .89275E-03   -1.5258    
  22  Prefactor     .10000E-03    8.2612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     63.404        48.752        .50384E-04   -1.4114    
  24  Prefactor     .10000E-03    25.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .68220        .37401        .44502E-03   -1.0460    
  26  Prefactor     1.0134        .15130        .16534E-03   -.92284    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.64243e-09
Minuit parameter uncertainties:
  1  73.3908
  2  15.4661
  3  7.2831
  4  46.457
  5  19.4342
  6  33.9216
  7  1.098e-05
  8  2.20878e-05
  9  3.2294e-05
  10  1.52748e-05
  11  52.5284
  12  13.3658
  13  17.8148
  14  0.00191599
  15  52.2581
  16  3.83287e-05
  17  128.583
  18  0.00271291
  19  2.92255
  20  3.98805e-06
  21  7.53717
  22  9.12746e-06
  23  48.7827
  24  4.23247e-05
  25  0.375421
  26  0.151364
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.527e-05  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.013e+00  1.514e-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.822e-01  3.754e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 320.921 5.592
Photon Flux Upper Limit: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/469712/likelihoodResults_655344001_655603201_4FGL_J2123.6+0535_daily_bin1605.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): 102
logL (Free Index) = 5192.46066307
delta logL = -0.000223700863899

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5192.46043959
delta logL = -2.2538642952e-07

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 'Index     '    2.2996       1.0000          .0000       10.000    
     3 'Normalizat'    .68221       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.

 FCN=   5192.460     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      236 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1387.5        .90712E-02** at limit **
   2  Index         2.3208        5.7312        .50000       -.98594E-05
   3  Normalizat    .68220        .66665E-01    .10042        .30361E-04
   4  Prefactor     1.0134        .29894E-01    .42868E-01    .26967E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.32082
  Normalizat = 0.682201
  Prefactor  = 1.01342
 **********
 **   18 **HESSE 
 **********

 FCN=   5192.460     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      269 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6665.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3208        6.0568        .50000       -.56550    
   3  Normalizat    .68220        .14806        .44505E-03   -1.0460    
   4  Prefactor     1.0134        .66658E-01    .16534E-03   -.92283    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.61556e-08
Minuit parameter uncertainties:
  1  0.000997161
  2  58.5137
  3  0.148149
  4  0.0666634
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/469712': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5192.46043954
delta logL = -1.71135980054e-07

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  9.972e-04  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.321e+00  5.851e+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.013e+00  6.666e-02  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.822e-01  1.481e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 320.921 5.592

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/469712/cmap_HighResolution_655344001_655603201_4FGL_J2123.6+0535_daily_bin1605.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.20e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-12-08 07:50:28.564694', job_id='469712', GAL2='1.01', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1638978628.56', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='-1.71e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1605' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 07:50:28 PST 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0182>
Subject: Job 469712: <4FGL_J2123.6+0535_daily_bin1605> in cluster <slac> Done

Job <4FGL_J2123.6+0535_daily_bin1605> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Dec  8 07:35:25 2021
Job was executed on host(s) <bullet0182>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 07:35:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 07:35:28 2021
Terminated at Wed Dec  8 07:50:29 2021
Results reported at Wed Dec  8 07:50:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin1605 320.921 5.592 655344001 655603201 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 :                                   675.43 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             258.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            904 sec.

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

