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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin1762
RA = 185.378, Dec = 28.2382
tmin = 696038401, tmax = 696297601
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='107893', job_status='RUN', time_executed='2023-01-25 00:56:26.012504', time_epoch_executed='1674636986.01' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='1762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/107893

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/107893/ft1_4FGL_J1221.5+2814_daily_bin1762.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/107893/ft2_4FGL_J1221.5+2814_daily_bin1762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/107893/ft1_4FGL_J1221.5+2814_daily_bin1762.fits outfile=/scratch/kocevski/107893/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1762.fits ra=185.378 dec=28.2382 rad=12.0 tmin=696038401.0 tmax=696297601.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.99
user 2.81
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/107893/ft2_4FGL_J1221.5+2814_daily_bin1762.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/107893/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1762.fits evtable="EVENTS" outfile="/scratch/kocevski/107893/ft1_filtered_4FGL_J1221.5+2814_daily_bin1762.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.44
user 0.29
sys 0.14

Number of photons that the gtmktime cut: 768

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/107893/ft1_filtered_4FGL_J1221.5+2814_daily_bin1762.fits" evtable="EVENTS" scfile=/scratch/kocevski/107893/ft2_4FGL_J1221.5+2814_daily_bin1762.fits sctable="SC_DATA" outfile=/scratch/kocevski/107893/ltcube_696038401_696297601_4FGL_J1221.5+2814_daily_bin1762.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/107893/ft2_4FGL_J1221.5+2814_daily_bin1762.fits
.....................!
real 10.78
user 10.48
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/107893/ft1_filtered_4FGL_J1221.5+2814_daily_bin1762.fits evtable="EVENTS" scfile=/scratch/kocevski/107893/ft2_4FGL_J1221.5+2814_daily_bin1762.fits sctable="SC_DATA" expcube=/scratch/kocevski/107893/ltcube_696038401_696297601_4FGL_J1221.5+2814_daily_bin1762.fits outfile=/scratch/kocevski/107893/expmap_696038401_696297601_4FGL_J1221.5+2814_daily_bin1762.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/107893/ltcube_696038401_696297601_4FGL_J1221.5+2814_daily_bin1762.fits
.....................!
real 156.85
user 152.40
sys 4.15

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/107893/ft1_filtered_4FGL_J1221.5+2814_daily_bin1762.fits scfile=/scratch/kocevski/107893/ft2_4FGL_J1221.5+2814_daily_bin1762.fits outfile=/scratch/kocevski/107893/cmap_696038401_696297601_4FGL_J1221.5+2814_daily_bin1762.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.48
user 0.32
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/107893/ft1_filtered_4FGL_J1221.5+2814_daily_bin1762.fits scfile=/scratch/kocevski/107893/ft2_4FGL_J1221.5+2814_daily_bin1762.fits outfile=/scratch/kocevski/107893/cmap_HighResolution_696038401_696297601_4FGL_J1221.5+2814_daily_bin1762.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.49
user 0.33
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/107893/ft1_filtered_4FGL_J1221.5+2814_daily_bin1762.fits', '/scratch/kocevski/107893/ft2_4FGL_J1221.5+2814_daily_bin1762.fits', expMap='/scratch/kocevski/107893/expmap_696038401_696297601_4FGL_J1221.5+2814_daily_bin1762.fits', expCube='/scratch/kocevski/107893/ltcube_696038401_696297601_4FGL_J1221.5+2814_daily_bin1762.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/107893/Model_4FGL_J1221.5+2814_daily_bin1762.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/107893/ft1_filtered_4FGL_J1221.5+2814_daily_bin1762.fits
Spacecraft file(s): /scratch/kocevski/107893/ft2_4FGL_J1221.5+2814_daily_bin1762.fits
Exposure map: /scratch/kocevski/107893/expmap_696038401_696297601_4FGL_J1221.5+2814_daily_bin1762.fits
Exposure cube: /scratch/kocevski/107893/ltcube_696038401_696297601_4FGL_J1221.5+2814_daily_bin1762.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/107893/Model_4FGL_J1221.5+2814_daily_bin1762.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) = 8230.14982895

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .61268E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    .25795E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .16292E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    19.392       1.0000          .0000       .10000E+07
     5 'Prefactor '    2.9341       1.0000          .0000       .10000E+07
     6 'norm      '    51.692       1.0000          .0000       .10000E+07
     7 'Prefactor '    2.9238       1.0000          .0000       .10000E+07
     8 'Prefactor '    .32902E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .12850E-03   1.0000          .0000       .10000E+07
    10 'norm      '    2.6791       1.0000          .0000       .10000E+07
    11 'Prefactor '    6.4415       1.0000          .0000       .10000E+07
    12 'Prefactor '    .71265E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    3.1405       1.0000          .0000       .10000E+07
    14 'Prefactor '    1.9138       1.0000          .0000       .10000E+07
    15 'norm      '    .26534E-07   1.0000          .0000       .10000E+07
    16 'norm      '    12.743       1.0000          .0000       .10000E+07
    17 'Prefactor '    .60416E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    19.113       1.0000          .0000       .10000E+07
    19 'Prefactor '    3.7096       1.0000          .0000       .10000E+07
    20 'Prefactor '    .29224E-02   1.0000          .0000       .10000E+07
    21 'norm      '    11.670       1.0000          .0000       .10000E+07
    22 'Prefactor '    35.180       1.0000          .0000       .10000E+07
    23 'norm      '    8.7508       1.0000          .0000       .10000E+07
    24 'norm      '    46.065       1.0000          .0000       .10000E+07
    25 'norm      '    17.682       1.0000          .0000       .10000E+07
    26 'Normalizat'    1.1286       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .74155       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=   8229.968     FROM MIGRAD    STATUS=CONVERGED    192 CALLS     2461 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        11.802        .18964E-06** at limit **
   2  Prefactor     .19429E-08    37.071        .15807E-06** at limit **
   3  Prefactor      .0000        4.8775       -.16602E-06** at limit **
   4  Prefactor     19.403        3.6728        .12079E-07    .25212E-01
   5  Prefactor     2.9309        2.6650        .45316E-07    .57405E-02
   6  norm          51.700        3.9487        .32148E-09    .12084E-02
   7  Prefactor     2.9258        4.4425       -.10705E-07   -.48942E-04
   8  Prefactor     .11102E-09    2.4058        .82293E-07** at limit **
   9  Prefactor      .0000        1.8981       -.14647E-07** at limit **
  10  norm          2.6770        2.1511       -.77145E-08   -.20257E-02
  11  Prefactor     6.4540        6.2155       -.67926E-08   -.22124E-01
  12  Prefactor      .0000        .73511       -.12506E-07** at limit **
  13  Prefactor     3.1382        2.3812       -.26587E-07   -.43590E-02
  14  Prefactor     1.9139        2.9963       -.50908E-07   -.30726E-02
  15  norm           .0000        .11721        .26539E-07** at limit **
  16  norm          12.751        5.7300        .27742E-07   -.18069E-02
  17  Prefactor     .12212E-08    5.7968       -.74956E-09** at limit **
  18  Prefactor     19.268        1.4092       -.49426E-08    .43592E-03
  19  Prefactor     3.6949        5.9900        .18134E-06    .38953E-01
  20  Prefactor     .21094E-08    7.2484        .65159E-07** at limit **
  21  norm          11.571        8.6575       -.30299E-07    .83861E-01
  22  Prefactor     36.329        51.943       -.13691E-06    .63077E-03
  23  norm          8.6970        5.3659       -.12030E-09   -.18283E-01
  24  norm          46.039        7.8428        .15955E-07   -.23102    
  25  norm          17.560        16.265        .93456E-07   -.25536E-01
  26  Normalizat    1.1284        .23556        .20687E-05    .94584E-04
  27  Prefactor     .74168        .24269       -.29249E-05   -.24169E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 1.94289e-09
  Prefactor  = 0
  Prefactor  = 19.4034
  Prefactor  = 2.9309
  norm       = 51.6996
  Prefactor  = 2.92579
  Prefactor  = 1.11022e-10
  Prefactor  = 0
  norm       = 2.67697
  Prefactor  = 6.454
  Prefactor  = 0
  Prefactor  = 3.13816
  Prefactor  = 1.9139
  norm       = 0
  norm       = 12.7505
  Prefactor  = 1.22125e-09
  Prefactor  = 19.268
  Prefactor  = 3.69489
  Prefactor  = 2.10942e-09
  norm       = 11.5706
  Prefactor  = 36.3287
  norm       = 8.69696
  norm       = 46.0391
  norm       = 17.5603
  Normalizat = 1.1284
  Prefactor  = 0.74168
 **********
 **   18 **HESSE 
 **********

 FCN=   8229.968     FROM HESSE     STATUS=OK           554 CALLS     3015 TOTAL
                     EDM=   .33E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        11.834        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .19429E-08    36.422        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        4.8713        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.403        25.218        .22717E-03   -1.5620    
   5  Prefactor     2.9309        2.7996        .59273E-03   -1.5674    
   6  norm          51.700        3.9793        .13910E-03   -1.5564    
   7  Prefactor     2.9258        4.4615        .59385E-03   -1.5674    
   8  Prefactor     .11102E-09    2.3882        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        1.8984        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.6770        2.1523        .62230E-03   -1.5675    
  11  Prefactor     6.4540        6.2498        .39521E-03   -1.5657    
  12  Prefactor      .0000        .73466        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.1382        2.3850        .57178E-03   -1.5673    
  14  Prefactor     1.9139        3.0251        .75106E-03   -1.5680    
  15  norm           .0000        .72348E-01    .13074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          12.751        5.7349        .28035E-03   -1.5637    
  17  Prefactor     .12212E-08    5.8015        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     19.268        16.225        .22882E-03   -1.5620    
  19  Prefactor     3.6949        6.1685        .52408E-03   -1.5670    
  20  Prefactor     .21094E-08    7.1798        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          11.571        10.394        .29300E-03   -1.5640    
  22  Prefactor     36.329        52.038        .16862E-03   -1.5587    
  23  norm          8.6970        5.3814        .33860E-03   -1.5649    
  24  norm          46.039        14.106        .14735E-03   -1.5572    
  25  norm          17.560        17.990        .23791E-03   -1.5624    
  26  Normalizat    1.1284        .19757        .69020E-01   -.88845    
  27  Prefactor     .74168        .20459        .88165E-01   -1.0192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26884e-07
Minuit parameter uncertainties:
  1  2.8796e-05
  2  0.000528983
  3  1.25537e-05
  4  25.2181
  5  2.79958
  6  3.97931
  7  4.46154
  8  3.50019e-05
  9  4.16335e-06
  10  2.15225
  11  6.24978
  12  3.31699e-06
  13  2.38504
  14  3.02507
  15  2.19369e-06
  16  5.73494
  17  0.000166896
  18  16.2247
  19  6.1685
  20  0.000245412
  21  10.3942
  22  52.0382
  23  5.38138
  24  14.1063
  25  17.9904
  26  0.197696
  27  0.204799
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  3.138e+00  2.385e+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:  7.417e-01  2.048e-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.128e+00  1.977e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.54
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 4.59e-08 +/- 3.49e-08
Energy Flux (Fixed Index): 2.26e-05 +/- 1.72e-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) = 8229.95684931
delta logL = 0.0111245259814

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8229.95636496
delta logL = 0.0116088812156

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1075       1.0000          .0000       .10000E+07
     2 'Index     '    2.0582       1.0000          .0000       10.000    
     3 'Normalizat'    1.1333       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73959       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8229.956     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      247 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1075        2.4406        .12004E-04    .10013E-01
   2  Index         2.0581        .62988        .10305E-01    .10630E-03
   3  Normalizat    1.1334        .22876        .30487E-03   -.37365E-04
   4  Prefactor     .73954        .24037        .39120E-03   -.34059E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.10745
  Index      = 2.05808
  Normalizat = 1.13338
  Prefactor  = 0.739539
 **********
 **   18 **HESSE 
 **********

 FCN=   8229.956     FROM HESSE     STATUS=OK            23 CALLS      270 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1075        2.4588        .48015E-06   -1.5673    
   2  Index         2.0581        .63434        .41218E-03   -.62906    
   3  Normalizat    1.1334        .22896        .12195E-04   -.88687    
   4  Prefactor     .73954        .24059        .15648E-04   -1.0200    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.54993e-10
Minuit parameter uncertainties:
  1  2.45879
  2  0.636977
  3  0.229158
  4  0.24093
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/107893': 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) = 8229.9563649
delta logL = 0.0116089387084

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  3.107e+00  2.459e+00  0.000e+00  1.000e+06 ( 1.000e-12)
325        Index:  2.058e+00  6.370e-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:  7.395e-01  2.409e-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.133e+00  2.292e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.56
Ra Dec: 185.378 28.238
Photon Index (Free Index): 2.06 +/- 0.64
Photon Flux (Free Index): 3.95e-08 +/- 5.21e-08
Energy Flux (Free Index): 2.38e-05 +/- 2.07e-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/107893/cmap_HighResolution_696038401_696297601_4FGL_J1221.5+2814_daily_bin1762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.59e-08', energy_flux2='2.38e-05', photon_flux_error='3.49e-08', dlogl='1.16e-02', energy_flux='2.26e-05', photon_flux2='3.95e-08', job_status='DONE', time_completed='2023-01-25 01:07:04.141381', photon_index_error2='0.64', photon_index2='2.06', ts='8.54', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', energy_flux_error2='2.07e-05', EG='1.13', time_epoch_completed='1674637624.14', return_code='0', job_id='107893', GAL2='0.74', EG2='1.13', return_code2='0', energy_flux_error='1.72e-05', photon_flux_error2='5.21e-08', ts2='8.56', photon_index='2.15' WHERE bin_id='1762' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan 25 01:07:04 PST 2023


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 107893: <4FGL_J1221.5+2814_daily_bin1762> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin1762> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Jan 25 00:50:30 2023
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan 25 00:53:22 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan 25 00:53:22 2023
Terminated at Wed Jan 25 01:07:04 2023
Results reported at Wed Jan 25 01:07:04 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin1762 185.378 28.2382 696038401 696297601 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 :                                   639.33 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             286.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            994 sec.

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

