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


Performing analysis on: 4FGL_J1223.5+0818_daily_bin657
RA = 185.883, Dec = 8.3017
tmin = 409622401, tmax = 409881601
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='546621', job_status='RUN', time_executed='2021-09-05 10:49:19.226257', time_epoch_executed='1630864159.23' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='657'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/546621

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/546621/ft1_4FGL_J1223.5+0818_daily_bin657.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/546621/ft2_4FGL_J1223.5+0818_daily_bin657.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/546621/ft1_4FGL_J1223.5+0818_daily_bin657.fits outfile=/scratch/kocevski/546621/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin657.fits ra=185.883 dec=8.3017 rad=12.0 tmin=409622401.0 tmax=409881601.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 5.68
user 5.43
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/546621/ft1_filtered_4FGL_J1223.5+0818_daily_bin657.fits" evtable="EVENTS" scfile=/scratch/kocevski/546621/ft2_4FGL_J1223.5+0818_daily_bin657.fits sctable="SC_DATA" outfile=/scratch/kocevski/546621/ltcube_409622401_409881601_4FGL_J1223.5+0818_daily_bin657.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/546621/ft2_4FGL_J1223.5+0818_daily_bin657.fits
.....................!
real 11.97
user 11.58
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/546621/ft1_filtered_4FGL_J1223.5+0818_daily_bin657.fits evtable="EVENTS" scfile=/scratch/kocevski/546621/ft2_4FGL_J1223.5+0818_daily_bin657.fits sctable="SC_DATA" expcube=/scratch/kocevski/546621/ltcube_409622401_409881601_4FGL_J1223.5+0818_daily_bin657.fits outfile=/scratch/kocevski/546621/expmap_409622401_409881601_4FGL_J1223.5+0818_daily_bin657.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/546621/ltcube_409622401_409881601_4FGL_J1223.5+0818_daily_bin657.fits
.....................!
real 190.40
user 184.99
sys 5.00

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/546621/ft1_filtered_4FGL_J1223.5+0818_daily_bin657.fits scfile=/scratch/kocevski/546621/ft2_4FGL_J1223.5+0818_daily_bin657.fits outfile=/scratch/kocevski/546621/cmap_409622401_409881601_4FGL_J1223.5+0818_daily_bin657.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/546621/ft1_filtered_4FGL_J1223.5+0818_daily_bin657.fits scfile=/scratch/kocevski/546621/ft2_4FGL_J1223.5+0818_daily_bin657.fits outfile=/scratch/kocevski/546621/cmap_HighResolution_409622401_409881601_4FGL_J1223.5+0818_daily_bin657.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.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29010E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.879       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4075       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.1298       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.1256       1.0000         .10000E-03   10000.    
    13 'norm      '    14.886       1.0000         .10000E-03   10000.    
    14 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.1636       1.0000         .10000E-03   10000.    
    16 'norm      '    4.8662       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.5173       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.8725       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.136       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10404E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    6.5101       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.5519       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .74029       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=   4718.592     FROM MIGRAD    STATUS=CONVERGED    738 CALLS     3146 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10020E-03    21.233       -.12656E-05** at limit **
   2  Prefactor     .10000E-03    73.148       -.50015E-06** at limit **
   3  Prefactor     .10000E-03    6.7348       -.14925E-07** at limit **
   4  Prefactor     28.877        16.894       -.40129E-06   -.55952E-04
   5  Prefactor     2.4076        17.408       -.12028E-05   -.13274E-03
   6  Prefactor     .10000E-03    42.833       -.34791E-07** at limit **
   7  Prefactor     .10000E-03    33.867        .16667E-04** at limit **
   8  Prefactor     .10000E-03    76.746        .11383E-04** at limit **
   9  Prefactor     .10000E-03    2.2497        .21360E-07** at limit **
  10  Prefactor     3.1292        4.4002       -.34853E-06   -.44690E-03
  11  Prefactor     .10000E-03    12.904       -.67865E-07** at limit **
  12  Prefactor     7.1220        22.821        .13007E-06   -.62130E-04
  13  norm          14.885        6.3839       -.37611E-08   -.12621E-03
  14  norm          .10000E-03    1.5838        .51659E-07** at limit **
  15  Prefactor     1.1385        233.55       -.61266E-05   -.41745E-04
  16  norm          4.8448        91.001       -.27203E-04   -.90058E-05
  17  Prefactor     .10000E-03    78.668        .15385E-04** at limit **
  18  norm          1.5174        .71842        .17905E-06   -.23590E-03
  19  Prefactor     .10000E-03    3.7803        .10862E-09** at limit **
  20  Prefactor     .10000E-03    10.303        .36300E-07** at limit **
  21  Prefactor     .10000E-03    4.1067       -.13970E-07** at limit **
  22  norm          3.8724        2.1703        .53315E-08   -.20572E-04
  23  Prefactor     10.134        11.611       -.13022E-06   -.64772E-06
  24  Prefactor     .10000E-03    25.073       -.14948E-04** at limit **
  25  Prefactor     .10000E-03    51.661       -.25229E-04** at limit **
  26  Prefactor     .10000E-03    22.213        .78888E-05** at limit **
  27  Prefactor     6.5107        8.4543       -.64156E-06   -.20185E-04
  28  Normalizat    1.5519        .25042       -.11102E-06    .71443E-05
  29  Prefactor     .74030        .20604        .13767E-05   -.24832E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100198
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.8767
  Prefactor  = 2.40763
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.12918
  Prefactor  = 0.0001
  Prefactor  = 7.12204
  norm       = 14.8855
  norm       = 0.0001
  Prefactor  = 1.13849
  norm       = 4.84481
  Prefactor  = 0.0001
  norm       = 1.51737
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.87238
  Prefactor  = 10.1342
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.51074
  Normalizat = 1.55192
  Prefactor  = 0.740302
 **********
 **   18 **HESSE 
 **********

 FCN=   4718.592     FROM HESSE     STATUS=OK           555 CALLS     3701 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10020E-03    172.57        .61197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    73.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.7660        .17409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     28.877        16.815        .74553E-04   -1.4633    
   5  Prefactor     2.4076        17.445        .26386E-03   -1.5398    
   6  Prefactor     .10000E-03    42.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    33.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    77.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.2864        .10026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.1292        4.4083        .16068E-03   -1.5354    
  11  Prefactor     .10000E-03    12.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.1220        22.732        .15027E-03   -1.5174    
  13  norm          14.885        6.3713        .90528E-04   -1.4936    
  14  norm          .10000E-03    1.5945        .84364E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.1385        243.90        .42664E-02   -1.5495    
  16  norm          4.8448        91.805        .18235E-03   -1.5268    
  17  Prefactor     .10000E-03    78.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.5174        .71447        .36936E-04   -1.5462    
  19  Prefactor     .10000E-03    3.7863        .13044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.1128        .13595E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.8724        2.1671        .72363E-04   -1.5314    
  23  Prefactor     10.134        11.606        .12586E-03   -1.5071    
  24  Prefactor     .10000E-03    25.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    51.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    22.699        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     6.5107        8.4536        .15729E-03   -1.5198    
  28  Normalizat    1.5519        .29609        .26138E-03   -.76330    
  29  Prefactor     .74030        .24148        .30288E-03   -1.0197    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50589e-09
Minuit parameter uncertainties:
  1  0.0117182
  2  1.31894e-05
  3  1.08573e-06
  4  16.8176
  5  12.9667
  6  1.16967e-05
  7  6.79647e-06
  8  0.00013185
  9  3.39148e-06
  10  4.40875
  11  5.32004e-06
  12  22.7592
  13  6.37162
  14  6.94751e-06
  15  33.4647
  16  42.2542
  17  1.79152e-05
  18  0.714478
  19  3.20695e-07
  20  1.1087e-06
  21  1.30713e-06
  22  2.16715
  23  11.6086
  24  3.64083e-06
  25  3.67116e-05
  26  7.84901e-05
  27  8.4552
  28  0.296427
  29  0.241822
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.138e+00  3.346e+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:  7.403e-01  2.418e-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.552e+00  2.964e-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: 8.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/546621/likelihoodResults_409622401_409881601_4FGL_J1223.5+0818_daily_bin657.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) = 4718.56745916
delta logL = 0.024528190741

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4718.55719557
delta logL = 0.0347917812805

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1427       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4811       1.0000          .0000       10.000    
     3 'Normalizat'    1.5452       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74041       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=   4718.557     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      276 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1383        51.509        .22866E-03   -.16859E-03
   2  Index         2.4814        2.4673        .12260E-01   -.27547E-04
   3  Normalizat    1.5452        .28488        .26186E-03   -.45126E-04
   4  Prefactor     .74041        .23804        .30284E-03   -.30033E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.13833
  Index      = 2.48142
  Normalizat = 1.54521
  Prefactor  = 0.740408
 **********
 **   18 **HESSE 
 **********

 FCN=   4718.557     FROM HESSE     STATUS=OK            25 CALLS      301 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1383        23.715        .91466E-05   -1.5354    
   2  Index         2.4814        1.7343        .49041E-03   -.52789    
   3  Normalizat    1.5452        .28502        .52372E-04   -.76516    
   4  Prefactor     .74041        .23794        .12113E-04   -1.0196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67519e-10
Minuit parameter uncertainties:
  1  17.2633
  2  1.78465
  3  0.28532
  4  0.238264
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/546621': 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) = 4718.55719553
delta logL = 0.0347918231855

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  3.138e+00  1.726e+01  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  2.481e+00  1.785e+00  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.404e-01  2.383e-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.545e+00  2.853e-01  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/546621/cmap_HighResolution_409622401_409881601_4FGL_J1223.5+0818_daily_bin657.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.04e-03', job_status='DONE', photon_flux_upper_limit='8.11e-08', time_completed='2021-09-05 11:00:29.831277', job_id='546621', GAL2='0.74', fit_tolerance='1e-08', EG2='1.55', EG='1.55', time_epoch_completed='1630864829.83', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='3.48e-02', ts2='0.07', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='657' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:00:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 546621: <4FGL_J1223.5+0818_daily_bin657> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin657 185.883 8.3017 409622401 409881601 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 :                                   669.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             261.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            873 sec.

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

