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


Performing analysis on: 4FGL_J1223.5+0818_daily_bin574
RA = 185.883, Dec = 8.3017
tmin = 388108801, tmax = 388368001
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='546501', job_status='RUN', time_executed='2021-09-05 10:49:07.267325', time_epoch_executed='1630864147.27' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='574'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/546501

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/546501/ft1_4FGL_J1223.5+0818_daily_bin574.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/546501/ft2_4FGL_J1223.5+0818_daily_bin574.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/546501/ft1_4FGL_J1223.5+0818_daily_bin574.fits outfile=/scratch/kocevski/546501/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin574.fits ra=185.883 dec=8.3017 rad=12.0 tmin=388108801.0 tmax=388368001.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.43
user 3.11
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/546501/ft2_4FGL_J1223.5+0818_daily_bin574.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/546501/ft2_4FGL_J1223.5+0818_daily_bin574.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/546501/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin574.fits evtable="EVENTS" outfile="/scratch/kocevski/546501/ft1_filtered_4FGL_J1223.5+0818_daily_bin574.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.54
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/546501/ft1_filtered_4FGL_J1223.5+0818_daily_bin574.fits" evtable="EVENTS" scfile=/scratch/kocevski/546501/ft2_4FGL_J1223.5+0818_daily_bin574.fits sctable="SC_DATA" outfile=/scratch/kocevski/546501/ltcube_388108801_388368001_4FGL_J1223.5+0818_daily_bin574.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/546501/ft2_4FGL_J1223.5+0818_daily_bin574.fits
.....................!
real 11.95
user 11.46
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/546501/ft1_filtered_4FGL_J1223.5+0818_daily_bin574.fits evtable="EVENTS" scfile=/scratch/kocevski/546501/ft2_4FGL_J1223.5+0818_daily_bin574.fits sctable="SC_DATA" expcube=/scratch/kocevski/546501/ltcube_388108801_388368001_4FGL_J1223.5+0818_daily_bin574.fits outfile=/scratch/kocevski/546501/expmap_388108801_388368001_4FGL_J1223.5+0818_daily_bin574.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/546501/ltcube_388108801_388368001_4FGL_J1223.5+0818_daily_bin574.fits
.....................!
real 191.80
user 185.59
sys 4.91

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 184 point sources and 0 extended sources

Setting source of interest to:
4FGL J1223.5+0818 @ 185.883 8.3017

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/546501/ft1_filtered_4FGL_J1223.5+0818_daily_bin574.fits scfile=/scratch/kocevski/546501/ft2_4FGL_J1223.5+0818_daily_bin574.fits outfile=/scratch/kocevski/546501/cmap_388108801_388368001_4FGL_J1223.5+0818_daily_bin574.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.883 yref=8.3017 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/546501/ft1_filtered_4FGL_J1223.5+0818_daily_bin574.fits scfile=/scratch/kocevski/546501/ft2_4FGL_J1223.5+0818_daily_bin574.fits outfile=/scratch/kocevski/546501/cmap_HighResolution_388108801_388368001_4FGL_J1223.5+0818_daily_bin574.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.883 yref=8.3017 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.56
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/546501/ft1_filtered_4FGL_J1223.5+0818_daily_bin574.fits evtable="EVENTS" scfile=/scratch/kocevski/546501/ft2_4FGL_J1223.5+0818_daily_bin574.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/546501/Model_4FGL_J1223.5+0818_daily_bin574.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/546501/ft1_filtered_4FGL_J1223.5+0818_daily_bin574.fits.....................!
real 51.13
user 49.43
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/546501/ft1_filtered_4FGL_J1223.5+0818_daily_bin574.fits', '/scratch/kocevski/546501/ft2_4FGL_J1223.5+0818_daily_bin574.fits', expMap='/scratch/kocevski/546501/expmap_388108801_388368001_4FGL_J1223.5+0818_daily_bin574.fits', expCube='/scratch/kocevski/546501/ltcube_388108801_388368001_4FGL_J1223.5+0818_daily_bin574.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/546501/Model_4FGL_J1223.5+0818_daily_bin574.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1223.5+0818'

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  2.243e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.922e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
322        Scale:  3.064e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/546501/ft1_filtered_4FGL_J1223.5+0818_daily_bin574.fits
Spacecraft file(s): /scratch/kocevski/546501/ft2_4FGL_J1223.5+0818_daily_bin574.fits
Exposure map: /scratch/kocevski/546501/expmap_388108801_388368001_4FGL_J1223.5+0818_daily_bin574.fits
Exposure cube: /scratch/kocevski/546501/ltcube_388108801_388368001_4FGL_J1223.5+0818_daily_bin574.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/546501/Model_4FGL_J1223.5+0818_daily_bin574.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) = 5417.74740986

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10349E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.6566       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    109.58       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.7669       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.2477       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .38867       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.9468       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.265       1.0000         .10000E-03   10000.    
    13 'norm      '    1.0730       1.0000         .10000E-03   10000.    
    14 'norm      '    5.5371       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10492E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.1402       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .28757E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .60350       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.1324       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.2661       1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.3515       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2954       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .76039       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5417.738     FROM MIGRAD    STATUS=CONVERGED    752 CALLS     3761 TOTAL
                     EDM=   .81E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    58.349        .16359E-05** at limit **
   2  Prefactor     .10000E-03    30.408       -.16909E-06** at limit **
   3  Prefactor     6.6507        8.9430        .10701E-05    .10124E-04
   4  Prefactor     .10000E-03    4.2050       -.65450E-07** at limit **
   5  Prefactor     .10000E-03    5.7422        .29627E-06** at limit **
   6  Prefactor     109.68        88.628       -.62395E-05    .90856E-05
   7  Prefactor     .10000E-03    11.797        .72501E-06** at limit **
   8  Prefactor     8.7779        18.606        .12895E-06    .14971E-04
   9  Prefactor     1.2460        3.6451        .10590E-06   -.10201E-03
  10  Prefactor     .39229        4.2927        .38158E-06   -.14372E-03
  11  Prefactor     1.9435        25.552        .68526E-05    .10216E-04
  12  Prefactor     10.268        13.492        .30856E-06    .72332E-04
  13  norm          1.0730        2.2137       -.18403E-06   -.31094E-03
  14  norm          5.5330        4.2743        .99314E-08    .24714E-03
  15  Prefactor     .10000E-03    47.639       -.10244E-06** at limit **
  16  norm          5.1537        50.028        .11765E-05    .23884E-04
  17  Prefactor     .10000E-03    362.41        .14320E-05** at limit **
  18  norm          .10000E-03    .42424       -.16043E-06** at limit **
  19  Prefactor     .60427        7.0212        .50543E-06   -.99496E-04
  20  Prefactor     .10000E-03    9.2100       -.47512E-07** at limit **
  21  Prefactor     .10000E-03    4.6741       -.46560E-07** at limit **
  22  norm          5.1319        2.2954        .61372E-07    .31557E-03
  23  Prefactor     .10000E-03    12.679        .69062E-06** at limit **
  24  Prefactor     .10000E-03    12.409       -.16804E-05** at limit **
  25  Prefactor     .10000E-03    69.702       -.19717E-05** at limit **
  26  Prefactor     5.2670        12.650        .18420E-05    .21650E-04
  27  Prefactor     8.3556        13.483       -.14399E-06    .24494E-05
  28  Normalizat    1.2955        .21352       -.99116E-06    .50863E-04
  29  Prefactor     .76011        .17061        .87154E-06    .19434E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.65072
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 109.679
  Prefactor  = 0.0001
  Prefactor  = 8.77785
  Prefactor  = 1.24604
  Prefactor  = 0.392292
  Prefactor  = 1.94348
  Prefactor  = 10.2681
  norm       = 1.07299
  norm       = 5.53304
  Prefactor  = 0.0001
  norm       = 5.15372
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.604269
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.13185
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.26704
  Prefactor  = 8.35556
  Normalizat = 1.29549
  Prefactor  = 0.760108
 **********
 **   18 **HESSE 
 **********

 FCN=   5417.738     FROM HESSE     STATUS=OK           563 CALLS     4324 TOTAL
                     EDM=   .68E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    60.035        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    30.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.6507        8.9340        .15553E-03   -1.5192    
   4  Prefactor     .10000E-03    4.2357        .14739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.7525        .17232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     109.68        88.703        .19212E-03   -1.3610    
   7  Prefactor     .10000E-03    11.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.7779        18.557        .13537E-03   -1.5115    
   9  Prefactor     1.2460        3.2399        .17695E-03   -1.5485    
  10  Prefactor     .39229        6.8421        .22049E-02   -1.5583    
  11  Prefactor     1.9435        25.804        .14874E-02   -1.5429    
  12  Prefactor     10.268        12.901        .12506E-03   -1.5067    
  13  norm          1.0730        1.7351        .13901E-02   -1.5501    
  14  norm          5.5330        4.2418        .11199E-03   -1.5237    
  15  Prefactor     .10000E-03    47.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.1537        49.310        .17733E-03   -1.5254    
  17  Prefactor     .10000E-03    363.99        .19874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .87739        .87394E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .60427        18.560        .37277E-02   -1.5553    
  20  Prefactor     .10000E-03    9.2239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.6893        .15540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.1319        2.2797        .69127E-04   -1.5255    
  23  Prefactor     .10000E-03    12.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    12.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    70.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     5.2670        12.670        .87577E-03   -1.5249    
  27  Prefactor     8.3556        13.453        .13872E-03   -1.5130    
  28  Normalizat    1.2955        .24644        .24266E-03   -.83701    
  29  Prefactor     .76011        .19764        .26417E-03   -1.0122    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.79958e-08
Minuit parameter uncertainties:
  1  0.000177835
  2  1.21831e-06
  3  8.93576
  4  3.15576e-06
  5  2.48837e-05
  6  88.8104
  7  6.5418e-06
  8  18.5692
  9  3.24033
  10  3.27666
  11  14.1704
  12  12.9043
  13  1.73518
  14  4.24198
  15  1.8875e-05
  16  31.917
  17  0.000257652
  18  4.38803e-06
  19  6.69948
  20  5.06837e-06
  21  1.6987e-06
  22  2.27973
  23  2.85772e-05
  24  8.72685e-06
  25  4.22927e-06
  26  12.6769
  27  13.458
  28  0.246666
  29  0.197825
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  1.887e-05  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.922e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
322        Scale:  3.064e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  7.601e-01  1.978e-01  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
594   Normalization:  1.295e+00  2.467e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 185.883 8.302
Photon Flux Upper Limit: 7.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/546501/likelihoodResults_388108801_388368001_4FGL_J1223.5+0818_daily_bin574.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5417.73857904
delta logL = -9.95836981019e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5417.73847964
delta logL = -1.85320459423e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8653       1.0000          .0000       10.000    
     3 'Normalizat'    1.2955       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76011       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5417.738     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      243 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    388.26        .90712E-02** at limit **
   2  Index         1.9269        7.5026        .50000       -.13939E-04
   3  Normalizat    1.2955        .14630E-01    .54878E-01    .41472E-04
   4  Prefactor     .76011        .12616E-01    .43196E-01    .47088E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100011
  Index      = 1.92689
  Normalizat = 1.29549
  Prefactor  = 0.760108
 **********
 **   18 **HESSE 
 **********

 FCN=   5417.738     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      276 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    821.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9269        9.0055        .50000       -.66191    
   3  Normalizat    1.2955        .21601E-01    .24266E-03   -.83701    
   4  Prefactor     .76011        .18629E-01    .26417E-03   -1.0122    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.46657e-08
Minuit parameter uncertainties:
  1  0.00608164
  2  16.5976
  3  0.0216014
  4  0.0186294
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/546501': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5417.73847944
delta logL = 1.67628968484e-08

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  6.082e-03  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.927e+00  1.660e+01  0.000e+00  1.000e+01 (-1.000e+00)
322        Scale:  3.064e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  7.601e-01  1.863e-02  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
594   Normalization:  1.295e+00  2.160e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 185.883 8.302

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/546501/cmap_HighResolution_388108801_388368001_4FGL_J1223.5+0818_daily_bin574.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.73e-03', job_status='DONE', photon_flux_upper_limit='7.69e-08', time_completed='2021-09-05 11:01:46.778110', job_id='546501', GAL2='0.76', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1630864906.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='1.68e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='574' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:01:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 546501: <4FGL_J1223.5+0818_daily_bin574> in cluster <slac> Done

Job <4FGL_J1223.5+0818_daily_bin574> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 10:45:47 2021
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:45:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 10:45:48 2021
Terminated at Sun Sep  5 11:01:47 2021
Results reported at Sun Sep  5 11:01:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin574 185.883 8.3017 388108801 388368001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1223.5+0818 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   755.11 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             250.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            960 sec.

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

