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


Performing analysis on: 4FGL_J1223.9+5000_daily_bin1105
RA = 185.988, Dec = 50.0089
tmin = 525744001, tmax = 526003201
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='573997', job_status='RUN', time_executed='2021-09-05 12:07:41.910208', time_epoch_executed='1630868861.91' WHERE source_name='4FGL J1223.9+5000' and cadence='daily' and bin_id='1105'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/573997

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/573997/ft1_4FGL_J1223.9+5000_daily_bin1105.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/573997/ft2_4FGL_J1223.9+5000_daily_bin1105.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/573997/ft1_4FGL_J1223.9+5000_daily_bin1105.fits outfile=/scratch/kocevski/573997/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1105.fits ra=185.988 dec=50.0089 rad=12.0 tmin=525744001.0 tmax=526003201.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.44
user 3.22
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/573997/ft1_filtered_4FGL_J1223.9+5000_daily_bin1105.fits" evtable="EVENTS" scfile=/scratch/kocevski/573997/ft2_4FGL_J1223.9+5000_daily_bin1105.fits sctable="SC_DATA" outfile=/scratch/kocevski/573997/ltcube_525744001_526003201_4FGL_J1223.9+5000_daily_bin1105.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/573997/ft2_4FGL_J1223.9+5000_daily_bin1105.fits
.....................!
real 9.57
user 9.23
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/573997/ft1_filtered_4FGL_J1223.9+5000_daily_bin1105.fits evtable="EVENTS" scfile=/scratch/kocevski/573997/ft2_4FGL_J1223.9+5000_daily_bin1105.fits sctable="SC_DATA" expcube=/scratch/kocevski/573997/ltcube_525744001_526003201_4FGL_J1223.9+5000_daily_bin1105.fits outfile=/scratch/kocevski/573997/expmap_525744001_526003201_4FGL_J1223.9+5000_daily_bin1105.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/573997/ltcube_525744001_526003201_4FGL_J1223.9+5000_daily_bin1105.fits
.....................!
real 151.04
user 146.30
sys 3.85

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/573997/ft1_filtered_4FGL_J1223.9+5000_daily_bin1105.fits scfile=/scratch/kocevski/573997/ft2_4FGL_J1223.9+5000_daily_bin1105.fits outfile=/scratch/kocevski/573997/cmap_525744001_526003201_4FGL_J1223.9+5000_daily_bin1105.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.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    61.691       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10390E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.7997       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .80795       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .32890E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.3542       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.752       1.0000         .10000E-03   10000.    
    14 'norm      '    9.1856       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.1169       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.136       1.0000         .10000E-03   10000.    
    19 'norm      '    2.4871       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.3454       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.1148       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .43819       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    4.2365       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .93262       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .97502       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=   6414.059     FROM MIGRAD    STATUS=CONVERGED    733 CALLS     3700 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    57.215       -.18381E-06** at limit **
   2  norm          61.695        63.603        .38725E-05   -.28763E-06
   3  Prefactor     .10001E-03    4.4568       -.55011E-06** at limit **
   4  norm          2.7999        1.3679        .20303E-07   -.48109E-04
   5  norm          .10000E-03    3.4122        .12330E-07** at limit **
   6  Prefactor     .80911        2.3863        .17598E-06    .95651E-04
   7  Prefactor     .10000E-03    12.680        .26453E-05** at limit **
   8  norm          .10000E-03    2.5043        .38729E-07** at limit **
   9  Prefactor     .10000E-03    11.685       -.23662E-05** at limit **
  10  Prefactor     .10000E-03    4.2541        .46823E-06** at limit **
  11  Prefactor     .10000E-03    14.745        .19933E-05** at limit **
  12  norm          2.3543        1.9355        .81002E-07    .34113E-04
  13  Prefactor     12.745        29.305       -.66080E-05   -.17978E-04
  14  norm          9.1870        6.9019        .98570E-07   -.44871E-04
  15  Prefactor     .10000E-03    7.1486       -.11147E-06** at limit **
  16  Prefactor     .10000E-03    1.6867        .50020E-08** at limit **
  17  norm          1.1169        1.1402        .27281E-07    .21758E-04
  18  Prefactor     15.139        19.441        .20010E-06   -.10791E-04
  19  norm          2.4872        1.6219        .19340E-07   -.37781E-05
  20  Prefactor     4.3534        107.10        .24887E-04   -.59057E-06
  21  Prefactor     1.1180        1.1084       -.34069E-07   -.21366E-03
  22  norm          .10000E-03    8.1282        .13188E-06** at limit **
  23  norm          .43755        2.1288       -.32781E-07   -.55726E-04
  24  Prefactor     .10000E-03    31.825       -.23491E-05** at limit **
  25  Prefactor     .10000E-03    4.7107        .13779E-07** at limit **
  26  Prefactor     .10000E-03    33.033        .28504E-05** at limit **
  27  norm          4.2364        2.7100        .13169E-07   -.62749E-05
  28  Normalizat    .93259        .14849       -.25594E-06    .31979E-06
  29  Prefactor     .97495        .18266       -.69172E-06   -.10826E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 61.6947
  Prefactor  = 0.00010001
  norm       = 2.79994
  norm       = 0.0001
  Prefactor  = 0.809111
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.35429
  Prefactor  = 12.7453
  norm       = 9.18704
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.1169
  Prefactor  = 15.1386
  norm       = 2.48719
  Prefactor  = 4.35345
  Prefactor  = 1.11795
  norm       = 0.0001
  norm       = 0.437552
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.23643
  Normalizat = 0.932592
  Prefactor  = 0.974954
 **********
 **   18 **HESSE 
 **********

 FCN=   6414.059     FROM HESSE     STATUS=OK           555 CALLS     4255 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    57.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          61.695        63.685        .51087E-04   -1.4135    
   3  Prefactor     .10001E-03    15.587        .32388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.7999        1.3674        .63416E-04   -1.5373    
   5  norm          .10000E-03    3.4259        .14447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .80911        2.3830        .20103E-03   -1.5528    
   7  Prefactor     .10000E-03    12.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.5395        .12354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.611        .31925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.3543        1.9334        .95623E-04   -1.5401    
  13  Prefactor     12.745        29.304        .11217E-03   -1.4994    
  14  norm          9.1870        6.9287        .66119E-03   -1.5102    
  15  Prefactor     .10000E-03    7.1568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.6934        .10154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.1169        1.1518        .84036E-04   -1.5497    
  18  Prefactor     15.139        19.468        .10295E-03   -1.4930    
  19  norm          2.4872        1.6213        .79943E-04   -1.5393    
  20  Prefactor     4.3534        107.10        .19323E-03   -1.5291    
  21  Prefactor     1.1180        19.766        .22311E-02   -1.5497    
  22  norm          .10000E-03    8.1492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .43755        2.0363        .22634E-03   -1.5576    
  24  Prefactor     .10000E-03    32.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.7208        .16975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    33.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          4.2364        2.7101        .10271E-03   -1.5296    
  28  Normalizat    .93259        .17527        .21461E-03   -.95324    
  29  Prefactor     .97495        .21373        .26628E-03   -.93569    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.4698e-10
Minuit parameter uncertainties:
  1  1.36933e-05
  2  63.7556
  3  0.000801193
  4  1.36744
  5  7.38927e-07
  6  2.38323
  7  1.23222e-06
  8  4.90967e-06
  9  5.10669e-06
  10  1.05888e-05
  11  3.91011e-05
  12  1.9335
  13  29.3371
  14  6.9293
  15  2.35989e-07
  16  1.79617e-06
  17  1.15181
  18  19.4764
  19  1.62137
  20  43.2729
  21  9.40487
  22  4.31682e-05
  23  1.88774
  24  1.36383e-06
  25  1.26624e-06
  26  8.52133e-06
  27  2.71022
  28  0.175379
  29  0.213919
Done.

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

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  9.187e+00  6.929e+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.750e-01  2.139e-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:  9.326e-01  1.754e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.61
Ra Dec: 185.988 50.009
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 3.69e-08 +/- 2.78e-08
Energy Flux (Fixed Index): 1.15e-05 +/- 8.69e-06

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

Saving results to:
/scratch/kocevski/573997/likelihoodResults_525744001_526003201_4FGL_J1223.9+5000_daily_bin1105.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) = 6414.04206482
delta logL = 0.0173848982758

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6414.02034874
delta logL = 0.0391009832183

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.1880       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8359       1.0000          .0000       5.0000    
     3 'Normalizat'    .91749       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98951       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=   6414.020     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      209 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.1840        104.62        .37404E-02    .31450E-03
   2  alpha         2.8373        3.5930        .41631        .59498E-04
   3  Normalizat    .91752        .53568E-01    .45125E-01   -.75709E-05
   4  Prefactor     .98948        .59680E-01    .46136E-01    .15960E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.18397
  alpha      = 2.83727
  Normalizat = 0.917515
  Prefactor  = 0.989477
 **********
 **   18 **HESSE 
 **********

 FCN=   6414.020     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.1840        11.945        .14707E-03   -1.5172    
   2  alpha         2.8373        1.6061        .17491E-01    .13532    
   3  Normalizat    .91752        .17734        .21611E-03   -.95847    
   4  Prefactor     .98948        .22080        .26461E-03   -.93081    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.70775e-11
Minuit parameter uncertainties:
  1  11.9493
  2  1.74745
  3  0.17745
  4  0.221006
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/573997': 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) = 6414.02034774
delta logL = 0.0391019828958

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  7.184e+00  1.195e+01  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  2.837e+00  1.747e+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.895e-01  2.210e-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:  9.175e-01  1.775e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.69
Ra Dec: 185.988 50.009
Photon Index (Free Index): 2.84 +/- 1.75
Photon Flux (Free Index): 4.56e-08 +/- 4.12e-08
Energy Flux (Free Index): 1.09e-05 +/- 8.84e-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/573997/cmap_HighResolution_525744001_526003201_4FGL_J1223.9+5000_daily_bin1105.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.98e-05', comment='SUCCESS', photon_flux='3.69e-08', energy_flux2='1.09e-05', photon_flux_error='2.78e-08', dlogl='3.91e-02', energy_flux='1.15e-05', photon_flux2='4.56e-08', job_status='DONE', time_completed='2021-09-05 12:20:22.463314', photon_index_error2='1.75', photon_index2='2.84', ts='2.61', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='9.52e-08', energy_flux_error2='8.84e-06', EG='0.93', time_epoch_completed='1630869622.46', return_code='0', job_id='573997', GAL2='0.99', EG2='0.92', return_code2='0', energy_flux_error='8.69e-06', photon_flux_error2='4.12e-08', ts2='2.69', photon_index='2.42' WHERE bin_id='1105' AND source_name='4FGL J1223.9+5000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:20:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 573997: <4FGL_J1223.9+5000_daily_bin1105> in cluster <slac> Done

Job <4FGL_J1223.9+5000_daily_bin1105> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 12:05:44 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 12:05:46 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:46 2021
Terminated at Sun Sep  5 12:20:23 2021
Results reported at Sun Sep  5 12:20:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_daily_bin1105 185.988 50.0089 525744001 526003201 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 :                                   749.31 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             289.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            879 sec.

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

