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


Performing analysis on: 4FGL_J1902.9-6748_daily_bin1745
RA = 285.743, Dec = -67.8068
tmin = 691632001, tmax = 691891201
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='652830', job_status='RUN', time_executed='2022-12-05 01:06:00.253253', time_epoch_executed='1670231160.25' WHERE source_name='4FGL J1902.9-6748' and cadence='daily' and bin_id='1745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/652830

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/652830/ft1_4FGL_J1902.9-6748_daily_bin1745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/652830/ft2_4FGL_J1902.9-6748_daily_bin1745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/652830/ft1_4FGL_J1902.9-6748_daily_bin1745.fits outfile=/scratch/kocevski/652830/ft1_filteredMKT_4FGL_J1902.9-6748_daily_bin1745.fits ra=285.743 dec=-67.8068 rad=12.0 tmin=691632001.0 tmax=691891201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.39
user 2.18
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/652830/ft2_4FGL_J1902.9-6748_daily_bin1745.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/652830/ft2_4FGL_J1902.9-6748_daily_bin1745.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/652830/ft1_filteredMKT_4FGL_J1902.9-6748_daily_bin1745.fits evtable="EVENTS" outfile="/scratch/kocevski/652830/ft1_filtered_4FGL_J1902.9-6748_daily_bin1745.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.50
user 0.34
sys 0.14

Number of photons that the gtmktime cut: 581

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/652830/ft1_filtered_4FGL_J1902.9-6748_daily_bin1745.fits" evtable="EVENTS" scfile=/scratch/kocevski/652830/ft2_4FGL_J1902.9-6748_daily_bin1745.fits sctable="SC_DATA" outfile=/scratch/kocevski/652830/ltcube_691632001_691891201_4FGL_J1902.9-6748_daily_bin1745.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/652830/ft2_4FGL_J1902.9-6748_daily_bin1745.fits
.....................!
real 12.29
user 11.94
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/652830/ft1_filtered_4FGL_J1902.9-6748_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/652830/ft2_4FGL_J1902.9-6748_daily_bin1745.fits sctable="SC_DATA" expcube=/scratch/kocevski/652830/ltcube_691632001_691891201_4FGL_J1902.9-6748_daily_bin1745.fits outfile=/scratch/kocevski/652830/expmap_691632001_691891201_4FGL_J1902.9-6748_daily_bin1745.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/652830/ltcube_691632001_691891201_4FGL_J1902.9-6748_daily_bin1745.fits
.....................!
real 192.14
user 187.20
sys 4.57

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 FHES J1642.1-5428 in ROI with RadialDisk spatial model.
Added 217 point sources and 1 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 J1902.9-6748 @ 285.743 -67.8068

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/652830/ft1_filtered_4FGL_J1902.9-6748_daily_bin1745.fits scfile=/scratch/kocevski/652830/ft2_4FGL_J1902.9-6748_daily_bin1745.fits outfile=/scratch/kocevski/652830/cmap_691632001_691891201_4FGL_J1902.9-6748_daily_bin1745.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=285.743 yref=-67.8068 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/652830/ft1_filtered_4FGL_J1902.9-6748_daily_bin1745.fits scfile=/scratch/kocevski/652830/ft2_4FGL_J1902.9-6748_daily_bin1745.fits outfile=/scratch/kocevski/652830/cmap_HighResolution_691632001_691891201_4FGL_J1902.9-6748_daily_bin1745.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=285.743 yref=-67.8068 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/652830/ft1_filtered_4FGL_J1902.9-6748_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/652830/ft2_4FGL_J1902.9-6748_daily_bin1745.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/652830/Model_4FGL_J1902.9-6748_daily_bin1745.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 FHES J1642.1-5428
adding source GAL_V02
Working on...
/scratch/kocevski/652830/ft1_filtered_4FGL_J1902.9-6748_daily_bin1745.fits.....................!
real 60.28
user 58.92
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/652830/ft1_filtered_4FGL_J1902.9-6748_daily_bin1745.fits', '/scratch/kocevski/652830/ft2_4FGL_J1902.9-6748_daily_bin1745.fits', expMap='/scratch/kocevski/652830/expmap_691632001_691891201_4FGL_J1902.9-6748_daily_bin1745.fits', expCube='/scratch/kocevski/652830/ltcube_691632001_691891201_4FGL_J1902.9-6748_daily_bin1745.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/652830/Model_4FGL_J1902.9-6748_daily_bin1745.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1902.9-6748'

4FGL J1902.9-6748
   Spectrum: LogParabola
435         norm:  6.756e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
436        alpha:  2.313e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
437         beta:  1.311e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
438           Eb:  6.088e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/652830/ft1_filtered_4FGL_J1902.9-6748_daily_bin1745.fits
Spacecraft file(s): /scratch/kocevski/652830/ft2_4FGL_J1902.9-6748_daily_bin1745.fits
Exposure map: /scratch/kocevski/652830/expmap_691632001_691891201_4FGL_J1902.9-6748_daily_bin1745.fits
Exposure cube: /scratch/kocevski/652830/ltcube_691632001_691891201_4FGL_J1902.9-6748_daily_bin1745.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/652830/Model_4FGL_J1902.9-6748_daily_bin1745.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) = 6189.56761261

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3569       1.0000          .0000       .10000E+07
     2 'norm      '    .56386E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    34.408       1.0000          .0000       .10000E+07
     4 'Prefactor '    50.611       1.0000          .0000       .10000E+07
     5 'Prefactor '    16.269       1.0000          .0000       .10000E+07
     6 'norm      '    .21039E-07   1.0000          .0000       .10000E+07
     7 'Prefactor '    .63457E-01   1.0000          .0000       .10000E+07
     8 'norm      '    47.476       1.0000          .0000       .10000E+07
     9 'Prefactor '    .19750       1.0000          .0000       .10000E+07
    10 'norm      '    9.3065       1.0000          .0000       .10000E+07
    11 'Prefactor '    .70020E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .18127E-01   1.0000          .0000       .10000E+07
    13 'norm      '    2.9726       1.0000          .0000       .10000E+07
    14 'norm      '    .20296E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    2.7545       1.0000          .0000       .10000E+07
    16 'Normalizat'    .96389       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0465       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6189.510     FROM MIGRAD    STATUS=CONVERGED    120 CALLS     1177 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5040        6.3645       -.22361E-08    .11250E-03
   2  norm          .60111E-05    107.70        .11939E-05** at limit **
   3  Prefactor     34.554        24.408        .38268E-08    .10951    
   4  Prefactor     51.801        9.3678       -.64083E-07    .10853    
   5  Prefactor     15.602        4.6215        .56041E-07    .12282E-02
   6  norm           .0000        .55233       -.70712E-08** at limit **
   7  Prefactor     .55511E-10    37.733        .81109E-07** at limit **
   8  norm          47.808        15.715        .42832E-07   -.18825    
   9  Prefactor     .27756E-08    56.144        .17607E-06** at limit **
  10  norm          9.2020        11.174        .53086E-07    .28989E-02
  11  Prefactor      .0000        8.9869       -.11006E-06** at limit **
  12  Prefactor     .22204E-09    17.590        .14494E-06** at limit **
  13  norm          2.9733        2.1239        .71797E-08    .11178E-02
  14  norm          .48417E-06    68.509        .39881E-07** at limit **
  15  Prefactor     3.1671        13.946       -.33219E-06   -.34894E-02
  16  Normalizat    .96195        .34386       -.36956E-05    .34109E-04
  17  Prefactor     1.0467        .13264        .18705E-05    .28508E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.50405
  norm       = 6.01114e-06
  Prefactor  = 34.5543
  Prefactor  = 51.8014
  Prefactor  = 15.6019
  norm       = 0
  Prefactor  = 5.55112e-11
  norm       = 47.8078
  Prefactor  = 2.77556e-09
  norm       = 9.20197
  Prefactor  = 0
  Prefactor  = 2.22045e-10
  norm       = 2.97334
  norm       = 4.84168e-07
  Prefactor  = 3.16713
  Normalizat = 0.961951
  Prefactor  = 1.04668
 **********
 **   18 **HESSE 
 **********

 FCN=   6189.510     FROM HESSE     STATUS=OK           255 CALLS     1432 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5040        6.3697        .43397E-03   -1.5661    
   2  norm          .60111E-05    112.69        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     34.554        26.975        .17050E-03   -1.5590    
   4  Prefactor     51.801        41.513        .14058E-03   -1.5564    
   5  Prefactor     15.602        29.650        .24804E-03   -1.5629    
   6  norm           .0000        .55050        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .55511E-10    37.775        .15040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          47.808        33.181        .14514E-03   -1.5570    
   9  Prefactor     .27756E-08    56.151        .11820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          9.2020        11.201        .32828E-03   -1.5647    
  11  Prefactor      .0000        8.9927        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .22204E-09    17.418        .17163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.9733        2.1324        .58865E-03   -1.5673    
  14  norm          .48417E-06    71.154        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.1671        14.042        .61308E-03   -1.5672    
  16  Normalizat    .96195        .30032        .97150E-01   -.94316    
  17  Prefactor     1.0467        .11407        .40118E-01   -.91189    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50298e-06
Minuit parameter uncertainties:
  1  6.36975
  2  0.0520541
  3  26.9756
  4  41.5135
  5  29.6508
  6  1.23077e-06
  7  9.88674e-05
  8  33.1811
  9  0.00079145
  10  11.2012
  11  5.78723e-06
  12  0.000117331
  13  2.13236
  14  0.0117391
  15  13.3377
  16  0.300847
  17  0.114092
Done.

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

Extracting fit parameters...

4FGL J1902.9-6748
   Spectrum: LogParabola
435         norm:  9.202e+00  1.120e+01  0.000e+00  1.000e+06 ( 1.000e-12)
436        alpha:  2.313e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
437         beta:  1.311e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
438           Eb:  6.088e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
736    Prefactor:  1.047e+00  1.141e-01  0.000e+00  1.000e+01 ( 1.000e+00)
737        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
738        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
732   Normalization:  9.620e-01  3.008e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.99
Ra Dec: 285.743 -67.807
Photon Flux Upper Limit: 1.47e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.96e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/652830/likelihoodResults_691632001_691891201_4FGL_J1902.9-6748_daily_bin1745.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) = 6189.49153484
delta logL = 0.0186406041612

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6189.49097125
delta logL = 0.0192041897881

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6189.491     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      205 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.2733        22.518        .33014E-03   -.54747E-03
   2  alpha         2.0248        1.8301        .42143       -.29852E-04
   3  Normalizat    .97284        .30037        .96676E-01   -.28472E-04
   4  Prefactor     1.0442        .11549        .40268E-01   -.71302E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.27333
  alpha      = 2.02478
  Normalizat = 0.97284
  Prefactor  = 1.04423
 **********
 **   18 **HESSE 
 **********

 FCN=   6189.491     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.2733        11.535        .13205E-04   -1.5647    
   2  alpha         2.0248        1.2995        .32070E-01   -.19125    
   3  Normalizat    .97284        .34033        .42827E-03   -.93946    
   4  Prefactor     1.0442        .13239        .16099E-03   -.91269    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.96743e-11
Minuit parameter uncertainties:
  1  11.5348
  2  1.36943
  3  0.341086
  4  0.132434
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/652830': 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) = 6189.49095158
delta logL = 0.019223865891

Extracting fit parameters...

4FGL J1902.9-6748
   Spectrum: LogParabola
435         norm:  9.273e+00  1.153e+01  0.000e+00  1.000e+06 ( 1.000e-12)
436        alpha:  2.025e+00  1.369e+00  0.000e+00  5.000e+00 ( 1.000e+00)
437         beta:  1.311e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
438           Eb:  6.088e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
736    Prefactor:  1.044e+00  1.324e-01  0.000e+00  1.000e+01 ( 1.000e+00)
737        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
738        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
732   Normalization:  9.728e-01  3.411e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.02
Ra Dec: 285.743 -67.807
Photon Index (Free Index): 2.02 +/- 1.37
Photon Flux (Free Index): 2.88e-08 +/- 5.11e-08
Energy Flux (Free Index): 1.36e-05 +/- 1.84e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/652830/cmap_HighResolution_691632001_691891201_4FGL_J1902.9-6748_daily_bin1745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.96e-05', comment='SUCCESS', energy_flux2='1.36e-05', dlogl='1.92e-02', photon_flux2='2.88e-08', job_status='DONE', time_completed='2022-12-05 01:15:33.487856', photon_index_error2='1.37', photon_index2='2.02', ts='0.99', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.47e-07', energy_flux_error2='1.84e-05', EG='0.96', time_epoch_completed='1670231733.49', return_code='0', job_id='652830', GAL2='1.04', EG2='0.97', return_code2='0', photon_flux_error2='5.11e-08', ts2='1.02', photon_index='2.31' WHERE bin_id='1745' AND source_name='4FGL J1902.9-6748' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec  5 01:15:33 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 652830: <4FGL_J1902.9-6748_daily_bin1745> in cluster <slac> Done

Job <4FGL_J1902.9-6748_daily_bin1745> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Dec  5 01:05:21 2022
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec  5 01:05:22 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec  5 01:05:22 2022
Terminated at Mon Dec  5 01:15:34 2022
Results reported at Mon Dec  5 01:15:34 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1902.9-6748_daily_bin1745 285.743 -67.8068 691632001 691891201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1902.9-6748 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   575.39 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             349.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   611 sec.
    Turnaround time :                            613 sec.

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

