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


Performing analysis on: 4FGL_J2049.9+1002_daily_bin1730
RA = 312.478, Dec = 10.0407
tmin = 687744001, tmax = 688003201
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='467853', job_status='RUN', time_executed='2022-10-21 00:31:21.193759', time_epoch_executed='1666337481.19' WHERE source_name='4FGL J2049.9+1002' and cadence='daily' and bin_id='1730'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/467853

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/467853/ft1_4FGL_J2049.9+1002_daily_bin1730.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/467853/ft2_4FGL_J2049.9+1002_daily_bin1730.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/467853/ft1_4FGL_J2049.9+1002_daily_bin1730.fits outfile=/scratch/kocevski/467853/ft1_filteredMKT_4FGL_J2049.9+1002_daily_bin1730.fits ra=312.478 dec=10.0407 rad=12.0 tmin=687744001.0 tmax=688003201.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 4.89
user 4.64
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/467853/ft2_4FGL_J2049.9+1002_daily_bin1730.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/467853/ft1_filteredMKT_4FGL_J2049.9+1002_daily_bin1730.fits evtable="EVENTS" outfile="/scratch/kocevski/467853/ft1_filtered_4FGL_J2049.9+1002_daily_bin1730.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.31
sys 0.17

Number of photons that the gtmktime cut: 862

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/467853/ft1_filtered_4FGL_J2049.9+1002_daily_bin1730.fits" evtable="EVENTS" scfile=/scratch/kocevski/467853/ft2_4FGL_J2049.9+1002_daily_bin1730.fits sctable="SC_DATA" outfile=/scratch/kocevski/467853/ltcube_687744001_688003201_4FGL_J2049.9+1002_daily_bin1730.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/467853/ft2_4FGL_J2049.9+1002_daily_bin1730.fits
.....................!
real 11.67
user 11.32
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/467853/ft1_filtered_4FGL_J2049.9+1002_daily_bin1730.fits evtable="EVENTS" scfile=/scratch/kocevski/467853/ft2_4FGL_J2049.9+1002_daily_bin1730.fits sctable="SC_DATA" expcube=/scratch/kocevski/467853/ltcube_687744001_688003201_4FGL_J2049.9+1002_daily_bin1730.fits outfile=/scratch/kocevski/467853/expmap_687744001_688003201_4FGL_J2049.9+1002_daily_bin1730.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/467853/ltcube_687744001_688003201_4FGL_J2049.9+1002_daily_bin1730.fits
.....................!
real 190.55
user 185.39
sys 4.81

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/467853/ft1_filtered_4FGL_J2049.9+1002_daily_bin1730.fits scfile=/scratch/kocevski/467853/ft2_4FGL_J2049.9+1002_daily_bin1730.fits outfile=/scratch/kocevski/467853/cmap_687744001_688003201_4FGL_J2049.9+1002_daily_bin1730.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/467853/ft1_filtered_4FGL_J2049.9+1002_daily_bin1730.fits scfile=/scratch/kocevski/467853/ft2_4FGL_J2049.9+1002_daily_bin1730.fits outfile=/scratch/kocevski/467853/cmap_HighResolution_687744001_688003201_4FGL_J2049.9+1002_daily_bin1730.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/467853/ft1_filtered_4FGL_J2049.9+1002_daily_bin1730.fits evtable="EVENTS" scfile=/scratch/kocevski/467853/ft2_4FGL_J2049.9+1002_daily_bin1730.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/467853/Model_4FGL_J2049.9+1002_daily_bin1730.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/467853/ft1_filtered_4FGL_J2049.9+1002_daily_bin1730.fits.....................!
real 190.66
user 189.06
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/467853/ft1_filtered_4FGL_J2049.9+1002_daily_bin1730.fits', '/scratch/kocevski/467853/ft2_4FGL_J2049.9+1002_daily_bin1730.fits', expMap='/scratch/kocevski/467853/expmap_687744001_688003201_4FGL_J2049.9+1002_daily_bin1730.fits', expCube='/scratch/kocevski/467853/ltcube_687744001_688003201_4FGL_J2049.9+1002_daily_bin1730.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/467853/Model_4FGL_J2049.9+1002_daily_bin1730.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/467853/ft1_filtered_4FGL_J2049.9+1002_daily_bin1730.fits
Spacecraft file(s): /scratch/kocevski/467853/ft2_4FGL_J2049.9+1002_daily_bin1730.fits
Exposure map: /scratch/kocevski/467853/expmap_687744001_688003201_4FGL_J2049.9+1002_daily_bin1730.fits
Exposure cube: /scratch/kocevski/467853/ltcube_687744001_688003201_4FGL_J2049.9+1002_daily_bin1730.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/467853/Model_4FGL_J2049.9+1002_daily_bin1730.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) = 8989.42695935

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 8989.37556928

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30875E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    20.101       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.4216       1.0000          .0000       .10000E+07
     4 'norm      '    .13987       1.0000          .0000       .10000E+07
     5 'Prefactor '    .24536E-07   1.0000          .0000       .10000E+07
     6 'norm      '    1.3747       1.0000          .0000       .10000E+07
     7 'Prefactor '    2.4071       1.0000          .0000       .10000E+07
     8 'Prefactor '    4.9869       1.0000          .0000       .10000E+07
     9 'Prefactor '    .11263E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .56205E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    36.189       1.0000          .0000       .10000E+07
    12 'norm      '    3.1980       1.0000          .0000       .10000E+07
    13 'Prefactor '    27.548       1.0000          .0000       .10000E+07
    14 'Prefactor '    1.3199       1.0000          .0000       .10000E+07
    15 'Normalizat'    1.1191       1.0000         .10000E-01   10.000    
    16 'Prefactor '    .91013       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=   8989.375     FROM MIGRAD    STATUS=CONVERGED    152 CALLS     1192 TOTAL
                     EDM=   .15E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        5.9055        .15072E-07** at limit **
   2  Prefactor     19.559        30.230       -.76759E-07   -.25913E-03
   3  Prefactor     2.0470        213.92        .88372E-06   -.10712E-03
   4  norm          .13523        1.3099       -.11381E-08** at limit **
   5  Prefactor      .0000        18.651        .12003E-06** at limit **
   6  norm          1.3682        5.4599        .11000E-06   -.39028E-04
   7  Prefactor     2.4034        17.153       -.11041E-06   -.19768E-05
   8  Prefactor     4.9743        14.947       -.59193E-07   -.38555E-04
   9  Prefactor      .0000        16.692       -.32982E-06** at limit **
  10  Prefactor      .0000        7.4952        .45922E-07** at limit **
  11  Prefactor     36.757        88.882       -.27161E-07    .71887E-05
  12  norm          3.1977        2.9021       -.42943E-07    .17049E-03
  13  Prefactor     26.739        22.247        .14981E-07    .26515E-04
  14  Prefactor     1.3156        5.7701       -.61480E-09   -.77303E-05
  15  Normalizat    1.1203        .31549        .11135E-05   -.66479E-05
  16  Prefactor     .91004        .10112       -.17048E-07   -.20146E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 19.5587
  Prefactor  = 2.04703
  norm       = 0.13523
  Prefactor  = 0
  norm       = 1.36821
  Prefactor  = 2.40336
  Prefactor  = 4.97432
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 36.7569
  norm       = 3.19771
  Prefactor  = 26.7387
  Prefactor  = 1.31563
  Normalizat = 1.12029
  Prefactor  = 0.910042
 **********
 **   18 **HESSE 
 **********

 FCN=   8989.375     FROM HESSE     STATUS=NOT POSDEF   245 CALLS     1437 TOTAL
                     EDM=   .45E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        5.5846        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.559        234.05        .22312E-03   -1.5620    
   3  Prefactor     2.0470        5927.0        .90683E-03   -1.5679    
   4  norm          .13523        11.823        .21596E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        17.590        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.3682        5.3846        .92889E-03   -1.5685    
   7  Prefactor     2.4034        16.153        .65961E-03   -1.5677    
   8  Prefactor     4.9743        14.310        .45009E-03   -1.5663    
   9  Prefactor      .0000        15.796        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        7.0818        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     36.757        85.809        .16625E-03   -1.5587    
  12  norm          3.1977        2.8182        .56633E-03   -1.5672    
  13  Prefactor     26.739        21.516        .19056E-03   -1.5605    
  14  Prefactor     1.3156        5.3349        .95750E-03   -1.5685    
  15  Normalizat    1.1203        .24796        .90705E-01   -.89103    
  16  Prefactor     .91004        .77037E-01    .34130E-01   -.95791    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.53811e-05
Minuit parameter uncertainties:
  1  5.55635e-08
  2  135.325
  3  220.516
  4  2.5289
  5  3.11096e-06
  6  5.38463
  7  12.4612
  8  14.3101
  9  3.52375e-06
  10  3.54699e-06
  11  85.8123
  12  2.81824
  13  21.5161
  14  5.29861
  15  0.248222
  16  0.0770462
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 8989.37473908

Extracting fit parameters...

4FGL J2049.9+1002
   Spectrum: LogParabola
407         norm:  1.368e+00  5.385e+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:  9.100e-01  7.705e-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:  1.120e+00  2.482e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.07
Ra Dec: 312.478 10.041
Photon Flux Upper Limit: 8.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.68e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/467853/likelihoodResults_687744001_688003201_4FGL_J2049.9+1002_daily_bin1730.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) = 8989.37396673
delta logL = 0.000772358454924

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8989.37394452
delta logL = 0.000794561836301

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3448       1.0000          .0000       .10000E+07
     2 'alpha     '    2.4913       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1194       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91020       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8989.374     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      278 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3371        6.8398        .18882E-03    .11343E-01
   2  alpha         2.4859        3.5708        .75273E-01    .44386E-04
   3  Normalizat    1.1195        .28850        .40185E-03   -.30554E-05
   4  Prefactor     .91020        .99225E-01    .15079E-03   -.13269E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.33712
  alpha      = 2.48586
  Normalizat = 1.11954
  Prefactor  = 0.910196
 **********
 **   18 **HESSE 
 **********

 FCN=   8989.374     FROM HESSE     STATUS=OK            27 CALLS      305 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3371        5.6117        .37763E-04   -1.5685    
   2  alpha         2.4859        2.0176        .15055E-01   -.56551E-02
   3  Normalizat    1.1195        .28871        .16074E-04   -.89127    
   4  Prefactor     .91020        .99260E-01    .60318E-05   -.95786    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71647e-12
Minuit parameter uncertainties:
  1  5.47854
  2  2.34787
  3  0.289117
  4  0.0992793
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/467853': 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) = 8989.37393972
delta logL = 0.000799360683231

Extracting fit parameters...

4FGL J2049.9+1002
   Spectrum: LogParabola
407         norm:  1.337e+00  5.479e+00  0.000e+00  1.000e+06 ( 1.000e-12)
408        alpha:  2.486e+00  2.348e+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:  9.102e-01  9.928e-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:  1.120e+00  2.891e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.07
Ra Dec: 312.478 10.041

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/467853/cmap_HighResolution_687744001_688003201_4FGL_J2049.9+1002_daily_bin1730.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.68e-05', job_status='DONE', photon_flux_upper_limit='8.45e-08', time_completed='2022-10-21 00:44:12.805716', job_id='467853', GAL2='0.91', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1666338252.81', return_code2='0', ts='0.07', comment='SUCCESS', return_code='102', GAL='0.91', dlogl='7.99e-04', ts2='0.08', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1730' AND source_name='4FGL J2049.9+1002' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Oct 21 00:44:12 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 467853: <4FGL_J2049.9+1002_daily_bin1730> in cluster <slac> Done

Job <4FGL_J2049.9+1002_daily_bin1730> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Oct 21 00:30:32 2022
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Oct 21 00:30:33 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Oct 21 00:30:33 2022
Terminated at Fri Oct 21 00:44:13 2022
Results reported at Fri Oct 21 00:44:13 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2049.9+1002_daily_bin1730 312.478 10.0407 687744001 688003201 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 :                                   773.18 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             360.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            821 sec.

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

