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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin1774
RA = 219.74, Dec = 37.1752
tmin = 699148801, tmax = 699408001
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='685346', job_status='RUN', time_executed='2023-03-02 00:55:52.257982', time_epoch_executed='1677747352.26' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='1774'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/685346

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/685346/ft1_4FGL_J1438.9+3710_daily_bin1774.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/685346/ft2_4FGL_J1438.9+3710_daily_bin1774.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/685346/ft1_4FGL_J1438.9+3710_daily_bin1774.fits outfile=/scratch/kocevski/685346/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin1774.fits ra=219.74 dec=37.1752 rad=12.0 tmin=699148801.0 tmax=699408001.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.84
user 2.62
sys 0.19

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

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

Number of photons that the gtmktime cut: 534

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/685346/ft1_filtered_4FGL_J1438.9+3710_daily_bin1774.fits" evtable="EVENTS" scfile=/scratch/kocevski/685346/ft2_4FGL_J1438.9+3710_daily_bin1774.fits sctable="SC_DATA" outfile=/scratch/kocevski/685346/ltcube_699148801_699408001_4FGL_J1438.9+3710_daily_bin1774.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/685346/ft2_4FGL_J1438.9+3710_daily_bin1774.fits
.....................!
real 12.38
user 12.03
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/685346/ft1_filtered_4FGL_J1438.9+3710_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/685346/ft2_4FGL_J1438.9+3710_daily_bin1774.fits sctable="SC_DATA" expcube=/scratch/kocevski/685346/ltcube_699148801_699408001_4FGL_J1438.9+3710_daily_bin1774.fits outfile=/scratch/kocevski/685346/expmap_699148801_699408001_4FGL_J1438.9+3710_daily_bin1774.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/685346/ltcube_699148801_699408001_4FGL_J1438.9+3710_daily_bin1774.fits
.....................!
real 189.54
user 184.74
sys 4.47

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/685346/ft1_filtered_4FGL_J1438.9+3710_daily_bin1774.fits scfile=/scratch/kocevski/685346/ft2_4FGL_J1438.9+3710_daily_bin1774.fits outfile=/scratch/kocevski/685346/cmap_699148801_699408001_4FGL_J1438.9+3710_daily_bin1774.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/685346/ft1_filtered_4FGL_J1438.9+3710_daily_bin1774.fits scfile=/scratch/kocevski/685346/ft2_4FGL_J1438.9+3710_daily_bin1774.fits outfile=/scratch/kocevski/685346/cmap_HighResolution_699148801_699408001_4FGL_J1438.9+3710_daily_bin1774.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.54
user 0.40
sys 0.13

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/685346/ft1_filtered_4FGL_J1438.9+3710_daily_bin1774.fits', '/scratch/kocevski/685346/ft2_4FGL_J1438.9+3710_daily_bin1774.fits', expMap='/scratch/kocevski/685346/expmap_699148801_699408001_4FGL_J1438.9+3710_daily_bin1774.fits', expCube='/scratch/kocevski/685346/ltcube_699148801_699408001_4FGL_J1438.9+3710_daily_bin1774.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/685346/Model_4FGL_J1438.9+3710_daily_bin1774.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/685346/ft1_filtered_4FGL_J1438.9+3710_daily_bin1774.fits
Spacecraft file(s): /scratch/kocevski/685346/ft2_4FGL_J1438.9+3710_daily_bin1774.fits
Exposure map: /scratch/kocevski/685346/expmap_699148801_699408001_4FGL_J1438.9+3710_daily_bin1774.fits
Exposure cube: /scratch/kocevski/685346/ltcube_699148801_699408001_4FGL_J1438.9+3710_daily_bin1774.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/685346/Model_4FGL_J1438.9+3710_daily_bin1774.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5876.6203671

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6011       1.0000          .0000       .10000E+07
     2 'norm      '    21.345       1.0000          .0000       .10000E+07
     3 'Prefactor '    .90665       1.0000          .0000       .10000E+07
     4 'norm      '    .17062E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    22.851       1.0000          .0000       .10000E+07
     6 'Prefactor '    .80920E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .57554       1.0000          .0000       .10000E+07
     8 'norm      '    .84703E-04   1.0000          .0000       .10000E+07
     9 'norm      '    3.9138       1.0000          .0000       .10000E+07
    10 'Prefactor '    160.43       1.0000          .0000       .10000E+07
    11 'norm      '    .20160E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    29.506       1.0000          .0000       .10000E+07
    13 'Prefactor '    7.9637       1.0000          .0000       .10000E+07
    14 'Prefactor '    .10438E-04   1.0000          .0000       .10000E+07
    15 'norm      '    .93329E-05   1.0000          .0000       .10000E+07
    16 'norm      '    2.8203       1.0000          .0000       .10000E+07
    17 'Prefactor '    .29301E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .32186E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    .33514E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .17802E-04   1.0000          .0000       .10000E+07
    21 'norm      '    2.4065       1.0000          .0000       .10000E+07
    22 'Prefactor '    .14267E-03   1.0000          .0000       .10000E+07
    23 'norm      '    .31324E-03   1.0000          .0000       .10000E+07
    24 'Normalizat'    1.0357       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .82864       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=   5876.569     FROM MIGRAD    STATUS=CONVERGED    195 CALLS     1739 TOTAL
                     EDM=   .48E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6087        8.1544       -.34951E-07   -.24630E-02
   2  norm          21.401        2.7832       -.69949E-09   -.32833E-02
   3  Prefactor     .96865        1.3757        .26500E-07   -.19718E-01
   4  norm           .0000        1.6196       -.81325E-07** at limit **
   5  Prefactor     22.994        14.189        .19920E-07    .23517E-02
   6  Prefactor     .33307E-09    11.027       -.84581E-07** at limit **
   7  Prefactor     .57330        2.0698        .20481E-07   -.10211E-03
   8  norm          .14988E-08    12.843       -.93733E-07** at limit **
   9  norm          3.8955        4.9620       -.14481E-06    .57431E-03
  10  Prefactor     162.87        48.275        .70039E-07    .44024E-02
  11  norm           .0000        3.3404        .32730E-07** at limit **
  12  Prefactor     29.395        2.3601       -.98153E-08   -.31248E-02
  13  Prefactor     7.9803        6.5735       -.34153E-07    .28579E-04
  14  Prefactor      .0000        2.7362       -.84597E-07** at limit **
  15  norm           .0000        2.0361       -.26856E-07** at limit **
  16  norm          2.8224        2.8185       -.13185E-07    .10412E-03
  17  Prefactor      .0000        2.3686       -.26533E-07** at limit **
  18  Prefactor      .0000        22.896       -.17536E-06** at limit **
  19  Prefactor     .49960E-09    15.326       -.20034E-06** at limit **
  20  Prefactor      .0000        4.3956        .46004E-07** at limit **
  21  norm          2.4079        1.0801       -.71052E-08    .49812E-03
  22  Prefactor      .0000        3.1782        .77926E-07** at limit **
  23  norm          .22760E-08    46.358       -.43724E-06** at limit **
  24  Normalizat    1.0338        .20732        .11627E-05    .94890E-05
  25  Prefactor     .82955        .21413       -.16738E-05    .14812E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.60869
  norm       = 21.4012
  Prefactor  = 0.968655
  norm       = 0
  Prefactor  = 22.9939
  Prefactor  = 3.33067e-10
  Prefactor  = 0.573302
  norm       = 1.4988e-09
  norm       = 3.89555
  Prefactor  = 162.869
  norm       = 0
  Prefactor  = 29.3948
  Prefactor  = 7.98035
  Prefactor  = 0
  norm       = 0
  norm       = 2.82237
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 4.996e-10
  Prefactor  = 0
  norm       = 2.40794
  Prefactor  = 0
  norm       = 2.27596e-09
  Normalizat = 1.03378
  Prefactor  = 0.829548
 **********
 **   18 **HESSE 
 **********

 FCN=   5876.569     FROM HESSE     STATUS=OK           479 CALLS     2218 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6087        8.1795        .42424E-03   -1.5661    
   2  norm          21.401        17.477        .21651E-03   -1.5615    
   3  Prefactor     .96865        73.061        .45302E-03   -1.5688    
   4  norm           .0000        1.6172        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     22.994        14.364        .20925E-03   -1.5612    
   6  Prefactor     .33307E-09    11.041        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .57330        2.0955        .71448E-03   -1.5693    
   8  norm          .14988E-08    12.883        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.8955        4.9852        .50972E-03   -1.5668    
  10  Prefactor     162.87        48.186        .78956E-04   -1.5453    
  11  norm           .0000        3.3396        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     29.395        16.897        .18413E-03   -1.5600    
  13  Prefactor     7.9803        6.8415        .35506E-03   -1.5651    
  14  Prefactor      .0000        2.7350        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        .90769        .24155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.8224        2.8304        .60538E-03   -1.5674    
  17  Prefactor      .0000        2.3748        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        22.870        .16337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .49960E-09    15.446        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        4.3970        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.4079        1.0838        .65971E-03   -1.5677    
  22  Prefactor      .0000        3.1783        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .22760E-08    45.906        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0338        .18207        .41632E-01   -.91907    
  25  Prefactor     .82955        .18400        .44089E-01   -.98648    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22154e-07
Minuit parameter uncertainties:
  1  8.17954
  2  17.4767
  3  16.8253
  4  2.32006e-06
  5  14.3636
  6  0.0001216
  7  2.09546
  8  0.000276784
  9  4.98519
  10  48.1857
  11  1.13883e-06
  12  16.8972
  13  6.84152
  14  4.09035e-07
  15  2.42282e-07
  16  2.83037
  17  6.73374e-07
  18  2.07297e-05
  19  0.000179912
  20  6.26277e-06
  21  1.08376
  22  4.50629e-06
  23  0.000645315
  24  0.182177
  25  0.184134
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  3.896e+00  4.985e+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

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  8.295e-01  1.841e-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:  1.034e+00  1.822e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.13
Ra Dec: 219.740 37.175
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 1.76e-08 +/- 2.26e-08
Energy Flux (Fixed Index): 6.05e-06 +/- 7.74e-06

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

Saving results to:
/scratch/kocevski/685346/likelihoodResults_699148801_699408001_4FGL_J1438.9+3710_daily_bin1774.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) = 5876.11489891
delta logL = 0.453772324207

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5876.10300202
delta logL = 0.465669220601

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3014       1.0000          .0000       .10000E+07
     2 'alpha     '    1.3529       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0494       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81704       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=   5876.103     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      204 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3042        3.7137        .55694E-03    .14725E-02
   2  alpha         1.3524        .55618        .48706       -.56847E-04
   3  Normalizat    1.0491        .17300        .40594E-01    .15676E-03
   4  Prefactor     .81743        .18363        .43939E-01   -.23767E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.30416
  alpha      = 1.35239
  Normalizat = 1.04913
  Prefactor  = 0.817429
 **********
 **   18 **HESSE 
 **********

 FCN=   5876.103     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3042        4.4994        .15258E-04   -1.5672    
   2  alpha         1.3524        .81086        .18930E-01   -.47692    
   3  Normalizat    1.0491        .20035        .23058E-03   -.91402    
   4  Prefactor     .81743        .21262        .27242E-03   -.99089    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.30607e-10
Minuit parameter uncertainties:
  1  4.49944
  2  0.830044
  3  0.200491
  4  0.21283
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/685346': 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) = 5876.1029993
delta logL = 0.4656719354

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  3.304e+00  4.499e+00  0.000e+00  1.000e+06 ( 1.000e-12)
283        alpha:  1.352e+00  8.300e-01  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:  8.174e-01  2.128e-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:  1.049e+00  2.005e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.05
Ra Dec: 219.740 37.175
Photon Index (Free Index): 1.35 +/- 0.83
Photon Flux (Free Index): 8.11e-09 +/- 1.13e-08
Energy Flux (Free Index): 1.55e-05 +/- 2.59e-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/685346/cmap_HighResolution_699148801_699408001_4FGL_J1438.9+3710_daily_bin1774.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.72e-05', comment='SUCCESS', photon_flux='1.76e-08', energy_flux2='1.55e-05', photon_flux_error='2.26e-08', dlogl='4.66e-01', energy_flux='6.05e-06', photon_flux2='8.11e-09', job_status='DONE', time_completed='2023-03-02 01:05:20.952378', photon_index_error2='0.83', photon_index2='1.35', ts='1.13', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='7.95e-08', energy_flux_error2='2.59e-05', EG='1.03', time_epoch_completed='1677747920.95', return_code='0', job_id='685346', GAL2='0.82', EG2='1.05', return_code2='0', energy_flux_error='7.74e-06', photon_flux_error2='1.13e-08', ts2='2.05', photon_index='2.31' WHERE bin_id='1774' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar  2 01:05:20 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 685346: <4FGL_J1438.9+3710_daily_bin1774> in cluster <slac> Done

Job <4FGL_J1438.9+3710_daily_bin1774> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Mar  2 00:55:15 2023
Job was executed on host(s) <bullet0128>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar  2 00:55:17 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar  2 00:55:17 2023
Terminated at Thu Mar  2 01:05:21 2023
Results reported at Thu Mar  2 01:05:21 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin1774 219.74 37.1752 699148801 699408001 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 :                                   569.45 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             344.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   604 sec.
    Turnaround time :                            606 sec.

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

