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


Performing analysis on: 4FGL_J1438.9+3710_daily_bin1755
RA = 219.74, Dec = 37.1752
tmin = 694224001, tmax = 694483201
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='826793', job_status='RUN', time_executed='2023-01-04 01:11:44.688180', time_epoch_executed='1672823504.69' WHERE source_name='4FGL J1438.9+3710' and cadence='daily' and bin_id='1755'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/826793

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/826793/ft1_4FGL_J1438.9+3710_daily_bin1755.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/826793/ft2_4FGL_J1438.9+3710_daily_bin1755.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/826793/ft1_4FGL_J1438.9+3710_daily_bin1755.fits outfile=/scratch/kocevski/826793/ft1_filteredMKT_4FGL_J1438.9+3710_daily_bin1755.fits ra=219.74 dec=37.1752 rad=12.0 tmin=694224001.0 tmax=694483201.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.19
user 2.86
sys 0.25

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

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

Number of photons that the gtmktime cut: 899

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/826793/ft1_filtered_4FGL_J1438.9+3710_daily_bin1755.fits evtable="EVENTS" scfile=/scratch/kocevski/826793/ft2_4FGL_J1438.9+3710_daily_bin1755.fits sctable="SC_DATA" expcube=/scratch/kocevski/826793/ltcube_694224001_694483201_4FGL_J1438.9+3710_daily_bin1755.fits outfile=/scratch/kocevski/826793/expmap_694224001_694483201_4FGL_J1438.9+3710_daily_bin1755.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/826793/ltcube_694224001_694483201_4FGL_J1438.9+3710_daily_bin1755.fits
.....................!
real 193.18
user 187.45
sys 4.70

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/826793/ft1_filtered_4FGL_J1438.9+3710_daily_bin1755.fits scfile=/scratch/kocevski/826793/ft2_4FGL_J1438.9+3710_daily_bin1755.fits outfile=/scratch/kocevski/826793/cmap_694224001_694483201_4FGL_J1438.9+3710_daily_bin1755.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/826793/ft1_filtered_4FGL_J1438.9+3710_daily_bin1755.fits scfile=/scratch/kocevski/826793/ft2_4FGL_J1438.9+3710_daily_bin1755.fits outfile=/scratch/kocevski/826793/cmap_HighResolution_694224001_694483201_4FGL_J1438.9+3710_daily_bin1755.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.56
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8292       1.0000          .0000       .10000E+07
     2 'norm      '    4.3120       1.0000          .0000       .10000E+07
     3 'Prefactor '    .25191       1.0000          .0000       .10000E+07
     4 'norm      '    .23154E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    .42628       1.0000          .0000       .10000E+07
     6 'Prefactor '    .92694       1.0000          .0000       .10000E+07
     7 'Prefactor '    34.216       1.0000          .0000       .10000E+07
     8 'norm      '    3.0866       1.0000          .0000       .10000E+07
     9 'norm      '    3.5390       1.0000          .0000       .10000E+07
    10 'Prefactor '    92.135       1.0000          .0000       .10000E+07
    11 'norm      '    .18197E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    8.4131       1.0000          .0000       .10000E+07
    13 'Prefactor '    .17221E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .31452E-03   1.0000          .0000       .10000E+07
    15 'norm      '    1.0214       1.0000          .0000       .10000E+07
    16 'norm      '    2.5159       1.0000          .0000       .10000E+07
    17 'Prefactor '    1.9903       1.0000          .0000       .10000E+07
    18 'Prefactor '    .39146       1.0000          .0000       .10000E+07
    19 'Prefactor '    20.212       1.0000          .0000       .10000E+07
    20 'Prefactor '    .46069E-05   1.0000          .0000       .10000E+07
    21 'norm      '    .40085       1.0000          .0000       .10000E+07
    22 'Prefactor '    .14219E-03   1.0000          .0000       .10000E+07
    23 'norm      '    9.8084       1.0000          .0000       .10000E+07
    24 'Normalizat'    .71382       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0540       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=   9652.793     FROM MIGRAD    STATUS=CONVERGED    155 CALLS     2134 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8380        4.3296        .77255E-07   -.34106E-02
   2  norm          4.3366        5.3796        .11912E-06   -.13780E-02
   3  Prefactor     .62787        4.6457        .37665E-05   -.58613E-02
   4  norm           .0000        .60815       -.13204E-06** at limit **
   5  Prefactor     .48614        1.6146       -.19752E-05   -.21145E-01
   6  Prefactor     .79146        3.5190        .12837E-05    .41305E-02
   7  Prefactor     34.246        4.9792        .94746E-07    .21224E-02
   8  norm          3.0571        4.5485        .14720E-06    .31111E-02
   9  norm          3.5408        3.7515        .23402E-06    .41917E-02
  10  Prefactor     92.878        32.258        .21903E-05   -.11342E-01
  11  norm          .55511E-10    1.9753       -.64779E-07** at limit **
  12  Prefactor     8.3756        9.5940        .15426E-05    .55470E-02
  13  Prefactor     .30531E-08    10.015       -.15320E-06** at limit **
  14  Prefactor      .0000        3.4120       -.12381E-06** at limit **
  15  norm          1.0280        1.0287        .56404E-07   -.46390E-02
  16  norm          2.5196        2.3481       -.19204E-06   -.11636E-01
  17  Prefactor     2.0085        3.7731       -.60498E-06   -.56199E-02
  18  Prefactor     .49033E-06    115.83        .59403E-05** at limit **
  19  Prefactor     19.865        13.007        .35823E-05   -.13371E-01
  20  Prefactor      .0000        4.7367       -.31368E-06** at limit **
  21  norm          .40112        .52232       -.16044E-06   -.11149E-01
  22  Prefactor     .55511E-10    2.3804        .11171E-06** at limit **
  23  norm          9.8061        3.5892        .96222E-06    .48373E-01
  24  Normalizat    .71280        .15458       -.17275E-04   -.16337E-04
  25  Prefactor     1.0547        .16610        .40821E-06   -.24375E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.838
  norm       = 4.33661
  Prefactor  = 0.627869
  norm       = 0
  Prefactor  = 0.486144
  Prefactor  = 0.791458
  Prefactor  = 34.2462
  norm       = 3.05711
  norm       = 3.54077
  Prefactor  = 92.8784
  norm       = 5.55112e-11
  Prefactor  = 8.3756
  Prefactor  = 3.05311e-09
  Prefactor  = 0
  norm       = 1.02803
  norm       = 2.51963
  Prefactor  = 2.0085
  Prefactor  = 4.9033e-07
  Prefactor  = 19.8652
  Prefactor  = 0
  norm       = 0.401121
  Prefactor  = 5.55112e-11
  norm       = 9.80608
  Normalizat = 0.712804
  Prefactor  = 1.05472
 **********
 **   18 **HESSE 
 **********

 FCN=   9652.793     FROM HESSE     STATUS=OK           489 CALLS     2623 TOTAL
                     EDM=   .27E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8380        4.3318        .41573E-03   -1.5660    
   2  norm          4.3366        5.3872        .48489E-03   -1.5666    
   3  Prefactor     .62787        7.3819        .10916E-01   -1.5692    
   4  norm           .0000        .60794        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .48614        5.0162        .86503E-02   -1.5694    
   6  Prefactor     .79146        29.760        .43915E-03   -1.5690    
   7  Prefactor     34.246        4.9882        .17098E-03   -1.5591    
   8  norm          3.0571        4.6425        .57703E-03   -1.5673    
   9  norm          3.5408        3.7687        .53707E-03   -1.5670    
  10  Prefactor     92.878        32.672        .10419E-03   -1.5515    
  11  norm          .55511E-10    1.9796        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.3756        9.9095        .34538E-03   -1.5650    
  13  Prefactor     .30531E-08    10.283        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        3.3922        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.0280        1.0729        .12755E-02   -1.5688    
  16  norm          2.5196        2.3726        .64386E-03   -1.5676    
  17  Prefactor     2.0085        3.8375        .73411E-03   -1.5680    
  18  Prefactor     .49033E-06    127.05        .90483E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     19.865        13.773        .22250E-03   -1.5619    
  20  Prefactor      .0000        4.7416        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .40112        .61946        .18430E-02   -1.5695    
  22  Prefactor     .55511E-10    2.3794        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          9.8061        10.959        .31972E-03   -1.5645    
  24  Normalizat    .71280        .13925        .42475E-01   -1.0339    
  25  Prefactor     1.0547        .14421        .39681E-01   -.90927    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65542e-07
Minuit parameter uncertainties:
  1  4.33176
  2  5.38724
  3  4.30576
  4  6.02729e-07
  5  3.1232
  6  9.7065
  7  4.9882
  8  4.64249
  9  3.76875
  10  32.6719
  11  2.54595e-05
  12  9.90951
  13  0.000352973
  14  1.45658e-05
  15  1.07292
  16  2.37261
  17  3.83754
  18  0.0157858
  19  13.7729
  20  7.07192e-06
  21  0.619461
  22  1.97846e-05
  23  10.9592
  24  0.139315
  25  0.144266
Done.

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

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  3.541e+00  3.769e+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:  1.055e+00  1.443e-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:  7.128e-01  1.393e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.43
Ra Dec: 219.740 37.175
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 1.60e-08 +/- 1.71e-08
Energy Flux (Fixed Index): 5.50e-06 +/- 5.85e-06

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

Saving results to:
/scratch/kocevski/826793/likelihoodResults_694224001_694483201_4FGL_J1438.9+3710_daily_bin1755.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) = 9652.78366967
delta logL = 0.00887260245327

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9652.78341201
delta logL = 0.00913026105263

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5875       1.0000          .0000       .10000E+07
     2 'alpha     '    2.1917       1.0000          .0000       5.0000    
     3 'Normalizat'    .71509       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0531       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9652.783     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      266 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5879        3.8527        .19304E-04   -.36632E-03
   2  alpha         2.1917        .85431        .27780E-01    .37323E-06
   3  Normalizat    .71504        .14734        .25484E-03   -.59600E-04
   4  Prefactor     1.0532        .16468        .23873E-03   -.12477E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.58788
  alpha      = 2.19166
  Normalizat = 0.715041
  Prefactor  = 1.05319
 **********
 **   18 **HESSE 
 **********

 FCN=   9652.783     FROM HESSE     STATUS=OK            25 CALLS      291 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5879        3.8473        .77215E-06   -1.5670    
   2  alpha         2.1917        .85322        .11112E-02   -.12365    
   3  Normalizat    .71504        .14747        .10194E-04   -1.0330    
   4  Prefactor     1.0532        .16481        .95491E-05   -.90977    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62898e-11
Minuit parameter uncertainties:
  1  3.84729
  2  0.871001
  3  0.147554
  4  0.164891
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/826793': 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) = 9652.78341192
delta logL = 0.0091303457757

Extracting fit parameters...

4FGL J1438.9+3710
   Spectrum: LogParabola
282         norm:  3.588e+00  3.847e+00  0.000e+00  1.000e+06 ( 1.000e-12)
283        alpha:  2.192e+00  8.710e-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:  1.053e+00  1.649e-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:  7.150e-01  1.476e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.45
Ra Dec: 219.740 37.175
Photon Index (Free Index): 2.19 +/- 0.87
Photon Flux (Free Index): 1.44e-08 +/- 1.97e-08
Energy Flux (Free Index): 5.66e-06 +/- 6.18e-06

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/826793/cmap_HighResolution_694224001_694483201_4FGL_J1438.9+3710_daily_bin1755.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.93e-05', comment='SUCCESS', photon_flux='1.60e-08', energy_flux2='5.66e-06', photon_flux_error='1.71e-08', dlogl='9.13e-03', energy_flux='5.50e-06', photon_flux2='1.44e-08', job_status='DONE', time_completed='2023-01-04 01:25:11.944928', photon_index_error2='0.87', photon_index2='2.19', ts='1.43', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='5.62e-08', energy_flux_error2='6.18e-06', EG='0.71', time_epoch_completed='1672824311.94', return_code='0', job_id='826793', GAL2='1.05', EG2='0.72', return_code2='0', energy_flux_error='5.85e-06', photon_flux_error2='1.97e-08', ts2='1.45', photon_index='2.31' WHERE bin_id='1755' AND source_name='4FGL J1438.9+3710' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan  4 01:25:11 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 826793: <4FGL_J1438.9+3710_daily_bin1755> in cluster <slac> Done

Job <4FGL_J1438.9+3710_daily_bin1755> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Jan  4 01:10:26 2023
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan  4 01:10:52 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan  4 01:10:52 2023
Terminated at Wed Jan  4 01:25:12 2023
Results reported at Wed Jan  4 01:25:12 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.9+3710_daily_bin1755 219.74 37.1752 694224001 694483201 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 :                                   807.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             344.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            886 sec.

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

