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 222 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7460
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2149.7+1917_daily_bin1711
RA = 327.444, Dec = 19.2859
tmin = 682819201, tmax = 683078401
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='237312', job_status='RUN', time_executed='2022-09-16 23:35:31.394843', time_epoch_executed='1663396531.39' WHERE source_name='4FGL J2149.7+1917' and cadence='daily' and bin_id='1711'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/237312

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/237312/ft1_4FGL_J2149.7+1917_daily_bin1711.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/237312/ft2_4FGL_J2149.7+1917_daily_bin1711.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/237312/ft1_4FGL_J2149.7+1917_daily_bin1711.fits outfile=/scratch/kocevski/237312/ft1_filteredMKT_4FGL_J2149.7+1917_daily_bin1711.fits ra=327.444 dec=19.2859 rad=12.0 tmin=682819201.0 tmax=683078401.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.58
user 4.33
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/237312/ft2_4FGL_J2149.7+1917_daily_bin1711.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/237312/ft1_filteredMKT_4FGL_J2149.7+1917_daily_bin1711.fits evtable="EVENTS" outfile="/scratch/kocevski/237312/ft1_filtered_4FGL_J2149.7+1917_daily_bin1711.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.54
user 0.35
sys 0.16

Number of photons that the gtmktime cut: 793

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/237312/ft1_filtered_4FGL_J2149.7+1917_daily_bin1711.fits" evtable="EVENTS" scfile=/scratch/kocevski/237312/ft2_4FGL_J2149.7+1917_daily_bin1711.fits sctable="SC_DATA" outfile=/scratch/kocevski/237312/ltcube_682819201_683078401_4FGL_J2149.7+1917_daily_bin1711.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/237312/ft2_4FGL_J2149.7+1917_daily_bin1711.fits
.....................!
real 14.83
user 14.37
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/237312/ft1_filtered_4FGL_J2149.7+1917_daily_bin1711.fits evtable="EVENTS" scfile=/scratch/kocevski/237312/ft2_4FGL_J2149.7+1917_daily_bin1711.fits sctable="SC_DATA" expcube=/scratch/kocevski/237312/ltcube_682819201_683078401_4FGL_J2149.7+1917_daily_bin1711.fits outfile=/scratch/kocevski/237312/expmap_682819201_683078401_4FGL_J2149.7+1917_daily_bin1711.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/237312/ltcube_682819201_683078401_4FGL_J2149.7+1917_daily_bin1711.fits
.....................!
real 191.98
user 187.10
sys 4.32

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/237312/ft1_filtered_4FGL_J2149.7+1917_daily_bin1711.fits scfile=/scratch/kocevski/237312/ft2_4FGL_J2149.7+1917_daily_bin1711.fits outfile=/scratch/kocevski/237312/cmap_682819201_683078401_4FGL_J2149.7+1917_daily_bin1711.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/237312/ft1_filtered_4FGL_J2149.7+1917_daily_bin1711.fits scfile=/scratch/kocevski/237312/ft2_4FGL_J2149.7+1917_daily_bin1711.fits outfile=/scratch/kocevski/237312/cmap_HighResolution_682819201_683078401_4FGL_J2149.7+1917_daily_bin1711.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/237312/ft1_filtered_4FGL_J2149.7+1917_daily_bin1711.fits evtable="EVENTS" scfile=/scratch/kocevski/237312/ft2_4FGL_J2149.7+1917_daily_bin1711.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/237312/Model_4FGL_J2149.7+1917_daily_bin1711.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/237312/ft1_filtered_4FGL_J2149.7+1917_daily_bin1711.fits.....................!
real 116.46
user 114.85
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.968       1.0000          .0000       .10000E+07
     2 'Prefactor '    49.929       1.0000          .0000       .10000E+07
     3 'Prefactor '    14.968       1.0000          .0000       .10000E+07
     4 'Prefactor '    .99553E-03   1.0000          .0000       .10000E+07
     5 'norm      '    7.1247       1.0000          .0000       .10000E+07
     6 'Prefactor '    6.4669       1.0000          .0000       .10000E+07
     7 'Prefactor '    .60319       1.0000          .0000       .10000E+07
     8 'norm      '    2.0619       1.0000          .0000       .10000E+07
     9 'norm      '    .88813       1.0000          .0000       .10000E+07
    10 'Prefactor '    .19483E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .10080E-02   1.0000          .0000       .10000E+07
    12 'norm      '    .20904       1.0000          .0000       .10000E+07
    13 'Prefactor '    .37372       1.0000          .0000       .10000E+07
    14 'norm      '    .82157E-08   1.0000          .0000       .10000E+07
    15 'Prefactor '    .29502E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    10.690       1.0000          .0000       .10000E+07
    17 'Normalizat'    .57733       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1031       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=   8385.676     FROM MIGRAD    STATUS=CONVERGED    121 CALLS     1300 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.966        1.0684        .12901E-07    .36256E-02
   2  Prefactor     49.832        16.940       -.42068E-06    .13912    
   3  Prefactor     14.929        1.7401        .20035E-07    .10125E-01
   4  Prefactor      .0000        9.6602        .64806E-06** at limit **
   5  norm          7.0944        4.6658        .51830E-07   -.27279E-03
   6  Prefactor     6.4017        4.9354       -.12690E-06    .11947E-02
   7  Prefactor     .66502E-07    58.047        .79447E-06** at limit **
   8  norm          2.0589        2.0116       -.50021E-07    .16774E-02
   9  norm          .87142        2.0942        .70965E-07   -.27953E-05
  10  Prefactor      .0000        50.230       -.48336E-06** at limit **
  11  Prefactor     .19662E-06    29.208       -.98864E-06** at limit **
  12  norm          .20870        .52185       -.86201E-07** at limit **
  13  Prefactor     .23790E-04    203.45       -.58416E-05** at limit **
  14  norm           .0000        1.2625       -.16489E-06** at limit **
  15  Prefactor      .0000        10.529        .50125E-06** at limit **
  16  Prefactor     10.747        10.737       -.19465E-06    .24351E-02
  17  Normalizat    .57865        .24927       -.15196E-04    .14445E-03
  18  Prefactor     1.1031        .11292        .39470E-05    .23904E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.9665
  Prefactor  = 49.832
  Prefactor  = 14.9294
  Prefactor  = 0
  norm       = 7.09442
  Prefactor  = 6.40168
  Prefactor  = 6.65024e-08
  norm       = 2.05891
  norm       = 0.871416
  Prefactor  = 0
  Prefactor  = 1.9662e-07
  norm       = 0.208702
  Prefactor  = 2.37902e-05
  norm       = 0
  Prefactor  = 0
  Prefactor  = 10.7466
  Normalizat = 0.578648
  Prefactor  = 1.10308
 **********
 **   18 **HESSE 
 **********

 FCN=   8385.676     FROM HESSE     STATUS=OK           288 CALLS     1588 TOTAL
                     EDM=   .23E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.966        15.181        .30227E-03   -1.5642    
   2  Prefactor     49.832        60.662        .14153E-03   -1.5567    
   3  Prefactor     14.929        14.945        .25862E-03   -1.5631    
   4  Prefactor      .0000        9.7055        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.0944        4.6662        .37558E-03   -1.5655    
   6  Prefactor     6.4017        4.9565        .39443E-03   -1.5657    
   7  Prefactor     .66502E-07    58.089        .68943E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.0589        2.0381        .71935E-03   -1.5679    
   9  norm          .87142        2.1062        .46584E-03   -1.5689    
  10  Prefactor      .0000        48.609        .17071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .19662E-06    29.318        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .20870        .52368        .11617E-03   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .23790E-04    11.649        .10682E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        1.2624        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        10.491        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.747        10.855        .30619E-03   -1.5642    
  17  Normalizat    .57865        .23531        .10157       -1.0890    
  18  Prefactor     1.1031        .10326        .37471E-01   -.89368    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28352e-06
Minuit parameter uncertainties:
  1  15.1806
  2  60.663
  3  14.9446
  4  6.14737e-06
  5  4.66618
  6  4.95651
  7  0.003931
  8  2.03815
  9  2.10622
  10  3.99105e-05
  11  0.00480208
  12  0.523681
  13  0.033295
  14  5.77236e-06
  15  2.33902e-05
  16  10.8552
  17  0.235714
  18  0.103283
Done.

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

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  0.000e+00  3.991e-05  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.103e+00  1.033e-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:  5.786e-01  2.357e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 327.444 19.286
Photon Flux Upper Limit: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/237312/likelihoodResults_682819201_683078401_4FGL_J2149.7+1917_daily_bin1711.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): 102
logL (Free Index) = 8385.68605829
delta logL = -0.00998870668445

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8385.64230537
delta logL = 0.0337642162503

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4835       1.0000          .0000       .10000E+07
     2 'Index     '    3.5955       1.0000          .0000       10.000    
     3 'Normalizat'    .56002       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1071       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8385.642     FROM MIGRAD    STATUS=FAILED       101 CALLS      271 TOTAL
                     EDM=   .28E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4833        2137.9        .17611E-03   -.16907E-01
   2  Index         3.5944        6.1355        .54773E-02    .14417E-04
   3  Normalizat    .56010        .34086        .45724E-03   -.15465E-04
   4  Prefactor     1.1070        .11402        .15497E-03   -.52088E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8385.642     FROM SIMPLEX   STATUS=UNCHANGED    100 CALLS      371 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4833        2137.9        .34989E-04   -1.5684    
   2  Index         3.5944        6.1355        .11840E-02   -.28496    
   3  Normalizat    .56010        .34086        .40631E-03   -1.0971    
   4  Prefactor     1.1070        .11402        .53999E-04   -.89243    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8385.642     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      401 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4844        14.106        .70445E-05   -.81499E-02
   2  Index         3.5941        2.5306        .21909E-03   -.10990E-03
   3  Normalizat    .56010        .24857        .18290E-04   -.32820E-04
   4  Prefactor     1.1070        .11275        .61986E-05   -.91703E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.48439
  Index      = 3.5941
  Normalizat = 0.560098
  Prefactor  = 1.10701
 **********
 **   18 **HESSE 
 **********

 FCN=   8385.642     FROM HESSE     STATUS=OK            23 CALLS      424 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4844        13.711        .28178E-06   -1.5684    
   2  Index         3.5941        2.4977        .43819E-04   -.28502    
   3  Normalizat    .56010        .24875        .36579E-05   -1.0971    
   4  Prefactor     1.1070        .11276        .12397E-05   -.89243    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70095e-09
Minuit parameter uncertainties:
  1  9.0228
  2  2.62695
  3  0.249248
  4  0.112784
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/237312': 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) = 8385.6423049
delta logL = 0.0337646829576

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  1.484e+00  9.023e+00  0.000e+00  1.000e+06 ( 1.000e-13)
278        Index:  3.594e+00  2.627e+00  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.107e+00  1.128e-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:  5.601e-01  2.492e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 327.444 19.286

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/237312/cmap_HighResolution_682819201_683078401_4FGL_J2149.7+1917_daily_bin1711.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.95e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2022-09-16 23:46:21.096483', job_id='237312', GAL2='1.11', fit_tolerance='1e-08', EG2='0.56', EG='0.58', time_epoch_completed='1663397181.1', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='3.38e-02', ts2='0.08', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1711' AND source_name='4FGL J2149.7+1917' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 23:46:21 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 237312: <4FGL_J2149.7+1917_daily_bin1711> in cluster <slac> Done

Job <4FGL_J2149.7+1917_daily_bin1711> 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) <bullet0160>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 23:31:39 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:39 2022
Terminated at Fri Sep 16 23:46:22 2022
Results reported at Fri Sep 16 23:46:22 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2149.7+1917_daily_bin1711 327.444 19.2859 682819201 683078401 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 :                                   651.12 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             283.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            959 sec.

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

