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


Performing analysis on: 4FGL_J1439.7+4958_daily_bin1752
RA = 219.941, Dec = 49.9775
tmin = 693446401, tmax = 693705601
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='266370', job_status='RUN', time_executed='2022-12-26 01:07:52.947513', time_epoch_executed='1672045672.95' WHERE source_name='4FGL J1439.7+4958' and cadence='daily' and bin_id='1752'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/266370

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/266370/ft1_4FGL_J1439.7+4958_daily_bin1752.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/266370/ft2_4FGL_J1439.7+4958_daily_bin1752.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/266370/ft1_4FGL_J1439.7+4958_daily_bin1752.fits outfile=/scratch/kocevski/266370/ft1_filteredMKT_4FGL_J1439.7+4958_daily_bin1752.fits ra=219.941 dec=49.9775 rad=12.0 tmin=693446401.0 tmax=693705601.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.48
user 3.26
sys 0.20

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

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

Number of photons that the gtmktime cut: 440

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/266370/ft1_filtered_4FGL_J1439.7+4958_daily_bin1752.fits" evtable="EVENTS" scfile=/scratch/kocevski/266370/ft2_4FGL_J1439.7+4958_daily_bin1752.fits sctable="SC_DATA" outfile=/scratch/kocevski/266370/ltcube_693446401_693705601_4FGL_J1439.7+4958_daily_bin1752.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/266370/ft2_4FGL_J1439.7+4958_daily_bin1752.fits
.....................!
real 14.38
user 13.97
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/266370/ft1_filtered_4FGL_J1439.7+4958_daily_bin1752.fits evtable="EVENTS" scfile=/scratch/kocevski/266370/ft2_4FGL_J1439.7+4958_daily_bin1752.fits sctable="SC_DATA" expcube=/scratch/kocevski/266370/ltcube_693446401_693705601_4FGL_J1439.7+4958_daily_bin1752.fits outfile=/scratch/kocevski/266370/expmap_693446401_693705601_4FGL_J1439.7+4958_daily_bin1752.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/266370/ltcube_693446401_693705601_4FGL_J1439.7+4958_daily_bin1752.fits
.....................!
real 195.11
user 188.86
sys 5.73

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/266370/ft1_filtered_4FGL_J1439.7+4958_daily_bin1752.fits scfile=/scratch/kocevski/266370/ft2_4FGL_J1439.7+4958_daily_bin1752.fits outfile=/scratch/kocevski/266370/cmap_693446401_693705601_4FGL_J1439.7+4958_daily_bin1752.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/266370/ft1_filtered_4FGL_J1439.7+4958_daily_bin1752.fits scfile=/scratch/kocevski/266370/ft2_4FGL_J1439.7+4958_daily_bin1752.fits outfile=/scratch/kocevski/266370/cmap_HighResolution_693446401_693705601_4FGL_J1439.7+4958_daily_bin1752.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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/266370/ft1_filtered_4FGL_J1439.7+4958_daily_bin1752.fits evtable="EVENTS" scfile=/scratch/kocevski/266370/ft2_4FGL_J1439.7+4958_daily_bin1752.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/266370/Model_4FGL_J1439.7+4958_daily_bin1752.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/266370/ft1_filtered_4FGL_J1439.7+4958_daily_bin1752.fits....................!
real 42.83
user 41.41
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15098       1.0000          .0000       .10000E+07
     2 'norm      '    1.2818       1.0000          .0000       .10000E+07
     3 'Prefactor '    .10098E-01   1.0000          .0000       .10000E+07
     4 'norm      '    .73053       1.0000          .0000       .10000E+07
     5 'norm      '    2.5119       1.0000          .0000       .10000E+07
     6 'Prefactor '    .20115E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    60.541       1.0000          .0000       .10000E+07
     8 'Prefactor '    .20721E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    5.0098       1.0000          .0000       .10000E+07
    10 'Prefactor '    3.8263       1.0000          .0000       .10000E+07
    11 'Prefactor '    50.106       1.0000          .0000       .10000E+07
    12 'Prefactor '    8.3395       1.0000          .0000       .10000E+07
    13 'Prefactor '    .48244E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    23.914       1.0000          .0000       .10000E+07
    15 'Prefactor '    10.344       1.0000          .0000       .10000E+07
    16 'norm      '    3.0015       1.0000          .0000       .10000E+07
    17 'Prefactor '    .62975E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    7.8894       1.0000          .0000       .10000E+07
    19 'Prefactor '    6.5185       1.0000          .0000       .10000E+07
    20 'norm      '    1.5450       1.0000          .0000       .10000E+07
    21 'Prefactor '    .49281E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    .37572E-02   1.0000          .0000       .10000E+07
    23 'Prefactor '    16.363       1.0000          .0000       .10000E+07
    24 'Normalizat'    .70001       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0595       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=   4819.225     FROM MIGRAD    STATUS=CONVERGED    150 CALLS     2111 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .51519E-05    85.715        .60099E-05** at limit **
   2  norm          1.2812        1.9498        .16961E-06   -.12951E-02
   3  Prefactor     .19096E-06    22.619        .17834E-05** at limit **
   4  norm          .73131        .72166       -.19514E-07    .27568E-03
   5  norm          2.5150        4.2851        .76068E-07    .13333E-02
   6  Prefactor      .0000        50.827       -.33327E-06** at limit **
   7  Prefactor     61.602        41.929        .22227E-05   -.51444E-01
   8  Prefactor     .16653E-09    2.6086       -.89905E-07** at limit **
   9  Prefactor     4.9407        4.1701       -.25539E-05   -.46915E-01
  10  Prefactor     3.8254        2.8617        .27175E-07    .27708E-02
  11  Prefactor     50.128        2.3257        .13164E-06   -.14382E-01
  12  Prefactor     8.2096        1.9017       -.20043E-06   -.38521E-02
  13  Prefactor     .80311E-05    19.663       -.53674E-05** at limit **
  14  Prefactor     24.213        6.8045       -.40604E-06    .30467E-01
  15  Prefactor     10.547        11.014        .27001E-06    .88949E-02
  16  norm          2.9981        1.7552        .44257E-07   -.42671E-02
  17  Prefactor     .22093E-07    7.5686       -.72280E-06** at limit **
  18  Prefactor     7.9631        7.5458       -.10420E-06   -.37838E-02
  19  Prefactor     6.7018        7.5987        .13343E-06    .65787E-03
  20  norm          1.5503        2.4826       -.40417E-06    .61329E-03
  21  Prefactor      .0000        3.6486       -.13697E-06** at limit **
  22  Prefactor     .67621E-05    26.386        .67619E-05** at limit **
  23  Prefactor     16.231        11.333        .34736E-05    .12995    
  24  Normalizat    .69871        .20711       -.13806E-04   -.28685E-03
  25  Prefactor     1.0599        .23834        .47535E-05   -.18162E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.15193e-06
  norm       = 1.28117
  Prefactor  = 1.90958e-07
  norm       = 0.731305
  norm       = 2.515
  Prefactor  = 0
  Prefactor  = 61.6023
  Prefactor  = 1.66533e-10
  Prefactor  = 4.94066
  Prefactor  = 3.82541
  Prefactor  = 50.1278
  Prefactor  = 8.20964
  Prefactor  = 8.03113e-06
  Prefactor  = 24.2133
  Prefactor  = 10.5471
  norm       = 2.99812
  Prefactor  = 2.20934e-08
  Prefactor  = 7.96315
  Prefactor  = 6.70179
  norm       = 1.55034
  Prefactor  = 0
  Prefactor  = 6.76215e-06
  Prefactor  = 16.231
  Normalizat = 0.698708
  Prefactor  = 1.05991
 **********
 **   18 **HESSE 
 **********

 FCN=   4819.225     FROM HESSE     STATUS=OK           485 CALLS     2596 TOTAL
                     EDM=   .89E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .51519E-05    14.713        .12723E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.2812        1.9900        .97973E-03   -1.5685    
   3  Prefactor     .19096E-06    22.871        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .73131        .71360        .58264E-03   -1.5691    
   5  norm          2.5150        4.3173        .64441E-03   -1.5676    
   6  Prefactor      .0000        50.194        .17029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     61.602        43.529        .12853E-03   -1.5551    
   8  Prefactor     .16653E-09    2.5896        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.9407        13.270        .44904E-03   -1.5664    
  10  Prefactor     3.8254        3.0400        .51572E-03   -1.5669    
  11  Prefactor     50.128        26.511        .14128E-03   -1.5566    
  12  Prefactor     8.2096        24.989        .34691E-03   -1.5651    
  13  Prefactor     .80311E-05    29.430        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     24.213        34.274        .20454E-03   -1.5610    
  15  Prefactor     10.547        11.038        .31129E-03   -1.5643    
  16  norm          2.9981        1.7606        .58563E-03   -1.5673    
  17  Prefactor     .22093E-07    7.5831        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.9631        7.5700        .35674E-03   -1.5652    
  19  Prefactor     6.7018        7.6308        .39284E-03   -1.5656    
  20  norm          1.5503        2.5385        .85708E-03   -1.5683    
  21  Prefactor      .0000        3.6453        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .67621E-05    34.703        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     16.231        14.359        .24733E-03   -1.5627    
  24  Normalizat    .69871        .18419        .42291E-01   -1.0394    
  25  Prefactor     1.0599        .20584        .39384E-01   -.90758    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.94429e-07
Minuit parameter uncertainties:
  1  0.017413
  2  1.99002
  3  0.00417962
  4  0.713595
  5  4.31735
  6  2.11796e-05
  7  43.5296
  8  4.27785e-05
  9  13.2705
  10  3.03998
  11  26.5109
  12  24.9895
  13  0.0307479
  14  34.2746
  15  11.0385
  16  1.76062
  17  0.000819047
  18  7.57002
  19  7.63081
  20  2.53848
  21  1.22429e-05
  22  0.0306378
  23  14.3587
  24  0.184352
  25  0.205994
Done.

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

Extracting fit parameters...

4FGL J1439.7+4958
   Spectrum: PowerLaw
317    Prefactor:  1.055e+01  1.104e+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.060e+00  2.060e-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:  6.987e-01  1.844e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.91
Ra Dec: 219.941 49.977
Photon Index (Fixed Index): 2.30 +/- 0.00
Photon Flux (Fixed Index): 1.95e-08 +/- 2.04e-08
Energy Flux (Fixed Index): 7.37e-06 +/- 7.71e-06

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

Saving results to:
/scratch/kocevski/266370/likelihoodResults_693446401_693705601_4FGL_J1439.7+4958_daily_bin1752.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) = 4818.92380861
delta logL = 0.301602710777

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4818.90753967
delta logL = 0.31787164348

Fit tolerance = 1e-08

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

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

 FCN=   4818.908     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      231 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.893        824.33        .27857E-03   -.29388E-02
   2  Index         1.7111        6.0686        .27768       -.23036E-04
   3  Normalizat    .70540        .21286        .42362E-01   -.24528E-03
   4  Prefactor     1.0571        .19538        .39516E-01   -.25647E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.8935
  Index      = 1.71109
  Normalizat = 0.705398
  Prefactor  = 1.05707
 **********
 **   18 **HESSE 
 **********

 FCN=   4818.908     FROM HESSE     STATUS=OK            31 CALLS      262 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.893        13.787        .55714E-04   -1.5636    
   2  Index         1.7111        .71012        .96941E-02   -.71787    
   3  Normalizat    .70540        .19893        .24384E-03   -1.0368    
   4  Prefactor     1.0571        .23686        .24002E-03   -.90851    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.85255e-11
Minuit parameter uncertainties:
  1  13.7868
  2  0.714396
  3  0.199133
  4  0.237092
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/266370': 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) = 4818.90753842
delta logL = 0.317872892259

Extracting fit parameters...

4FGL J1439.7+4958
   Spectrum: PowerLaw
317    Prefactor:  1.289e+01  1.379e+01  0.000e+00  1.000e+06 ( 1.000e-13)
318        Index:  1.711e+00  7.144e-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:  1.057e+00  2.371e-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:  7.054e-01  1.991e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.55
Ra Dec: 219.941 49.977
Photon Index (Free Index): 1.71 +/- 0.71
Photon Flux (Free Index): 1.06e-08 +/- 1.49e-08
Energy Flux (Free Index): 1.67e-05 +/- 2.85e-05

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/266370/cmap_HighResolution_693446401_693705601_4FGL_J1439.7+4958_daily_bin1752.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.24e-03', comment='SUCCESS', photon_flux='1.95e-08', energy_flux2='1.67e-05', photon_flux_error='2.04e-08', dlogl='3.18e-01', energy_flux='7.37e-06', photon_flux2='1.06e-08', job_status='DONE', time_completed='2022-12-26 01:18:23.457662', photon_index_error2='0.71', photon_index2='1.71', ts='2.91', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='8.13e-08', energy_flux_error2='2.85e-05', EG='0.70', time_epoch_completed='1672046303.46', return_code='0', job_id='266370', GAL2='1.06', EG2='0.71', return_code2='0', energy_flux_error='7.71e-06', photon_flux_error2='1.49e-08', ts2='3.55', photon_index='2.30' WHERE bin_id='1752' AND source_name='4FGL J1439.7+4958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec 26 01:18:23 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 266370: <4FGL_J1439.7+4958_daily_bin1752> in cluster <slac> Done

Job <4FGL_J1439.7+4958_daily_bin1752> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Dec 26 01:05:16 2022
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec 26 01:05:32 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec 26 01:05:32 2022
Terminated at Mon Dec 26 01:18:24 2022
Results reported at Mon Dec 26 01:18:24 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1439.7+4958_daily_bin1752 219.941 49.9775 693446401 693705601 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 :                                   631.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             255.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            788 sec.

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

