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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin1089
RA = 320.921, Dec = 5.592
tmin = 521596801, tmax = 521856001
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='479055', job_status='RUN', time_executed='2021-09-26 12:58:54.876647', time_epoch_executed='1632686334.88' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='1089'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/479055

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/479055/ft1_4FGL_J2123.6+0535_daily_bin1089.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/479055/ft2_4FGL_J2123.6+0535_daily_bin1089.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/479055/ft1_4FGL_J2123.6+0535_daily_bin1089.fits outfile=/scratch/kocevski/479055/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin1089.fits ra=320.921 dec=5.592 rad=12.0 tmin=521596801.0 tmax=521856001.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.64
user 3.36
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/479055/ft1_filtered_4FGL_J2123.6+0535_daily_bin1089.fits evtable="EVENTS" scfile=/scratch/kocevski/479055/ft2_4FGL_J2123.6+0535_daily_bin1089.fits sctable="SC_DATA" expcube=/scratch/kocevski/479055/ltcube_521596801_521856001_4FGL_J2123.6+0535_daily_bin1089.fits outfile=/scratch/kocevski/479055/expmap_521596801_521856001_4FGL_J2123.6+0535_daily_bin1089.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/479055/ltcube_521596801_521856001_4FGL_J2123.6+0535_daily_bin1089.fits
.....................!
real 156.61
user 151.76
sys 4.27

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/479055/ft1_filtered_4FGL_J2123.6+0535_daily_bin1089.fits scfile=/scratch/kocevski/479055/ft2_4FGL_J2123.6+0535_daily_bin1089.fits outfile=/scratch/kocevski/479055/cmap_521596801_521856001_4FGL_J2123.6+0535_daily_bin1089.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.51
user 0.33
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/479055/ft1_filtered_4FGL_J2123.6+0535_daily_bin1089.fits scfile=/scratch/kocevski/479055/ft2_4FGL_J2123.6+0535_daily_bin1089.fits outfile=/scratch/kocevski/479055/cmap_HighResolution_521596801_521856001_4FGL_J2123.6+0535_daily_bin1089.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.50
user 0.35
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    13.199       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.0608       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10997E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.0802       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.2557       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .41398       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .19151E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.508       1.0000         .10000E-03   10000.    
    18 'Prefactor '    60.850       1.0000         .10000E-03   10000.    
    19 'norm      '    4.8469       1.0000         .10000E-03   10000.    
    20 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    30.053       1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.9467       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0224       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .81645       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=   7671.276     FROM MIGRAD    STATUS=CONVERGED    642 CALLS     3156 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.111        .57533E-06** at limit **
   2  norm          13.199        9.7828        .19664E-06   -.41714E-04
   3  Prefactor     6.0613        4.5849        .26760E-06   -.69652E-04
   4  Prefactor     .10000E-03    105.77       -.88263E-06** at limit **
   5  Prefactor     .10000E-03    14.296        .99262E-07** at limit **
   6  Prefactor     2.0746        32.338        .30529E-04   -.19016E-03
   7  Prefactor     .10002E-03    25.359       -.57563E-05** at limit **
   8  Prefactor     .10000E-03    9.5644        .70307E-07** at limit **
   9  Prefactor     .10000E-03    51.503        .11105E-06** at limit **
  10  Prefactor     .10000E-03    9.5455       -.22204E-06** at limit **
  11  Prefactor     .10000E-03    38.343       -.10695E-06** at limit **
  12  Prefactor     8.2543        6.8866        .70295E-07   -.44310E-03
  13  Prefactor     .10000E-03    4.1428       -.17851E-06** at limit **
  14  Prefactor     .41265        2.2200        .31034E-05   -.19509E-03
  15  Prefactor     .10000E-03    17.749       -.53101E-06** at limit **
  16  Prefactor     .10003E-03    270.14        .58764E-05** at limit **
  17  Prefactor     23.284        63.882       -.10280E-04   -.36128E-03
  18  Prefactor     60.838        46.476        .31542E-06   -.59671E-04
  19  norm          4.8480        3.1353        .92736E-06   -.24414E-03
  20  norm          .10000E-03    7.0168        .30043E-06** at limit **
  21  Prefactor     .10000E-03    11.126       -.62158E-07** at limit **
  22  Prefactor     .10000E-03    4.4955        .50529E-07** at limit **
  23  Prefactor     30.052        24.757        .55124E-06   -.25169E-04
  24  Prefactor     6.9387        26.574        .14389E-05   -.48367E-05
  25  Normalizat    1.0226        .22469       -.39988E-05   -.23199E-03
  26  Prefactor     .81634        .94387E-01   -.65581E-07   -.59095E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 13.1989
  Prefactor  = 6.06133
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.07457
  Prefactor  = 0.00010002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.25432
  Prefactor  = 0.0001
  Prefactor  = 0.412646
  Prefactor  = 0.0001
  Prefactor  = 0.000100031
  Prefactor  = 23.2839
  Prefactor  = 60.8383
  norm       = 4.84797
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.0518
  Prefactor  = 6.93873
  Normalizat = 1.02263
  Prefactor  = 0.816339
 **********
 **   18 **HESSE 
 **********

 FCN=   7671.276     FROM HESSE     STATUS=OK           448 CALLS     3604 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          13.199        9.7842        .11025E-03   -1.4981    
   3  Prefactor     6.0613        4.5856        .15629E-03   -1.5216    
   4  Prefactor     .10000E-03    107.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.0746        32.857        .14316E-02   -1.5420    
   7  Prefactor     .10002E-03    26.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.5713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    51.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.5659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    38.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.2543        6.8850        .13953E-03   -1.5133    
  13  Prefactor     .10000E-03    4.1591        .17398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .41265        2.2019        .24352E-03   -1.5580    
  15  Prefactor     .10000E-03    17.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10003E-03    276.29        .36474E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     23.284        65.497        .82615E-04   -1.4743    
  18  Prefactor     60.838        46.434        .51436E-04   -1.4146    
  19  norm          4.8480        3.1660        .10480E-03   -1.5268    
  20  norm          .10000E-03    7.0251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.360        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.5069        .18134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     30.052        24.779        .73085E-04   -1.4611    
  24  Prefactor     6.9387        26.589        .15222E-03   -1.5181    
  25  Normalizat    1.0226        .26625        .34203E-03   -.92276    
  26  Prefactor     .81634        .11320        .16956E-03   -.99129    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.8174e-09
Minuit parameter uncertainties:
  1  0.000242697
  2  9.78543
  3  4.58583
  4  0.000785322
  5  6.15824e-05
  6  16.5227
  7  0.00145915
  8  4.78362e-05
  9  3.67166e-05
  10  5.0956e-05
  11  1.24022e-05
  12  6.8857
  13  1.1741e-05
  14  1.90627
  15  0.000169372
  16  0.00588809
  17  65.6999
  18  46.4621
  19  3.16608
  20  6.99837e-06
  21  2.28637e-05
  22  3.63571e-06
  23  24.7876
  24  26.6339
  25  0.266593
  26  0.113229
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  5.096e-05  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.163e-01  1.132e-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:  1.023e+00  2.666e-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.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/479055/likelihoodResults_521596801_521856001_4FGL_J2123.6+0535_daily_bin1089.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) = 7671.27621332
delta logL = -0.000498228608194

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7671.27571515
delta logL = -5.78538674745e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3840       1.0000          .0000       10.000    
     3 'Normalizat'    1.0226       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81635       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=   7671.276     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      208 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1832.1        .90712E-02** at limit **
   2  Index         2.3783        5.5411        .50000        .50912E-05
   3  Normalizat    1.0226        .12209        .77280E-01    .27572E-04
   4  Prefactor     .81634        .54758E-01    .43930E-01    .12973E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.3783
  Normalizat = 1.02263
  Prefactor  = 0.81634
 **********
 **   18 **HESSE 
 **********

 FCN=   7671.276     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    351.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3783        5.4079        .50000       -.55194    
   3  Normalizat    1.0226        .24473        .34203E-03   -.92276    
   4  Prefactor     .81634        .11049        .16956E-03   -.99129    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.95835e-10
Minuit parameter uncertainties:
  1  9.71696e-06
  2  25.9744
  3  0.244995
  4  0.110519
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/479055': 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) = 7671.27571508
delta logL = 1.40953488881e-08

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  9.717e-06  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.378e+00  2.597e+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.163e-01  1.105e-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:  1.023e+00  2.450e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/479055/cmap_HighResolution_521596801_521856001_4FGL_J2123.6+0535_daily_bin1089.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.51e-03', job_status='DONE', photon_flux_upper_limit='7.14e-08', time_completed='2021-09-26 13:10:31.054935', job_id='479055', GAL2='0.82', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1632687031.06', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='1.41e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1089' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:10:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 479055: <4FGL_J2123.6+0535_daily_bin1089> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin1089 320.921 5.592 521596801 521856001 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 :                                   692.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             314.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            890 sec.

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

