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


Performing analysis on: 4FGL_J2149.7+1917_daily_bin1701
RA = 327.444, Dec = 19.2859
tmin = 680227201, tmax = 680486401
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='192014', job_status='RUN', time_executed='2022-07-26 02:12:18.098579', time_epoch_executed='1658826738.1' WHERE source_name='4FGL J2149.7+1917' and cadence='daily' and bin_id='1701'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/192014

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/192014/ft1_4FGL_J2149.7+1917_daily_bin1701.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/192014/ft2_4FGL_J2149.7+1917_daily_bin1701.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/192014/ft1_4FGL_J2149.7+1917_daily_bin1701.fits outfile=/scratch/kocevski/192014/ft1_filteredMKT_4FGL_J2149.7+1917_daily_bin1701.fits ra=327.444 dec=19.2859 rad=12.0 tmin=680227201.0 tmax=680486401.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 2.86
user 2.66
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/192014/ft1_filtered_4FGL_J2149.7+1917_daily_bin1701.fits" evtable="EVENTS" scfile=/scratch/kocevski/192014/ft2_4FGL_J2149.7+1917_daily_bin1701.fits sctable="SC_DATA" outfile=/scratch/kocevski/192014/ltcube_680227201_680486401_4FGL_J2149.7+1917_daily_bin1701.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/192014/ft2_4FGL_J2149.7+1917_daily_bin1701.fits
.....................!
real 14.71
user 14.31
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/192014/ft1_filtered_4FGL_J2149.7+1917_daily_bin1701.fits evtable="EVENTS" scfile=/scratch/kocevski/192014/ft2_4FGL_J2149.7+1917_daily_bin1701.fits sctable="SC_DATA" expcube=/scratch/kocevski/192014/ltcube_680227201_680486401_4FGL_J2149.7+1917_daily_bin1701.fits outfile=/scratch/kocevski/192014/expmap_680227201_680486401_4FGL_J2149.7+1917_daily_bin1701.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/192014/ltcube_680227201_680486401_4FGL_J2149.7+1917_daily_bin1701.fits
.....................!
real 191.15
user 186.33
sys 4.45

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/192014/ft1_filtered_4FGL_J2149.7+1917_daily_bin1701.fits scfile=/scratch/kocevski/192014/ft2_4FGL_J2149.7+1917_daily_bin1701.fits outfile=/scratch/kocevski/192014/cmap_680227201_680486401_4FGL_J2149.7+1917_daily_bin1701.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/192014/ft1_filtered_4FGL_J2149.7+1917_daily_bin1701.fits scfile=/scratch/kocevski/192014/ft2_4FGL_J2149.7+1917_daily_bin1701.fits outfile=/scratch/kocevski/192014/cmap_HighResolution_680227201_680486401_4FGL_J2149.7+1917_daily_bin1701.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.59
user 0.40
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/192014/ft1_filtered_4FGL_J2149.7+1917_daily_bin1701.fits evtable="EVENTS" scfile=/scratch/kocevski/192014/ft2_4FGL_J2149.7+1917_daily_bin1701.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/192014/Model_4FGL_J2149.7+1917_daily_bin1701.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/192014/ft1_filtered_4FGL_J2149.7+1917_daily_bin1701.fits.....................!
real 146.49
user 144.87
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5560       1.0000         .10000E-03   10000.    
     2 'Prefactor '    28.526       1.0000         .10000E-03   10000.    
     3 'Prefactor '    31.172       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.4816       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.524       1.0000         .10000E-03   10000.    
     6 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.4648       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10385E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    84.086       1.0000         .10000E-03   10000.    
    12 'norm      '    4.7739       1.0000         .10000E-03   10000.    
    13 'Prefactor '    52.051       1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.281       1.0000         .10000E-03   10000.    
    15 'norm      '    .10669E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.724       1.0000         .10000E-03   10000.    
    17 'norm      '    1.0241       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    127.79       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.6641       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .53642       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0080       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=   9240.784     FROM MIGRAD    STATUS=CONVERGED    499 CALLS     2475 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5464        21.241        .73812E-06    .85853E-05
   2  Prefactor     28.425        49.282       -.35661E-06   -.84066E-04
   3  Prefactor     31.167        20.211        .19870E-06   -.51801E-04
   4  Prefactor     9.4829        21.618        .19623E-06   -.27429E-04
   5  Prefactor     15.529        33.389        .11582E-06   -.26107E-04
   6  norm          .10000E-03    1.8563        .83692E-07** at limit **
   7  Prefactor     .10000E-03    8.2801        .80125E-06** at limit **
   8  Prefactor     3.4605        9.3533       -.11282E-06   -.21486E-03
   9  Prefactor     .10000E-03    70.804        .90669E-06** at limit **
  10  norm          .10000E-03    1.4319        .20240E-05** at limit **
  11  Prefactor     84.089        83.959       -.33347E-06   -.63388E-05
  12  norm          4.7719        4.2707        .35694E-06   -.13744E-03
  13  Prefactor     51.976        34.194       -.21921E-05   -.48167E-03
  14  Prefactor     29.170        48.680        .82784E-08   -.11912E-03
  15  norm          .10000E-03    .54829        .32210E-06** at limit **
  16  Prefactor     19.718        13.524        .17723E-06   -.60972E-04
  17  norm          1.0222        3.3971        .20228E-05    .13787E-03
  18  Prefactor     .10000E-03    4.1278        .97726E-08** at limit **
  19  Prefactor     127.76        75.901        .13505E-06   -.70538E-04
  20  Prefactor     3.6588        8.2933        .47993E-06   -.26112E-04
  21  Normalizat    .53738        .24407       -.41357E-05   -.46909E-03
  22  Prefactor     1.0076        .95762E-01    .44119E-06   -.13012E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.54637
  Prefactor  = 28.4251
  Prefactor  = 31.167
  Prefactor  = 9.48293
  Prefactor  = 15.5295
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.46047
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 84.089
  norm       = 4.77193
  Prefactor  = 51.9764
  Prefactor  = 29.1699
  norm       = 0.0001
  Prefactor  = 19.7184
  norm       = 1.02224
  Prefactor  = 0.0001
  Prefactor  = 127.763
  Prefactor  = 3.65879
  Normalizat = 0.537377
  Prefactor  = 1.00761
 **********
 **   18 **HESSE 
 **********

 FCN=   9240.784     FROM HESSE     STATUS=OK           344 CALLS     2819 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5464        21.207        .18860E-03   -1.5281    
   2  Prefactor     28.425        49.122        .75011E-04   -1.4641    
   3  Prefactor     31.167        20.178        .71765E-04   -1.4591    
   4  Prefactor     9.4829        21.623        .13015E-03   -1.5092    
   5  Prefactor     15.529        33.379        .10165E-03   -1.4920    
   6  norm          .10000E-03    1.8765        .12785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.4459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.4605        9.2434        .21726E-03   -1.5336    
   9  Prefactor     .10000E-03    70.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.9425        .18800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     84.089        84.080        .43807E-04   -1.3871    
  12  norm          4.7719        4.2670        .16860E-03   -1.5271    
  13  Prefactor     51.976        34.629        .55590E-04   -1.4265    
  14  Prefactor     29.170        48.476        .74040E-04   -1.4627    
  15  norm          .10000E-03    1.8641        .13552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     19.718        13.503        .90185E-04   -1.4820    
  17  norm          1.0222        3.3711        .31416E-03   -1.5506    
  18  Prefactor     .10000E-03    4.1306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     127.76        75.747        .17806E-03   -1.3442    
  20  Prefactor     3.6588        8.2563        .21102E-03   -1.5325    
  21  Normalizat    .53738        .26058        .48694E-03   -1.1071    
  22  Prefactor     1.0076        .10565        .15479E-03   -.92476    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33451e-09
Minuit parameter uncertainties:
  1  19.6493
  2  49.1918
  3  20.1825
  4  21.6412
  5  33.419
  6  4.29749e-06
  7  3.09774e-05
  8  9.24718
  9  8.3463e-05
  10  0.000135471
  11  84.1996
  12  4.26731
  13  34.642
  14  48.5418
  15  5.47713e-05
  16  13.5052
  17  3.37172
  18  1.00154e-06
  19  75.8049
  20  8.25882
  21  0.26117
  22  0.105675
Done.

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

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  5.198e+01  3.464e+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.008e+00  1.057e-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.374e-01  2.612e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.74
Ra Dec: 327.444 19.286
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 8.67e-08 +/- 5.77e-08
Energy Flux (Fixed Index): 2.46e-05 +/- 1.64e-05

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

Saving results to:
/scratch/kocevski/192014/likelihoodResults_680227201_680486401_4FGL_J2149.7+1917_daily_bin1701.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) = 9240.77290338
delta logL = 0.0110373439184

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9240.76379617
delta logL = 0.0201445544699

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    46.811       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6390       1.0000          .0000       10.000    
     3 'Normalizat'    .52675       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0107       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9240.764     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      242 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     46.811        606.66        .14651E-02    .47788E-03
   2  Index         2.6391        3.5097        .13692        .16772E-03
   3  Normalizat    .52656        .10515        .11092        .62656E-04
   4  Prefactor     1.0108        .35978E-01    .43224E-01   -.22411E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 46.8112
  Index      = 2.63911
  Normalizat = 0.526565
  Prefactor  = 1.01079
 **********
 **   18 **HESSE 
 **********

 FCN=   9240.764     FROM HESSE     STATUS=OK            31 CALLS      273 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     46.811        45.067        .58604E-04   -1.4339    
   2  Index         2.6391        .65568        .72168E-02   -.49176    
   3  Normalizat    .52656        .25020        .49170E-03   -1.1120    
   4  Prefactor     1.0108        .10478        .15458E-03   -.92371    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.4038e-09
Minuit parameter uncertainties:
  1  45.0998
  2  0.658124
  3  0.250738
  4  0.104802
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/192014': 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) = 9240.76379588
delta logL = 0.0201448397856

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  4.681e+01  4.510e+01  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.639e+00  6.581e-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.011e+00  1.048e-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.266e-01  2.507e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.82
Ra Dec: 327.444 19.286
Photon Index (Free Index): 2.64 +/- 0.66
Photon Flux (Free Index): 9.40e-08 +/- 6.79e-08
Energy Flux (Free Index): 2.38e-05 +/- 1.64e-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/192014/cmap_HighResolution_680227201_680486401_4FGL_J2149.7+1917_daily_bin1701.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.53e-02', comment='SUCCESS', photon_flux='8.67e-08', energy_flux2='2.38e-05', photon_flux_error='5.77e-08', dlogl='2.01e-02', energy_flux='2.46e-05', photon_flux2='9.40e-08', job_status='DONE', time_completed='2022-07-26 02:26:16.420158', photon_index_error2='0.66', photon_index2='2.64', ts='3.74', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.96e-07', energy_flux_error2='1.64e-05', EG='0.54', time_epoch_completed='1658827576.42', return_code='0', job_id='192014', GAL2='1.01', EG2='0.53', return_code2='0', energy_flux_error='1.64e-05', photon_flux_error2='6.79e-08', ts2='3.82', photon_index='2.52' WHERE bin_id='1701' AND source_name='4FGL J2149.7+1917' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul 26 02:26:16 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 192014: <4FGL_J2149.7+1917_daily_bin1701> in cluster <slac> Done

Job <4FGL_J2149.7+1917_daily_bin1701> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Jul 26 02:10:22 2022
Job was executed on host(s) <bullet0128>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul 26 02:11:52 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul 26 02:11:52 2022
Terminated at Tue Jul 26 02:26:17 2022
Results reported at Tue Jul 26 02:26:17 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2149.7+1917_daily_bin1701 327.444 19.2859 680227201 680486401 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 :                                   840.13 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             358.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            955 sec.

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

