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 62 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J2149.7+1917_daily_bin1669
RA = 327.444, Dec = 19.2859
tmin = 671932801, tmax = 672192001
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='692150', job_status='RUN', time_executed='2022-04-21 00:36:47.657930', time_epoch_executed='1650526607.66' WHERE source_name='4FGL J2149.7+1917' and cadence='daily' and bin_id='1669'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/692150

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/692150/ft1_4FGL_J2149.7+1917_daily_bin1669.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/692150/ft2_4FGL_J2149.7+1917_daily_bin1669.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/692150/ft1_4FGL_J2149.7+1917_daily_bin1669.fits outfile=/scratch/kocevski/692150/ft1_filteredMKT_4FGL_J2149.7+1917_daily_bin1669.fits ra=327.444 dec=19.2859 rad=12.0 tmin=671932801.0 tmax=672192001.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.74
user 3.53
sys 0.20

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

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

Number of photons that the gtmktime cut: 913

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/692150/ft1_filtered_4FGL_J2149.7+1917_daily_bin1669.fits" evtable="EVENTS" scfile=/scratch/kocevski/692150/ft2_4FGL_J2149.7+1917_daily_bin1669.fits sctable="SC_DATA" outfile=/scratch/kocevski/692150/ltcube_671932801_672192001_4FGL_J2149.7+1917_daily_bin1669.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/692150/ft2_4FGL_J2149.7+1917_daily_bin1669.fits
.....................!
real 12.07
user 11.71
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/692150/ft1_filtered_4FGL_J2149.7+1917_daily_bin1669.fits evtable="EVENTS" scfile=/scratch/kocevski/692150/ft2_4FGL_J2149.7+1917_daily_bin1669.fits sctable="SC_DATA" expcube=/scratch/kocevski/692150/ltcube_671932801_672192001_4FGL_J2149.7+1917_daily_bin1669.fits outfile=/scratch/kocevski/692150/expmap_671932801_672192001_4FGL_J2149.7+1917_daily_bin1669.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/692150/ltcube_671932801_672192001_4FGL_J2149.7+1917_daily_bin1669.fits
.....................!
real 191.17
user 185.25
sys 5.37

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_archive_v18/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/692150/ft1_filtered_4FGL_J2149.7+1917_daily_bin1669.fits scfile=/scratch/kocevski/692150/ft2_4FGL_J2149.7+1917_daily_bin1669.fits outfile=/scratch/kocevski/692150/cmap_671932801_672192001_4FGL_J2149.7+1917_daily_bin1669.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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/692150/ft1_filtered_4FGL_J2149.7+1917_daily_bin1669.fits scfile=/scratch/kocevski/692150/ft2_4FGL_J2149.7+1917_daily_bin1669.fits outfile=/scratch/kocevski/692150/cmap_HighResolution_671932801_672192001_4FGL_J2149.7+1917_daily_bin1669.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.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/692150/ft1_filtered_4FGL_J2149.7+1917_daily_bin1669.fits', '/scratch/kocevski/692150/ft2_4FGL_J2149.7+1917_daily_bin1669.fits', expMap='/scratch/kocevski/692150/expmap_671932801_672192001_4FGL_J2149.7+1917_daily_bin1669.fits', expCube='/scratch/kocevski/692150/ltcube_671932801_672192001_4FGL_J2149.7+1917_daily_bin1669.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/692150/Model_4FGL_J2149.7+1917_daily_bin1669.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  1.000e-04  1.000e+04 ( 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/692150/ft1_filtered_4FGL_J2149.7+1917_daily_bin1669.fits
Spacecraft file(s): /scratch/kocevski/692150/ft2_4FGL_J2149.7+1917_daily_bin1669.fits
Exposure map: /scratch/kocevski/692150/expmap_671932801_672192001_4FGL_J2149.7+1917_daily_bin1669.fits
Exposure cube: /scratch/kocevski/692150/ltcube_671932801_672192001_4FGL_J2149.7+1917_daily_bin1669.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/692150/Model_4FGL_J2149.7+1917_daily_bin1669.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) = 10096.1967455

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.836       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.3546       1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.154       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.0724       1.0000         .10000E-03   10000.    
     6 'norm      '    1.7460       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.5592       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12731       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10927E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10354E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .37516E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    28.786       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.9180       1.0000         .10000E-03   10000.    
    17 'norm      '    .27941E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.2786       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10572E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10994       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .83217       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0090       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=   10096.14     FROM MIGRAD    STATUS=CONVERGED    508 CALLS     2530 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.842        26.180        .22219E-05    .11985E-04
   2  Prefactor     .10000E-03    74.242       -.43558E-05** at limit **
   3  Prefactor     5.3571        13.062        .69560E-06   -.82949E-04
   4  Prefactor     17.146        22.391        .15850E-06    .12401E-04
   5  Prefactor     3.0720        35.678       -.86767E-06   -.43823E-04
   6  norm          1.7507        3.9364       -.68911E-06   -.12803E-02
   7  Prefactor     6.5669        5.8132        .47412E-06   -.51582E-03
   8  Prefactor     .12917        4.0074        .34642E-06    .17829E-03
   9  Prefactor     .10000E-03    36.731        .37685E-05** at limit **
  10  norm          .10000E-03    1.2176       -.55973E-06** at limit **
  11  Prefactor     .10000E-03    116.22        .57369E-05** at limit **
  12  norm          .10000E-03    .77322        .53550E-06** at limit **
  13  Prefactor     28.820        29.654        .91546E-05    .12719E-03
  14  Prefactor     .10000E-03    20.485       -.17989E-07** at limit **
  15  norm          .10000E-03    .20071       -.46738E-07** at limit **
  16  Prefactor     1.8585        52.537        .57450E-04    .12735E-03
  17  norm          .10000E-03    2.4466        .60295E-06** at limit **
  18  Prefactor     8.2794        7.9706       -.47094E-05    .27651E-04
  19  Prefactor     .10000E-03    142.16       -.82038E-04** at limit **
  20  Prefactor     .27751        6.0241       -.51467E-05    .40914E-03
  21  Normalizat    .83215        .22382       -.84618E-05    .10389E-03
  22  Prefactor     1.0089        .90092E-01    .65873E-06   -.28626E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.842
  Prefactor  = 0.0001
  Prefactor  = 5.35708
  Prefactor  = 17.1459
  Prefactor  = 3.07197
  norm       = 1.7507
  Prefactor  = 6.56688
  Prefactor  = 0.129168
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 28.8204
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.85845
  norm       = 0.0001
  Prefactor  = 8.27936
  Prefactor  = 0.000100004
  Prefactor  = 0.277512
  Normalizat = 0.832152
  Prefactor  = 1.00888
 **********
 **   18 **HESSE 
 **********

 FCN=   10096.14     FROM HESSE     STATUS=OK           360 CALLS     2890 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.842        26.190        .67897E-04   -1.4527    
   2  Prefactor     .10000E-03    74.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.3571        13.016        .17367E-03   -1.5245    
   4  Prefactor     17.146        22.302        .96702E-04   -1.4880    
   5  Prefactor     3.0720        35.580        .23141E-03   -1.5357    
   6  norm          1.7507        3.9098        .27872E-03   -1.5443    
   7  Prefactor     6.5669        5.8813        .15669E-03   -1.5195    
   8  Prefactor     .12917        9.6245        .55981E-01   -1.5636    
   9  Prefactor     .10000E-03    36.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.3748        .20443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    116.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    10.685        .16696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     28.820        28.773        .74672E-04   -1.4634    
  14  Prefactor     .10000E-03    20.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .24630        .87527E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.8585        51.430        .30008E-03   -1.5435    
  17  norm          .10000E-03    5.9214        .30342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.2794        7.9610        .13933E-03   -1.5132    
  19  Prefactor     .10000E-03    142.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .27751        64.321        .45419E-02   -1.5603    
  21  Normalizat    .83215        .25466        .40362E-03   -.98887    
  22  Prefactor     1.0089        .10624        .16376E-03   -.92434    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00818e-08
Minuit parameter uncertainties:
  1  26.1985
  2  0.000106397
  3  13.0232
  4  22.3126
  5  20.9247
  6  3.91036
  7  5.88184
  8  2.22946
  9  4.19573e-05
  10  8.41658e-05
  11  0.000181464
  12  0.000333827
  13  28.7871
  14  5.43529e-05
  15  3.36595e-07
  16  19.5712
  17  7.88981e-05
  18  7.96205
  19  0.00148436
  20  8.45751
  21  0.255022
  22  0.106258
Done.

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

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  2.882e+01  2.879e+01  1.000e-04  1.000e+04 ( 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.009e+00  1.063e-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.322e-01  2.550e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.35
Ra Dec: 327.444 19.286
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 4.81e-08 +/- 4.80e-08
Energy Flux (Fixed Index): 1.36e-05 +/- 1.36e-05

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

Saving results to:
/scratch/kocevski/692150/likelihoodResults_671932801_672192001_4FGL_J2149.7+1917_daily_bin1669.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) = 10095.9008642
delta logL = 0.238883125128

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10095.8908749
delta logL = 0.248872401489

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.849       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0717       1.0000          .0000       10.000    
     3 'Normalizat'    .80334       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0172       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=   10095.89     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      304 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.837        36.290        .97575E-04   -.36725E-03
   2  Index         3.0729        1.2171        .78239E-02   -.80113E-04
   3  Normalizat    .80312        .24049        .41030E-03    .68163E-05
   4  Prefactor     1.0172        .10547        .16316E-03   -.10421E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.8369
  Index      = 3.07286
  Normalizat = 0.803123
  Prefactor  = 1.01722
 **********
 **   18 **HESSE 
 **********

 FCN=   10095.89     FROM HESSE     STATUS=OK            25 CALLS      329 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.837        26.161        .39030E-05   -1.4887    
   2  Index         3.0729        .88040        .31296E-03   -.39567    
   3  Normalizat    .80312        .23984        .16412E-04   -.99953    
   4  Prefactor     1.0172        .10497        .32631E-04   -.92158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92769e-10
Minuit parameter uncertainties:
  1  26.179
  2  0.885831
  3  0.240157
  4  0.104996
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/692150': 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) = 10095.8908729
delta logL = 0.248874454554

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  1.684e+01  2.618e+01  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  3.073e+00  8.858e-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.017e+00  1.050e-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.031e-01  2.402e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.95
Ra Dec: 327.444 19.286
Photon Index (Free Index): 3.07 +/- 0.89
Photon Flux (Free Index): 6.93e-08 +/- 6.00e-08
Energy Flux (Free Index): 1.34e-05 +/- 1.15e-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/692150/cmap_HighResolution_671932801_672192001_4FGL_J2149.7+1917_daily_bin1669.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-02', comment='SUCCESS', photon_flux='4.81e-08', energy_flux2='1.34e-05', photon_flux_error='4.80e-08', dlogl='2.49e-01', energy_flux='1.36e-05', photon_flux2='6.93e-08', job_status='DONE', time_completed='2022-04-21 00:51:53.292914', photon_index_error2='0.89', photon_index2='3.07', ts='1.35', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.44e-07', energy_flux_error2='1.15e-05', EG='0.83', time_epoch_completed='1650527513.29', return_code='0', job_id='692150', GAL2='1.02', EG2='0.80', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='6.00e-08', ts2='1.95', photon_index='2.52' WHERE bin_id='1669' AND source_name='4FGL J2149.7+1917' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Apr 21 00:51:53 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 692150: <4FGL_J2149.7+1917_daily_bin1669> in cluster <slac> Done

Job <4FGL_J2149.7+1917_daily_bin1669> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Apr 21 00:35:32 2022
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Apr 21 00:35:35 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Apr 21 00:35:35 2022
Terminated at Thu Apr 21 00:51:54 2022
Results reported at Thu Apr 21 00:51:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2149.7+1917_daily_bin1669 327.444 19.2859 671932801 672192001 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 :                                   906.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             355.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            982 sec.

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

