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


Performing analysis on: 4FGL_J1221.3+3010_daily_bin1709
RA = 185.345, Dec = 30.1677
tmin = 682300801, tmax = 682560001
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='117663', job_status='RUN', time_executed='2022-09-16 16:45:18.199804', time_epoch_executed='1663371918.2' WHERE source_name='4FGL J1221.3+3010' and cadence='daily' and bin_id='1709'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/117663

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/117663/ft1_4FGL_J1221.3+3010_daily_bin1709.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/117663/ft2_4FGL_J1221.3+3010_daily_bin1709.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/117663/ft1_4FGL_J1221.3+3010_daily_bin1709.fits outfile=/scratch/kocevski/117663/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin1709.fits ra=185.345 dec=30.1677 rad=12.0 tmin=682300801.0 tmax=682560001.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.45
user 2.87
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/117663/ft2_4FGL_J1221.3+3010_daily_bin1709.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/117663/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin1709.fits evtable="EVENTS" outfile="/scratch/kocevski/117663/ft1_filtered_4FGL_J1221.3+3010_daily_bin1709.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.29
sys 0.15

Number of photons that the gtmktime cut: 597

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/117663/ft1_filtered_4FGL_J1221.3+3010_daily_bin1709.fits" evtable="EVENTS" scfile=/scratch/kocevski/117663/ft2_4FGL_J1221.3+3010_daily_bin1709.fits sctable="SC_DATA" outfile=/scratch/kocevski/117663/ltcube_682300801_682560001_4FGL_J1221.3+3010_daily_bin1709.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/117663/ft2_4FGL_J1221.3+3010_daily_bin1709.fits
.....................!
real 14.51
user 12.31
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/117663/ft1_filtered_4FGL_J1221.3+3010_daily_bin1709.fits evtable="EVENTS" scfile=/scratch/kocevski/117663/ft2_4FGL_J1221.3+3010_daily_bin1709.fits sctable="SC_DATA" expcube=/scratch/kocevski/117663/ltcube_682300801_682560001_4FGL_J1221.3+3010_daily_bin1709.fits outfile=/scratch/kocevski/117663/expmap_682300801_682560001_4FGL_J1221.3+3010_daily_bin1709.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/117663/ltcube_682300801_682560001_4FGL_J1221.3+3010_daily_bin1709.fits
.....................!
real 174.07
user 152.09
sys 4.76

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/117663/ft1_filtered_4FGL_J1221.3+3010_daily_bin1709.fits scfile=/scratch/kocevski/117663/ft2_4FGL_J1221.3+3010_daily_bin1709.fits outfile=/scratch/kocevski/117663/cmap_682300801_682560001_4FGL_J1221.3+3010_daily_bin1709.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.61
user 0.32
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/117663/ft1_filtered_4FGL_J1221.3+3010_daily_bin1709.fits scfile=/scratch/kocevski/117663/ft2_4FGL_J1221.3+3010_daily_bin1709.fits outfile=/scratch/kocevski/117663/cmap_HighResolution_682300801_682560001_4FGL_J1221.3+3010_daily_bin1709.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.48
user 0.33
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7254       1.0000          .0000       .10000E+07
     2 'Prefactor '    .26923E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .43398E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .94390E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .68945E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    .74521E-04   1.0000          .0000       .10000E+07
     7 'norm      '    17.245       1.0000          .0000       .10000E+07
     8 'Prefactor '    .28918E-03   1.0000          .0000       .10000E+07
     9 'norm      '    9.8792       1.0000          .0000       .10000E+07
    10 'Prefactor '    .10663E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    1.6364       1.0000          .0000       .10000E+07
    12 'Prefactor '    .18757E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    .69584E-03   1.0000          .0000       .10000E+07
    14 'norm      '    .69738E-05   1.0000          .0000       .10000E+07
    15 'norm      '    1.6211       1.0000          .0000       .10000E+07
    16 'Prefactor '    .21649E-08   1.0000          .0000       .10000E+07
    17 'Prefactor '    .62265E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .21420E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .61218       1.0000          .0000       .10000E+07
    20 'norm      '    8.9982       1.0000          .0000       .10000E+07
    21 'Prefactor '    25.932       1.0000          .0000       .10000E+07
    22 'norm      '    .65248E-06   1.0000          .0000       .10000E+07
    23 'Prefactor '    .18701E-02   1.0000          .0000       .10000E+07
    24 'norm      '    .11383E-03   1.0000          .0000       .10000E+07
    25 'norm      '    29.050       1.0000          .0000       .10000E+07
    26 'norm      '    .13606E-03   1.0000          .0000       .10000E+07
    27 'Normalizat'    .64306       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.5256       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=   6790.663     FROM MIGRAD    STATUS=CONVERGED    248 CALLS     2134 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8327        26.807       -.11826E-05   -.17848E-01
   2  Prefactor     .29965E-06    113.11       -.12745E-05** at limit **
   3  Prefactor     .63283E-06    2.2849        .90763E-07** at limit **
   4  Prefactor     .42744E-08    10.842       -.41994E-06** at limit **
   5  Prefactor      .0000        .65056        .72404E-07** at limit **
   6  Prefactor     .92376E-06    18.084        .82662E-06** at limit **
   7  norm          17.249        2.5311        .86720E-09   -.24760E-02
   8  Prefactor     .71720E-07    2.6444       -.43330E-07** at limit **
   9  norm          9.8719        3.9275       -.18601E-07   -.14735E-02
  10  Prefactor      .0000        2.1844        .21447E-06** at limit **
  11  Prefactor     1.6394        1.7395       -.10908E-07   -.49960E-03
  12  Prefactor      .0000        2.4769        .24680E-06** at limit **
  13  Prefactor     .17116E-05    5.0649        .86385E-07** at limit **
  14  norm          .77716E-09    6.2770        .54278E-06** at limit **
  15  norm          1.5894        5.2174       -.40104E-06   -.15686E-02
  16  Prefactor     .30181E-06    5.7069       -.30519E-06** at limit **
  17  Prefactor     .39269E-06    4.5902        .19378E-06** at limit **
  18  Prefactor     .40568E-06    4.5706       -.21924E-06** at limit **
  19  Prefactor     .58700        9.9228        .31992E-07    .12571E-02
  20  norm          8.9435        5.4480        .93483E-07   -.27406E-02
  21  Prefactor     26.947        17.449       -.41703E-06    .11125    
  22  norm          .54945E-06    2.5978       -.21495E-06** at limit **
  23  Prefactor     .55511E-10    5.5674        .47571E-08** at limit **
  24  norm          .55511E-10    2.0207        .11374E-06** at limit **
  25  norm          29.041        7.2138       -.22390E-07   -.80824E-02
  26  norm          .26440E-06    3.5320       -.65520E-07** at limit **
  27  Normalizat    .64222        .21207       -.14407E-05   -.10439E-03
  28  Prefactor     1.5260        .24484       -.80535E-07   -.10942E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.83269
  Prefactor  = 2.99649e-07
  Prefactor  = 6.32827e-07
  Prefactor  = 4.27436e-09
  Prefactor  = 0
  Prefactor  = 9.23761e-07
  norm       = 17.2486
  Prefactor  = 7.17204e-08
  norm       = 9.87189
  Prefactor  = 0
  Prefactor  = 1.63943
  Prefactor  = 0
  Prefactor  = 1.71158e-06
  norm       = 7.77156e-10
  norm       = 1.58939
  Prefactor  = 3.01814e-07
  Prefactor  = 3.92686e-07
  Prefactor  = 4.05675e-07
  Prefactor  = 0.587004
  norm       = 8.94346
  Prefactor  = 26.9468
  norm       = 5.49449e-07
  Prefactor  = 5.55112e-11
  norm       = 5.55112e-11
  norm       = 29.0409
  norm       = 2.644e-07
  Normalizat = 0.642225
  Prefactor  = 1.52599
 **********
 **   18 **HESSE 
 **********

 FCN=   6790.663     FROM HESSE     STATUS=OK           577 CALLS     2711 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8327        42.604        .61659E-03   -1.5674    
   2  Prefactor     .29965E-06    118.85        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .63283E-06    9.2291        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .42744E-08    15.818        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        .64545        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .92376E-06    19.650        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          17.249        2.5338        .24091E-03   -1.5625    
   8  Prefactor     .71720E-07    8.2287        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          9.8719        3.9329        .31857E-03   -1.5645    
  10  Prefactor      .0000        2.1910        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.6394        1.7372        .82597E-03   -1.5682    
  12  Prefactor      .0000        2.4509        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .17116E-05    10.079        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .77716E-09    .86912E-01    .22456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.5894        5.2613        .83088E-03   -1.5683    
  16  Prefactor     .30181E-06    6.7599        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .39269E-06    9.1955        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .40568E-06    17.320        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .58700        9.9237        .68144E-03   -1.5693    
  20  norm          8.9435        5.5493        .33389E-03   -1.5648    
  21  Prefactor     26.947        27.905        .19641E-03   -1.5604    
  22  norm          .54945E-06    7.5836        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .55511E-10    5.5735        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .55511E-10    2.0303        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          29.041        7.3267        .18557E-03   -1.5600    
  26  norm          .26440E-06    7.4613        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .64222        .18434        .75904E-01   -1.0622    
  28  Prefactor     1.5260        .20930        .60372E-01   -.76814    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09775e-06
Minuit parameter uncertainties:
  1  21.9714
  2  0.0119354
  3  0.0048334
  4  0.000518591
  5  1.37838e-06
  6  0.00852091
  7  2.5338
  8  0.00153645
  9  3.93293
  10  1.55472e-05
  11  1.73724
  12  1.13931e-05
  13  0.00830697
  14  1.63907e-05
  15  5.26128
  16  0.00285677
  17  0.00380057
  18  0.00530139
  19  4.82711
  20  5.54934
  21  27.9053
  22  0.0040826
  23  2.95231e-05
  24  2.3188e-05
  25  7.32666
  26  0.00280915
  27  0.184515
  28  0.209418
Done.

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

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  1.639e+00  1.737e+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.526e+00  2.094e-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.422e-01  1.845e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.20
Ra Dec: 185.345 30.168
Photon Index (Fixed Index): 1.71 +/- 0.00
Photon Flux (Fixed Index): 1.53e-08 +/- 1.62e-08
Energy Flux (Fixed Index): 2.44e-05 +/- 2.59e-05

TS (Fixed Index): 3.20
Ra Dec: 185.345 30.168
Photon Flux Upper Limit: 6.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/117663/likelihoodResults_682300801_682560001_4FGL_J1221.3+3010_daily_bin1709.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) = 6790.45039274
delta logL = 0.212541700964

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6790.44821849
delta logL = 0.214715953926

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7406       1.0000          .0000       .10000E+07
     2 'Index     '    1.2293       1.0000          .0000       10.000    
     3 'Normalizat'    .64643       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5267       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=   6790.448     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      211 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7402        106.20        .79489E-03   -.25627E-02
   2  Index         1.2293        8.0117        .24265       -.41894E-05
   3  Normalizat    .64634        .20922        .75709E-01    .31429E-04
   4  Prefactor     1.5268        .15877        .60384E-01    .17560E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.74018
  Index      = 1.22931
  Normalizat = 0.646336
  Prefactor  = 1.5268
 **********
 **   18 **HESSE 
 **********

 FCN=   6790.448     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7402        1.9025        .11121E-04   -1.5682    
   2  Index         1.2293        .71829        .14729E-01   -.85434    
   3  Normalizat    .64634        .20686        .33520E-03   -1.0605    
   4  Prefactor     1.5268        .24353        .26700E-03   -.76792    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47042e-11
Minuit parameter uncertainties:
  1  1.90253
  2  0.724141
  3  0.207113
  4  0.243715
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/117663': 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) = 6790.44821834
delta logL = 0.214716098295

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  1.740e+00  1.903e+00  0.000e+00  1.000e+06 ( 1.000e-13)
318        Index:  1.229e+00  7.241e-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.527e+00  2.437e-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.463e-01  2.071e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.63
Ra Dec: 185.345 30.168
Photon Index (Free Index): 1.23 +/- 0.72
Photon Flux (Free Index): 6.50e-09 +/- 1.03e-08
Energy Flux (Free Index): 4.97e-05 +/- 7.35e-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/117663/cmap_HighResolution_682300801_682560001_4FGL_J1221.3+3010_daily_bin1709.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.65e-03', comment='SUCCESS', photon_flux='1.53e-08', energy_flux2='4.97e-05', photon_flux_error='1.62e-08', dlogl='2.15e-01', energy_flux='2.44e-05', photon_flux2='6.50e-09', job_status='DONE', time_completed='2022-09-16 16:56:04.440046', photon_index_error2='0.72', photon_index2='1.23', ts='3.20', fit_tolerance='1e-08', GAL='1.53', photon_index_error='0.00', photon_flux_upper_limit='6.37e-08', energy_flux_error2='7.35e-05', EG='0.64', time_epoch_completed='1663372564.44', return_code='0', job_id='117663', GAL2='1.53', EG2='0.65', return_code2='0', energy_flux_error='2.59e-05', photon_flux_error2='1.03e-08', ts2='3.63', photon_index='1.71' WHERE bin_id='1709' AND source_name='4FGL J1221.3+3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 16:56:04 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 117663: <4FGL_J1221.3+3010_daily_bin1709> in cluster <slac> Done

Job <4FGL_J1221.3+3010_daily_bin1709> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Fri Sep 16 16:40:37 2022
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 16:41:52 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:41:52 2022
Terminated at Fri Sep 16 16:56:05 2022
Results reported at Fri Sep 16 16:56:05 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.3+3010_daily_bin1709 185.345 30.1677 682300801 682560001 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 :                                   597.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             263.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            928 sec.

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

