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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin903
RA = 320.921, Dec = 5.592
tmin = 473385601, tmax = 473644801
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='478774', job_status='RUN', time_executed='2021-09-26 12:56:22.457099', time_epoch_executed='1632686182.46' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='903'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/478774

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/478774/ft1_4FGL_J2123.6+0535_daily_bin903.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/478774/ft2_4FGL_J2123.6+0535_daily_bin903.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/478774/ft1_4FGL_J2123.6+0535_daily_bin903.fits outfile=/scratch/kocevski/478774/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin903.fits ra=320.921 dec=5.592 rad=12.0 tmin=473385601.0 tmax=473644801.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.75
user 3.39
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/478774/ft1_filtered_4FGL_J2123.6+0535_daily_bin903.fits evtable="EVENTS" scfile=/scratch/kocevski/478774/ft2_4FGL_J2123.6+0535_daily_bin903.fits sctable="SC_DATA" expcube=/scratch/kocevski/478774/ltcube_473385601_473644801_4FGL_J2123.6+0535_daily_bin903.fits outfile=/scratch/kocevski/478774/expmap_473385601_473644801_4FGL_J2123.6+0535_daily_bin903.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/478774/ltcube_473385601_473644801_4FGL_J2123.6+0535_daily_bin903.fits
.....................!
real 192.27
user 186.71
sys 4.90

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/478774/ft1_filtered_4FGL_J2123.6+0535_daily_bin903.fits scfile=/scratch/kocevski/478774/ft2_4FGL_J2123.6+0535_daily_bin903.fits outfile=/scratch/kocevski/478774/cmap_473385601_473644801_4FGL_J2123.6+0535_daily_bin903.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/478774/ft1_filtered_4FGL_J2123.6+0535_daily_bin903.fits scfile=/scratch/kocevski/478774/ft2_4FGL_J2123.6+0535_daily_bin903.fits outfile=/scratch/kocevski/478774/cmap_HighResolution_473385601_473644801_4FGL_J2123.6+0535_daily_bin903.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/478774/ft1_filtered_4FGL_J2123.6+0535_daily_bin903.fits evtable="EVENTS" scfile=/scratch/kocevski/478774/ft2_4FGL_J2123.6+0535_daily_bin903.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/478774/Model_4FGL_J2123.6+0535_daily_bin903.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/478774/ft1_filtered_4FGL_J2123.6+0535_daily_bin903.fits.....................!
real 67.08
user 65.53
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    21.598       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.7503       1.0000         .10000E-03   10000.    
     6 'Prefactor '    38.168       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.659       1.0000         .10000E-03   10000.    
     9 'Prefactor '    177.98       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    51.580       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .89022       1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.648       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11341E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    45.140       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    57.955       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .47831E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    4.3474       1.0000         .10000E-03   10000.    
    20 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.7176       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.446       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.4728       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .79214       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .91350       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=   6843.184     FROM MIGRAD    STATUS=CONVERGED    616 CALLS     3158 TOTAL
                     EDM=   .18E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.399       -.48597E-07** at limit **
   2  norm          21.598        10.556       -.71372E-07   -.64441E-05
   3  Prefactor     .10000E-03    2.3198       -.28365E-07** at limit **
   4  Prefactor     .10000E-03    18.906       -.41217E-06** at limit **
   5  Prefactor     2.7500        19.135        .33439E-05    .79239E-05
   6  Prefactor     38.169        25.975       -.24034E-06    .35466E-05
   7  Prefactor     .10000E-03    10.434       -.48895E-08** at limit **
   8  Prefactor     22.662        27.195       -.14180E-06    .17056E-05
   9  Prefactor     178.03        80.483       -.24400E-05   -.40163E-05
  10  Prefactor     .10000E-03    16.267       -.23573E-06** at limit **
  11  Prefactor     51.618        54.246       -.15877E-05   -.46921E-05
  12  Prefactor     .89015        6.0066        .36540E-06   -.25213E-04
  13  Prefactor     19.649        9.7762       -.11314E-06    .88325E-05
  14  Prefactor     .10000E-03    1.5921        .15368E-06** at limit **
  15  Prefactor     45.143        39.553        .47288E-06    .32500E-05
  16  Prefactor     .10000E-03    17.904        .54748E-06** at limit **
  17  Prefactor     58.013        83.433       -.46957E-05   -.27143E-05
  18  Prefactor     .10000E-03    283.80       -.20778E-05** at limit **
  19  norm          4.3466        2.7207        .10960E-06    .18577E-04
  20  norm          .10000E-03    6.5005       -.55760E-07** at limit **
  21  Prefactor     2.7171        4.4926        .24831E-07    .16650E-04
  22  Prefactor     10.447        11.391        .17227E-06    .75283E-05
  23  Prefactor     1.4719        56.958       -.11988E-05   -.42407E-05
  24  Prefactor     .10000E-03    26.291        .15284E-07** at limit **
  25  Normalizat    .79217        .27635        .25405E-05    .57958E-05
  26  Prefactor     .91351        .11333       -.64163E-06    .14380E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 21.5978
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.75003
  Prefactor  = 38.1686
  Prefactor  = 0.0001
  Prefactor  = 22.6621
  Prefactor  = 178.035
  Prefactor  = 0.0001
  Prefactor  = 51.6177
  Prefactor  = 0.890151
  Prefactor  = 19.6489
  Prefactor  = 0.0001
  Prefactor  = 45.1431
  Prefactor  = 0.0001
  Prefactor  = 58.0126
  Prefactor  = 0.0001
  norm       = 4.3466
  norm       = 0.0001
  Prefactor  = 2.71713
  Prefactor  = 10.4467
  Prefactor  = 1.47191
  Prefactor  = 0.0001
  Normalizat = 0.792172
  Prefactor  = 0.913508
 **********
 **   18 **HESSE 
 **********

 FCN=   6843.184     FROM HESSE     STATUS=OK           458 CALLS     3616 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          21.598        10.558        .86187E-04   -1.4778    
   3  Prefactor     .10000E-03    2.3355        .12302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    18.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.7500        19.346        .12274E-02   -1.5376    
   6  Prefactor     38.169        25.984        .64876E-04   -1.4472    
   7  Prefactor     .10000E-03    10.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     22.662        27.203        .84147E-04   -1.4756    
   9  Prefactor     178.03        80.419        .15127E-03   -1.3031    
  10  Prefactor     .10000E-03    16.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     51.618        54.261        .55842E-04   -1.4270    
  12  Prefactor     .89015        5.8759        .37340E-03   -1.5519    
  13  Prefactor     19.649        9.6965        .90359E-04   -1.4821    
  14  Prefactor     .10000E-03    1.6135        .10151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     45.143        39.616        .59675E-04   -1.4363    
  16  Prefactor     .10000E-03    17.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     58.013        83.669        .52698E-04   -1.4183    
  18  Prefactor     .10000E-03    296.22        .37038E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.3466        2.7311        .97357E-04   -1.5291    
  20  norm          .10000E-03    6.5065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.7171        4.4683        .21849E-03   -1.5378    
  22  Prefactor     10.447        11.390        .61983E-03   -1.5061    
  23  Prefactor     1.4719        57.759        .35400E-03   -1.5465    
  24  Prefactor     .10000E-03    26.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .79217        .31469        .19743E-02   -1.0036    
  26  Prefactor     .91351        .13187        .16955E-03   -.95671    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.34065e-11
Minuit parameter uncertainties:
  1  1.632e-05
  2  10.5593
  3  1.60788e-06
  4  2.84145e-06
  5  14.5944
  6  25.9917
  7  1.6463e-06
  8  27.2176
  9  80.4687
  10  1.21233e-05
  11  54.3131
  12  4.57442
  13  9.6973
  14  5.71097e-06
  15  39.6391
  16  3.74137e-06
  17  83.8389
  18  0.000757813
  19  2.73122
  20  4.30735e-06
  21  4.46885
  22  11.3922
  23  18.4593
  24  2.17807e-05
  25  0.315414
  26  0.131916
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.212e-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:  9.135e-01  1.319e-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.922e-01  3.154e-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: 9.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/478774/likelihoodResults_473385601_473644801_4FGL_J2123.6+0535_daily_bin903.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) = 6843.18473632
delta logL = -0.00029184496907

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6843.18444485
delta logL = -3.7135941966e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3979       1.0000          .0000       10.000    
     3 'Normalizat'    .79195       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91361       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=   6843.184     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      208 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6734.1        .90712E-02** at limit **
   2  Index         2.4059        7.3985        .50000       -.42577E-05
   3  Normalizat    .79217        .21171        .89156E-01    .34345E-04
   4  Prefactor     .91351        .96355E-01    .45178E-01    .80032E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.40589
  Normalizat = 0.792173
  Prefactor  = 0.913508
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4059        6.1945        .50000       -.54547    
   3  Normalizat    .79217        .27483        .39487E-03   -1.0036    
   4  Prefactor     .91351        .12728        .16955E-03   -.95671    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96903e-11
Minuit parameter uncertainties:
  1  2.59979e-05
  2  4.73499
  3  0.275309
  4  0.127326
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/478774': 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) = 6843.18444446
delta logL = 1.6096237232e-08

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  2.600e-05  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.406e+00  4.735e+00  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.135e-01  1.273e-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.922e-01  2.753e-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/478774/cmap_HighResolution_473385601_473644801_4FGL_J2123.6+0535_daily_bin903.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.96e-03', job_status='DONE', photon_flux_upper_limit='9.02e-08', time_completed='2021-09-26 13:09:49.420607', job_id='478774', GAL2='0.91', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1632686989.42', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.61e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='903' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:09:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 478774: <4FGL_J2123.6+0535_daily_bin903> in cluster <slac> Done

Job <4FGL_J2123.6+0535_daily_bin903> 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) <bullet0128>, 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:09:49 2021
Results reported at Sun Sep 26 13:09:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin903 320.921 5.592 473385601 473644801 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 :                                   804.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             322.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            873 sec.

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

