aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 173 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7174
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1223.5+0818_daily_bin1750
RA = 185.883, Dec = 8.3017
tmin = 692928001, tmax = 693187201
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='10735', job_status='RUN', time_executed='2022-12-20 00:48:18.860227', time_epoch_executed='1671526098.86' WHERE source_name='4FGL J1223.5+0818' and cadence='daily' and bin_id='1750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/10735

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/10735/ft1_4FGL_J1223.5+0818_daily_bin1750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/10735/ft2_4FGL_J1223.5+0818_daily_bin1750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/10735/ft1_4FGL_J1223.5+0818_daily_bin1750.fits outfile=/scratch/kocevski/10735/ft1_filteredMKT_4FGL_J1223.5+0818_daily_bin1750.fits ra=185.883 dec=8.3017 rad=12.0 tmin=692928001.0 tmax=693187201.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.49
user 3.27
sys 0.18

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

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

Number of photons that the gtmktime cut: 608

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/10735/ft1_filtered_4FGL_J1223.5+0818_daily_bin1750.fits" evtable="EVENTS" scfile=/scratch/kocevski/10735/ft2_4FGL_J1223.5+0818_daily_bin1750.fits sctable="SC_DATA" outfile=/scratch/kocevski/10735/ltcube_692928001_693187201_4FGL_J1223.5+0818_daily_bin1750.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/10735/ft2_4FGL_J1223.5+0818_daily_bin1750.fits
.....................!
real 12.06
user 11.62
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/10735/ft1_filtered_4FGL_J1223.5+0818_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/10735/ft2_4FGL_J1223.5+0818_daily_bin1750.fits sctable="SC_DATA" expcube=/scratch/kocevski/10735/ltcube_692928001_693187201_4FGL_J1223.5+0818_daily_bin1750.fits outfile=/scratch/kocevski/10735/expmap_692928001_693187201_4FGL_J1223.5+0818_daily_bin1750.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/10735/ltcube_692928001_693187201_4FGL_J1223.5+0818_daily_bin1750.fits
.....................!
real 190.00
user 184.66
sys 4.73

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/10735/ft1_filtered_4FGL_J1223.5+0818_daily_bin1750.fits scfile=/scratch/kocevski/10735/ft2_4FGL_J1223.5+0818_daily_bin1750.fits outfile=/scratch/kocevski/10735/cmap_692928001_693187201_4FGL_J1223.5+0818_daily_bin1750.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/10735/ft1_filtered_4FGL_J1223.5+0818_daily_bin1750.fits scfile=/scratch/kocevski/10735/ft2_4FGL_J1223.5+0818_daily_bin1750.fits outfile=/scratch/kocevski/10735/cmap_HighResolution_692928001_693187201_4FGL_J1223.5+0818_daily_bin1750.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/10735/ft1_filtered_4FGL_J1223.5+0818_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/10735/ft2_4FGL_J1223.5+0818_daily_bin1750.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/10735/Model_4FGL_J1223.5+0818_daily_bin1750.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/10735/ft1_filtered_4FGL_J1223.5+0818_daily_bin1750.fits.....................!
real 58.31
user 57.00
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/10735/ft1_filtered_4FGL_J1223.5+0818_daily_bin1750.fits', '/scratch/kocevski/10735/ft2_4FGL_J1223.5+0818_daily_bin1750.fits', expMap='/scratch/kocevski/10735/expmap_692928001_693187201_4FGL_J1223.5+0818_daily_bin1750.fits', expCube='/scratch/kocevski/10735/ltcube_692928001_693187201_4FGL_J1223.5+0818_daily_bin1750.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/10735/Model_4FGL_J1223.5+0818_daily_bin1750.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  0.000e+00  1.000e+06 ( 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/10735/ft1_filtered_4FGL_J1223.5+0818_daily_bin1750.fits
Spacecraft file(s): /scratch/kocevski/10735/ft2_4FGL_J1223.5+0818_daily_bin1750.fits
Exposure map: /scratch/kocevski/10735/expmap_692928001_693187201_4FGL_J1223.5+0818_daily_bin1750.fits
Exposure cube: /scratch/kocevski/10735/ltcube_692928001_693187201_4FGL_J1223.5+0818_daily_bin1750.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/10735/Model_4FGL_J1223.5+0818_daily_bin1750.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) = 6578.47765727

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .35795E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .87418E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .20771E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .47715E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .78377E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .37575       1.0000          .0000       .10000E+07
     7 'Prefactor '    .28056       1.0000          .0000       .10000E+07
     8 'Prefactor '    .46735E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .33010E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .37276E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    16.038       1.0000          .0000       .10000E+07
    12 'norm      '    .38858E-09   1.0000          .0000       .10000E+07
    13 'norm      '    5.5698       1.0000          .0000       .10000E+07
    14 'Prefactor '    .41327E-03   1.0000          .0000       .10000E+07
    15 'norm      '    2.5376       1.0000          .0000       .10000E+07
    16 'norm      '    1.1610       1.0000          .0000       .10000E+07
    17 'Prefactor '    8.0555       1.0000          .0000       .10000E+07
    18 'Prefactor '    .81834E-04   1.0000          .0000       .10000E+07
    19 'norm      '    .46086       1.0000          .0000       .10000E+07
    20 'Prefactor '    19.478       1.0000          .0000       .10000E+07
    21 'Prefactor '    .38620E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    3.1080       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.6005       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .72980       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6578.465     FROM MIGRAD    STATUS=CONVERGED    154 CALLS     1981 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .35393E-05    78.041       -.25165E-05** at limit **
   2  Prefactor      .0000        4.1459        .17967E-06** at limit **
   3  Prefactor     .33307E-08    17.419        .35577E-06** at limit **
   4  Prefactor     .14805E-06    4.2812       -.82978E-07** at limit **
   5  Prefactor     .93403E-06    34.366       -.27517E-06** at limit **
   6  Prefactor     .15556E-03    19.975       -.11718E-05** at limit **
   7  Prefactor     .99865E-07    49.614        .78304E-06** at limit **
   8  Prefactor      .0000        .53424       -.11039E-06** at limit **
   9  Prefactor     .55511E-10    4.8343        .26129E-06** at limit **
  10  Prefactor     .61512E-06    4.9186       -.22396E-07** at limit **
  11  Prefactor     16.056        2.9405       -.13768E-07    .46547E-01
  12  norm           .0000        .89225        .14282E-06** at limit **
  13  norm          5.6399        4.0572        .50929E-07    .28483E-02
  14  Prefactor     .13128E-06    12.188        .42548E-06** at limit **
  15  norm          1.4750        6.6217       -.24063E-06   -.32416E-01
  16  norm          1.1612        .56919       -.14074E-08    .27696E-02
  17  Prefactor     8.0504        9.6807       -.21492E-07   -.10218E-02
  18  Prefactor      .0000        3.2986        .22874E-06** at limit **
  19  norm          .46078        .91018        .12528E-06   -.16319E-02
  20  Prefactor     19.476        7.4905       -.75234E-08   -.77712E-02
  21  Prefactor     .66397E-06    7.7038       -.20114E-06** at limit **
  22  Prefactor     3.0821        9.5944       -.11963E-07   -.89661E-02
  23  Normalizat    1.6004        .23179       -.45351E-05    .14331E-03
  24  Prefactor     .73027        .19411       -.14423E-05    .10344E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.53928e-06
  Prefactor  = 0
  Prefactor  = 3.33067e-09
  Prefactor  = 1.48048e-07
  Prefactor  = 9.34031e-07
  Prefactor  = 0.000155559
  Prefactor  = 9.98646e-08
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 6.15119e-07
  Prefactor  = 16.0557
  norm       = 0
  norm       = 5.6399
  Prefactor  = 1.31284e-07
  norm       = 1.47501
  norm       = 1.16123
  Prefactor  = 8.05041
  Prefactor  = 0
  norm       = 0.460785
  Prefactor  = 19.4761
  Prefactor  = 6.63969e-07
  Prefactor  = 3.0821
  Normalizat = 1.60037
  Prefactor  = 0.730274
 **********
 **   18 **HESSE 
 **********

 FCN=   6578.465     FROM HESSE     STATUS=OK           449 CALLS     2430 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .35393E-05    82.183        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        4.1446        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .33307E-08    19.483        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .14805E-06    13.108        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .93403E-06    35.717        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .15556E-03    329.87        .92351E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .99865E-07    50.148        .10488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        .53380        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55511E-10    1.1746        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .61512E-06    13.104        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.056        14.163        .24983E-03   -1.5628    
  12  norm           .0000        .89450        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.6399        4.4750        .42545E-03   -1.5660    
  14  Prefactor     .13128E-06    15.825        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.4750        122.76        .64085E-03   -1.5684    
  16  norm          1.1612        .58593        .89312E-03   -1.5686    
  17  Prefactor     8.0504        9.7228        .35302E-03   -1.5651    
  18  Prefactor      .0000        3.2994        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .46078        1.0263        .24517E-02   -1.5694    
  20  Prefactor     19.476        12.324        .22666E-03   -1.5620    
  21  Prefactor     .66397E-06    12.631        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.0821        12.259        .57492E-03   -1.5673    
  23  Normalizat    1.6004        .19847        .54703E-01   -.74996    
  24  Prefactor     .73027        .16657        .65647E-01   -1.0235    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17776e-06
Minuit parameter uncertainties:
  1  0.0341101
  2  5.33091e-06
  3  0.000507424
  4  0.00278616
  5  0.0115518
  6  0.453077
  7  0.00447571
  8  2.46746e-06
  9  1.60691e-05
  10  0.0056782
  11  14.1631
  12  3.52501e-06
  13  4.47498
  14  0.00288289
  15  26.9129
  16  0.585931
  17  9.72286
  18  1.89304e-05
  19  1.02628
  20  12.3236
  21  0.00579189
  22  12.2594
  23  0.198566
  24  0.166685
Done.

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

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  1.313e-07  2.883e-03  0.000e+00  1.000e+06 ( 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.303e-01  1.667e-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.600e+00  1.986e-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: 5.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/10735/likelihoodResults_692928001_693187201_4FGL_J1223.5+0818_daily_bin1750.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) = 6578.49500845
delta logL = -0.0302575846672

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6578.46475088
delta logL = -1.37461029226e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .47345E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.6770       1.0000          .0000       10.000    
     3 'Normalizat'    1.6004       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73027       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 TERMINATED WITHOUT CONVERGENCE.

 FCN=   6578.127     FROM MIGRAD    STATUS=FAILED       260 CALLS      420 TOTAL
                     EDM=   .12E-02    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .59713E-06    .12975E-05     .0000    ** at limit **
   2  Index         7.8361        .50462         .0000        .21564E-03
   3  Normalizat    1.5525        .19930         .0000        .22412E-03
   4  Prefactor     .75792        .16639         .0000        .18037E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6578.127     FROM SIMPLEX   STATUS=UNCHANGED     61 CALLS      481 TOTAL
                     EDM=   .71E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .59713E-06    .12975E-05    .28707E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.8361        .50462        .25055E-02    .60314    
   3  Normalizat    1.5525        .19930        .16184E-03   -.76314    
   4  Prefactor     .75792        .16639        .16973E-03   -1.0130    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6578.127     FROM MIGRAD    STATUS=FAILED        56 CALLS      537 TOTAL
                     EDM=   .48E-03    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .59713E-06    .82512E-06     .0000    ** at limit **
   2  Index         7.8361        .40687         .0000        .48312E-04
   3  Normalizat    1.5525        .23535         .0000        .83614E-06
   4  Prefactor     .75792        .19732         .0000       -.11263E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.97133e-07
  Index      = 7.83614
  Normalizat = 1.55247
  Prefactor  = 0.757922
 **********
 **   18 **HESSE 
 **********

 FCN=   6578.127     FROM HESSE     STATUS=OK            29 CALLS      566 TOTAL
                     EDM=   .96E-03    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .59713E-06    .82523E-06    .18051E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.8361        .40666        .23855E-03    .60314    
   3  Normalizat    1.5525        .23539        .97896E-05   -.76314    
   4  Prefactor     .75792        .19744        .11426E-04   -1.0130    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.000963008
Minuit parameter uncertainties:
  1  8.25221e-07
  2  0.407328
  3  0.235561
  4  0.197623
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/10735': 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): 1
logL (Free Index) = 6578.12653854
delta logL = 0.338212323405

Extracting fit parameters...

4FGL J1223.5+0818
   Spectrum: PowerLaw
320    Prefactor:  5.971e-07  8.252e-07  0.000e+00  1.000e+06 ( 1.000e-14)
321        Index:  7.836e+00  4.073e-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:  7.579e-01  1.976e-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.356e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/10735/cmap_HighResolution_692928001_693187201_4FGL_J1223.5+0818_daily_bin1750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.93e-03', job_status='DONE', photon_flux_upper_limit='5.27e-08', time_completed='2022-12-20 00:59:17.474455', job_id='10735', GAL2='0.76', fit_tolerance='1e-08', EG2='1.55', EG='1.60', time_epoch_completed='1671526757.47', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='3.38e-01', ts2='0.73', photon_index_error='0.00', photon_index='1.92' WHERE bin_id='1750' AND source_name='4FGL J1223.5+0818' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 20 00:59:17 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0166>
Subject: Job 10735: <4FGL_J1223.5+0818_daily_bin1750> in cluster <slac> Done

Job <4FGL_J1223.5+0818_daily_bin1750> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Dec 20 00:45:15 2022
Job was executed on host(s) <bullet0166>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 20 00:45:16 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 20 00:45:16 2022
Terminated at Tue Dec 20 00:59:18 2022
Results reported at Tue Dec 20 00:59:18 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.5+0818_daily_bin1750 185.883 8.3017 692928001 693187201 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 :                                   660.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             269.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   841 sec.
    Turnaround time :                            843 sec.

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

