/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 181 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 = 7405
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1223.5+0818_daily_bin431
RA = 185.883, Dec = 8.3017
tmin = 351043201, tmax = 351302401
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='545037', job_status='RUN', time_executed='2021-09-05 10:44:13.534019', time_epoch_executed='1630863853.53' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='431'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/545037

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/545037/ft1_4FGL_J1223.5+0818_daily_bin431.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/545037/ft2_4FGL_J1223.5+0818_daily_bin431.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/545037/ft1_4FGL_J1223.5+0818_daily_bin431.fits outfile=/scratch/kocevski/545037/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin431.fits ra=185.883 dec=8.3017 rad=12.0 tmin=351043201.0 tmax=351302401.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.42
user 3.21
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/545037/ft2_4FGL_J1223.5+0818_daily_bin431.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/545037/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin431.fits evtable="EVENTS" outfile="/scratch/kocevski/545037/ft1_filtered_4FGL_J1223.5+0818_daily_bin431.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.61
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/545037/ft1_filtered_4FGL_J1223.5+0818_daily_bin431.fits" evtable="EVENTS" scfile=/scratch/kocevski/545037/ft2_4FGL_J1223.5+0818_daily_bin431.fits sctable="SC_DATA" outfile=/scratch/kocevski/545037/ltcube_351043201_351302401_4FGL_J1223.5+0818_daily_bin431.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/545037/ft2_4FGL_J1223.5+0818_daily_bin431.fits
.....................!
real 11.73
user 11.22
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/545037/ft1_filtered_4FGL_J1223.5+0818_daily_bin431.fits evtable="EVENTS" scfile=/scratch/kocevski/545037/ft2_4FGL_J1223.5+0818_daily_bin431.fits sctable="SC_DATA" expcube=/scratch/kocevski/545037/ltcube_351043201_351302401_4FGL_J1223.5+0818_daily_bin431.fits outfile=/scratch/kocevski/545037/expmap_351043201_351302401_4FGL_J1223.5+0818_daily_bin431.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/545037/ltcube_351043201_351302401_4FGL_J1223.5+0818_daily_bin431.fits
.....................!
real 191.61
user 185.76
sys 4.56

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/545037/ft1_filtered_4FGL_J1223.5+0818_daily_bin431.fits scfile=/scratch/kocevski/545037/ft2_4FGL_J1223.5+0818_daily_bin431.fits outfile=/scratch/kocevski/545037/cmap_351043201_351302401_4FGL_J1223.5+0818_daily_bin431.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/545037/ft1_filtered_4FGL_J1223.5+0818_daily_bin431.fits scfile=/scratch/kocevski/545037/ft2_4FGL_J1223.5+0818_daily_bin431.fits outfile=/scratch/kocevski/545037/cmap_HighResolution_351043201_351302401_4FGL_J1223.5+0818_daily_bin431.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.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/545037/ft1_filtered_4FGL_J1223.5+0818_daily_bin431.fits', '/scratch/kocevski/545037/ft2_4FGL_J1223.5+0818_daily_bin431.fits', expMap='/scratch/kocevski/545037/expmap_351043201_351302401_4FGL_J1223.5+0818_daily_bin431.fits', expCube='/scratch/kocevski/545037/ltcube_351043201_351302401_4FGL_J1223.5+0818_daily_bin431.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/545037/Model_4FGL_J1223.5+0818_daily_bin431.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/545037/ft1_filtered_4FGL_J1223.5+0818_daily_bin431.fits
Spacecraft file(s): /scratch/kocevski/545037/ft2_4FGL_J1223.5+0818_daily_bin431.fits
Exposure map: /scratch/kocevski/545037/expmap_351043201_351302401_4FGL_J1223.5+0818_daily_bin431.fits
Exposure cube: /scratch/kocevski/545037/ltcube_351043201_351302401_4FGL_J1223.5+0818_daily_bin431.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/545037/Model_4FGL_J1223.5+0818_daily_bin431.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) = 5550.64256011

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.180       1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.203       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .23016E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.4294       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    14.938       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .70655       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.2871       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11608E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.3183       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.2909       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .28625E-02   1.0000         .10000E-03   10000.    
    27 'Prefactor '    19.925       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3460       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .70797       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=   5550.539     FROM MIGRAD    STATUS=CONVERGED    719 CALLS     3138 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.6042       -.41510E-06** at limit **
   2  Prefactor     .10000E-03    44.685        .27360E-05** at limit **
   3  Prefactor     .10000E-03    5.3164        .49096E-07** at limit **
   4  Prefactor     11.178        9.6723        .11377E-06    .13989E-04
   5  Prefactor     20.202        14.998        .60722E-07   -.11841E-04
   6  Prefactor     .10000E-03    30.285       -.11283E-05** at limit **
   7  Prefactor     .10000E-03    32.200       -.14410E-05** at limit **
   8  Prefactor     .10000E-03    9.0634        .31815E-06** at limit **
   9  Prefactor     .10000E-03    1.2963        .12881E-06** at limit **
  10  Prefactor     .10000E-03    1.3843        .19160E-07** at limit **
  11  Prefactor     .10000E-03    14.033       -.10577E-05** at limit **
  12  Prefactor     .10000E-03    5.5952       -.36866E-07** at limit **
  13  norm          .10000E-03    .95998        .11815E-07** at limit **
  14  norm          3.4295        3.6927        .30498E-06   -.27385E-04
  15  Prefactor     .10000E-03    9.6577        .61644E-07** at limit **
  16  norm          14.922        42.359       -.30937E-05   -.10531E-03
  17  Prefactor     .10000E-03    83.727       -.15217E-05** at limit **
  18  norm          .70641        .56876        .23938E-07   -.21085E-03
  19  Prefactor     1.2747        14.203        .25205E-05   -.90858E-04
  20  Prefactor     .10000E-03    25.896        .88766E-06** at limit **
  21  Prefactor     .10000E-03    2.7054       -.34859E-07** at limit **
  22  norm          2.3183        1.8013        .77110E-07   -.10041E-03
  23  Prefactor     6.2900        9.4802        .25645E-05   -.26305E-03
  24  Prefactor     .10000E-03    8.9466        .14874E-06** at limit **
  25  Prefactor     .10000E-03    15.122        .10609E-05** at limit **
  26  Prefactor     .10000E-03    35.254       -.70789E-06** at limit **
  27  Prefactor     19.948        16.093       -.41819E-07   -.39887E-04
  28  Normalizat    1.3461        .19965       -.64913E-06   -.30540E-04
  29  Prefactor     .70811        .16416       -.55942E-07   -.60367E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 11.1784
  Prefactor  = 20.2022
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.42949
  Prefactor  = 0.0001
  norm       = 14.9222
  Prefactor  = 0.000100001
  norm       = 0.706405
  Prefactor  = 1.27471
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.31833
  Prefactor  = 6.29002
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 19.9484
  Normalizat = 1.34607
  Prefactor  = 0.708107
 **********
 **   18 **HESSE 
 **********

 FCN=   5550.539     FROM HESSE     STATUS=OK           545 CALLS     3683 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.6358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    45.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.3532        .16776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.178        9.6719        .11982E-03   -1.5039    
   5  Prefactor     20.202        15.019        .89109E-04   -1.4809    
   6  Prefactor     .10000E-03    30.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    32.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.1000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.9778        .16328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.4131        .85442E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.6223        .17207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .97562        .71264E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.4295        3.6790        .12665E-03   -1.5338    
  15  Prefactor     .10000E-03    9.6620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          14.922        43.331        .10363E-03   -1.4935    
  17  Prefactor     .10000E-03    84.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .70641        .54796        .44744E-04   -1.5540    
  19  Prefactor     1.2747        14.460        .39064E-03   -1.5482    
  20  Prefactor     .10000E-03    26.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.7084        .11968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.3183        1.7853        .82312E-04   -1.5403    
  23  Prefactor     6.2900        9.6688        .80020E-03   -1.5206    
  24  Prefactor     .10000E-03    8.9517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    15.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    36.453        .39757E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     19.948        16.143        .89728E-04   -1.4814    
  28  Normalizat    1.3461        .23344        .23582E-03   -.82201    
  29  Prefactor     .70811        .19217        .26902E-03   -1.0321    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.44387e-10
Minuit parameter uncertainties:
  1  5.27711e-05
  2  0.000788971
  3  3.73811e-06
  4  9.67325
  5  15.0213
  6  0.000265978
  7  0.000354379
  8  3.87181e-05
  9  5.84183e-05
  10  3.71213e-07
  11  0.000172881
  12  5.0593e-06
  13  2.10554e-07
  14  3.67921
  15  7.59637e-06
  16  43.4224
  17  0.000596071
  18  0.547966
  19  8.58875
  20  0.00020892
  21  3.37215e-06
  22  1.78533
  23  9.67123
  24  1.76949e-05
  25  0.000179675
  26  5.35241e-05
  27  16.1466
  28  0.233619
  29  0.192347
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  7.596e-06  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.081e-01  1.923e-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.346e+00  2.336e-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: 3.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/545037/likelihoodResults_351043201_351302401_4FGL_J1223.5+0818_daily_bin431.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) = 5550.53954295
delta logL = -0.00048828009858

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5550.53905465
delta logL = 1.38406903716e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8945       1.0000          .0000       10.000    
     3 'Normalizat'    1.3462       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70803       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5550.539     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      249 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10289E-03    2.6602        .18142E-01** at limit **
   2  Index         1.8060        8.5505        .50000        .17378E-04
   3  Normalizat    1.3461        .24325E-02    .23582E-03    .98830E-05
   4  Prefactor     .70811        .20914E-02    .26902E-03    .70575E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102894
  Index      = 1.80599
  Normalizat = 1.34607
  Prefactor  = 0.708107
 **********
 **   18 **HESSE 
 **********

 FCN=   5550.539     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10289E-03    79.640        .24016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8060        6.9631        .50000       -.69294    
   3  Normalizat    1.3461        .13415E-01    .94327E-05   -.82201    
   4  Prefactor     .70811        .11534E-01    .10761E-04   -1.0321    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.8755e-08
Minuit parameter uncertainties:
  1  0.0304034
  2  335.156
  3  0.0134153
  4  0.0115338
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/545037': 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) = 5550.53905421
delta logL = 4.56488123746e-07

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.029e-04  3.040e-02  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.806e+00  3.352e+02  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.081e-01  1.153e-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.346e+00  1.342e-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/545037/cmap_HighResolution_351043201_351302401_4FGL_J1223.5+0818_daily_bin431.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.96e-03', job_status='DONE', photon_flux_upper_limit='3.98e-08', time_completed='2021-09-05 10:56:23.956598', job_id='545037', GAL2='0.71', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1630864583.96', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='4.56e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='431' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:56:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 545037: <4FGL_J1223.5+0818_daily_bin431> in cluster <slac> Done

Job <4FGL_J1223.5+0818_daily_bin431> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 10:41:00 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:41:02 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:41:02 2021
Terminated at Sun Sep  5 10:56:24 2021
Results reported at Sun Sep  5 10:56:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin431 185.883 8.3017 351043201 351302401 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 :                                   728.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            924 sec.

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

