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


Performing analysis on: 4FGL_J1221.3+3010_daily_bin1749
RA = 185.345, Dec = 30.1677
tmin = 692668801, tmax = 692928001
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='950537', job_status='RUN', time_executed='2022-12-17 00:40:36.133492', time_epoch_executed='1671266436.13' WHERE source_name='4FGL J1221.3+3010' and cadence='daily' and bin_id='1749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950537

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950537/ft1_4FGL_J1221.3+3010_daily_bin1749.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950537/ft2_4FGL_J1221.3+3010_daily_bin1749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950537/ft1_4FGL_J1221.3+3010_daily_bin1749.fits outfile=/scratch/kocevski/950537/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin1749.fits ra=185.345 dec=30.1677 rad=12.0 tmin=692668801.0 tmax=692928001.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 3.66
user 3.41
sys 0.21

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

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

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

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

Number of photons that the gtmktime cut: 881

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/950537/ft1_filtered_4FGL_J1221.3+3010_daily_bin1749.fits" evtable="EVENTS" scfile=/scratch/kocevski/950537/ft2_4FGL_J1221.3+3010_daily_bin1749.fits sctable="SC_DATA" outfile=/scratch/kocevski/950537/ltcube_692668801_692928001_4FGL_J1221.3+3010_daily_bin1749.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/950537/ft2_4FGL_J1221.3+3010_daily_bin1749.fits
.....................!
real 12.20
user 11.76
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950537/ft1_filtered_4FGL_J1221.3+3010_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/950537/ft2_4FGL_J1221.3+3010_daily_bin1749.fits sctable="SC_DATA" expcube=/scratch/kocevski/950537/ltcube_692668801_692928001_4FGL_J1221.3+3010_daily_bin1749.fits outfile=/scratch/kocevski/950537/expmap_692668801_692928001_4FGL_J1221.3+3010_daily_bin1749.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/950537/ltcube_692668801_692928001_4FGL_J1221.3+3010_daily_bin1749.fits
.....................!
real 191.63
user 185.31
sys 5.95

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/950537/ft1_filtered_4FGL_J1221.3+3010_daily_bin1749.fits scfile=/scratch/kocevski/950537/ft2_4FGL_J1221.3+3010_daily_bin1749.fits outfile=/scratch/kocevski/950537/cmap_692668801_692928001_4FGL_J1221.3+3010_daily_bin1749.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/950537/ft1_filtered_4FGL_J1221.3+3010_daily_bin1749.fits scfile=/scratch/kocevski/950537/ft2_4FGL_J1221.3+3010_daily_bin1749.fits outfile=/scratch/kocevski/950537/cmap_HighResolution_692668801_692928001_4FGL_J1221.3+3010_daily_bin1749.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.55
user 0.35
sys 0.19

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/950537/ft1_filtered_4FGL_J1221.3+3010_daily_bin1749.fits', '/scratch/kocevski/950537/ft2_4FGL_J1221.3+3010_daily_bin1749.fits', expMap='/scratch/kocevski/950537/expmap_692668801_692928001_4FGL_J1221.3+3010_daily_bin1749.fits', expCube='/scratch/kocevski/950537/ltcube_692668801_692928001_4FGL_J1221.3+3010_daily_bin1749.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/950537/Model_4FGL_J1221.3+3010_daily_bin1749.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/950537/ft1_filtered_4FGL_J1221.3+3010_daily_bin1749.fits
Spacecraft file(s): /scratch/kocevski/950537/ft2_4FGL_J1221.3+3010_daily_bin1749.fits
Exposure map: /scratch/kocevski/950537/expmap_692668801_692928001_4FGL_J1221.3+3010_daily_bin1749.fits
Exposure cube: /scratch/kocevski/950537/ltcube_692668801_692928001_4FGL_J1221.3+3010_daily_bin1749.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/950537/Model_4FGL_J1221.3+3010_daily_bin1749.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) = 9074.78606134

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17296E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .73298E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .15433E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    .14005E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .95506       1.0000          .0000       .10000E+07
     6 'Prefactor '    18.612       1.0000          .0000       .10000E+07
     7 'norm      '    39.194       1.0000          .0000       .10000E+07
     8 'Prefactor '    2.5232       1.0000          .0000       .10000E+07
     9 'norm      '    7.5488       1.0000          .0000       .10000E+07
    10 'Prefactor '    .63573E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    2.5879       1.0000          .0000       .10000E+07
    12 'Prefactor '    3.5922       1.0000          .0000       .10000E+07
    13 'Prefactor '    .10465E-04   1.0000          .0000       .10000E+07
    14 'norm      '    .88911E-01   1.0000          .0000       .10000E+07
    15 'norm      '    22.460       1.0000          .0000       .10000E+07
    16 'Prefactor '    .15276E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    3.4100       1.0000          .0000       .10000E+07
    18 'Prefactor '    1.2224       1.0000          .0000       .10000E+07
    19 'Prefactor '    .63838E-08   1.0000          .0000       .10000E+07
    20 'norm      '    1.5965       1.0000          .0000       .10000E+07
    21 'Prefactor '    8.4703       1.0000          .0000       .10000E+07
    22 'norm      '    .40541E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    .10058E-03   1.0000          .0000       .10000E+07
    24 'norm      '    .12990E-06   1.0000          .0000       .10000E+07
    25 'norm      '    30.509       1.0000          .0000       .10000E+07
    26 'norm      '    21.085       1.0000          .0000       .10000E+07
    27 'Normalizat'    .96424       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1257       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=   9074.648     FROM MIGRAD    STATUS=CONVERGED    205 CALLS     2099 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .72997E-07    5.2919       -.77035E-06** at limit **
   2  Prefactor     .42411E-07    4.5521        .12873E-05** at limit **
   3  Prefactor     .76605E-08    2.0295        .22766E-06** at limit **
   4  Prefactor     .18319E-08    8.2946        .83221E-07** at limit **
   5  Prefactor     .95648        1.3139        .19032E-06   -.18969E-02
   6  Prefactor     17.868        31.912        .12386E-05   -.15641E-01
   7  norm          39.186        3.2346        .54971E-07    .52989E-02
   8  Prefactor     2.5471        3.9570        .92523E-07    .11673E-02
   9  norm          7.5474        3.4255        .22295E-07    .13372E-02
  10  Prefactor     .16653E-09    4.2451       -.31506E-06** at limit **
  11  Prefactor     2.5897        1.8635        .65271E-08    .14393E-02
  12  Prefactor     3.5924        1.8016       -.30464E-07    .32206E-02
  13  Prefactor     .11480E-06    4.5361       -.21934E-06** at limit **
  14  norm          .88969E-01    .18876        .78848E-07** at limit **
  15  norm          22.466        6.1045        .68642E-07   -.61051E-03
  16  Prefactor     .10741E-06    4.2467       -.13259E-05** at limit **
  17  Prefactor     4.0438        26.133       -.12163E-05    .93485E-02
  18  Prefactor     1.2721        6.1777       -.56565E-06   -.56073E-04
  19  Prefactor     .55511E-10    1.4679       -.19368E-06** at limit **
  20  norm          1.5900        3.5984       -.24267E-06   -.16719E-02
  21  Prefactor     8.5810        20.586        .35841E-05   -.42510E-01
  22  norm          .11102E-04    239.16       -.19020E-04** at limit **
  23  Prefactor     .77716E-09    3.4313       -.10869E-06** at limit **
  24  norm          .60624E-06    2.5599        .11078E-05** at limit **
  25  norm          30.417        6.0537        .33145E-06    .67311E-01
  26  norm          21.230        7.0817       -.10591E-05   -.10362    
  27  Normalizat    .96414        .20683       -.63428E-05   -.22377E-03
  28  Prefactor     1.1251        .23502       -.54116E-05   -.20471E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.29972e-08
  Prefactor  = 4.24105e-08
  Prefactor  = 7.66054e-09
  Prefactor  = 1.83187e-09
  Prefactor  = 0.956476
  Prefactor  = 17.8682
  norm       = 39.1863
  Prefactor  = 2.54707
  norm       = 7.54743
  Prefactor  = 1.66533e-10
  Prefactor  = 2.58968
  Prefactor  = 3.59243
  Prefactor  = 1.14797e-07
  norm       = 0.0889694
  norm       = 22.4655
  Prefactor  = 1.07414e-07
  Prefactor  = 4.04377
  Prefactor  = 1.2721
  Prefactor  = 5.55112e-11
  norm       = 1.58998
  Prefactor  = 8.58105
  norm       = 1.11017e-05
  Prefactor  = 7.77156e-10
  norm       = 6.06237e-07
  norm       = 30.4169
  norm       = 21.2295
  Normalizat = 0.964143
  Prefactor  = 1.12509
 **********
 **   18 **HESSE 
 **********

 FCN=   9074.648     FROM HESSE     STATUS=OK           587 CALLS     2686 TOTAL
                     EDM=   .28E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .72997E-07    5.6333        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .42411E-07    4.6636        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .76605E-08    6.8505        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .18319E-08    8.4322        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .95648        1.3199        .42167E-03   -1.5688    
   6  Prefactor     17.868        32.612        .23188E-03   -1.5623    
   7  norm          39.186        3.2376        .15975E-03   -1.5583    
   8  Prefactor     2.5471        3.9758        .64284E-03   -1.5676    
   9  norm          7.5474        3.4215        .36477E-03   -1.5653    
  10  Prefactor     .16653E-09    4.2511        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.5897        1.8561        .63406E-03   -1.5676    
  12  Prefactor     3.5924        1.8022        .53291E-03   -1.5670    
  13  Prefactor     .11480E-06    6.7557        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .88969E-01    .18395        .12989E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          22.466        6.1228        .21106E-03   -1.5613    
  16  Prefactor     .10741E-06    4.5376        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.0438        26.951        .54758E-03   -1.5668    
  18  Prefactor     1.2721        6.2422        .10192E-02   -1.5685    
  19  Prefactor     .55511E-10    1.4681        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.5900        3.7242        .83902E-03   -1.5683    
  21  Prefactor     8.5810        25.036        .34420E-03   -1.5649    
  22  norm          .11102E-04    1.5254        .64741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .77716E-09    3.4395        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .60624E-06    6.8087        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          30.417        8.9518        .18107E-03   -1.5598    
  26  norm          21.230        13.798        .21784E-03   -1.5616    
  27  Normalizat    .96414        .17326        .69192E-01   -.94242    
  28  Prefactor     1.1251        .19569        .74911E-01   -.88669    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79718e-06
Minuit parameter uncertainties:
  1  0.00128273
  2  0.000889524
  3  0.00045737
  4  0.000247964
  5  1.31992
  6  32.6128
  7  3.2376
  8  3.97578
  9  3.42152
  10  5.22519e-05
  11  1.85607
  12  1.8022
  13  0.0017613
  14  0.183954
  15  6.1228
  16  0.00139633
  17  20.8792
  18  5.63586
  19  1.97618e-05
  20  3.72416
  21  25.0361
  22  0.00823033
  23  0.000103976
  24  0.0040634
  25  8.95185
  26  13.7976
  27  0.17336
  28  0.195818
Done.

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

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  2.590e+00  1.856e+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:  1.125e+00  1.958e-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:  9.641e-01  1.734e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.24
Ra Dec: 185.345 30.168
Photon Index (Fixed Index): 1.71 +/- 0.00
Photon Flux (Fixed Index): 2.42e-08 +/- 1.73e-08
Energy Flux (Fixed Index): 3.85e-05 +/- 2.76e-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) = 9074.05258025
delta logL = 0.595741582178

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9074.04170961
delta logL = 0.606612223994

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9383       1.0000          .0000       .10000E+07
     2 'Index     '    1.1830       1.0000          .0000       10.000    
     3 'Normalizat'    .97191       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1236       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=   9074.042     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      238 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9383        3.6418        .59229E-03    .31523E-01
   2  Index         1.1826        .69970        .21758        .87583E-05
   3  Normalizat    .97188        .16665        .68987E-01    .22378E-04
   4  Prefactor     1.1236        .19307        .75007E-01    .13766E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.93834
  Index      = 1.18261
  Normalizat = 0.971877
  Prefactor  = 1.1236
 **********
 **   18 **HESSE 
 **********

 FCN=   9074.042     FROM HESSE     STATUS=OK            33 CALLS      271 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9383        2.2442        .11673E-04   -1.5674    
   2  Index         1.1826        .48728        .11926E-01   -.86868    
   3  Normalizat    .97188        .19829        .30519E-03   -.93979    
   4  Prefactor     1.1236        .23110        .33192E-03   -.88716    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03379e-09
Minuit parameter uncertainties:
  1  2.24419
  2  0.489152
  3  0.198438
  4  0.23131
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950537': 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) = 9074.04170918
delta logL = 0.606612646592

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  2.938e+00  2.244e+00  0.000e+00  1.000e+06 ( 1.000e-13)
318        Index:  1.183e+00  4.892e-01  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:  1.124e+00  2.313e-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:  9.719e-01  1.984e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.47
Ra Dec: 185.345 30.168
Photon Index (Free Index): 1.18 +/- 0.49
Photon Flux (Free Index): 1.04e-08 +/- 1.08e-08
Energy Flux (Free Index): 9.16e-05 +/- 9.40e-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/950537/cmap_HighResolution_692668801_692928001_4FGL_J1221.3+3010_daily_bin1749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.42e-08', energy_flux2='9.16e-05', photon_flux_error='1.73e-08', dlogl='6.07e-01', energy_flux='3.85e-05', photon_flux2='1.04e-08', job_status='DONE', time_completed='2022-12-17 00:53:53.303259', photon_index_error2='0.49', photon_index2='1.18', ts='13.24', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='9.40e-05', EG='0.96', time_epoch_completed='1671267233.3', return_code='0', job_id='950537', GAL2='1.12', EG2='0.97', return_code2='0', energy_flux_error='2.76e-05', photon_flux_error2='1.08e-08', ts2='14.47', photon_index='1.71' WHERE bin_id='1749' AND source_name='4FGL J1221.3+3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Dec 17 00:53:53 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 950537: <4FGL_J1221.3+3010_daily_bin1749> in cluster <slac> Done

Job <4FGL_J1221.3+3010_daily_bin1749> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Dec 17 00:40:18 2022
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Dec 17 00:40:19 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Dec 17 00:40:19 2022
Terminated at Sat Dec 17 00:53:54 2022
Results reported at Sat Dec 17 00:53:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.3+3010_daily_bin1749 185.345 30.1677 692668801 692928001 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 :                                   799.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             302.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            816 sec.

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

