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


Performing analysis on: 4FGL_J2149.7+1917_daily_bin1735
RA = 327.444, Dec = 19.2859
tmin = 689040001, tmax = 689299201
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='866573', job_status='RUN', time_executed='2022-11-05 00:38:50.196533', time_epoch_executed='1667633930.2' WHERE source_name='4FGL J2149.7+1917' and cadence='daily' and bin_id='1735'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/866573

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/866573/ft1_4FGL_J2149.7+1917_daily_bin1735.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/866573/ft2_4FGL_J2149.7+1917_daily_bin1735.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/866573/ft1_4FGL_J2149.7+1917_daily_bin1735.fits outfile=/scratch/kocevski/866573/ft1_filteredMKT_4FGL_J2149.7+1917_daily_bin1735.fits ra=327.444 dec=19.2859 rad=12.0 tmin=689040001.0 tmax=689299201.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.67
user 3.42
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/866573/ft2_4FGL_J2149.7+1917_daily_bin1735.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/866573/ft1_filteredMKT_4FGL_J2149.7+1917_daily_bin1735.fits evtable="EVENTS" outfile="/scratch/kocevski/866573/ft1_filtered_4FGL_J2149.7+1917_daily_bin1735.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.52
user 0.31
sys 0.18

Number of photons that the gtmktime cut: 868

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/866573/ft1_filtered_4FGL_J2149.7+1917_daily_bin1735.fits" evtable="EVENTS" scfile=/scratch/kocevski/866573/ft2_4FGL_J2149.7+1917_daily_bin1735.fits sctable="SC_DATA" outfile=/scratch/kocevski/866573/ltcube_689040001_689299201_4FGL_J2149.7+1917_daily_bin1735.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/866573/ft2_4FGL_J2149.7+1917_daily_bin1735.fits
.....................!
real 12.19
user 11.78
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/866573/ft1_filtered_4FGL_J2149.7+1917_daily_bin1735.fits evtable="EVENTS" scfile=/scratch/kocevski/866573/ft2_4FGL_J2149.7+1917_daily_bin1735.fits sctable="SC_DATA" expcube=/scratch/kocevski/866573/ltcube_689040001_689299201_4FGL_J2149.7+1917_daily_bin1735.fits outfile=/scratch/kocevski/866573/expmap_689040001_689299201_4FGL_J2149.7+1917_daily_bin1735.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/866573/ltcube_689040001_689299201_4FGL_J2149.7+1917_daily_bin1735.fits
.....................!
real 195.74
user 189.06
sys 6.15

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/866573/ft1_filtered_4FGL_J2149.7+1917_daily_bin1735.fits scfile=/scratch/kocevski/866573/ft2_4FGL_J2149.7+1917_daily_bin1735.fits outfile=/scratch/kocevski/866573/cmap_689040001_689299201_4FGL_J2149.7+1917_daily_bin1735.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/866573/ft1_filtered_4FGL_J2149.7+1917_daily_bin1735.fits scfile=/scratch/kocevski/866573/ft2_4FGL_J2149.7+1917_daily_bin1735.fits outfile=/scratch/kocevski/866573/cmap_HighResolution_689040001_689299201_4FGL_J2149.7+1917_daily_bin1735.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.55
user 0.37
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/866573/ft1_filtered_4FGL_J2149.7+1917_daily_bin1735.fits evtable="EVENTS" scfile=/scratch/kocevski/866573/ft2_4FGL_J2149.7+1917_daily_bin1735.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/866573/Model_4FGL_J2149.7+1917_daily_bin1735.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/866573/ft1_filtered_4FGL_J2149.7+1917_daily_bin1735.fits.....................!
real 133.63
user 132.11
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/866573/ft1_filtered_4FGL_J2149.7+1917_daily_bin1735.fits', '/scratch/kocevski/866573/ft2_4FGL_J2149.7+1917_daily_bin1735.fits', expMap='/scratch/kocevski/866573/expmap_689040001_689299201_4FGL_J2149.7+1917_daily_bin1735.fits', expCube='/scratch/kocevski/866573/ltcube_689040001_689299201_4FGL_J2149.7+1917_daily_bin1735.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/866573/Model_4FGL_J2149.7+1917_daily_bin1735.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/866573/ft1_filtered_4FGL_J2149.7+1917_daily_bin1735.fits
Spacecraft file(s): /scratch/kocevski/866573/ft2_4FGL_J2149.7+1917_daily_bin1735.fits
Exposure map: /scratch/kocevski/866573/expmap_689040001_689299201_4FGL_J2149.7+1917_daily_bin1735.fits
Exposure cube: /scratch/kocevski/866573/ltcube_689040001_689299201_4FGL_J2149.7+1917_daily_bin1735.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/866573/Model_4FGL_J2149.7+1917_daily_bin1735.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) = 9508.03931972

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.036       1.0000          .0000       .10000E+07
     2 'Prefactor '    101.96       1.0000          .0000       .10000E+07
     3 'Prefactor '    .55757E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .70503E-02   1.0000          .0000       .10000E+07
     5 'norm      '    .98777E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .50565       1.0000          .0000       .10000E+07
     7 'Prefactor '    51.586       1.0000          .0000       .10000E+07
     8 'norm      '    1.0527       1.0000          .0000       .10000E+07
     9 'norm      '    1.9833       1.0000          .0000       .10000E+07
    10 'Prefactor '    189.12       1.0000          .0000       .10000E+07
    11 'Prefactor '    .20926E-02   1.0000          .0000       .10000E+07
    12 'norm      '    1.7589       1.0000          .0000       .10000E+07
    13 'Prefactor '    19.167       1.0000          .0000       .10000E+07
    14 'norm      '    .20156E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    .13155E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .31279       1.0000          .0000       .10000E+07
    17 'Normalizat'    .70552       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0821       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.

 FCN=   9508.034     FROM MIGRAD    STATUS=CONVERGED    399 CALLS     1627 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.111        32.951        .20131E-07   -.14718E-03
   2  Prefactor     102.03        87.878        .32536E-07    .64791E-04
   3  Prefactor      .0000        16.017        .14445E-08** at limit **
   4  Prefactor      .0000        13.116       -.12931E-07** at limit **
   5  norm           .0000        7.6118       -.14612E-07** at limit **
   6  Prefactor     .51681        4.8086        .11745E-06   -.35082E-02
   7  Prefactor     51.215        84.233       -.93909E-07   -.32653E-03
   8  norm          1.0607        2.4433        .11843E-06    .21000E-02
   9  norm          1.9787        2.3077        .36714E-07   -.27904E-03
  10  Prefactor     188.39        47.023       -.34908E-07   -.17506E-02
  11  Prefactor      .0000        17.428        .49889E-08** at limit **
  12  norm          1.7600        1.0067        .77224E-08   -.32063E-02
  13  Prefactor     19.214        21.125        .35639E-07   -.21160E-02
  14  norm           .0000        4.0677        .12717E-07** at limit **
  15  Prefactor      .0000        5.0879        .44228E-08** at limit **
  16  Prefactor     .41323E-06    11.886        .30255E-06** at limit **
  17  Normalizat    .70735        .27015       -.72224E-05   -.44401E-03
  18  Prefactor     1.0818        .11149        .16623E-05   -.10863E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.1108
  Prefactor  = 102.03
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0.516812
  Prefactor  = 51.2148
  norm       = 1.06074
  norm       = 1.97874
  Prefactor  = 188.393
  Prefactor  = 0
  norm       = 1.75999
  Prefactor  = 19.2136
  norm       = 0
  Prefactor  = 0
  Prefactor  = 4.13225e-07
  Normalizat = 0.707351
  Prefactor  = 1.08175
 **********
 **   18 **HESSE 
 **********

 FCN=   9508.034     FROM HESSE     STATUS=OK           248 CALLS     1875 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.111        32.990        .62448E-05   -1.5580    
   2  Prefactor     102.03        87.964        .39617E-05   -1.5506    
   3  Prefactor      .0000        16.052        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        13.119        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        7.8060        .16847E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .51681        26.348        .37422E-03   -1.5694    
   7  Prefactor     51.215        84.340        .27848E-04   -1.5565    
   8  norm          1.0607        2.4617        .21569E-04   -1.5687    
   9  norm          1.9787        2.2968        .15250E-04   -1.5680    
  10  Prefactor     188.39        46.498        .14545E-04   -1.5433    
  11  Prefactor      .0000        17.429        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.7600        1.0017        .70546E-05   -1.5681    
  13  Prefactor     19.214        20.930        .91397E-05   -1.5620    
  14  norm           .0000        4.0891        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        5.0923        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .41323E-06    77.734        .56011E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .70735        .27939        .47557E-03   -1.0360    
  18  Prefactor     1.0818        .11717        .17134E-03   -.90052    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.92279e-09
Minuit parameter uncertainties:
  1  32.9899
  2  87.965
  3  1.75193e-05
  4  3.9942e-06
  5  6.07576e-06
  6  7.38031
  7  84.3415
  8  2.46174
  9  2.29683
  10  46.4981
  11  6.88915e-07
  12  1.00171
  13  20.9304
  14  4.34612e-06
  15  3.10102e-06
  16  0.0113354
  17  0.279958
  18  0.117199
Done.

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

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  1.884e+02  4.650e+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.082e+00  1.172e-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:  7.074e-01  2.800e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 45.66
Ra Dec: 327.444 19.286
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 3.14e-07 +/- 7.75e-08
Energy Flux (Fixed Index): 8.92e-05 +/- 2.20e-05

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) = 9505.81703857
delta logL = 2.21659057368

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9505.81686238
delta logL = 2.21676675575

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    256.18       1.0000          .0000       .10000E+07
     2 'Index     '    2.0545       1.0000          .0000       10.000    
     3 'Normalizat'    .81589       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0517       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.

 FCN=   9505.817     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      247 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     256.00        106.89        .62486E-04    .22160E-03
   2  Index         2.0546        .32211        .10609        .15875E-03
   3  Normalizat    .81580        .24103        .10061       -.16787E-04
   4  Prefactor     1.0517        .10307        .39813E-01   -.42163E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 256.002
  Index      = 2.05456
  Normalizat = 0.815802
  Prefactor  = 1.05173
 **********
 **   18 **HESSE 
 **********

 FCN=   9505.817     FROM HESSE     STATUS=OK            29 CALLS      276 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     256.00        66.237        .24994E-05   -1.5388    
   2  Index         2.0546        .21102        .43884E-02   -.62993    
   3  Normalizat    .81580        .26818        .44584E-03   -.99485    
   4  Prefactor     1.0517        .11619        .17353E-03   -.91025    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4355e-10
Minuit parameter uncertainties:
  1  66.2367
  2  0.211114
  3  0.268617
  4  0.116215
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/866573': 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) = 9505.8168586
delta logL = 2.21677053938

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  2.560e+02  6.624e+01  0.000e+00  1.000e+06 ( 1.000e-13)
278        Index:  2.055e+00  2.111e-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.052e+00  1.162e-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:  8.158e-01  2.686e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 50.02
Ra Dec: 327.444 19.286
Photon Index (Free Index): 2.05 +/- 0.21
Photon Flux (Free Index): 2.21e-07 +/- 7.33e-08
Energy Flux (Free Index): 1.34e-04 +/- 4.98e-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/866573/cmap_HighResolution_689040001_689299201_4FGL_J2149.7+1917_daily_bin1735.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.14e-07', energy_flux2='1.34e-04', photon_flux_error='7.75e-08', dlogl='2.22e+00', energy_flux='8.92e-05', photon_flux2='2.21e-07', job_status='DONE', time_completed='2022-11-05 00:49:48.189891', photon_index_error2='0.21', photon_index2='2.05', ts='45.66', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='4.98e-05', EG='0.71', time_epoch_completed='1667634588.19', return_code='0', job_id='866573', GAL2='1.05', EG2='0.82', return_code2='0', energy_flux_error='2.20e-05', photon_flux_error2='7.33e-08', ts2='50.02', photon_index='2.52' WHERE bin_id='1735' AND source_name='4FGL J2149.7+1917' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Nov  5 00:49:48 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 866573: <4FGL_J2149.7+1917_daily_bin1735> in cluster <slac> Done

Job <4FGL_J2149.7+1917_daily_bin1735> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Nov  5 00:35:18 2022
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Nov  5 00:35:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Nov  5 00:35:18 2022
Terminated at Sat Nov  5 00:49:49 2022
Results reported at Sat Nov  5 00:49:49 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2149.7+1917_daily_bin1735 327.444 19.2859 689040001 689299201 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 :                                   660.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            871 sec.

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

