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 107 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J1438.0+0219_weekly_bin717
RA = 219.504, Dec = 2.3272
tmin = 672624001, tmax = 673228801
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='374615', job_status='RUN', time_executed='2022-05-03 01:30:35.025512', time_epoch_executed='1651566635.03' WHERE source_name='4FGL J1438.0+0219' and cadence='weekly' and bin_id='717'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/374615

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/374615/ft1_4FGL_J1438.0+0219_weekly_bin717.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/374615/ft2_4FGL_J1438.0+0219_weekly_bin717.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/374615/ft1_4FGL_J1438.0+0219_weekly_bin717.fits outfile=/scratch/kocevski/374615/ft1_filteredMKT_4FGL_J1438.0+0219_weekly_bin717.fits ra=219.504 dec=2.3272 rad=12.0 tmin=672624001.0 tmax=673228801.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 6.29
user 6.02
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/374615/ft2_4FGL_J1438.0+0219_weekly_bin717.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/374615/ft2_4FGL_J1438.0+0219_weekly_bin717.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/374615/ft1_filteredMKT_4FGL_J1438.0+0219_weekly_bin717.fits evtable="EVENTS" outfile="/scratch/kocevski/374615/ft1_filtered_4FGL_J1438.0+0219_weekly_bin717.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.55
user 0.37
sys 0.17

Number of photons that the gtmktime cut: 220

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/374615/ft1_filtered_4FGL_J1438.0+0219_weekly_bin717.fits" evtable="EVENTS" scfile=/scratch/kocevski/374615/ft2_4FGL_J1438.0+0219_weekly_bin717.fits sctable="SC_DATA" outfile=/scratch/kocevski/374615/ltcube_672624001_673228801_4FGL_J1438.0+0219_weekly_bin717.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/374615/ft2_4FGL_J1438.0+0219_weekly_bin717.fits
.....................!
real 32.51
user 31.99
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/374615/ft1_filtered_4FGL_J1438.0+0219_weekly_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/374615/ft2_4FGL_J1438.0+0219_weekly_bin717.fits sctable="SC_DATA" expcube=/scratch/kocevski/374615/ltcube_672624001_673228801_4FGL_J1438.0+0219_weekly_bin717.fits outfile=/scratch/kocevski/374615/expmap_672624001_673228801_4FGL_J1438.0+0219_weekly_bin717.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/374615/ltcube_672624001_673228801_4FGL_J1438.0+0219_weekly_bin717.fits
.....................!
real 191.26
user 185.66
sys 4.97

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

Setting source of interest to:
4FGL J1438.0+0219 @ 219.504 2.3272

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/374615/ft1_filtered_4FGL_J1438.0+0219_weekly_bin717.fits scfile=/scratch/kocevski/374615/ft2_4FGL_J1438.0+0219_weekly_bin717.fits outfile=/scratch/kocevski/374615/cmap_672624001_673228801_4FGL_J1438.0+0219_weekly_bin717.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.504 yref=2.3272 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.43
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/374615/ft1_filtered_4FGL_J1438.0+0219_weekly_bin717.fits scfile=/scratch/kocevski/374615/ft2_4FGL_J1438.0+0219_weekly_bin717.fits outfile=/scratch/kocevski/374615/cmap_HighResolution_672624001_673228801_4FGL_J1438.0+0219_weekly_bin717.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.504 yref=2.3272 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.60
user 0.42
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/374615/ft1_filtered_4FGL_J1438.0+0219_weekly_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/374615/ft2_4FGL_J1438.0+0219_weekly_bin717.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/374615/Model_4FGL_J1438.0+0219_weekly_bin717.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/374615/ft1_filtered_4FGL_J1438.0+0219_weekly_bin717.fits....................!
real 30.55
user 29.19
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/374615/ft1_filtered_4FGL_J1438.0+0219_weekly_bin717.fits', '/scratch/kocevski/374615/ft2_4FGL_J1438.0+0219_weekly_bin717.fits', expMap='/scratch/kocevski/374615/expmap_672624001_673228801_4FGL_J1438.0+0219_weekly_bin717.fits', expCube='/scratch/kocevski/374615/ltcube_672624001_673228801_4FGL_J1438.0+0219_weekly_bin717.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/374615/Model_4FGL_J1438.0+0219_weekly_bin717.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1438.0+0219'

4FGL J1438.0+0219
   Spectrum: PowerLaw
248    Prefactor:  3.502e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
249        Index:  2.234e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
250        Scale:  1.903e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/374615/ft1_filtered_4FGL_J1438.0+0219_weekly_bin717.fits
Spacecraft file(s): /scratch/kocevski/374615/ft2_4FGL_J1438.0+0219_weekly_bin717.fits
Exposure map: /scratch/kocevski/374615/expmap_672624001_673228801_4FGL_J1438.0+0219_weekly_bin717.fits
Exposure cube: /scratch/kocevski/374615/ltcube_672624001_673228801_4FGL_J1438.0+0219_weekly_bin717.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/374615/Model_4FGL_J1438.0+0219_weekly_bin717.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) = 2806.09793996

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32873E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.404       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .18045E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    49.010       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.8507       1.0000         .10000E-03   10000.    
    10 'norm      '    .10394E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    81.184       1.0000         .10000E-03   10000.    
    12 'norm      '    .91381E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10141E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    131.84       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.6428       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2806.061     FROM MIGRAD    STATUS=CONVERGED    384 CALLS     1898 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    220.40        .49203E-04** at limit **
   2  Prefactor     20.364        40.095       -.96575E-05   -.10259E-03
   3  Prefactor     .10000E-03    25.521       -.18033E-04** at limit **
   4  norm          .10000E-03    91.408       -.29601E-04** at limit **
   5  norm          .10000E-03    1243.4       -.13394E-02** at limit **
   6  Prefactor     .10000E-03    11.007       -.74238E-07** at limit **
   7  norm          49.014        37.775        .13844E-05    .45603E-04
   8  Prefactor     .10000E-03    358.57       -.28676E-03** at limit **
   9  Prefactor     3.8089        167.45       -.78483E-04   -.46629E-04
  10  norm          .10001E-03    25.697        .20678E-04** at limit **
  11  Prefactor     81.198        47.291        .33408E-05    .18106E-04
  12  norm          .91349E-01    .21851       -.33956E-06   -.36321E-02
  13  norm          .10000E-03    4.8578       -.18140E-07** at limit **
  14  norm          .10000E-03    2.8744       -.31047E-07** at limit **
  15  norm          .10000E-03    199.13        .22926E-03** at limit **
  16  norm          .10000E-03    6.2643       -.11465E-06** at limit **
  17  Prefactor     131.85        134.62        .23445E-05   -.91572E-05
  18  Normalizat    .10000E-01    .34957        .38979E-05** at limit **
  19  Prefactor     1.6430        .21389        .25989E-05   -.10034E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Prefactor  = 20.3643
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 49.0138
  Prefactor  = 0.000100002
  Prefactor  = 3.80885
  norm       = 0.000100008
  Prefactor  = 81.1976
  norm       = 0.0913487
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 131.846
  Normalizat = 0.01
  Prefactor  = 1.64296
 **********
 **   18 **HESSE 
 **********

 FCN=   2806.061     FROM HESSE     STATUS=OK           258 CALLS     2156 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    220.84        .21351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     20.364        39.813        .88671E-04   -1.4805    
   3  Prefactor     .10000E-03    25.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    91.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1241.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.010        .17166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          49.014        37.785        .28640E-03   -1.4307    
   8  Prefactor     .10000E-03    358.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.8089        168.05        .20565E-03   -1.5318    
  10  norm          .10001E-03    25.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     81.198        46.652        .44576E-04   -1.3903    
  12  norm          .91349E-01    .20830        .34006E-04   -1.5648    
  13  norm          .10000E-03    4.8938        .11394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.8757        .87712E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    199.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    6.2726        .12948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     131.85        134.91        .35069E-04   -1.3406    
  18  Normalizat    .10000E-01    1.4329        .12185E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.6430        .15529        .17867E-03   -.73611    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20877e-09
Minuit parameter uncertainties:
  1  0.00202168
  2  39.8653
  3  6.88788e-05
  4  3.45392e-05
  5  3.67157e-05
  6  4.90622e-06
  7  37.8034
  8  0.00172012
  9  50.7509
  10  0.000890991
  11  46.6735
  12  0.208301
  13  1.73136e-05
  14  9.15772e-07
  15  6.15319e-06
  16  1.31052e-05
  17  135.231
  18  2.79156e-06
  19  0.155335
Done.

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

Extracting fit parameters...

4FGL J1438.0+0219
   Spectrum: PowerLaw
248    Prefactor:  1.000e-04  1.720e-03  1.000e-04  1.000e+04 ( 1.000e-14)
249        Index:  2.234e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
250        Scale:  1.903e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  1.643e+00  1.553e-01  0.000e+00  1.000e+01 ( 1.000e+00)
527        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
528        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
525   Normalization:  1.000e-02  2.792e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 219.504 2.327
Photon Flux Upper Limit: 2.61e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.99e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/374615/likelihoodResults_672624001_673228801_4FGL_J1438.0+0219_weekly_bin717.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): 102
logL (Free Index) = 2806.06125818
delta logL = -1.62161395565e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2806.06125812
delta logL = -1.61556076819e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96355E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2342       1.0000          .0000       10.000    
     3 'Normalizat'    .10009E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.6430       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2806.061     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      211 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    249.77        .90713E-02** at limit **
   2  Index         2.1547        6.0362        .50000        .13322E-05
   3  Normalizat    .10000E-01    .14992E-03    .32098    ** at limit **
   4  Prefactor     1.6430        .42099E-02    .28359E-01    .11731E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100009
  Index      = 2.1547
  Normalizat = 0.01
  Prefactor  = 1.64297
 **********
 **   18 **HESSE 
 **********

 FCN=   2806.061     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      242 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    1220.1        .18143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1547        6.7110        .50000       -.60536    
   3  Normalizat    .10000E-01    .81579E-02    .12184E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.6430        .94760E-02    .17867E-03   -.73611    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.52493e-08
Minuit parameter uncertainties:
  1  0.00678119
  2  358.701
  3  3.5863e-08
  4  0.00947604
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/374615': 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): 102
logL (Free Index) = 2806.06124193
delta logL = 3.03780325339e-08

Extracting fit parameters...

4FGL J1438.0+0219
   Spectrum: PowerLaw
248    Prefactor:  1.000e-04  6.781e-03  1.000e-04  1.000e+04 ( 1.000e-14)
249        Index:  2.155e+00  3.587e+02  0.000e+00  1.000e+01 (-1.000e+00)
250        Scale:  1.903e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  1.643e+00  9.476e-03  0.000e+00  1.000e+01 ( 1.000e+00)
527        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
528        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
525   Normalization:  1.000e-02  3.586e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 219.504 2.327

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/374615/cmap_HighResolution_672624001_673228801_4FGL_J1438.0+0219_weekly_bin717.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.99e-02', job_status='DONE', photon_flux_upper_limit='2.61e-07', time_completed='2022-05-03 01:38:05.036103', job_id='374615', GAL2='1.64', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1651567085.04', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.64', dlogl='3.04e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='717' AND source_name='4FGL J1438.0+0219' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May  3 01:38:05 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 374615: <4FGL_J1438.0+0219_weekly_bin717> in cluster <slac> Done

Job <4FGL_J1438.0+0219_weekly_bin717> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue May  3 01:25:32 2022
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 01:28:38 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May  3 01:28:38 2022
Terminated at Tue May  3 01:38:05 2022
Results reported at Tue May  3 01:38:05 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.0+0219_weekly_bin717 219.504 2.3272 672624001 673228801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1438.0+0219 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   450.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   567 sec.
    Turnaround time :                            753 sec.

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

