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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin918
RA = 320.921, Dec = 5.592
tmin = 477273601, tmax = 477532801
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='478795', job_status='RUN', time_executed='2021-09-26 12:57:59.960849', time_epoch_executed='1632686279.96' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='918'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/478795

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/478795/ft1_4FGL_J2123.6+0535_daily_bin918.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/478795/ft2_4FGL_J2123.6+0535_daily_bin918.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/478795/ft1_4FGL_J2123.6+0535_daily_bin918.fits outfile=/scratch/kocevski/478795/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin918.fits ra=320.921 dec=5.592 rad=12.0 tmin=477273601.0 tmax=477532801.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.58
user 3.36
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/478795/ft2_4FGL_J2123.6+0535_daily_bin918.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/478795/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin918.fits evtable="EVENTS" outfile="/scratch/kocevski/478795/ft1_filtered_4FGL_J2123.6+0535_daily_bin918.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/478795/ft1_filtered_4FGL_J2123.6+0535_daily_bin918.fits" evtable="EVENTS" scfile=/scratch/kocevski/478795/ft2_4FGL_J2123.6+0535_daily_bin918.fits sctable="SC_DATA" outfile=/scratch/kocevski/478795/ltcube_477273601_477532801_4FGL_J2123.6+0535_daily_bin918.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/478795/ft2_4FGL_J2123.6+0535_daily_bin918.fits
.....................!
real 15.59
user 15.07
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/478795/ft1_filtered_4FGL_J2123.6+0535_daily_bin918.fits evtable="EVENTS" scfile=/scratch/kocevski/478795/ft2_4FGL_J2123.6+0535_daily_bin918.fits sctable="SC_DATA" expcube=/scratch/kocevski/478795/ltcube_477273601_477532801_4FGL_J2123.6+0535_daily_bin918.fits outfile=/scratch/kocevski/478795/expmap_477273601_477532801_4FGL_J2123.6+0535_daily_bin918.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/478795/ltcube_477273601_477532801_4FGL_J2123.6+0535_daily_bin918.fits
.....................!
real 191.40
user 186.20
sys 4.66

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/478795/ft1_filtered_4FGL_J2123.6+0535_daily_bin918.fits scfile=/scratch/kocevski/478795/ft2_4FGL_J2123.6+0535_daily_bin918.fits outfile=/scratch/kocevski/478795/cmap_477273601_477532801_4FGL_J2123.6+0535_daily_bin918.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/478795/ft1_filtered_4FGL_J2123.6+0535_daily_bin918.fits scfile=/scratch/kocevski/478795/ft2_4FGL_J2123.6+0535_daily_bin918.fits outfile=/scratch/kocevski/478795/cmap_HighResolution_477273601_477532801_4FGL_J2123.6+0535_daily_bin918.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.353       1.0000         .10000E-03   10000.    
     2 'norm      '    1.4560       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.6899       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.767       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10707E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.9546       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.6666       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10268E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.896       1.0000         .10000E-03   10000.    
    16 'Prefactor '    48.221       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.015       1.0000         .10000E-03   10000.    
    19 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.870       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .89570       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0148       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=   6409.407     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     3011 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.354        38.477       -.24340E-05   -.66852E-05
   2  norm          1.4583        15.165        .15125E-04   -.10633E-03
   3  Prefactor     9.6902        7.0104        .19640E-06   -.62839E-04
   4  Prefactor     .10000E-03    22.772        .41331E-06** at limit **
   5  Prefactor     .10000E-03    18.365        .42504E-06** at limit **
   6  Prefactor     .10000E-03    14.959       -.15355E-06** at limit **
   7  Prefactor     .10000E-03    27.693       -.50927E-06** at limit **
   8  Prefactor     12.765        25.829       -.45480E-06   -.12989E-03
   9  Prefactor     .10000E-03    23.073        .22205E-06** at limit **
  10  Prefactor     .10000E-03    41.228        .71778E-06** at limit **
  11  Prefactor     .10000E-03    42.279       -.18916E-06** at limit **
  12  Prefactor     1.9548        6.0269        .10812E-05   -.56641E-04
  13  Prefactor     6.6669        10.235       -.19021E-06   -.34018E-03
  14  Prefactor     .10000E-03    1.6670       -.78824E-06** at limit **
  15  Prefactor     13.890        23.723        .50789E-06   -.43844E-04
  16  Prefactor     48.201        48.244        .14537E-05   -.60996E-04
  17  Prefactor     .10000E-03    28.733       -.12886E-05** at limit **
  18  Prefactor     22.010        27.003        .43762E-06   -.30090E-04
  19  norm          .10000E-03    .86718        .29275E-07** at limit **
  20  norm          .10000E-03    7.7500       -.82908E-07** at limit **
  21  Prefactor     .10000E-03    2.1483       -.36847E-07** at limit **
  22  Prefactor     23.869        15.521        .21149E-06   -.36386E-04
  23  Prefactor     .10000E-03    7.8538        .18311E-06** at limit **
  24  Prefactor     .10000E-03    23.779        .10521E-06** at limit **
  25  Normalizat    .89620        .25288       -.22046E-06   -.26260E-03
  26  Prefactor     1.0145        .11452       -.14092E-05   -.81161E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.3543
  norm       = 1.45834
  Prefactor  = 9.69021
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 12.7655
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 1.95479
  Prefactor  = 6.66687
  Prefactor  = 0.000100001
  Prefactor  = 13.8897
  Prefactor  = 48.2008
  Prefactor  = 0.0001
  Prefactor  = 22.0105
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.8687
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.896204
  Prefactor  = 1.01451
 **********
 **   18 **HESSE 
 **********

 FCN=   6409.407     FROM HESSE     STATUS=OK           448 CALLS     3459 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.354        38.565        .63894E-04   -1.4452    
   2  norm          1.4583        15.294        .17840E-02   -1.5466    
   3  Prefactor     9.6902        7.0098        .12873E-03   -1.5085    
   4  Prefactor     .10000E-03    22.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    27.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.765        25.833        .11210E-03   -1.4993    
   9  Prefactor     .10000E-03    23.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    41.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    42.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.9548        5.9609        .29678E-03   -1.5428    
  13  Prefactor     6.6669        10.151        .15541E-03   -1.5192    
  14  Prefactor     .10000E-03    1.7477        .20284E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.890        23.738        .10745E-03   -1.4962    
  16  Prefactor     48.201        48.302        .57745E-04   -1.4318    
  17  Prefactor     .10000E-03    28.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     22.010        27.030        .85367E-04   -1.4769    
  19  norm          .10000E-03    .87591        .72744E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    7.7659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.1500        .11459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     23.869        15.527        .81988E-04   -1.4730    
  23  Prefactor     .10000E-03    7.8636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    23.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .89620        .29708        .37376E-03   -.96594    
  26  Prefactor     1.0145        .13556        .16607E-03   -.92247    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09668e-09
Minuit parameter uncertainties:
  1  38.5897
  2  9.44824
  3  7.01044
  4  1.24583e-05
  5  0.000300279
  6  0.000136284
  7  0.000330417
  8  25.8552
  9  1.1554e-05
  10  8.3884e-06
  11  0.000600816
  12  5.96269
  13  10.1532
  14  7.05649e-05
  15  23.7545
  16  48.3417
  17  0.00011579
  18  27.0454
  19  2.15459e-06
  20  1.26769e-05
  21  3.69472e-06
  22  15.5294
  23  4.47056e-06
  24  5.37748e-05
  25  0.297622
  26  0.135605
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  8.388e-06  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.390e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  1.027e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  1.015e+00  1.356e-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:  8.962e-01  2.976e-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.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/478795/likelihoodResults_477273601_477532801_4FGL_J2123.6+0535_daily_bin918.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) = 6409.40668589
delta logL = -0.000114279677291

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6409.40657189
delta logL = -2.84872839984e-07

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 'Index     '    2.8640       1.0000          .0000       10.000    
     3 'Normalizat'    .89620       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0145       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=   6409.407     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      288 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10318E-03    113.26        .36285E-02** at limit **
   2  Index         2.7569        5.1262        .50000        .46024E-05
   3  Normalizat    .89620        .10683E-01    .37375E-03    .44014E-04
   4  Prefactor     1.0145        .50569E-02    .16607E-03    .74850E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103184
  Index      = 2.75689
  Normalizat = 0.896203
  Prefactor  = 1.01451
 **********
 **   18 **HESSE 
 **********

 FCN=   6409.407     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      317 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10318E-03    1073.3        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7569        6.3446        .50000       -.46522    
   3  Normalizat    .89620        .34391E-01    .14950E-04   -.96594    
   4  Prefactor     1.0145        .16273E-01    .33215E-04   -.92247    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.68087e-09
Minuit parameter uncertainties:
  1  0.119118
  2  1577.99
  3  0.0343916
  4  0.0162735
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/478795': 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) = 6409.40657181
delta logL = -2.01310285775e-07

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.032e-04  1.191e-01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.757e+00  1.578e+03  0.000e+00  1.000e+01 (-1.000e+00)
315        Scale:  1.027e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  1.015e+00  1.627e-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:  8.962e-01  3.439e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 320.921 5.592

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/478795/cmap_HighResolution_477273601_477532801_4FGL_J2123.6+0535_daily_bin918.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.37e-03', job_status='DONE', photon_flux_upper_limit='1.08e-07', time_completed='2021-09-26 13:10:53.695563', job_id='478795', GAL2='1.01', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1632687053.7', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='-2.01e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='918' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:10:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 478795: <4FGL_J2123.6+0535_daily_bin918> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin918 320.921 5.592 477273601 477532801 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 :                                   771.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             322.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            936 sec.

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

