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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin901
RA = 320.921, Dec = 5.592
tmin = 472867201, tmax = 473126401
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='478771', job_status='RUN', time_executed='2021-09-26 12:58:28.782549', time_epoch_executed='1632686308.78' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='901'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/478771

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/478771/ft1_4FGL_J2123.6+0535_daily_bin901.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/478771/ft2_4FGL_J2123.6+0535_daily_bin901.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/478771/ft1_4FGL_J2123.6+0535_daily_bin901.fits outfile=/scratch/kocevski/478771/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin901.fits ra=320.921 dec=5.592 rad=12.0 tmin=472867201.0 tmax=473126401.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.90
user 3.66
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/478771/ft1_filtered_4FGL_J2123.6+0535_daily_bin901.fits evtable="EVENTS" scfile=/scratch/kocevski/478771/ft2_4FGL_J2123.6+0535_daily_bin901.fits sctable="SC_DATA" expcube=/scratch/kocevski/478771/ltcube_472867201_473126401_4FGL_J2123.6+0535_daily_bin901.fits outfile=/scratch/kocevski/478771/expmap_472867201_473126401_4FGL_J2123.6+0535_daily_bin901.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/478771/ltcube_472867201_473126401_4FGL_J2123.6+0535_daily_bin901.fits
.....................!
real 190.91
user 185.92
sys 4.59

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/478771/ft1_filtered_4FGL_J2123.6+0535_daily_bin901.fits scfile=/scratch/kocevski/478771/ft2_4FGL_J2123.6+0535_daily_bin901.fits outfile=/scratch/kocevski/478771/cmap_472867201_473126401_4FGL_J2123.6+0535_daily_bin901.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/478771/ft1_filtered_4FGL_J2123.6+0535_daily_bin901.fits scfile=/scratch/kocevski/478771/ft2_4FGL_J2123.6+0535_daily_bin901.fits outfile=/scratch/kocevski/478771/cmap_HighResolution_472867201_473126401_4FGL_J2123.6+0535_daily_bin901.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    13.075       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10917E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    45.363       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.687       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.773       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    33.703       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .59108       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.725       1.0000         .10000E-03   10000.    
    16 'Prefactor '    73.497       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11517E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .85054       1.0000         .10000E-03   10000.    
    20 'norm      '    .97390E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10444E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.9295       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.8545       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .65151       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .99140       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=   6470.407     FROM MIGRAD    STATUS=CONVERGED    635 CALLS     3223 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.766       -.26338E-05** at limit **
   2  norm          13.075        8.4106       -.10569E-06   -.12911E-04
   3  Prefactor     .10000E-03    4.0119       -.93073E-07** at limit **
   4  Prefactor     45.391        46.611        .53345E-05    .56350E-05
   5  Prefactor     .10000E-03    28.332        .19840E-05** at limit **
   6  Prefactor     13.681        23.112        .25349E-05   -.22142E-04
   7  Prefactor     .10000E-03    12.296       -.34981E-06** at limit **
   8  Prefactor     21.768        26.656        .21123E-05   -.68259E-05
   9  Prefactor     .10000E-03    72.871       -.74787E-05** at limit **
  10  Prefactor     .10000E-03    10.618        .27267E-06** at limit **
  11  Prefactor     33.697        38.741        .45316E-05   -.32206E-05
  12  Prefactor     .10000E-03    7.8599       -.30628E-07** at limit **
  13  Prefactor     .57262        3.8695       -.59528E-06   -.84826E-04
  14  Prefactor     .10000E-03    1.0896        .48106E-07** at limit **
  15  Prefactor     20.736        28.151       -.40186E-05   -.40683E-04
  16  Prefactor     73.460        53.948       -.12081E-04   -.53985E-05
  17  Prefactor     .10000E-03    34.001        .10799E-05** at limit **
  18  Prefactor     .10001E-03    326.35        .80928E-06** at limit **
  19  norm          .85197        1.6688       -.52849E-06   -.23638E-02
  20  norm          .10204E-03    17.346        .50776E-05** at limit **
  21  Prefactor     .10000E-03    9.4272       -.62627E-06** at limit **
  22  Prefactor     2.9301        6.8886       -.37421E-06   -.26544E-03
  23  Prefactor     .10000E-03    14.210        .13153E-06** at limit **
  24  Prefactor     3.8474        13.786       -.12384E-05   -.88136E-04
  25  Normalizat    .65132        .25303        .45816E-06   -.29426E-03
  26  Prefactor     .99148        .11030       -.19845E-06   -.36065E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 13.0746
  Prefactor  = 0.000100001
  Prefactor  = 45.391
  Prefactor  = 0.0001
  Prefactor  = 13.6811
  Prefactor  = 0.0001
  Prefactor  = 21.7681
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.6968
  Prefactor  = 0.0001
  Prefactor  = 0.572625
  Prefactor  = 0.0001
  Prefactor  = 20.7362
  Prefactor  = 73.4605
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 0.851966
  norm       = 0.000102044
  Prefactor  = 0.0001
  Prefactor  = 2.9301
  Prefactor  = 0.0001
  Prefactor  = 3.84743
  Normalizat = 0.65132
  Prefactor  = 0.991485
 **********
 **   18 **HESSE 
 **********

 FCN=   6470.407     FROM HESSE     STATUS=OK           462 CALLS     3685 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          13.075        8.3959        .11077E-03   -1.4985    
   3  Prefactor     .10000E-03    9.5660        .30874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     45.391        46.389        .59528E-04   -1.4359    
   5  Prefactor     .10000E-03    29.270        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.681        23.001        .10827E-03   -1.4968    
   7  Prefactor     .10000E-03    12.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     21.768        26.599        .85840E-04   -1.4775    
   9  Prefactor     .10000E-03    73.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     33.697        38.513        .69025E-04   -1.4546    
  12  Prefactor     .10000E-03    8.1583        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .57262        21.354        .29343E-02   -1.5557    
  14  Prefactor     .10000E-03    1.0957        .81709E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     20.736        28.184        .87981E-04   -1.4797    
  16  Prefactor     73.460        53.496        .46831E-04   -1.3992    
  17  Prefactor     .10000E-03    34.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    334.65        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .85197        1.4156        .13821E-02   -1.5523    
  20  norm          .10204E-03    107.01        .59543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.7422        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.9301        6.8782        .23733E-03   -1.5366    
  23  Prefactor     .10000E-03    14.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.8474        13.788        .20555E-03   -1.5316    
  25  Normalizat    .65132        .27189        .39347E-03   -1.0585    
  26  Prefactor     .99148        .12495        .15393E-03   -.93014    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.43772e-08
Minuit parameter uncertainties:
  1  6.67925e-07
  2  8.39668
  3  0.000173184
  4  46.4264
  5  0.000102687
  6  23.0162
  7  3.88631e-05
  8  26.6133
  9  8.17481e-05
  10  9.09236e-06
  11  38.5416
  12  5.31996e-06
  13  6.99568
  14  8.05718e-06
  15  28.2024
  16  53.5315
  17  1.68042e-05
  18  0.0028073
  19  1.41562
  20  0.0296306
  21  8.84378e-06
  22  6.88005
  23  1.21348e-05
  24  13.7996
  25  0.272454
  26  0.124988
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  9.092e-06  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:  9.915e-01  1.250e-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.513e-01  2.725e-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: 7.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/478771/likelihoodResults_472867201_473126401_4FGL_J2123.6+0535_daily_bin901.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) = 6470.40739886
delta logL = -0.000447815293228

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6470.40695109
delta logL = -4.12082954426e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3825       1.0000          .0000       10.000    
     3 'Normalizat'    .65130       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99148       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=   6470.407     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      247 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10089E-03    461.38        .18142E-02** at limit **
   2  Index         2.2911        7.0246        .50000        .40144E-05
   3  Normalizat    .65132        .37576E-01    .39347E-03   -.89569E-06
   4  Prefactor     .99148        .17991E-01    .15393E-03    .32202E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100886
  Index      = 2.2911
  Normalizat = 0.651324
  Prefactor  = 0.991483
 **********
 **   18 **HESSE 
 **********

 FCN=   6470.407     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .61E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10089E-03    1675.5        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2911        5.5170        .50000       -.57255    
   3  Normalizat    .65132        .93982E-01    .15739E-04   -1.0585    
   4  Prefactor     .99148        .44896E-01    .61571E-05   -.93014    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.1159e-08
Minuit parameter uncertainties:
  1  0.0793777
  2  3645.14
  3  0.0940048
  4  0.0448979
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/478771': 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) = 6470.40695097
delta logL = 7.5604475569e-08

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.009e-04  7.938e-02  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.291e+00  3.645e+03  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:  9.915e-01  4.490e-02  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  6.513e-01  9.400e-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/478771/cmap_HighResolution_472867201_473126401_4FGL_J2123.6+0535_daily_bin901.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.83e-03', job_status='DONE', photon_flux_upper_limit='7.56e-08', time_completed='2021-09-26 13:11:38.370947', job_id='478771', GAL2='0.99', fit_tolerance='1e-08', EG2='0.65', EG='0.65', time_epoch_completed='1632687098.37', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='7.56e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='901' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:11:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 478771: <4FGL_J2123.6+0535_daily_bin901> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin901 320.921 5.592 472867201 473126401 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 :                                   788.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             274.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            983 sec.

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

