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


Performing analysis on: 4FGL_J1223.5+0818_daily_bin275
RA = 185.883, Dec = 8.3017
tmin = 310608001, tmax = 310867201
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='544821', job_status='RUN', time_executed='2021-09-05 10:40:57.484089', time_epoch_executed='1630863657.48' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='275'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/544821

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/544821/ft1_4FGL_J1223.5+0818_daily_bin275.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/544821/ft2_4FGL_J1223.5+0818_daily_bin275.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/544821/ft1_4FGL_J1223.5+0818_daily_bin275.fits outfile=/scratch/kocevski/544821/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin275.fits ra=185.883 dec=8.3017 rad=12.0 tmin=310608001.0 tmax=310867201.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.50
user 3.29
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/544821/ft1_filtered_4FGL_J1223.5+0818_daily_bin275.fits" evtable="EVENTS" scfile=/scratch/kocevski/544821/ft2_4FGL_J1223.5+0818_daily_bin275.fits sctable="SC_DATA" outfile=/scratch/kocevski/544821/ltcube_310608001_310867201_4FGL_J1223.5+0818_daily_bin275.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/544821/ft2_4FGL_J1223.5+0818_daily_bin275.fits
.....................!
real 11.82
user 11.45
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/544821/ft1_filtered_4FGL_J1223.5+0818_daily_bin275.fits evtable="EVENTS" scfile=/scratch/kocevski/544821/ft2_4FGL_J1223.5+0818_daily_bin275.fits sctable="SC_DATA" expcube=/scratch/kocevski/544821/ltcube_310608001_310867201_4FGL_J1223.5+0818_daily_bin275.fits outfile=/scratch/kocevski/544821/expmap_310608001_310867201_4FGL_J1223.5+0818_daily_bin275.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/544821/ltcube_310608001_310867201_4FGL_J1223.5+0818_daily_bin275.fits
.....................!
real 190.11
user 185.16
sys 4.49

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/544821/ft1_filtered_4FGL_J1223.5+0818_daily_bin275.fits scfile=/scratch/kocevski/544821/ft2_4FGL_J1223.5+0818_daily_bin275.fits outfile=/scratch/kocevski/544821/cmap_310608001_310867201_4FGL_J1223.5+0818_daily_bin275.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.72
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/544821/ft1_filtered_4FGL_J1223.5+0818_daily_bin275.fits scfile=/scratch/kocevski/544821/ft2_4FGL_J1223.5+0818_daily_bin275.fits outfile=/scratch/kocevski/544821/cmap_HighResolution_310608001_310867201_4FGL_J1223.5+0818_daily_bin275.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.70
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    121.89       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.122       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.8268       1.0000         .10000E-03   10000.    
     6 'Prefactor '    108.52       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6205       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.9495       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .12944E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.0536       1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.581       1.0000         .10000E-03   10000.    
    16 'norm      '    .10222E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.7878       1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.157       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.1010       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.3269       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.4894       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .89677       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=   7136.624     FROM MIGRAD    STATUS=CONVERGED    703 CALLS     3631 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.303        .18111E-05** at limit **
   2  Prefactor     121.86        100.74       -.22811E-04    .14773E-05
   3  Prefactor     .10000E-03    5.1930       -.11056E-05** at limit **
   4  Prefactor     10.123        7.9303        .20425E-07    .13129E-04
   5  Prefactor     7.8244        19.915        .41179E-05    .79760E-05
   6  Prefactor     108.50        111.34       -.19184E-04    .65063E-05
   7  Prefactor     .10000E-03    24.072        .57221E-05** at limit **
   8  Prefactor     .10000E-03    18.417       -.13492E-04** at limit **
   9  Prefactor     4.6198        4.7597       -.29678E-06   -.26912E-03
  10  Prefactor     2.9486        5.0609       -.99379E-06   -.69119E-03
  11  Prefactor     .10000E-03    10.671        .56616E-05** at limit **
  12  Prefactor     .10000E-03    5.2585        .97997E-06** at limit **
  13  norm          .10000E-03    1.1393       -.12795E-06** at limit **
  14  norm          7.0519        4.0410        .15524E-05    .47769E-03
  15  Prefactor     15.579        19.791       -.59897E-06    .97908E-06
  16  norm          .10000E-03    55.564       -.38262E-04** at limit **
  17  Prefactor     .10000E-03    44.736        .33977E-04** at limit **
  18  norm          1.7876        .64533       -.15670E-06    .12091E-02
  19  Prefactor     18.158        13.819       -.40961E-06    .19545E-04
  20  Prefactor     .10000E-03    15.063       -.22837E-05** at limit **
  21  Prefactor     .10000E-03    2.6421        .24032E-06** at limit **
  22  norm          4.1007        1.9598       -.20041E-06   -.62419E-04
  23  Prefactor     .10000E-03    2.7278       -.23463E-06** at limit **
  24  Prefactor     .10000E-03    9.4021       -.64501E-05** at limit **
  25  Prefactor     .10000E-03    13.666        .55779E-05** at limit **
  26  Prefactor     .10000E-03    6.7575        .10995E-05** at limit **
  27  Prefactor     5.3242        14.452       -.11281E-05   -.71590E-04
  28  Normalizat    1.4897        .22224        .25291E-05    .23670E-04
  29  Prefactor     .89659        .17740        .19063E-06    .18379E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 121.861
  Prefactor  = 0.0001
  Prefactor  = 10.1226
  Prefactor  = 7.82438
  Prefactor  = 108.503
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.61981
  Prefactor  = 2.94859
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.05187
  Prefactor  = 15.5792
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.78764
  Prefactor  = 18.1582
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.10069
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.32419
  Normalizat = 1.48967
  Prefactor  = 0.896589
 **********
 **   18 **HESSE 
 **********

 FCN=   7136.624     FROM HESSE     STATUS=OK           551 CALLS     4182 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     121.86        100.96        .18227E-03   -1.3496    
   3  Prefactor     .10000E-03    5.2197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.123        7.9312        .12594E-03   -1.5072    
   5  Prefactor     7.8244        19.834        .14333E-03   -1.5148    
   6  Prefactor     108.50        110.94        .38608E-04   -1.3621    
   7  Prefactor     .10000E-03    24.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    18.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.6198        4.6634        .15310E-03   -1.5278    
  10  Prefactor     2.9486        4.9659        .20216E-03   -1.5365    
  11  Prefactor     .10000E-03    10.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.2767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.4484        .17503E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.0519        4.0467        .11890E-03   -1.5177    
  15  Prefactor     15.579        19.792        .10147E-03   -1.4918    
  16  norm          .10000E-03    55.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    44.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.7876        .64196        .37349E-04   -1.5441    
  19  Prefactor     18.158        13.826        .93993E-04   -1.4855    
  20  Prefactor     .10000E-03    15.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.6465        .13410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.1007        1.9562        .77158E-04   -1.5303    
  23  Prefactor     .10000E-03    2.7305        .13626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    9.4029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    13.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    6.7868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     5.3242        14.460        .17413E-03   -1.5246    
  28  Normalizat    1.4897        .26514        .28450E-03   -.78069    
  29  Prefactor     .89659        .20949        .29560E-03   -.96260    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.6686e-10
Minuit parameter uncertainties:
  1  1.10322e-05
  2  101.101
  3  4.05787e-05
  4  7.93204
  5  19.8503
  6  111.151
  7  4.61035e-05
  8  1.04658e-05
  9  4.66376
  10  4.96656
  11  1.47961e-05
  12  7.87019e-06
  13  8.95893e-06
  14  4.04685
  15  19.8002
  16  0.000343072
  17  2.44065e-05
  18  0.641966
  19  13.8287
  20  1.96817e-06
  21  2.21567e-06
  22  1.9562
  23  1.88149e-06
  24  3.83502e-06
  25  8.22289e-06
  26  1.60791e-05
  27  14.4697
  28  0.265389
  29  0.209681
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.558e+01  1.980e+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:  8.966e-01  2.097e-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.490e+00  2.654e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.38
Ra Dec: 185.883 8.302
Photon Index (Fixed Index): 1.92 +/- 0.00
Photon Flux (Fixed Index): 1.21e-08 +/- 1.54e-08
Energy Flux (Fixed Index): 1.03e-05 +/- 1.30e-05

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

Saving results to:
/scratch/kocevski/544821/likelihoodResults_310608001_310867201_4FGL_J1223.5+0818_daily_bin275.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7135.91759065
delta logL = 0.706183723673

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7135.89440234
delta logL = 0.729372041284

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.709       1.0000         .10000E-03   10000.    
     2 'Index     '    1.0624       1.0000          .0000       10.000    
     3 'Normalizat'    1.4954       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89521       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=   7135.894     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      221 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.753        45.826        .22004E-02   -.68769E-05
   2  Index         1.0643        1.0451        .36083       -.19750E-04
   3  Normalizat    1.4952        .21180        .64207E-01    .13678E-04
   4  Prefactor     .89549        .17587        .66846E-01    .19764E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.753
  Index      = 1.06432
  Normalizat = 1.49516
  Prefactor  = 0.895486
 **********
 **   18 **HESSE 
 **********

 FCN=   7135.894     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.753        25.542        .88015E-04   -1.4797    
   2  Index         1.0643        .65997        .14179E-01   -.90615    
   3  Normalizat    1.4952        .24860        .28400E-03   -.77914    
   4  Prefactor     .89549        .20783        .29569E-03   -.96299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.52381e-10
Minuit parameter uncertainties:
  1  25.5556
  2  0.665119
  3  0.2488
  4  0.208012
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/544821': 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) = 7135.8943974
delta logL = 0.729376977915

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  2.075e+01  2.556e+01  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  1.064e+00  6.651e-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:  8.955e-01  2.080e-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.495e+00  2.488e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.83
Ra Dec: 185.883 8.302
Photon Index (Free Index): 1.06 +/- 0.67
Photon Flux (Free Index): 4.42e-09 +/- 5.76e-09
Energy Flux (Free Index): 5.42e-05 +/- 8.34e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/544821/cmap_HighResolution_310608001_310867201_4FGL_J1223.5+0818_daily_bin275.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.70e-03', comment='SUCCESS', photon_flux='1.21e-08', energy_flux2='5.42e-05', photon_flux_error='1.54e-08', dlogl='7.29e-01', energy_flux='1.03e-05', photon_flux2='4.42e-09', job_status='DONE', time_completed='2021-09-05 10:55:43.745770', photon_index_error2='0.67', photon_index2='1.06', ts='1.38', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='6.31e-08', energy_flux_error2='8.34e-05', EG='1.49', time_epoch_completed='1630864543.75', return_code='0', job_id='544821', GAL2='0.90', EG2='1.50', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='5.76e-09', ts2='2.83', photon_index='1.92' WHERE bin_id='275' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:55:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 544821: <4FGL_J1223.5+0818_daily_bin275> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin275 185.883 8.3017 310608001 310867201 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 :                                   881.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             348.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            904 sec.

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

