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


Performing analysis on: 4FGL_J2049.9+1002_daily_bin1721
RA = 312.478, Dec = 10.0407
tmin = 685411201, tmax = 685670401
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='70503', job_status='RUN', time_executed='2022-09-24 01:12:21.170169', time_epoch_executed='1664007141.17' WHERE source_name='4FGL J2049.9+1002' and cadence='daily' and bin_id='1721'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/70503

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/70503/ft1_4FGL_J2049.9+1002_daily_bin1721.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/70503/ft2_4FGL_J2049.9+1002_daily_bin1721.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/70503/ft1_4FGL_J2049.9+1002_daily_bin1721.fits outfile=/scratch/kocevski/70503/ft1_filteredMKT_4FGL_J2049.9+1002_daily_bin1721.fits ra=312.478 dec=10.0407 rad=12.0 tmin=685411201.0 tmax=685670401.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 5.25
user 4.96
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/70503/ft2_4FGL_J2049.9+1002_daily_bin1721.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/70503/ft2_4FGL_J2049.9+1002_daily_bin1721.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/70503/ft1_filteredMKT_4FGL_J2049.9+1002_daily_bin1721.fits evtable="EVENTS" outfile="/scratch/kocevski/70503/ft1_filtered_4FGL_J2049.9+1002_daily_bin1721.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.51
user 0.35
sys 0.15

Number of photons that the gtmktime cut: 881

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/70503/ft1_filtered_4FGL_J2049.9+1002_daily_bin1721.fits" evtable="EVENTS" scfile=/scratch/kocevski/70503/ft2_4FGL_J2049.9+1002_daily_bin1721.fits sctable="SC_DATA" outfile=/scratch/kocevski/70503/ltcube_685411201_685670401_4FGL_J2049.9+1002_daily_bin1721.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/70503/ft2_4FGL_J2049.9+1002_daily_bin1721.fits
.....................!
real 14.07
user 13.35
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/70503/ft1_filtered_4FGL_J2049.9+1002_daily_bin1721.fits evtable="EVENTS" scfile=/scratch/kocevski/70503/ft2_4FGL_J2049.9+1002_daily_bin1721.fits sctable="SC_DATA" expcube=/scratch/kocevski/70503/ltcube_685411201_685670401_4FGL_J2049.9+1002_daily_bin1721.fits outfile=/scratch/kocevski/70503/expmap_685411201_685670401_4FGL_J2049.9+1002_daily_bin1721.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/70503/ltcube_685411201_685670401_4FGL_J2049.9+1002_daily_bin1721.fits
.....................!
real 193.71
user 188.11
sys 4.96

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
Extended source W 51C in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/W51C.fits is the correct path to the extended template.
Extended source Cygnus Loop in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CygnusLoop.fits is the correct path to the extended template.
Added 201 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2049.9+1002 @ 312.478 10.0407

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/70503/ft1_filtered_4FGL_J2049.9+1002_daily_bin1721.fits scfile=/scratch/kocevski/70503/ft2_4FGL_J2049.9+1002_daily_bin1721.fits outfile=/scratch/kocevski/70503/cmap_685411201_685670401_4FGL_J2049.9+1002_daily_bin1721.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=312.478 yref=10.0407 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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/70503/ft1_filtered_4FGL_J2049.9+1002_daily_bin1721.fits scfile=/scratch/kocevski/70503/ft2_4FGL_J2049.9+1002_daily_bin1721.fits outfile=/scratch/kocevski/70503/cmap_HighResolution_685411201_685670401_4FGL_J2049.9+1002_daily_bin1721.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=312.478 yref=10.0407 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.57
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/70503/ft1_filtered_4FGL_J2049.9+1002_daily_bin1721.fits evtable="EVENTS" scfile=/scratch/kocevski/70503/ft2_4FGL_J2049.9+1002_daily_bin1721.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/70503/Model_4FGL_J2049.9+1002_daily_bin1721.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 Cygnus Loop
adding source EG_v02
adding source GAL_V02
adding source W 51C
Working on...
/scratch/kocevski/70503/ft1_filtered_4FGL_J2049.9+1002_daily_bin1721.fits.....................!
real 192.59
user 190.80
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/70503/ft1_filtered_4FGL_J2049.9+1002_daily_bin1721.fits', '/scratch/kocevski/70503/ft2_4FGL_J2049.9+1002_daily_bin1721.fits', expMap='/scratch/kocevski/70503/expmap_685411201_685670401_4FGL_J2049.9+1002_daily_bin1721.fits', expCube='/scratch/kocevski/70503/ltcube_685411201_685670401_4FGL_J2049.9+1002_daily_bin1721.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/70503/Model_4FGL_J2049.9+1002_daily_bin1721.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2049.9+1002'

4FGL J2049.9+1002
   Spectrum: LogParabola
407         norm:  4.360e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
408        alpha:  2.394e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
409         beta:  1.463e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
410           Eb:  6.403e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/70503/ft1_filtered_4FGL_J2049.9+1002_daily_bin1721.fits
Spacecraft file(s): /scratch/kocevski/70503/ft2_4FGL_J2049.9+1002_daily_bin1721.fits
Exposure map: /scratch/kocevski/70503/expmap_685411201_685670401_4FGL_J2049.9+1002_daily_bin1721.fits
Exposure cube: /scratch/kocevski/70503/ltcube_685411201_685670401_4FGL_J2049.9+1002_daily_bin1721.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/70503/Model_4FGL_J2049.9+1002_daily_bin1721.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) = 9551.76955303

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19515E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    8.7888       1.0000          .0000       .10000E+07
     3 'Prefactor '    .12217E-02   1.0000          .0000       .10000E+07
     4 'norm      '    .10714E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    .12068       1.0000          .0000       .10000E+07
     6 'norm      '    7.5250       1.0000          .0000       .10000E+07
     7 'Prefactor '    5.1145       1.0000          .0000       .10000E+07
     8 'Prefactor '    12.987       1.0000          .0000       .10000E+07
     9 'Prefactor '    3.8278       1.0000          .0000       .10000E+07
    10 'Prefactor '    .48469E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    3.6289       1.0000          .0000       .10000E+07
    12 'norm      '    4.5985       1.0000          .0000       .10000E+07
    13 'Prefactor '    .20948E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    .21526E-03   1.0000          .0000       .10000E+07
    15 'Normalizat'    .69701       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.0571       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9551.720     FROM MIGRAD    STATUS=CONVERGED    130 CALLS      896 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27756E-09    3.6798        .73651E-06** at limit **
   2  Prefactor     8.5050        11.368        .72150E-07   -.23257E-02
   3  Prefactor     .88818E-09    21.541       -.53984E-05** at limit **
   4  norm          .55511E-10    .24437        .15329E-06** at limit **
   5  Prefactor     .99920E-09    22.705        .10121E-05** at limit **
   6  norm          7.6050        9.4994        .27006E-06   -.40534E-02
   7  Prefactor     5.1633        3.7747        .12608E-05    .68215E-02
   8  Prefactor     12.991        6.2673       -.92246E-06   -.11014E-01
   9  Prefactor     3.8619        18.518       -.31700E-05    .51507E-02
  10  Prefactor     .99920E-09    11.434       -.23551E-05** at limit **
  11  Prefactor     2.9626        376.95        .88628E-05   -.27346E-03
  12  norm          4.6946        6.1948       -.59543E-06    .77423E-03
  13  Prefactor     .55511E-10    26.215        .31334E-05** at limit **
  14  Prefactor     .44409E-09    37.261        .17370E-04** at limit **
  15  Normalizat    .69805        .27952        .28248E-04    .39478E-03
  16  Prefactor     1.0569        .94241E-01   -.22600E-05    .10008E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.77556e-10
  Prefactor  = 8.50497
  Prefactor  = 8.88178e-10
  norm       = 5.55112e-11
  Prefactor  = 9.99201e-10
  norm       = 7.60499
  Prefactor  = 5.16325
  Prefactor  = 12.9911
  Prefactor  = 3.86194
  Prefactor  = 9.99201e-10
  Prefactor  = 2.96264
  norm       = 4.69457
  Prefactor  = 5.55112e-11
  Prefactor  = 4.44089e-10
  Normalizat = 0.698048
  Prefactor  = 1.05692
 **********
 **   18 **HESSE 
 **********

 FCN=   9551.720     FROM HESSE     STATUS=OK           243 CALLS     1139 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27756E-09    3.6781        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.5050        11.475        .33786E-03   -1.5650    
   3  Prefactor     .88818E-09    21.592        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .55511E-10    .24256        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .99920E-09    22.658        .13404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          7.6050        9.5382        .36535E-03   -1.5653    
   7  Prefactor     5.1633        18.710        .44433E-03   -1.5663    
   8  Prefactor     12.991        17.462        .27770E-03   -1.5636    
   9  Prefactor     3.8619        22.001        .51562E-03   -1.5669    
  10  Prefactor     .99920E-09    11.469        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.9626        381.41        .53010E-03   -1.5674    
  12  norm          4.6946        6.2230        .46915E-03   -1.5665    
  13  Prefactor     .55511E-10    25.344        .16975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .44409E-09    3.5842        .61741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    .69805        .25966        .11216       -1.0397    
  16  Prefactor     1.0569        .84546E-01    .39512E-01   -.90855    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08123e-08
Minuit parameter uncertainties:
  1  6.32833e-05
  2  11.4752
  3  0.000277722
  4  5.31745e-06
  5  0.000301353
  6  9.53823
  7  18.7105
  8  17.4616
  9  18.4357
  10  0.00021591
  11  67.2345
  12  6.223
  13  8.12354e-05
  14  8.1123e-05
  15  0.260114
  16  0.0845567
Done.

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

Extracting fit parameters...

4FGL J2049.9+1002
   Spectrum: LogParabola
407         norm:  7.605e+00  9.538e+00  0.000e+00  1.000e+06 ( 1.000e-12)
408        alpha:  2.394e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
409         beta:  1.463e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
410           Eb:  6.403e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  1.057e+00  8.456e-02  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  6.980e-01  2.601e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.84
Ra Dec: 312.478 10.041
Photon Flux Upper Limit: 1.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.30e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/70503/likelihoodResults_685411201_685670401_4FGL_J2049.9+1002_daily_bin1721.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) = 9551.18631814
delta logL = 0.533664925593

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9551.18308955
delta logL = 0.53689351602

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1555       1.0000          .0000       .10000E+07
     2 'alpha     '    3.6198       1.0000          .0000       5.0000    
     3 'Normalizat'    .62019       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0731       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9551.183     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      273 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1593        58.734        .49420E-03    .12777E-01
   2  alpha         3.6200        4.3065        .48205        .11754E-03
   3  Normalizat    .62003        .70929E-01    .11850        .23884E-05
   4  Prefactor     1.0732        .24104E-01    .38711E-01   -.16334E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.15935
  alpha      = 3.62003
  Normalizat = 0.62003
  Prefactor  = 1.0732
 **********
 **   18 **HESSE 
 **********

 FCN=   9551.183     FROM HESSE     STATUS=OK            33 CALLS      306 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1593        158.67        .14627E-04   -1.5667    
   2  alpha         3.6200        2.5505        .20111E-01    .46454    
   3  Normalizat    .62003        .34698        .52551E-03   -1.0714    
   4  Prefactor     1.0732        .12227        .14297E-03   -.90328    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.02723e-09
Minuit parameter uncertainties:
  1  51.3818
  2  8.99839
  3  0.348209
  4  0.1223
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/70503': 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) = 9551.18308778
delta logL = 0.536895285402

Extracting fit parameters...

4FGL J2049.9+1002
   Spectrum: LogParabola
407         norm:  4.159e+00  5.138e+01  0.000e+00  1.000e+06 ( 1.000e-12)
408        alpha:  3.620e+00  8.998e+00  0.000e+00  5.000e+00 ( 1.000e+00)
409         beta:  1.463e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
410           Eb:  6.403e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  1.073e+00  1.223e-01  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  6.200e-01  3.482e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.05
Ra Dec: 312.478 10.041
Photon Index (Free Index): 3.62 +/- 9.00
Photon Flux (Free Index): 9.48e-08 +/- 8.92e-08
Energy Flux (Free Index): 1.63e-05 +/- 3.28e-05

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/70503/cmap_HighResolution_685411201_685670401_4FGL_J2049.9+1002_daily_bin1721.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.30e-05', comment='SUCCESS', energy_flux2='1.63e-05', dlogl='5.37e-01', photon_flux2='9.48e-08', job_status='DONE', time_completed='2022-09-24 01:25:21.654228', photon_index_error2='9.00', photon_index2='3.62', ts='0.84', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.36e-07', energy_flux_error2='3.28e-05', EG='0.70', time_epoch_completed='1664007921.65', return_code='0', job_id='70503', GAL2='1.07', EG2='0.62', return_code2='0', photon_flux_error2='8.92e-08', ts2='2.05', photon_index='2.39' WHERE bin_id='1721' AND source_name='4FGL J2049.9+1002' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 24 01:25:21 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 70503: <4FGL_J2049.9+1002_daily_bin1721> in cluster <slac> Done

Job <4FGL_J2049.9+1002_daily_bin1721> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sat Sep 24 01:10:27 2022
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 24 01:11:33 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 24 01:11:33 2022
Terminated at Sat Sep 24 01:25:22 2022
Results reported at Sat Sep 24 01:25:22 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2049.9+1002_daily_bin1721 312.478 10.0407 685411201 685670401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2049.9+1002 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   781.47 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             358.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            895 sec.

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

