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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin1349
RA = 320.921, Dec = 5.592
tmin = 588988801, tmax = 589248001
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='480497', job_status='RUN', time_executed='2021-09-26 13:06:22.930028', time_epoch_executed='1632686782.93' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='1349'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/480497

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/480497/ft1_4FGL_J2123.6+0535_daily_bin1349.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/480497/ft2_4FGL_J2123.6+0535_daily_bin1349.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/480497/ft1_4FGL_J2123.6+0535_daily_bin1349.fits outfile=/scratch/kocevski/480497/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin1349.fits ra=320.921 dec=5.592 rad=12.0 tmin=588988801.0 tmax=589248001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.10
user 2.88
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/480497/ft2_4FGL_J2123.6+0535_daily_bin1349.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/480497/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin1349.fits evtable="EVENTS" outfile="/scratch/kocevski/480497/ft1_filtered_4FGL_J2123.6+0535_daily_bin1349.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.54
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/480497/ft1_filtered_4FGL_J2123.6+0535_daily_bin1349.fits" evtable="EVENTS" scfile=/scratch/kocevski/480497/ft2_4FGL_J2123.6+0535_daily_bin1349.fits sctable="SC_DATA" outfile=/scratch/kocevski/480497/ltcube_588988801_589248001_4FGL_J2123.6+0535_daily_bin1349.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/480497/ft2_4FGL_J2123.6+0535_daily_bin1349.fits
.....................!
real 13.40
user 13.00
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/480497/ft1_filtered_4FGL_J2123.6+0535_daily_bin1349.fits evtable="EVENTS" scfile=/scratch/kocevski/480497/ft2_4FGL_J2123.6+0535_daily_bin1349.fits sctable="SC_DATA" expcube=/scratch/kocevski/480497/ltcube_588988801_589248001_4FGL_J2123.6+0535_daily_bin1349.fits outfile=/scratch/kocevski/480497/expmap_588988801_589248001_4FGL_J2123.6+0535_daily_bin1349.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/480497/ltcube_588988801_589248001_4FGL_J2123.6+0535_daily_bin1349.fits
.....................!
real 191.13
user 185.50
sys 5.07

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/480497/ft1_filtered_4FGL_J2123.6+0535_daily_bin1349.fits scfile=/scratch/kocevski/480497/ft2_4FGL_J2123.6+0535_daily_bin1349.fits outfile=/scratch/kocevski/480497/cmap_588988801_589248001_4FGL_J2123.6+0535_daily_bin1349.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/480497/ft1_filtered_4FGL_J2123.6+0535_daily_bin1349.fits scfile=/scratch/kocevski/480497/ft2_4FGL_J2123.6+0535_daily_bin1349.fits outfile=/scratch/kocevski/480497/cmap_HighResolution_588988801_589248001_4FGL_J2123.6+0535_daily_bin1349.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.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    46.635       1.0000         .10000E-03   10000.    
     2 'norm      '    1.5116       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    49.354       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .56038E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.633       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    35.343       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11212E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.751       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .98453       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    44.444       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11459E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10344E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .11432E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    56.049       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.840       1.0000         .10000E-03   10000.    
    23 'Prefactor '    164.18       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10523E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0665       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=   3376.699     FROM MIGRAD    STATUS=CONVERGED    100 CALLS     3179 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     46.633        1.0771       -.27797E-06    .11542E-03
   2  norm          1.5063        1.9311        .24396E-05   -.33004E-04
   3  Prefactor     .10013E-03    20.835        .24717E-04** at limit **
   4  Prefactor     .10109E-03    21.289       -.53489E-04** at limit **
   5  Prefactor     49.331        2.1107        .11262E-05   -.14056E-02
   6  Prefactor     .10030E-03    2.9638        .10056E-04** at limit **
   7  Prefactor     17.686        10.056        .13890E-04   -.35970E-02
   8  Prefactor     .10103E-03    24.838        .40282E-04** at limit **
   9  Prefactor     .10099E-03    21.743       -.59847E-05** at limit **
  10  Prefactor     35.342        1.1204       -.61447E-06    .53135E-03
  11  Prefactor     .12121E-03    61.640        .15376E-04** at limit **
  12  Prefactor     20.727        4.3739        .37560E-05    .11031E-03
  13  Prefactor     1.0414        25.727       -.20807E-05    .50255E-04
  14  Prefactor     .10000E-03    10.775       -.26125E-05** at limit **
  15  Prefactor     44.445        1.0482        .30617E-06   -.33088E-03
  16  Prefactor     .12082E-03    177.03       -.12496E-03** at limit **
  17  Prefactor     .10742E-03    37.548       -.10894E-04** at limit **
  18  Prefactor     .10061E-03    20.644       -.13823E-04** at limit **
  19  norm          .10000E-03    7.0151        .57762E-06** at limit **
  20  norm          56.072        5.2086        .41757E-05   -.39525E-02
  21  Prefactor     .10000E-03    7.7577       -.20160E-05** at limit **
  22  Prefactor     19.845        1.6329        .18289E-05   -.72284E-03
  23  Prefactor     164.18        1.0326       -.15225E-06    .69621E-03
  24  Prefactor     .10019E-03    55.344        .59287E-04** at limit **
  25  Normalizat    .10000E-01    6.3952       -.78194E-04** at limit **
  26  Prefactor     1.0665        .87242E-01   -.14352E-05    .18214E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 46.6328
  norm       = 1.5063
  Prefactor  = 0.000100131
  Prefactor  = 0.000101085
  Prefactor  = 49.3314
  Prefactor  = 0.000100304
  Prefactor  = 17.6863
  Prefactor  = 0.000101026
  Prefactor  = 0.000100995
  Prefactor  = 35.3418
  Prefactor  = 0.000121209
  Prefactor  = 20.727
  Prefactor  = 1.04139
  Prefactor  = 0.000100001
  Prefactor  = 44.4447
  Prefactor  = 0.00012082
  Prefactor  = 0.000107422
  Prefactor  = 0.000100614
  norm       = 0.0001
  norm       = 56.0722
  Prefactor  = 0.000100002
  Prefactor  = 19.8452
  Prefactor  = 164.175
  Prefactor  = 0.00010019
  Normalizat = 0.01
  Prefactor  = 1.06647
 **********
 **   18 **HESSE 
 **********

 FCN=   3376.699     FROM HESSE     STATUS=OK           518 CALLS     3697 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     46.633        57.774        .14679E-02   -1.4341    
   2  norm          1.5063        30.981        .86963E-02   -1.5463    
   3  Prefactor     .10013E-03    20.609        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10109E-03    23.671        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     49.331        26.011        .14270E-02   -1.4302    
   6  Prefactor     .10030E-03    113.15        .10550E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.686        48.645        .23845E-02   -1.4867    
   8  Prefactor     .10103E-03    27.761        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10099E-03    45.727        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     35.342        36.930        .16852E-02   -1.4518    
  11  Prefactor     .12121E-03    143.03        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     20.727        12.916        .21982E-02   -1.4797    
  13  Prefactor     1.0414        9.8704        .92789E-01   -1.5504    
  14  Prefactor     .10000E-03    10.732        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     44.445        152.34        .15035E-02   -1.4374    
  16  Prefactor     .12082E-03    275.90        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10742E-03    64.016        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10061E-03    47.061        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.3836        .38538E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          56.072        58.034        .13395E-02   -1.4209    
  21  Prefactor     .10000E-03    7.7542        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     19.845        66.220        .22480E-02   -1.4817    
  23  Prefactor     164.18        87.259        .78694E-03   -1.3138    
  24  Prefactor     .10019E-03    104.33        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .10000E-01    .49842        .32228       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.0665        .13586        .39025E-01   -.90545    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24277e-06
Minuit parameter uncertainties:
  1  57.8433
  2  13.6703
  3  0.00328208
  4  0.0101415
  5  26.0166
  6  0.0117582
  7  48.7541
  8  0.0106794
  9  0.0134976
  10  36.9535
  11  0.110418
  12  12.9178
  13  6.41322
  14  0.000163324
  15  153.7
  16  0.152289
  17  0.0436406
  18  0.0107624
  19  7.18743e-05
  20  58.093
  21  0.000220057
  22  66.4663
  23  87.3279
  24  0.00892785
  25  2.69412e-05
  26  0.135903
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  3.534e+01  3.695e+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.066e+00  1.359e-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  2.694e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.46
Ra Dec: 320.921 5.592
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 6.66e-08 +/- 6.96e-08
Energy Flux (Fixed Index): 2.21e-05 +/- 2.31e-05

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

Saving results to:
/scratch/kocevski/480497/likelihoodResults_588988801_589248001_4FGL_J2123.6+0535_daily_bin1349.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) = 3375.0214007
delta logL = 1.67717124088

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3374.99869047
delta logL = 1.69988146905

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.837       1.0000         .10000E-03   10000.    
     2 'Index     '    1.1627       1.0000          .0000       10.000    
     3 'Normalizat'    .10436E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0735       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=   3374.999     FROM MIGRAD    STATUS=CONVERGED     71 CALLS      250 TOTAL
                     EDM=   .26E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 16.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.794        40.693       -.31015E-06   -.27888E-04
   2  Index         1.1621        .64965       -.21761E-05    .62953E-05
   3  Normalizat    .10000E-01    .26688       -.13976E-04** at limit **
   4  Prefactor     1.0737        .82257E-01    .18308E-05   -.44497E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.7937
  Index      = 1.1621
  Normalizat = 0.0100001
  Prefactor  = 1.07368
 **********
 **   18 **HESSE 
 **********

 FCN=   3374.999     FROM HESSE     STATUS=OK            41 CALLS      291 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.794        38.941        .78810E-04   -1.4692    
   2  Index         1.1621        .62259        .70212E-02   -.87506    
   3  Normalizat    .10000E-01    1.2747        .22368       -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0737        .16589        .15066E-03   -.90312    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.52037e-10
Minuit parameter uncertainties:
  1  38.9795
  2  0.626577
  3  0.000605801
  4  0.165971
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/480497': 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) = 3374.99868607
delta logL = 1.69988587182

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  2.579e+01  3.898e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  1.162e+00  6.266e-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.074e+00  1.660e-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  6.058e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.86
Ra Dec: 320.921 5.592
Photon Index (Free Index): 1.16 +/- 0.63
Photon Flux (Free Index): 1.61e-08 +/- 2.08e-08
Energy Flux (Free Index): 1.50e-04 +/- 2.14e-04

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/480497/cmap_HighResolution_588988801_589248001_4FGL_J2123.6+0535_daily_bin1349.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.05e-02', comment='SUCCESS', photon_flux='6.66e-08', energy_flux2='1.50e-04', photon_flux_error='6.96e-08', dlogl='1.70e+00', energy_flux='2.21e-05', photon_flux2='1.61e-08', job_status='DONE', time_completed='2021-09-26 13:15:24.957171', photon_index_error2='0.63', photon_index2='1.16', ts='2.46', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='2.65e-07', energy_flux_error2='2.14e-04', EG='0.01', time_epoch_completed='1632687324.96', return_code='0', job_id='480497', GAL2='1.07', EG2='0.01', return_code2='0', energy_flux_error='2.31e-05', photon_flux_error2='2.08e-08', ts2='5.86', photon_index='2.39' WHERE bin_id='1349' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:15:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 480497: <4FGL_J2123.6+0535_daily_bin1349> in cluster <slac> Done

Job <4FGL_J2123.6+0535_daily_bin1349> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 26 13:00:40 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 13:02:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 13:02:43 2021
Terminated at Sun Sep 26 13:15:25 2021
Results reported at Sun Sep 26 13:15:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin1349 320.921 5.592 588988801 589248001 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 :                                   539.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             266.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            885 sec.

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

