/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 149 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 = 7411
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2123.6+0535_daily_bin404
RA = 320.921, Dec = 5.592
tmin = 344044801, tmax = 344304001
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='474861', job_status='RUN', time_executed='2021-09-26 12:43:31.708862', time_epoch_executed='1632685411.71' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='404'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/474861

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/474861/ft1_4FGL_J2123.6+0535_daily_bin404.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/474861/ft2_4FGL_J2123.6+0535_daily_bin404.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/474861/ft1_4FGL_J2123.6+0535_daily_bin404.fits outfile=/scratch/kocevski/474861/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin404.fits ra=320.921 dec=5.592 rad=12.0 tmin=344044801.0 tmax=344304001.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.43
user 3.19
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/474861/ft2_4FGL_J2123.6+0535_daily_bin404.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/474861/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin404.fits evtable="EVENTS" outfile="/scratch/kocevski/474861/ft1_filtered_4FGL_J2123.6+0535_daily_bin404.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.54
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/474861/ft1_filtered_4FGL_J2123.6+0535_daily_bin404.fits" evtable="EVENTS" scfile=/scratch/kocevski/474861/ft2_4FGL_J2123.6+0535_daily_bin404.fits sctable="SC_DATA" outfile=/scratch/kocevski/474861/ltcube_344044801_344304001_4FGL_J2123.6+0535_daily_bin404.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/474861/ft2_4FGL_J2123.6+0535_daily_bin404.fits
.....................!
real 13.57
user 13.12
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/474861/ft1_filtered_4FGL_J2123.6+0535_daily_bin404.fits evtable="EVENTS" scfile=/scratch/kocevski/474861/ft2_4FGL_J2123.6+0535_daily_bin404.fits sctable="SC_DATA" expcube=/scratch/kocevski/474861/ltcube_344044801_344304001_4FGL_J2123.6+0535_daily_bin404.fits outfile=/scratch/kocevski/474861/expmap_344044801_344304001_4FGL_J2123.6+0535_daily_bin404.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/474861/ltcube_344044801_344304001_4FGL_J2123.6+0535_daily_bin404.fits
.....................!
real 191.63
user 185.78
sys 5.31

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/474861/ft1_filtered_4FGL_J2123.6+0535_daily_bin404.fits scfile=/scratch/kocevski/474861/ft2_4FGL_J2123.6+0535_daily_bin404.fits outfile=/scratch/kocevski/474861/cmap_344044801_344304001_4FGL_J2123.6+0535_daily_bin404.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/474861/ft1_filtered_4FGL_J2123.6+0535_daily_bin404.fits scfile=/scratch/kocevski/474861/ft2_4FGL_J2123.6+0535_daily_bin404.fits outfile=/scratch/kocevski/474861/cmap_HighResolution_344044801_344304001_4FGL_J2123.6+0535_daily_bin404.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.58
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.340       1.0000         .10000E-03   10000.    
     2 'norm      '    .55885       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.1218       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10337E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.8179       1.0000         .10000E-03   10000.    
     6 'Prefactor '    65.364       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    40.484       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10920E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.9671       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .33937       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.260       1.0000         .10000E-03   10000.    
    16 'Prefactor '    63.096       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11077E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.3234       1.0000         .10000E-03   10000.    
    20 'norm      '    .10191E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.623       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.7314       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.3397       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .50664       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0092       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=   6655.238     FROM MIGRAD    STATUS=CONVERGED    641 CALLS     3173 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.445        38.295       -.53774E-05    .75911E-04
   2  norm          .44548        55.644        .22830E-04   -.33850E-04
   3  Prefactor     8.1186        6.0558        .20645E-06    .65097E-04
   4  Prefactor     .10000E-03    11.778        .51901E-07** at limit **
   5  Prefactor     6.8138        12.233       -.11105E-07   -.95049E-05
   6  Prefactor     65.354        32.350       -.70672E-06   -.99972E-04
   7  Prefactor     .10000E-03    14.727        .88901E-07** at limit **
   8  Prefactor     40.485        35.171        .38684E-07   -.59418E-04
   9  Prefactor     .10000E-03    41.587        .57779E-06** at limit **
  10  Prefactor     .10000E-03    37.155       -.11344E-05** at limit **
  11  Prefactor     .10000E-03    27.348        .17326E-06** at limit **
  12  Prefactor     4.9656        5.2976        .88793E-07    .51398E-04
  13  Prefactor     .10000E-03    6.2223        .33934E-06** at limit **
  14  Prefactor     .32372        2.2303       -.23402E-05   -.27421E-03
  15  Prefactor     13.360        42.917        .88555E-05    .99038E-04
  16  Prefactor     63.180        60.199        .19208E-05   -.55076E-04
  17  Prefactor     .10000E-03    452.84        .57235E-05** at limit **
  18  Prefactor     .10000E-03    41.916        .47479E-06** at limit **
  19  norm          5.3200        2.5789        .11201E-06   -.13228E-02
  20  norm          .10000E-03    18.127       -.21072E-06** at limit **
  21  Prefactor     11.620        8.3205        .27210E-07   -.99489E-04
  22  Prefactor     .10000E-03    7.0777       -.62865E-07** at limit **
  23  Prefactor     7.7265        15.445        .31471E-06    .28018E-04
  24  Prefactor     4.3284        43.210       -.18668E-06   -.26076E-04
  25  Normalizat    .50673        .29234       -.11615E-05    .43588E-04
  26  Prefactor     1.0094        .11695       -.47136E-06    .28131E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.4453
  norm       = 0.445483
  Prefactor  = 8.11863
  Prefactor  = 0.0001
  Prefactor  = 6.81381
  Prefactor  = 65.3539
  Prefactor  = 0.000100001
  Prefactor  = 40.4846
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.9656
  Prefactor  = 0.0001
  Prefactor  = 0.32372
  Prefactor  = 13.36
  Prefactor  = 63.1802
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 5.32004
  norm       = 0.0001
  Prefactor  = 11.6204
  Prefactor  = 0.0001
  Prefactor  = 7.72646
  Prefactor  = 4.32844
  Normalizat = 0.506731
  Prefactor  = 1.00936
 **********
 **   18 **HESSE 
 **********

 FCN=   6655.238     FROM HESSE     STATUS=OK           458 CALLS     3631 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.445        38.300        .10226E-03   -1.4922    
   2  norm          .44548        60.245        .43584E-02   -1.5574    
   3  Prefactor     8.1186        6.0387        .14068E-03   -1.5138    
   4  Prefactor     .10000E-03    11.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.8138        12.174        .15366E-03   -1.5186    
   6  Prefactor     65.354        32.160        .49639E-04   -1.4089    
   7  Prefactor     .10000E-03    14.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     40.485        35.127        .62999E-04   -1.4435    
   9  Prefactor     .10000E-03    41.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    37.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    27.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.9656        5.2649        .18045E-03   -1.5262    
  13  Prefactor     .10000E-03    6.3924        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .32372        7.4657        .18809E-02   -1.5594    
  15  Prefactor     13.360        44.086        .11000E-03   -1.4977    
  16  Prefactor     63.180        60.512        .50518E-04   -1.4117    
  17  Prefactor     .10000E-03    453.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    41.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.3200        2.5583        .84818E-04   -1.5247    
  20  norm          .10000E-03    18.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.620        8.3052        .11750E-03   -1.5026    
  22  Prefactor     .10000E-03    7.1150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.7265        15.408        .14422E-03   -1.5152    
  24  Prefactor     4.3284        42.810        .19336E-03   -1.5292    
  25  Normalizat    .50673        .30883        .45538E-03   -1.1210    
  26  Prefactor     1.0094        .12922        .15491E-03   -.92418    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.00997e-08
Minuit parameter uncertainties:
  1  38.3609
  2  10.3706
  3  6.03911
  4  2.36778e-06
  5  12.1784
  6  32.1685
  7  0.000192065
  8  35.1447
  9  3.70675e-05
  10  8.06802e-05
  11  4.41896e-05
  12  5.2654
  13  4.28535e-06
  14  3.10917
  15  44.1938
  16  60.5711
  17  0.00112984
  18  5.34008e-05
  19  2.55834
  20  0.000181277
  21  8.30602
  22  5.93526e-06
  23  15.4163
  24  27.2502
  25  0.30988
  26  0.129263
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  8.068e-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:  1.009e+00  1.293e-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:  5.067e-01  3.099e-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: 8.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/474861/likelihoodResults_344044801_344304001_4FGL_J2123.6+0535_daily_bin404.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) = 6655.23820076
delta logL = -0.000126109640405

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6655.23807528
delta logL = -6.35234755464e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10244E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6369       1.0000          .0000       10.000    
     3 'Normalizat'    .50673       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0094       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=   6655.238     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      296 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10349E-03    .40210        .88900E-01** at limit **
   2  Index         2.5445        6.9916        .50000        .12136E-04
   3  Normalizat    .50673        .10272E-02    .45540E-03    .71148E-05
   4  Prefactor     1.0094        .48613E-03    .15491E-03    .19155E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103485
  Index      = 2.54448
  Normalizat = 0.506733
  Prefactor  = 1.00936
 **********
 **   18 **HESSE 
 **********

 FCN=   6655.238     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      327 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10349E-03    56.773        .54389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5445        5.4518        .50000       -.51336    
   3  Normalizat    .50673        .75422E-02    .18216E-04   -1.1210    
   4  Prefactor     1.0094        .35693E-02    .61962E-05   -.92418    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.36387e-09
Minuit parameter uncertainties:
  1  0.0281594
  2  174.271
  3  0.00754224
  4  0.00356934
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/474861': 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) = 6655.238075
delta logL = -3.50680238626e-07

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.035e-04  2.816e-02  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.544e+00  1.743e+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.009e+00  3.569e-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:  5.067e-01  7.542e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/474861/cmap_HighResolution_344044801_344304001_4FGL_J2123.6+0535_daily_bin404.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.89e-03', job_status='DONE', photon_flux_upper_limit='8.92e-08', time_completed='2021-09-26 12:56:41.910540', job_id='474861', GAL2='1.01', fit_tolerance='1e-08', EG2='0.51', EG='0.51', time_epoch_completed='1632686201.91', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='-3.51e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='404' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 12:56:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0195>
Subject: Job 474861: <4FGL_J2123.6+0535_daily_bin404> in cluster <slac> Done

Job <4FGL_J2123.6+0535_daily_bin404> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 26 12:40:25 2021
Job was executed on host(s) <bullet0195>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 12:40: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:40:52 2021
Terminated at Sun Sep 26 12:56:42 2021
Results reported at Sun Sep 26 12:56:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin404 320.921 5.592 344044801 344304001 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 :                                   788.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   950 sec.
    Turnaround time :                            977 sec.

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

