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


Performing analysis on: 4FGL_J2123.6+0535_daily_bin440
RA = 320.921, Dec = 5.592
tmin = 353376001, tmax = 353635201
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='474918', job_status='RUN', time_executed='2021-09-26 12:44:11.483009', time_epoch_executed='1632685451.48' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='440'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/474918

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/474918/ft1_4FGL_J2123.6+0535_daily_bin440.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/474918/ft2_4FGL_J2123.6+0535_daily_bin440.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/474918/ft1_4FGL_J2123.6+0535_daily_bin440.fits outfile=/scratch/kocevski/474918/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin440.fits ra=320.921 dec=5.592 rad=12.0 tmin=353376001.0 tmax=353635201.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 2.91
user 2.67
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/474918/ft1_filtered_4FGL_J2123.6+0535_daily_bin440.fits evtable="EVENTS" scfile=/scratch/kocevski/474918/ft2_4FGL_J2123.6+0535_daily_bin440.fits sctable="SC_DATA" expcube=/scratch/kocevski/474918/ltcube_353376001_353635201_4FGL_J2123.6+0535_daily_bin440.fits outfile=/scratch/kocevski/474918/expmap_353376001_353635201_4FGL_J2123.6+0535_daily_bin440.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/474918/ltcube_353376001_353635201_4FGL_J2123.6+0535_daily_bin440.fits
.....................!
real 157.32
user 151.96
sys 3.91

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/474918/ft1_filtered_4FGL_J2123.6+0535_daily_bin440.fits scfile=/scratch/kocevski/474918/ft2_4FGL_J2123.6+0535_daily_bin440.fits outfile=/scratch/kocevski/474918/cmap_353376001_353635201_4FGL_J2123.6+0535_daily_bin440.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.49
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/474918/ft1_filtered_4FGL_J2123.6+0535_daily_bin440.fits scfile=/scratch/kocevski/474918/ft2_4FGL_J2123.6+0535_daily_bin440.fits outfile=/scratch/kocevski/474918/cmap_HighResolution_353376001_353635201_4FGL_J2123.6+0535_daily_bin440.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.32
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.7963       1.0000         .10000E-03   10000.    
     2 'norm      '    15.218       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    34.851       1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.362       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.4072       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12412E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.833       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11135E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.2684       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.6294       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10382E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11059E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10292E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.9944       1.0000         .10000E-03   10000.    
    20 'norm      '    .10462E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.0992       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.7964       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.2735       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .98782       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .89359       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=   7037.278     FROM MIGRAD    STATUS=CONVERGED    625 CALLS     3151 TOTAL
                     EDM=   .23E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6402        56.062        .41345E-05   -.17577E-05
   2  norm          15.219        9.1412       -.13013E-06   -.30260E-04
   3  Prefactor     .10000E-03    2.6308       -.23928E-07** at limit **
   4  Prefactor     34.937        41.729        .80224E-06    .10521E-05
   5  Prefactor     18.362        16.735        .31543E-06    .20531E-04
   6  Prefactor     .10000E-03    12.714        .10272E-05** at limit **
   7  Prefactor     9.3890        22.078       -.18811E-05   -.64287E-05
   8  Prefactor     .10000E-03    49.215       -.93889E-06** at limit **
   9  Prefactor     10.770        36.944       -.20662E-05   -.17737E-06
  10  Prefactor     .10000E-03    11.958        .93377E-07** at limit **
  11  Prefactor     .10000E-03    42.028        .22806E-05** at limit **
  12  Prefactor     4.2674        6.5141        .31189E-05   -.19455E-04
  13  Prefactor     .10000E-03    3.6287        .54371E-07** at limit **
  14  Prefactor     4.6297        2.9936        .63334E-07   -.17338E-03
  15  Prefactor     .10000E-03    17.635       -.37781E-06** at limit **
  16  Prefactor     .10000E-03    22.127        .81974E-06** at limit **
  17  Prefactor     .10000E-03    31.110       -.14980E-05** at limit **
  18  Prefactor     .10000E-03    10.975        .13091E-06** at limit **
  19  norm          3.9941        2.4882        .15930E-07    .82595E-04
  20  norm          .10000E-03    8.5331       -.29496E-07** at limit **
  21  Prefactor     4.0939        4.7411        .82790E-07    .25602E-05
  22  Prefactor     7.7849        9.2823        .42341E-06   -.19248E-06
  23  Prefactor     5.2749        17.917        .54286E-06    .18253E-05
  24  Prefactor     .10000E-03    11.647       -.30548E-06** at limit **
  25  Normalizat    .98814        .24131       -.16789E-05   -.10741E-05
  26  Prefactor     .89348        .10450        .12484E-06   -.72284E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.64021
  norm       = 15.2188
  Prefactor  = 0.0001
  Prefactor  = 34.937
  Prefactor  = 18.3618
  Prefactor  = 0.0001
  Prefactor  = 9.38902
  Prefactor  = 0.0001
  Prefactor  = 10.7696
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.26742
  Prefactor  = 0.0001
  Prefactor  = 4.62972
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.99408
  norm       = 0.0001
  Prefactor  = 4.09394
  Prefactor  = 7.78492
  Prefactor  = 5.27487
  Prefactor  = 0.0001
  Normalizat = 0.988143
  Prefactor  = 0.893482
 **********
 **   18 **HESSE 
 **********

 FCN=   7037.278     FROM HESSE     STATUS=OK           456 CALLS     3607 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6402        56.043        .13515E-03   -1.5120    
   2  norm          15.219        9.1302        .10267E-03   -1.4928    
   3  Prefactor     .10000E-03    2.6536        .13284E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     34.937        41.750        .67882E-04   -1.4525    
   5  Prefactor     18.362        16.742        .46734E-03   -1.4851    
   6  Prefactor     .10000E-03    12.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.3890        22.111        .13066E-03   -1.5095    
   8  Prefactor     .10000E-03    49.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.770        36.925        .12173E-03   -1.5052    
  10  Prefactor     .10000E-03    12.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    42.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.2674        6.5212        .97508E-03   -1.5295    
  13  Prefactor     .10000E-03    3.6523        .15607E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.6297        3.0018        .11016E-03   -1.5278    
  15  Prefactor     .10000E-03    17.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    22.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    31.102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.9941        2.4915        .98853E-04   -1.5308    
  20  norm          .10000E-03    8.5518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.0939        4.7340        .19108E-03   -1.5303    
  22  Prefactor     7.7849        9.2818        .71805E-03   -1.5150    
  23  Prefactor     5.2749        17.941        .17503E-03   -1.5249    
  24  Prefactor     .10000E-03    11.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .98814        .28663        .35149E-03   -.93429    
  26  Prefactor     .89348        .12569        .16897E-03   -.96369    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77205e-10
Minuit parameter uncertainties:
  1  44.0704
  2  9.13102
  3  2.13069e-06
  4  41.7854
  5  16.746
  6  0.000128466
  7  22.1306
  8  7.11785e-05
  9  37.0036
  10  1.08285e-05
  11  2.26819e-05
  12  6.52226
  13  2.84561e-06
  14  3.00186
  15  1.12704e-05
  16  1.22199e-05
  17  1.47891e-05
  18  1.10214e-06
  19  2.49156
  20  2.46919e-06
  21  4.7344
  22  9.28348
  23  17.9596
  24  1.91704e-07
  25  0.287078
  26  0.125729
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.083e-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.935e-01  1.257e-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:  9.881e-01  2.871e-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.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/474918/likelihoodResults_353376001_353635201_4FGL_J2123.6+0535_daily_bin440.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) = 7037.2782984
delta logL = -0.00039681765702

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7037.27790581
delta logL = -4.22846733272e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3776       1.0000          .0000       10.000    
     3 'Normalizat'    .98770       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89352       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=   7037.278     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      244 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10119E-03    263.61        .18142E-02** at limit **
   2  Index         2.2996        5.2043        .50000        .59221E-05
   3  Normalizat    .98814        .26817E-01    .35149E-03    .11806E-04
   4  Prefactor     .89348        .12407E-01    .16897E-03    .23279E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101195
  Index      = 2.29957
  Normalizat = 0.988143
  Prefactor  = 0.893483
 **********
 **   18 **HESSE 
 **********

 FCN=   7037.278     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10119E-03    1042.0        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2996        8.6686        .50000       -.57054    
   3  Normalizat    .98814        .59118E-01    .14060E-04   -.93429    
   4  Prefactor     .89348        .27344E-01    .67590E-05   -.96369    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.9855e-08
Minuit parameter uncertainties:
  1  0.0718514
  2  1972.37
  3  0.0591218
  4  0.027344
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/474918': 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) = 7037.27790148
delta logL = 1.0672283679e-07

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.012e-04  7.185e-02  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.300e+00  1.972e+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:  8.935e-01  2.734e-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:  9.881e-01  5.912e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/474918/cmap_HighResolution_353376001_353635201_4FGL_J2123.6+0535_daily_bin440.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.80e-03', job_status='DONE', photon_flux_upper_limit='7.51e-08', time_completed='2021-09-26 12:55:31.734621', job_id='474918', GAL2='0.89', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1632686131.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='1.07e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='440' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 12:55:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 474918: <4FGL_J2123.6+0535_daily_bin440> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin440 320.921 5.592 353376001 353635201 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 :                                   673.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   841 sec.
    Turnaround time :                            902 sec.

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

