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


Performing analysis on: 4FGL_J1223.5+0818_daily_bin599
RA = 185.883, Dec = 8.3017
tmin = 394588801, tmax = 394848001
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='546549', job_status='RUN', time_executed='2021-09-05 10:48:26.244568', time_epoch_executed='1630864106.24' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='599'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/546549

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/546549/ft1_4FGL_J1223.5+0818_daily_bin599.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/546549/ft2_4FGL_J1223.5+0818_daily_bin599.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/546549/ft1_4FGL_J1223.5+0818_daily_bin599.fits outfile=/scratch/kocevski/546549/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin599.fits ra=185.883 dec=8.3017 rad=12.0 tmin=394588801.0 tmax=394848001.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 4.50
user 4.26
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/546549/ft1_filtered_4FGL_J1223.5+0818_daily_bin599.fits evtable="EVENTS" scfile=/scratch/kocevski/546549/ft2_4FGL_J1223.5+0818_daily_bin599.fits sctable="SC_DATA" expcube=/scratch/kocevski/546549/ltcube_394588801_394848001_4FGL_J1223.5+0818_daily_bin599.fits outfile=/scratch/kocevski/546549/expmap_394588801_394848001_4FGL_J1223.5+0818_daily_bin599.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/546549/ltcube_394588801_394848001_4FGL_J1223.5+0818_daily_bin599.fits
.....................!
real 192.55
user 186.06
sys 4.68

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/546549/ft1_filtered_4FGL_J1223.5+0818_daily_bin599.fits scfile=/scratch/kocevski/546549/ft2_4FGL_J1223.5+0818_daily_bin599.fits outfile=/scratch/kocevski/546549/cmap_394588801_394848001_4FGL_J1223.5+0818_daily_bin599.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/546549/ft1_filtered_4FGL_J1223.5+0818_daily_bin599.fits scfile=/scratch/kocevski/546549/ft2_4FGL_J1223.5+0818_daily_bin599.fits outfile=/scratch/kocevski/546549/cmap_HighResolution_394588801_394848001_4FGL_J1223.5+0818_daily_bin599.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.69
user 0.39
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.3846       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.1780       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.9096       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    28.696       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.6006       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .73043       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.381       1.0000         .10000E-03   10000.    
    13 'norm      '    1.3743       1.0000         .10000E-03   10000.    
    14 'norm      '    .40335       1.0000         .10000E-03   10000.    
    15 'Prefactor '    36.690       1.0000         .10000E-03   10000.    
    16 'norm      '    37.703       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.3625       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    32.704       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.7299       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.9057       1.0000         .10000E-03   10000.    
    24 'Prefactor '    21.821       1.0000         .10000E-03   10000.    
    25 'Prefactor '    59.807       1.0000         .10000E-03   10000.    
    26 'Prefactor '    10.300       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .83028       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0203       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=   6667.495     FROM MIGRAD    STATUS=CONVERGED    725 CALLS     3714 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.3509       -.14775E-05** at limit **
   2  Prefactor     6.3857        124.43       -.42179E-05    .31581E-05
   3  Prefactor     4.1778        4.8882        .42464E-06   -.28776E-03
   4  Prefactor     8.9097        6.3651       -.34031E-06    .27385E-03
   5  Prefactor     .10000E-03    4.7468       -.33363E-06** at limit **
   6  Prefactor     .10000E-03    24.109        .40021E-06** at limit **
   7  Prefactor     .10000E-03    11.213       -.59990E-06** at limit **
   8  Prefactor     28.695        21.176        .13961E-06    .26397E-04
   9  Prefactor     2.5999        4.3094        .84972E-06    .13450E-02
  10  Prefactor     .73036        3.8487       -.23105E-05    .45007E-03
  11  Prefactor     .10000E-03    5.7379        .50085E-06** at limit **
  12  Prefactor     14.383        12.882       -.36736E-06    .42132E-03
  13  norm          1.3739        2.4942       -.78913E-06   -.16834E-03
  14  norm          .38889        10.435       -.23680E-04    .32273E-03
  15  Prefactor     36.690        24.845        .10518E-05    .18424E-04
  16  norm          37.841        60.471        .92261E-05    .15504E-03
  17  Prefactor     .10000E-03    74.637       -.44006E-05** at limit **
  18  norm          1.3625        .61482        .14031E-05    .64737E-03
  19  Prefactor     .10000E-03    7.2490        .48522E-06** at limit **
  20  Prefactor     32.699        32.941        .32124E-06    .12031E-03
  21  Prefactor     .10000E-03    3.9099       -.66382E-06** at limit **
  22  norm          4.7298        2.0622       -.47717E-06    .22193E-02
  23  Prefactor     6.9061        7.0221       -.53332E-06    .22185E-04
  24  Prefactor     21.820        31.425       -.12692E-05    .49183E-05
  25  Prefactor     59.781        60.646        .51950E-05    .45660E-04
  26  Prefactor     10.303        17.790       -.37477E-05    .21820E-04
  27  Prefactor     .10000E-03    12.703       -.92843E-06** at limit **
  28  Normalizat    .83054        .20866        .74787E-05    .78216E-03
  29  Prefactor     1.0201        .17037        .22311E-06    .32118E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.3857
  Prefactor  = 4.17779
  Prefactor  = 8.90966
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.6949
  Prefactor  = 2.59993
  Prefactor  = 0.730365
  Prefactor  = 0.0001
  Prefactor  = 14.3826
  norm       = 1.37391
  norm       = 0.388892
  Prefactor  = 36.6898
  norm       = 37.8412
  Prefactor  = 0.0001
  norm       = 1.36248
  Prefactor  = 0.0001
  Prefactor  = 32.6987
  Prefactor  = 0.0001
  norm       = 4.72976
  Prefactor  = 6.90609
  Prefactor  = 21.8203
  Prefactor  = 59.7813
  Prefactor  = 10.3028
  Prefactor  = 0.0001
  Normalizat = 0.830536
  Prefactor  = 1.02008
 **********
 **   18 **HESSE 
 **********

 FCN=   6667.495     FROM HESSE     STATUS=OK           555 CALLS     4269 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.3585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.3857        124.48        .15885E-03   -1.5203    
   3  Prefactor     4.1778        4.8865        .94964E-03   -1.5299    
   4  Prefactor     8.9097        6.3639        .67140E-03   -1.5111    
   5  Prefactor     .10000E-03    4.7523        .17375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    24.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     28.695        21.156        .74790E-04   -1.4636    
   9  Prefactor     2.5999        4.0334        .16882E-03   -1.5385    
  10  Prefactor     .73036        5.6811        .23959E-02   -1.5537    
  11  Prefactor     .10000E-03    5.7398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.383        12.612        .52809E-03   -1.4949    
  13  norm          1.3739        2.4120        .14183E-03   -1.5474    
  14  norm          .38889        12.126        .19187E-02   -1.5583    
  15  Prefactor     36.690        24.843        .66164E-04   -1.4496    
  16  norm          37.841        64.544        .65272E-04   -1.4477    
  17  Prefactor     .10000E-03    74.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.3625        .60824        .36680E-04   -1.5475    
  19  Prefactor     .10000E-03    7.2794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     32.699        32.914        .70068E-04   -1.4564    
  21  Prefactor     .10000E-03    3.9398        .15772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.7298        2.0499        .35315E-03   -1.5273    
  23  Prefactor     6.9061        7.0213        .15267E-03   -1.5182    
  24  Prefactor     21.820        31.459        .85745E-04   -1.4773    
  25  Prefactor     59.781        60.440        .51880E-04   -1.4160    
  26  Prefactor     10.303        17.739        .12485E-03   -1.5066    
  27  Prefactor     .10000E-03    12.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .83054        .24096        .30214E-03   -.98946    
  29  Prefactor     1.0201        .19690        .24078E-03   -.92063    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.40438e-09
Minuit parameter uncertainties:
  1  1.46035e-05
  2  56.524
  3  4.88694
  4  6.36435
  5  1.88742e-05
  6  4.4585e-05
  7  3.44177e-05
  8  21.1618
  9  4.0338
  10  4.0742
  11  9.60483e-06
  12  12.6145
  13  2.41216
  14  4.34353
  15  24.8505
  16  64.6638
  17  4.19911e-05
  18  0.608244
  19  9.77886e-05
  20  32.9322
  21  6.85091e-05
  22  2.04996
  23  7.02215
  24  31.4828
  25  60.5022
  26  17.7483
  27  3.62684e-06
  28  0.241267
  29  0.197035
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  3.669e+01  2.485e+01  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:  1.020e+00  1.970e-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:  8.305e-01  2.413e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.51
Ra Dec: 185.883 8.302
Photon Index (Fixed Index): 1.92 +/- 0.00
Photon Flux (Fixed Index): 2.86e-08 +/- 1.93e-08
Energy Flux (Fixed Index): 2.41e-05 +/- 1.64e-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) = 6665.80137304
delta logL = 1.69358923971

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6665.10717883
delta logL = 2.38778345039

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0145       1.0000         .10000E-03   10000.    
     2 'Index     '    .47299E-06   1.0000          .0000       10.000    
     3 'Normalizat'    .83214       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0372       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=   6665.107     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      260 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0140        3.6066        .58438E-02   -.40588E-03
   2  Index         .30126E-11    .38178        .50000    ** at limit **
   3  Normalizat    .83209        .18754        .68260E-01    .29364E-04
   4  Prefactor     1.0372        .16509        .40726E-01    .21430E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.01402
  Index      = 3.01259e-12
  Normalizat = 0.832088
  Prefactor  = 1.03719
 **********
 **   18 **HESSE 
 **********

 FCN=   6665.107     FROM HESSE     STATUS=OK            31 CALLS      291 TOTAL
                     EDM=   .63E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0140        3.0291        .13795E-03   -1.5361    
   2  Index         .30126E-11    .84560        .26111E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .83209        .21667        .30201E-03   -.98889    
   4  Prefactor     1.0372        .19103        .23932E-03   -.91500    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.2787e-12
Minuit parameter uncertainties:
  1  3.02927
  2  3.23886e-06
  3  0.216899
  4  0.191153
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/546549': 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) = 6665.10717843
delta logL = 2.38778384821

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  3.014e+00  3.029e+00  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  3.013e-12  3.239e-06  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:  1.037e+00  1.912e-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:  8.321e-01  2.169e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.26
Ra Dec: 185.883 8.302
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 3.01e-09 +/- 3.03e-09
Energy Flux (Free Index): 1.51e-04 +/- 1.51e-04

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/546549/cmap_HighResolution_394588801_394848001_4FGL_J1223.5+0818_daily_bin599.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.86e-08', energy_flux2='1.51e-04', photon_flux_error='1.93e-08', dlogl='2.39e+00', energy_flux='2.41e-05', photon_flux2='3.01e-09', job_status='DONE', time_completed='2021-09-05 11:01:04.324895', photon_index_error2='0.00', photon_index2='0.00', ts='11.51', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='1.51e-04', EG='0.83', time_epoch_completed='1630864864.32', return_code='0', job_id='546549', GAL2='1.04', EG2='0.83', return_code2='0', energy_flux_error='1.64e-05', photon_flux_error2='3.03e-09', ts2='16.26', photon_index='1.92' WHERE bin_id='599' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:01:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 546549: <4FGL_J1223.5+0818_daily_bin599> in cluster <slac> Done

Job <4FGL_J1223.5+0818_daily_bin599> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 10:45:50 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:45:51 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:51 2021
Terminated at Sun Sep  5 11:01:04 2021
Results reported at Sun Sep  5 11:01:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin599 185.883 8.3017 394588801 394848001 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 :                                   751.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            914 sec.

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

