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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin970
RA = 320.921, Dec = 5.592
tmin = 490752001, tmax = 491011201
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='478874', job_status='RUN', time_executed='2021-09-26 12:57:45.159588', time_epoch_executed='1632686265.16' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='970'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/478874

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/478874/ft1_4FGL_J2123.6+0535_daily_bin970.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/478874/ft2_4FGL_J2123.6+0535_daily_bin970.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/478874/ft1_4FGL_J2123.6+0535_daily_bin970.fits outfile=/scratch/kocevski/478874/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin970.fits ra=320.921 dec=5.592 rad=12.0 tmin=490752001.0 tmax=491011201.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 5.84
user 5.59
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/478874/ft1_filtered_4FGL_J2123.6+0535_daily_bin970.fits evtable="EVENTS" scfile=/scratch/kocevski/478874/ft2_4FGL_J2123.6+0535_daily_bin970.fits sctable="SC_DATA" expcube=/scratch/kocevski/478874/ltcube_490752001_491011201_4FGL_J2123.6+0535_daily_bin970.fits outfile=/scratch/kocevski/478874/expmap_490752001_491011201_4FGL_J2123.6+0535_daily_bin970.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/478874/ltcube_490752001_491011201_4FGL_J2123.6+0535_daily_bin970.fits
.....................!
real 194.35
user 189.37
sys 4.47

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/478874/ft1_filtered_4FGL_J2123.6+0535_daily_bin970.fits scfile=/scratch/kocevski/478874/ft2_4FGL_J2123.6+0535_daily_bin970.fits outfile=/scratch/kocevski/478874/cmap_490752001_491011201_4FGL_J2123.6+0535_daily_bin970.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.61
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/478874/ft1_filtered_4FGL_J2123.6+0535_daily_bin970.fits scfile=/scratch/kocevski/478874/ft2_4FGL_J2123.6+0535_daily_bin970.fits outfile=/scratch/kocevski/478874/cmap_HighResolution_490752001_491011201_4FGL_J2123.6+0535_daily_bin970.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/478874/ft1_filtered_4FGL_J2123.6+0535_daily_bin970.fits evtable="EVENTS" scfile=/scratch/kocevski/478874/ft2_4FGL_J2123.6+0535_daily_bin970.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/478874/Model_4FGL_J2123.6+0535_daily_bin970.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/478874/ft1_filtered_4FGL_J2123.6+0535_daily_bin970.fits.....................!
real 69.32
user 66.84
sys 1.35

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.343       1.0000         .10000E-03   10000.    
     2 'norm      '    1.6225       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4345       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16921       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.517       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.258       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .62022       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.2640       1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.673       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.1772       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.6967       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.1525       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    116.94       1.0000         .10000E-03   10000.    
    19 'norm      '    .10956E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.9522       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10457E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .76123       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .89156       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=   6493.480     FROM MIGRAD    STATUS=CONVERGED    642 CALLS     3683 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.345        24.230       -.32605E-06   -.60212E-04
   2  norm          1.6277        9.1703        .14807E-05   -.93380E-04
   3  Prefactor     1.4370        3.7025        .41291E-06   -.76463E-04
   4  Prefactor     .10000E-03    20.645        .62453E-06** at limit **
   5  Prefactor     .16807        12.066        .22018E-05   -.22583E-03
   6  Prefactor     .10000E-03    15.217       -.14026E-06** at limit **
   7  Prefactor     16.511        17.474       -.79297E-07   -.77192E-04
   8  Prefactor     .10000E-03    17.834       -.50893E-06** at limit **
   9  Prefactor     32.260        41.169        .29936E-06   -.34120E-04
  10  Prefactor     .74595        36.704        .10063E-04   -.35579E-03
  11  Prefactor     .10000E-03    33.811       -.10278E-05** at limit **
  12  Prefactor     2.2657        6.3129        .65006E-05    .15928E-04
  13  Prefactor     21.673        15.386       -.84543E-06    .37280E-04
  14  Prefactor     2.1773        2.5944        .47020E-06    .44635E-03
  15  Prefactor     4.6849        31.592        .71734E-06   -.63839E-05
  16  Prefactor     8.1678        83.119       -.22962E-05    .17190E-04
  17  Prefactor     .10000E-03    50.212        .29109E-05** at limit **
  18  Prefactor     116.98        85.058       -.52182E-05   -.12033E-03
  19  norm          .10000E-03    2.2765       -.14233E-05** at limit **
  20  norm          1.9789        86.128        .14139E-04    .14426E-03
  21  Prefactor     .10000E-03    4.9472        .98876E-06** at limit **
  22  Prefactor     .10000E-03    5.7539        .12111E-06** at limit **
  23  Prefactor     .10000E-03    12.182        .96497E-07** at limit **
  24  Prefactor     .10000E-03    72.911       -.21160E-05** at limit **
  25  Normalizat    .76115        .26455       -.37330E-05   -.24621E-03
  26  Prefactor     .89143        .10363        .72633E-06   -.37197E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.3452
  norm       = 1.6277
  Prefactor  = 1.43703
  Prefactor  = 0.0001
  Prefactor  = 0.168065
  Prefactor  = 0.0001
  Prefactor  = 16.5114
  Prefactor  = 0.0001
  Prefactor  = 32.2599
  Prefactor  = 0.745954
  Prefactor  = 0.0001
  Prefactor  = 2.26567
  Prefactor  = 21.6731
  Prefactor  = 2.17731
  Prefactor  = 4.68494
  Prefactor  = 8.16784
  Prefactor  = 0.000100001
  Prefactor  = 116.981
  norm       = 0.000100001
  norm       = 1.97892
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 0.761147
  Prefactor  = 0.891434
 **********
 **   18 **HESSE 
 **********

 FCN=   6493.480     FROM HESSE     STATUS=OK           468 CALLS     4151 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.345        24.179        .91067E-04   -1.4828    
   2  norm          1.6277        9.0741        .33220E-03   -1.5453    
   3  Prefactor     1.4370        3.6634        .23201E-03   -1.5468    
   4  Prefactor     .10000E-03    20.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .16807        15.242        .80543E-01   -1.5626    
   6  Prefactor     .10000E-03    15.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.511        17.468        .98551E-04   -1.4895    
   8  Prefactor     .10000E-03    17.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     32.260        41.197        .70550E-04   -1.4571    
  10  Prefactor     .74595        309.04        .75403E-02   -1.5535    
  11  Prefactor     .10000E-03    33.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.2657        6.4436        .13649E-02   -1.5407    
  13  Prefactor     21.673        15.404        .86038E-04   -1.4777    
  14  Prefactor     2.1773        2.5695        .13033E-03   -1.5413    
  15  Prefactor     4.6849        31.385        .18568E-03   -1.5275    
  16  Prefactor     8.1678        81.897        .14042E-03   -1.5136    
  17  Prefactor     .10000E-03    49.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     116.98        85.272        .18604E-03   -1.3541    
  19  norm          .10000E-03    4.0763        .22978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.9789        87.170        .29699E-03   -1.5427    
  21  Prefactor     .10000E-03    4.9970        .17555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.7606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    12.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    72.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .76115        .30971        .38857E-03   -1.0153    
  26  Prefactor     .89143        .12563        .15604E-03   -.96441    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42935e-08
Minuit parameter uncertainties:
  1  24.1917
  2  7.68788
  3  3.66402
  4  7.93271e-05
  5  3.2009
  6  6.15324e-05
  7  17.4738
  8  1.88359e-05
  9  41.2331
  10  30.524
  11  0.000237303
  12  6.44556
  13  15.4066
  14  2.56961
  15  24.2699
  16  51.8189
  17  0.000385552
  18  85.362
  19  0.000134597
  20  26.3083
  21  0.000129304
  22  1.68732e-05
  23  1.01821e-05
  24  0.000848948
  25  0.310427
  26  0.125671
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  7.460e-01  3.052e+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.914e-01  1.257e-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:  7.611e-01  3.104e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/478874/likelihoodResults_490752001_491011201_4FGL_J2123.6+0535_daily_bin970.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) = 6493.4801786
delta logL = 6.80653101881e-07

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6493.47685176
delta logL = 0.00332752601753

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .74951       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2583       1.0000          .0000       10.000    
     3 'Normalizat'    .75476       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89301       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=   6493.477     FROM MIGRAD    STATUS=CONVERGED     71 CALLS      264 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .78962        10.676        .95662E-01    .54252E-03
   2  Index         3.2422        .70557        .50000        .17412E-04
   3  Normalizat    .75483        .92835E-02    .88075E-01   -.15596E-03
   4  Prefactor     .89293        .40323E-02    .44916E-01   -.22635E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.789619
  Index      = 3.24219
  Normalizat = 0.754833
  Prefactor  = 0.892933
 **********
 **   18 **HESSE 
 **********

 FCN=   6493.477     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      297 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .78962        6863.0        .32293E-02   -1.5530    
   2  Index         3.2422        6.4554        .74755E-02   -.35924    
   3  Normalizat    .75483        .18458        .39010E-03   -1.0177    
   4  Prefactor     .89293        .74353E-01    .15592E-03   -.96388    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.04471e-08
Minuit parameter uncertainties:
  1  118.271
  2  66.206
  3  0.184737
  4  0.0743611
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/478874': 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) = 6493.47684725
delta logL = 0.00333203324863

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  7.896e-01  1.183e+02  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  3.242e+00  6.621e+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.929e-01  7.436e-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:  7.548e-01  1.847e-01  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/478874/cmap_HighResolution_490752001_491011201_4FGL_J2123.6+0535_daily_bin970.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', job_status='DONE', photon_flux_upper_limit='1.35e-07', time_completed='2021-09-26 13:11:33.434639', job_id='478874', GAL2='0.89', fit_tolerance='1e-08', EG2='0.75', EG='0.76', time_epoch_completed='1632687093.43', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='3.33e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='970' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:11:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 478874: <4FGL_J2123.6+0535_daily_bin970> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin970 320.921 5.592 490752001 491011201 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 :                                   823.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             293.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            967 sec.

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

