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


Performing analysis on: 4FGL_J1221.3+3010_daily_bin1774
RA = 185.345, Dec = 30.1677
tmin = 699148801, tmax = 699408001
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='681422', job_status='RUN', time_executed='2023-03-02 00:43:25.742813', time_epoch_executed='1677746605.74' WHERE source_name='4FGL J1221.3+3010' and cadence='daily' and bin_id='1774'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/681422

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/681422/ft1_4FGL_J1221.3+3010_daily_bin1774.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/681422/ft2_4FGL_J1221.3+3010_daily_bin1774.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/681422/ft1_4FGL_J1221.3+3010_daily_bin1774.fits outfile=/scratch/kocevski/681422/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin1774.fits ra=185.345 dec=30.1677 rad=12.0 tmin=699148801.0 tmax=699408001.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.77
user 2.58
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/681422/ft2_4FGL_J1221.3+3010_daily_bin1774.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/681422/ft2_4FGL_J1221.3+3010_daily_bin1774.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/681422/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin1774.fits evtable="EVENTS" outfile="/scratch/kocevski/681422/ft1_filtered_4FGL_J1221.3+3010_daily_bin1774.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 163

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/681422/ft1_filtered_4FGL_J1221.3+3010_daily_bin1774.fits" evtable="EVENTS" scfile=/scratch/kocevski/681422/ft2_4FGL_J1221.3+3010_daily_bin1774.fits sctable="SC_DATA" outfile=/scratch/kocevski/681422/ltcube_699148801_699408001_4FGL_J1221.3+3010_daily_bin1774.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/681422/ft2_4FGL_J1221.3+3010_daily_bin1774.fits
.....................!
real 12.21
user 11.86
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/681422/ft1_filtered_4FGL_J1221.3+3010_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/681422/ft2_4FGL_J1221.3+3010_daily_bin1774.fits sctable="SC_DATA" expcube=/scratch/kocevski/681422/ltcube_699148801_699408001_4FGL_J1221.3+3010_daily_bin1774.fits outfile=/scratch/kocevski/681422/expmap_699148801_699408001_4FGL_J1221.3+3010_daily_bin1774.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/681422/ltcube_699148801_699408001_4FGL_J1221.3+3010_daily_bin1774.fits
.....................!
real 191.34
user 186.43
sys 4.54

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

Setting source of interest to:
4FGL J1221.3+3010 @ 185.345 30.1677

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/681422/ft1_filtered_4FGL_J1221.3+3010_daily_bin1774.fits scfile=/scratch/kocevski/681422/ft2_4FGL_J1221.3+3010_daily_bin1774.fits outfile=/scratch/kocevski/681422/cmap_699148801_699408001_4FGL_J1221.3+3010_daily_bin1774.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.345 yref=30.1677 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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/681422/ft1_filtered_4FGL_J1221.3+3010_daily_bin1774.fits scfile=/scratch/kocevski/681422/ft2_4FGL_J1221.3+3010_daily_bin1774.fits outfile=/scratch/kocevski/681422/cmap_HighResolution_699148801_699408001_4FGL_J1221.3+3010_daily_bin1774.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.345 yref=30.1677 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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/681422/ft1_filtered_4FGL_J1221.3+3010_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/681422/ft2_4FGL_J1221.3+3010_daily_bin1774.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/681422/Model_4FGL_J1221.3+3010_daily_bin1774.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/681422/ft1_filtered_4FGL_J1221.3+3010_daily_bin1774.fits.....................!
real 27.00
user 25.73
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/681422/ft1_filtered_4FGL_J1221.3+3010_daily_bin1774.fits', '/scratch/kocevski/681422/ft2_4FGL_J1221.3+3010_daily_bin1774.fits', expMap='/scratch/kocevski/681422/expmap_699148801_699408001_4FGL_J1221.3+3010_daily_bin1774.fits', expCube='/scratch/kocevski/681422/ltcube_699148801_699408001_4FGL_J1221.3+3010_daily_bin1774.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/681422/Model_4FGL_J1221.3+3010_daily_bin1774.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1221.3+3010'

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  1.833e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
318        Index:  1.707e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  4.501e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/681422/ft1_filtered_4FGL_J1221.3+3010_daily_bin1774.fits
Spacecraft file(s): /scratch/kocevski/681422/ft2_4FGL_J1221.3+3010_daily_bin1774.fits
Exposure map: /scratch/kocevski/681422/expmap_699148801_699408001_4FGL_J1221.3+3010_daily_bin1774.fits
Exposure cube: /scratch/kocevski/681422/ltcube_699148801_699408001_4FGL_J1221.3+3010_daily_bin1774.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/681422/Model_4FGL_J1221.3+3010_daily_bin1774.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) = 1900.35826847

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39405       1.0000          .0000       .10000E+07
     2 'Prefactor '    .59619       1.0000          .0000       .10000E+07
     3 'Prefactor '    .37097E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .18573       1.0000          .0000       .10000E+07
     5 'Prefactor '    .46695E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    102.76       1.0000          .0000       .10000E+07
     7 'norm      '    43.930       1.0000          .0000       .10000E+07
     8 'Prefactor '    .29749E-02   1.0000          .0000       .10000E+07
     9 'norm      '    .38811E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    28.295       1.0000          .0000       .10000E+07
    11 'Prefactor '    7.6490       1.0000          .0000       .10000E+07
    12 'Prefactor '    7.2131       1.0000          .0000       .10000E+07
    13 'Prefactor '    .28069E-02   1.0000          .0000       .10000E+07
    14 'norm      '    2.8723       1.0000          .0000       .10000E+07
    15 'norm      '    .53860E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    19.234       1.0000          .0000       .10000E+07
    17 'Prefactor '    46.206       1.0000          .0000       .10000E+07
    18 'Prefactor '    24.325       1.0000          .0000       .10000E+07
    19 'Prefactor '    5.3451       1.0000          .0000       .10000E+07
    20 'norm      '    .42869E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .15843E-02   1.0000          .0000       .10000E+07
    22 'norm      '    3.3677       1.0000          .0000       .10000E+07
    23 'Prefactor '    13.093       1.0000          .0000       .10000E+07
    24 'norm      '    .12408E-03   1.0000          .0000       .10000E+07
    25 'norm      '    16.187       1.0000          .0000       .10000E+07
    26 'norm      '    9.6589       1.0000          .0000       .10000E+07
    27 'Normalizat'    .65585       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .94869       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1900.351     FROM MIGRAD    STATUS=CONVERGED    207 CALLS     3342 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22182E-06    127.91        .83688E-05** at limit **
   2  Prefactor     .11102E-08    234.72       -.48242E-05** at limit **
   3  Prefactor     .83267E-09    22.099       -.42188E-06** at limit **
   4  Prefactor     .42644E-06    73.599       -.49210E-04** at limit **
   5  Prefactor      .0000        3.8507       -.44889E-06** at limit **
   6  Prefactor     104.77        224.05        .52230E-04   -.10568E-01
   7  norm          43.948        11.217       -.18703E-05   -.84345E-02
   8  Prefactor     .49960E-09    12.251        .17611E-05** at limit **
   9  norm          .17764E-08    9.3255        .17524E-05** at limit **
  10  Prefactor     27.824        35.685       -.60188E-05   -.31808E-02
  11  Prefactor     7.5958        7.1811        .51757E-06    .45896E-03
  12  Prefactor     7.1654        7.5974        .60693E-06   -.63826E-02
  13  Prefactor     .16653E-09    6.9164       -.11683E-05** at limit **
  14  norm          2.8696        1.1806        .60582E-07   -.57496E-02
  15  norm           .0000        4.7664       -.29461E-06** at limit **
  16  Prefactor     19.297        6.5942        .20542E-05    .15254    
  17  Prefactor     46.116        7.9559        .16097E-06   -.11216    
  18  Prefactor     24.327        2.2620        .49649E-06   -.44326E-01
  19  Prefactor     5.3733        10.196       -.24792E-05   -.73987E-02
  20  norm           .0000        2.8686       -.14225E-06** at limit **
  21  Prefactor     .16653E-09    11.478       -.26467E-05** at limit **
  22  norm          3.2957        6.1324        .14875E-06    .10467E-02
  23  Prefactor     12.977        7.1264       -.31121E-06    .56734E-01
  24  norm          .55511E-10    2.4766       -.66698E-06** at limit **
  25  norm          16.188        6.6478       -.23189E-06   -.14630E-01
  26  norm          9.7084        4.2989        .39452E-06    .18861E-01
  27  Normalizat    .65786        .48033        .28587E-04    .49347E-04
  28  Prefactor     .94823        .51935       -.33963E-04    .13943E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.21823e-07
  Prefactor  = 1.11022e-09
  Prefactor  = 8.32667e-10
  Prefactor  = 4.26437e-07
  Prefactor  = 0
  Prefactor  = 104.766
  norm       = 43.9478
  Prefactor  = 4.996e-10
  norm       = 1.77636e-09
  Prefactor  = 27.8241
  Prefactor  = 7.59577
  Prefactor  = 7.16543
  Prefactor  = 1.66533e-10
  norm       = 2.86964
  norm       = 0
  Prefactor  = 19.297
  Prefactor  = 46.1165
  Prefactor  = 24.3272
  Prefactor  = 5.37332
  norm       = 0
  Prefactor  = 1.66533e-10
  norm       = 3.29567
  Prefactor  = 12.9773
  norm       = 5.55112e-11
  norm       = 16.1881
  norm       = 9.70838
  Normalizat = 0.657856
  Prefactor  = 0.948235
 **********
 **   18 **HESSE 
 **********

 FCN=   1900.351     FROM HESSE     STATUS=OK           575 CALLS     3917 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22182E-06    128.24        .90180E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .11102E-08    236.04        .69570E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .83267E-09    22.097        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .42644E-06    73.964        .12035E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        3.8489        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     104.77        227.03        .98655E-04   -1.5503    
   7  norm          43.948        11.279        .15089E-03   -1.5575    
   8  Prefactor     .49960E-09    12.253        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .17764E-08    9.3027        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     27.824        36.601        .18803E-03   -1.5602    
  11  Prefactor     7.5958        7.2248        .36235E-03   -1.5653    
  12  Prefactor     7.1654        8.0789        .37324E-03   -1.5654    
  13  Prefactor     .16653E-09    6.9141        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.8696        1.1816        .59949E-03   -1.5674    
  15  norm           .0000        4.7647        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     19.297        28.608        .22809E-03   -1.5620    
  17  Prefactor     46.116        47.289        .14713E-03   -1.5572    
  18  Prefactor     24.327        18.917        .20280E-03   -1.5609    
  19  Prefactor     5.3733        12.567        .43446E-03   -1.5662    
  20  norm           .0000        2.8687        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .16653E-09    11.481        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.2957        6.1714        .55117E-03   -1.5672    
  23  Prefactor     12.977        31.434        .27657E-03   -1.5636    
  24  norm          .55511E-10    2.4771        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          16.188        12.696        .24867E-03   -1.5627    
  26  norm          9.7084        20.750        .32220E-03   -1.5646    
  27  Normalizat    .65786        .41831        .80577E-01   -1.0558    
  28  Prefactor     .94823        .45007        .78036E-01   -.94475    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95158e-06
Minuit parameter uncertainties:
  1  0.010668
  2  0.00103116
  3  0.000274345
  4  0.0112324
  5  9.1755e-06
  6  227.044
  7  11.2789
  8  0.000153299
  9  0.000257647
  10  36.601
  11  7.22478
  12  8.07888
  13  6.38186e-05
  14  1.18161
  15  1.70683e-05
  16  28.6081
  17  47.289
  18  18.917
  19  12.5673
  20  5.45325e-07
  21  8.21995e-05
  22  6.17138
  23  31.4347
  24  2.32838e-05
  25  12.6958
  26  20.7499
  27  0.420351
  28  0.451859
Done.

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

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  7.596e+00  7.225e+00  0.000e+00  1.000e+06 ( 1.000e-13)
318        Index:  1.707e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  4.501e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  9.482e-01  4.519e-01  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  6.579e-01  4.204e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.34
Ra Dec: 185.345 30.168
Photon Index (Fixed Index): 1.71 +/- 0.00
Photon Flux (Fixed Index): 7.09e-08 +/- 6.74e-08
Energy Flux (Fixed Index): 1.13e-04 +/- 1.08e-04

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) = 1898.57764916
delta logL = 1.77338408552

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1898.03475015
delta logL = 2.31628309164

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1898.035     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      241 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2123        1.6034        .10281E-02   -.91784E-02
   2  Index         .91205E-12    .72164        .46190    ** at limit **
   3  Normalizat    .67246        .37813        .79891E-01    .63826E-05
   4  Prefactor     .96319        .43694        .77823E-01    .63503E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.21234
  Index      = 9.12048e-13
  Normalizat = 0.672462
  Prefactor  = 0.963189
 **********
 **   18 **HESSE 
 **********

 FCN=   1898.035     FROM HESSE     STATUS=OK            33 CALLS      274 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2123        1.2187        .45559E-04   -1.5686    
   2  Index         .91205E-12    1.5739        .17017E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .67246        .43972        .35380E-03   -1.0499    
   4  Prefactor     .96319        .50855        .34439E-03   -.93967    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.26321e-11
Minuit parameter uncertainties:
  1  1.21873
  2  2.46422e-06
  3  0.442045
  4  0.511106
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/681422': 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) = 1898.0347487
delta logL = 2.31628453922

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  1.212e+00  1.219e+00  0.000e+00  1.000e+06 ( 1.000e-13)
318        Index:  9.120e-13  2.464e-06  0.000e+00  1.000e+01 (-1.000e+00)
319        Scale:  4.501e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  9.632e-01  5.111e-01  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  6.725e-01  4.420e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.96
Ra Dec: 185.345 30.168
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 1.21e-08 +/- 1.22e-08
Energy Flux (Free Index): 6.07e-04 +/- 6.09e-04

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/681422/cmap_HighResolution_699148801_699408001_4FGL_J1221.3+3010_daily_bin1774.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.09e-08', energy_flux2='6.07e-04', photon_flux_error='6.74e-08', dlogl='2.32e+00', energy_flux='1.13e-04', photon_flux2='1.21e-08', job_status='DONE', time_completed='2023-03-02 00:50:41.777748', photon_index_error2='0.00', photon_index2='0.00', ts='5.34', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='6.09e-04', EG='0.66', time_epoch_completed='1677747041.78', return_code='0', job_id='681422', GAL2='0.96', EG2='0.67', return_code2='0', energy_flux_error='1.08e-04', photon_flux_error2='1.22e-08', ts2='9.96', photon_index='1.71' WHERE bin_id='1774' AND source_name='4FGL J1221.3+3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar  2 00:50:41 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0029>
Subject: Job 681422: <4FGL_J1221.3+3010_daily_bin1774> in cluster <slac> Done

Job <4FGL_J1221.3+3010_daily_bin1774> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Mar  2 00:40:21 2023
Job was executed on host(s) <bullet0029>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar  2 00:40:22 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar  2 00:40:22 2023
Terminated at Thu Mar  2 00:50:42 2023
Results reported at Thu Mar  2 00:50:42 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.3+3010_daily_bin1774 185.345 30.1677 699148801 699408001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1221.3+3010 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   438.09 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             241.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   620 sec.
    Turnaround time :                            621 sec.

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

