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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin1708
RA = 185.378, Dec = 28.2382
tmin = 682041601, tmax = 682300801
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='117693', job_status='RUN', time_executed='2022-09-16 16:42:18.732095', time_epoch_executed='1663371738.73' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='1708'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/117693

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/117693/ft1_4FGL_J1221.5+2814_daily_bin1708.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/117693/ft2_4FGL_J1221.5+2814_daily_bin1708.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/117693/ft1_4FGL_J1221.5+2814_daily_bin1708.fits outfile=/scratch/kocevski/117693/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1708.fits ra=185.378 dec=28.2382 rad=12.0 tmin=682041601.0 tmax=682300801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.13
user 3.85
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/117693/ft2_4FGL_J1221.5+2814_daily_bin1708.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/117693/ft2_4FGL_J1221.5+2814_daily_bin1708.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/117693/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1708.fits evtable="EVENTS" outfile="/scratch/kocevski/117693/ft1_filtered_4FGL_J1221.5+2814_daily_bin1708.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.52
user 0.33
sys 0.17

Number of photons that the gtmktime cut: 676

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/117693/ft1_filtered_4FGL_J1221.5+2814_daily_bin1708.fits" evtable="EVENTS" scfile=/scratch/kocevski/117693/ft2_4FGL_J1221.5+2814_daily_bin1708.fits sctable="SC_DATA" outfile=/scratch/kocevski/117693/ltcube_682041601_682300801_4FGL_J1221.5+2814_daily_bin1708.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/117693/ft2_4FGL_J1221.5+2814_daily_bin1708.fits
.....................!
real 17.01
user 16.48
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/117693/ft1_filtered_4FGL_J1221.5+2814_daily_bin1708.fits evtable="EVENTS" scfile=/scratch/kocevski/117693/ft2_4FGL_J1221.5+2814_daily_bin1708.fits sctable="SC_DATA" expcube=/scratch/kocevski/117693/ltcube_682041601_682300801_4FGL_J1221.5+2814_daily_bin1708.fits outfile=/scratch/kocevski/117693/expmap_682041601_682300801_4FGL_J1221.5+2814_daily_bin1708.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/117693/ltcube_682041601_682300801_4FGL_J1221.5+2814_daily_bin1708.fits
.....................!
real 194.05
user 187.51
sys 5.70

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 197 point sources and 0 extended sources

Setting source of interest to:
4FGL J1221.5+2814 @ 185.378 28.2382

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/117693/ft1_filtered_4FGL_J1221.5+2814_daily_bin1708.fits scfile=/scratch/kocevski/117693/ft2_4FGL_J1221.5+2814_daily_bin1708.fits outfile=/scratch/kocevski/117693/cmap_682041601_682300801_4FGL_J1221.5+2814_daily_bin1708.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.378 yref=28.2382 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.58
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/117693/ft1_filtered_4FGL_J1221.5+2814_daily_bin1708.fits scfile=/scratch/kocevski/117693/ft2_4FGL_J1221.5+2814_daily_bin1708.fits outfile=/scratch/kocevski/117693/cmap_HighResolution_682041601_682300801_4FGL_J1221.5+2814_daily_bin1708.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.378 yref=28.2382 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.57
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/117693/ft1_filtered_4FGL_J1221.5+2814_daily_bin1708.fits evtable="EVENTS" scfile=/scratch/kocevski/117693/ft2_4FGL_J1221.5+2814_daily_bin1708.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/117693/Model_4FGL_J1221.5+2814_daily_bin1708.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/117693/ft1_filtered_4FGL_J1221.5+2814_daily_bin1708.fits.....................!
real 65.71
user 64.23
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/117693/ft1_filtered_4FGL_J1221.5+2814_daily_bin1708.fits', '/scratch/kocevski/117693/ft2_4FGL_J1221.5+2814_daily_bin1708.fits', expMap='/scratch/kocevski/117693/expmap_682041601_682300801_4FGL_J1221.5+2814_daily_bin1708.fits', expCube='/scratch/kocevski/117693/ltcube_682041601_682300801_4FGL_J1221.5+2814_daily_bin1708.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/117693/Model_4FGL_J1221.5+2814_daily_bin1708.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1221.5+2814'

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  3.206e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
325        Index:  2.153e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
326        Scale:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/117693/ft1_filtered_4FGL_J1221.5+2814_daily_bin1708.fits
Spacecraft file(s): /scratch/kocevski/117693/ft2_4FGL_J1221.5+2814_daily_bin1708.fits
Exposure map: /scratch/kocevski/117693/expmap_682041601_682300801_4FGL_J1221.5+2814_daily_bin1708.fits
Exposure cube: /scratch/kocevski/117693/ltcube_682041601_682300801_4FGL_J1221.5+2814_daily_bin1708.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/117693/Model_4FGL_J1221.5+2814_daily_bin1708.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) = 7416.80967907

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .59519E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    11.733       1.0000          .0000       .10000E+07
     3 'Prefactor '    .26427       1.0000          .0000       .10000E+07
     4 'Prefactor '    .10333E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    1.1426       1.0000          .0000       .10000E+07
     6 'norm      '    28.807       1.0000          .0000       .10000E+07
     7 'Prefactor '    2.2409       1.0000          .0000       .10000E+07
     8 'Prefactor '    .13681E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .51202E-04   1.0000          .0000       .10000E+07
    10 'norm      '    3.5911       1.0000          .0000       .10000E+07
    11 'Prefactor '    5.0733       1.0000          .0000       .10000E+07
    12 'Prefactor '    .23670E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    2.3248       1.0000          .0000       .10000E+07
    14 'Prefactor '    .37992E-06   1.0000          .0000       .10000E+07
    15 'norm      '    .94563E-01   1.0000          .0000       .10000E+07
    16 'norm      '    7.0329       1.0000          .0000       .10000E+07
    17 'Prefactor '    .72407E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    24.553       1.0000          .0000       .10000E+07
    19 'Prefactor '    17.330       1.0000          .0000       .10000E+07
    20 'Prefactor '    .15202E-04   1.0000          .0000       .10000E+07
    21 'norm      '    24.374       1.0000          .0000       .10000E+07
    22 'Prefactor '    .47597E-02   1.0000          .0000       .10000E+07
    23 'norm      '    .24370E-04   1.0000          .0000       .10000E+07
    24 'norm      '    41.090       1.0000          .0000       .10000E+07
    25 'norm      '    20.933       1.0000          .0000       .10000E+07
    26 'Normalizat'    1.1353       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .90553       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7416.792     FROM MIGRAD    STATUS=CONVERGED    223 CALLS     2609 TOTAL
                     EDM=   .53E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        24.028       -.31159E-06** at limit **
   2  Prefactor     11.940        17.253       -.63594E-07    .42637E-03
   3  Prefactor     .26602        16.933        .54257E-07   -.58129E-05
   4  Prefactor     .38858E-09    247.16       -.95327E-06** at limit **
   5  Prefactor     1.1436        2.1965        .11441E-07    .88229E-04
   6  norm          28.805        3.1912       -.16648E-07    .31284E-03
   7  Prefactor     2.2461        4.2442       -.11366E-06    .11969E-03
   8  Prefactor      .0000        3.1116        .65597E-07** at limit **
   9  Prefactor      .0000        1.6893        .16054E-08** at limit **
  10  norm          3.5945        3.0548       -.80665E-07   -.95667E-04
  11  Prefactor     5.0729        6.7586        .31142E-08    .59973E-04
  12  Prefactor      .0000        1.2011       -.27632E-07** at limit **
  13  Prefactor     2.3214        2.5540        .11180E-07   -.61314E-04
  14  Prefactor      .0000        2.3121        .43837E-07** at limit **
  15  norm          .94653E-01    .16111       -.15178E-07** at limit **
  16  norm          7.0960        4.4464       -.51521E-08   -.21972E-04
  17  Prefactor      .0000        14.478       -.85438E-07** at limit **
  18  Prefactor     24.491        3.3111        .41580E-08    .15036E-01
  19  Prefactor     17.286        10.254       -.56238E-07    .17931E-03
  20  Prefactor      .0000        3.4996       -.71449E-08** at limit **
  21  norm          24.346        8.8260       -.25260E-07   -.34457E-03
  22  Prefactor     .11102E-09    167.43       -.18688E-06** at limit **
  23  norm           .0000        1.1415       -.15973E-07** at limit **
  24  norm          41.084        14.177        .66051E-08    .12018E-02
  25  norm          20.999        20.537        .20628E-07   -.15709E-02
  26  Normalizat    1.1350        .24951        .40387E-06   -.94127E-05
  27  Prefactor     .90550        .25667        .69671E-06   -.73907E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 11.9404
  Prefactor  = 0.266025
  Prefactor  = 3.88578e-10
  Prefactor  = 1.14362
  norm       = 28.8046
  Prefactor  = 2.24611
  Prefactor  = 0
  Prefactor  = 0
  norm       = 3.59451
  Prefactor  = 5.07288
  Prefactor  = 0
  Prefactor  = 2.32141
  Prefactor  = 0
  norm       = 0.0946531
  norm       = 7.096
  Prefactor  = 0
  Prefactor  = 24.4911
  Prefactor  = 17.2859
  Prefactor  = 0
  norm       = 24.3462
  Prefactor  = 1.11022e-10
  norm       = 0
  norm       = 41.0839
  norm       = 20.9991
  Normalizat = 1.135
  Prefactor  = 0.905501
 **********
 **   18 **HESSE 
 **********

 FCN=   7416.792     FROM HESSE     STATUS=OK           552 CALLS     3161 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        23.908        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.940        17.268        .29221E-03   -1.5639    
   3  Prefactor     .26602        3.9659        .54148E-02   -1.5698    
   4  Prefactor     .38858E-09    245.28        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.1436        2.2276        .10861E-02   -1.5687    
   6  norm          28.805        3.1879        .18635E-03   -1.5601    
   7  Prefactor     2.2461        4.2728        .68629E-03   -1.5678    
   8  Prefactor      .0000        3.0388        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        1.6851        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.5945        3.0697        .53300E-03   -1.5670    
  11  Prefactor     5.0729        6.7663        .44617E-03   -1.5663    
  12  Prefactor      .0000        1.1998        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.3214        2.5754        .67240E-03   -1.5677    
  14  Prefactor      .0000        2.3100        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .94653E-01    .18378        .98311E-03   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.0960        4.4524        .37804E-03   -1.5655    
  17  Prefactor      .0000        14.516        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     24.491        27.379        .20185E-03   -1.5609    
  19  Prefactor     17.286        10.250        .24032E-03   -1.5625    
  20  Prefactor      .0000        3.4978        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          24.346        8.8238        .20260E-03   -1.5609    
  22  Prefactor     .11102E-09    166.80        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm           .0000        1.1413        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          41.084        14.089        .15602E-03   -1.5580    
  25  norm          20.999        20.472        .21863E-03   -1.5616    
  26  Normalizat    1.1350        .20665        .66520E-01   -.88636    
  27  Prefactor     .90550        .21316        .79179E-01   -.95949    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07724e-08
Minuit parameter uncertainties:
  1  3.46778e-05
  2  17.268
  3  2.0543
  4  0.000632868
  5  2.22762
  6  3.18792
  7  4.27285
  8  1.88046e-08
  9  6.20911e-07
  10  3.06974
  11  6.76632
  12  6.30211e-07
  13  2.57543
  14  4.21723e-07
  15  0.183779
  16  4.45243
  17  4.516e-06
  18  27.3789
  19  10.2502
  20  8.27563e-08
  21  8.82383
  22  0.000249944
  23  4.3305e-07
  24  14.0886
  25  20.4723
  26  0.206795
  27  0.213361
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  2.321e+00  2.575e+00  0.000e+00  1.000e+06 ( 1.000e-12)
325        Index:  2.153e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
326        Scale:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  9.055e-01  2.134e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.135e+00  2.068e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.19
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 3.40e-08 +/- 3.77e-08
Energy Flux (Fixed Index): 1.67e-05 +/- 1.85e-05

TS (Fixed Index): 1.19
Ra Dec: 185.378 28.238
Photon Flux Upper Limit: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/117693/likelihoodResults_682041601_682300801_4FGL_J1221.5+2814_daily_bin1708.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) = 7416.68280711
delta logL = 0.109025295837

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7416.67915122
delta logL = 0.112681185979

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5716       1.0000          .0000       .10000E+07
     2 'Index     '    1.6958       1.0000          .0000       10.000    
     3 'Normalizat'    1.1425       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90286       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7416.679     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      280 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5699        2.8900        .13728E-04   -.10269E-03
   2  Index         1.6952        .80180        .10181E-01   -.26974E-03
   3  Normalizat    1.1424        .23474        .29350E-03    .14332E-05
   4  Prefactor     .90300        .25391        .35100E-03   -.71257E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.56987
  Index      = 1.69519
  Normalizat = 1.14237
  Prefactor  = 0.903002
 **********
 **   18 **HESSE 
 **********

 FCN=   7416.679     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .62E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5699        2.9682        .54912E-06   -1.5676    
   2  Index         1.6952        .82375        .20362E-02   -.72210    
   3  Normalizat    1.1424        .23500        .11740E-04   -.88403    
   4  Prefactor     .90300        .25422        .14040E-04   -.96036    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.2435e-12
Minuit parameter uncertainties:
  1  2.96818
  2  0.830513
  3  0.235213
  4  0.254557
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/117693': 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) = 7416.67915078
delta logL = 0.112681620653

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  2.570e+00  2.968e+00  0.000e+00  1.000e+06 ( 1.000e-12)
325        Index:  1.695e+00  8.305e-01  0.000e+00  1.000e+01 (-1.000e+00)
326        Scale:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  9.030e-01  2.546e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.142e+00  2.352e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.41
Ra Dec: 185.378 28.238
Photon Index (Free Index): 1.70 +/- 0.83
Photon Flux (Free Index): 2.08e-08 +/- 3.55e-08
Energy Flux (Free Index): 3.45e-05 +/- 5.69e-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/117693/cmap_HighResolution_682041601_682300801_4FGL_J1221.5+2814_daily_bin1708.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.78e-03', comment='SUCCESS', photon_flux='3.40e-08', energy_flux2='3.45e-05', photon_flux_error='3.77e-08', dlogl='1.13e-01', energy_flux='1.67e-05', photon_flux2='2.08e-08', job_status='DONE', time_completed='2022-09-16 16:57:11.193095', photon_index_error2='0.83', photon_index2='1.70', ts='1.19', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.16e-07', energy_flux_error2='5.69e-05', EG='1.13', time_epoch_completed='1663372631.19', return_code='0', job_id='117693', GAL2='0.90', EG2='1.14', return_code2='0', energy_flux_error='1.85e-05', photon_flux_error2='3.55e-08', ts2='1.41', photon_index='2.15' WHERE bin_id='1708' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 16:57:11 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 117693: <4FGL_J1221.5+2814_daily_bin1708> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin1708> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Fri Sep 16 16:40:38 2022
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 16:41:57 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 16:41:57 2022
Terminated at Fri Sep 16 16:57:11 2022
Results reported at Fri Sep 16 16:57:11 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin1708 185.378 28.2382 682041601 682300801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1221.5+2814 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   892.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             347.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            993 sec.

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

