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


Performing analysis on: 4FGL_J1223.9+5000_daily_bin615
RA = 185.988, Dec = 50.0089
tmin = 398736001, tmax = 398995201
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='569656', job_status='RUN', time_executed='2021-09-05 11:57:48.595735', time_epoch_executed='1630868268.6' WHERE source_name='4FGL J1223.9+5000' and cadence='daily' and bin_id='615'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/569656

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/569656/ft1_4FGL_J1223.9+5000_daily_bin615.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/569656/ft2_4FGL_J1223.9+5000_daily_bin615.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/569656/ft1_4FGL_J1223.9+5000_daily_bin615.fits outfile=/scratch/kocevski/569656/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin615.fits ra=185.988 dec=50.0089 rad=12.0 tmin=398736001.0 tmax=398995201.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 6.10
user 5.82
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/569656/ft2_4FGL_J1223.9+5000_daily_bin615.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/569656/ft2_4FGL_J1223.9+5000_daily_bin615.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/569656/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin615.fits evtable="EVENTS" outfile="/scratch/kocevski/569656/ft1_filtered_4FGL_J1223.9+5000_daily_bin615.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/569656/ft1_filtered_4FGL_J1223.9+5000_daily_bin615.fits" evtable="EVENTS" scfile=/scratch/kocevski/569656/ft2_4FGL_J1223.9+5000_daily_bin615.fits sctable="SC_DATA" outfile=/scratch/kocevski/569656/ltcube_398736001_398995201_4FGL_J1223.9+5000_daily_bin615.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/569656/ft2_4FGL_J1223.9+5000_daily_bin615.fits
.....................!
real 11.72
user 11.30
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/569656/ft1_filtered_4FGL_J1223.9+5000_daily_bin615.fits evtable="EVENTS" scfile=/scratch/kocevski/569656/ft2_4FGL_J1223.9+5000_daily_bin615.fits sctable="SC_DATA" expcube=/scratch/kocevski/569656/ltcube_398736001_398995201_4FGL_J1223.9+5000_daily_bin615.fits outfile=/scratch/kocevski/569656/expmap_398736001_398995201_4FGL_J1223.9+5000_daily_bin615.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/569656/ltcube_398736001_398995201_4FGL_J1223.9+5000_daily_bin615.fits
.....................!
real 191.56
user 186.22
sys 4.70

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 218 point sources and 0 extended sources

Setting source of interest to:
4FGL J1223.9+5000 @ 185.988 50.0089

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/569656/ft1_filtered_4FGL_J1223.9+5000_daily_bin615.fits scfile=/scratch/kocevski/569656/ft2_4FGL_J1223.9+5000_daily_bin615.fits outfile=/scratch/kocevski/569656/cmap_398736001_398995201_4FGL_J1223.9+5000_daily_bin615.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=185.988 yref=50.0089 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/569656/ft1_filtered_4FGL_J1223.9+5000_daily_bin615.fits scfile=/scratch/kocevski/569656/ft2_4FGL_J1223.9+5000_daily_bin615.fits outfile=/scratch/kocevski/569656/cmap_HighResolution_398736001_398995201_4FGL_J1223.9+5000_daily_bin615.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=185.988 yref=50.0089 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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/569656/ft1_filtered_4FGL_J1223.9+5000_daily_bin615.fits evtable="EVENTS" scfile=/scratch/kocevski/569656/ft2_4FGL_J1223.9+5000_daily_bin615.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/569656/Model_4FGL_J1223.9+5000_daily_bin615.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/569656/ft1_filtered_4FGL_J1223.9+5000_daily_bin615.fits.....................!
real 41.91
user 40.36
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/569656/ft1_filtered_4FGL_J1223.9+5000_daily_bin615.fits', '/scratch/kocevski/569656/ft2_4FGL_J1223.9+5000_daily_bin615.fits', expMap='/scratch/kocevski/569656/expmap_398736001_398995201_4FGL_J1223.9+5000_daily_bin615.fits', expCube='/scratch/kocevski/569656/ltcube_398736001_398995201_4FGL_J1223.9+5000_daily_bin615.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/569656/Model_4FGL_J1223.9+5000_daily_bin615.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1223.9+5000'

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  3.480e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  2.419e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
359         beta:  2.247e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
360           Eb:  6.174e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/569656/ft1_filtered_4FGL_J1223.9+5000_daily_bin615.fits
Spacecraft file(s): /scratch/kocevski/569656/ft2_4FGL_J1223.9+5000_daily_bin615.fits
Exposure map: /scratch/kocevski/569656/expmap_398736001_398995201_4FGL_J1223.9+5000_daily_bin615.fits
Exposure cube: /scratch/kocevski/569656/ltcube_398736001_398995201_4FGL_J1223.9+5000_daily_bin615.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/569656/Model_4FGL_J1223.9+5000_daily_bin615.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) = 4471.9393856

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10032E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .14516E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7495       1.0000         .10000E-03   10000.    
     7 'Prefactor '    171.90       1.0000         .10000E-03   10000.    
     8 'norm      '    5.7438       1.0000         .10000E-03   10000.    
     9 'Prefactor '    42.328       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.1045       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.3127       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.751       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.9135       1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.332       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .12273E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    80.691       1.0000         .10000E-03   10000.    
    25 'Prefactor '    22.571       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .17963E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0585       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1131       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4471.871     FROM MIGRAD    STATUS=CONVERGED    742 CALLS     3768 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.010        .11588E-05** at limit **
   2  norm          .10000E-03    27.652        .10835E-05** at limit **
   3  Prefactor     .10000E-03    2.7530        .30514E-08** at limit **
   4  norm          .10000E-03    1.0901        .29328E-06** at limit **
   5  norm          .10000E-03    29.058        .60648E-08** at limit **
   6  Prefactor     1.7494        5.5309        .92673E-06   -.82359E-04
   7  Prefactor     171.92        82.969        .33299E-05    .20994E-03
   8  norm          5.7435        4.6522        .94715E-06   -.41746E-03
   9  Prefactor     42.329        36.172       -.48887E-06   -.27865E-04
  10  Prefactor     .10000E-03    7.9486       -.36487E-06** at limit **
  11  Prefactor     .10000E-03    16.679        .51012E-07** at limit **
  12  norm          1.1044        2.4366        .30121E-06   -.11309E-03
  13  Prefactor     .10000E-03    27.547        .11279E-05** at limit **
  14  norm          2.3118        11.243        .29594E-06   -.62645E-04
  15  Prefactor     11.755        27.993        .11332E-05   -.58043E-04
  16  Prefactor     .10000E-03    2.5842        .10342E-07** at limit **
  17  norm          6.9133        3.2476        .25133E-07    .80642E-04
  18  Prefactor     24.331        25.807        .90628E-07   -.85508E-05
  19  norm          .10000E-03    .92315        .16811E-08** at limit **
  20  Prefactor     .10000E-03    20.817       -.56586E-06** at limit **
  21  Prefactor     .10000E-03    32.373       -.22140E-05** at limit **
  22  norm          .10000E-03    4.8889        .82912E-08** at limit **
  23  norm          .10000E-03    3.5389        .30574E-07** at limit **
  24  Prefactor     80.687        60.819       -.11205E-06   -.28025E-04
  25  Prefactor     22.564        19.129        .59272E-06    .81830E-04
  26  Prefactor     .10000E-03    155.89       -.38224E-06** at limit **
  27  norm          .10000E-03    1.9310       -.68519E-08** at limit **
  28  Normalizat    1.0584        .21773       -.52383E-06   -.46969E-04
  29  Prefactor     1.1133        .26246       -.90998E-06   -.23191E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.000100001
  Prefactor  = 1.7494
  Prefactor  = 171.924
  norm       = 5.74352
  Prefactor  = 42.3291
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.10439
  Prefactor  = 0.0001
  norm       = 2.31178
  Prefactor  = 11.7548
  Prefactor  = 0.0001
  norm       = 6.91328
  Prefactor  = 24.3312
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 80.6875
  Prefactor  = 22.5636
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.05841
  Prefactor  = 1.11326
 **********
 **   18 **HESSE 
 **********

 FCN=   4471.871     FROM HESSE     STATUS=OK           545 CALLS     4313 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    27.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.7600        .10835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.6768        .13317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    30.297        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.7494        5.4505        .22614E-03   -1.5443    
   7  Prefactor     171.92        87.673        .15387E-03   -1.3078    
   8  norm          5.7435        4.9337        .66760E-03   -1.5229    
   9  Prefactor     42.329        35.357        .61617E-04   -1.4406    
  10  Prefactor     .10000E-03    8.1073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.1044        2.4094        .14646E-03   -1.5498    
  13  Prefactor     .10000E-03    27.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.3118        10.611        .26978E-03   -1.5404    
  15  Prefactor     11.755        27.375        .58432E-03   -1.5022    
  16  Prefactor     .10000E-03    2.5905        .10497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.9133        3.2456        .79996E-04   -1.5182    
  18  Prefactor     24.331        25.819        .81206E-04   -1.4721    
  19  norm          .10000E-03    .92960        .62739E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    20.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    33.328        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.8891        .14441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    7.0653        .23985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     80.687        59.926        .44711E-04   -1.3909    
  25  Prefactor     22.564        19.164        .84311E-04   -1.4758    
  26  Prefactor     .10000E-03    156.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.9335        .90733E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0584        .26003        .24171E-03   -.91099    
  29  Prefactor     1.1133        .31310        .29401E-03   -.89044    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.85292e-10
Minuit parameter uncertainties:
  1  0.000212883
  2  0.000164257
  3  9.0674e-07
  4  7.28037e-05
  5  0.000341734
  6  5.45206
  7  87.74
  8  4.93402
  9  35.3743
  10  4.43954e-05
  11  4.29943e-06
  12  2.40958
  13  0.000169827
  14  9.90849
  15  27.404
  16  2.04173e-06
  17  3.24573
  18  25.8303
  19  7.22864e-07
  20  7.00582e-05
  21  0.000249564
  22  9.08434e-07
  23  4.31169e-05
  24  59.9709
  25  19.1696
  26  5.31763e-05
  27  2.50731e-07
  28  0.260342
  29  0.313619
Done.

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

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  2.312e+00  9.908e+00  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  2.419e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
359         beta:  2.247e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
360           Eb:  6.174e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
693    Prefactor:  1.113e+00  3.136e-01  0.000e+00  1.000e+01 ( 1.000e+00)
694        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
695        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
692   Normalization:  1.058e+00  2.603e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.08
Ra Dec: 185.988 50.009
Photon Flux Upper Limit: 9.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.10e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/569656/likelihoodResults_398736001_398995201_4FGL_J1223.9+5000_daily_bin615.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) = 4471.82339193
delta logL = 0.0471203573379

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4471.82328533
delta logL = 0.0472269536995

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7901       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7725       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0658       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1025       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4471.823     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      285 TOTAL
                     EDM=   .34E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7858        9.8750        .10367E-02   -.91893E-05
   2  alpha         1.7725        1.6436        .41090E-01    .21033E-05
   3  Normalizat    1.0657        .24792        .24096E-03   -.13871E-04
   4  Prefactor     1.1026        .31098        .29520E-03   -.17099E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.78576
  alpha      = 1.77251
  Normalizat = 1.06572
  Prefactor  = 1.1026
 **********
 **   18 **HESSE 
 **********

 FCN=   4471.823     FROM HESSE     STATUS=OK            27 CALLS      312 TOTAL
                     EDM=   .67E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7858        9.8853        .41470E-04   -1.5319    
   2  alpha         1.7725        1.6475        .16436E-02   -.29527    
   3  Normalizat    1.0657        .24810        .96385E-05   -.90860    
   4  Prefactor     1.1026        .31114        .11808E-04   -.89383    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.71677e-12
Minuit parameter uncertainties:
  1  9.88961
  2  1.81737
  3  0.248375
  4  0.311656
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/569656': 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) = 4471.82328522
delta logL = 0.0472270598502

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  3.786e+00  9.890e+00  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  1.773e+00  1.817e+00  0.000e+00  5.000e+00 ( 1.000e+00)
359         beta:  2.247e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
360           Eb:  6.174e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
693    Prefactor:  1.103e+00  3.117e-01  0.000e+00  1.000e+01 ( 1.000e+00)
694        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
695        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
692   Normalization:  1.066e+00  2.484e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
Ra Dec: 185.988 50.009

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/569656/cmap_HighResolution_398736001_398995201_4FGL_J1223.9+5000_daily_bin615.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.10e-05', job_status='DONE', photon_flux_upper_limit='9.93e-08', time_completed='2021-09-05 12:10:45.835292', job_id='569656', GAL2='1.10', fit_tolerance='1e-08', EG2='1.07', EG='1.06', time_epoch_completed='1630869045.84', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='4.72e-02', ts2='0.18', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='615' AND source_name='4FGL J1223.9+5000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:10:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 569656: <4FGL_J1223.9+5000_daily_bin615> in cluster <slac> Done

Job <4FGL_J1223.9+5000_daily_bin615> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 11:55:43 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 11:55:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 11:55:45 2021
Terminated at Sun Sep  5 12:10:46 2021
Results reported at Sun Sep  5 12:10:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_daily_bin615 185.988 50.0089 398736001 398995201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1223.9+5000 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   773.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            903 sec.

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

