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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin1777
RA = 219.74, Dec = 37.1752
tmin = 699926401, tmax = 700185601
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='916974', job_status='RUN', time_executed='2023-03-11 00:52:33.438609', time_epoch_executed='1678524753.44' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='1777'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/916974

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/916974/ft1_4FGL_J1438.9+3710_daily_bin1777.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/916974/ft2_4FGL_J1438.9+3710_daily_bin1777.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/916974/ft1_4FGL_J1438.9+3710_daily_bin1777.fits outfile=/scratch/kocevski/916974/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin1777.fits ra=219.74 dec=37.1752 rad=12.0 tmin=699926401.0 tmax=700185601.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.61
user 3.39
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/916974/ft2_4FGL_J1438.9+3710_daily_bin1777.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/916974/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin1777.fits evtable="EVENTS" outfile="/scratch/kocevski/916974/ft1_filtered_4FGL_J1438.9+3710_daily_bin1777.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.33
sys 0.15

Number of photons that the gtmktime cut: 584

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/916974/ft1_filtered_4FGL_J1438.9+3710_daily_bin1777.fits" evtable="EVENTS" scfile=/scratch/kocevski/916974/ft2_4FGL_J1438.9+3710_daily_bin1777.fits sctable="SC_DATA" outfile=/scratch/kocevski/916974/ltcube_699926401_700185601_4FGL_J1438.9+3710_daily_bin1777.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/916974/ft2_4FGL_J1438.9+3710_daily_bin1777.fits
.....................!
real 12.73
user 12.37
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/916974/ft1_filtered_4FGL_J1438.9+3710_daily_bin1777.fits evtable="EVENTS" scfile=/scratch/kocevski/916974/ft2_4FGL_J1438.9+3710_daily_bin1777.fits sctable="SC_DATA" expcube=/scratch/kocevski/916974/ltcube_699926401_700185601_4FGL_J1438.9+3710_daily_bin1777.fits outfile=/scratch/kocevski/916974/expmap_699926401_700185601_4FGL_J1438.9+3710_daily_bin1777.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/916974/ltcube_699926401_700185601_4FGL_J1438.9+3710_daily_bin1777.fits
.....................!
real 191.18
user 186.17
sys 4.65

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/916974/ft1_filtered_4FGL_J1438.9+3710_daily_bin1777.fits scfile=/scratch/kocevski/916974/ft2_4FGL_J1438.9+3710_daily_bin1777.fits outfile=/scratch/kocevski/916974/cmap_699926401_700185601_4FGL_J1438.9+3710_daily_bin1777.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/916974/ft1_filtered_4FGL_J1438.9+3710_daily_bin1777.fits scfile=/scratch/kocevski/916974/ft2_4FGL_J1438.9+3710_daily_bin1777.fits outfile=/scratch/kocevski/916974/cmap_HighResolution_699926401_700185601_4FGL_J1438.9+3710_daily_bin1777.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.58
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/916974/ft1_filtered_4FGL_J1438.9+3710_daily_bin1777.fits evtable="EVENTS" scfile=/scratch/kocevski/916974/ft2_4FGL_J1438.9+3710_daily_bin1777.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/916974/Model_4FGL_J1438.9+3710_daily_bin1777.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/916974/ft1_filtered_4FGL_J1438.9+3710_daily_bin1777.fits.....................!
real 50.12
user 48.82
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/916974/ft1_filtered_4FGL_J1438.9+3710_daily_bin1777.fits', '/scratch/kocevski/916974/ft2_4FGL_J1438.9+3710_daily_bin1777.fits', expMap='/scratch/kocevski/916974/expmap_699926401_700185601_4FGL_J1438.9+3710_daily_bin1777.fits', expCube='/scratch/kocevski/916974/ltcube_699926401_700185601_4FGL_J1438.9+3710_daily_bin1777.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/916974/Model_4FGL_J1438.9+3710_daily_bin1777.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/916974/ft1_filtered_4FGL_J1438.9+3710_daily_bin1777.fits
Spacecraft file(s): /scratch/kocevski/916974/ft2_4FGL_J1438.9+3710_daily_bin1777.fits
Exposure map: /scratch/kocevski/916974/expmap_699926401_700185601_4FGL_J1438.9+3710_daily_bin1777.fits
Exposure cube: /scratch/kocevski/916974/ltcube_699926401_700185601_4FGL_J1438.9+3710_daily_bin1777.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/916974/Model_4FGL_J1438.9+3710_daily_bin1777.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) = 6550.98260671

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.350       1.0000          .0000       .10000E+07
     2 'norm      '    7.4423       1.0000          .0000       .10000E+07
     3 'Prefactor '    17.289       1.0000          .0000       .10000E+07
     4 'norm      '    .22720E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .62816E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .32183E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    17.006       1.0000          .0000       .10000E+07
     8 'norm      '    .88986E-04   1.0000          .0000       .10000E+07
     9 'norm      '    .41724E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    76.662       1.0000          .0000       .10000E+07
    11 'norm      '    .54985E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    27.460       1.0000          .0000       .10000E+07
    13 'Prefactor '    .11381E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    5.5267       1.0000          .0000       .10000E+07
    15 'norm      '    4.1969       1.0000          .0000       .10000E+07
    16 'norm      '    .17677E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    6.8904       1.0000          .0000       .10000E+07
    18 'Prefactor '    .14526E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .45928E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    .13466E-05   1.0000          .0000       .10000E+07
    21 'norm      '    1.9498       1.0000          .0000       .10000E+07
    22 'Prefactor '    .71191E-03   1.0000          .0000       .10000E+07
    23 'norm      '    21.350       1.0000          .0000       .10000E+07
    24 'Normalizat'    .63511       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1976       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=   6550.948     FROM MIGRAD    STATUS=CONVERGED    157 CALLS     2092 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.349        7.5271       -.43989E-08   -.17973E-02
   2  norm          7.4943        1.4469        .12862E-06   -.35114E-02
   3  Prefactor     17.986        20.740        .84944E-06   -.43297E-02
   4  norm           .0000        1.4063       -.83478E-07** at limit **
   5  Prefactor     .15488E-07    2.3256       -.20295E-06** at limit **
   6  Prefactor     .23315E-08    8.7330       -.39254E-06** at limit **
   7  Prefactor     16.970        5.6197        .32820E-07    .43297E-03
   8  norm          .48295E-08    6.1842       -.10968E-05** at limit **
   9  norm          .55511E-10    2.6290        .34200E-06** at limit **
  10  Prefactor     77.885        14.110        .37527E-06   -.93050E-01
  11  norm          .26090E-08    3.4627       -.55619E-06** at limit **
  12  Prefactor     27.507        1.6108        .53243E-07   -.53653E-02
  13  Prefactor     .38858E-09    3.3793        .74649E-06** at limit **
  14  Prefactor     5.5789        4.1263        .15399E-07   -.22440E-02
  15  norm          4.2026        1.8494       -.75296E-07    .20317E-03
  16  norm          .88818E-09    3.9324        .79299E-06** at limit **
  17  Prefactor     7.0105        6.9090        .27251E-06    .15403E-02
  18  Prefactor     .15321E-07    30.631        .34229E-08** at limit **
  19  Prefactor     .13878E-08    4.4145        .69996E-06** at limit **
  20  Prefactor     .15772E-05    62.160       -.23881E-05** at limit **
  21  norm          1.9526        1.1630       -.65439E-07    .96603E-03
  22  Prefactor     .10492E-07    4.2671       -.14953E-05** at limit **
  23  norm          21.340        4.9401        .18290E-06   -.59843E-01
  24  Normalizat    .63246        .20635       -.61328E-05    .50702E-04
  25  Prefactor     1.1985        .21275        .39268E-05    .22050E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.3491
  norm       = 7.49425
  Prefactor  = 17.9862
  norm       = 0
  Prefactor  = 1.54876e-08
  Prefactor  = 2.33147e-09
  Prefactor  = 16.9696
  norm       = 4.82947e-09
  norm       = 5.55112e-11
  Prefactor  = 77.8855
  norm       = 2.60902e-09
  Prefactor  = 27.5066
  Prefactor  = 3.88578e-10
  Prefactor  = 5.57894
  norm       = 4.20261
  norm       = 8.88178e-10
  Prefactor  = 7.01049
  Prefactor  = 1.53211e-08
  Prefactor  = 1.38778e-09
  Prefactor  = 1.57724e-06
  norm       = 1.95262
  Prefactor  = 1.04916e-08
  norm       = 21.3398
  Normalizat = 0.63246
  Prefactor  = 1.19848
 **********
 **   18 **HESSE 
 **********

 FCN=   6550.948     FROM HESSE     STATUS=OK           477 CALLS     2569 TOTAL
                     EDM=   .29E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.349        7.5519        .26414E-03   -1.5632    
   2  norm          7.4943        13.070        .36740E-03   -1.5653    
   3  Prefactor     17.986        21.143        .24060E-03   -1.5623    
   4  norm           .0000        1.4095        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .15488E-07    5.4363        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .23315E-08    8.7740        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.970        5.6423        .24260E-03   -1.5626    
   8  norm          .48295E-08    6.5124        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .55511E-10    2.7565        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     77.885        40.304        .11422E-03   -1.5531    
  11  norm          .26090E-08    3.5249        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     27.507        13.810        .19086E-03   -1.5603    
  13  Prefactor     .38858E-09    3.3946        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.5789        8.1207        .42714E-03   -1.5661    
  15  norm          4.2026        1.8634        .49169E-03   -1.5667    
  16  norm          .88818E-09    3.9397        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.0105        7.8954        .38197E-03   -1.5655    
  18  Prefactor     .15321E-07    30.841        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .13878E-08    5.7843        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .15772E-05    69.358        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.9526        1.1677        .74292E-03   -1.5680    
  22  Prefactor     .10492E-07    5.0594        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          21.340        17.685        .21648E-03   -1.5616    
  24  Normalizat    .63246        .17907        .66228E-01   -1.0662    
  25  Prefactor     1.1985        .17899        .53967E-01   -.86378    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86383e-07
Minuit parameter uncertainties:
  1  7.55187
  2  13.0697
  3  21.143
  4  5.33041e-06
  5  0.000580759
  6  0.00028454
  7  5.64229
  8  0.000353769
  9  1.84905e-05
  10  40.3038
  11  0.000192536
  12  13.8098
  13  7.27142e-05
  14  8.12072
  15  1.86338
  16  0.00011683
  17  7.89542
  18  0.00137397
  19  0.00017902
  20  0.0209188
  21  1.16767
  22  0.000461168
  23  17.6848
  24  0.17923
  25  0.179081
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  5.551e-11  1.849e-05  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.198e+00  1.791e-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:  6.325e-01  1.792e-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: 4.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.66e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/916974/likelihoodResults_699926401_700185601_4FGL_J1438.9+3710_daily_bin1777.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) = 6550.94829359
delta logL = -0.000754014756239

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6550.94754349
delta logL = -3.92101173929e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13229E-05   1.0000          .0000       .10000E+07
     2 'alpha     '    .85981       1.0000          .0000       5.0000    
     3 'Normalizat'    .63213       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1990       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=   6550.948     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      325 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .49960E-09    30.718        .18511E-02** at limit **
   2  alpha         4.7609        3.5125        .51000        .37004E-09
   3  Normalizat    .63246        .18195        .66229E-01   -.59003E-03
   4  Prefactor     1.1985        .91540E-01    .53967E-01   -.45896E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.996e-10
  alpha      = 4.76086
  Normalizat = 0.632455
  Prefactor  = 1.19848
 **********
 **   18 **HESSE 
 **********

 FCN=   6550.948     FROM HESSE     STATUS=OK            27 CALLS      352 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .49960E-09    .77400        .63775E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         4.7609        3.4687        .50000        1.1298    
   3  Normalizat    .63246        .18930        .29307E-03   -1.0662    
   4  Prefactor     1.1985        .20766        .23861E-03   -.86378    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32783e-09
Minuit parameter uncertainties:
  1  4.01708e-05
  2  1.06708
  3  0.189492
  4  0.2078
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/916974': 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) = 6550.94753957
delta logL = -6.60293153487e-10

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  4.996e-10  4.017e-05  0.000e+00  1.000e+06 ( 1.000e-12)
283        alpha:  4.761e+00  1.067e+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.198e+00  2.078e-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:  6.325e-01  1.895e-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/916974/cmap_HighResolution_699926401_700185601_4FGL_J1438.9+3710_daily_bin1777.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.66e-05', job_status='DONE', photon_flux_upper_limit='4.84e-08', time_completed='2023-03-11 01:03:28.633670', job_id='916974', GAL2='1.20', fit_tolerance='1e-08', EG2='0.63', EG='0.63', time_epoch_completed='1678525408.63', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='-6.60e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1777' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Mar 11 01:03:28 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0179>
Subject: Job 916974: <4FGL_J1438.9+3710_daily_bin1777> in cluster <slac> Done

Job <4FGL_J1438.9+3710_daily_bin1777> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Mar 11 00:50:16 2023
Job was executed on host(s) <bullet0179>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Mar 11 00:50:17 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Mar 11 00:50:17 2023
Terminated at Sat Mar 11 01:03:29 2023
Results reported at Sat Mar 11 01:03:29 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin1777 219.74 37.1752 699926401 700185601 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 :                                   657.02 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             295.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   791 sec.
    Turnaround time :                            793 sec.

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

