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


Performing analysis on: 4FGL_J2149.7+1917_daily_bin1736
RA = 327.444, Dec = 19.2859
tmin = 689299201, tmax = 689558401
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='963300', job_status='RUN', time_executed='2022-11-08 00:41:06.173598', time_epoch_executed='1667896866.17' WHERE source_name='4FGL J2149.7+1917' and cadence='daily' and bin_id='1736'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/963300

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/963300/ft1_4FGL_J2149.7+1917_daily_bin1736.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/963300/ft2_4FGL_J2149.7+1917_daily_bin1736.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/963300/ft1_4FGL_J2149.7+1917_daily_bin1736.fits outfile=/scratch/kocevski/963300/ft1_filteredMKT_4FGL_J2149.7+1917_daily_bin1736.fits ra=327.444 dec=19.2859 rad=12.0 tmin=689299201.0 tmax=689558401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.57
user 3.33
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/963300/ft2_4FGL_J2149.7+1917_daily_bin1736.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/963300/ft2_4FGL_J2149.7+1917_daily_bin1736.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/963300/ft1_filteredMKT_4FGL_J2149.7+1917_daily_bin1736.fits evtable="EVENTS" outfile="/scratch/kocevski/963300/ft1_filtered_4FGL_J2149.7+1917_daily_bin1736.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.33
sys 0.15

Number of photons that the gtmktime cut: 806

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/963300/ft1_filtered_4FGL_J2149.7+1917_daily_bin1736.fits" evtable="EVENTS" scfile=/scratch/kocevski/963300/ft2_4FGL_J2149.7+1917_daily_bin1736.fits sctable="SC_DATA" outfile=/scratch/kocevski/963300/ltcube_689299201_689558401_4FGL_J2149.7+1917_daily_bin1736.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/963300/ft2_4FGL_J2149.7+1917_daily_bin1736.fits
.....................!
real 12.23
user 11.78
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/963300/ft1_filtered_4FGL_J2149.7+1917_daily_bin1736.fits evtable="EVENTS" scfile=/scratch/kocevski/963300/ft2_4FGL_J2149.7+1917_daily_bin1736.fits sctable="SC_DATA" expcube=/scratch/kocevski/963300/ltcube_689299201_689558401_4FGL_J2149.7+1917_daily_bin1736.fits outfile=/scratch/kocevski/963300/expmap_689299201_689558401_4FGL_J2149.7+1917_daily_bin1736.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/963300/ltcube_689299201_689558401_4FGL_J2149.7+1917_daily_bin1736.fits
.....................!
real 192.09
user 185.37
sys 5.45

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 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 161 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 J2149.7+1917 @ 327.444 19.2859

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/963300/ft1_filtered_4FGL_J2149.7+1917_daily_bin1736.fits scfile=/scratch/kocevski/963300/ft2_4FGL_J2149.7+1917_daily_bin1736.fits outfile=/scratch/kocevski/963300/cmap_689299201_689558401_4FGL_J2149.7+1917_daily_bin1736.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=327.444 yref=19.2859 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/963300/ft1_filtered_4FGL_J2149.7+1917_daily_bin1736.fits scfile=/scratch/kocevski/963300/ft2_4FGL_J2149.7+1917_daily_bin1736.fits outfile=/scratch/kocevski/963300/cmap_HighResolution_689299201_689558401_4FGL_J2149.7+1917_daily_bin1736.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=327.444 yref=19.2859 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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/963300/ft1_filtered_4FGL_J2149.7+1917_daily_bin1736.fits evtable="EVENTS" scfile=/scratch/kocevski/963300/ft2_4FGL_J2149.7+1917_daily_bin1736.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/963300/Model_4FGL_J2149.7+1917_daily_bin1736.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
Working on...
/scratch/kocevski/963300/ft1_filtered_4FGL_J2149.7+1917_daily_bin1736.fits.....................!
real 121.62
user 119.75
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/963300/ft1_filtered_4FGL_J2149.7+1917_daily_bin1736.fits', '/scratch/kocevski/963300/ft2_4FGL_J2149.7+1917_daily_bin1736.fits', expMap='/scratch/kocevski/963300/expmap_689299201_689558401_4FGL_J2149.7+1917_daily_bin1736.fits', expCube='/scratch/kocevski/963300/ltcube_689299201_689558401_4FGL_J2149.7+1917_daily_bin1736.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/963300/Model_4FGL_J2149.7+1917_daily_bin1736.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2149.7+1917'

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  7.294e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
278        Index:  2.521e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
279        Scale:  8.988e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/963300/ft1_filtered_4FGL_J2149.7+1917_daily_bin1736.fits
Spacecraft file(s): /scratch/kocevski/963300/ft2_4FGL_J2149.7+1917_daily_bin1736.fits
Exposure map: /scratch/kocevski/963300/expmap_689299201_689558401_4FGL_J2149.7+1917_daily_bin1736.fits
Exposure cube: /scratch/kocevski/963300/ltcube_689299201_689558401_4FGL_J2149.7+1917_daily_bin1736.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/963300/Model_4FGL_J2149.7+1917_daily_bin1736.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) = 8982.43548108

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .65573E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .11197E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .69562E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    28.942       1.0000          .0000       .10000E+07
     5 'norm      '    .29248E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .11737E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    .22828E-02   1.0000          .0000       .10000E+07
     8 'norm      '    2.1536       1.0000          .0000       .10000E+07
     9 'norm      '    .38630E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    60.122       1.0000          .0000       .10000E+07
    11 'Prefactor '    .33703E-03   1.0000          .0000       .10000E+07
    12 'norm      '    1.3628       1.0000          .0000       .10000E+07
    13 'Prefactor '    45.473       1.0000          .0000       .10000E+07
    14 'norm      '    11.263       1.0000          .0000       .10000E+07
    15 'Prefactor '    .35333E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    5.7683       1.0000          .0000       .10000E+07
    17 'Normalizat'    .68867       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0430       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8982.365     FROM MIGRAD    STATUS=CONVERGED    129 CALLS     1331 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .41078E-08    9.2787        .36904E-06** at limit **
   2  Prefactor     .59377E-05    25.227        .76920E-05** at limit **
   3  Prefactor     .89493E-01    2.7233        .11791E-05** at limit **
   4  Prefactor     30.195        18.519       -.51964E-05    .18081E-01
   5  norm           .0000        1.9727        .20439E-06** at limit **
   6  Prefactor     .91704E-07    20.460        .24984E-05** at limit **
   7  Prefactor     .14026E-05    30.421       -.43601E-05** at limit **
   8  norm          2.1115        2.6176        .10251E-05   -.82083E-03
   9  norm           .0000        .69234        .80200E-06** at limit **
  10  Prefactor     62.247        28.215       -.55520E-05    .12758    
  11  Prefactor     .71225E-05    108.58        .54240E-05** at limit **
  12  norm          1.3573        1.1258        .16349E-06   -.27009E-02
  13  Prefactor     45.929        9.6141        .20865E-05    .27383    
  14  norm          11.286        6.2872       -.11641E-05    .33160E-02
  15  Prefactor     .13645E-06    17.683        .32148E-05** at limit **
  16  Prefactor     5.3407        15.070        .54077E-05   -.17334E-01
  17  Normalizat    .68763        .28001        .52364E-05   -.82372E-04
  18  Prefactor     1.0425        .11702       -.14926E-04   -.76345E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.10783e-09
  Prefactor  = 5.93769e-06
  Prefactor  = 0.0894933
  Prefactor  = 30.1948
  norm       = 0
  Prefactor  = 9.17044e-08
  Prefactor  = 1.4026e-06
  norm       = 2.11153
  norm       = 0
  Prefactor  = 62.2474
  Prefactor  = 7.12247e-06
  norm       = 1.35734
  Prefactor  = 45.9287
  norm       = 11.2857
  Prefactor  = 1.36446e-07
  Prefactor  = 5.34074
  Normalizat = 0.687628
  Prefactor  = 1.04254
 **********
 **   18 **HESSE 
 **********

 FCN=   8982.365     FROM HESSE     STATUS=OK           282 CALLS     1613 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .41078E-08    9.2710        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .59377E-05    48.542        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .89493E-01    8.0361        .14833E-01   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     30.195        38.390        .18591E-03   -1.5598    
   5  norm           .0000        1.9675        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .91704E-07    19.886        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .14026E-05    45.854        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.1115        2.7246        .70177E-03   -1.5679    
   9  norm           .0000        .68847        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     62.247        41.285        .12898E-03   -1.5550    
  11  Prefactor     .71225E-05    112.82        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.3573        1.1357        .93482E-04   -1.5685    
  13  Prefactor     45.929        23.881        .14831E-03   -1.5572    
  14  norm          11.286        6.3212        .29827E-03   -1.5641    
  15  Prefactor     .13645E-06    17.749        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.3407        15.589        .41795E-03   -1.5662    
  17  Normalizat    .68763        .25833        .10427       -1.0438    
  18  Prefactor     1.0425        .10356        .40337E-01   -.91325    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69163e-06
Minuit parameter uncertainties:
  1  0.000389669
  2  0.0339548
  3  1.69608
  4  38.3903
  5  5.07712e-06
  6  0.00270111
  7  0.0160394
  8  2.72458
  9  4.3715e-06
  10  41.2848
  11  0.0566965
  12  1.13573
  13  23.8814
  14  6.32118
  15  0.00311257
  16  15.5891
  17  0.258792
  18  0.103575
Done.

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

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  6.225e+01  4.128e+01  0.000e+00  1.000e+06 ( 1.000e-13)
278        Index:  2.521e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
279        Scale:  8.988e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  1.043e+00  1.036e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  6.876e-01  2.588e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.88
Ra Dec: 327.444 19.286
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 1.04e-07 +/- 6.88e-08
Energy Flux (Fixed Index): 2.95e-05 +/- 1.95e-05

TS (Fixed Index): 3.88
Ra Dec: 327.444 19.286
Photon Flux Upper Limit: 2.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.77e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/963300/likelihoodResults_689299201_689558401_4FGL_J2149.7+1917_daily_bin1736.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) = 8982.28430272
delta logL = 0.081144465441

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8982.27122013
delta logL = 0.0942270574633

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8982.271     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      305 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.146        69.998        .59494E-05    .11001E-01
   2  Index         2.8625        1.1233        .65823E-02    .51245E-03
   3  Normalizat    .64680        .29412        .47556E-03    .89169E-04
   4  Prefactor     1.0553        .12291        .16494E-03   -.10159E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.1455
  Index      = 2.86248
  Normalizat = 0.646804
  Prefactor  = 1.05534
 **********
 **   18 **HESSE 
 **********

 FCN=   8982.271     FROM HESSE     STATUS=OK            25 CALLS      330 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.146        52.542        .11899E-05   -1.5574    
   2  Index         2.8625        .84391        .26329E-03   -.44173    
   3  Normalizat    .64680        .28505        .19022E-04   -1.0603    
   4  Prefactor     1.0553        .11992        .32989E-04   -.90907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.69528e-09
Minuit parameter uncertainties:
  1  52.5426
  2  0.848889
  3  0.285699
  4  0.119948
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/963300': 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) = 8982.27120889
delta logL = 0.0942382994763

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  4.515e+01  5.254e+01  0.000e+00  1.000e+06 ( 1.000e-13)
278        Index:  2.862e+00  8.489e-01  0.000e+00  1.000e+01 (-1.000e+00)
279        Scale:  8.988e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  1.055e+00  1.199e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  6.468e-01  2.857e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.16
Ra Dec: 327.444 19.286
Photon Index (Free Index): 2.86 +/- 0.85
Photon Flux (Free Index): 1.30e-07 +/- 9.37e-08
Energy Flux (Free Index): 2.80e-05 +/- 1.69e-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/963300/cmap_HighResolution_689299201_689558401_4FGL_J2149.7+1917_daily_bin1736.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.77e-02', comment='SUCCESS', photon_flux='1.04e-07', energy_flux2='2.80e-05', photon_flux_error='6.88e-08', dlogl='9.42e-02', energy_flux='2.95e-05', photon_flux2='1.30e-07', job_status='DONE', time_completed='2022-11-08 00:51:47.306538', photon_index_error2='0.85', photon_index2='2.86', ts='3.88', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='2.28e-07', energy_flux_error2='1.69e-05', EG='0.69', time_epoch_completed='1667897507.31', return_code='0', job_id='963300', GAL2='1.06', EG2='0.65', return_code2='0', energy_flux_error='1.95e-05', photon_flux_error2='9.37e-08', ts2='4.16', photon_index='2.52' WHERE bin_id='1736' AND source_name='4FGL J2149.7+1917' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Nov  8 00:51:47 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 963300: <4FGL_J2149.7+1917_daily_bin1736> in cluster <slac> Done

Job <4FGL_J2149.7+1917_daily_bin1736> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Nov  8 00:40:13 2022
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Nov  8 00:40:14 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Nov  8 00:40:14 2022
Terminated at Tue Nov  8 00:51:48 2022
Results reported at Tue Nov  8 00:51:48 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2149.7+1917_daily_bin1736 327.444 19.2859 689299201 689558401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2149.7+1917 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   641.27 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             351.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   694 sec.
    Turnaround time :                            695 sec.

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

