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


Performing analysis on: 4FGL_J1223.9+5000_daily_bin1140
RA = 185.988, Dec = 50.0089
tmin = 534816001, tmax = 535075201
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='574048', job_status='RUN', time_executed='2021-09-05 12:08:00.235895', time_epoch_executed='1630868880.24' WHERE source_name='4FGL J1223.9+5000' and cadence='daily' and bin_id='1140'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574048

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574048/ft1_4FGL_J1223.9+5000_daily_bin1140.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574048/ft2_4FGL_J1223.9+5000_daily_bin1140.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574048/ft1_4FGL_J1223.9+5000_daily_bin1140.fits outfile=/scratch/kocevski/574048/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1140.fits ra=185.988 dec=50.0089 rad=12.0 tmin=534816001.0 tmax=535075201.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.60
user 3.37
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/574048/ft2_4FGL_J1223.9+5000_daily_bin1140.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/574048/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1140.fits evtable="EVENTS" outfile="/scratch/kocevski/574048/ft1_filtered_4FGL_J1223.9+5000_daily_bin1140.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.46
user 0.32
sys 0.13

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574048/ft1_filtered_4FGL_J1223.9+5000_daily_bin1140.fits evtable="EVENTS" scfile=/scratch/kocevski/574048/ft2_4FGL_J1223.9+5000_daily_bin1140.fits sctable="SC_DATA" expcube=/scratch/kocevski/574048/ltcube_534816001_535075201_4FGL_J1223.9+5000_daily_bin1140.fits outfile=/scratch/kocevski/574048/expmap_534816001_535075201_4FGL_J1223.9+5000_daily_bin1140.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/574048/ltcube_534816001_535075201_4FGL_J1223.9+5000_daily_bin1140.fits
.....................!
real 189.89
user 185.23
sys 4.29

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/574048/ft1_filtered_4FGL_J1223.9+5000_daily_bin1140.fits scfile=/scratch/kocevski/574048/ft2_4FGL_J1223.9+5000_daily_bin1140.fits outfile=/scratch/kocevski/574048/cmap_534816001_535075201_4FGL_J1223.9+5000_daily_bin1140.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/574048/ft1_filtered_4FGL_J1223.9+5000_daily_bin1140.fits scfile=/scratch/kocevski/574048/ft2_4FGL_J1223.9+5000_daily_bin1140.fits outfile=/scratch/kocevski/574048/cmap_HighResolution_534816001_535075201_4FGL_J1223.9+5000_daily_bin1140.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.799       1.0000         .10000E-03   10000.    
     2 'norm      '    9.6318       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.8520       1.0000         .10000E-03   10000.    
     5 'norm      '    3.2306       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.3102       1.0000         .10000E-03   10000.    
    12 'norm      '    3.3494       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    15.398       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.8037       1.0000         .10000E-03   10000.    
    17 'norm      '    2.2756       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.3914       1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.015       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.2747       1.0000         .10000E-03   10000.    
    22 'norm      '    11.090       1.0000         .10000E-03   10000.    
    23 'norm      '    1.8879       1.0000         .10000E-03   10000.    
    24 'Prefactor '    68.939       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.4938       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10351E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    8.8194       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0254       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0380       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=   5574.540     FROM MIGRAD    STATUS=CONVERGED    762 CALLS     3705 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.377        81.567        .31292E-05    .54333E-05
   2  norm          9.6411        67.592       -.40171E-06    .12061E-05
   3  Prefactor     .10000E-03    1.9811       -.10124E-06** at limit **
   4  norm          2.8500        1.9970        .10615E-06   -.11399E-03
   5  norm          3.2283        8.3515        .34504E-06    .92573E-05
   6  Prefactor     .10000E-03    .99922       -.15863E-06** at limit **
   7  Prefactor     .10000E-03    52.835       -.41786E-07** at limit **
   8  norm          .10000E-03    1.8694       -.13562E-06** at limit **
   9  Prefactor     .10000E-03    7.3325       -.21262E-06** at limit **
  10  Prefactor     .10000E-03    2.3926       -.70708E-07** at limit **
  11  Prefactor     4.3091        13.107        .20049E-05    .53328E-05
  12  norm          3.3493        2.3083        .12755E-06    .56046E-04
  13  Prefactor     .10000E-03    32.856       -.16221E-06** at limit **
  14  norm          15.399        8.6928        .28760E-06    .70007E-04
  15  Prefactor     .10000E-03    7.1757       -.12903E-06** at limit **
  16  Prefactor     3.8041        4.5640       -.48116E-06    .74671E-05
  17  norm          2.2759        1.9293       -.49783E-06   -.77504E-05
  18  Prefactor     .10000E-03    4.3072        .44085E-07** at limit **
  19  norm          1.3911        2.2760        .13207E-07   -.76700E-04
  20  Prefactor     18.998        40.055       -.36098E-05   -.91660E-05
  21  Prefactor     1.2706        19.805        .23690E-04   -.73119E-04
  22  norm          11.089        14.899        .65615E-06    .69786E-04
  23  norm          1.8884        3.7019        .11542E-05    .67494E-03
  24  Prefactor     68.922        41.808       -.18908E-05   -.62464E-04
  25  Prefactor     1.4895        47.366        .12917E-05    .86324E-05
  26  Prefactor     .10002E-03    44.296        .41116E-05** at limit **
  27  norm          8.8161        5.5584        .49629E-07    .33835E-04
  28  Normalizat    1.0254        .17651       -.27688E-05    .47894E-04
  29  Prefactor     1.0380        .21723        .14318E-05    .85586E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.3767
  norm       = 9.64112
  Prefactor  = 0.0001
  norm       = 2.84995
  norm       = 3.22834
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.30907
  norm       = 3.3493
  Prefactor  = 0.0001
  norm       = 15.3991
  Prefactor  = 0.0001
  Prefactor  = 3.80406
  norm       = 2.27588
  Prefactor  = 0.0001
  norm       = 1.39114
  Prefactor  = 18.9975
  Prefactor  = 1.27056
  norm       = 11.0893
  norm       = 1.8884
  Prefactor  = 68.9223
  Prefactor  = 1.48951
  Prefactor  = 0.000100023
  norm       = 8.81613
  Normalizat = 1.02544
  Prefactor  = 1.03795
 **********
 **   18 **HESSE 
 **********

 FCN=   5574.540     FROM HESSE     STATUS=OK           557 CALLS     4262 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.377        81.595        .78868E-04   -1.4700    
   2  norm          9.6411        67.656        .12912E-03   -1.5087    
   3  Prefactor     .10000E-03    1.9854        .10263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.8500        1.9937        .83380E-04   -1.5370    
   5  norm          3.2283        8.3354        .22537E-03   -1.5349    
   6  Prefactor     .10000E-03    1.0070        .72884E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    52.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.8805        .99691E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.3471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.3949        .11278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.3091        13.093        .97020E-03   -1.5293    
  12  norm          3.3493        2.3052        .89549E-04   -1.5342    
  13  Prefactor     .10000E-03    32.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          15.399        8.6929        .10207E-03   -1.4923    
  15  Prefactor     .10000E-03    7.1826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.8041        4.5617        .16608E-03   -1.5318    
  17  norm          2.2759        1.9319        .90289E-04   -1.5406    
  18  Prefactor     .10000E-03    4.3085        .15134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.3911        2.2550        .13847E-03   -1.5472    
  20  Prefactor     18.998        40.006        .91849E-04   -1.4836    
  21  Prefactor     1.2706        19.906        .19684E-02   -1.5483    
  22  norm          11.089        14.899        .12031E-03   -1.5042    
  23  norm          1.8884        3.6834        .19043E-03   -1.5433    
  24  Prefactor     68.922        41.784        .48344E-04   -1.4046    
  25  Prefactor     1.4895        45.865        .35063E-03   -1.5464    
  26  Prefactor     .10002E-03    44.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          8.8161        5.4327        .12205E-03   -1.5114    
  28  Normalizat    1.0254        .20792        .22854E-03   -.92183    
  29  Prefactor     1.0380        .25686        .28658E-03   -.91475    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.8266e-10
Minuit parameter uncertainties:
  1  81.9572
  2  51.1617
  3  9.66263e-06
  4  1.99377
  5  8.33841
  6  1.05915e-05
  7  0.000155035
  8  1.27769e-05
  9  3.91271e-05
  10  7.8721e-06
  11  13.1012
  12  2.30522
  13  8.52509e-05
  14  8.6936
  15  2.40811e-05
  16  4.5621
  17  1.93196
  18  6.71749e-06
  19  2.25512
  20  40.0623
  21  10.0618
  22  14.9043
  23  3.68388
  24  41.8019
  25  16.544
  26  0.00201782
  27  5.43299
  28  0.208083
  29  0.257167
Done.

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

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.540e+01  8.694e+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.038e+00  2.572e-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.025e+00  2.081e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.04
Ra Dec: 185.988 50.009
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 6.18e-08 +/- 3.49e-08
Energy Flux (Fixed Index): 1.93e-05 +/- 1.09e-05

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) = 5574.54005494
delta logL = 7.84075155025e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5574.5400354
delta logL = 9.79527039817e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.349       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4277       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0250       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0382       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=   5574.540     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      226 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.339        205.29        .25558E-02    .25521E-03
   2  alpha         2.4269        3.2815        .33341        .68008E-04
   3  Normalizat    1.0251        .99424E-01    .42698E-01    .59196E-04
   4  Prefactor     1.0383        .11990        .64781E-01    .83399E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 15.3388
  alpha      = 2.42689
  Normalizat = 1.02505
  Prefactor  = 1.0383
 **********
 **   18 **HESSE 
 **********

 FCN=   5574.540     FROM HESSE     STATUS=OK            33 CALLS      259 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.339        9.8281        .10223E-03   -1.4924    
   2  alpha         2.4269        .58362        .13095E-01   -.29246E-01
   3  Normalizat    1.0251        .20224        .22858E-03   -.92196    
   4  Prefactor     1.0383        .25407        .28654E-03   -.91464    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.62881e-11
Minuit parameter uncertainties:
  1  9.8291
  2  0.589063
  3  0.202388
  4  0.254363
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574048': 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) = 5574.54003241
delta logL = 0.000100942092104

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.534e+01  9.829e+00  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  2.427e+00  5.891e-01  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.038e+00  2.544e-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.025e+00  2.024e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.00
Ra Dec: 185.988 50.009
Photon Index (Free Index): 2.43 +/- 0.59
Photon Flux (Free Index): 6.21e-08 +/- 3.92e-08
Energy Flux (Free Index): 1.93e-05 +/- 1.13e-05

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/574048/cmap_HighResolution_534816001_535075201_4FGL_J1223.9+5000_daily_bin1140.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.18e-08', energy_flux2='1.93e-05', photon_flux_error='3.49e-08', dlogl='1.01e-04', energy_flux='1.93e-05', photon_flux2='6.21e-08', job_status='DONE', time_completed='2021-09-05 12:20:44.129068', photon_index_error2='0.59', photon_index2='2.43', ts='6.04', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='1.13e-05', EG='1.03', time_epoch_completed='1630869644.13', return_code='0', job_id='574048', GAL2='1.04', EG2='1.03', return_code2='0', energy_flux_error='1.09e-05', photon_flux_error2='3.92e-08', ts2='6.00', photon_index='2.42' WHERE bin_id='1140' AND source_name='4FGL J1223.9+5000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:20:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0297>
Subject: Job 574048: <4FGL_J1223.9+5000_daily_bin1140> in cluster <slac> Done

Job <4FGL_J1223.9+5000_daily_bin1140> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 12:05:48 2021
Job was executed on host(s) <bullet0297>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 12:05:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 12:05:49 2021
Terminated at Sun Sep  5 12:20:45 2021
Results reported at Sun Sep  5 12:20:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_daily_bin1140 185.988 50.0089 534816001 535075201 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 :                                   748.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             261.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            897 sec.

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

