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


Performing analysis on: 4FGL_J2149.7+1917_daily_bin1720
RA = 327.444, Dec = 19.2859
tmin = 685152001, tmax = 685411201
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='848695', job_status='RUN', time_executed='2022-09-21 00:56:32.262685', time_epoch_executed='1663746992.26' WHERE source_name='4FGL J2149.7+1917' and cadence='daily' and bin_id='1720'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/848695

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/848695/ft1_4FGL_J2149.7+1917_daily_bin1720.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/848695/ft2_4FGL_J2149.7+1917_daily_bin1720.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/848695/ft1_4FGL_J2149.7+1917_daily_bin1720.fits outfile=/scratch/kocevski/848695/ft1_filteredMKT_4FGL_J2149.7+1917_daily_bin1720.fits ra=327.444 dec=19.2859 rad=12.0 tmin=685152001.0 tmax=685411201.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.73
user 3.49
sys 0.21

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

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

Number of photons that the gtmktime cut: 674

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/848695/ft1_filtered_4FGL_J2149.7+1917_daily_bin1720.fits" evtable="EVENTS" scfile=/scratch/kocevski/848695/ft2_4FGL_J2149.7+1917_daily_bin1720.fits sctable="SC_DATA" outfile=/scratch/kocevski/848695/ltcube_685152001_685411201_4FGL_J2149.7+1917_daily_bin1720.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/848695/ft2_4FGL_J2149.7+1917_daily_bin1720.fits
.....................!
real 13.23
user 12.87
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/848695/ft1_filtered_4FGL_J2149.7+1917_daily_bin1720.fits evtable="EVENTS" scfile=/scratch/kocevski/848695/ft2_4FGL_J2149.7+1917_daily_bin1720.fits sctable="SC_DATA" expcube=/scratch/kocevski/848695/ltcube_685152001_685411201_4FGL_J2149.7+1917_daily_bin1720.fits outfile=/scratch/kocevski/848695/expmap_685152001_685411201_4FGL_J2149.7+1917_daily_bin1720.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/848695/ltcube_685152001_685411201_4FGL_J2149.7+1917_daily_bin1720.fits
.....................!
real 191.72
user 185.90
sys 5.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/848695/ft1_filtered_4FGL_J2149.7+1917_daily_bin1720.fits scfile=/scratch/kocevski/848695/ft2_4FGL_J2149.7+1917_daily_bin1720.fits outfile=/scratch/kocevski/848695/cmap_685152001_685411201_4FGL_J2149.7+1917_daily_bin1720.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.55
user 0.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.129       1.0000          .0000       .10000E+07
     2 'Prefactor '    93.830       1.0000          .0000       .10000E+07
     3 'Prefactor '    18.730       1.0000          .0000       .10000E+07
     4 'Prefactor '    48.458       1.0000          .0000       .10000E+07
     5 'norm      '    1.2495       1.0000          .0000       .10000E+07
     6 'Prefactor '    10.124       1.0000          .0000       .10000E+07
     7 'Prefactor '    76.680       1.0000          .0000       .10000E+07
     8 'norm      '    .46027E-05   1.0000          .0000       .10000E+07
     9 'norm      '    .81683E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    37.084       1.0000          .0000       .10000E+07
    11 'Prefactor '    1.5968       1.0000          .0000       .10000E+07
    12 'norm      '    .12673E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    7.2849       1.0000          .0000       .10000E+07
    14 'norm      '    .32360E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .18255E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .26982E-02   1.0000          .0000       .10000E+07
    17 'Normalizat'    .99793       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .84485       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=   7613.752     FROM MIGRAD    STATUS=CONVERGED    158 CALLS     1328 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.784        22.394       -.37410E-06    .96251E-02
   2  Prefactor     96.632        73.557        .37587E-06    .11543    
   3  Prefactor     19.127        15.257       -.21239E-06   -.21445E-04
   4  Prefactor     48.922        16.996        .59626E-07   -.10912    
   5  norm          1.2634        4.0743       -.17392E-06    .27005E-03
   6  Prefactor     10.064        8.1507        .27986E-06    .39592E-03
   7  Prefactor     73.985        71.719       -.45095E-06    .11388    
   8  norm           .0000        1.2097        .46575E-07** at limit **
   9  norm           .0000        5.4315       -.51394E-06** at limit **
  10  Prefactor     37.486        31.566        .53083E-06    .47070E-01
  11  Prefactor     2.6354        237.39       -.12799E-05    .60293E-02
  12  norm           .0000        .46901       -.48234E-07** at limit **
  13  Prefactor     7.3738        13.463        .31627E-07    .59385E-05
  14  norm           .0000        1.8403       -.34410E-08** at limit **
  15  Prefactor      .0000        7.0896       -.46246E-08** at limit **
  16  Prefactor      .0000        25.482       -.42607E-06** at limit **
  17  Normalizat    .99709        .28235       -.74519E-05    .32553E-06
  18  Prefactor     .84402        .11569        .42359E-05   -.69824E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.7844
  Prefactor  = 96.6317
  Prefactor  = 19.1274
  Prefactor  = 48.9218
  norm       = 1.26344
  Prefactor  = 10.0636
  Prefactor  = 73.985
  norm       = 0
  norm       = 0
  Prefactor  = 37.4862
  Prefactor  = 2.63544
  norm       = 0
  Prefactor  = 7.37382
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  Normalizat = 0.997092
  Prefactor  = 0.844016
 **********
 **   18 **HESSE 
 **********

 FCN=   7613.752     FROM HESSE     STATUS=OK           282 CALLS     1610 TOTAL
                     EDM=   .38E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.784        22.770        .20798E-03   -1.5610    
   2  Prefactor     96.632        101.05        .10324E-03   -1.5511    
   3  Prefactor     19.127        15.256        .23115E-03   -1.5620    
   4  Prefactor     48.922        34.517        .14366E-03   -1.5568    
   5  norm          1.2634        4.1603        .10003E-02   -1.5685    
   6  Prefactor     10.064        8.1380        .31468E-03   -1.5645    
   7  Prefactor     73.985        106.95        .11420E-03   -1.5536    
   8  norm           .0000        1.2091        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        5.2481        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     37.486        33.338        .16423E-03   -1.5586    
  11  Prefactor     2.6354        279.78        .83893E-03   -1.5675    
  12  norm           .0000        .46630        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.3738        13.478        .37138E-03   -1.5654    
  14  norm           .0000        1.8454        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        7.0956        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        25.399        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .99709        .23980        .85520E-01   -.93128    
  18  Prefactor     .84402        .98154E-01    .44298E-01   -.98126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.80394e-06
Minuit parameter uncertainties:
  1  22.7699
  2  101.057
  3  15.2557
  4  34.5174
  5  4.16032
  6  8.13798
  7  106.955
  8  2.44243e-07
  9  2.93756e-06
  10  33.3383
  11  54.3102
  12  6.53708e-08
  13  13.4776
  14  2.09823e-06
  15  3.71936e-06
  16  3.48751e-05
  17  0.240055
  18  0.0981745
Done.

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

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  3.749e+01  3.334e+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:  8.440e-01  9.817e-02  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:  9.971e-01  2.401e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.27
Ra Dec: 327.444 19.286
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 6.25e-08 +/- 5.56e-08
Energy Flux (Fixed Index): 1.77e-05 +/- 1.58e-05

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

Saving results to:
/scratch/kocevski/848695/likelihoodResults_685152001_685411201_4FGL_J2149.7+1917_daily_bin1720.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) = 7613.69214858
delta logL = 0.0596309809134

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7613.69045239
delta logL = 0.0613271721022

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.508       1.0000          .0000       .10000E+07
     2 'Index     '    2.0095       1.0000          .0000       10.000    
     3 'Normalizat'    1.0396       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83465       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=   7613.690     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      195 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.494        49.969       -.23751E-05   -.61376E-02
   2  Index         2.0095        1.4047       -.52034E-04    .21814E-03
   3  Normalizat    1.0398        .24331        .46502E-05   -.19557E-04
   4  Prefactor     .83457        .96129E-01   -.17308E-06    .28307E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.4938
  Index      = 2.00952
  Normalizat = 1.0398
  Prefactor  = 0.834567
 **********
 **   18 **HESSE 
 **********

 FCN=   7613.690     FROM HESSE     STATUS=OK            27 CALLS      222 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.494        48.842        .67135E-05   -1.5589    
   2  Index         2.0095        1.4044        .10294E-02   -.64112    
   3  Normalizat    1.0398        .28821        .37154E-03   -.91709    
   4  Prefactor     .83457        .11524        .16977E-03   -.98466    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.68792e-09
Minuit parameter uncertainties:
  1  48.8429
  2  1.43483
  3  0.288647
  4  0.115276
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/848695': 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) = 7613.69045206
delta logL = 0.0613275063888

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  3.549e+01  4.884e+01  0.000e+00  1.000e+06 ( 1.000e-13)
278        Index:  2.010e+00  1.435e+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:  8.346e-01  1.153e-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:  1.040e+00  2.886e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.32
Ra Dec: 327.444 19.286
Photon Index (Free Index): 2.01 +/- 1.43
Photon Flux (Free Index): 2.90e-08 +/- 8.27e-08
Energy Flux (Free Index): 1.96e-05 +/- 2.55e-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/848695/cmap_HighResolution_685152001_685411201_4FGL_J2149.7+1917_daily_bin1720.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.38e-02', comment='SUCCESS', photon_flux='6.25e-08', energy_flux2='1.96e-05', photon_flux_error='5.56e-08', dlogl='6.13e-02', energy_flux='1.77e-05', photon_flux2='2.90e-08', job_status='DONE', time_completed='2022-09-21 01:06:28.834718', photon_index_error2='1.43', photon_index2='2.01', ts='2.27', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.78e-07', energy_flux_error2='2.55e-05', EG='1.00', time_epoch_completed='1663747588.83', return_code='0', job_id='848695', GAL2='0.83', EG2='1.04', return_code2='0', energy_flux_error='1.58e-05', photon_flux_error2='8.27e-08', ts2='2.32', photon_index='2.52' WHERE bin_id='1720' AND source_name='4FGL J2149.7+1917' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 21 01:06:28 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 848695: <4FGL_J2149.7+1917_daily_bin1720> in cluster <slac> Done

Job <4FGL_J2149.7+1917_daily_bin1720> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Sep 21 00:50:53 2022
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 21 00:54:40 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 21 00:54:40 2022
Terminated at Wed Sep 21 01:06:29 2022
Results reported at Wed Sep 21 01:06:29 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2149.7+1917_daily_bin1720 327.444 19.2859 685152001 685411201 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 :                                   598.30 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             287.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   709 sec.
    Turnaround time :                            936 sec.

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

