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


Performing analysis on: 4FGL_J1439.7+4958_daily_bin1755
RA = 219.941, Dec = 49.9775
tmin = 694224001, tmax = 694483201
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='826795', job_status='RUN', time_executed='2023-01-04 01:12:47.783457', time_epoch_executed='1672823567.78' WHERE source_name='4FGL J1439.7+4958' and cadence='daily' and bin_id='1755'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/826795

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/826795/ft1_4FGL_J1439.7+4958_daily_bin1755.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/826795/ft2_4FGL_J1439.7+4958_daily_bin1755.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/826795/ft1_4FGL_J1439.7+4958_daily_bin1755.fits outfile=/scratch/kocevski/826795/ft1_filteredMKT_4FGL_J1439.7+4958_daily_bin1755.fits ra=219.941 dec=49.9775 rad=12.0 tmin=694224001.0 tmax=694483201.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.04
user 2.81
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/826795/ft2_4FGL_J1439.7+4958_daily_bin1755.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/826795/ft2_4FGL_J1439.7+4958_daily_bin1755.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/826795/ft1_filteredMKT_4FGL_J1439.7+4958_daily_bin1755.fits evtable="EVENTS" outfile="/scratch/kocevski/826795/ft1_filtered_4FGL_J1439.7+4958_daily_bin1755.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.51
user 0.33
sys 0.17

Number of photons that the gtmktime cut: 841

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/826795/ft1_filtered_4FGL_J1439.7+4958_daily_bin1755.fits" evtable="EVENTS" scfile=/scratch/kocevski/826795/ft2_4FGL_J1439.7+4958_daily_bin1755.fits sctable="SC_DATA" outfile=/scratch/kocevski/826795/ltcube_694224001_694483201_4FGL_J1439.7+4958_daily_bin1755.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/826795/ft2_4FGL_J1439.7+4958_daily_bin1755.fits
.....................!
real 15.26
user 14.81
sys 0.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/826795/ft1_filtered_4FGL_J1439.7+4958_daily_bin1755.fits evtable="EVENTS" scfile=/scratch/kocevski/826795/ft2_4FGL_J1439.7+4958_daily_bin1755.fits sctable="SC_DATA" expcube=/scratch/kocevski/826795/ltcube_694224001_694483201_4FGL_J1439.7+4958_daily_bin1755.fits outfile=/scratch/kocevski/826795/expmap_694224001_694483201_4FGL_J1439.7+4958_daily_bin1755.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/826795/ltcube_694224001_694483201_4FGL_J1439.7+4958_daily_bin1755.fits
.....................!
real 191.74
user 185.94
sys 5.34

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

Setting source of interest to:
4FGL J1439.7+4958 @ 219.941 49.9775

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/826795/ft1_filtered_4FGL_J1439.7+4958_daily_bin1755.fits scfile=/scratch/kocevski/826795/ft2_4FGL_J1439.7+4958_daily_bin1755.fits outfile=/scratch/kocevski/826795/cmap_694224001_694483201_4FGL_J1439.7+4958_daily_bin1755.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=219.941 yref=49.9775 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/826795/ft1_filtered_4FGL_J1439.7+4958_daily_bin1755.fits scfile=/scratch/kocevski/826795/ft2_4FGL_J1439.7+4958_daily_bin1755.fits outfile=/scratch/kocevski/826795/cmap_HighResolution_694224001_694483201_4FGL_J1439.7+4958_daily_bin1755.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=219.941 yref=49.9775 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.57
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/826795/ft1_filtered_4FGL_J1439.7+4958_daily_bin1755.fits evtable="EVENTS" scfile=/scratch/kocevski/826795/ft2_4FGL_J1439.7+4958_daily_bin1755.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/826795/Model_4FGL_J1439.7+4958_daily_bin1755.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/826795/ft1_filtered_4FGL_J1439.7+4958_daily_bin1755.fits.....................!
real 68.02
user 66.53
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/826795/ft1_filtered_4FGL_J1439.7+4958_daily_bin1755.fits', '/scratch/kocevski/826795/ft2_4FGL_J1439.7+4958_daily_bin1755.fits', expMap='/scratch/kocevski/826795/expmap_694224001_694483201_4FGL_J1439.7+4958_daily_bin1755.fits', expCube='/scratch/kocevski/826795/ltcube_694224001_694483201_4FGL_J1439.7+4958_daily_bin1755.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/826795/Model_4FGL_J1439.7+4958_daily_bin1755.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1439.7+4958'

4FGL J1439.7+4958
   Spectrum: PowerLaw
317    Prefactor:  6.204e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
318        Index:  2.302e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  1.083e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/826795/ft1_filtered_4FGL_J1439.7+4958_daily_bin1755.fits
Spacecraft file(s): /scratch/kocevski/826795/ft2_4FGL_J1439.7+4958_daily_bin1755.fits
Exposure map: /scratch/kocevski/826795/expmap_694224001_694483201_4FGL_J1439.7+4958_daily_bin1755.fits
Exposure cube: /scratch/kocevski/826795/ltcube_694224001_694483201_4FGL_J1439.7+4958_daily_bin1755.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/826795/Model_4FGL_J1439.7+4958_daily_bin1755.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) = 9223.7739419

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.286       1.0000          .0000       .10000E+07
     2 'norm      '    1.7923       1.0000          .0000       .10000E+07
     3 'Prefactor '    55.784       1.0000          .0000       .10000E+07
     4 'norm      '    .45297E-07   1.0000          .0000       .10000E+07
     5 'norm      '    .40523E-08   1.0000          .0000       .10000E+07
     6 'Prefactor '    24.166       1.0000          .0000       .10000E+07
     7 'Prefactor '    .82649E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .14377E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .77273E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    2.8520       1.0000          .0000       .10000E+07
    11 'Prefactor '    4.2275       1.0000          .0000       .10000E+07
    12 'Prefactor '    4.1796       1.0000          .0000       .10000E+07
    13 'Prefactor '    5.4570       1.0000          .0000       .10000E+07
    14 'Prefactor '    .17058E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    20.060       1.0000          .0000       .10000E+07
    16 'norm      '    1.2710       1.0000          .0000       .10000E+07
    17 'Prefactor '    .94342E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .39537E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    .15295E-01   1.0000          .0000       .10000E+07
    20 'norm      '    2.4352       1.0000          .0000       .10000E+07
    21 'Prefactor '    1.8896       1.0000          .0000       .10000E+07
    22 'Prefactor '    14.020       1.0000          .0000       .10000E+07
    23 'Prefactor '    .41991E-03   1.0000          .0000       .10000E+07
    24 'Normalizat'    .89928       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .89646       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9223.765     FROM MIGRAD    STATUS=CONVERGED    156 CALLS     2117 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.088        14.651       -.37879E-07    .53946E-01
   2  norm          1.7917        2.0897        .46055E-07    .44347E-03
   3  Prefactor     56.011        3.0123        .51075E-07   -.26124E-01
   4  norm           .0000        .36041        .82202E-07** at limit **
   5  norm           .0000        .62379       -.28812E-07** at limit **
   6  Prefactor     24.425        13.026       -.18087E-08    .22548E-01
   7  Prefactor     .11102E-09    9.4275       -.42995E-06** at limit **
   8  Prefactor      .0000        .98227        .75299E-07** at limit **
   9  Prefactor      .0000        28.189        .76534E-06** at limit **
  10  Prefactor     2.8484        1.8709       -.13817E-06    .84407E-03
  11  Prefactor     4.2373        10.941        .42324E-06    .23410E-01
  12  Prefactor     4.1585        5.6703        .23276E-06   -.51101E-01
  13  Prefactor     6.0584        22.871        .95917E-07    .19285E-01
  14  Prefactor     .14100E-07    69.879       -.29043E-05** at limit **
  15  Prefactor     19.993        2.8183       -.31507E-07   -.25127E-01
  16  norm          1.2700        .95718       -.55558E-07   -.13493E-02
  17  Prefactor     .33307E-09    14.874       -.57535E-07** at limit **
  18  Prefactor      .0000        2.9721       -.52056E-07** at limit **
  19  Prefactor      .0000        31.626       -.10979E-05** at limit **
  20  norm          2.4430        2.2684       -.10265E-06   -.16644E-02
  21  Prefactor     1.8700        3.5480       -.22662E-06   -.11231E-02
  22  Prefactor     13.999        11.525        .18247E-06    .26942E-01
  23  Prefactor      .0000        4.1324       -.19847E-07** at limit **
  24  Normalizat    .89939        .13885        .45678E-05   -.11916E-04
  25  Prefactor     .89640        .16228       -.63306E-05   -.29860E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.0884
  norm       = 1.79169
  Prefactor  = 56.0107
  norm       = 0
  norm       = 0
  Prefactor  = 24.4248
  Prefactor  = 1.11022e-10
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 2.84843
  Prefactor  = 4.23734
  Prefactor  = 4.15846
  Prefactor  = 6.05838
  Prefactor  = 1.40998e-08
  Prefactor  = 19.9934
  norm       = 1.26999
  Prefactor  = 3.33067e-10
  Prefactor  = 0
  Prefactor  = 0
  norm       = 2.44301
  Prefactor  = 1.86997
  Prefactor  = 13.9993
  Prefactor  = 0
  Normalizat = 0.899392
  Prefactor  = 0.896402
 **********
 **   18 **HESSE 
 **********

 FCN=   9223.765     FROM HESSE     STATUS=OK           491 CALLS     2608 TOTAL
                     EDM=   .54E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.088        26.747        .21681E-03   -1.5616    
   2  norm          1.7917        2.1172        .78092E-03   -1.5681    
   3  Prefactor     56.011        43.714        .13390E-03   -1.5558    
   4  norm           .0000        .35951        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        .62852        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     24.425        32.412        .20347E-03   -1.5609    
   7  Prefactor     .11102E-09    9.4342        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        .98383        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        7.6497        .86052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.8484        2.1063        .60177E-03   -1.5674    
  11  Prefactor     4.2373        11.248        .48985E-03   -1.5667    
  12  Prefactor     4.1585        25.642        .49273E-03   -1.5667    
  13  Prefactor     6.0584        47.585        .42990E-03   -1.5659    
  14  Prefactor     .14100E-07    69.943        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.993        10.878        .22335E-03   -1.5619    
  16  norm          1.2700        .97281        .98643E-03   -1.5685    
  17  Prefactor     .33307E-09    14.795        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        2.9545        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        1.8853        .10277E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.4430        2.2971        .65543E-03   -1.5677    
  21  Prefactor     1.8700        3.6075        .75671E-03   -1.5681    
  22  Prefactor     13.999        11.653        .26725E-03   -1.5633    
  23  Prefactor      .0000        4.1396        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .89939        .12311        .44892E-01   -.96482    
  25  Prefactor     .89640        .13798        .44960E-01   -.96267    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.42181e-07
Minuit parameter uncertainties:
  1  26.7474
  2  2.11719
  3  43.7142
  4  1.97127e-06
  5  6.80227e-07
  6  32.4123
  7  7.00837e-05
  8  1.28751e-06
  9  2.52833e-05
  10  2.10635
  11  11.2485
  12  20.6525
  13  33.9584
  14  0.00198534
  15  10.8782
  16  0.972806
  17  0.000134915
  18  1.75417e-06
  19  1.36742e-05
  20  2.2971
  21  3.60748
  22  11.6532
  23  8.77521e-06
  24  0.12315
  25  0.138033
Done.

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

Extracting fit parameters...

4FGL J1439.7+4958
   Spectrum: PowerLaw
317    Prefactor:  1.999e+01  1.088e+01  0.000e+00  1.000e+06 ( 1.000e-13)
318        Index:  2.302e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  1.083e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
642    Prefactor:  8.964e-01  1.380e-01  0.000e+00  1.000e+01 ( 1.000e+00)
643        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
644        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
641   Normalization:  8.994e-01  1.231e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.40
Ra Dec: 219.941 49.977
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 3.70e-08 +/- 2.01e-08
Energy Flux (Fixed Index): 1.40e-05 +/- 7.60e-06

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) = 9223.19930493
delta logL = 0.566165259108

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9223.1986032
delta logL = 0.566866988906

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.589       1.0000          .0000       .10000E+07
     2 'Index     '    1.9153       1.0000          .0000       10.000    
     3 'Normalizat'    .91060       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88704       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6450E+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=   9223.199     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      291 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.590        14.764        .76167E-05   -.83544E-02
   2  Index         1.9153        .34174        .67420E-02   -.34520E-03
   3  Normalizat    .91058        .13772        .21021E-03    .12255E-03
   4  Prefactor     .88706        .16219        .24907E-03    .13346E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.5902
  Index      = 1.91531
  Normalizat = 0.910577
  Prefactor  = 0.887064
 **********
 **   18 **HESSE 
 **********

 FCN=   9223.199     FROM HESSE     STATUS=OK            23 CALLS      314 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.590        14.656        .15233E-05   -1.5603    
   2  Index         1.9153        .33923        .26968E-03   -.66485    
   3  Normalizat    .91058        .13788        .84085E-05   -.96089    
   4  Prefactor     .88706        .16238        .99628E-05   -.96595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16832e-09
Minuit parameter uncertainties:
  1  14.656
  2  0.339655
  3  0.137931
  4  0.162469
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/826795': 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) = 9223.19860318
delta logL = 0.566867007097

Extracting fit parameters...

4FGL J1439.7+4958
   Spectrum: PowerLaw
317    Prefactor:  2.759e+01  1.466e+01  0.000e+00  1.000e+06 ( 1.000e-13)
318        Index:  1.915e+00  3.397e-01  0.000e+00  1.000e+01 (-1.000e+00)
319        Scale:  1.083e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
642    Prefactor:  8.871e-01  1.625e-01  0.000e+00  1.000e+01 ( 1.000e+00)
643        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
644        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
641   Normalization:  9.106e-01  1.379e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.56
Ra Dec: 219.941 49.977
Photon Index (Free Index): 1.92 +/- 0.34
Photon Flux (Free Index): 2.89e-08 +/- 1.74e-08
Energy Flux (Free Index): 2.48e-05 +/- 1.98e-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/826795/cmap_HighResolution_694224001_694483201_4FGL_J1439.7+4958_daily_bin1755.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.70e-08', energy_flux2='2.48e-05', photon_flux_error='2.01e-08', dlogl='5.67e-01', energy_flux='1.40e-05', photon_flux2='2.89e-08', job_status='DONE', time_completed='2023-01-04 01:25:41.006158', photon_index_error2='0.34', photon_index2='1.92', ts='7.40', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='1.98e-05', EG='0.90', time_epoch_completed='1672824341.01', return_code='0', job_id='826795', GAL2='0.89', EG2='0.91', return_code2='0', energy_flux_error='7.60e-06', photon_flux_error2='1.74e-08', ts2='8.56', photon_index='2.30' WHERE bin_id='1755' AND source_name='4FGL J1439.7+4958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan  4 01:25:41 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 826795: <4FGL_J1439.7+4958_daily_bin1755> in cluster <slac> Done

Job <4FGL_J1439.7+4958_daily_bin1755> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Jan  4 01:10:26 2023
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan  4 01:10:54 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan  4 01:10:54 2023
Terminated at Wed Jan  4 01:25:41 2023
Results reported at Wed Jan  4 01:25:41 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1439.7+4958_daily_bin1755 219.941 49.9775 694224001 694483201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1439.7+4958 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   775.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             311.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            915 sec.

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

