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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin1760
RA = 219.74, Dec = 37.1752
tmin = 695520001, tmax = 695779201
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='740261', job_status='RUN', time_executed='2023-01-19 01:06:37.373495', time_epoch_executed='1674119197.37' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='1760'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/740261

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/740261/ft1_4FGL_J1438.9+3710_daily_bin1760.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/740261/ft2_4FGL_J1438.9+3710_daily_bin1760.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/740261/ft1_4FGL_J1438.9+3710_daily_bin1760.fits outfile=/scratch/kocevski/740261/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin1760.fits ra=219.74 dec=37.1752 rad=12.0 tmin=695520001.0 tmax=695779201.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 2.43
user 2.18
sys 0.21

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

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

Number of photons that the gtmktime cut: 666

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/740261/ft1_filtered_4FGL_J1438.9+3710_daily_bin1760.fits" evtable="EVENTS" scfile=/scratch/kocevski/740261/ft2_4FGL_J1438.9+3710_daily_bin1760.fits sctable="SC_DATA" outfile=/scratch/kocevski/740261/ltcube_695520001_695779201_4FGL_J1438.9+3710_daily_bin1760.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/740261/ft2_4FGL_J1438.9+3710_daily_bin1760.fits
.....................!
real 14.95
user 14.43
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/740261/ft1_filtered_4FGL_J1438.9+3710_daily_bin1760.fits evtable="EVENTS" scfile=/scratch/kocevski/740261/ft2_4FGL_J1438.9+3710_daily_bin1760.fits sctable="SC_DATA" expcube=/scratch/kocevski/740261/ltcube_695520001_695779201_4FGL_J1438.9+3710_daily_bin1760.fits outfile=/scratch/kocevski/740261/expmap_695520001_695779201_4FGL_J1438.9+3710_daily_bin1760.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/740261/ltcube_695520001_695779201_4FGL_J1438.9+3710_daily_bin1760.fits
.....................!
real 194.28
user 186.22
sys 5.86

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/740261/ft1_filtered_4FGL_J1438.9+3710_daily_bin1760.fits scfile=/scratch/kocevski/740261/ft2_4FGL_J1438.9+3710_daily_bin1760.fits outfile=/scratch/kocevski/740261/cmap_695520001_695779201_4FGL_J1438.9+3710_daily_bin1760.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.61
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/740261/ft1_filtered_4FGL_J1438.9+3710_daily_bin1760.fits scfile=/scratch/kocevski/740261/ft2_4FGL_J1438.9+3710_daily_bin1760.fits outfile=/scratch/kocevski/740261/cmap_HighResolution_695520001_695779201_4FGL_J1438.9+3710_daily_bin1760.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20711E-06   1.0000          .0000       .10000E+07
     2 'norm      '    .77432E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    13.178       1.0000          .0000       .10000E+07
     4 'norm      '    .21427E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    .26280E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .50626E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    14.946       1.0000          .0000       .10000E+07
     8 'norm      '    .36506E-03   1.0000          .0000       .10000E+07
     9 'norm      '    .14975E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    71.616       1.0000          .0000       .10000E+07
    11 'norm      '    4.0478       1.0000          .0000       .10000E+07
    12 'Prefactor '    .35305E-07   1.0000          .0000       .10000E+07
    13 'Prefactor '    .16603E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    .20139E-03   1.0000          .0000       .10000E+07
    15 'norm      '    2.1265       1.0000          .0000       .10000E+07
    16 'norm      '    .20722E-06   1.0000          .0000       .10000E+07
    17 'Prefactor '    .12304E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    .19188E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    9.8430       1.0000          .0000       .10000E+07
    20 'Prefactor '    14.470       1.0000          .0000       .10000E+07
    21 'norm      '    .44409E-09   1.0000          .0000       .10000E+07
    22 'Prefactor '    .86944E-04   1.0000          .0000       .10000E+07
    23 'norm      '    .42916E-04   1.0000          .0000       .10000E+07
    24 'Normalizat'    .82048       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1021       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=   7385.920     FROM MIGRAD    STATUS=CONVERGED    136 CALLS     1641 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22204E-09    2.1773       -.49106E-07** at limit **
   2  norm          .10603E-07    2.2758       -.10213E-05** at limit **
   3  Prefactor     13.263        3.0918        .52431E-06   -.34084E-01
   4  norm          .11952E-06    4.5838       -.18552E-05** at limit **
   5  Prefactor     .71609E-08    2.2957       -.89937E-06** at limit **
   6  Prefactor     .13045E-07    1.9453       -.10184E-06** at limit **
   7  Prefactor     14.950        4.5959       -.10415E-07   -.10298E-01
   8  norm          .34417E-08    4.4763        .18249E-05** at limit **
   9  norm          .59952E-08    1.8006       -.95843E-06** at limit **
  10  Prefactor     71.731        1.2300        .53575E-07   -.26513E-01
  11  norm          4.0448        4.8171       -.67812E-07   -.45913E-02
  12  Prefactor      .0000        12.121        .61605E-06** at limit **
  13  Prefactor     .86375E-07    4.9626       -.19390E-06** at limit **
  14  Prefactor     .55511E-10    2.8938        .11569E-06** at limit **
  15  norm          2.1266        1.2447        .49916E-07    .24374E-01
  16  norm           .0000        1.0017       -.29932E-07** at limit **
  17  Prefactor     .55511E-10    2.2971       -.90009E-08** at limit **
  18  Prefactor     .52180E-08    30.527       -.49086E-06** at limit **
  19  Prefactor     9.8378        1.2988        .14126E-07    .21639E-02
  20  Prefactor     14.472        1.4595        .13923E-06   -.35126E-02
  21  norm           .0000        .38188       -.10698E-07** at limit **
  22  Prefactor     .27756E-08    3.6599        .17170E-05** at limit **
  23  norm          .12768E-08    1.6049        .76092E-07** at limit **
  24  Normalizat    .82025        .17338       -.14897E-05   -.20386E-03
  25  Prefactor     1.1021        .18832       -.39057E-06   -.40617E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.22045e-10
  norm       = 1.06026e-08
  Prefactor  = 13.2633
  norm       = 1.19516e-07
  Prefactor  = 7.16094e-09
  Prefactor  = 1.30451e-08
  Prefactor  = 14.9496
  norm       = 3.44169e-09
  norm       = 5.9952e-09
  Prefactor  = 71.7313
  norm       = 4.04479
  Prefactor  = 0
  Prefactor  = 8.63754e-08
  Prefactor  = 5.55112e-11
  norm       = 2.12657
  norm       = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 5.21805e-09
  Prefactor  = 9.83783
  Prefactor  = 14.4716
  norm       = 0
  Prefactor  = 2.77556e-09
  norm       = 1.27676e-09
  Normalizat = 0.820249
  Prefactor  = 1.10214
 **********
 **   18 **HESSE 
 **********

 FCN=   7385.920     FROM HESSE     STATUS=OK           469 CALLS     2110 TOTAL
                     EDM=   .79E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22204E-09    2.1761        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10603E-07    4.7800        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.263        19.962        .27567E-03   -1.5635    
   4  norm          .11952E-06    9.3249        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .71609E-08    3.6172        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .13045E-07    5.3859        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.950        4.6111        .25881E-03   -1.5631    
   8  norm          .34417E-08    5.9320        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .59952E-08    4.9216        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     71.731        31.093        .11817E-03   -1.5539    
  11  norm          4.0448        4.8196        .50094E-03   -1.5668    
  12  Prefactor      .0000        12.228        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .86375E-07    7.9725        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .55511E-10    2.8940        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.1266        1.2510        .70682E-03   -1.5679    
  16  norm           .0000        .99750        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .55511E-10    2.2975        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .52180E-08    30.545        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.8378        14.641        .31915E-03   -1.5645    
  20  Prefactor     14.472        11.980        .26304E-03   -1.5632    
  21  norm           .0000        .37513        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .27756E-08    4.1073        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .12768E-08    3.6307        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .82025        .15237        .43877E-01   -.99322    
  25  Prefactor     1.1021        .15976        .54117E-01   -.89398    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.86009e-08
Minuit parameter uncertainties:
  1  4.2327e-05
  2  0.000449894
  3  19.9622
  4  0.00211129
  5  0.000322118
  6  0.000530248
  7  4.6111
  8  0.000284832
  9  0.000343408
  10  31.0929
  11  4.81955
  12  5.91737e-06
  13  0.00165942
  14  2.00246e-05
  15  1.25103
  16  1.02919e-05
  17  1.69207e-05
  18  0.000799061
  19  14.6407
  20  11.9798
  21  1.32982e-06
  22  0.000213482
  23  0.000135877
  24  0.152447
  25  0.159828
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  5.995e-09  3.434e-04  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.102e+00  1.598e-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:  8.202e-01  1.524e-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: 5.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.90e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/740261/likelihoodResults_695520001_695779201_4FGL_J1438.9+3710_daily_bin1760.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) = 7386.02530801
delta logL = -0.105311312982

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7385.91999778
delta logL = -1.08409039967e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .40262E-06   1.0000          .0000       .10000E+07
     2 'alpha     '    4.2066       1.0000          .0000       5.0000    
     3 'Normalizat'    .82048       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1019       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=   7385.920     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      212 TOTAL
                     EDM=   .63E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        6.8350        .53332E-06** at limit **
   2  alpha         2.5510        1.8212        .76531E-04     .0000    
   3  Normalizat    .82025        .17045       -.11823E-04    .36536E-03
   4  Prefactor     1.1021        .18860        .97772E-05    .34447E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 2.55095
  Normalizat = 0.820248
  Prefactor  = 1.10214
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7385.920     FROM HESSE     STATUS=FAILED         9 CALLS      221 TOTAL
                     EDM=   .63E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        6.7980        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3243        1.4950        .76531E-04    .20383E-01
   3  Normalizat    .82025        1.1586       -.11823E-04   -.99322    
   4  Prefactor     1.1021        1.1475        .97772E-05   -.89398    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 6.30435e-11
Minuit parameter uncertainties:
  1  1.66554e-05
  2  1.60257
  3  1.19663
  4  1.17483
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/740261': 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): 101
logL (Free Index) = 7385.9199967
delta logL = 6.52107701171e-10

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  0.000e+00  1.666e-05  0.000e+00  1.000e+06 ( 1.000e-12)
283        alpha:  2.551e+00  1.603e+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.102e+00  1.175e+00  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:  8.202e-01  1.197e+00  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/740261/cmap_HighResolution_695520001_695779201_4FGL_J1438.9+3710_daily_bin1760.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.90e-05', job_status='DONE', photon_flux_upper_limit='5.54e-08', time_completed='2023-01-19 01:17:01.019286', job_id='740261', GAL2='1.10', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1674119821.02', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='6.52e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1760' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jan 19 01:17:01 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 740261: <4FGL_J1438.9+3710_daily_bin1760> in cluster <slac> Done

Job <4FGL_J1438.9+3710_daily_bin1760> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Jan 19 01:05:24 2023
Job was executed on host(s) <bullet0162>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jan 19 01:05:45 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jan 19 01:05:45 2023
Terminated at Thu Jan 19 01:17:01 2023
Results reported at Thu Jan 19 01:17:01 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin1760 219.74 37.1752 695520001 695779201 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.56 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             362.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   676 sec.
    Turnaround time :                            697 sec.

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

