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


Performing analysis on: 4FGL_J1439.7+4958_daily_bin1751
RA = 219.941, Dec = 49.9775
tmin = 693187201, tmax = 693446401
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='80319', job_status='RUN', time_executed='2022-12-23 00:52:30.261001', time_epoch_executed='1671785550.26' WHERE source_name='4FGL J1439.7+4958' and cadence='daily' and bin_id='1751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/80319

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/80319/ft1_4FGL_J1439.7+4958_daily_bin1751.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/80319/ft2_4FGL_J1439.7+4958_daily_bin1751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/80319/ft1_4FGL_J1439.7+4958_daily_bin1751.fits outfile=/scratch/kocevski/80319/ft1_filteredMKT_4FGL_J1439.7+4958_daily_bin1751.fits ra=219.941 dec=49.9775 rad=12.0 tmin=693187201.0 tmax=693446401.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.63
user 3.39
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/80319/ft2_4FGL_J1439.7+4958_daily_bin1751.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/80319/ft1_filteredMKT_4FGL_J1439.7+4958_daily_bin1751.fits evtable="EVENTS" outfile="/scratch/kocevski/80319/ft1_filtered_4FGL_J1439.7+4958_daily_bin1751.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.48
user 0.32
sys 0.15

Number of photons that the gtmktime cut: 510

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/80319/ft1_filtered_4FGL_J1439.7+4958_daily_bin1751.fits" evtable="EVENTS" scfile=/scratch/kocevski/80319/ft2_4FGL_J1439.7+4958_daily_bin1751.fits sctable="SC_DATA" outfile=/scratch/kocevski/80319/ltcube_693187201_693446401_4FGL_J1439.7+4958_daily_bin1751.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/80319/ft2_4FGL_J1439.7+4958_daily_bin1751.fits
.....................!
real 11.93
user 11.57
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/80319/ft1_filtered_4FGL_J1439.7+4958_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/80319/ft2_4FGL_J1439.7+4958_daily_bin1751.fits sctable="SC_DATA" expcube=/scratch/kocevski/80319/ltcube_693187201_693446401_4FGL_J1439.7+4958_daily_bin1751.fits outfile=/scratch/kocevski/80319/expmap_693187201_693446401_4FGL_J1439.7+4958_daily_bin1751.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/80319/ltcube_693187201_693446401_4FGL_J1439.7+4958_daily_bin1751.fits
.....................!
real 191.69
user 186.37
sys 5.00

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/80319/ft1_filtered_4FGL_J1439.7+4958_daily_bin1751.fits scfile=/scratch/kocevski/80319/ft2_4FGL_J1439.7+4958_daily_bin1751.fits outfile=/scratch/kocevski/80319/cmap_693187201_693446401_4FGL_J1439.7+4958_daily_bin1751.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/80319/ft1_filtered_4FGL_J1439.7+4958_daily_bin1751.fits scfile=/scratch/kocevski/80319/ft2_4FGL_J1439.7+4958_daily_bin1751.fits outfile=/scratch/kocevski/80319/cmap_HighResolution_693187201_693446401_4FGL_J1439.7+4958_daily_bin1751.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.55
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/80319/ft1_filtered_4FGL_J1439.7+4958_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/80319/ft2_4FGL_J1439.7+4958_daily_bin1751.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/80319/Model_4FGL_J1439.7+4958_daily_bin1751.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/80319/ft1_filtered_4FGL_J1439.7+4958_daily_bin1751.fits.....................!
real 46.40
user 45.15
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/80319/ft1_filtered_4FGL_J1439.7+4958_daily_bin1751.fits', '/scratch/kocevski/80319/ft2_4FGL_J1439.7+4958_daily_bin1751.fits', expMap='/scratch/kocevski/80319/expmap_693187201_693446401_4FGL_J1439.7+4958_daily_bin1751.fits', expCube='/scratch/kocevski/80319/ltcube_693187201_693446401_4FGL_J1439.7+4958_daily_bin1751.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/80319/Model_4FGL_J1439.7+4958_daily_bin1751.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/80319/ft1_filtered_4FGL_J1439.7+4958_daily_bin1751.fits
Spacecraft file(s): /scratch/kocevski/80319/ft2_4FGL_J1439.7+4958_daily_bin1751.fits
Exposure map: /scratch/kocevski/80319/expmap_693187201_693446401_4FGL_J1439.7+4958_daily_bin1751.fits
Exposure cube: /scratch/kocevski/80319/ltcube_693187201_693446401_4FGL_J1439.7+4958_daily_bin1751.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/80319/Model_4FGL_J1439.7+4958_daily_bin1751.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) = 5606.84394463

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .28668       1.0000          .0000       .10000E+07
     2 'norm      '    .16098E-08   1.0000          .0000       .10000E+07
     3 'Prefactor '    .32902E-02   1.0000          .0000       .10000E+07
     4 'norm      '    .63061E-07   1.0000          .0000       .10000E+07
     5 'norm      '    .24902E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    81.036       1.0000          .0000       .10000E+07
     7 'Prefactor '    13.880       1.0000          .0000       .10000E+07
     8 'Prefactor '    .15976E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    9.9295       1.0000          .0000       .10000E+07
    10 'Prefactor '    .46532       1.0000          .0000       .10000E+07
    11 'Prefactor '    .18834E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .49678E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    .26987E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    .10006E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    6.1600       1.0000          .0000       .10000E+07
    16 'norm      '    1.9961       1.0000          .0000       .10000E+07
    17 'Prefactor '    .11141E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    1.6672       1.0000          .0000       .10000E+07
    19 'Prefactor '    4.2701       1.0000          .0000       .10000E+07
    20 'norm      '    1.2853       1.0000          .0000       .10000E+07
    21 'Prefactor '    .28433E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    .25960E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    .50699E-03   1.0000          .0000       .10000E+07
    24 'Normalizat'    .85929       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1864       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=   5606.820     FROM MIGRAD    STATUS=CONVERGED    160 CALLS     2110 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23074E-01    582.96       -.45425E-05** at limit **
   2  norm           .0000        .94297       -.74827E-07** at limit **
   3  Prefactor     .39196E-06    10.322        .43279E-06** at limit **
   4  norm           .0000        .47029        .19030E-06** at limit **
   5  norm           .0000        .79374       -.91609E-07** at limit **
   6  Prefactor     81.682        47.454        .48265E-06    .24434E-01
   7  Prefactor     13.880        13.042       -.67422E-07    .10732    
   8  Prefactor     .16653E-09    6.8253        .64393E-06** at limit **
   9  Prefactor     9.9177        1.4553       -.12018E-07   -.23217E-02
  10  Prefactor     .46124        1.4219       -.92645E-07   -.38681E-03
  11  Prefactor     .58353E-06    6.5399        .46010E-06** at limit **
  12  Prefactor      .0000        5.8183       -.30672E-08** at limit **
  13  Prefactor      .0000        23.062        .79792E-07** at limit **
  14  Prefactor     .29388E-06    18.992       -.54941E-06** at limit **
  15  Prefactor     6.1314        4.8412        .47738E-07    .34402E-01
  16  norm          1.9966        1.3544       -.28244E-07   -.60169E-03
  17  Prefactor     .55511E-10    4.1656       -.78178E-07** at limit **
  18  Prefactor     1.6619        3.3959       -.91739E-07   -.86167E-03
  19  Prefactor     4.0670        7.2098        .30862E-06    .14710E-02
  20  norm          1.2835        3.2181       -.76120E-07   -.16815E-03
  21  Prefactor     .34028E-06    4.8012        .53143E-06** at limit **
  22  Prefactor     .49771E-06    9.1339       -.67987E-08** at limit **
  23  Prefactor     .32474E-06    10.744       -.39346E-06** at limit **
  24  Normalizat    .85968        .19300       -.62357E-05   -.10802E-04
  25  Prefactor     1.1865        .23364        .60770E-05    .17457E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0230736
  norm       = 0
  Prefactor  = 3.91964e-07
  norm       = 0
  norm       = 0
  Prefactor  = 81.6822
  Prefactor  = 13.8795
  Prefactor  = 1.66533e-10
  Prefactor  = 9.91771
  Prefactor  = 0.461238
  Prefactor  = 5.83533e-07
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 2.93876e-07
  Prefactor  = 6.13138
  norm       = 1.99663
  Prefactor  = 5.55112e-11
  Prefactor  = 1.66192
  Prefactor  = 4.06703
  norm       = 1.28346
  Prefactor  = 3.40283e-07
  Prefactor  = 4.97713e-07
  Prefactor  = 3.2474e-07
  Normalizat = 0.859678
  Prefactor  = 1.18654
 **********
 **   18 **HESSE 
 **********

 FCN=   5606.820     FROM HESSE     STATUS=OK           477 CALLS     2587 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .23074E-01    13.913        .14941E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        .94069        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .39196E-06    12.771        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        .46788        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        .79144        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     81.682        56.610        .11109E-03   -1.5527    
   7  Prefactor     13.880        31.089        .26859E-03   -1.5633    
   8  Prefactor     .16653E-09    6.7923        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.9177        18.293        .31775E-03   -1.5645    
  10  Prefactor     .46124        1.4709        .82278E-03   -1.5694    
  11  Prefactor     .58353E-06    13.696        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        5.8267        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        23.038        .16614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .29388E-06    20.144        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.1314        15.672        .40426E-03   -1.5658    
  16  norm          1.9966        1.3627        .73288E-03   -1.5680    
  17  Prefactor     .55511E-10    4.1768        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.6619        3.4386        .81633E-03   -1.5682    
  19  Prefactor     4.0670        7.2446        .48733E-03   -1.5668    
  20  norm          1.2835        3.2622        .97759E-03   -1.5685    
  21  Prefactor     .34028E-06    13.705        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .49771E-06    15.579        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .32474E-06    18.498        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .85968        .16401        .44379E-01   -.97892    
  25  Prefactor     1.1865        .19429        .54859E-01   -.86747    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.9959e-07
Minuit parameter uncertainties:
  1  1.13317
  2  2.7289e-06
  3  0.0044746
  4  2.56375e-06
  5  2.37269e-06
  6  56.6101
  7  31.0894
  8  6.31344e-05
  9  18.2935
  10  1.47085
  11  0.00565407
  12  1.46231e-05
  13  2.28393e-05
  14  0.00486607
  15  15.6717
  16  1.36273
  17  3.30426e-05
  18  3.43856
  19  7.24463
  20  3.26223
  21  0.00431916
  22  0.00556903
  23  0.0049019
  24  0.164109
  25  0.194408
Done.

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

Extracting fit parameters...

4FGL J1439.7+4958
   Spectrum: PowerLaw
317    Prefactor:  6.131e+00  1.567e+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:  1.187e+00  1.944e-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.597e-01  1.641e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.18
Ra Dec: 219.941 49.977
Photon Flux Upper Limit: 8.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/80319/likelihoodResults_693187201_693446401_4FGL_J1439.7+4958_daily_bin1751.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5606.75817668
delta logL = 0.061642221327

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5606.74303367
delta logL = 0.076785230598

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5606.743     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      262 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6058        286.95        .10619E-03    .40155E-02
   2  Index         2.9887        5.2040        .44270E-02    .59621E-04
   3  Normalizat    .84607        .24006        .23477E-03   -.75784E-04
   4  Prefactor     1.1959        .28708        .24171E-03   -.21401E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.60581
  Index      = 2.98873
  Normalizat = 0.846073
  Prefactor  = 1.19594
 **********
 **   18 **HESSE 
 **********

 FCN=   5606.743     FROM HESSE     STATUS=OK            27 CALLS      289 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6058        16.511        .21237E-04   -1.5670    
   2  Index         2.9887        2.3255        .88540E-03   -.41398    
   3  Normalizat    .84607        .19808        .93909E-05   -.98382    
   4  Prefactor     1.1959        .23548        .96683E-05   -.86456    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63327e-11
Minuit parameter uncertainties:
  1  15.4319
  2  2.43931
  3  0.198255
  4  0.235683
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/80319': 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) = 5606.74303119
delta logL = 0.0767877181561

Extracting fit parameters...

4FGL J1439.7+4958
   Spectrum: PowerLaw
317    Prefactor:  3.606e+00  1.543e+01  0.000e+00  1.000e+06 ( 1.000e-13)
318        Index:  2.989e+00  2.439e+00  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:  1.196e+00  2.357e-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.461e-01  1.983e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.18
Ra Dec: 219.941 49.977

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/80319/cmap_HighResolution_693187201_693446401_4FGL_J1439.7+4958_daily_bin1751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.33e-03', job_status='DONE', photon_flux_upper_limit='8.25e-08', time_completed='2022-12-23 01:02:57.153909', job_id='80319', GAL2='1.20', fit_tolerance='1e-08', EG2='0.85', EG='0.86', time_epoch_completed='1671786177.15', return_code2='0', ts='0.18', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='7.68e-02', ts2='0.33', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='1751' AND source_name='4FGL J1439.7+4958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 23 01:02:57 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0248>
Subject: Job 80319: <4FGL_J1439.7+4958_daily_bin1751> in cluster <slac> Done

Job <4FGL_J1439.7+4958_daily_bin1751> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Dec 23 00:50:16 2022
Job was executed on host(s) <bullet0248>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 23 00:50:17 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 23 00:50:17 2022
Terminated at Fri Dec 23 01:02:57 2022
Results reported at Fri Dec 23 01:02:57 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1439.7+4958_daily_bin1751 219.941 49.9775 693187201 693446401 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 :                                   628.81 sec.
    Max Memory :                                 826 MB
    Average Memory :                             298.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   3390 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   760 sec.
    Turnaround time :                            761 sec.

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

