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


Performing analysis on: 4FGL_J2149.7+1917_daily_bin1667
RA = 327.444, Dec = 19.2859
tmin = 671414401, tmax = 671673601
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='533143', job_status='RUN', time_executed='2022-04-15 03:42:20.619142', time_epoch_executed='1650019340.62' WHERE source_name='4FGL J2149.7+1917' and cadence='daily' and bin_id='1667'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/533143

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/533143/ft1_4FGL_J2149.7+1917_daily_bin1667.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/533143/ft2_4FGL_J2149.7+1917_daily_bin1667.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/533143/ft1_4FGL_J2149.7+1917_daily_bin1667.fits outfile=/scratch/kocevski/533143/ft1_filteredMKT_4FGL_J2149.7+1917_daily_bin1667.fits ra=327.444 dec=19.2859 rad=12.0 tmin=671414401.0 tmax=671673601.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.55
user 3.29
sys 0.22

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

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

Number of photons that the gtmktime cut: 838

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/533143/ft1_filtered_4FGL_J2149.7+1917_daily_bin1667.fits" evtable="EVENTS" scfile=/scratch/kocevski/533143/ft2_4FGL_J2149.7+1917_daily_bin1667.fits sctable="SC_DATA" outfile=/scratch/kocevski/533143/ltcube_671414401_671673601_4FGL_J2149.7+1917_daily_bin1667.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/533143/ft2_4FGL_J2149.7+1917_daily_bin1667.fits
.....................!
real 15.76
user 15.37
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/533143/ft1_filtered_4FGL_J2149.7+1917_daily_bin1667.fits evtable="EVENTS" scfile=/scratch/kocevski/533143/ft2_4FGL_J2149.7+1917_daily_bin1667.fits sctable="SC_DATA" expcube=/scratch/kocevski/533143/ltcube_671414401_671673601_4FGL_J2149.7+1917_daily_bin1667.fits outfile=/scratch/kocevski/533143/expmap_671414401_671673601_4FGL_J2149.7+1917_daily_bin1667.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/533143/ltcube_671414401_671673601_4FGL_J2149.7+1917_daily_bin1667.fits
.....................!
real 192.21
user 186.57
sys 5.05

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/533143/ft1_filtered_4FGL_J2149.7+1917_daily_bin1667.fits scfile=/scratch/kocevski/533143/ft2_4FGL_J2149.7+1917_daily_bin1667.fits outfile=/scratch/kocevski/533143/cmap_671414401_671673601_4FGL_J2149.7+1917_daily_bin1667.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/533143/ft1_filtered_4FGL_J2149.7+1917_daily_bin1667.fits scfile=/scratch/kocevski/533143/ft2_4FGL_J2149.7+1917_daily_bin1667.fits outfile=/scratch/kocevski/533143/cmap_HighResolution_671414401_671673601_4FGL_J2149.7+1917_daily_bin1667.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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/533143/ft1_filtered_4FGL_J2149.7+1917_daily_bin1667.fits evtable="EVENTS" scfile=/scratch/kocevski/533143/ft2_4FGL_J2149.7+1917_daily_bin1667.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/533143/Model_4FGL_J2149.7+1917_daily_bin1667.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/533143/ft1_filtered_4FGL_J2149.7+1917_daily_bin1667.fits.....................!
real 148.42
user 146.22
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14813E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.3790       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    16.496       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .52271E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .25308E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11588E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10085E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    51.382       1.0000         .10000E-03   10000.    
    12 'norm      '    .84868       1.0000         .10000E-03   10000.    
    13 'Prefactor '    34.442       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.168       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.3847       1.0000         .10000E-03   10000.    
    19 'Prefactor '    50.308       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.1361       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .48783       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0029       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=   9211.343     FROM MIGRAD    STATUS=CONVERGED    511 CALLS     2450 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    54.634       -.12238E-05** at limit **
   2  Prefactor     .10000E-03    399.00       -.10255E-04** at limit **
   3  Prefactor     3.3792        8.0296        .40750E-05   -.39161E-03
   4  Prefactor     .10000E-03    14.974       -.27255E-07** at limit **
   5  Prefactor     .10000E-03    7.0594       -.78388E-07** at limit **
   6  norm          16.496        5.5124       -.94056E-07   -.51035E-04
   7  Prefactor     .10000E-03    2.3588       -.15385E-06** at limit **
   8  Prefactor     .10001E-03    5.4266       -.49835E-06** at limit **
   9  Prefactor     .10000E-03    171.17        .39641E-05** at limit **
  10  norm          .10000E-03    1.1777        .12734E-06** at limit **
  11  Prefactor     51.395        57.844        .54514E-05    .15462E-04
  12  norm          .84798        2.0230       -.17341E-05   -.19704E-02
  13  Prefactor     34.448        29.426       -.79061E-06   -.93204E-06
  14  Prefactor     .10000E-03    25.149       -.88626E-06** at limit **
  15  norm          .10000E-03    .26291        .35141E-07** at limit **
  16  Prefactor     23.161        15.787        .51255E-05   -.35955E-03
  17  norm          .10000E-03    .91811        .10485E-06** at limit **
  18  Prefactor     6.3833        8.6688       -.43707E-06   -.86775E-04
  19  Prefactor     50.286        85.496       -.17670E-04    .80139E-04
  20  Prefactor     9.1345        9.4195       -.43180E-05    .21427E-03
  21  Normalizat    .48820        .23930        .38282E-05    .66915E-04
  22  Prefactor     1.0028        .97926E-01   -.21760E-06    .30509E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.37917
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.4963
  Prefactor  = 0.000100003
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 51.3946
  norm       = 0.847979
  Prefactor  = 34.4481
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 23.1606
  norm       = 0.0001
  Prefactor  = 6.38328
  Prefactor  = 50.2856
  Prefactor  = 9.13445
  Normalizat = 0.488204
  Prefactor  = 1.0028
 **********
 **   18 **HESSE 
 **********

 FCN=   9211.343     FROM HESSE     STATUS=OK           340 CALLS     2790 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    55.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    404.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.3792        7.8833        .22012E-03   -1.5340    
   4  Prefactor     .10000E-03    14.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.0622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          16.496        5.4969        .98611E-04   -1.4895    
   7  Prefactor     .10000E-03    13.244        .26901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    21.558        .40201E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    171.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.2062        .20255E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     51.395        57.729        .55949E-04   -1.4273    
  12  norm          .84798        2.0647        .19097E-03   -1.5524    
  13  Prefactor     34.448        29.216        .68283E-04   -1.4533    
  14  Prefactor     .10000E-03    25.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .34210        .94978E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     23.161        15.404        .83219E-04   -1.4745    
  17  norm          .10000E-03    .91941        .89799E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.3833        8.6601        .15885E-03   -1.5203    
  19  Prefactor     50.286        84.943        .56541E-04   -1.4289    
  20  Prefactor     9.1345        9.3952        .13260E-03   -1.5103    
  21  Normalizat    .48820        .23856        .47179E-03   -1.1297    
  22  Prefactor     1.0028        .10310        .15127E-03   -.92636    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19635e-09
Minuit parameter uncertainties:
  1  0.000131597
  2  0.000499594
  3  7.88573
  4  1.82011e-05
  5  6.19694e-06
  6  5.49711
  7  0.000373554
  8  0.000665077
  9  0.000503934
  10  6.13809e-06
  11  57.792
  12  2.06488
  13  29.2282
  14  3.13611e-06
  15  5.05853e-06
  16  15.4069
  17  8.08676e-07
  18  8.66183
  19  85.1488
  20  9.39669
  21  0.239062
  22  0.103125
Done.

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

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  3.445e+01  2.923e+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.003e+00  1.031e-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:  4.882e-01  2.391e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.98
Ra Dec: 327.444 19.286
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 5.75e-08 +/- 4.87e-08
Energy Flux (Fixed Index): 1.63e-05 +/- 1.38e-05

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

Saving results to:
/scratch/kocevski/533143/likelihoodResults_671414401_671673601_4FGL_J2149.7+1917_daily_bin1667.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) = 9211.16149713
delta logL = 0.181266620817

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9211.15241976
delta logL = 0.190343988252

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.035       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0483       1.0000          .0000       10.000    
     3 'Normalizat'    .45353       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0137       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=   9211.152     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      311 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.021        58.945        .89483E-04   -.53299E-03
   2  Index         3.0488        1.7760        .72555E-02   -.16726E-03
   3  Normalizat    .45279        .24557        .48925E-03    .35938E-03
   4  Prefactor     1.0140        .10853        .15054E-03    .34654E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.0215
  Index      = 3.04878
  Normalizat = 0.452786
  Prefactor  = 1.01402
 **********
 **   18 **HESSE 
 **********

 FCN=   9211.152     FROM HESSE     STATUS=OK            25 CALLS      336 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.021        33.645        .17897E-04   -1.4813    
   2  Index         3.0488        1.0270        .29022E-03   -.40090    
   3  Normalizat    .45279        .23733        .19570E-04   -1.1466    
   4  Prefactor     1.0140        .10475        .30108E-04   -.92264    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82894e-09
Minuit parameter uncertainties:
  1  33.6766
  2  1.03573
  3  0.237857
  4  0.104772
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/533143': 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) = 9211.15241417
delta logL = 0.190349573544

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  2.002e+01  3.368e+01  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  3.049e+00  1.036e+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.014e+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:  4.528e-01  2.379e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.49
Ra Dec: 327.444 19.286
Photon Index (Free Index): 3.05 +/- 1.04
Photon Flux (Free Index): 7.91e-08 +/- 6.42e-08
Energy Flux (Free Index): 1.54e-05 +/- 1.22e-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/533143/cmap_HighResolution_671414401_671673601_4FGL_J2149.7+1917_daily_bin1667.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-02', comment='SUCCESS', photon_flux='5.75e-08', energy_flux2='1.54e-05', photon_flux_error='4.87e-08', dlogl='1.90e-01', energy_flux='1.63e-05', photon_flux2='7.91e-08', job_status='DONE', time_completed='2022-04-15 03:56:36.563301', photon_index_error2='1.04', photon_index2='3.05', ts='1.98', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.54e-07', energy_flux_error2='1.22e-05', EG='0.49', time_epoch_completed='1650020196.56', return_code='0', job_id='533143', GAL2='1.01', EG2='0.45', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='6.42e-08', ts2='2.49', photon_index='2.52' WHERE bin_id='1667' AND source_name='4FGL J2149.7+1917' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Apr 15 03:56:36 PDT 2022


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

Job <4FGL_J2149.7+1917_daily_bin1667> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Apr 15 03:40:37 2022
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Apr 15 03:41:36 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Apr 15 03:41:36 2022
Terminated at Fri Apr 15 03:56:37 2022
Results reported at Fri Apr 15 03:56:37 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2149.7+1917_daily_bin1667 327.444 19.2859 671414401 671673601 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 :                                   856.46 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             366.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            960 sec.

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

