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 72 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_J1438.9+3710_daily_bin1752
RA = 219.74, Dec = 37.1752
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='266369', job_status='RUN', time_executed='2022-12-26 01:06:55.382353', time_epoch_executed='1672045615.38' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='1752'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/266369

Creating custom pfile directory:
/scratch/kocevski/266369/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/266369/ft1_4FGL_J1438.9+3710_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/266369/ft2_4FGL_J1438.9+3710_daily_bin1752.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/266369/ft1_4FGL_J1438.9+3710_daily_bin1752.fits outfile=/scratch/kocevski/266369/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin1752.fits ra=219.74 dec=37.1752 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.47
user 3.25
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/266369/ft2_4FGL_J1438.9+3710_daily_bin1752.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/266369/ft2_4FGL_J1438.9+3710_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/266369/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin1752.fits evtable="EVENTS" outfile="/scratch/kocevski/266369/ft1_filtered_4FGL_J1438.9+3710_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.52
user 0.35
sys 0.15

Number of photons that the gtmktime cut: 495

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/266369/ft1_filtered_4FGL_J1438.9+3710_daily_bin1752.fits" evtable="EVENTS" scfile=/scratch/kocevski/266369/ft2_4FGL_J1438.9+3710_daily_bin1752.fits sctable="SC_DATA" outfile=/scratch/kocevski/266369/ltcube_693446401_693705601_4FGL_J1438.9+3710_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/266369/ft2_4FGL_J1438.9+3710_daily_bin1752.fits
.....................!
real 14.84
user 14.41
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/266369/ft1_filtered_4FGL_J1438.9+3710_daily_bin1752.fits evtable="EVENTS" scfile=/scratch/kocevski/266369/ft2_4FGL_J1438.9+3710_daily_bin1752.fits sctable="SC_DATA" expcube=/scratch/kocevski/266369/ltcube_693446401_693705601_4FGL_J1438.9+3710_daily_bin1752.fits outfile=/scratch/kocevski/266369/expmap_693446401_693705601_4FGL_J1438.9+3710_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/266369/ltcube_693446401_693705601_4FGL_J1438.9+3710_daily_bin1752.fits
.....................!
real 214.43
user 188.24
sys 18.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 176 point sources and 0 extended sources

Setting source of interest to:
4FGL J1438.9+3710 @ 219.74 37.1752

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/266369/ft1_filtered_4FGL_J1438.9+3710_daily_bin1752.fits scfile=/scratch/kocevski/266369/ft2_4FGL_J1438.9+3710_daily_bin1752.fits outfile=/scratch/kocevski/266369/cmap_693446401_693705601_4FGL_J1438.9+3710_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.74 yref=37.1752 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.58
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/266369/ft1_filtered_4FGL_J1438.9+3710_daily_bin1752.fits scfile=/scratch/kocevski/266369/ft2_4FGL_J1438.9+3710_daily_bin1752.fits outfile=/scratch/kocevski/266369/cmap_HighResolution_693446401_693705601_4FGL_J1438.9+3710_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.74 yref=37.1752 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.60
user 0.41
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/266369/ft1_filtered_4FGL_J1438.9+3710_daily_bin1752.fits evtable="EVENTS" scfile=/scratch/kocevski/266369/ft2_4FGL_J1438.9+3710_daily_bin1752.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/266369/Model_4FGL_J1438.9+3710_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/266369/ft1_filtered_4FGL_J1438.9+3710_daily_bin1752.fits.....................!
real 46.36
user 44.84
sys 1.39

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/266369/ft1_filtered_4FGL_J1438.9+3710_daily_bin1752.fits', '/scratch/kocevski/266369/ft2_4FGL_J1438.9+3710_daily_bin1752.fits', expMap='/scratch/kocevski/266369/expmap_693446401_693705601_4FGL_J1438.9+3710_daily_bin1752.fits', expCube='/scratch/kocevski/266369/ltcube_693446401_693705601_4FGL_J1438.9+3710_daily_bin1752.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/266369/Model_4FGL_J1438.9+3710_daily_bin1752.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1438.9+3710'

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  4.709e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
283        alpha:  2.310e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
284         beta:  1.080e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
285           Eb:  6.335e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/266369/ft1_filtered_4FGL_J1438.9+3710_daily_bin1752.fits
Spacecraft file(s): /scratch/kocevski/266369/ft2_4FGL_J1438.9+3710_daily_bin1752.fits
Exposure map: /scratch/kocevski/266369/expmap_693446401_693705601_4FGL_J1438.9+3710_daily_bin1752.fits
Exposure cube: /scratch/kocevski/266369/ltcube_693446401_693705601_4FGL_J1438.9+3710_daily_bin1752.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/266369/Model_4FGL_J1438.9+3710_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) = 5324.36994579

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.240       1.0000          .0000       .10000E+07
     2 'norm      '    .30659E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    9.7801       1.0000          .0000       .10000E+07
     4 'norm      '    .67694       1.0000          .0000       .10000E+07
     5 'Prefactor '    .71934E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    53.242       1.0000          .0000       .10000E+07
     7 'Prefactor '    48.571       1.0000          .0000       .10000E+07
     8 'norm      '    4.2802       1.0000          .0000       .10000E+07
     9 'norm      '    .16422E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    36.611       1.0000          .0000       .10000E+07
    11 'norm      '    3.8175       1.0000          .0000       .10000E+07
    12 'Prefactor '    .84616E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .24262E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    4.1172       1.0000          .0000       .10000E+07
    15 'norm      '    2.9479       1.0000          .0000       .10000E+07
    16 'norm      '    1.7402       1.0000          .0000       .10000E+07
    17 'Prefactor '    .31375E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    30.925       1.0000          .0000       .10000E+07
    19 'Prefactor '    .88770       1.0000          .0000       .10000E+07
    20 'Prefactor '    19.985       1.0000          .0000       .10000E+07
    21 'norm      '    .38153       1.0000          .0000       .10000E+07
    22 'Prefactor '    4.9743       1.0000          .0000       .10000E+07
    23 'norm      '    2.9077       1.0000          .0000       .10000E+07
    24 'Normalizat'    .49017       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1523       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5324.368     FROM MIGRAD    STATUS=CONVERGED    167 CALLS     2239 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.281        7.2668       -.15213E-06   -.26806E-02
   2  norm          .14655E-07    8.6265        .61368E-06** at limit **
   3  Prefactor     9.7903        6.5232        .36675E-06    .20431E-01
   4  norm          .68690        3.1143        .75777E-07    .45616E-03
   5  Prefactor     .27200E-08    20.830        .32596E-06** at limit **
   6  Prefactor     53.359        23.913       -.26372E-06   -.46460E-01
   7  Prefactor     48.587        7.4966        .34199E-08   -.79622E-02
   8  norm          4.2574        7.3054       -.31358E-07   -.15034E-01
   9  norm          .32419E-07    7.3972        .10096E-05** at limit **
  10  Prefactor     36.598        3.1230       -.97442E-07    .43126E-01
  11  norm          3.7866        7.8477       -.91139E-07   -.14536E-02
  12  Prefactor     .55511E-10    5.9020        .56709E-06** at limit **
  13  Prefactor     .22204E-09    3.7696       -.43219E-06** at limit **
  14  Prefactor     4.1026        8.6054       -.18942E-06   -.43736E-02
  15  norm          2.9421        1.9802        .14813E-06    .10549E-03
  16  norm          1.7415        2.6068       -.31866E-07   -.23956E-03
  17  Prefactor     .11102E-09    4.0893       -.60590E-06** at limit **
  18  Prefactor     32.034        57.057       -.23978E-05   -.10029    
  19  Prefactor     .58614        69.380        .49455E-05   -.61249E-01
  20  Prefactor     20.093        7.9942       -.60755E-06   -.62132E-02
  21  norm          .38293        1.2889       -.29475E-06   -.21812E-02
  22  Prefactor     4.9610        11.123        .92485E-06    .25812E-01
  23  norm          2.9072        3.2042       -.22897E-06   -.34641E-01
  24  Normalizat    .48973        .22526       -.19152E-06   -.24050E-04
  25  Prefactor     1.1524        .23816       -.60196E-06   -.28890E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.2805
  norm       = 1.46549e-08
  Prefactor  = 9.79029
  norm       = 0.686904
  Prefactor  = 2.72005e-09
  Prefactor  = 53.3591
  Prefactor  = 48.587
  norm       = 4.25744
  norm       = 3.24185e-08
  Prefactor  = 36.5976
  norm       = 3.78661
  Prefactor  = 5.55112e-11
  Prefactor  = 2.22045e-10
  Prefactor  = 4.10259
  norm       = 2.94205
  norm       = 1.74149
  Prefactor  = 1.11022e-10
  Prefactor  = 32.0338
  Prefactor  = 0.586137
  Prefactor  = 20.093
  norm       = 0.382934
  Prefactor  = 4.96104
  norm       = 2.90717
  Normalizat = 0.489734
  Prefactor  = 1.15243
 **********
 **   18 **HESSE 
 **********

 FCN=   5324.368     FROM HESSE     STATUS=OK           489 CALLS     2728 TOTAL
                     EDM=   .49E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.281        7.2962        .29857E-03   -1.5641    
   2  norm          .14655E-07    8.8548        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.7903        15.203        .32018E-03   -1.5645    
   4  norm          .68690        3.2008        .62601E-03   -1.5691    
   5  Prefactor     .27200E-08    20.938        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     53.359        24.206        .13706E-03   -1.5562    
   7  Prefactor     48.587        7.5510        .14350E-03   -1.5569    
   8  norm          4.2574        14.167        .48674E-03   -1.5667    
   9  norm          .32419E-07    7.8532        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     36.598        28.703        .16529E-03   -1.5587    
  11  norm          3.7866        7.8716        .51634E-03   -1.5669    
  12  Prefactor     .55511E-10    5.9099        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .22204E-09    3.7699        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.1026        8.6931        .49656E-03   -1.5667    
  15  norm          2.9421        2.0193        .59126E-03   -1.5674    
  16  norm          1.7415        2.6951        .79500E-03   -1.5682    
  17  Prefactor     .11102E-09    4.0916        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     32.034        69.236        .17985E-03   -1.5595    
  19  Prefactor     .58614        226.29        .46614E-03   -1.5693    
  20  Prefactor     20.093        18.574        .22376E-03   -1.5618    
  21  norm          .38293        2.3985        .91659E-03   -1.5696    
  22  Prefactor     4.9610        18.338        .45067E-03   -1.5663    
  23  norm          2.9072        10.424        .59559E-03   -1.5674    
  24  Normalizat    .48973        .19742        .69928E-01   -1.1289    
  25  Prefactor     1.1524        .20119        .52597E-01   -.87808    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.93806e-06
Minuit parameter uncertainties:
  1  7.29623
  2  0.000720494
  3  15.2033
  4  2.96556
  5  0.000478641
  6  24.2056
  7  7.55103
  8  14.1669
  9  0.00100915
  10  28.703
  11  7.87165
  12  2.64747e-05
  13  5.52838e-05
  14  8.69316
  15  2.01928
  16  2.69513
  17  4.59551e-05
  18  69.2381
  19  23.0343
  20  18.5737
  21  1.91674
  22  18.3383
  23  10.4241
  24  0.197703
  25  0.201324
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  3.242e-08  1.009e-03  0.000e+00  1.000e+06 ( 1.000e-12)
283        alpha:  2.310e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
284         beta:  1.080e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
285           Eb:  6.335e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  1.152e+00  2.013e-01  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  4.897e-01  1.977e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 219.740 37.175
Photon Flux Upper Limit: 6.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.26e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/266369/likelihoodResults_693446401_693705601_4FGL_J1438.9+3710_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) = 5324.28876085
delta logL = 0.0794479095757

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5324.14903863
delta logL = 0.219170125777

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0265       1.0000          .0000       .10000E+07
     2 'alpha     '    .96352       1.0000          .0000       5.0000    
     3 'Normalizat'    .49381       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1434       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5324.149     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      271 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0245        3.0402        .32531E-02    .64805E-02
   2  alpha         .96347        .82647        .50000       -.45601E-04
   3  Normalizat    .49415        .17576        .69608E-01    .15956E-04
   4  Prefactor     1.1433        .19749        .52755E-01   -.63390E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.02455
  alpha      = 0.96347
  Normalizat = 0.494152
  Prefactor  = 1.14328
 **********
 **   18 **HESSE 
 **********

 FCN=   5324.149     FROM HESSE     STATUS=OK            33 CALLS      304 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0245        2.7530        .17481E-03   -1.5688    
   2  alpha         .96347        1.0435        .25203E-01   -.66189    
   3  Normalizat    .49415        .20592        .30813E-03   -1.1269    
   4  Prefactor     1.1433        .23188        .23323E-03   -.88095    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33684e-11
Minuit parameter uncertainties:
  1  2.75299
  2  1.09963
  3  0.206242
  4  0.232089
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/266369': 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) = 5324.14903417
delta logL = 0.219174589292

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  1.025e+00  2.753e+00  0.000e+00  1.000e+06 ( 1.000e-12)
283        alpha:  9.635e-01  1.100e+00  0.000e+00  5.000e+00 ( 1.000e+00)
284         beta:  1.080e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
285           Eb:  6.335e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  1.143e+00  2.321e-01  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  4.942e-01  2.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 219.740 37.175

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/266369/cmap_HighResolution_693446401_693705601_4FGL_J1438.9+3710_daily_bin1752.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.26e-05', job_status='DONE', photon_flux_upper_limit='6.58e-08', time_completed='2022-12-26 01:17:20.040441', job_id='266369', GAL2='1.14', fit_tolerance='1e-08', EG2='0.49', EG='0.49', time_epoch_completed='1672046240.04', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='2.19e-01', ts2='0.44', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1752' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec 26 01:17:20 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 266369: <4FGL_J1438.9+3710_daily_bin1752> in cluster <slac> Done

Job <4FGL_J1438.9+3710_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) <bullet0073>, 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:17:20 2022
Results reported at Mon Dec 26 01:17:20 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin1752 219.74 37.1752 693446401 693705601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1438.9+3710 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   620.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             295.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   708 sec.
    Turnaround time :                            724 sec.

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

