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


Performing analysis on: 4FGL_J1223.5+0818_daily_bin439
RA = 185.883, Dec = 8.3017
tmin = 353116801, tmax = 353376001
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='545045', job_status='RUN', time_executed='2021-09-05 10:43:56.692187', time_epoch_executed='1630863836.69' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='439'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/545045

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/545045/ft1_4FGL_J1223.5+0818_daily_bin439.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/545045/ft2_4FGL_J1223.5+0818_daily_bin439.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/545045/ft1_4FGL_J1223.5+0818_daily_bin439.fits outfile=/scratch/kocevski/545045/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin439.fits ra=185.883 dec=8.3017 rad=12.0 tmin=353116801.0 tmax=353376001.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 2.57
user 2.36
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/545045/ft2_4FGL_J1223.5+0818_daily_bin439.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/545045/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin439.fits evtable="EVENTS" outfile="/scratch/kocevski/545045/ft1_filtered_4FGL_J1223.5+0818_daily_bin439.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.40
user 0.25
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/545045/ft1_filtered_4FGL_J1223.5+0818_daily_bin439.fits" evtable="EVENTS" scfile=/scratch/kocevski/545045/ft2_4FGL_J1223.5+0818_daily_bin439.fits sctable="SC_DATA" outfile=/scratch/kocevski/545045/ltcube_353116801_353376001_4FGL_J1223.5+0818_daily_bin439.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/545045/ft2_4FGL_J1223.5+0818_daily_bin439.fits
.....................!
real 8.72
user 8.39
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/545045/ft1_filtered_4FGL_J1223.5+0818_daily_bin439.fits evtable="EVENTS" scfile=/scratch/kocevski/545045/ft2_4FGL_J1223.5+0818_daily_bin439.fits sctable="SC_DATA" expcube=/scratch/kocevski/545045/ltcube_353116801_353376001_4FGL_J1223.5+0818_daily_bin439.fits outfile=/scratch/kocevski/545045/expmap_353116801_353376001_4FGL_J1223.5+0818_daily_bin439.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/545045/ltcube_353116801_353376001_4FGL_J1223.5+0818_daily_bin439.fits
.....................!
real 139.71
user 136.15
sys 3.28

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/545045/ft1_filtered_4FGL_J1223.5+0818_daily_bin439.fits scfile=/scratch/kocevski/545045/ft2_4FGL_J1223.5+0818_daily_bin439.fits outfile=/scratch/kocevski/545045/cmap_353116801_353376001_4FGL_J1223.5+0818_daily_bin439.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.48
user 0.27
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/545045/ft1_filtered_4FGL_J1223.5+0818_daily_bin439.fits scfile=/scratch/kocevski/545045/ft2_4FGL_J1223.5+0818_daily_bin439.fits outfile=/scratch/kocevski/545045/cmap_HighResolution_353116801_353376001_4FGL_J1223.5+0818_daily_bin439.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.44
user 0.29
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.4623       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.7229       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.0836       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.1372       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.8306       1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.793       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.4081       1.0000         .10000E-03   10000.    
    13 'norm      '    3.5903       1.0000         .10000E-03   10000.    
    14 'norm      '    .48607E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    61.462       1.0000         .10000E-03   10000.    
    16 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    53.846       1.0000         .10000E-03   10000.    
    18 'norm      '    1.4683       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.2245       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .95793       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .20644E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.063       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10456E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    6.7332       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .72240       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0403       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=   6237.714     FROM MIGRAD    STATUS=CONVERGED    743 CALLS     3231 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.1638       -.12847E-09** at limit **
   2  Prefactor     .10000E-03    29.453        .68319E-08** at limit **
   3  Prefactor     3.4626        5.8030       -.15943E-06   -.12148E-03
   4  Prefactor     1.7237        4.2509       -.12503E-07   -.11708E-04
   5  Prefactor     .10000E-03    9.1282        .79321E-09** at limit **
   6  Prefactor     .10000E-03    49.389        .16082E-08** at limit **
   7  Prefactor     6.0797        17.559        .80221E-08   -.76725E-04
   8  Prefactor     .10000E-03    6.2057        .27659E-08** at limit **
   9  Prefactor     3.1373        2.7975       -.35989E-08   -.41102E-05
  10  Prefactor     9.8308        4.0917       -.38676E-08   -.40778E-05
  11  Prefactor     26.787        22.305       -.29007E-08    .94885E-04
  12  Prefactor     3.4103        8.0928       -.59474E-06   -.11310E-03
  13  norm          3.5894        2.7485        .86373E-07   -.73381E-05
  14  norm          .10000E-03    1.4133        .89503E-08** at limit **
  15  Prefactor     61.460        37.228       -.39055E-07    .83929E-03
  16  norm          .10000E-03    15.678       -.61418E-10** at limit **
  17  Prefactor     53.845        109.05       -.14615E-06    .34341E-03
  18  norm          1.4679        .53109        .48140E-08   -.22743E-04
  19  Prefactor     8.2251        8.9313       -.99002E-08    .40293E-04
  20  Prefactor     .10000E-03    12.016       -.80404E-09** at limit **
  21  Prefactor     .10000E-03    3.8412        .34696E-09** at limit **
  22  norm          .95830        1.5059       -.13399E-07   -.39485E-04
  23  Prefactor     .10000E-03    5.0580       -.51503E-08** at limit **
  24  Prefactor     11.063        16.984       -.83835E-08    .17487E-04
  25  Prefactor     .10000E-03    29.502       -.82032E-08** at limit **
  26  Prefactor     .10000E-03    7.0005       -.15520E-08** at limit **
  27  Prefactor     6.7261        14.684       -.35630E-07    .27417E-04
  28  Normalizat    .72247        .18800        .87696E-07   -.15451E-05
  29  Prefactor     1.0402        .16077        .64361E-08    .32954E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.46263
  Prefactor  = 1.72373
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.07968
  Prefactor  = 0.0001
  Prefactor  = 3.13729
  Prefactor  = 9.83082
  Prefactor  = 26.7868
  Prefactor  = 3.4103
  norm       = 3.58939
  norm       = 0.0001
  Prefactor  = 61.4605
  norm       = 0.0001
  Prefactor  = 53.8454
  norm       = 1.4679
  Prefactor  = 8.22505
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.958302
  Prefactor  = 0.0001
  Prefactor  = 11.0632
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.72607
  Normalizat = 0.722473
  Prefactor  = 1.04018
 **********
 **   18 **HESSE 
 **********

 FCN=   6237.714     FROM HESSE     STATUS=OK           563 CALLS     3794 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.1650        .17529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    29.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.4626        6.7777        .10867E-02   -1.5336    
   4  Prefactor     1.7237        4.2129        .24744E-03   -1.5445    
   5  Prefactor     .10000E-03    9.1670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    49.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.0797        17.533        .16278E-03   -1.5215    
   8  Prefactor     .10000E-03    6.2133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.1373        2.7845        .11571E-03   -1.5354    
  10  Prefactor     9.8308        4.0869        .94538E-04   -1.5081    
  11  Prefactor     26.787        22.066        .77394E-04   -1.4672    
  12  Prefactor     3.4103        17.170        .10957E-02   -1.5339    
  13  norm          3.5894        3.3603        .96530E-04   -1.5329    
  14  norm          .10000E-03    9.5062        .17073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     61.460        37.223        .51181E-04   -1.4138    
  16  norm          .10000E-03    15.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     53.845        108.95        .54661E-04   -1.4239    
  18  norm          1.4679        .51887        .30980E-04   -1.5466    
  19  Prefactor     8.2251        8.9309        .13980E-03   -1.5134    
  20  Prefactor     .10000E-03    12.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.8562        .15113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .95830        1.4809        .11203E-03   -1.5512    
  23  Prefactor     .10000E-03    5.6559        .60596E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     11.063        16.978        .12045E-03   -1.5043    
  25  Prefactor     .10000E-03    29.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    7.0318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     6.7261        14.727        .15463E-03   -1.5189    
  28  Normalizat    .72247        .22026        .29433E-03   -1.0301    
  29  Prefactor     1.0402        .18828        .22074E-03   -.91402    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.73514e-09
Minuit parameter uncertainties:
  1  1.62849e-06
  2  0.000178924
  3  6.7792
  4  4.2136
  5  4.10582e-07
  6  4.28314e-05
  7  17.5474
  8  1.27884e-06
  9  2.78461
  10  4.08698
  11  22.0726
  12  15.3112
  13  3.36044
  14  1.40633e-05
  15  37.2374
  16  2.11009e-06
  17  109.359
  18  0.518872
  19  8.9323
  20  1.74017e-06
  21  1.84516e-07
  22  1.48095
  23  4.14447e-05
  24  16.9856
  25  0.000171557
  26  1.10963e-06
  27  14.7345
  28  0.220534
  29  0.188399
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  6.146e+01  3.724e+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.040e+00  1.884e-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:  7.225e-01  2.205e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.13
Ra Dec: 185.883 8.302
Photon Index (Fixed Index): 1.92 +/- 0.00
Photon Flux (Fixed Index): 4.79e-08 +/- 2.90e-08
Energy Flux (Fixed Index): 4.04e-05 +/- 2.45e-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) = 6236.64813065
delta logL = 1.06622803071

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6236.63739297
delta logL = 1.07696570689

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.467       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5579       1.0000          .0000       10.000    
     3 'Normalizat'    .66917       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0655       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=   6236.637     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      296 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.461        30.928        .82687E-04   -.20720E-03
   2  Index         2.5580        .54533        .29473E-02   -.14377E-03
   3  Normalizat    .66917        .21304        .30445E-03   -.15269E-03
   4  Prefactor     1.0655        .18697        .21812E-03   -.38590E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.461
  Index      = 2.55801
  Normalizat = 0.669173
  Prefactor  = 1.06552
 **********
 **   18 **HESSE 
 **********

 FCN=   6236.637     FROM HESSE     STATUS=OK            25 CALLS      321 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.461        25.182        .33075E-05   -1.4739    
   2  Index         2.5580        .44398        .11789E-03   -.51025    
   3  Normalizat    .66917        .21232        .12178E-04   -1.0512    
   4  Prefactor     1.0655        .18666        .43625E-04   -.90576    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70767e-10
Minuit parameter uncertainties:
  1  25.1932
  2  0.44475
  3  0.212576
  4  0.186771
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/545045': 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) = 6236.63739293
delta logL = 1.07696574756

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  2.346e+01  2.519e+01  1.000e-04  1.000e+04 ( 1.000e-14)
321        Index:  2.558e+00  4.447e-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:  1.066e+00  1.868e-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:  6.692e-01  2.126e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.32
Ra Dec: 185.883 8.302
Photon Index (Free Index): 2.56 +/- 0.44
Photon Flux (Free Index): 9.56e-08 +/- 5.17e-08
Energy Flux (Free Index): 2.61e-05 +/- 1.30e-05

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/545045/cmap_HighResolution_353116801_353376001_4FGL_J1223.5+0818_daily_bin439.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.79e-08', energy_flux2='2.61e-05', photon_flux_error='2.90e-08', dlogl='1.08e+00', energy_flux='4.04e-05', photon_flux2='9.56e-08', job_status='DONE', time_completed='2021-09-05 10:52:34.159640', photon_index_error2='0.44', photon_index2='2.56', ts='7.13', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='1.30e-05', EG='0.72', time_epoch_completed='1630864354.16', return_code='0', job_id='545045', GAL2='1.07', EG2='0.67', return_code2='0', energy_flux_error='2.45e-05', photon_flux_error2='5.17e-08', ts2='9.32', photon_index='1.92' WHERE bin_id='439' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:52:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 545045: <4FGL_J1223.5+0818_daily_bin439> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin439 185.883 8.3017 353116801 353376001 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 :                                   513.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             275.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   691 sec.
    Turnaround time :                            693 sec.

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

