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


Performing analysis on: 4FGL_J2149.7+1917_daily_bin1699
RA = 327.444, Dec = 19.2859
tmin = 679708801, tmax = 679968001
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='1321', job_status='RUN', time_executed='2022-07-20 00:36:31.011091', time_epoch_executed='1658302591.01' WHERE source_name='4FGL J2149.7+1917' and cadence='daily' and bin_id='1699'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/1321

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/1321/ft1_4FGL_J2149.7+1917_daily_bin1699.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/1321/ft2_4FGL_J2149.7+1917_daily_bin1699.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/1321/ft1_4FGL_J2149.7+1917_daily_bin1699.fits outfile=/scratch/kocevski/1321/ft1_filteredMKT_4FGL_J2149.7+1917_daily_bin1699.fits ra=327.444 dec=19.2859 rad=12.0 tmin=679708801.0 tmax=679968001.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.80
user 3.58
sys 0.20

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

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

Number of photons that the gtmktime cut: 811

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/1321/ft1_filtered_4FGL_J2149.7+1917_daily_bin1699.fits" evtable="EVENTS" scfile=/scratch/kocevski/1321/ft2_4FGL_J2149.7+1917_daily_bin1699.fits sctable="SC_DATA" outfile=/scratch/kocevski/1321/ltcube_679708801_679968001_4FGL_J2149.7+1917_daily_bin1699.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/1321/ft2_4FGL_J2149.7+1917_daily_bin1699.fits
.....................!
real 12.18
user 11.82
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/1321/ft1_filtered_4FGL_J2149.7+1917_daily_bin1699.fits evtable="EVENTS" scfile=/scratch/kocevski/1321/ft2_4FGL_J2149.7+1917_daily_bin1699.fits sctable="SC_DATA" expcube=/scratch/kocevski/1321/ltcube_679708801_679968001_4FGL_J2149.7+1917_daily_bin1699.fits outfile=/scratch/kocevski/1321/expmap_679708801_679968001_4FGL_J2149.7+1917_daily_bin1699.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/1321/ltcube_679708801_679968001_4FGL_J2149.7+1917_daily_bin1699.fits
.....................!
real 191.42
user 185.86
sys 5.04

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/1321/ft1_filtered_4FGL_J2149.7+1917_daily_bin1699.fits scfile=/scratch/kocevski/1321/ft2_4FGL_J2149.7+1917_daily_bin1699.fits outfile=/scratch/kocevski/1321/cmap_679708801_679968001_4FGL_J2149.7+1917_daily_bin1699.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/1321/ft1_filtered_4FGL_J2149.7+1917_daily_bin1699.fits scfile=/scratch/kocevski/1321/ft2_4FGL_J2149.7+1917_daily_bin1699.fits outfile=/scratch/kocevski/1321/cmap_HighResolution_679708801_679968001_4FGL_J2149.7+1917_daily_bin1699.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.54
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    140.76       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.7283       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.940       1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.166       1.0000         .10000E-03   10000.    
     6 'norm      '    2.4543       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.855       1.0000         .10000E-03   10000.    
    10 'norm      '    .18029       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .72735       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .96344       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    197.46       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .83028       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1345       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .87128       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=   8943.690     FROM MIGRAD    STATUS=CONVERGED    489 CALLS     2412 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.5404       -.68164E-07** at limit **
   2  Prefactor     140.70        86.747        .37870E-06   -.54880E-04
   3  Prefactor     4.7252        18.089        .93377E-06   -.42128E-05
   4  Prefactor     12.942        28.647        .31387E-06   -.51618E-05
   5  Prefactor     20.167        26.216        .93582E-07   -.11739E-04
   6  norm          2.4541        3.6088        .32410E-06    .56363E-04
   7  Prefactor     .10000E-03    5.4458        .41027E-06** at limit **
   8  Prefactor     .10000E-03    4.3377        .19476E-06** at limit **
   9  Prefactor     11.926        139.97       -.13063E-05    .24580E-04
  10  norm          .17384        1.0627       -.51611E-06    .15862E-02
  11  Prefactor     .10000E-03    43.557        .74836E-07** at limit **
  12  norm          .10000E-03    1.4859        .70901E-06** at limit **
  13  Prefactor     .10000E-03    16.260        .73503E-06** at limit **
  14  Prefactor     .10000E-03    10.027        .12513E-07** at limit **
  15  norm          .72730        .82757        .19042E-06    .67764E-03
  16  Prefactor     .10000E-03    24.806       -.12482E-05** at limit **
  17  norm          .96254        3.6988        .28188E-05    .10591E-03
  18  Prefactor     .10000E-03    10.658        .38647E-06** at limit **
  19  Prefactor     197.37        117.83        .29558E-06   -.62619E-04
  20  Prefactor     .82087        6.3777        .11431E-06   -.16735E-04
  21  Normalizat    1.1348        .21874       -.69262E-06   -.25383E-03
  22  Prefactor     .87120        .92403E-01   -.10732E-05   -.31756E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 140.705
  Prefactor  = 4.72521
  Prefactor  = 12.9418
  Prefactor  = 20.1667
  norm       = 2.4541
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.9262
  norm       = 0.173839
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.727305
  Prefactor  = 0.0001
  norm       = 0.962535
  Prefactor  = 0.0001
  Prefactor  = 197.365
  Prefactor  = 0.820874
  Normalizat = 1.13482
  Prefactor  = 0.871199
 **********
 **   18 **HESSE 
 **********

 FCN=   8943.690     FROM HESSE     STATUS=OK           350 CALLS     2762 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.5462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     140.70        86.791        .16977E-03   -1.3330    
   3  Prefactor     4.7252        18.132        .18505E-03   -1.5273    
   4  Prefactor     12.942        28.607        .11135E-03   -1.4988    
   5  Prefactor     20.167        26.189        .89192E-04   -1.4810    
   6  norm          2.4541        3.5863        .20716E-03   -1.5395    
   7  Prefactor     .10000E-03    5.5736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.3702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.926        139.61        .11635E-03   -1.5017    
  10  norm          .17384        9.5814        .17390E-02   -1.5625    
  11  Prefactor     .10000E-03    43.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.8728        .21869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    16.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .72730        .73638        .87911E-03   -1.5537    
  16  Prefactor     .10000E-03    25.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .96254        3.6548        .33827E-03   -1.5512    
  18  Prefactor     .10000E-03    10.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     197.37        117.85        .14375E-03   -1.2889    
  20  Prefactor     .82087        53.870        .43713E-02   -1.5527    
  21  Normalizat    1.1348        .26646        .35389E-03   -.88641    
  22  Prefactor     .87120        .10897        .17365E-03   -.97155    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29054e-08
Minuit parameter uncertainties:
  1  4.92162e-06
  2  86.8697
  3  18.1536
  4  28.6369
  5  26.2042
  6  3.58661
  7  2.38012e-05
  8  1.73774e-05
  9  81.8483
  10  2.58087
  11  6.75382e-06
  12  2.94556e-05
  13  5.63789e-05
  14  5.96175e-06
  15  0.736385
  16  4.0707e-05
  17  3.65569
  18  3.14959e-05
  19  117.989
  20  13.3114
  21  0.266772
  22  0.108996
Done.

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

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  5.638e-05  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:  8.712e-01  1.090e-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.135e+00  2.668e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/1321/likelihoodResults_679708801_679968001_4FGL_J2149.7+1917_daily_bin1699.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8943.68985972
delta logL = -0.00029218009513

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8943.68957037
delta logL = -2.83295776171e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5122       1.0000          .0000       10.000    
     3 'Normalizat'    1.1347       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87112       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=   8943.690     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      246 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10036E-03    202.58        .18142E-02** at limit **
   2  Index         2.4792        5.7177        .50000        .37736E-05
   3  Normalizat    1.1348        .19191E-01    .35389E-03    .14970E-04
   4  Prefactor     .87120        .84230E-02    .17365E-03    .24877E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100357
  Index      = 2.47924
  Normalizat = 1.13483
  Prefactor  = 0.871198
 **********
 **   18 **HESSE 
 **********

 FCN=   8943.690     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10036E-03    865.58        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4792        6.1657        .50000       -.52840    
   3  Normalizat    1.1348        .42171E-01    .14156E-04   -.88641    
   4  Prefactor     .87120        .18509E-01    .69462E-05   -.97155    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.87374e-09
Minuit parameter uncertainties:
  1  0.0356743
  2  1251.49
  3  0.0421727
  4  0.0185087
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/1321': 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): 102
logL (Free Index) = 8943.68956751
delta logL = 2.98477971228e-08

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  1.004e-04  3.567e-02  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.479e+00  1.251e+03  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.712e-01  1.851e-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:  1.135e+00  4.217e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/1321/cmap_HighResolution_679708801_679968001_4FGL_J2149.7+1917_daily_bin1699.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.49e-03', job_status='DONE', photon_flux_upper_limit='8.33e-08', time_completed='2022-07-20 00:50:00.800679', job_id='1321', GAL2='0.87', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1658303400.8', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='2.98e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1699' AND source_name='4FGL J2149.7+1917' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jul 20 00:50:00 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 1321: <4FGL_J2149.7+1917_daily_bin1699> in cluster <slac> Done

Job <4FGL_J2149.7+1917_daily_bin1699> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Jul 20 00:35:36 2022
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jul 20 00:35:37 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jul 20 00:35:37 2022
Terminated at Wed Jul 20 00:50:01 2022
Results reported at Wed Jul 20 00:50:01 2022

Your job looked like:

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

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

