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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin1170
RA = 320.921, Dec = 5.592
tmin = 542592001, tmax = 542851201
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='479175', job_status='RUN', time_executed='2021-09-26 13:00:35.780786', time_epoch_executed='1632686435.78' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='1170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/479175

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/479175/ft1_4FGL_J2123.6+0535_daily_bin1170.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/479175/ft2_4FGL_J2123.6+0535_daily_bin1170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/479175/ft1_4FGL_J2123.6+0535_daily_bin1170.fits outfile=/scratch/kocevski/479175/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin1170.fits ra=320.921 dec=5.592 rad=12.0 tmin=542592001.0 tmax=542851201.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.79
user 6.50
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/479175/ft1_filtered_4FGL_J2123.6+0535_daily_bin1170.fits evtable="EVENTS" scfile=/scratch/kocevski/479175/ft2_4FGL_J2123.6+0535_daily_bin1170.fits sctable="SC_DATA" expcube=/scratch/kocevski/479175/ltcube_542592001_542851201_4FGL_J2123.6+0535_daily_bin1170.fits outfile=/scratch/kocevski/479175/expmap_542592001_542851201_4FGL_J2123.6+0535_daily_bin1170.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/479175/ltcube_542592001_542851201_4FGL_J2123.6+0535_daily_bin1170.fits
.....................!
real 192.95
user 185.47
sys 5.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/479175/ft1_filtered_4FGL_J2123.6+0535_daily_bin1170.fits scfile=/scratch/kocevski/479175/ft2_4FGL_J2123.6+0535_daily_bin1170.fits outfile=/scratch/kocevski/479175/cmap_542592001_542851201_4FGL_J2123.6+0535_daily_bin1170.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/479175/ft1_filtered_4FGL_J2123.6+0535_daily_bin1170.fits scfile=/scratch/kocevski/479175/ft2_4FGL_J2123.6+0535_daily_bin1170.fits outfile=/scratch/kocevski/479175/cmap_HighResolution_542592001_542851201_4FGL_J2123.6+0535_daily_bin1170.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/479175/ft1_filtered_4FGL_J2123.6+0535_daily_bin1170.fits evtable="EVENTS" scfile=/scratch/kocevski/479175/ft2_4FGL_J2123.6+0535_daily_bin1170.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/479175/Model_4FGL_J2123.6+0535_daily_bin1170.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/479175/ft1_filtered_4FGL_J2123.6+0535_daily_bin1170.fits....................!
real 52.73
user 51.28
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    43.020       1.0000         .10000E-03   10000.    
     2 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10635E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.135       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10752E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    34.897       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10259E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    110.34       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10503E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10904E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.6896       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10438E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    58.717       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.5252       1.0000         .10000E-03   10000.    
    19 'norm      '    .64690       1.0000         .10000E-03   10000.    
    20 'norm      '    33.913       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.9173       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.1491       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10746E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    38.156       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0342       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .85262       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=   4911.461     FROM MIGRAD    STATUS=CONVERGED    602 CALLS     3093 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     43.014        58.802        .11202E-05   -.11025E-04
   2  norm          .10000E-03    6.7734       -.17538E-06** at limit **
   3  Prefactor     .10000E-03    6.0385       -.29129E-06** at limit **
   4  Prefactor     .10000E-03    46.035       -.34054E-05** at limit **
   5  Prefactor     11.123        27.499        .11179E-05   -.24623E-04
   6  Prefactor     .10000E-03    44.768       -.29690E-05** at limit **
   7  Prefactor     34.896        28.165        .18908E-06    .19228E-04
   8  Prefactor     .10000E-03    15.605        .10530E-06** at limit **
   9  Prefactor     110.32        92.365        .25414E-05   -.44252E-04
  10  Prefactor     .10000E-03    28.920        .15344E-05** at limit **
  11  Prefactor     .10000E-03    35.836        .18992E-05** at limit **
  12  Prefactor     .10000E-03    2.4785       -.16478E-06** at limit **
  13  Prefactor     1.6863        7.2270       -.14448E-05   -.92282E-05
  14  Prefactor     .10000E-03    .93888       -.62813E-07** at limit **
  15  Prefactor     .10000E-03    24.313       -.21572E-05** at limit **
  16  Prefactor     .10000E-03    88.399        .70297E-06** at limit **
  17  Prefactor     58.989        110.51       -.16646E-04   -.15684E-04
  18  Prefactor     6.5235        57.031        .31240E-05   -.54775E-05
  19  norm          .62518        7.4159       -.59975E-05    .45701E-03
  20  norm          33.953        29.745       -.44471E-05   -.49146E-03
  21  Prefactor     1.9155        6.9404        .93833E-06    .32107E-03
  22  Prefactor     9.1484        9.9066        .56075E-07   -.21235E-05
  23  Prefactor     .10000E-03    37.461        .95656E-06** at limit **
  24  Prefactor     38.143        35.838        .11133E-05   -.66592E-04
  25  Normalizat    1.0346        .29279       -.56832E-06   -.31000E-03
  26  Prefactor     .85258        .12363       -.50556E-06   -.71645E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 43.0142
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.123
  Prefactor  = 0.0001
  Prefactor  = 34.8964
  Prefactor  = 0.0001
  Prefactor  = 110.316
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.68629
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 58.9888
  Prefactor  = 6.52355
  norm       = 0.625178
  norm       = 33.9528
  Prefactor  = 1.91555
  Prefactor  = 9.14841
  Prefactor  = 0.0001
  Prefactor  = 38.1425
  Normalizat = 1.03458
  Prefactor  = 0.852584
 **********
 **   18 **HESSE 
 **********

 FCN=   4911.461     FROM HESSE     STATUS=OK           446 CALLS     3539 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     43.014        58.869        .61121E-04   -1.4395    
   2  norm          .10000E-03    6.7931        .17807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.1435        .16806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    46.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.123        27.588        .12006E-03   -1.5041    
   6  Prefactor     .10000E-03    44.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     34.896        28.151        .67837E-04   -1.4526    
   8  Prefactor     .10000E-03    15.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     110.32        93.112        .38291E-04   -1.3603    
  10  Prefactor     .10000E-03    29.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    35.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.4831        .10772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.6863        7.1479        .32387E-03   -1.5448    
  14  Prefactor     .10000E-03    .94505        .66279E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    24.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    88.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     58.989        124.34        .26178E-03   -1.4170    
  18  Prefactor     6.5235        57.387        .15711E-03   -1.5197    
  19  norm          .62518        9.7478        .20048E-02   -1.5550    
  20  norm          33.953        30.004        .68812E-04   -1.4542    
  21  Prefactor     1.9155        7.5204        .15007E-02   -1.5431    
  22  Prefactor     9.1484        9.9049        .13250E-03   -1.5103    
  23  Prefactor     .10000E-03    37.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     38.143        35.925        .64885E-04   -1.4472    
  25  Normalizat    1.0346        .35123        .34937E-03   -.91881    
  26  Prefactor     .85258        .14936        .17149E-03   -.97818    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71604e-09
Minuit parameter uncertainties:
  1  58.9483
  2  6.59502e-06
  3  4.97167e-07
  4  0.000284807
  5  27.62
  6  0.000280367
  7  28.1616
  8  1.16684e-05
  9  93.2361
  10  0.000186676
  11  0.000224391
  12  5.47997e-06
  13  6.94481
  14  6.06057e-07
  15  0.000164579
  16  0.000151757
  17  124.893
  18  38.7467
  19  4.9378
  20  30.0173
  21  7.52415
  22  9.90671
  23  7.87399e-05
  24  35.9456
  25  0.352023
  26  0.149431
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.867e-04  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:  8.526e-01  1.494e-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.035e+00  3.520e-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.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/479175/likelihoodResults_542592001_542851201_4FGL_J2123.6+0535_daily_bin1170.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) = 4911.46126222
delta logL = -0.000163819086993

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4911.46109995
delta logL = -1.54783174366e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11779E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5913       1.0000          .0000       10.000    
     3 'Normalizat'    1.0346       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85258       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=   4911.461     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      282 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10761E-03    11.927        .18142E-01** at limit **
   2  Index         2.4713        8.6543        .50000        .22969E-04
   3  Normalizat    1.0346        .49120E-02    .34936E-03    .64302E-04
   4  Prefactor     .85258        .22252E-02    .17149E-03    .11586E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000107609
  Index      = 2.47134
  Normalizat = 1.03458
  Prefactor  = 0.852585
 **********
 **   18 **HESSE 
 **********

 FCN=   4911.461     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      311 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10761E-03    72.907        .33219E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4713        6.1064        .50000       -.53023    
   3  Normalizat    1.0346        .12048E-01    .13974E-04   -.91881    
   4  Prefactor     .85258        .54578E-02    .34297E-04   -.97818    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.63201e-09
Minuit parameter uncertainties:
  1  0.0471643
  2  173.605
  3  0.012048
  4  0.00545778
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/479175': 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) = 4911.46109891
delta logL = -5.12535734742e-07

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.076e-04  4.716e-02  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.471e+00  1.736e+02  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:  8.526e-01  5.458e-03  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.035e+00  1.205e-02  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/479175/cmap_HighResolution_542592001_542851201_4FGL_J2123.6+0535_daily_bin1170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.21e-03', job_status='DONE', photon_flux_upper_limit='1.19e-07', time_completed='2021-09-26 13:11:49.241309', job_id='479175', GAL2='0.85', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1632687109.24', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='-5.13e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1170' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:11:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 479175: <4FGL_J2123.6+0535_daily_bin1170> in cluster <slac> Done

Job <4FGL_J2123.6+0535_daily_bin1170> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep 26 12:55:51 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 12:57:26 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:57:26 2021
Terminated at Sun Sep 26 13:11:49 2021
Results reported at Sun Sep 26 13:11:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin1170 320.921 5.592 542592001 542851201 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 :                                   668.29 sec.
    Max Memory :                                 1129 MB
    Average Memory :                             261.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            958 sec.

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

