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


Performing analysis on: 4FGL_J1221.3+3010_daily_bin1751
RA = 185.345, Dec = 30.1677
tmin = 693187201, tmax = 693446401
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='77663', job_status='RUN', time_executed='2022-12-23 00:42:08.866646', time_epoch_executed='1671784928.87' WHERE source_name='4FGL J1221.3+3010' and cadence='daily' and bin_id='1751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/77663

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/77663/ft1_4FGL_J1221.3+3010_daily_bin1751.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/77663/ft2_4FGL_J1221.3+3010_daily_bin1751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/77663/ft1_4FGL_J1221.3+3010_daily_bin1751.fits outfile=/scratch/kocevski/77663/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin1751.fits ra=185.345 dec=30.1677 rad=12.0 tmin=693187201.0 tmax=693446401.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.63
user 3.37
sys 0.23

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

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

Number of photons that the gtmktime cut: 785

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/77663/ft1_filtered_4FGL_J1221.3+3010_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/77663/ft2_4FGL_J1221.3+3010_daily_bin1751.fits sctable="SC_DATA" expcube=/scratch/kocevski/77663/ltcube_693187201_693446401_4FGL_J1221.3+3010_daily_bin1751.fits outfile=/scratch/kocevski/77663/expmap_693187201_693446401_4FGL_J1221.3+3010_daily_bin1751.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/77663/ltcube_693187201_693446401_4FGL_J1221.3+3010_daily_bin1751.fits
.....................!
real 191.09
user 185.53
sys 5.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 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/77663/ft1_filtered_4FGL_J1221.3+3010_daily_bin1751.fits scfile=/scratch/kocevski/77663/ft2_4FGL_J1221.3+3010_daily_bin1751.fits outfile=/scratch/kocevski/77663/cmap_693187201_693446401_4FGL_J1221.3+3010_daily_bin1751.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/77663/ft1_filtered_4FGL_J1221.3+3010_daily_bin1751.fits scfile=/scratch/kocevski/77663/ft2_4FGL_J1221.3+3010_daily_bin1751.fits outfile=/scratch/kocevski/77663/cmap_HighResolution_693187201_693446401_4FGL_J1221.3+3010_daily_bin1751.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .61273E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    14.811       1.0000          .0000       .10000E+07
     3 'Prefactor '    18.782       1.0000          .0000       .10000E+07
     4 'Prefactor '    .10115E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .20006E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    56.403       1.0000          .0000       .10000E+07
     7 'norm      '    25.060       1.0000          .0000       .10000E+07
     8 'Prefactor '    .28977E-04   1.0000          .0000       .10000E+07
     9 'norm      '    4.2519       1.0000          .0000       .10000E+07
    10 'Prefactor '    4.4862       1.0000          .0000       .10000E+07
    11 'Prefactor '    .92203       1.0000          .0000       .10000E+07
    12 'Prefactor '    2.1339       1.0000          .0000       .10000E+07
    13 'Prefactor '    .75111       1.0000          .0000       .10000E+07
    14 'norm      '    .24907       1.0000          .0000       .10000E+07
    15 'norm      '    14.094       1.0000          .0000       .10000E+07
    16 'Prefactor '    8.8837       1.0000          .0000       .10000E+07
    17 'Prefactor '    .74284E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .16602E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .20742E-03   1.0000          .0000       .10000E+07
    20 'norm      '    3.6039       1.0000          .0000       .10000E+07
    21 'Prefactor '    37.264       1.0000          .0000       .10000E+07
    22 'norm      '    1.3620       1.0000          .0000       .10000E+07
    23 'Prefactor '    3.9150       1.0000          .0000       .10000E+07
    24 'norm      '    .95686E-03   1.0000          .0000       .10000E+07
    25 'norm      '    33.677       1.0000          .0000       .10000E+07
    26 'norm      '    16.105       1.0000          .0000       .10000E+07
    27 'Normalizat'    1.0090       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .91272       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=   8116.579     FROM MIGRAD    STATUS=CONVERGED    169 CALLS     2529 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13345E-06    5.0641       -.18795E-05** at limit **
   2  Prefactor     14.912        2.0617       -.12599E-06   -.81987E-02
   3  Prefactor     18.800        6.7003       -.15871E-07   -.11692E-01
   4  Prefactor     .62839E-07    2.6885       -.31426E-06** at limit **
   5  Prefactor      .0000        .48628        .51480E-07** at limit **
   6  Prefactor     57.460        52.162        .71488E-06   -.32122E-02
   7  norm          25.067        2.6865        .15978E-06   -.39138E-03
   8  Prefactor      .0000        1.6421       -.66857E-06** at limit **
   9  norm          4.2579        2.8436        .45445E-07   -.79905E-03
  10  Prefactor     4.5221        7.7905        .86784E-06    .12786E-01
  11  Prefactor     .92082        1.5970        .87744E-07   -.12270E-03
  12  Prefactor     2.1356        1.4357       -.14322E-06   -.53765E-03
  13  Prefactor     .75108        2.5444        .17298E-05    .62828E-01
  14  norm          .25000        .18758        .85441E-08   -.16260E-02
  15  norm          14.062        5.1374        .24178E-07   -.23428E-01
  16  Prefactor     8.8973        7.2278       -.79692E-06   -.18332E-01
  17  Prefactor     .20595E-07    3.3454        .84199E-06** at limit **
  18  Prefactor     .30254E-07    5.0971       -.10773E-05** at limit **
  19  Prefactor     .11102E-09    2.4300        .16603E-06** at limit **
  20  norm          3.6001        4.4270        .14915E-07    .57806E-03
  21  Prefactor     37.935        29.537       -.52600E-06    .42946E-02
  22  norm          1.3631        2.1469       -.66532E-06   -.48886E-03
  23  Prefactor     4.2646        15.247       -.13331E-07   -.74539E-02
  24  norm          .61173E-07    8.2549        .38033E-05** at limit **
  25  norm          33.916        6.6469       -.29343E-06   -.24239E-02
  26  norm          15.564        5.6381        .64605E-07   -.19730E-01
  27  Normalizat    1.0064        .20779       -.18940E-04   -.21258E-04
  28  Prefactor     .91398        .22314        .12531E-04   -.93236E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.33449e-07
  Prefactor  = 14.9122
  Prefactor  = 18.8003
  Prefactor  = 6.28386e-08
  Prefactor  = 0
  Prefactor  = 57.4604
  norm       = 25.0669
  Prefactor  = 0
  norm       = 4.25795
  Prefactor  = 4.52213
  Prefactor  = 0.920821
  Prefactor  = 2.13559
  Prefactor  = 0.751076
  norm       = 0.250005
  norm       = 14.0623
  Prefactor  = 8.8973
  Prefactor  = 2.05946e-08
  Prefactor  = 3.02536e-08
  Prefactor  = 1.11022e-10
  norm       = 3.60012
  Prefactor  = 37.9347
  norm       = 1.36313
  Prefactor  = 4.26465
  norm       = 6.11733e-08
  norm       = 33.9165
  norm       = 15.5642
  Normalizat = 1.00639
  Prefactor  = 0.913985
 **********
 **   18 **HESSE 
 **********

 FCN=   8116.579     FROM HESSE     STATUS=OK           587 CALLS     3116 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13345E-06    6.2788        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.912        13.335        .25999E-03   -1.5631    
   3  Prefactor     18.800        6.7402        .23083E-03   -1.5621    
   4  Prefactor     .62839E-07    5.9494        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        .48527        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     57.460        52.201        .13316E-03   -1.5556    
   7  norm          25.067        2.6807        .19980E-03   -1.5608    
   8  Prefactor      .0000        1.6383        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.2579        2.8275        .48840E-03   -1.5667    
  10  Prefactor     4.5221        7.8648        .47513E-03   -1.5665    
  11  Prefactor     .92082        1.5954        .44249E-03   -1.5689    
  12  Prefactor     2.1356        1.4357        .70544E-03   -1.5679    
  13  Prefactor     .75108        6.7904        .56652E-03   -1.5691    
  14  norm          .25000        .19821        .73051E-03   -1.5698    
  15  norm          14.062        5.3431        .26653E-03   -1.5633    
  16  Prefactor     8.8973        7.2727        .33604E-03   -1.5648    
  17  Prefactor     .20595E-07    5.6018        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .30254E-07    5.4043        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .11102E-09    2.4309        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.6001        4.4652        .53201E-03   -1.5670    
  21  Prefactor     37.935        29.657        .16383E-03   -1.5585    
  22  norm          1.3631        2.1831        .93520E-03   -1.5685    
  23  Prefactor     4.2646        16.210        .50964E-03   -1.5667    
  24  norm          .61173E-07    8.5770        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          33.916        9.6657        .17234E-03   -1.5591    
  26  norm          15.564        13.979        .24931E-03   -1.5629    
  27  Normalizat    1.0064        .17834        .46280E-01   -.92817    
  28  Prefactor     .91398        .19208        .75183E-01   -.95654    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93667e-07
Minuit parameter uncertainties:
  1  0.0018306
  2  13.3351
  3  6.74016
  4  0.00122261
  5  5.73673e-07
  6  52.201
  7  2.68068
  8  1.03402e-05
  9  2.82751
  10  7.86485
  11  1.59545
  12  1.4357
  13  4.5167
  14  0.198213
  15  5.34309
  16  7.27271
  17  0.000679761
  18  0.00080846
  19  3.08759e-05
  20  4.46522
  21  29.6568
  22  2.18305
  23  16.2099
  24  0.00144863
  25  9.66568
  26  13.9789
  27  0.178441
  28  0.192224
Done.

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

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  9.208e-01  1.595e+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.140e-01  1.922e-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:  1.006e+00  1.784e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/77663/likelihoodResults_693187201_693446401_4FGL_J1221.3+3010_daily_bin1751.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) = 8116.46914604
delta logL = 0.109682602507

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8116.46856067
delta logL = 0.110267969188

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .56266       1.0000          .0000       .10000E+07
     2 'Index     '    2.0944       1.0000          .0000       10.000    
     3 'Normalizat'    1.0021       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91538       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=   8116.469     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      258 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .56201        24.857        .72641E-03    .93387E-02
   2  Index         2.0949        3.4162        .11718        .17307E-03
   3  Normalizat    1.0015        .49305E-01    .46193E-01    .15710E-04
   4  Prefactor     .91612        .53247E-01    .75084E-01    .17897E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.56201
  Index      = 2.09487
  Normalizat = 1.00147
  Prefactor  = 0.91612
 **********
 **   18 **HESSE 
 **********

 FCN=   8116.469     FROM HESSE     STATUS=OK            33 CALLS      291 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .56201        1.5948        .91524E-05   -1.5693    
   2  Index         2.0949        1.1123        .91368E-02   -.61999    
   3  Normalizat    1.0015        .19429        .28093E-03   -.92981    
   4  Prefactor     .91612        .22090        .33225E-03   -.95580    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.69373e-08
Minuit parameter uncertainties:
  1  1.5948
  2  1.1266
  3  0.194429
  4  0.221113
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/77663': 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) = 8116.46855473
delta logL = 0.110273911082

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  5.620e-01  1.595e+00  0.000e+00  1.000e+06 ( 1.000e-13)
318        Index:  2.095e+00  1.127e+00  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.161e-01  2.211e-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:  1.001e+00  1.944e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.65
Ra Dec: 185.345 30.168

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/77663/cmap_HighResolution_693187201_693446401_4FGL_J1221.3+3010_daily_bin1751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.54e-03', job_status='DONE', photon_flux_upper_limit='4.85e-08', time_completed='2022-12-23 00:56:41.916962', job_id='77663', GAL2='0.92', fit_tolerance='1e-08', EG2='1.00', EG='1.01', time_epoch_completed='1671785801.92', return_code2='0', ts='0.65', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.10e-01', ts2='0.87', photon_index_error='0.00', photon_index='1.71' WHERE bin_id='1751' AND source_name='4FGL J1221.3+3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 23 00:56:41 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0212>
Subject: Job 77663: <4FGL_J1221.3+3010_daily_bin1751> in cluster <slac> Done

Job <4FGL_J1221.3+3010_daily_bin1751> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Dec 23 00:40:13 2022
Job was executed on host(s) <bullet0212>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 23 00:40:14 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 23 00:40:14 2022
Terminated at Fri Dec 23 00:56:42 2022
Results reported at Fri Dec 23 00:56:42 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.3+3010_daily_bin1751 185.345 30.1677 693187201 693446401 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 :                                   874.48 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             282.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            989 sec.

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

