aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 189 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7626
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1446.3+3111_daily_bin1778
RA = 221.591, Dec = 31.1955
tmin = 700185601, tmax = 700444801
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='967043', job_status='RUN', time_executed='2023-03-14 01:18:41.158031', time_epoch_executed='1678781921.16' WHERE source_name='4FGL J1446.3+3111' and cadence='daily' and bin_id='1778'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/967043

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/967043/ft1_4FGL_J1446.3+3111_daily_bin1778.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/967043/ft2_4FGL_J1446.3+3111_daily_bin1778.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/967043/ft1_4FGL_J1446.3+3111_daily_bin1778.fits outfile=/scratch/kocevski/967043/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin1778.fits ra=221.591 dec=31.1955 rad=12.0 tmin=700185601.0 tmax=700444801.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.92
user 3.68
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/967043/ft2_4FGL_J1446.3+3111_daily_bin1778.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/967043/ft1_filteredMKT_4FGL_J1446.3+3111_daily_bin1778.fits evtable="EVENTS" outfile="/scratch/kocevski/967043/ft1_filtered_4FGL_J1446.3+3111_daily_bin1778.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.32
sys 0.16

Number of photons that the gtmktime cut: 673

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/967043/ft1_filtered_4FGL_J1446.3+3111_daily_bin1778.fits evtable="EVENTS" scfile=/scratch/kocevski/967043/ft2_4FGL_J1446.3+3111_daily_bin1778.fits sctable="SC_DATA" expcube=/scratch/kocevski/967043/ltcube_700185601_700444801_4FGL_J1446.3+3111_daily_bin1778.fits outfile=/scratch/kocevski/967043/expmap_700185601_700444801_4FGL_J1446.3+3111_daily_bin1778.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/967043/ltcube_700185601_700444801_4FGL_J1446.3+3111_daily_bin1778.fits
.....................!
real 191.04
user 185.25
sys 5.42

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/967043/ft1_filtered_4FGL_J1446.3+3111_daily_bin1778.fits scfile=/scratch/kocevski/967043/ft2_4FGL_J1446.3+3111_daily_bin1778.fits outfile=/scratch/kocevski/967043/cmap_700185601_700444801_4FGL_J1446.3+3111_daily_bin1778.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.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/967043/ft1_filtered_4FGL_J1446.3+3111_daily_bin1778.fits scfile=/scratch/kocevski/967043/ft2_4FGL_J1446.3+3111_daily_bin1778.fits outfile=/scratch/kocevski/967043/cmap_HighResolution_700185601_700444801_4FGL_J1446.3+3111_daily_bin1778.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/967043/ft1_filtered_4FGL_J1446.3+3111_daily_bin1778.fits evtable="EVENTS" scfile=/scratch/kocevski/967043/ft2_4FGL_J1446.3+3111_daily_bin1778.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/967043/Model_4FGL_J1446.3+3111_daily_bin1778.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/967043/ft1_filtered_4FGL_J1446.3+3111_daily_bin1778.fits.....................!
real 56.85
user 55.29
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/967043/ft1_filtered_4FGL_J1446.3+3111_daily_bin1778.fits', '/scratch/kocevski/967043/ft2_4FGL_J1446.3+3111_daily_bin1778.fits', expMap='/scratch/kocevski/967043/expmap_700185601_700444801_4FGL_J1446.3+3111_daily_bin1778.fits', expCube='/scratch/kocevski/967043/ltcube_700185601_700444801_4FGL_J1446.3+3111_daily_bin1778.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/967043/Model_4FGL_J1446.3+3111_daily_bin1778.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/967043/ft1_filtered_4FGL_J1446.3+3111_daily_bin1778.fits
Spacecraft file(s): /scratch/kocevski/967043/ft2_4FGL_J1446.3+3111_daily_bin1778.fits
Exposure map: /scratch/kocevski/967043/expmap_700185601_700444801_4FGL_J1446.3+3111_daily_bin1778.fits
Exposure cube: /scratch/kocevski/967043/ltcube_700185601_700444801_4FGL_J1446.3+3111_daily_bin1778.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/967043/Model_4FGL_J1446.3+3111_daily_bin1778.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 7605.85721629

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .42903E-01   1.0000          .0000       .10000E+07
     2 'norm      '    .88984E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    .11745E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    .51582E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    13.231       1.0000          .0000       .10000E+07
     6 'norm      '    .45908E-07   1.0000          .0000       .10000E+07
     7 'norm      '    4.3921       1.0000          .0000       .10000E+07
     8 'norm      '    .78143       1.0000          .0000       .10000E+07
     9 'norm      '    1.1939       1.0000          .0000       .10000E+07
    10 'norm      '    .58952E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    331.83       1.0000          .0000       .10000E+07
    12 'norm      '    .18741E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    29.787       1.0000          .0000       .10000E+07
    14 'Prefactor '    8.1758       1.0000          .0000       .10000E+07
    15 'Prefactor '    .22532E-06   1.0000          .0000       .10000E+07
    16 'norm      '    .39380E-06   1.0000          .0000       .10000E+07
    17 'Prefactor '    .73163E-02   1.0000          .0000       .10000E+07
    18 'norm      '    .28255E-07   1.0000          .0000       .10000E+07
    19 'Prefactor '    5.3107       1.0000          .0000       .10000E+07
    20 'Prefactor '    .11745E-04   1.0000          .0000       .10000E+07
    21 'Normalizat'    .96352       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1687       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=   7604.151     FROM MIGRAD    STATUS=CONVERGED    198 CALLS     1219 TOTAL
                     EDM=   .38E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        152.91        .12322E-04** at limit **
   2  norm           .0000        1.6511       -.43467E-07** at limit **
   3  Prefactor     .55511E-10    24.536        .18459E-06** at limit **
   4  Prefactor     .55511E-10    19.120       -.15618E-05** at limit **
   5  Prefactor     13.229        5.1483        .14754E-06    .24064E-02
   6  norm           .0000        3.9723       -.32290E-07** at limit **
   7  norm          4.3921        2.2356       -.43425E-07    .74935E-03
   8  norm          .78035        2.5172        .35623E-07    .26181E-03
   9  norm          1.1903        4.2512       -.24689E-06   -.21807E-03
  10  norm          .44359E-01    31.664        .17777E-05** at limit **
  11  Prefactor     332.43        65.897       -.94444E-07    .10009E-02
  12  norm           .0000        5.4761        .36285E-07** at limit **
  13  Prefactor     29.660        2.5302       -.38436E-07    .29598E-02
  14  Prefactor     8.1859        8.3262        .57803E-10    .77271E-03
  15  Prefactor      .0000        10.395        .53161E-07** at limit **
  16  norm           .0000        2.0301       -.28301E-06** at limit **
  17  Prefactor     .38858E-09    63.808       -.54516E-06** at limit **
  18  norm           .0000        .77221        .77191E-07** at limit **
  19  Prefactor     5.3122        6.1075       -.31998E-06   -.30630E-03
  20  Prefactor      .0000        13.670        .11405E-05** at limit **
  21  Normalizat    .96338        .21621        .17090E-04    .11818E-03
  22  Prefactor     1.1690        .19188       -.91201E-05    .84315E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 5.55112e-11
  Prefactor  = 13.2294
  norm       = 0
  norm       = 4.39213
  norm       = 0.780349
  norm       = 1.1903
  norm       = 0.0443594
  Prefactor  = 332.429
  norm       = 0
  Prefactor  = 29.6596
  Prefactor  = 8.18585
  Prefactor  = 0
  norm       = 0
  Prefactor  = 3.88578e-10
  norm       = 0
  Prefactor  = 5.31215
  Prefactor  = 0
  Normalizat = 0.963382
  Prefactor  = 1.16902
 **********
 **   18 **HESSE 
 **********

 FCN=   7604.151     FROM HESSE     STATUS=OK           402 CALLS     1621 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.8315        .95488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        1.6459        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .55511E-10    24.370        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .55511E-10    19.061        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.229        5.1261        .27511E-03   -1.5635    
   6  norm           .0000        3.9671        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.3921        2.2360        .48033E-03   -1.5666    
   8  norm          .78035        2.5288        .54329E-03   -1.5690    
   9  norm          1.1903        4.2979        .10408E-02   -1.5686    
  10  norm          .44359E-01    1.7504        .61433E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     332.43        65.711        .54905E-04   -1.5343    
  12  norm           .0000        5.4775        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     29.660        19.779        .18325E-03   -1.5599    
  14  Prefactor     8.1859        8.7035        .35039E-03   -1.5651    
  15  Prefactor      .0000        10.379        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        2.0029        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .38858E-09    64.116        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm           .0000        .76301        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.3122        6.1219        .43589E-03   -1.5662    
  20  Prefactor      .0000        13.732        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .96338        .18234        .66115E-01   -.94267    
  22  Prefactor     1.1690        .15937        .55051E-01   -.87290    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09523e-08
Minuit parameter uncertainties:
  1  1.5249e-05
  2  8.61017e-07
  3  7.57713e-05
  4  5.94125e-05
  5  5.12607
  6  5.19746e-06
  7  2.23596
  8  2.52881
  9  4.29786
  10  0.557305
  11  65.7108
  12  1.6067e-05
  13  19.7793
  14  8.70348
  15  2.18855e-05
  16  3.97903e-06
  17  0.000310927
  18  1.40421e-07
  19  6.12193
  20  9.65241e-06
  21  0.182456
  22  0.159438
Done.

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

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  3.324e+02  6.571e+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.169e+00  1.594e-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.634e-01  1.825e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 63.00
Ra Dec: 221.591 31.195
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 3.61e-07 +/- 7.13e-08
Energy Flux (Fixed Index): 9.87e-05 +/- 1.95e-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) = 7604.10145391
delta logL = 0.0499247452708

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7604.04349959
delta logL = 0.107879066093

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    358.87       1.0000          .0000       .10000E+07
     2 'Index     '    2.4572       1.0000          .0000       10.000    
     3 'Normalizat'    .98549       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1547       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=   7604.043     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      294 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     358.91        90.827        .10559E-04    .29414E-03
   2  Index         2.4572        .21404        .30420E-02    .59822E-04
   3  Normalizat    .98509        .21509        .28952E-03    .10390E-03
   4  Prefactor     1.1550        .19031        .24466E-03    .62358E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 358.907
  Index      = 2.45717
  Normalizat = 0.985093
  Prefactor  = 1.15499
 **********
 **   18 **HESSE 
 **********

 FCN=   7604.043     FROM HESSE     STATUS=OK            25 CALLS      319 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     358.91        89.450        .21119E-05   -1.5329    
   2  Index         2.4572        .21067        .12168E-03   -.53352    
   3  Normalizat    .98509        .21523        .11581E-04   -.93532    
   4  Prefactor     1.1550        .19044        .97865E-05   -.87728    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95294e-11
Minuit parameter uncertainties:
  1  89.4506
  2  0.210754
  3  0.215417
  4  0.190551
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/967043': 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) = 7604.04349751
delta logL = 0.107881149276

Extracting fit parameters...

4FGL J1446.3+3111
   Spectrum: PowerLaw
268    Prefactor:  3.589e+02  8.945e+01  0.000e+00  1.000e+06 ( 1.000e-13)
269        Index:  2.457e+00  2.108e-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.155e+00  1.906e-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.851e-01  2.154e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 63.11
Ra Dec: 221.591 31.195
Photon Index (Free Index): 2.46 +/- 0.21
Photon Flux (Free Index): 3.41e-07 +/- 8.08e-08
Energy Flux (Free Index): 1.04e-04 +/- 2.44e-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/967043/cmap_HighResolution_700185601_700444801_4FGL_J1446.3+3111_daily_bin1778.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.61e-07', energy_flux2='1.04e-04', photon_flux_error='7.13e-08', dlogl='1.08e-01', energy_flux='9.87e-05', photon_flux2='3.41e-07', job_status='DONE', time_completed='2023-03-14 01:27:21.524582', photon_index_error2='0.21', photon_index2='2.46', ts='63.00', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', energy_flux_error2='2.44e-05', EG='0.96', time_epoch_completed='1678782441.52', return_code='0', job_id='967043', GAL2='1.15', EG2='0.99', return_code2='0', energy_flux_error='1.95e-05', photon_flux_error2='8.08e-08', ts2='63.11', photon_index='2.56' WHERE bin_id='1778' AND source_name='4FGL J1446.3+3111' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Mar 14 01:27:21 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 967043: <4FGL_J1446.3+3111_daily_bin1778> in cluster <slac> Done

Job <4FGL_J1446.3+3111_daily_bin1778> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue Mar 14 01:15:23 2023
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 14 01:15:23 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 14 01:15:23 2023
Terminated at Tue Mar 14 01:27:22 2023
Results reported at Tue Mar 14 01:27:22 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1446.3+3111_daily_bin1778 221.591 31.1955 700185601 700444801 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 :                                   522.34 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             261.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   718 sec.
    Turnaround time :                            719 sec.

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

