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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin1602
RA = 320.921, Dec = 5.592
tmin = 654566401, tmax = 654825601
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='860126', job_status='RUN', time_executed='2021-10-02 00:19:22.696444', time_epoch_executed='1633159162.7' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='1602'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/860126

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/860126/ft1_4FGL_J2123.6+0535_daily_bin1602.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/860126/ft2_4FGL_J2123.6+0535_daily_bin1602.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/860126/ft1_4FGL_J2123.6+0535_daily_bin1602.fits outfile=/scratch/kocevski/860126/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin1602.fits ra=320.921 dec=5.592 rad=12.0 tmin=654566401.0 tmax=654825601.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.01
user 4.74
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/860126/ft2_4FGL_J2123.6+0535_daily_bin1602.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/860126/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin1602.fits evtable="EVENTS" outfile="/scratch/kocevski/860126/ft1_filtered_4FGL_J2123.6+0535_daily_bin1602.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.52
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/860126/ft1_filtered_4FGL_J2123.6+0535_daily_bin1602.fits" evtable="EVENTS" scfile=/scratch/kocevski/860126/ft2_4FGL_J2123.6+0535_daily_bin1602.fits sctable="SC_DATA" outfile=/scratch/kocevski/860126/ltcube_654566401_654825601_4FGL_J2123.6+0535_daily_bin1602.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/860126/ft2_4FGL_J2123.6+0535_daily_bin1602.fits
.....................!
real 12.34
user 12.00
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/860126/ft1_filtered_4FGL_J2123.6+0535_daily_bin1602.fits evtable="EVENTS" scfile=/scratch/kocevski/860126/ft2_4FGL_J2123.6+0535_daily_bin1602.fits sctable="SC_DATA" expcube=/scratch/kocevski/860126/ltcube_654566401_654825601_4FGL_J2123.6+0535_daily_bin1602.fits outfile=/scratch/kocevski/860126/expmap_654566401_654825601_4FGL_J2123.6+0535_daily_bin1602.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/860126/ltcube_654566401_654825601_4FGL_J2123.6+0535_daily_bin1602.fits
.....................!
real 193.49
user 187.40
sys 5.46

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/860126/ft1_filtered_4FGL_J2123.6+0535_daily_bin1602.fits scfile=/scratch/kocevski/860126/ft2_4FGL_J2123.6+0535_daily_bin1602.fits outfile=/scratch/kocevski/860126/cmap_654566401_654825601_4FGL_J2123.6+0535_daily_bin1602.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=320.921 yref=5.592 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/860126/ft1_filtered_4FGL_J2123.6+0535_daily_bin1602.fits scfile=/scratch/kocevski/860126/ft2_4FGL_J2123.6+0535_daily_bin1602.fits outfile=/scratch/kocevski/860126/cmap_HighResolution_654566401_654825601_4FGL_J2123.6+0535_daily_bin1602.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=320.921 yref=5.592 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.4944       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.6213       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.040       1.0000         .10000E-03   10000.    
     9 'Prefactor '    40.888       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .70391       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11830E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    81.958       1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.206       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.0734       1.0000         .10000E-03   10000.    
    20 'norm      '    30.417       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    29.569       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.1927       1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.999       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .66203       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0816       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=   6443.295     FROM MIGRAD    STATUS=CONVERGED    656 CALLS     3174 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.824       -.24136E-06** at limit **
   2  norm          6.4933        7.0203       -.16571E-06   -.99626E-05
   3  Prefactor     2.6202        5.5932       -.68605E-06    .70253E-05
   4  Prefactor     .10000E-03    24.577        .19849E-06** at limit **
   5  Prefactor     .10000E-03    9.3646       -.45495E-06** at limit **
   6  Prefactor     .10000E-03    6.6183       -.13921E-06** at limit **
   7  Prefactor     .10000E-03    7.0312       -.89359E-07** at limit **
   8  Prefactor     18.039        18.248       -.10291E-06    .30752E-05
   9  Prefactor     41.011        86.939       -.11145E-04   -.53430E-04
  10  Prefactor     .10000E-03    49.176       -.25384E-06** at limit **
  11  Prefactor     .20413        65.482        .57687E-05   -.86892E-04
  12  Prefactor     .10000E-03    2.4163       -.25934E-06** at limit **
  13  Prefactor     .10000E-03    5.5554       -.50810E-06** at limit **
  14  Prefactor     .10002E-03    2.0281        .16324E-05** at limit **
  15  Prefactor     82.096        56.196       -.23808E-05   -.47488E-03
  16  Prefactor     21.342        54.503       -.12292E-04   -.13682E-03
  17  Prefactor     .10000E-03    35.124       -.44984E-06** at limit **
  18  Prefactor     .10000E-03    22.355        .97024E-07** at limit **
  19  norm          1.0729        2.2609       -.24439E-06   -.19210E-03
  20  norm          30.408        26.294       -.29213E-06    .70175E-05
  21  Prefactor     .10000E-03    2.6520       -.74878E-07** at limit **
  22  Prefactor     29.573        23.445        .11067E-05   -.31476E-03
  23  Prefactor     1.1813        59.328        .17469E-04   -.66457E-04
  24  Prefactor     10.995        34.124       -.84964E-06   -.35611E-04
  25  Normalizat    .66216        .29988       -.48931E-06   -.39063E-03
  26  Prefactor     1.0817        .12170        .74927E-06   -.74452E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.49327
  Prefactor  = 2.62023
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.0391
  Prefactor  = 41.011
  Prefactor  = 0.0001
  Prefactor  = 0.204127
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100023
  Prefactor  = 82.0959
  Prefactor  = 21.3423
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.07288
  norm       = 30.4078
  Prefactor  = 0.0001
  Prefactor  = 29.5729
  Prefactor  = 1.1813
  Prefactor  = 10.9951
  Normalizat = 0.662159
  Prefactor  = 1.08168
 **********
 **   18 **HESSE 
 **********

 FCN=   6443.295     FROM HESSE     STATUS=OK           458 CALLS     3632 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.4933        7.0171        .15748E-03   -1.5198    
   3  Prefactor     2.6202        5.5667        .25190E-03   -1.5384    
   4  Prefactor     .10000E-03    24.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.4319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.6225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.0338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     18.039        18.248        .94298E-04   -1.4858    
   9  Prefactor     41.011        87.067        .62688E-04   -1.4426    
  10  Prefactor     .10000E-03    50.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .20413        65.850        .15085       -1.5618    
  12  Prefactor     .10000E-03    2.4303        .12184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.6318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10002E-03    10.610        .19471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     82.096        55.791        .44367E-04   -1.3893    
  16  Prefactor     21.342        55.668        .86978E-04   -1.4784    
  17  Prefactor     .10000E-03    35.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    22.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.0729        2.1909        .16464E-03   -1.5501    
  20  norm          30.408        26.154        .72648E-04   -1.4605    
  21  Prefactor     .10000E-03    2.6555        .12765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     29.573        23.330        .73680E-04   -1.4620    
  23  Prefactor     1.1813        58.466        .20839E-02   -1.5491    
  24  Prefactor     10.995        34.065        .12080E-03   -1.5045    
  25  Normalizat    .66216        .32666        .45189E-03   -1.0541    
  26  Prefactor     1.0817        .13587        .16332E-03   -.90054    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.3612e-09
Minuit parameter uncertainties:
  1  9.24073e-06
  2  7.01799
  3  5.56778
  4  4.22344e-05
  5  3.53577e-05
  6  9.60458e-06
  7  6.76905e-06
  8  18.2533
  9  87.3388
  10  0.000180508
  11  7.33893
  12  9.26977e-06
  13  2.85374e-05
  14  0.000993467
  15  55.8262
  16  55.8036
  17  3.12152e-05
  18  3.59862e-05
  19  2.19111
  20  26.1635
  21  4.50889e-06
  22  23.3368
  23  16.6377
  24  34.1251
  25  0.327625
  26  0.135916
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.805e-04  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.082e+00  1.359e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  6.622e-01  3.276e-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.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/860126/likelihoodResults_654566401_654825601_4FGL_J2123.6+0535_daily_bin1602.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) = 6443.29530775
delta logL = -9.51671354414e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6443.29521281
delta logL = -2.32073944062e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6786       1.0000          .0000       10.000    
     3 'Normalizat'    .66216       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0817       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=   6443.295     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      293 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10205E-03    .34992        .97227E-01** at limit **
   2  Index         2.6060        5.1805        .50000        .56393E-05
   3  Normalizat    .66216        .99425E-03    .45192E-03   -.95040E-04
   4  Prefactor     1.0817        .45369E-03    .16332E-03   -.22455E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102047
  Index      = 2.60605
  Normalizat = 0.662163
  Prefactor  = 1.08168
 **********
 **   18 **HESSE 
 **********

 FCN=   6443.295     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      324 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10205E-03    73.865        .59098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6060        6.2719        .50000       -.49928    
   3  Normalizat    .66216        .82174E-02    .18077E-04   -1.0541    
   4  Prefactor     1.0817        .37497E-02    .32663E-04   -.90054    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.17478e-10
Minuit parameter uncertainties:
  1  0.0246246
  2  224.658
  3  0.00821737
  4  0.0037497
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/860126': 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) = 6443.29521272
delta logL = -1.45680132846e-07

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.020e-04  2.462e-02  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.606e+00  2.247e+02  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.082e+00  3.750e-03  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.622e-01  8.217e-03  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/860126/cmap_HighResolution_654566401_654825601_4FGL_J2123.6+0535_daily_bin1602.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.43e-03', job_status='DONE', photon_flux_upper_limit='1.09e-07', time_completed='2021-10-02 00:32:02.601941', job_id='860126', GAL2='1.08', fit_tolerance='1e-08', EG2='0.66', EG='0.66', time_epoch_completed='1633159922.6', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='-1.46e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1602' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Oct  2 00:32:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 860126: <4FGL_J2123.6+0535_daily_bin1602> in cluster <slac> Done

Job <4FGL_J2123.6+0535_daily_bin1602> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Oct  2 00:15:40 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Oct  2 00:15:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Oct  2 00:15:42 2021
Terminated at Sat Oct  2 00:32:03 2021
Results reported at Sat Oct  2 00:32:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin1602 320.921 5.592 654566401 654825601 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 :                                   762.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            983 sec.

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

