/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 70 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 = 7382
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2123.6+0535_daily_bin1113
RA = 320.921, Dec = 5.592
tmin = 527817601, tmax = 528076801
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='479089', job_status='RUN', time_executed='2021-09-26 12:58:30.345487', time_epoch_executed='1632686310.35' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='1113'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/479089

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/479089/ft1_4FGL_J2123.6+0535_daily_bin1113.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/479089/ft2_4FGL_J2123.6+0535_daily_bin1113.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/479089/ft1_4FGL_J2123.6+0535_daily_bin1113.fits outfile=/scratch/kocevski/479089/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin1113.fits ra=320.921 dec=5.592 rad=12.0 tmin=527817601.0 tmax=528076801.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.54
user 3.32
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/479089/ft1_filtered_4FGL_J2123.6+0535_daily_bin1113.fits" evtable="EVENTS" scfile=/scratch/kocevski/479089/ft2_4FGL_J2123.6+0535_daily_bin1113.fits sctable="SC_DATA" outfile=/scratch/kocevski/479089/ltcube_527817601_528076801_4FGL_J2123.6+0535_daily_bin1113.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/479089/ft2_4FGL_J2123.6+0535_daily_bin1113.fits
.....................!
real 13.42
user 13.05
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/479089/ft1_filtered_4FGL_J2123.6+0535_daily_bin1113.fits evtable="EVENTS" scfile=/scratch/kocevski/479089/ft2_4FGL_J2123.6+0535_daily_bin1113.fits sctable="SC_DATA" expcube=/scratch/kocevski/479089/ltcube_527817601_528076801_4FGL_J2123.6+0535_daily_bin1113.fits outfile=/scratch/kocevski/479089/expmap_527817601_528076801_4FGL_J2123.6+0535_daily_bin1113.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/479089/ltcube_527817601_528076801_4FGL_J2123.6+0535_daily_bin1113.fits
.....................!
real 192.46
user 187.60
sys 4.36

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/479089/ft1_filtered_4FGL_J2123.6+0535_daily_bin1113.fits scfile=/scratch/kocevski/479089/ft2_4FGL_J2123.6+0535_daily_bin1113.fits outfile=/scratch/kocevski/479089/cmap_527817601_528076801_4FGL_J2123.6+0535_daily_bin1113.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.58
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/479089/ft1_filtered_4FGL_J2123.6+0535_daily_bin1113.fits scfile=/scratch/kocevski/479089/ft2_4FGL_J2123.6+0535_daily_bin1113.fits outfile=/scratch/kocevski/479089/cmap_HighResolution_527817601_528076801_4FGL_J2123.6+0535_daily_bin1113.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.61
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.293       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.578       1.0000         .10000E-03   10000.    
     6 'Prefactor '    39.381       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .17358E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.449       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.488       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12929E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.3486       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.7893       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.965       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    41.587       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.040       1.0000         .10000E-03   10000.    
    19 'norm      '    1.7941       1.0000         .10000E-03   10000.    
    20 'norm      '    21.762       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.5828       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    74.734       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .85384       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .86073       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=   6595.334     FROM MIGRAD    STATUS=CONVERGED    637 CALLS     3168 TOTAL
                     EDM=   .84E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.211       -.38694E-07** at limit **
   2  norm          .10000E-03    4.1933        .39256E-07** at limit **
   3  Prefactor     17.292        7.2184        .12529E-06   -.85743E-05
   4  Prefactor     .10000E-03    20.361        .85173E-07** at limit **
   5  Prefactor     12.578        18.879        .18737E-06   -.13926E-04
   6  Prefactor     39.405        25.046       -.62868E-06    .14831E-03
   7  Prefactor     .10017E-03    43.769       -.47403E-05** at limit **
   8  Prefactor     22.463        40.941       -.70799E-06   -.17081E-04
   9  Prefactor     .10000E-03    16.413        .48245E-07** at limit **
  10  Prefactor     11.487        11.874        .57080E-07    .12243E-04
  11  Prefactor     .10000E-03    33.030       -.17564E-06** at limit **
  12  Prefactor     .10000E-03    3.3452       -.18171E-05** at limit **
  13  Prefactor     2.3529        5.3758        .38651E-05    .99042E-04
  14  Prefactor     3.7887        2.5156        .91461E-07    .62754E-04
  15  Prefactor     14.961        25.432        .87163E-07    .10518E-05
  16  Prefactor     .10000E-03    42.129        .29334E-06** at limit **
  17  Prefactor     41.554        62.637        .25406E-05    .10993E-04
  18  Prefactor     15.036        44.085        .56577E-06    .15977E-04
  19  norm          1.7957        2.7780       -.10196E-06    .38651E-04
  20  norm          21.749        23.243       -.18077E-06    .50398E-04
  21  Prefactor     5.5824        5.7503        .70235E-07    .44180E-04
  22  Prefactor     .10000E-03    14.393        .85328E-07** at limit **
  23  Prefactor     .10000E-03    12.360        .11236E-06** at limit **
  24  Prefactor     74.728        32.442        .10882E-06    .75423E-05
  25  Normalizat    .85406        .26056       -.26467E-05   -.53927E-04
  26  Prefactor     .86067        .10746        .42513E-06    .37335E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.2921
  Prefactor  = 0.0001
  Prefactor  = 12.5775
  Prefactor  = 39.4054
  Prefactor  = 0.000100166
  Prefactor  = 22.4627
  Prefactor  = 0.0001
  Prefactor  = 11.4874
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.35285
  Prefactor  = 3.78874
  Prefactor  = 14.9613
  Prefactor  = 0.0001
  Prefactor  = 41.554
  Prefactor  = 15.0359
  norm       = 1.79574
  norm       = 21.7492
  Prefactor  = 5.58245
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 74.728
  Normalizat = 0.854057
  Prefactor  = 0.860667
 **********
 **   18 **HESSE 
 **********

 FCN=   6595.334     FROM HESSE     STATUS=OK           462 CALLS     3630 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.2374        .16240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.292        7.2197        .96313E-04   -1.4876    
   4  Prefactor     .10000E-03    20.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.578        18.897        .11295E-03   -1.4999    
   6  Prefactor     39.405        25.837        .63872E-04   -1.4452    
   7  Prefactor     .10017E-03    244.39        .81110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     22.463        40.818        .84540E-04   -1.4760    
   9  Prefactor     .10000E-03    16.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.487        11.884        .11820E-03   -1.5030    
  11  Prefactor     .10000E-03    33.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.453        .25353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.3529        5.5756        .13374E-02   -1.5401    
  14  Prefactor     3.7887        2.5121        .99466E-04   -1.5319    
  15  Prefactor     14.961        25.428        .10354E-03   -1.4934    
  16  Prefactor     .10000E-03    42.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     41.554        62.432        .62161E-04   -1.4418    
  18  Prefactor     15.036        43.982        .10328E-03   -1.4932    
  19  norm          1.7957        2.7287        .13713E-03   -1.5440    
  20  norm          21.749        23.041        .85861E-04   -1.4775    
  21  Prefactor     5.5824        5.7362        .17003E-03   -1.5235    
  22  Prefactor     .10000E-03    14.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    12.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     74.728        32.472        .46445E-04   -1.3977    
  25  Normalizat    .85406        .30784        .36450E-03   -.98094    
  26  Prefactor     .86067        .12947        .16608E-03   -.97529    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.8677e-10
Minuit parameter uncertainties:
  1  4.02883e-06
  2  4.90088e-06
  3  7.22003
  4  7.03494e-06
  5  18.9056
  6  25.844
  7  0.0127753
  8  40.8689
  9  6.87082e-06
  10  11.8864
  11  2.36924e-05
  12  0.000195483
  13  5.5768
  14  2.5122
  15  25.4466
  16  1.39499e-05
  17  62.5302
  18  44.0775
  19  2.72891
  20  23.0505
  21  5.73674
  22  4.95729e-05
  23  3.90827e-05
  24  32.4799
  25  0.308473
  26  0.129517
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.149e+01  1.189e+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:  8.607e-01  1.295e-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:  8.541e-01  3.085e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.44
Ra Dec: 320.921 5.592
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 2.16e-08 +/- 2.24e-08
Energy Flux (Fixed Index): 7.19e-06 +/- 7.44e-06

TS (Fixed Index): 3.44
Ra Dec: 320.921 5.592
Photon Flux Upper Limit: 9.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/479089/likelihoodResults_527817601_528076801_4FGL_J2123.6+0535_daily_bin1113.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) = 6590.96212834
delta logL = 4.37155038842

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6590.95745396
delta logL = 4.37622476527

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.210       1.0000         .10000E-03   10000.    
     2 'Index     '    .83909       1.0000          .0000       10.000    
     3 'Normalizat'    .84506       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86577       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=   6590.957     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      216 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.210        8.0597        .31349E-02    .37104E-02
   2  Index         .83908        .27537        .16433       -.50142E-04
   3  Normalizat    .84508        .23139        .82578E-01   -.14420E-03
   4  Prefactor     .86575        .10667        .44567E-01   -.43405E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.2105
  Index      = 0.839079
  Normalizat = 0.845081
  Prefactor  = 0.865754
 **********
 **   18 **HESSE 
 **********

 FCN=   6590.957     FROM HESSE     STATUS=OK            27 CALLS      243 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.210        12.959        .12540E-03   -1.5069    
   2  Index         .83908        .44697        .71822E-03   -.98304    
   3  Normalizat    .84508        .27649        .36560E-03   -.98418    
   4  Prefactor     .86575        .12776        .16556E-03   -.97348    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39742e-08
Minuit parameter uncertainties:
  1  12.9622
  2  0.448925
  3  0.27695
  4  0.127809
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/479089': 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) = 6590.95745396
delta logL = 4.37622476931

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.021e+01  1.296e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  8.391e-01  4.489e-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:  8.658e-01  1.278e-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:  8.451e-01  2.769e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.19
Ra Dec: 320.921 5.592
Photon Index (Free Index): 0.84 +/- 0.45
Photon Flux (Free Index): 9.14e-09 +/- 6.99e-09
Energy Flux (Free Index): 1.89e-04 +/- 1.80e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/479089/cmap_HighResolution_527817601_528076801_4FGL_J2123.6+0535_daily_bin1113.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.12e-03', comment='SUCCESS', photon_flux='2.16e-08', energy_flux2='1.89e-04', photon_flux_error='2.24e-08', dlogl='4.38e+00', energy_flux='7.19e-06', photon_flux2='9.14e-09', job_status='DONE', time_completed='2021-09-26 13:11:41.281104', photon_index_error2='0.45', photon_index2='0.84', ts='3.44', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='9.22e-08', energy_flux_error2='1.80e-04', EG='0.85', time_epoch_completed='1632687101.28', return_code='0', job_id='479089', GAL2='0.87', EG2='0.85', return_code2='0', energy_flux_error='7.44e-06', photon_flux_error2='6.99e-09', ts2='12.19', photon_index='2.39' WHERE bin_id='1113' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:11:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 479089: <4FGL_J2123.6+0535_daily_bin1113> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin1113 320.921 5.592 527817601 528076801 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 :                                   787.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             318.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            957 sec.

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

