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


Performing analysis on: 4FGL_J1446.3+3111_weekly_bin732
RA = 221.591, Dec = 31.1955
tmin = 681696001, tmax = 682300801
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='272579', job_status='RUN', time_executed='2022-09-17 01:24:00.089072', time_epoch_executed='1663403040.09' WHERE source_name='4FGL J1446.3+3111' and cadence='weekly' and bin_id='732'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/272579

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/272579/ft1_4FGL_J1446.3+3111_weekly_bin732.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/272579/ft2_4FGL_J1446.3+3111_weekly_bin732.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/272579/ft1_4FGL_J1446.3+3111_weekly_bin732.fits outfile=/scratch/kocevski/272579/ft1_filteredMKT_4FGL_J1446.3+3111_weekly_bin732.fits ra=221.591 dec=31.1955 rad=12.0 tmin=681696001.0 tmax=682300801.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 9.63
user 9.10
sys 0.34

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/272579/ft2_4FGL_J1446.3+3111_weekly_bin732.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/272579/ft1_filteredMKT_4FGL_J1446.3+3111_weekly_bin732.fits evtable="EVENTS" outfile="/scratch/kocevski/272579/ft1_filtered_4FGL_J1446.3+3111_weekly_bin732.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.57
user 0.37
sys 0.17

Number of photons that the gtmktime cut: 1268

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/272579/ft1_filtered_4FGL_J1446.3+3111_weekly_bin732.fits" evtable="EVENTS" scfile=/scratch/kocevski/272579/ft2_4FGL_J1446.3+3111_weekly_bin732.fits sctable="SC_DATA" outfile=/scratch/kocevski/272579/ltcube_681696001_682300801_4FGL_J1446.3+3111_weekly_bin732.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/272579/ft2_4FGL_J1446.3+3111_weekly_bin732.fits
.....................!
real 32.44
user 31.96
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/272579/ft1_filtered_4FGL_J1446.3+3111_weekly_bin732.fits evtable="EVENTS" scfile=/scratch/kocevski/272579/ft2_4FGL_J1446.3+3111_weekly_bin732.fits sctable="SC_DATA" expcube=/scratch/kocevski/272579/ltcube_681696001_682300801_4FGL_J1446.3+3111_weekly_bin732.fits outfile=/scratch/kocevski/272579/expmap_681696001_682300801_4FGL_J1446.3+3111_weekly_bin732.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/272579/ltcube_681696001_682300801_4FGL_J1446.3+3111_weekly_bin732.fits
.....................!
real 192.12
user 186.24
sys 4.86

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/272579/ft1_filtered_4FGL_J1446.3+3111_weekly_bin732.fits scfile=/scratch/kocevski/272579/ft2_4FGL_J1446.3+3111_weekly_bin732.fits outfile=/scratch/kocevski/272579/cmap_681696001_682300801_4FGL_J1446.3+3111_weekly_bin732.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.60
user 0.42
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/272579/ft1_filtered_4FGL_J1446.3+3111_weekly_bin732.fits scfile=/scratch/kocevski/272579/ft2_4FGL_J1446.3+3111_weekly_bin732.fits outfile=/scratch/kocevski/272579/cmap_HighResolution_681696001_682300801_4FGL_J1446.3+3111_weekly_bin732.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.59
user 0.42
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/272579/ft1_filtered_4FGL_J1446.3+3111_weekly_bin732.fits', '/scratch/kocevski/272579/ft2_4FGL_J1446.3+3111_weekly_bin732.fits', expMap='/scratch/kocevski/272579/expmap_681696001_682300801_4FGL_J1446.3+3111_weekly_bin732.fits', expCube='/scratch/kocevski/272579/ltcube_681696001_682300801_4FGL_J1446.3+3111_weekly_bin732.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/272579/Model_4FGL_J1446.3+3111_weekly_bin732.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/272579/ft1_filtered_4FGL_J1446.3+3111_weekly_bin732.fits
Spacecraft file(s): /scratch/kocevski/272579/ft2_4FGL_J1446.3+3111_weekly_bin732.fits
Exposure map: /scratch/kocevski/272579/expmap_681696001_682300801_4FGL_J1446.3+3111_weekly_bin732.fits
Exposure cube: /scratch/kocevski/272579/ltcube_681696001_682300801_4FGL_J1446.3+3111_weekly_bin732.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/272579/Model_4FGL_J1446.3+3111_weekly_bin732.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) = 14488.6861949

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.072       1.0000          .0000       .10000E+07
     2 'norm      '    .21649E-08   1.0000          .0000       .10000E+07
     3 'Prefactor '    .55623E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    11.455       1.0000          .0000       .10000E+07
     5 'Prefactor '    4.9943       1.0000          .0000       .10000E+07
     6 'norm      '    .13093E-04   1.0000          .0000       .10000E+07
     7 'norm      '    5.3990       1.0000          .0000       .10000E+07
     8 'norm      '    .57176E-08   1.0000          .0000       .10000E+07
     9 'norm      '    9.4668       1.0000          .0000       .10000E+07
    10 'norm      '    .12990E-07   1.0000          .0000       .10000E+07
    11 'Prefactor '    140.52       1.0000          .0000       .10000E+07
    12 'norm      '    6.1285       1.0000          .0000       .10000E+07
    13 'Prefactor '    .94619E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    .38303E-08   1.0000          .0000       .10000E+07
    15 'Prefactor '    1.6220       1.0000          .0000       .10000E+07
    16 'norm      '    1.4230       1.0000          .0000       .10000E+07
    17 'Prefactor '    7.2144       1.0000          .0000       .10000E+07
    18 'norm      '    .99920E-08   1.0000          .0000       .10000E+07
    19 'Prefactor '    .53346E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .96763E-03   1.0000          .0000       .10000E+07
    21 'Normalizat'    1.2937       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .83684       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=   14487.27     FROM MIGRAD    STATUS=CONVERGED    148 CALLS     1093 TOTAL
                     EDM=   .13E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.071        4.8106       -.43344E-07    .70725E-04
   2  norm           .0000        .73132        .20216E-06** at limit **
   3  Prefactor      .0000        20.667       -.35769E-06** at limit **
   4  Prefactor     11.432        11.342        .76402E-07   -.83032E-04
   5  Prefactor     4.9947        3.1310        .19397E-07   -.16108E-03
   6  norm           .0000        4.8871       -.13775E-06** at limit **
   7  norm          5.3999        1.8720        .44839E-07   -.46377E-03
   8  norm           .0000        1.2547       -.11257E-06** at limit **
   9  norm          9.4967        5.1416       -.18262E-07    .14898E-04
  10  norm           .0000        .53625        .64405E-07** at limit **
  11  Prefactor     140.68        13.093        .37416E-07   -.99218E-02
  12  norm          6.1246        4.3499        .86033E-08    .32397E-05
  13  Prefactor      .0000        4.4551       -.72509E-08** at limit **
  14  Prefactor      .0000        1.7581        .70892E-07** at limit **
  15  Prefactor     1.6770        4.6436        .54546E-07   -.31038E-04
  16  norm          1.4219        .96076       -.34590E-07    .68734E-03
  17  Prefactor     7.5428        36.466        .41014E-06    .90815E-03
  18  norm           .0000        .20556        .39288E-08** at limit **
  19  Prefactor      .0000        5.0615       -.88228E-07** at limit **
  20  Prefactor      .0000        11.217       -.35586E-06** at limit **
  21  Normalizat    1.2936        .15150        .78410E-06   -.77308E-05
  22  Prefactor     .83660        .12900       -.23491E-06   -.86676E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.0713
  norm       = 0
  Prefactor  = 0
  Prefactor  = 11.4315
  Prefactor  = 4.99466
  norm       = 0
  norm       = 5.39986
  norm       = 0
  norm       = 9.49673
  norm       = 0
  Prefactor  = 140.68
  norm       = 6.12456
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.67696
  norm       = 1.42191
  Prefactor  = 7.54284
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  Normalizat = 1.29361
  Prefactor  = 0.836599
 **********
 **   18 **HESSE 
 **********

 FCN=   14487.27     FROM HESSE     STATUS=OK           386 CALLS     1479 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.071        4.8047        .31549E-03   -1.5644    
   2  norm           .0000        .73143        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        20.555        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.432        11.322        .29574E-03   -1.5640    
   5  Prefactor     4.9947        3.1232        .44975E-03   -1.5663    
   6  norm           .0000        9.5542        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.3999        1.8712        .43225E-03   -1.5661    
   8  norm           .0000        1.2507        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          9.4967        5.1341        .32547E-03   -1.5646    
  10  norm           .0000        .53696        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     140.68        34.397        .84365E-04   -1.5471    
  12  norm          6.1246        4.3445        .40531E-03   -1.5658    
  13  Prefactor      .0000        4.4646        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        1.7617        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.6770        4.6415        .83057E-03   -1.5682    
  16  norm          1.4219        .96903        .90620E-03   -1.5684    
  17  Prefactor     7.5428        41.823        .37321E-03   -1.5653    
  18  norm           .0000        .20661        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        9.8823        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        11.317        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2936        .12833        .55730E-01   -.83757    
  22  Prefactor     .83660        .10934        .44195E-01   -.98393    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54903e-06
Minuit parameter uncertainties:
  1  4.8047
  2  7.93044e-07
  3  3.61002e-06
  4  11.3221
  5  3.12319
  6  1.44493e-05
  7  1.87124
  8  9.47736e-07
  9  5.13406
  10  5.04263e-07
  11  34.3969
  12  4.34445
  13  4.79383e-07
  14  1.09218e-06
  15  4.64148
  16  0.969034
  17  35.5231
  18  1.99677e-07
  19  1.87753e-05
  20  9.9112e-06
  21  0.12836
  22  0.109372
Done.

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

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  1.407e+02  3.440e+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:  8.366e-01  1.094e-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:  1.294e+00  1.284e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 36.30
Ra Dec: 221.591 31.195
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 1.53e-07 +/- 3.73e-08
Energy Flux (Fixed Index): 4.18e-05 +/- 1.02e-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) = 14487.1319151
delta logL = 0.139996098374

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14487.0828436
delta logL = 0.189067636167

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    155.42       1.0000          .0000       .10000E+07
     2 'Index     '    2.4123       1.0000          .0000       10.000    
     3 'Normalizat'    1.3084       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82744       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.

 FCN=   14487.08     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      281 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     155.45        524.36        .80221E-04   -.15702E-03
   2  Index         2.4124        2.3712        .12063        .16543E-03
   3  Normalizat    1.3086        .11065        .55470E-01    .17750E-04
   4  Prefactor     .82715        .85711E-01    .44073E-01    .32026E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 155.45
  Index      = 2.41245
  Normalizat = 1.30863
  Prefactor  = 0.827155
 **********
 **   18 **HESSE 
 **********

 FCN=   14487.08     FROM HESSE     STATUS=OK            31 CALLS      312 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     155.45        44.557        .32088E-05   -1.5459    
   2  Index         2.4124        .23317        .48987E-02   -.54394    
   3  Normalizat    1.3086        .14476        .24528E-03   -.83309    
   4  Prefactor     .82715        .12563        .26496E-03   -.98735    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55084e-09
Minuit parameter uncertainties:
  1  44.5567
  2  0.233287
  3  0.144809
  4  0.125678
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/272579': 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) = 14487.0828395
delta logL = 0.18907170561

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  1.555e+02  4.456e+01  0.000e+00  1.000e+06 ( 1.000e-13)
269        Index:  2.412e+00  2.333e-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:  8.272e-01  1.257e-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:  1.309e+00  1.448e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 36.49
Ra Dec: 221.591 31.195
Photon Index (Free Index): 2.41 +/- 0.23
Photon Flux (Free Index): 1.39e-07 +/- 4.12e-08
Energy Flux (Free Index): 4.49e-05 +/- 1.28e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/272579/cmap_HighResolution_681696001_682300801_4FGL_J1446.3+3111_weekly_bin732.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.53e-07', energy_flux2='4.49e-05', photon_flux_error='3.73e-08', dlogl='1.89e-01', energy_flux='4.18e-05', photon_flux2='1.39e-07', job_status='DONE', time_completed='2022-09-17 01:36:31.649637', photon_index_error2='0.23', photon_index2='2.41', ts='36.30', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='1.28e-05', EG='1.29', time_epoch_completed='1663403791.65', return_code='0', job_id='272579', GAL2='0.83', EG2='1.31', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='4.12e-08', ts2='36.49', photon_index='2.56' WHERE bin_id='732' AND source_name='4FGL J1446.3+3111' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Sep 17 01:36:31 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 272579: <4FGL_J1446.3+3111_weekly_bin732> in cluster <slac> Done

Job <4FGL_J1446.3+3111_weekly_bin732> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 17 01:20:46 2022
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 17 01:22:38 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 17 01:22:38 2022
Terminated at Sat Sep 17 01:36:32 2022
Results reported at Sat Sep 17 01:36:32 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1446.3+3111_weekly_bin732 221.591 31.1955 681696001 682300801 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 :                                   748.02 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             310.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   833 sec.
    Turnaround time :                            946 sec.

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

