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


Performing analysis on: 4FGL_J1738.2+4000_daily_bin1750
RA = 264.56, Dec = 40.0099
tmin = 692928001, tmax = 693187201
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='20052', job_status='RUN', time_executed='2022-12-20 01:21:04.823728', time_epoch_executed='1671528064.82' WHERE source_name='4FGL J1738.2+4000' and cadence='daily' and bin_id='1750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/20052

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/20052/ft1_4FGL_J1738.2+4000_daily_bin1750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/20052/ft2_4FGL_J1738.2+4000_daily_bin1750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/20052/ft1_4FGL_J1738.2+4000_daily_bin1750.fits outfile=/scratch/kocevski/20052/ft1_filteredMKT_4FGL_J1738.2+4000_daily_bin1750.fits ra=264.56 dec=40.0099 rad=12.0 tmin=692928001.0 tmax=693187201.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.48
user 3.24
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/20052/ft2_4FGL_J1738.2+4000_daily_bin1750.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/20052/ft2_4FGL_J1738.2+4000_daily_bin1750.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/20052/ft1_filteredMKT_4FGL_J1738.2+4000_daily_bin1750.fits evtable="EVENTS" outfile="/scratch/kocevski/20052/ft1_filtered_4FGL_J1738.2+4000_daily_bin1750.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.16

Number of photons that the gtmktime cut: 680

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/20052/ft1_filtered_4FGL_J1738.2+4000_daily_bin1750.fits" evtable="EVENTS" scfile=/scratch/kocevski/20052/ft2_4FGL_J1738.2+4000_daily_bin1750.fits sctable="SC_DATA" outfile=/scratch/kocevski/20052/ltcube_692928001_693187201_4FGL_J1738.2+4000_daily_bin1750.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/20052/ft2_4FGL_J1738.2+4000_daily_bin1750.fits
.....................!
real 11.58
user 11.19
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/20052/ft1_filtered_4FGL_J1738.2+4000_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/20052/ft2_4FGL_J1738.2+4000_daily_bin1750.fits sctable="SC_DATA" expcube=/scratch/kocevski/20052/ltcube_692928001_693187201_4FGL_J1738.2+4000_daily_bin1750.fits outfile=/scratch/kocevski/20052/expmap_692928001_693187201_4FGL_J1738.2+4000_daily_bin1750.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/20052/ltcube_692928001_693187201_4FGL_J1738.2+4000_daily_bin1750.fits
.....................!
real 193.25
user 187.09
sys 5.51

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 210 point sources and 0 extended sources

Setting source of interest to:
4FGL J1738.2+4000 @ 264.56 40.0099

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/20052/ft1_filtered_4FGL_J1738.2+4000_daily_bin1750.fits scfile=/scratch/kocevski/20052/ft2_4FGL_J1738.2+4000_daily_bin1750.fits outfile=/scratch/kocevski/20052/cmap_692928001_693187201_4FGL_J1738.2+4000_daily_bin1750.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=264.56 yref=40.0099 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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/20052/ft1_filtered_4FGL_J1738.2+4000_daily_bin1750.fits scfile=/scratch/kocevski/20052/ft2_4FGL_J1738.2+4000_daily_bin1750.fits outfile=/scratch/kocevski/20052/cmap_HighResolution_692928001_693187201_4FGL_J1738.2+4000_daily_bin1750.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=264.56 yref=40.0099 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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/20052/ft1_filtered_4FGL_J1738.2+4000_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/20052/ft2_4FGL_J1738.2+4000_daily_bin1750.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/20052/Model_4FGL_J1738.2+4000_daily_bin1750.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/20052/ft1_filtered_4FGL_J1738.2+4000_daily_bin1750.fits....................!
real 60.29
user 58.88
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/20052/ft1_filtered_4FGL_J1738.2+4000_daily_bin1750.fits', '/scratch/kocevski/20052/ft2_4FGL_J1738.2+4000_daily_bin1750.fits', expMap='/scratch/kocevski/20052/expmap_692928001_693187201_4FGL_J1738.2+4000_daily_bin1750.fits', expCube='/scratch/kocevski/20052/ltcube_692928001_693187201_4FGL_J1738.2+4000_daily_bin1750.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/20052/Model_4FGL_J1738.2+4000_daily_bin1750.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1738.2+4000'

4FGL J1738.2+4000
   Spectrum: PowerLaw
326    Prefactor:  6.394e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
327        Index:  2.517e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  1.525e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/20052/ft1_filtered_4FGL_J1738.2+4000_daily_bin1750.fits
Spacecraft file(s): /scratch/kocevski/20052/ft2_4FGL_J1738.2+4000_daily_bin1750.fits
Exposure map: /scratch/kocevski/20052/expmap_692928001_693187201_4FGL_J1738.2+4000_daily_bin1750.fits
Exposure cube: /scratch/kocevski/20052/ltcube_692928001_693187201_4FGL_J1738.2+4000_daily_bin1750.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/20052/Model_4FGL_J1738.2+4000_daily_bin1750.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) = 7161.80839734

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7807       1.0000          .0000       .10000E+07
     2 'Prefactor '    .63166E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    1.8962       1.0000          .0000       .10000E+07
     4 'Prefactor '    .28108E-02   1.0000          .0000       .10000E+07
     5 'norm      '    2.1085       1.0000          .0000       .10000E+07
     6 'norm      '    .16653E-09   1.0000          .0000       .10000E+07
     7 'Prefactor '    .65562E-03   1.0000          .0000       .10000E+07
     8 'norm      '    .75495E-08   1.0000          .0000       .10000E+07
     9 'norm      '    .50319E-04   1.0000          .0000       .10000E+07
    10 'norm      '    14.143       1.0000          .0000       .10000E+07
    11 'Prefactor '    .21825       1.0000          .0000       .10000E+07
    12 'norm      '    20.595       1.0000          .0000       .10000E+07
    13 'Prefactor '    9.5784       1.0000          .0000       .10000E+07
    14 'Prefactor '    .25254E-02   1.0000          .0000       .10000E+07
    15 'norm      '    5.9755       1.0000          .0000       .10000E+07
    16 'Prefactor '    .11393       1.0000          .0000       .10000E+07
    17 'Prefactor '    .24030E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    8.2261       1.0000          .0000       .10000E+07
    19 'Prefactor '    .72182E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    3.7106       1.0000          .0000       .10000E+07
    21 'norm      '    .99920E-09   1.0000          .0000       .10000E+07
    22 'norm      '    84.869       1.0000          .0000       .10000E+07
    23 'norm      '    3.6280       1.0000          .0000       .10000E+07
    24 'Prefactor '    .10527E-04   1.0000          .0000       .10000E+07
    25 'Prefactor '    2.3358       1.0000          .0000       .10000E+07
    26 'Normalizat'    .70358       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1597       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7161.790     FROM MIGRAD    STATUS=CONVERGED    208 CALLS     2456 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .50176E-05    961.14        .43498E-05** at limit **
   2  Prefactor      .0000        1.1061       -.28823E-07** at limit **
   3  Prefactor     1.9135        1.2986       -.53178E-08   -.18976E-02
   4  Prefactor     .77716E-09    5.2785       -.91787E-07** at limit **
   5  norm          2.1082        1.6606        .68119E-08    .95519E-03
   6  norm           .0000        .38256       -.75153E-08** at limit **
   7  Prefactor      .0000        2.9072       -.23334E-07** at limit **
   8  norm           .0000        .34613       -.17064E-07** at limit **
   9  norm           .0000        3.1886       -.30029E-07** at limit **
  10  norm          14.142        2.9554        .10120E-07    .11030E-02
  11  Prefactor     .21330        16.107        .42732E-07** at limit **
  12  norm          20.537        7.5976        .39840E-07   -.41474E-01
  13  Prefactor     10.530        65.820       -.24019E-06    .12410E-01
  14  Prefactor     .21094E-08    20.514       -.36621E-06** at limit **
  15  norm          5.9955        7.1801       -.61359E-07    .34793E-01
  16  Prefactor     .27756E-09    39.044        .27220E-07** at limit **
  17  Prefactor      .0000        15.712       -.91051E-08** at limit **
  18  Prefactor     8.2276        5.6649        .16694E-07    .76817E-01
  19  Prefactor     .11102E-09    9.8598       -.89119E-07** at limit **
  20  Prefactor     3.7254        18.644        .10090E-06   -.25015E-01
  21  norm           .0000        .46468       -.15057E-07** at limit **
  22  norm          85.546        23.433       -.16469E-06   -.14405E-01
  23  norm          3.6535        6.5949       -.66979E-07   -.15292E-01
  24  Prefactor      .0000        2.0834       -.38571E-07** at limit **
  25  Prefactor     2.3129        4.5772        .21904E-08   -.22169E-04
  26  Normalizat    .70358        .24722       -.67431E-06   -.26043E-04
  27  Prefactor     1.1597        .15485        .42864E-06   -.32191E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.0176e-06
  Prefactor  = 0
  Prefactor  = 1.91346
  Prefactor  = 7.77156e-10
  norm       = 2.10818
  norm       = 0
  Prefactor  = 0
  norm       = 0
  norm       = 0
  norm       = 14.1419
  Prefactor  = 0.213301
  norm       = 20.5375
  Prefactor  = 10.5301
  Prefactor  = 2.10942e-09
  norm       = 5.99547
  Prefactor  = 2.77556e-10
  Prefactor  = 0
  Prefactor  = 8.22764
  Prefactor  = 1.11022e-10
  Prefactor  = 3.72537
  norm       = 0
  norm       = 85.546
  norm       = 3.65347
  Prefactor  = 0
  Prefactor  = 2.31286
  Normalizat = 0.703581
  Prefactor  = 1.15967
 **********
 **   18 **HESSE 
 **********

 FCN=   7161.790     FROM HESSE     STATUS=OK           554 CALLS     3010 TOTAL
                     EDM=   .45E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .50176E-05    66.841        .15099E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        1.1119        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.9135        1.3892        .75513E-03   -1.5680    
   4  Prefactor     .77716E-09    5.2928        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.1082        1.6645        .71023E-03   -1.5679    
   6  norm           .0000        .37916        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        2.9174        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        .34239        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        3.1950        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          14.142        2.9560        .26607E-03   -1.5633    
  11  Prefactor     .21330        2.7399        .75183E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          20.537        7.8680        .22042E-03   -1.5617    
  13  Prefactor     10.530        77.565        .32356E-03   -1.5643    
  14  Prefactor     .21094E-08    20.613        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.9955        8.8800        .41053E-03   -1.5659    
  16  Prefactor     .27756E-09    39.086        .13569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        15.683        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.2276        7.4122        .34931E-03   -1.5651    
  19  Prefactor     .11102E-09    9.8776        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.7254        130.00        .52400E-03   -1.5669    
  21  norm           .0000        .46442        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          85.546        70.869        .10856E-03   -1.5523    
  23  norm          3.6535        6.7789        .53017E-03   -1.5670    
  24  Prefactor      .0000        2.0835        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.3129        4.5812        .67066E-03   -1.5678    
  26  Normalizat    .70358        .22186        .83642E-01   -1.0375    
  27  Prefactor     1.1597        .13730        .35660E-01   -.87581    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.54848e-07
Minuit parameter uncertainties:
  1  0.0366274
  2  4.94227e-06
  3  1.3892
  4  0.00012749
  5  1.66455
  6  8.56918e-07
  7  5.69261e-06
  8  2.13027e-06
  9  2.62213e-06
  10  2.95596
  11  1.52894
  12  7.86803
  13  57.1591
  14  0.000419465
  15  8.87997
  16  0.000204875
  17  7.00602e-06
  18  7.41217
  19  5.75743e-05
  20  44.0147
  21  2.27438e-06
  22  70.8693
  23  6.77894
  24  1.843e-06
  25  4.58123
  26  0.222143
  27  0.137339
Done.

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

Extracting fit parameters...

4FGL J1738.2+4000
   Spectrum: PowerLaw
326    Prefactor:  1.053e+01  5.716e+01  0.000e+00  1.000e+06 ( 1.000e-14)
327        Index:  2.517e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  1.525e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
681    Prefactor:  1.160e+00  1.373e-01  0.000e+00  1.000e+01 ( 1.000e+00)
682        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
683        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
680   Normalization:  7.036e-01  2.221e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 264.560 40.010
Photon Flux Upper Limit: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/20052/likelihoodResults_692928001_693187201_4FGL_J1738.2+4000_daily_bin1750.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) = 7161.78953416
delta logL = 0.000142050977047

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7161.78947211
delta logL = 0.00020410029083

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9285       1.0000          .0000       .10000E+07
     2 'Index     '    2.5668       1.0000          .0000       10.000    
     3 'Normalizat'    .70297       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1598       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7161.789     FROM MIGRAD    STATUS=CONVERGED     72 CALLS      252 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.6037        407.05        .31777E-03    .85009E-03
   2  Index         2.6009        .51795        .50000        .47355E-04
   3  Normalizat    .70290        .13128E-01    .83679E-01    .19194E-03
   4  Prefactor     1.1599        .84628E-02    .35658E-01    .13685E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.60368
  Index      = 2.60091
  Normalizat = 0.702895
  Prefactor  = 1.15994
 **********
 **   18 **HESSE 
 **********

 FCN=   7161.789     FROM HESSE     STATUS=OK            31 CALLS      283 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.6037        133.87        .12711E-04   -1.5646    
   2  Index         2.6009        3.6184        .38158E-02   -.50045    
   3  Normalizat    .70290        .23839        .37056E-03   -1.0378    
   4  Prefactor     1.1599        .15257        .18941E-03   -.87573    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14115e-09
Minuit parameter uncertainties:
  1  71.7135
  2  4.2548
  3  0.238738
  4  0.15263
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/20052': 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) = 7161.78943211
delta logL = 0.000244101445787

Extracting fit parameters...

4FGL J1738.2+4000
   Spectrum: PowerLaw
326    Prefactor:  9.604e+00  7.171e+01  0.000e+00  1.000e+06 ( 1.000e-14)
327        Index:  2.601e+00  4.255e+00  0.000e+00  1.000e+01 (-1.000e+00)
328        Scale:  1.525e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
681    Prefactor:  1.160e+00  1.526e-01  0.000e+00  1.000e+01 ( 1.000e+00)
682        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
683        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
680   Normalization:  7.029e-01  2.387e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
Ra Dec: 264.560 40.010

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/20052/cmap_HighResolution_692928001_693187201_4FGL_J1738.2+4000_daily_bin1750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.01e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2022-12-20 01:34:28.153824', job_id='20052', GAL2='1.16', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1671528868.15', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='2.44e-04', ts2='0.04', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1750' AND source_name='4FGL J1738.2+4000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 20 01:34:28 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 20052: <4FGL_J1738.2+4000_daily_bin1750> in cluster <slac> Done

Job <4FGL_J1738.2+4000_daily_bin1750> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Tue Dec 20 01:20:21 2022
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 20 01:20:22 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 20 01:20:22 2022
Terminated at Tue Dec 20 01:34:28 2022
Results reported at Tue Dec 20 01:34:28 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1738.2+4000_daily_bin1750 264.56 40.0099 692928001 693187201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1738.2+4000 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   805.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   846 sec.
    Turnaround time :                            847 sec.

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

