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


Performing analysis on: 4FGL_J1446.3+3111_daily_bin1775
RA = 221.591, Dec = 31.1955
tmin = 699408001, tmax = 699667201
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='784196', job_status='RUN', time_executed='2023-03-05 03:23:08.797126', time_epoch_executed='1678015388.8' WHERE source_name='4FGL J1446.3+3111' and cadence='daily' and bin_id='1775'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/784196

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/784196/ft1_4FGL_J1446.3+3111_daily_bin1775.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/784196/ft2_4FGL_J1446.3+3111_daily_bin1775.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/784196/ft1_4FGL_J1446.3+3111_daily_bin1775.fits outfile=/scratch/kocevski/784196/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin1775.fits ra=221.591 dec=31.1955 rad=12.0 tmin=699408001.0 tmax=699667201.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.70
user 4.42
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/784196/ft2_4FGL_J1446.3+3111_daily_bin1775.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/784196/ft2_4FGL_J1446.3+3111_daily_bin1775.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/784196/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin1775.fits evtable="EVENTS" outfile="/scratch/kocevski/784196/ft1_filtered_4FGL_J1446.3+3111_daily_bin1775.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.60
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 630

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/784196/ft1_filtered_4FGL_J1446.3+3111_daily_bin1775.fits" evtable="EVENTS" scfile=/scratch/kocevski/784196/ft2_4FGL_J1446.3+3111_daily_bin1775.fits sctable="SC_DATA" outfile=/scratch/kocevski/784196/ltcube_699408001_699667201_4FGL_J1446.3+3111_daily_bin1775.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/784196/ft2_4FGL_J1446.3+3111_daily_bin1775.fits
.....................!
real 12.47
user 11.70
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/784196/ft1_filtered_4FGL_J1446.3+3111_daily_bin1775.fits evtable="EVENTS" scfile=/scratch/kocevski/784196/ft2_4FGL_J1446.3+3111_daily_bin1775.fits sctable="SC_DATA" expcube=/scratch/kocevski/784196/ltcube_699408001_699667201_4FGL_J1446.3+3111_daily_bin1775.fits outfile=/scratch/kocevski/784196/expmap_699408001_699667201_4FGL_J1446.3+3111_daily_bin1775.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/784196/ltcube_699408001_699667201_4FGL_J1446.3+3111_daily_bin1775.fits
.....................!
real 190.96
user 185.63
sys 4.82

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

Setting source of interest to:
4FGL J1446.3+3111 @ 221.591 31.1955

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/784196/ft1_filtered_4FGL_J1446.3+3111_daily_bin1775.fits scfile=/scratch/kocevski/784196/ft2_4FGL_J1446.3+3111_daily_bin1775.fits outfile=/scratch/kocevski/784196/cmap_699408001_699667201_4FGL_J1446.3+3111_daily_bin1775.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=221.591 yref=31.1955 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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/784196/ft1_filtered_4FGL_J1446.3+3111_daily_bin1775.fits scfile=/scratch/kocevski/784196/ft2_4FGL_J1446.3+3111_daily_bin1775.fits outfile=/scratch/kocevski/784196/cmap_HighResolution_699408001_699667201_4FGL_J1446.3+3111_daily_bin1775.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=221.591 yref=31.1955 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/784196/ft1_filtered_4FGL_J1446.3+3111_daily_bin1775.fits evtable="EVENTS" scfile=/scratch/kocevski/784196/ft2_4FGL_J1446.3+3111_daily_bin1775.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/784196/Model_4FGL_J1446.3+3111_daily_bin1775.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/784196/ft1_filtered_4FGL_J1446.3+3111_daily_bin1775.fits.....................!
real 54.18
user 52.83
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/784196/ft1_filtered_4FGL_J1446.3+3111_daily_bin1775.fits', '/scratch/kocevski/784196/ft2_4FGL_J1446.3+3111_daily_bin1775.fits', expMap='/scratch/kocevski/784196/expmap_699408001_699667201_4FGL_J1446.3+3111_daily_bin1775.fits', expCube='/scratch/kocevski/784196/ltcube_699408001_699667201_4FGL_J1446.3+3111_daily_bin1775.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/784196/Model_4FGL_J1446.3+3111_daily_bin1775.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1446.3+3111'

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  5.552e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
269        Index:  2.556e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  7.435e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/784196/ft1_filtered_4FGL_J1446.3+3111_daily_bin1775.fits
Spacecraft file(s): /scratch/kocevski/784196/ft2_4FGL_J1446.3+3111_daily_bin1775.fits
Exposure map: /scratch/kocevski/784196/expmap_699408001_699667201_4FGL_J1446.3+3111_daily_bin1775.fits
Exposure cube: /scratch/kocevski/784196/ltcube_699408001_699667201_4FGL_J1446.3+3111_daily_bin1775.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/784196/Model_4FGL_J1446.3+3111_daily_bin1775.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) = 6915.38117732

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6402       1.0000          .0000       .10000E+07
     2 'norm      '    1.9981       1.0000          .0000       .10000E+07
     3 'Prefactor '    .50410E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .55728E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    32.222       1.0000          .0000       .10000E+07
     6 'norm      '    14.490       1.0000          .0000       .10000E+07
     7 'norm      '    2.3714       1.0000          .0000       .10000E+07
     8 'norm      '    .99143E-07   1.0000          .0000       .10000E+07
     9 'norm      '    .63993E-06   1.0000          .0000       .10000E+07
    10 'norm      '    .14932E-07   1.0000          .0000       .10000E+07
    11 'Prefactor '    238.62       1.0000          .0000       .10000E+07
    12 'norm      '    3.6328       1.0000          .0000       .10000E+07
    13 'Prefactor '    16.245       1.0000          .0000       .10000E+07
    14 'Prefactor '    .23156E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    15.346       1.0000          .0000       .10000E+07
    16 'norm      '    1.9188       1.0000          .0000       .10000E+07
    17 'Prefactor '    .33045       1.0000          .0000       .10000E+07
    18 'norm      '    1.1365       1.0000          .0000       .10000E+07
    19 'Prefactor '    8.9997       1.0000          .0000       .10000E+07
    20 'Prefactor '    .60331E-02   1.0000          .0000       .10000E+07
    21 'Normalizat'    .87726       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0256       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6911.715     FROM MIGRAD    STATUS=CONVERGED    140 CALLS     1112 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6457        3.0355       -.14895E-07   -.19147E-03
   2  norm          1.9969        2.1380       -.18576E-07   -.72688E-03
   3  Prefactor     .27756E-09    5.1340       -.16947E-06** at limit **
   4  Prefactor     .36510E-06    10.470        .11437E-06** at limit **
   5  Prefactor     32.173        6.5130       -.37996E-08    .21604E-04
   6  norm          14.848        8.4436       -.41481E-07    .29880E-02
   7  norm          2.3750        1.8431        .37398E-07    .23067E-02
   8  norm           .0000        1.8623       -.11033E-06** at limit **
   9  norm          .55511E-10    2.2406       -.19507E-06** at limit **
  10  norm           .0000        1.0645        .85588E-07** at limit **
  11  Prefactor     239.38        59.435       -.53455E-08    .20586E-02
  12  norm          3.7142        7.7797        .21318E-07   -.63424E-02
  13  Prefactor     16.169        5.8341       -.24539E-07    .11641    
  14  Prefactor     .29421E-08    9.1066        .42034E-07** at limit **
  15  Prefactor     15.648        10.334        .73883E-08   -.97299E-02
  16  norm          1.9255        1.8161       -.56827E-07   -.36123E-02
  17  Prefactor     .12229E-06    10.750        .17634E-06** at limit **
  18  norm          1.1351        1.1749       -.19715E-07   -.18786E-02
  19  Prefactor     9.0539        8.9222       -.18459E-07   -.46421E-02
  20  Prefactor     .36882E-06    9.4022        .21313E-06** at limit **
  21  Normalizat    .87692        .22366        .39522E-06   -.35716E-04
  22  Prefactor     1.0248        .19743       -.10370E-06   -.28933E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.6457
  norm       = 1.9969
  Prefactor  = 2.77556e-10
  Prefactor  = 3.65097e-07
  Prefactor  = 32.1726
  norm       = 14.8483
  norm       = 2.37495
  norm       = 0
  norm       = 5.55112e-11
  norm       = 0
  Prefactor  = 239.376
  norm       = 3.71423
  Prefactor  = 16.1688
  Prefactor  = 2.94209e-09
  Prefactor  = 15.6478
  norm       = 1.9255
  Prefactor  = 1.22291e-07
  norm       = 1.1351
  Prefactor  = 9.0539
  Prefactor  = 3.68816e-07
  Normalizat = 0.876916
  Prefactor  = 1.0248
 **********
 **   18 **HESSE 
 **********

 FCN=   6911.715     FROM HESSE     STATUS=OK           390 CALLS     1502 TOTAL
                     EDM=   .38E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6457        3.0731        .82475E-03   -1.5682    
   2  norm          1.9969        2.1382        .73245E-03   -1.5680    
   3  Prefactor     .27756E-09    5.1371        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .36510E-06    12.415        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     32.173        6.4961        .17619E-03   -1.5595    
   6  norm          14.848        17.579        .26286E-03   -1.5631    
   7  norm          2.3750        1.8420        .66507E-03   -1.5677    
   8  norm           .0000        1.8441        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .55511E-10    2.2390        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        1.0660        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     239.38        59.370        .64743E-04   -1.5399    
  12  norm          3.7142        8.0785        .52981E-03   -1.5669    
  13  Prefactor     16.169        19.481        .24823E-03   -1.5628    
  14  Prefactor     .29421E-08    9.0855        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.648        10.315        .25541E-03   -1.5629    
  16  norm          1.9255        1.8606        .74992E-03   -1.5680    
  17  Prefactor     .12229E-06    74.455        .98032E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.1351        1.2155        .10922E-02   -1.5687    
  19  Prefactor     9.0539        9.0720        .33386E-03   -1.5648    
  20  Prefactor     .36882E-06    13.156        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .87692        .19106        .64268E-01   -.97276    
  22  Prefactor     1.0248        .16728        .41621E-01   -.91907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.82492e-07
Minuit parameter uncertainties:
  1  3.07315
  2  2.13818
  3  7.75976e-05
  4  0.00425807
  5  6.49609
  6  17.5795
  7  1.84204
  8  1.19481e-05
  9  2.53883e-05
  10  7.16641e-06
  11  59.3704
  12  8.07848
  13  19.4806
  14  0.00032644
  15  10.3151
  16  1.86062
  17  0.00603483
  18  1.21548
  19  9.07197
  20  0.00440547
  21  0.191209
  22  0.167361
Done.

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

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  2.394e+02  5.937e+01  0.000e+00  1.000e+06 ( 1.000e-13)
269        Index:  2.556e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  7.435e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  1.025e+00  1.674e-01  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  8.769e-01  1.912e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 40.18
Ra Dec: 221.591 31.195
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 2.60e-07 +/- 6.44e-08
Energy Flux (Fixed Index): 7.11e-05 +/- 1.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) = 6911.43862939
delta logL = 0.276349326723

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6911.43708544
delta logL = 0.277893276665

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6911.437     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      291 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     275.00        81.412        .12062E-04   -.39461E-02
   2  Index         2.3639        .25541        .37195E-02   -.40518E-03
   3  Normalizat    .91210        .21616        .27934E-03    .53763E-04
   4  Prefactor     1.0021        .19465        .24751E-03    .86813E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 274.998
  Index      = 2.36392
  Normalizat = 0.912103
  Prefactor  = 1.00206
 **********
 **   18 **HESSE 
 **********

 FCN=   6911.437     FROM HESSE     STATUS=OK            23 CALLS      314 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     275.00        80.309        .24124E-05   -1.5376    
   2  Index         2.3639        .25174        .14878E-03   -.55532    
   3  Normalizat    .91210        .21631        .11174E-04   -.96036    
   4  Prefactor     1.0021        .19479        .99002E-05   -.92661    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.39312e-10
Minuit parameter uncertainties:
  1  80.3088
  2  0.251892
  3  0.216517
  4  0.194924
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/784196': 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) = 6911.43708531
delta logL = 0.277893402707

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  2.750e+02  8.031e+01  0.000e+00  1.000e+06 ( 1.000e-13)
269        Index:  2.364e+00  2.519e-01  0.000e+00  1.000e+01 (-1.000e+00)
270        Scale:  7.435e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  1.002e+00  1.949e-01  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  9.121e-01  2.165e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 40.37
Ra Dec: 221.591 31.195
Photon Index (Free Index): 2.36 +/- 0.25
Photon Flux (Free Index): 2.31e-07 +/- 7.15e-08
Energy Flux (Free Index): 7.97e-05 +/- 2.47e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/784196/cmap_HighResolution_699408001_699667201_4FGL_J1446.3+3111_daily_bin1775.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.60e-07', energy_flux2='7.97e-05', photon_flux_error='6.44e-08', dlogl='2.78e-01', energy_flux='7.11e-05', photon_flux2='2.31e-07', job_status='DONE', time_completed='2023-03-05 03:31:31.070513', photon_index_error2='0.25', photon_index2='2.36', ts='40.18', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='2.47e-05', EG='0.88', time_epoch_completed='1678015891.07', return_code='0', job_id='784196', GAL2='1.00', EG2='0.91', return_code2='0', energy_flux_error='1.76e-05', photon_flux_error2='7.15e-08', ts2='40.37', photon_index='2.56' WHERE bin_id='1775' AND source_name='4FGL J1446.3+3111' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Mar  5 03:31:31 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 784196: <4FGL_J1446.3+3111_daily_bin1775> in cluster <slac> Done

Job <4FGL_J1446.3+3111_daily_bin1775> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Mar  5 03:15:18 2023
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Mar  5 03:21:16 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Mar  5 03:21:16 2023
Terminated at Sun Mar  5 03:31:31 2023
Results reported at Sun Mar  5 03:31:31 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1446.3+3111_daily_bin1775 221.591 31.1955 699408001 699667201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1446.3+3111 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   503.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   615 sec.
    Turnaround time :                            973 sec.

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

