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


Performing analysis on: 4FGL_J2149.7+1917_daily_bin1708
RA = 327.444, Dec = 19.2859
tmin = 682041601, tmax = 682300801
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='237308', job_status='RUN', time_executed='2022-09-16 23:33:37.843033', time_epoch_executed='1663396417.84' WHERE source_name='4FGL J2149.7+1917' and cadence='daily' and bin_id='1708'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/237308

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/237308/ft1_4FGL_J2149.7+1917_daily_bin1708.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/237308/ft2_4FGL_J2149.7+1917_daily_bin1708.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/237308/ft1_4FGL_J2149.7+1917_daily_bin1708.fits outfile=/scratch/kocevski/237308/ft1_filteredMKT_4FGL_J2149.7+1917_daily_bin1708.fits ra=327.444 dec=19.2859 rad=12.0 tmin=682041601.0 tmax=682300801.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.99
user 3.74
sys 0.22

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

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

Number of photons that the gtmktime cut: 785

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/237308/ft1_filtered_4FGL_J2149.7+1917_daily_bin1708.fits" evtable="EVENTS" scfile=/scratch/kocevski/237308/ft2_4FGL_J2149.7+1917_daily_bin1708.fits sctable="SC_DATA" outfile=/scratch/kocevski/237308/ltcube_682041601_682300801_4FGL_J2149.7+1917_daily_bin1708.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/237308/ft2_4FGL_J2149.7+1917_daily_bin1708.fits
.....................!
real 16.94
user 16.51
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/237308/ft1_filtered_4FGL_J2149.7+1917_daily_bin1708.fits evtable="EVENTS" scfile=/scratch/kocevski/237308/ft2_4FGL_J2149.7+1917_daily_bin1708.fits sctable="SC_DATA" expcube=/scratch/kocevski/237308/ltcube_682041601_682300801_4FGL_J2149.7+1917_daily_bin1708.fits outfile=/scratch/kocevski/237308/expmap_682041601_682300801_4FGL_J2149.7+1917_daily_bin1708.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/237308/ltcube_682041601_682300801_4FGL_J2149.7+1917_daily_bin1708.fits
.....................!
real 191.78
user 186.07
sys 5.28

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/237308/ft1_filtered_4FGL_J2149.7+1917_daily_bin1708.fits scfile=/scratch/kocevski/237308/ft2_4FGL_J2149.7+1917_daily_bin1708.fits outfile=/scratch/kocevski/237308/cmap_682041601_682300801_4FGL_J2149.7+1917_daily_bin1708.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/237308/ft1_filtered_4FGL_J2149.7+1917_daily_bin1708.fits scfile=/scratch/kocevski/237308/ft2_4FGL_J2149.7+1917_daily_bin1708.fits outfile=/scratch/kocevski/237308/cmap_HighResolution_682041601_682300801_4FGL_J2149.7+1917_daily_bin1708.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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/237308/ft1_filtered_4FGL_J2149.7+1917_daily_bin1708.fits evtable="EVENTS" scfile=/scratch/kocevski/237308/ft2_4FGL_J2149.7+1917_daily_bin1708.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/237308/Model_4FGL_J2149.7+1917_daily_bin1708.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/237308/ft1_filtered_4FGL_J2149.7+1917_daily_bin1708.fits.....................!
real 117.22
user 115.72
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .85561E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    34.099       1.0000          .0000       .10000E+07
     3 'Prefactor '    21.689       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.0631       1.0000          .0000       .10000E+07
     5 'norm      '    2.9360       1.0000          .0000       .10000E+07
     6 'Prefactor '    3.4664       1.0000          .0000       .10000E+07
     7 'Prefactor '    .12107E-02   1.0000          .0000       .10000E+07
     8 'norm      '    .56066E-08   1.0000          .0000       .10000E+07
     9 'norm      '    .90908       1.0000          .0000       .10000E+07
    10 'Prefactor '    39.413       1.0000          .0000       .10000E+07
    11 'Prefactor '    58.831       1.0000          .0000       .10000E+07
    12 'norm      '    .35916E-07   1.0000          .0000       .10000E+07
    13 'Prefactor '    34.209       1.0000          .0000       .10000E+07
    14 'norm      '    3.9225       1.0000          .0000       .10000E+07
    15 'Prefactor '    .10359E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .18824E-04   1.0000          .0000       .10000E+07
    17 'Normalizat'    .67483       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0542       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=   8433.007     FROM MIGRAD    STATUS=CONVERGED    126 CALLS     1324 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        5.1347       -.17416E-05** at limit **
   2  Prefactor     34.057        1.2439       -.25960E-07    .59898E-02
   3  Prefactor     21.898        5.9316        .46533E-07    .13989    
   4  Prefactor     2.0807        1.1307        .62220E-07    .98365E-02
   5  norm          2.9224        4.4882        .65936E-07   -.10415E-02
   6  Prefactor     3.4904        7.7993       -.45168E-08   -.17976E-02
   7  Prefactor     .22038E-07    29.993       -.48631E-05** at limit **
   8  norm           .0000        .59762        .23627E-06** at limit **
   9  norm          .91712        2.5983       -.91230E-06    .10779E-02
  10  Prefactor     40.793        31.007        .18200E-06    .16944E-01
  11  Prefactor     57.117        47.732       -.14047E-05    .58197E-02
  12  norm           .0000        .29654        .12650E-06** at limit **
  13  Prefactor     34.444        18.143       -.22687E-06   -.50109E-01
  14  norm          3.8991        3.5736       -.52651E-06    .15646E-03
  15  Prefactor     .55511E-10    10.203        .15746E-06** at limit **
  16  Prefactor      .0000        5.4263       -.35332E-05** at limit **
  17  Normalizat    .67324        .26559        .39846E-04    .14835E-04
  18  Prefactor     1.0543        .11284       -.43217E-05    .29881E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 34.0566
  Prefactor  = 21.8978
  Prefactor  = 2.08072
  norm       = 2.9224
  Prefactor  = 3.4904
  Prefactor  = 2.20379e-08
  norm       = 0
  norm       = 0.917122
  Prefactor  = 40.7928
  Prefactor  = 57.1173
  norm       = 0
  Prefactor  = 34.4439
  norm       = 3.89907
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Normalizat = 0.673243
  Prefactor  = 1.05428
 **********
 **   18 **HESSE 
 **********

 FCN=   8433.007     FROM HESSE     STATUS=OK           284 CALLS     1608 TOTAL
                     EDM=   .79E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        5.1375        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     34.057        42.834        .17127E-03   -1.5591    
   3  Prefactor     21.898        19.890        .21478E-03   -1.5614    
   4  Prefactor     2.0807        37.862        .71910E-03   -1.5679    
   5  norm          2.9224        4.5788        .59253E-03   -1.5674    
   6  Prefactor     3.4904        7.8720        .54291E-03   -1.5671    
   7  Prefactor     .22038E-07    30.034        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        .59505        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .91712        2.6340        .45135E-03   -1.5689    
  10  Prefactor     40.793        31.428        .15930E-03   -1.5580    
  11  Prefactor     57.117        47.878        .13038E-03   -1.5557    
  12  norm           .0000        .29519        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     34.444        18.595        .17099E-03   -1.5591    
  14  norm          3.8991        3.5732        .50914E-03   -1.5668    
  15  Prefactor     .55511E-10    10.187        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        5.4279        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .67324        .24254        .99243E-01   -1.0496    
  18  Prefactor     1.0543        .10117        .39672E-01   -.90942    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.91843e-07
Minuit parameter uncertainties:
  1  5.82546e-06
  2  42.8344
  3  19.8899
  4  17.7519
  5  4.57877
  6  7.872
  7  0.00162757
  8  1.16306e-07
  9  2.63404
  10  31.4277
  11  47.8783
  12  1.36147e-07
  13  18.595
  14  3.57316
  15  3.75295e-05
  16  6.50503e-06
  17  0.242927
  18  0.101189
Done.

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

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  4.079e+01  3.143e+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.054e+00  1.012e-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.732e-01  2.429e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.50
Ra Dec: 327.444 19.286
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 6.81e-08 +/- 5.24e-08
Energy Flux (Fixed Index): 1.93e-05 +/- 1.49e-05

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

Saving results to:
/scratch/kocevski/237308/likelihoodResults_682041601_682300801_4FGL_J2149.7+1917_daily_bin1708.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) = 8432.86810597
delta logL = 0.138833593068

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8432.85701606
delta logL = 0.149923505072

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.500       1.0000          .0000       .10000E+07
     2 'Index     '    2.9477       1.0000          .0000       10.000    
     3 'Normalizat'    .64557       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0632       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=   8432.857     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      307 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.510        49.119        .79227E-05    .85810E-03
   2  Index         2.9474        1.1803        .68010E-02    .61331E-04
   3  Normalizat    .64506        .25866        .44875E-03   -.16746E-03
   4  Prefactor     1.0634        .11488        .16044E-03    .29337E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.5095
  Index      = 2.9474
  Normalizat = 0.645058
  Prefactor  = 1.0634
 **********
 **   18 **HESSE 
 **********

 FCN=   8432.857     FROM HESSE     STATUS=OK            25 CALLS      332 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.510        36.356        .31691E-06   -1.5607    
   2  Index         2.9474        .87648        .27204E-03   -.42302    
   3  Normalizat    .64506        .25629        .17950E-04   -1.0610    
   4  Prefactor     1.0634        .11383        .64174E-05   -.90645    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.87283e-10
Minuit parameter uncertainties:
  1  36.3566
  2  0.881973
  3  0.256768
  4  0.113856
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/237308': 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) = 8432.85701352
delta logL = 0.149926040694

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  2.551e+01  3.636e+01  0.000e+00  1.000e+06 ( 1.000e-13)
278        Index:  2.947e+00  8.820e-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.063e+00  1.139e-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.451e-01  2.568e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.85
Ra Dec: 327.444 19.286
Photon Index (Free Index): 2.95 +/- 0.88
Photon Flux (Free Index): 8.49e-08 +/- 6.43e-08
Energy Flux (Free Index): 1.74e-05 +/- 1.30e-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/237308/cmap_HighResolution_682041601_682300801_4FGL_J2149.7+1917_daily_bin1708.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.34e-02', comment='SUCCESS', photon_flux='6.81e-08', energy_flux2='1.74e-05', photon_flux_error='5.24e-08', dlogl='1.50e-01', energy_flux='1.93e-05', photon_flux2='8.49e-08', job_status='DONE', time_completed='2022-09-16 23:44:22.571537', photon_index_error2='0.88', photon_index2='2.95', ts='2.50', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.72e-07', energy_flux_error2='1.30e-05', EG='0.67', time_epoch_completed='1663397062.57', return_code='0', job_id='237308', GAL2='1.06', EG2='0.65', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='6.43e-08', ts2='2.85', photon_index='2.52' WHERE bin_id='1708' AND source_name='4FGL J2149.7+1917' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 23:44:22 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 237308: <4FGL_J2149.7+1917_daily_bin1708> in cluster <slac> Done

Job <4FGL_J2149.7+1917_daily_bin1708> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 16 23:30:23 2022
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 23:31:36 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 23:31:36 2022
Terminated at Fri Sep 16 23:44:23 2022
Results reported at Fri Sep 16 23:44:23 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2149.7+1917_daily_bin1708 327.444 19.2859 682041601 682300801 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 :                                   645.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             310.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            840 sec.

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

