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


Performing analysis on: 4FGL_J1221.3+3010_daily_bin1780
RA = 185.345, Dec = 30.1677
tmin = 700704001, tmax = 700963201
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='62568', job_status='RUN', time_executed='2023-03-20 00:50:40.035359', time_epoch_executed='1679298640.04' WHERE source_name='4FGL J1221.3+3010' and cadence='daily' and bin_id='1780'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/62568

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/62568/ft1_4FGL_J1221.3+3010_daily_bin1780.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/62568/ft2_4FGL_J1221.3+3010_daily_bin1780.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/62568/ft1_4FGL_J1221.3+3010_daily_bin1780.fits outfile=/scratch/kocevski/62568/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin1780.fits ra=185.345 dec=30.1677 rad=12.0 tmin=700704001.0 tmax=700963201.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 4.08
user 3.87
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/62568/ft2_4FGL_J1221.3+3010_daily_bin1780.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/62568/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin1780.fits evtable="EVENTS" outfile="/scratch/kocevski/62568/ft1_filtered_4FGL_J1221.3+3010_daily_bin1780.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.50
user 0.34
sys 0.14

Number of photons that the gtmktime cut: 598

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/62568/ft1_filtered_4FGL_J1221.3+3010_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/62568/ft2_4FGL_J1221.3+3010_daily_bin1780.fits sctable="SC_DATA" expcube=/scratch/kocevski/62568/ltcube_700704001_700963201_4FGL_J1221.3+3010_daily_bin1780.fits outfile=/scratch/kocevski/62568/expmap_700704001_700963201_4FGL_J1221.3+3010_daily_bin1780.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/62568/ltcube_700704001_700963201_4FGL_J1221.3+3010_daily_bin1780.fits
.....................!
real 190.99
user 185.98
sys 4.29

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/62568/ft1_filtered_4FGL_J1221.3+3010_daily_bin1780.fits scfile=/scratch/kocevski/62568/ft2_4FGL_J1221.3+3010_daily_bin1780.fits outfile=/scratch/kocevski/62568/cmap_700704001_700963201_4FGL_J1221.3+3010_daily_bin1780.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/62568/ft1_filtered_4FGL_J1221.3+3010_daily_bin1780.fits scfile=/scratch/kocevski/62568/ft2_4FGL_J1221.3+3010_daily_bin1780.fits outfile=/scratch/kocevski/62568/cmap_HighResolution_700704001_700963201_4FGL_J1221.3+3010_daily_bin1780.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5579       1.0000          .0000       .10000E+07
     2 'Prefactor '    2.5735       1.0000          .0000       .10000E+07
     3 'Prefactor '    .86886       1.0000          .0000       .10000E+07
     4 'Prefactor '    27.461       1.0000          .0000       .10000E+07
     5 'Prefactor '    1.2573       1.0000          .0000       .10000E+07
     6 'Prefactor '    .15777E-04   1.0000          .0000       .10000E+07
     7 'norm      '    21.745       1.0000          .0000       .10000E+07
     8 'Prefactor '    6.5791       1.0000          .0000       .10000E+07
     9 'norm      '    4.0515       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.1042       1.0000          .0000       .10000E+07
    11 'Prefactor '    .11257E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    2.7883       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.6601       1.0000          .0000       .10000E+07
    14 'norm      '    .51625E-08   1.0000          .0000       .10000E+07
    15 'norm      '    1.7498       1.0000          .0000       .10000E+07
    16 'Prefactor '    .44336       1.0000          .0000       .10000E+07
    17 'Prefactor '    .20122E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .23048E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    7.3299       1.0000          .0000       .10000E+07
    20 'norm      '    10.812       1.0000          .0000       .10000E+07
    21 'Prefactor '    .22308       1.0000          .0000       .10000E+07
    22 'norm      '    .17619E-06   1.0000          .0000       .10000E+07
    23 'Prefactor '    8.8904       1.0000          .0000       .10000E+07
    24 'norm      '    .22216E-06   1.0000          .0000       .10000E+07
    25 'norm      '    14.070       1.0000          .0000       .10000E+07
    26 'norm      '    12.544       1.0000          .0000       .10000E+07
    27 'Normalizat'    .25816       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.6203       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=   6851.063     FROM MIGRAD    STATUS=CONVERGED    163 CALLS     2561 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5606        2.2595        .63887E-07   -.99814E-02
   2  Prefactor     2.5682        3.1313        .19546E-06   -.14399E-01
   3  Prefactor     .85634        4.3248       -.62730E-07   -.40549E-01
   4  Prefactor     27.233        15.777       -.32242E-06    .61151E-01
   5  Prefactor     1.2619        1.7441        .28369E-07    .43693E-04
   6  Prefactor     .88263E-07    20.975        .12840E-06** at limit **
   7  norm          21.752        2.8317       -.43772E-07   -.19717E-03
   8  Prefactor     6.5852        5.9669        .12347E-06    .11248E-01
   9  norm          4.0528        2.7274        .19056E-06   -.44520E-02
  10  Prefactor     1.0731        13.149        .10217E-05    .29385E-01
  11  Prefactor     .53296E-06    4.4025       -.28794E-06** at limit **
  12  Prefactor     2.7971        2.4161       -.44265E-07   -.11044E-02
  13  Prefactor     1.6498        3.6797       -.37462E-06   -.59438E-03
  14  norm           .0000        .18331        .95278E-07** at limit **
  15  norm          1.7714        3.4808       -.19978E-06    .19840E-03
  16  Prefactor     .15782        20.133       -.95278E-06** at limit **
  17  Prefactor     .48295E-08    13.176       -.65233E-07** at limit **
  18  Prefactor     .41633E-08    2.7418        .87319E-07** at limit **
  19  Prefactor     7.3661        6.2291        .90445E-07    .10111E-01
  20  norm          10.850        4.8492        .26203E-07    .20150E-02
  21  Prefactor     .22071E-05    34.026        .98961E-06** at limit **
  22  norm          .61062E-09    1.1553        .61812E-07** at limit **
  23  Prefactor     8.9140        5.7117       -.17345E-06   -.33997E-02
  24  norm          .10153E-06    5.0919       -.29732E-06** at limit **
  25  norm          14.136        4.4247        .65881E-09   -.51138E-03
  26  norm          12.501        2.8828        .48173E-07    .68478E-02
  27  Normalizat    .25828        .19863       -.25672E-05    .35381E-04
  28  Prefactor     1.6208        .23387        .46789E-05    .81849E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.56061
  Prefactor  = 2.56816
  Prefactor  = 0.856343
  Prefactor  = 27.2326
  Prefactor  = 1.26195
  Prefactor  = 8.82627e-08
  norm       = 21.7516
  Prefactor  = 6.58517
  norm       = 4.0528
  Prefactor  = 1.07308
  Prefactor  = 5.32963e-07
  Prefactor  = 2.79708
  Prefactor  = 1.64984
  norm       = 0
  norm       = 1.77138
  Prefactor  = 0.157824
  Prefactor  = 4.82947e-09
  Prefactor  = 4.16334e-09
  Prefactor  = 7.36609
  norm       = 10.8495
  Prefactor  = 2.20707e-06
  norm       = 6.10623e-10
  Prefactor  = 8.91396
  norm       = 1.0153e-07
  norm       = 14.1362
  norm       = 12.501
  Normalizat = 0.25828
  Prefactor  = 1.62078
 **********
 **   18 **HESSE 
 **********

 FCN=   6851.063     FROM HESSE     STATUS=OK           603 CALLS     3164 TOTAL
                     EDM=   .29E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5606        35.580        .53558E-03   -1.5670    
   2  Prefactor     2.5682        29.232        .63598E-03   -1.5676    
   3  Prefactor     .85634        4.7957        .47937E-03   -1.5689    
   4  Prefactor     27.233        27.754        .19086E-03   -1.5604    
   5  Prefactor     1.2619        1.8226        .99521E-03   -1.5685    
   6  Prefactor     .88263E-07    21.675        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          21.752        2.8927        .21450E-03   -1.5615    
   8  Prefactor     6.5852        6.0235        .39101E-03   -1.5657    
   9  norm          4.0528        2.9065        .50070E-03   -1.5668    
  10  Prefactor     1.0731        17.123        .11278E-02   -1.5687    
  11  Prefactor     .53296E-06    1.3909        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.7971        2.5028        .60909E-03   -1.5675    
  13  Prefactor     1.6498        3.7283        .81851E-03   -1.5682    
  14  norm           .0000        .10376        .10623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.7714        3.5401        .79233E-03   -1.5681    
  16  Prefactor     .15782        8.7864        .84626E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .48295E-08    13.320        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .41633E-08    2.7629        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.3661        7.1411        .37023E-03   -1.5654    
  20  norm          10.850        5.0321        .30445E-03   -1.5642    
  21  Prefactor     .22071E-05    20.991        .11379E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .61062E-09    1.1606        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.9140        19.970        .33592E-03   -1.5648    
  24  norm          .10153E-06    5.7220        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          14.136        9.3050        .26676E-03   -1.5633    
  26  norm          12.501        15.744        .28258E-03   -1.5637    
  27  Normalizat    .25828        .22730        .10915       -1.2542    
  28  Prefactor     1.6208        .24349        .55777E-01   -.74211    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.87906e-07
Minuit parameter uncertainties:
  1  22.511
  2  17.3289
  3  4.05304
  4  27.7543
  5  1.82259
  6  0.00276596
  7  2.89266
  8  6.02349
  9  2.90645
  10  8.57297
  11  0.00172202
  12  2.50281
  13  3.72833
  14  1.96576e-07
  15  3.5401
  16  2.35517
  17  0.000506827
  18  0.000215138
  19  7.14115
  20  5.0321
  21  0.0136132
  22  5.28147e-05
  23  19.9706
  24  0.00152432
  25  9.30496
  26  15.744
  27  0.228121
  28  0.243668
Done.

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

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  5.330e-07  1.722e-03  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.621e+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:  2.583e-01  2.281e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/62568/likelihoodResults_700704001_700963201_4FGL_J1221.3+3010_daily_bin1780.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) = 6847.45518087
delta logL = 3.60788604462

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6851.06306734
delta logL = -4.3317413656e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22815E-07   1.0000          .0000       .10000E+07
     2 'Index     '    1.0461       1.0000          .0000       10.000    
     3 'Normalizat'    .25810       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.6210       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6846.673     FROM MIGRAD    STATUS=FAILED       291 CALLS      644 TOTAL
                     EDM=   .22E-02    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .97810E-05    .78690E-04    .74901E-07** at limit **
   2  Index         6.0583        1.5330        .16883E-02   -.10494E-02
   3  Normalizat    .39927E-01    .19361        .10583E-01   -.18766E-03
   4  Prefactor     1.7912        .18308        .23584E-03    .11022E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6846.673     FROM SIMPLEX   STATUS=UNCHANGED     80 CALLS      724 TOTAL
                     EDM=   .94E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .97810E-05    .78690E-04    .58009E-07** at limit **
   2  Index         6.0583        1.5330        .10162E-02   -.10494E-02
   3  Normalizat    .39927E-01    .19361        .46495E-03   -.18766E-03
   4  Prefactor     1.7912        .18308        .15484E-03    .11022E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6846.673     FROM MIGRAD    STATUS=FAILED        41 CALLS      765 TOTAL
                     EDM=   .11E-02    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .97818E-05    .77029E-04     .0000    ** at limit **
   2  Index         6.0583        1.5165         .0000       -.44629E-03
   3  Normalizat    .39926E-01    .18996         .0000        .10743E-04
   4  Prefactor     1.7912        .18091         .0000       -.16197E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.78184e-06
  Index      = 6.0583
  Normalizat = 0.0399256
  Prefactor  = 1.79118
 **********
 **   18 **HESSE 
 **********

 FCN=   6846.673     FROM HESSE     STATUS=NOT POSDEF    23 CALLS      788 TOTAL
                     EDM=   .22E-02    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .97818E-05    .77020E-04    .37451E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.0583        1.5164        .27012E-05    .21327    
   3  Normalizat    .39926E-01    .19232        .16933E-04   -1.6803    
   4  Prefactor     1.7912        .18202        .94335E-05   -.69680    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 0.00221037
Minuit parameter uncertainties:
  1  5.48961e-05
  2  1.54186
  3  0.152452
  4  0.182089
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/62568': 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): 1
logL (Free Index) = 6846.67349706
delta logL = 4.3895698482

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  9.782e-06  5.490e-05  0.000e+00  1.000e+06 ( 1.000e-13)
318        Index:  6.058e+00  1.542e+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:  1.791e+00  1.821e-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:  3.993e-02  1.525e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.08
Ra Dec: 185.345 30.168
Photon Index (Free Index): 6.06 +/- 1.54
Photon Flux (Free Index): 2.03e-07 +/- 7.85e-08
Energy Flux (Free Index): 2.52e-05 +/- 1.01e-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/62568/cmap_HighResolution_700704001_700963201_4FGL_J1221.3+3010_daily_bin1780.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.55e-03', comment='SUCCESS', energy_flux2='2.52e-05', dlogl='4.39e+00', photon_flux2='2.03e-07', job_status='DONE', time_completed='2023-03-20 01:03:57.121267', photon_index_error2='1.54', photon_index2='6.06', ts='-0.00', fit_tolerance='1e-08', GAL='1.62', photon_index_error='0.00', photon_flux_upper_limit='4.86e-08', energy_flux_error2='1.01e-05', EG='0.26', time_epoch_completed='1679299437.12', return_code='0', job_id='62568', GAL2='1.79', EG2='0.04', return_code2='1', photon_flux_error2='7.85e-08', ts2='10.08', photon_index='1.71' WHERE bin_id='1780' AND source_name='4FGL J1221.3+3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar 20 01:03:57 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0044>
Subject: Job 62568: <4FGL_J1221.3+3010_daily_bin1780> in cluster <slac> Done

Job <4FGL_J1221.3+3010_daily_bin1780> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Mar 20 00:50:15 2023
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 20 00:50:16 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 20 00:50:16 2023
Terminated at Mon Mar 20 01:03:59 2023
Results reported at Mon Mar 20 01:03:59 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.3+3010_daily_bin1780 185.345 30.1677 700704001 700963201 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 :                                   794.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             325.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            824 sec.

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

