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


Performing analysis on: 4FGL_J1223.9+5000_daily_bin60
RA = 185.988, Dec = 50.0089
tmin = 254880001, tmax = 255139201
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='563623', job_status='RUN', time_executed='2021-09-05 11:40:55.330350', time_epoch_executed='1630867255.33' WHERE source_name='4FGL J1223.9+5000' and cadence='daily' and bin_id='60'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/563623

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/563623/ft1_4FGL_J1223.9+5000_daily_bin60.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/563623/ft2_4FGL_J1223.9+5000_daily_bin60.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/563623/ft1_4FGL_J1223.9+5000_daily_bin60.fits outfile=/scratch/kocevski/563623/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin60.fits ra=185.988 dec=50.0089 rad=12.0 tmin=254880001.0 tmax=255139201.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 1.46
user 1.01
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/563623/ft2_4FGL_J1223.9+5000_daily_bin60.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/563623/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin60.fits evtable="EVENTS" outfile="/scratch/kocevski/563623/ft1_filtered_4FGL_J1223.9+5000_daily_bin60.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.57
user 0.27
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/563623/ft1_filtered_4FGL_J1223.9+5000_daily_bin60.fits" evtable="EVENTS" scfile=/scratch/kocevski/563623/ft2_4FGL_J1223.9+5000_daily_bin60.fits sctable="SC_DATA" outfile=/scratch/kocevski/563623/ltcube_254880001_255139201_4FGL_J1223.9+5000_daily_bin60.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/563623/ft2_4FGL_J1223.9+5000_daily_bin60.fits
.....................!
real 10.03
user 9.64
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/563623/ft1_filtered_4FGL_J1223.9+5000_daily_bin60.fits evtable="EVENTS" scfile=/scratch/kocevski/563623/ft2_4FGL_J1223.9+5000_daily_bin60.fits sctable="SC_DATA" expcube=/scratch/kocevski/563623/ltcube_254880001_255139201_4FGL_J1223.9+5000_daily_bin60.fits outfile=/scratch/kocevski/563623/expmap_254880001_255139201_4FGL_J1223.9+5000_daily_bin60.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/563623/ltcube_254880001_255139201_4FGL_J1223.9+5000_daily_bin60.fits
.....................!
real 152.05
user 147.87
sys 3.92

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/563623/ft1_filtered_4FGL_J1223.9+5000_daily_bin60.fits scfile=/scratch/kocevski/563623/ft2_4FGL_J1223.9+5000_daily_bin60.fits outfile=/scratch/kocevski/563623/cmap_254880001_255139201_4FGL_J1223.9+5000_daily_bin60.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.49
user 0.29
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/563623/ft1_filtered_4FGL_J1223.9+5000_daily_bin60.fits scfile=/scratch/kocevski/563623/ft2_4FGL_J1223.9+5000_daily_bin60.fits outfile=/scratch/kocevski/563623/cmap_HighResolution_254880001_255139201_4FGL_J1223.9+5000_daily_bin60.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.45
user 0.31
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/563623/ft1_filtered_4FGL_J1223.9+5000_daily_bin60.fits', '/scratch/kocevski/563623/ft2_4FGL_J1223.9+5000_daily_bin60.fits', expMap='/scratch/kocevski/563623/expmap_254880001_255139201_4FGL_J1223.9+5000_daily_bin60.fits', expCube='/scratch/kocevski/563623/ltcube_254880001_255139201_4FGL_J1223.9+5000_daily_bin60.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/563623/Model_4FGL_J1223.9+5000_daily_bin60.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/563623/ft1_filtered_4FGL_J1223.9+5000_daily_bin60.fits
Spacecraft file(s): /scratch/kocevski/563623/ft2_4FGL_J1223.9+5000_daily_bin60.fits
Exposure map: /scratch/kocevski/563623/expmap_254880001_255139201_4FGL_J1223.9+5000_daily_bin60.fits
Exposure cube: /scratch/kocevski/563623/ltcube_254880001_255139201_4FGL_J1223.9+5000_daily_bin60.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/563623/Model_4FGL_J1223.9+5000_daily_bin60.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) = 5700.78139944

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10381E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.5892       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11145E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    69.351       1.0000         .10000E-03   10000.    
     8 'norm      '    .10392E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.597       1.0000         .10000E-03   10000.    
    12 'norm      '    .66537       1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.388       1.0000         .10000E-03   10000.    
    14 'norm      '    6.7225       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.0577       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.478       1.0000         .10000E-03   10000.    
    19 'norm      '    2.2575       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.1558       1.0000         .10000E-03   10000.    
    23 'norm      '    2.5908       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .57497       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .12501E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    16.144       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .87016       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .98401       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=   5700.758     FROM MIGRAD    STATUS=CONVERGED    750 CALLS     3735 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.563        .20970E-05** at limit **
   2  norm          .10000E-03    28.604       -.22975E-05** at limit **
   3  Prefactor     .10000E-03    8.8545       -.47018E-06** at limit **
   4  norm          1.5893        1.6913        .13174E-06   -.82990E-04
   5  norm          .10000E-03    5.0210       -.84970E-06** at limit **
   6  Prefactor     .10001E-03    1.6322       -.58398E-06** at limit **
   7  Prefactor     69.347        58.931       -.10400E-05   -.66885E-04
   8  norm          .10000E-03    4.0515        .11252E-07** at limit **
   9  Prefactor     .10000E-03    8.0577        .64941E-06** at limit **
  10  Prefactor     .10000E-03    3.8100        .53298E-07** at limit **
  11  Prefactor     19.577        21.430        .15323E-05    .28792E-03
  12  norm          .66374        1.0174       -.61996E-08   -.46334E-04
  13  Prefactor     19.504        36.992        .36830E-05    .20868E-03
  14  norm          6.7208        5.7218        .14469E-05   -.13131E-02
  15  Prefactor     .10000E-03    11.477       -.13786E-06** at limit **
  16  Prefactor     .10000E-03    5.4069        .14319E-05** at limit **
  17  norm          6.0588        2.5933        .22854E-08   -.26625E-03
  18  Prefactor     16.481        20.784       -.89536E-06   -.13418E-03
  19  norm          2.2575        1.7644        .54122E-08   -.39528E-04
  20  Prefactor     .10000E-03    33.648        .26356E-05** at limit **
  21  Prefactor     .10000E-03    2.5676        .66288E-08** at limit **
  22  norm          5.1550        8.4111        .21290E-06    .55857E-05
  23  norm          2.5976        3.8292        .10126E-06   -.34468E-03
  24  Prefactor     .47758        29.935        .19010E-05   -.16333E-03
  25  Prefactor     .10000E-03    4.7106        .39783E-06** at limit **
  26  Prefactor     .10000E-03    32.368       -.25723E-05** at limit **
  27  norm          16.148        5.4544       -.19041E-07   -.21287E-03
  28  Normalizat    .87010        .15684       -.12503E-06    .32396E-04
  29  Prefactor     .98406        .19229       -.39951E-06    .24826E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 0.000100002
  Prefactor  = 0.0001
  norm       = 1.58934
  norm       = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 69.3475
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.5767
  norm       = 0.663737
  Prefactor  = 19.5044
  norm       = 6.72078
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.05881
  Prefactor  = 16.4806
  norm       = 2.25752
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 5.15499
  norm       = 2.59756
  Prefactor  = 0.477581
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 16.148
  Normalizat = 0.870104
  Prefactor  = 0.984058
 **********
 **   18 **HESSE 
 **********

 FCN=   5700.758     FROM HESSE     STATUS=OK           553 CALLS     4288 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    28.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.1730        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.5893        1.6728        .88497E-04   -1.5456    
   5  norm          .10000E-03    5.0745        .16573E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    6.0908        .17972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     69.347        58.986        .48201E-04   -1.4041    
   8  norm          .10000E-03    4.1346        .14833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.1003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.8251        .14384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     19.577        21.592        .90475E-04   -1.4823    
  12  norm          .66374        .85234        .91400E-03   -1.5545    
  13  Prefactor     19.504        37.650        .90963E-04   -1.4824    
  14  norm          6.7208        7.0695        .77379E-03   -1.5189    
  15  Prefactor     .10000E-03    11.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.6737        .34353E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.0588        2.5908        .76885E-04   -1.5216    
  18  Prefactor     16.481        20.832        .98665E-04   -1.4896    
  19  norm          2.2575        1.7674        .85968E-04   -1.5407    
  20  Prefactor     .10000E-03    34.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.5710        .11814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.1550        8.4047        .17705E-03   -1.5254    
  23  norm          2.5976        3.8185        .16635E-03   -1.5386    
  24  Prefactor     .47758        38.635        .11115       -1.5570    
  25  Prefactor     .10000E-03    4.7243        .16018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    32.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          16.148        5.4584        .98178E-04   -1.4904    
  28  Normalizat    .87010        .18175        .22236E-03   -.97519    
  29  Prefactor     .98406        .22436        .26418E-03   -.93263    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.18207e-09
Minuit parameter uncertainties:
  1  0.000415613
  2  0.000460151
  3  5.08273e-05
  4  1.67282
  5  6.76247e-05
  6  0.000366618
  7  59.0355
  8  1.80916e-05
  9  7.80809e-05
  10  1.34617e-05
  11  21.6008
  12  0.852357
  13  37.6955
  14  7.07037
  15  5.22205e-06
  16  0.000106281
  17  2.59089
  18  20.8408
  19  1.76744
  20  0.00057447
  21  1.36738e-07
  22  8.40663
  23  3.81882
  24  8.59583
  25  3.20896e-05
  26  0.000586348
  27  5.45854
  28  0.181874
  29  0.224573
Done.

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

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  6.721e+00  7.070e+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:  9.841e-01  2.246e-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:  8.701e-01  1.819e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.22
Ra Dec: 185.988 50.009
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 2.70e-08 +/- 2.84e-08
Energy Flux (Fixed Index): 8.43e-06 +/- 8.87e-06

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

Saving results to:
/scratch/kocevski/563623/likelihoodResults_254880001_255139201_4FGL_J1223.9+5000_daily_bin60.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) = 5700.73319571
delta logL = 0.0243646955878

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5700.72790793
delta logL = 0.0296524692958

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.9832       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7135       1.0000          .0000       5.0000    
     3 'Normalizat'    .86102       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99155       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.

 FCN=   5700.728     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      232 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.9860        179.29        .41039E-02    .28883E-03
   2  alpha         2.7154        2.6062        .41343        .33833E-04
   3  Normalizat    .86096        .62840E-01    .44401E-01    .11108E-04
   4  Prefactor     .99177        .67089E-01    .46161E-01    .85050E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.98602
  alpha      = 2.71545
  Normalizat = 0.860965
  Prefactor  = 0.991771
 **********
 **   18 **HESSE 
 **********

 FCN=   5700.728     FROM HESSE     STATUS=OK            33 CALLS      265 TOTAL
                     EDM=   .90E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.9860        8.1141        .16416E-03   -1.5219    
   2  alpha         2.7154        1.2951        .22212E-01    .86286E-01
   3  Normalizat    .86096        .18260        .22340E-03   -.97846    
   4  Prefactor     .99177        .22685        .26328E-03   -.93004    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.97274e-12
Minuit parameter uncertainties:
  1  8.11556
  2  1.36191
  3  0.182734
  4  0.227073
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/563623': 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) = 5700.72790342
delta logL = 0.0296569786087

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  5.986e+00  8.116e+00  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  2.715e+00  1.362e+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:  9.918e-01  2.271e-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:  8.610e-01  1.827e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.27
Ra Dec: 185.988 50.009
Photon Index (Free Index): 2.72 +/- 1.36
Photon Flux (Free Index): 3.30e-08 +/- 3.89e-08
Energy Flux (Free Index): 8.46e-06 +/- 8.60e-06

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/563623/cmap_HighResolution_254880001_255139201_4FGL_J1223.9+5000_daily_bin60.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.80e-05', comment='SUCCESS', photon_flux='2.70e-08', energy_flux2='8.46e-06', photon_flux_error='2.84e-08', dlogl='2.97e-02', energy_flux='8.43e-06', photon_flux2='3.30e-08', job_status='DONE', time_completed='2021-09-05 11:52:37.908495', photon_index_error2='1.36', photon_index2='2.72', ts='1.22', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='8.96e-08', energy_flux_error2='8.60e-06', EG='0.87', time_epoch_completed='1630867957.91', return_code='0', job_id='563623', GAL2='0.99', EG2='0.86', return_code2='0', energy_flux_error='8.87e-06', photon_flux_error2='3.89e-08', ts2='1.27', photon_index='2.42' WHERE bin_id='60' AND source_name='4FGL J1223.9+5000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:52:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 563623: <4FGL_J1223.9+5000_daily_bin60> in cluster <slac> Done

Job <4FGL_J1223.9+5000_daily_bin60> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 11:40:39 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 11:40:40 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:40:40 2021
Terminated at Sun Sep  5 11:52:39 2021
Results reported at Sun Sep  5 11:52:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_daily_bin60 185.988 50.0089 254880001 255139201 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 :                                   697.35 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             380.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   719 sec.
    Turnaround time :                            720 sec.

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

