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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin478
RA = 320.921, Dec = 5.592
tmin = 363225601, tmax = 363484801
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='474978', job_status='RUN', time_executed='2021-09-26 12:46:10.263879', time_epoch_executed='1632685570.26' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='478'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/474978

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/474978/ft1_4FGL_J2123.6+0535_daily_bin478.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/474978/ft2_4FGL_J2123.6+0535_daily_bin478.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/474978/ft1_4FGL_J2123.6+0535_daily_bin478.fits outfile=/scratch/kocevski/474978/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin478.fits ra=320.921 dec=5.592 rad=12.0 tmin=363225601.0 tmax=363484801.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 7.05
user 6.76
sys 0.26

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/474978/ft1_filtered_4FGL_J2123.6+0535_daily_bin478.fits evtable="EVENTS" scfile=/scratch/kocevski/474978/ft2_4FGL_J2123.6+0535_daily_bin478.fits sctable="SC_DATA" expcube=/scratch/kocevski/474978/ltcube_363225601_363484801_4FGL_J2123.6+0535_daily_bin478.fits outfile=/scratch/kocevski/474978/expmap_363225601_363484801_4FGL_J2123.6+0535_daily_bin478.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/474978/ltcube_363225601_363484801_4FGL_J2123.6+0535_daily_bin478.fits
.....................!
real 192.37
user 187.37
sys 4.53

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/474978/ft1_filtered_4FGL_J2123.6+0535_daily_bin478.fits scfile=/scratch/kocevski/474978/ft2_4FGL_J2123.6+0535_daily_bin478.fits outfile=/scratch/kocevski/474978/cmap_363225601_363484801_4FGL_J2123.6+0535_daily_bin478.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/474978/ft1_filtered_4FGL_J2123.6+0535_daily_bin478.fits scfile=/scratch/kocevski/474978/ft2_4FGL_J2123.6+0535_daily_bin478.fits outfile=/scratch/kocevski/474978/cmap_HighResolution_363225601_363484801_4FGL_J2123.6+0535_daily_bin478.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/474978/ft1_filtered_4FGL_J2123.6+0535_daily_bin478.fits evtable="EVENTS" scfile=/scratch/kocevski/474978/ft2_4FGL_J2123.6+0535_daily_bin478.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/474978/Model_4FGL_J2123.6+0535_daily_bin478.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/474978/ft1_filtered_4FGL_J2123.6+0535_daily_bin478.fits.....................!
real 56.39
user 55.09
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12989E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    14.615       1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.087       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4549       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15402E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.2143       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    32.144       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11264E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.9771       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10317E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .22800E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .65276E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    37.692       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .64214       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0199       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=   5498.762     FROM MIGRAD    STATUS=CONVERGED    625 CALLS     3084 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    142.36       -.29420E-05** at limit **
   2  norm          14.609        11.297        .99822E-08    .52530E-04
   3  Prefactor     19.088        8.3423       -.18313E-07   -.12783E-04
   4  Prefactor     .10000E-03    14.460       -.29272E-06** at limit **
   5  Prefactor     2.4611        28.189        .81308E-05    .28082E-03
   6  Prefactor     .10000E-03    41.651        .69886E-06** at limit **
   7  Prefactor     5.2173        19.857       -.19338E-06   -.85251E-05
   8  Prefactor     .10000E-03    11.553       -.20424E-06** at limit **
   9  Prefactor     .10000E-03    21.322        .15115E-05** at limit **
  10  Prefactor     32.145        21.386        .26493E-07    .33435E-04
  11  Prefactor     .10000E-03    50.948        .32794E-05** at limit **
  12  Prefactor     .10000E-03    3.5986        .42393E-07** at limit **
  13  Prefactor     .10000E-03    16.131       -.14955E-05** at limit **
  14  Prefactor     9.9764        3.6467       -.19741E-07    .49226E-04
  15  Prefactor     .10000E-03    13.911        .97609E-06** at limit **
  16  Prefactor     .10000E-03    96.959       -.71828E-05** at limit **
  17  Prefactor     .10001E-03    190.20        .11861E-04** at limit **
  18  Prefactor     .10000E-03    30.482       -.30275E-05** at limit **
  19  norm          .10000E-03    1.4086       -.61822E-07** at limit **
  20  norm          .10000E-03    10.684        .39295E-07** at limit **
  21  Prefactor     .57301E-01    11.975       -.37786E-05    .83284E-03
  22  Prefactor     .10000E-03    4.1459       -.25268E-07** at limit **
  23  Prefactor     37.692        27.861        .43664E-07    .12690E-03
  24  Prefactor     .10000E-03    19.224        .63073E-06** at limit **
  25  Normalizat    .64247        .28049        .19511E-06    .25758E-03
  26  Prefactor     1.0197        .12421       -.10265E-06    .58027E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 14.6085
  Prefactor  = 19.0882
  Prefactor  = 0.0001
  Prefactor  = 2.46115
  Prefactor  = 0.0001
  Prefactor  = 5.21734
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.145
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.97644
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0573012
  Prefactor  = 0.0001
  Prefactor  = 37.6919
  Prefactor  = 0.0001
  Normalizat = 0.642471
  Prefactor  = 1.01973
 **********
 **   18 **HESSE 
 **********

 FCN=   5498.762     FROM HESSE     STATUS=OK           454 CALLS     3538 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    143.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          14.609        11.287        .10477E-03   -1.4943    
   3  Prefactor     19.088        8.3329        .91675E-04   -1.4834    
   4  Prefactor     .10000E-03    14.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.4611        28.792        .13053E-02   -1.5394    
   6  Prefactor     .10000E-03    41.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.2173        19.790        .17604E-03   -1.5251    
   8  Prefactor     .10000E-03    11.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    21.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     32.145        21.391        .70674E-04   -1.4573    
  11  Prefactor     .10000E-03    50.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.6500        .13731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    16.700        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.9764        3.6458        .81629E-04   -1.5076    
  15  Prefactor     .10000E-03    13.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    97.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    190.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    30.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    5.8514        .16755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    10.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .57301E-01    13.587        .57371E-01   -1.5660    
  22  Prefactor     .10000E-03    4.1499        .14746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     37.692        27.891        .65282E-04   -1.4479    
  24  Prefactor     .10000E-03    19.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .64247        .31382        .42317E-03   -1.0621    
  26  Prefactor     1.0197        .14219        .16010E-03   -.92075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.30498e-09
Minuit parameter uncertainties:
  1  0.000595824
  2  11.2884
  3  8.33342
  4  2.13577e-05
  5  16.8457
  6  2.60841e-05
  7  19.8149
  8  1.38178e-05
  9  0.000115367
  10  21.3965
  11  0.000379127
  12  8.91971e-08
  13  8.90402e-05
  14  3.6459
  15  6.37087e-05
  16  0.00115063
  17  0.00272229
  18  0.000241197
  19  3.87962e-05
  20  6.59326e-06
  21  1.7636
  22  3.19214e-07
  23  27.9007
  24  5.0805e-05
  25  0.314695
  26  0.142243
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  3.215e+01  2.140e+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.020e+00  1.422e-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.425e-01  3.147e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.62
Ra Dec: 320.921 5.592
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 6.06e-08 +/- 4.03e-08
Energy Flux (Fixed Index): 2.01e-05 +/- 1.34e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5497.92373009
delta logL = 0.83841963006

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5497.86857019
delta logL = 0.893579528331

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.678       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6772       1.0000          .0000       10.000    
     3 'Normalizat'    .68044       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0104       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=   5497.869     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      246 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.687        29.905        .62849E-04   -.97319E-04
   2  Index         1.6772        .49128        .80168E-02   -.27388E-04
   3  Normalizat    .68037        .29828        .41180E-03   -.35055E-03
   4  Prefactor     1.0105        .14080        .16075E-03   -.70776E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.687
  Index      = 1.67724
  Normalizat = 0.680373
  Prefactor  = 1.01045
 **********
 **   18 **HESSE 
 **********

 FCN=   5497.869     FROM HESSE     STATUS=OK            25 CALLS      271 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.687        30.100        .12570E-04   -1.4431    
   2  Index         1.6772        .49450        .32067E-03   -.72689    
   3  Normalizat    .68037        .29842        .16472E-04   -1.0467    
   4  Prefactor     1.0105        .14087        .32150E-04   -.92382    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.24483e-10
Minuit parameter uncertainties:
  1  30.1115
  2  0.495955
  3  0.299132
  4  0.140925
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/474978': 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) = 5497.86857013
delta logL = 0.893579591445

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  4.069e+01  3.011e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  1.677e+00  4.960e-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.010e+00  1.409e-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.804e-01  2.991e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.40
Ra Dec: 320.921 5.592
Photon Index (Free Index): 1.68 +/- 0.50
Photon Flux (Free Index): 2.96e-08 +/- 2.87e-08
Energy Flux (Free Index): 5.20e-05 +/- 6.16e-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/474978/cmap_HighResolution_363225601_363484801_4FGL_J2123.6+0535_daily_bin478.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.06e-08', energy_flux2='5.20e-05', photon_flux_error='4.03e-08', dlogl='8.94e-01', energy_flux='2.01e-05', photon_flux2='2.96e-08', job_status='DONE', time_completed='2021-09-26 12:57:00.413446', photon_index_error2='0.50', photon_index2='1.68', ts='7.62', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='6.16e-05', EG='0.64', time_epoch_completed='1632686220.41', return_code='0', job_id='474978', GAL2='1.01', EG2='0.68', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='2.87e-08', ts2='9.40', photon_index='2.39' WHERE bin_id='478' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 12:57:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0022>
Subject: Job 474978: <4FGL_J2123.6+0535_daily_bin478> in cluster <slac> Done

Job <4FGL_J2123.6+0535_daily_bin478> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 26 12:40:35 2021
Job was executed on host(s) <bullet0022>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 12:43:20 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:43:20 2021
Terminated at Sun Sep 26 12:57:01 2021
Results reported at Sun Sep 26 12:57:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin478 320.921 5.592 363225601 363484801 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 :                                   648.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            986 sec.

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

