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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin1718
RA = 185.378, Dec = 28.2382
tmin = 684633601, tmax = 684892801
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='117709', job_status='RUN', time_executed='2022-09-16 16:43:10.138899', time_epoch_executed='1663371790.14' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='1718'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/117709

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/117709/ft1_4FGL_J1221.5+2814_daily_bin1718.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/117709/ft2_4FGL_J1221.5+2814_daily_bin1718.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/117709/ft1_4FGL_J1221.5+2814_daily_bin1718.fits outfile=/scratch/kocevski/117709/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1718.fits ra=185.378 dec=28.2382 rad=12.0 tmin=684633601.0 tmax=684892801.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.64
user 2.44
sys 0.18

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

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

Number of photons that the gtmktime cut: 28

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/117709/ft1_filtered_4FGL_J1221.5+2814_daily_bin1718.fits" evtable="EVENTS" scfile=/scratch/kocevski/117709/ft2_4FGL_J1221.5+2814_daily_bin1718.fits sctable="SC_DATA" outfile=/scratch/kocevski/117709/ltcube_684633601_684892801_4FGL_J1221.5+2814_daily_bin1718.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/117709/ft2_4FGL_J1221.5+2814_daily_bin1718.fits
.....................!
real 12.54
user 12.23
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/117709/ft1_filtered_4FGL_J1221.5+2814_daily_bin1718.fits evtable="EVENTS" scfile=/scratch/kocevski/117709/ft2_4FGL_J1221.5+2814_daily_bin1718.fits sctable="SC_DATA" expcube=/scratch/kocevski/117709/ltcube_684633601_684892801_4FGL_J1221.5+2814_daily_bin1718.fits outfile=/scratch/kocevski/117709/expmap_684633601_684892801_4FGL_J1221.5+2814_daily_bin1718.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/117709/ltcube_684633601_684892801_4FGL_J1221.5+2814_daily_bin1718.fits
.....................!
real 155.44
user 151.14
sys 4.01

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/117709/ft1_filtered_4FGL_J1221.5+2814_daily_bin1718.fits scfile=/scratch/kocevski/117709/ft2_4FGL_J1221.5+2814_daily_bin1718.fits outfile=/scratch/kocevski/117709/cmap_684633601_684892801_4FGL_J1221.5+2814_daily_bin1718.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.86
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/117709/ft1_filtered_4FGL_J1221.5+2814_daily_bin1718.fits scfile=/scratch/kocevski/117709/ft2_4FGL_J1221.5+2814_daily_bin1718.fits outfile=/scratch/kocevski/117709/cmap_HighResolution_684633601_684892801_4FGL_J1221.5+2814_daily_bin1718.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.32
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .68241E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    .38194E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    .26349E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    .93489       1.0000          .0000       .10000E+07
     5 'Prefactor '    .99993E+06   1.0000          .0000       .10000E+07
     6 'norm      '    .99999E+06   1.0000          .0000       .10000E+07
     7 'Prefactor '    .99996E+06   1.0000          .0000       .10000E+07
     8 'Prefactor '    .99969E+06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .58618E-01   1.0000          .0000       .10000E+07
    10 'norm      '    .12274E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    3756.4       1.0000          .0000       .10000E+07
    12 'Prefactor '    .62509       1.0000          .0000       .10000E+07
    13 'Prefactor '    .18457       1.0000          .0000       .10000E+07
    14 'Prefactor '    .22510       1.0000          .0000       .10000E+07
    15 'norm      '    .20468E-02   1.0000          .0000       .10000E+07
    16 'norm      '    .42191E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .13492       1.0000          .0000       .10000E+07
    18 'Prefactor '    .62349E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .28963E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .23925E-02   1.0000          .0000       .10000E+07
    21 'norm      '    .57729E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    .47274E-01   1.0000          .0000       .10000E+07
    23 'norm      '    .30139E-04   1.0000          .0000       .10000E+07
    24 'norm      '    .24264E-02   1.0000          .0000       .10000E+07
    25 'norm      '    32.112       1.0000          .0000       .10000E+07
    26 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    27 'Prefactor '    .13891E-06   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=   189.8833     FROM MIGRAD    STATUS=CONVERGED    164 CALLS     2484 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33307E-09    80.970        .31082E-06** at limit **
   2  Prefactor      .0000        71.498        .36823E-07** at limit **
   3  Prefactor      .0000        16.087       -.69723E-07** at limit **
   4  Prefactor     .74328        18.784        .56446E-07    .55158E-01
   5  Prefactor     .99993E+06    2.2952       -.15577E-08   -.21598E-01
   6  norm          .99999E+06    10.643       -.20465E-07   -.44095E-01
   7  Prefactor     .99996E+06    2.0347       -.17334E-08   -.14283E-01
   8  Prefactor     .99969E+06    5.0846       -.17974E-08   -.10895    
   9  Prefactor     .16209E-03    55.951       -.78441E-07** at limit **
  10  norm          .88004E-04    424.03        .37536E-06** at limit **
  11  Prefactor     3756.5        1.7837       -.15325E-09   -.11249    
  12  Prefactor     .11095E-04    376.69       -.15845E-06** at limit **
  13  Prefactor     .19929E-07    114.74        .44722E-06** at limit **
  14  Prefactor     .53013E-07    127.36       -.13974E-06** at limit **
  15  norm           .0000        6.8307       -.15032E-07** at limit **
  16  norm          .49060E-05    56.008       -.10613E-06** at limit **
  17  Prefactor     .19706E-07    4.6417       -.29793E-07** at limit **
  18  Prefactor     .58236E-05    57.405       -.11738E-06** at limit **
  19  Prefactor     .78881E-07    10.082        .28915E-06** at limit **
  20  Prefactor     .22204E-09    10.101       -.14436E-06** at limit **
  21  norm           .0000        5.0116       -.25898E-07** at limit **
  22  Prefactor     .55511E-10    30.085        .12411E-06** at limit **
  23  norm           .0000        3.3543       -.21231E-07** at limit **
  24  norm          .86320E-07    10.224        .86122E-07** at limit **
  25  norm          31.930        21.977       -.35456E-06    .58042E-02
  26  Normalizat    .10000E-01    .57961E-01   -.59047E-06** at limit **
  27  Prefactor     .12768E-13    .74538E-01    .75245E-06** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.33067e-10
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0.743276
  Prefactor  = 999929
  norm       = 999989
  Prefactor  = 999958
  Prefactor  = 999692
  Prefactor  = 0.000162088
  norm       = 8.80037e-05
  Prefactor  = 3756.48
  Prefactor  = 1.10947e-05
  Prefactor  = 1.99285e-08
  Prefactor  = 5.30131e-08
  norm       = 0
  norm       = 4.90596e-06
  Prefactor  = 1.97065e-08
  Prefactor  = 5.82362e-06
  Prefactor  = 7.88813e-08
  Prefactor  = 2.22045e-10
  norm       = 0
  Prefactor  = 5.55112e-11
  norm       = 0
  norm       = 8.63198e-08
  norm       = 31.93
  Normalizat = 0.01
  Prefactor  = 1.27676e-14
 **********
 **   18 **HESSE 
 **********

 FCN=   189.8833     FROM HESSE     STATUS=OK           516 CALLS     3000 TOTAL
                     EDM=   .48E-02    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33307E-09    80.968        .14877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        71.497        .16046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        16.090        .16650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .74328        7794.7        .43377E-03   -1.5691    
   5  Prefactor     .99993E+06    .18211E+06    .11905E-03    1.5540    
   6  norm          .99999E+06    36817.        .30104E-03    1.5642    
   7  Prefactor     .99996E+06    .20998E+06    .15443E-03    1.5579    
   8  Prefactor     .99969E+06    78417.        .56946E-04    1.5357    
   9  Prefactor     .16209E-03    1661.7        .15212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .88004E-04    424.81        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3756.5        3940.4        .16347E-04   -1.4481    
  12  Prefactor     .11095E-04    385.45        .67010E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .19929E-07    114.74        .12057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .53013E-07    127.37        .11345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        6.8309        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .49060E-05    56.278        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .19706E-07    100.18        .13073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .58236E-05    57.739        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .78881E-07    10.142        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .22204E-09    10.333        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm           .0000        5.0110        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .55511E-10    30.077        .15651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm           .0000        3.3544        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .86320E-07    10.366        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          31.930        22.000        .17649E-03   -1.5595    
  26  Normalizat    .10000E-01    .57972E-01    .46495E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .12768E-13    .74559E-01    .52715E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.00481251
Minuit parameter uncertainties:
  1  0.000334966
  2  5.7022e-05
  3  2.70795e-05
  4  152.43
  5  7404.87
  6  1269.52
  7  6162.23
  8  9969.47
  9  1.03825
  10  0.386732
  11  3943.11
  12  0.130797
  13  0.00302645
  14  0.00519838
  15  2.05571e-05
  16  0.0332326
  17  0.00281056
  18  0.0366746
  19  0.00178895
  20  0.00010112
  21  1.07344e-05
  22  6.51152e-05
  23  2.80872e-06
  24  0.00189163
  25  21.9997
  26  4.22997e-08
  27  6.12164e-08
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  1.993e-08  3.026e-03  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.277e-14  6.122e-08  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.000e-02  4.230e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 185.378 28.238
Photon Flux Upper Limit: 1.01e-05 ph cm-2 s-1
Energy Flux Upper Limit: 7.64e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/117709/likelihoodResults_684633601_684892801_4FGL_J1221.5+2814_daily_bin1718.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) = 189.887496609
delta logL = -0.00415409312674

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 189.883343146
delta logL = -6.30045263961e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21946E-05   1.0000          .0000       .10000E+07
     2 'Index     '    2.0769       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92629E-07   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=   189.8833     FROM MIGRAD    STATUS=CONVERGED     70 CALLS      248 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .61062E-09    17.265        .42118E-03** at limit **
   2  Index         1.1050        9.2287        .50000       -.85265E-11
   3  Normalizat    .10000E-01    .17037E-04    .46495E-01** at limit **
   4  Prefactor     .96978E-12    .21924E-04    .52715E-01** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.10623e-10
  Index      = 1.105
  Normalizat = 0.01
  Prefactor  = 9.6978e-13
 **********
 **   18 **HESSE 
 **********

 FCN=   189.8833     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .68E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .61062E-09    86.139        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.1050        9.4349        .50000       -.89307    
   3  Normalizat    .10000E-01    .85091E-04    .10274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .96978E-12    .10949E-03    .11649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.81342e-12
Minuit parameter uncertainties:
  1  0.000464658
  2  231686
  3  8.43496e-09
  4  2.0612e-08
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/117709': 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): 102
logL (Free Index) = 189.883342516
delta logL = 7.78470621299e-11

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  6.106e-10  4.647e-04  0.000e+00  1.000e+06 ( 1.000e-12)
325        Index:  1.105e+00  2.317e+05  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.698e-13  2.061e-08  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.000e-02  8.435e-09  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 185.378 28.238

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/117709/cmap_HighResolution_684633601_684892801_4FGL_J1221.5+2814_daily_bin1718.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.64e-01', job_status='DONE', photon_flux_upper_limit='1.01e-05', time_completed='2022-09-16 16:47:56.455176', job_id='117709', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1663372076.46', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='7.78e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1718' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 16:47:56 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 117709: <4FGL_J1221.5+2814_daily_bin1718> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin1718> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Fri Sep 16 16:40:39 2022
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 16:42:05 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:42:05 2022
Terminated at Fri Sep 16 16:47:57 2022
Results reported at Fri Sep 16 16:47:57 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin1718 185.378 28.2382 684633601 684892801 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 :                                   287.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             511.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   351 sec.
    Turnaround time :                            438 sec.

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

