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


Performing analysis on: 4FGL_J1221.5+2814_weekly_bin760
RA = 185.378, Dec = 28.2382
tmin = 698630401, tmax = 699235201
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='21245', job_status='RUN', time_executed='2023-02-28 01:06:36.134929', time_epoch_executed='1677575196.13' WHERE source_name='4FGL J1221.5+2814' and cadence='weekly' and bin_id='760'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/21245

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/21245/ft1_4FGL_J1221.5+2814_weekly_bin760.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/21245/ft2_4FGL_J1221.5+2814_weekly_bin760.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/21245/ft1_4FGL_J1221.5+2814_weekly_bin760.fits outfile=/scratch/kocevski/21245/ft1_filteredMKT_4FGL_J1221.5+2814_weekly_bin760.fits ra=185.378 dec=28.2382 rad=12.0 tmin=698630401.0 tmax=699235201.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 6.20
user 5.94
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/21245/ft2_4FGL_J1221.5+2814_weekly_bin760.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/21245/ft1_filteredMKT_4FGL_J1221.5+2814_weekly_bin760.fits evtable="EVENTS" outfile="/scratch/kocevski/21245/ft1_filtered_4FGL_J1221.5+2814_weekly_bin760.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.54
user 0.41
sys 0.13

Number of photons that the gtmktime cut: 403

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/21245/ft1_filtered_4FGL_J1221.5+2814_weekly_bin760.fits" evtable="EVENTS" scfile=/scratch/kocevski/21245/ft2_4FGL_J1221.5+2814_weekly_bin760.fits sctable="SC_DATA" outfile=/scratch/kocevski/21245/ltcube_698630401_699235201_4FGL_J1221.5+2814_weekly_bin760.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/21245/ft2_4FGL_J1221.5+2814_weekly_bin760.fits
.....................!
real 31.40
user 30.96
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/21245/ft1_filtered_4FGL_J1221.5+2814_weekly_bin760.fits evtable="EVENTS" scfile=/scratch/kocevski/21245/ft2_4FGL_J1221.5+2814_weekly_bin760.fits sctable="SC_DATA" expcube=/scratch/kocevski/21245/ltcube_698630401_699235201_4FGL_J1221.5+2814_weekly_bin760.fits outfile=/scratch/kocevski/21245/expmap_698630401_699235201_4FGL_J1221.5+2814_weekly_bin760.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/21245/ltcube_698630401_699235201_4FGL_J1221.5+2814_weekly_bin760.fits
.....................!
real 191.06
user 186.18
sys 4.42

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/21245/ft1_filtered_4FGL_J1221.5+2814_weekly_bin760.fits scfile=/scratch/kocevski/21245/ft2_4FGL_J1221.5+2814_weekly_bin760.fits outfile=/scratch/kocevski/21245/cmap_698630401_699235201_4FGL_J1221.5+2814_weekly_bin760.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.59
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/21245/ft1_filtered_4FGL_J1221.5+2814_weekly_bin760.fits scfile=/scratch/kocevski/21245/ft2_4FGL_J1221.5+2814_weekly_bin760.fits outfile=/scratch/kocevski/21245/cmap_HighResolution_698630401_699235201_4FGL_J1221.5+2814_weekly_bin760.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.59
user 0.43
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27756E-09   1.0000          .0000       .10000E+07
     2 'Prefactor '    .23870E-08   1.0000          .0000       .10000E+07
     3 'Prefactor '    4.1805       1.0000          .0000       .10000E+07
     4 'Prefactor '    .89040E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    .11102E-08   1.0000          .0000       .10000E+07
     6 'norm      '    43.111       1.0000          .0000       .10000E+07
     7 'Prefactor '    .55511E-10   1.0000          .0000       .10000E+07
     8 'Prefactor '    .55511E-10   1.0000          .0000       .10000E+07
     9 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
    10 'norm      '    .13226E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .57176E-08   1.0000          .0000       .10000E+07
    12 'Prefactor '    4.2840       1.0000          .0000       .10000E+07
    13 'Prefactor '    7.9028       1.0000          .0000       .10000E+07
    14 'Prefactor '    .26978E-07   1.0000          .0000       .10000E+07
    15 'norm      '    .11519       1.0000          .0000       .10000E+07
    16 'norm      '    22.821       1.0000          .0000       .10000E+07
    17 'Prefactor '    44.830       1.0000          .0000       .10000E+07
    18 'Prefactor '    9.1794       1.0000          .0000       .10000E+07
    19 'Prefactor '    .34920E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    .60840E-07   1.0000          .0000       .10000E+07
    21 'norm      '    .17208E-08   1.0000          .0000       .10000E+07
    22 'Prefactor '    .42188E-08   1.0000          .0000       .10000E+07
    23 'norm      '    .74568E-06   1.0000          .0000       .10000E+07
    24 'norm      '    46.264       1.0000          .0000       .10000E+07
    25 'norm      '    .21627E-06   1.0000          .0000       .10000E+07
    26 'Normalizat'    .10717       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.9865       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=   4649.499     FROM MIGRAD    STATUS=CONVERGED    221 CALLS     2927 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .92067E-05    34.425        .26665E-06** at limit **
   2  Prefactor     .81763E-05    41.727       -.21353E-05** at limit **
   3  Prefactor     4.1880        1.0691        .99704E-07   -.76836E-03
   4  Prefactor     .85154E-07    38.949        .39749E-05** at limit **
   5  Prefactor     .55511E-10    2.8508       -.72883E-07** at limit **
   6  norm          43.113        7.0628       -.17630E-07   -.55581E-02
   7  Prefactor     .11102E-09    3.4966        .23255E-06** at limit **
   8  Prefactor     .38858E-09    2.3582       -.19337E-06** at limit **
   9  Prefactor     .11102E-09    2.7219        .67261E-06** at limit **
  10  norm          .44409E-08    6.7494       -.34932E-05** at limit **
  11  Prefactor     .22204E-09    13.639        .21651E-05** at limit **
  12  Prefactor     4.2862        3.9736        .70268E-07   -.46142E-02
  13  Prefactor     7.9059        5.3506        .46715E-07   -.86121E-02
  14  Prefactor     .55511E-10    8.2926        .25560E-05** at limit **
  15  norm          .11516        .74436        .37412E-07** at limit **
  16  norm          22.823        1.2153        .41906E-07   -.19601E-03
  17  Prefactor     44.828        1.3274       -.10022E-07    .42592E-02
  18  Prefactor     9.1913        1.2352       -.32408E-07    .34164E-02
  19  Prefactor     .28477E-07    27.177       -.26626E-05** at limit **
  20  Prefactor     .55511E-10    2.6227       -.34381E-06** at limit **
  21  norm          .27756E-09    1.6939       -.71869E-07** at limit **
  22  Prefactor     .36082E-08    10.588       -.36141E-05** at limit **
  23  norm          .55511E-10    5.9347        .24714E-05** at limit **
  24  norm          46.262        7.2205       -.58016E-07   -.49611E-02
  25  norm           .0000        5.1568       -.83612E-06** at limit **
  26  Normalizat    .10802        .30257       -.29140E-04   -.40522E-04
  27  Prefactor     1.9853        .36993        .91743E-05   -.34229E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.20675e-06
  Prefactor  = 8.17635e-06
  Prefactor  = 4.18797
  Prefactor  = 8.51541e-08
  Prefactor  = 5.55112e-11
  norm       = 43.1127
  Prefactor  = 1.11022e-10
  Prefactor  = 3.88578e-10
  Prefactor  = 1.11022e-10
  norm       = 4.44089e-09
  Prefactor  = 2.22045e-10
  Prefactor  = 4.28621
  Prefactor  = 7.90595
  Prefactor  = 5.55112e-11
  norm       = 0.11516
  norm       = 22.8226
  Prefactor  = 44.8282
  Prefactor  = 9.19135
  Prefactor  = 2.84772e-08
  Prefactor  = 5.55112e-11
  norm       = 2.77556e-10
  Prefactor  = 3.60822e-09
  norm       = 5.55112e-11
  norm       = 46.2621
  norm       = 0
  Normalizat = 0.10802
  Prefactor  = 1.98527
 **********
 **   18 **HESSE 
 **********

 FCN=   4649.499     FROM HESSE     STATUS=NOT POSDEF   536 CALLS     3463 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .92067E-05    68.278        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .81763E-05    72.402        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.1880        56.638        .49268E-03   -1.5667    
   4  Prefactor     .85154E-07    36.892        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .55511E-10    2.6738        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          43.113        8.7918        .15232E-03   -1.5577    
   7  Prefactor     .11102E-09    3.2817        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .38858E-09    2.2179        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .11102E-09    2.5543        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .44409E-08    6.3003        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .22204E-09    12.885        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.2862        4.0210        .48651E-03   -1.5667    
  13  Prefactor     7.9059        6.4119        .35644E-03   -1.5652    
  14  Prefactor     .55511E-10    7.7849        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .11516        1.2339        .13538E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          22.823        13.585        .20939E-03   -1.5612    
  17  Prefactor     44.828        34.277        .14937E-03   -1.5574    
  18  Prefactor     9.1913        25.337        .33055E-03   -1.5647    
  19  Prefactor     .28477E-07    26.483        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .55511E-10    2.4644        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .27756E-09    1.5888        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .36082E-08    9.9544        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .55511E-10    5.7708        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          46.262        13.391        .14703E-03   -1.5572    
  25  norm           .0000        4.8459        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .10802        7.4415        .20574       -1.3724    
  27  Prefactor     1.9853        1.8610        .61051E-01   -.64719    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.7984e-07
Minuit parameter uncertainties:
  1  0.050145
  2  0.0486619
  3  30.8029
  4  0.00354463
  5  2.7559e-05
  6  8.79182
  7  3.83936e-05
  8  6.03403e-05
  9  3.1003e-05
  10  0.000335159
  11  0.000104394
  12  4.02098
  13  6.41195
  14  3.91135e-05
  15  0.753908
  16  13.5847
  17  34.2775
  18  25.3373
  19  0.00173688
  20  2.80559e-05
  21  4.171e-05
  22  0.000379467
  23  4.34321e-05
  24  13.391
  25  7.93595e-06
  26  1.74135
  27  1.93608
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 4649.49919991

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  7.906e+00  6.412e+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:  1.985e+00  1.936e+00  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.080e-01  1.741e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.16
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 1.16e-07 +/- 9.38e-08
Energy Flux (Fixed Index): 5.69e-05 +/- 4.61e-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) = 4648.79175377
delta logL = 0.707446143672

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4648.77987022
delta logL = 0.719329692803

Fit tolerance = 1e-08

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

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

 FCN=   4648.780     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      291 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5730        49.073        .42526E-03    .38482E-02
   2  Index         2.7709        3.0105        .10561        .14559E-03
   3  Normalizat    .23671E-01    .11583        .24311        .84055E-04
   4  Prefactor     2.0434        .12832        .60185E-01    .84761E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.57295
  Index      = 2.77095
  Normalizat = 0.0236712
  Prefactor  = 2.04343
 **********
 **   18 **HESSE 
 **********

 FCN=   4648.780     FROM HESSE     STATUS=OK            35 CALLS      326 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5730        4.9500        .78793E-05   -1.5661    
   2  Index         2.7709        .61349        .41033E-02   -.46208    
   3  Normalizat    .23671E-01    7.7118        .13124E-01   -1.4968    
   4  Prefactor     2.0434        .74244        .26600E-03   -.63269    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.39608e-07
Minuit parameter uncertainties:
  1  4.95004
  2  0.615428
  3  0.640919
  4  0.746702
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/21245': 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) = 4648.77986576
delta logL = 0.719334154803

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  5.573e+00  4.950e+00  0.000e+00  1.000e+06 ( 1.000e-12)
325        Index:  2.771e+00  6.154e-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:  2.043e+00  7.467e-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:  2.367e-02  6.409e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.88
Ra Dec: 185.378 28.238
Photon Index (Free Index): 2.77 +/- 0.62
Photon Flux (Free Index): 2.32e-07 +/- 1.61e-07
Energy Flux (Free Index): 5.29e-05 +/- 2.93e-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/21245/cmap_HighResolution_698630401_699235201_4FGL_J1221.5+2814_weekly_bin760.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.16e-07', energy_flux2='5.29e-05', photon_flux_error='9.38e-08', dlogl='7.19e-01', energy_flux='5.69e-05', photon_flux2='2.32e-07', job_status='DONE', time_completed='2023-02-28 01:17:09.708566', photon_index_error2='0.62', photon_index2='2.77', ts='4.16', fit_tolerance='1e-08', GAL='1.99', photon_index_error='0.00', energy_flux_error2='2.93e-05', EG='0.11', time_epoch_completed='1677575829.71', return_code='102', job_id='21245', GAL2='2.04', EG2='0.02', return_code2='0', energy_flux_error='4.61e-05', photon_flux_error2='1.61e-07', ts2='5.88', photon_index='2.15' WHERE bin_id='760' AND source_name='4FGL J1221.5+2814' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 28 01:17:09 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0174>
Subject: Job 21245: <4FGL_J1221.5+2814_weekly_bin760> in cluster <slac> Done

Job <4FGL_J1221.5+2814_weekly_bin760> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Feb 28 01:05:25 2023
Job was executed on host(s) <bullet0174>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 28 01:05:26 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 28 01:05:26 2023
Terminated at Tue Feb 28 01:17:11 2023
Results reported at Tue Feb 28 01:17:11 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_weekly_bin760 185.378 28.2382 698630401 699235201 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 :                                   634.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             258.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            706 sec.

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

