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 229 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 17375
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2149.7+1917_weekly_bin740
RA = 327.444, Dec = 19.2859
tmin = 686534401, tmax = 687139201
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='834470', job_status='RUN', time_executed='2022-10-11 00:54:30.541845', time_epoch_executed='1665474870.54' WHERE source_name='4FGL J2149.7+1917' and cadence='weekly' and bin_id='740'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/834470

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/834470/ft1_4FGL_J2149.7+1917_weekly_bin740.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/834470/ft2_4FGL_J2149.7+1917_weekly_bin740.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/834470/ft1_4FGL_J2149.7+1917_weekly_bin740.fits outfile=/scratch/kocevski/834470/ft1_filteredMKT_4FGL_J2149.7+1917_weekly_bin740.fits ra=327.444 dec=19.2859 rad=12.0 tmin=686534401.0 tmax=687139201.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 5.80
user 5.55
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/834470/ft2_4FGL_J2149.7+1917_weekly_bin740.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/834470/ft1_filteredMKT_4FGL_J2149.7+1917_weekly_bin740.fits evtable="EVENTS" outfile="/scratch/kocevski/834470/ft1_filtered_4FGL_J2149.7+1917_weekly_bin740.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.47
user 0.32
sys 0.14

Number of photons that the gtmktime cut: 1340

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/834470/ft1_filtered_4FGL_J2149.7+1917_weekly_bin740.fits" evtable="EVENTS" scfile=/scratch/kocevski/834470/ft2_4FGL_J2149.7+1917_weekly_bin740.fits sctable="SC_DATA" outfile=/scratch/kocevski/834470/ltcube_686534401_687139201_4FGL_J2149.7+1917_weekly_bin740.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/834470/ft2_4FGL_J2149.7+1917_weekly_bin740.fits
.....................!
real 24.94
user 24.59
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/834470/ft1_filtered_4FGL_J2149.7+1917_weekly_bin740.fits evtable="EVENTS" scfile=/scratch/kocevski/834470/ft2_4FGL_J2149.7+1917_weekly_bin740.fits sctable="SC_DATA" expcube=/scratch/kocevski/834470/ltcube_686534401_687139201_4FGL_J2149.7+1917_weekly_bin740.fits outfile=/scratch/kocevski/834470/expmap_686534401_687139201_4FGL_J2149.7+1917_weekly_bin740.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/834470/ltcube_686534401_687139201_4FGL_J2149.7+1917_weekly_bin740.fits
.....................!
real 151.15
user 147.37
sys 3.42

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source Cygnus Loop in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CygnusLoop.fits is the correct path to the extended template.
Added 161 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2149.7+1917 @ 327.444 19.2859

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/834470/ft1_filtered_4FGL_J2149.7+1917_weekly_bin740.fits scfile=/scratch/kocevski/834470/ft2_4FGL_J2149.7+1917_weekly_bin740.fits outfile=/scratch/kocevski/834470/cmap_686534401_687139201_4FGL_J2149.7+1917_weekly_bin740.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.51
user 0.35
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/834470/ft1_filtered_4FGL_J2149.7+1917_weekly_bin740.fits scfile=/scratch/kocevski/834470/ft2_4FGL_J2149.7+1917_weekly_bin740.fits outfile=/scratch/kocevski/834470/cmap_HighResolution_686534401_687139201_4FGL_J2149.7+1917_weekly_bin740.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.51
user 0.35
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/834470/ft1_filtered_4FGL_J2149.7+1917_weekly_bin740.fits evtable="EVENTS" scfile=/scratch/kocevski/834470/ft2_4FGL_J2149.7+1917_weekly_bin740.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/834470/Model_4FGL_J2149.7+1917_weekly_bin740.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/834470/ft1_filtered_4FGL_J2149.7+1917_weekly_bin740.fits....................!
real 160.08
user 158.70
sys 1.02

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/834470/ft1_filtered_4FGL_J2149.7+1917_weekly_bin740.fits', '/scratch/kocevski/834470/ft2_4FGL_J2149.7+1917_weekly_bin740.fits', expMap='/scratch/kocevski/834470/expmap_686534401_687139201_4FGL_J2149.7+1917_weekly_bin740.fits', expCube='/scratch/kocevski/834470/ltcube_686534401_687139201_4FGL_J2149.7+1917_weekly_bin740.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/834470/Model_4FGL_J2149.7+1917_weekly_bin740.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2149.7+1917'

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  7.294e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
278        Index:  2.521e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
279        Scale:  8.988e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/834470/ft1_filtered_4FGL_J2149.7+1917_weekly_bin740.fits
Spacecraft file(s): /scratch/kocevski/834470/ft2_4FGL_J2149.7+1917_weekly_bin740.fits
Exposure map: /scratch/kocevski/834470/expmap_686534401_687139201_4FGL_J2149.7+1917_weekly_bin740.fits
Exposure cube: /scratch/kocevski/834470/ltcube_686534401_687139201_4FGL_J2149.7+1917_weekly_bin740.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/834470/Model_4FGL_J2149.7+1917_weekly_bin740.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) = 14600.5969843

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32699E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    17.903       1.0000          .0000       .10000E+07
     3 'Prefactor '    11.754       1.0000          .0000       .10000E+07
     4 'Prefactor '    31.771       1.0000          .0000       .10000E+07
     5 'norm      '    4.1291       1.0000          .0000       .10000E+07
     6 'Prefactor '    .68351E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    .36906E-01   1.0000          .0000       .10000E+07
     8 'norm      '    1.8343       1.0000          .0000       .10000E+07
     9 'norm      '    3.1993       1.0000          .0000       .10000E+07
    10 'Prefactor '    .26433E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    130.53       1.0000          .0000       .10000E+07
    12 'norm      '    .72771E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    47.265       1.0000          .0000       .10000E+07
    14 'norm      '    .49211E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    .91417E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    .65401E-03   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.1895       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .80218       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14600.60     FROM MIGRAD    STATUS=CONVERGED     94 CALLS     1379 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .72164E-07    12.864        .42141E-06** at limit **
   2  Prefactor     17.914        1.0131        .46526E-08   -.31703E-02
   3  Prefactor     11.752        1.6930       -.44124E-07   -.56240E-01
   4  Prefactor     31.777        3.3884        .71799E-07   -.39691E-01
   5  norm          4.1343        2.6670        .31637E-07    .17451E-03
   6  Prefactor      .0000        2.3818        .14959E-06** at limit **
   7  Prefactor      .0000        26.188        .23625E-06** at limit **
   8  norm          1.8314        1.6019        .83983E-07    .26242E-02
   9  norm          3.2008        1.7712       -.95269E-07   -.11049E-02
  10  Prefactor     .59619E-07    13.212       -.82591E-06** at limit **
  11  Prefactor     130.56        4.4392        .48167E-07   -.24772    
  12  norm          .73589E-01    .96828        .39603E-06** at limit **
  13  Prefactor     47.270        1.9492        .30343E-07   -.85899E-02
  14  norm           .0000        1.1940       -.18853E-06** at limit **
  15  Prefactor      .0000        2.9605        .13191E-06** at limit **
  16  Prefactor     .16653E-09    6.9975        .14105E-06** at limit **
  17  Normalizat    1.1891        .20410        .10929E-04    .10582E-03
  18  Prefactor     .80233        .83692E-01   -.97576E-05    .11099E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.21645e-08
  Prefactor  = 17.914
  Prefactor  = 11.7525
  Prefactor  = 31.7765
  norm       = 4.13434
  Prefactor  = 0
  Prefactor  = 0
  norm       = 1.83142
  norm       = 3.20078
  Prefactor  = 5.9619e-08
  Prefactor  = 130.556
  norm       = 0.0735893
  Prefactor  = 47.2701
  norm       = 0
  Prefactor  = 0
  Prefactor  = 1.66533e-10
  Normalizat = 1.18907
  Prefactor  = 0.802332
 **********
 **   18 **HESSE 
 **********

 FCN=   14600.60     FROM HESSE     STATUS=OK           284 CALLS     1663 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .72164E-07    13.216        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.914        45.186        .23643E-03   -1.5623    
   3  Prefactor     11.752        10.443        .29194E-03   -1.5639    
   4  Prefactor     31.777        22.471        .17744E-03   -1.5595    
   5  norm          4.1343        2.7079        .49583E-03   -1.5667    
   6  Prefactor      .0000        2.3715        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        26.174        .16106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.8314        1.6216        .77014E-03   -1.5681    
   9  norm          3.2008        1.7773        .56622E-03   -1.5672    
  10  Prefactor     .59619E-07    13.583        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     130.56        56.519        .87535E-04   -1.5479    
  12  norm          .73589E-01    .35097        .24650E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     47.270        19.949        .14547E-03   -1.5570    
  14  norm           .0000        1.2058        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        2.9608        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .16653E-09    7.0526        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.1891        .17763        .79693E-01   -.86941    
  18  Prefactor     .80233        .70419E-01    .43746E-01   -.99642    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60434e-06
Minuit parameter uncertainties:
  1  0.00195306
  2  45.1867
  3  10.4428
  4  22.4707
  5  2.70794
  6  1.28354e-06
  7  3.76495e-05
  8  1.62156
  9  1.77734
  10  0.00179995
  11  56.5195
  12  0.321419
  13  19.9492
  14  3.83322e-06
  15  1.28809e-05
  16  6.71109e-05
  17  0.177716
  18  0.0704271
Done.

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

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  5.962e-08  1.800e-03  0.000e+00  1.000e+06 ( 1.000e-13)
278        Index:  2.521e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
279        Scale:  8.988e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  8.023e-01  7.043e-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.189e+00  1.777e-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: 6.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/834470/likelihoodResults_686534401_687139201_4FGL_J2149.7+1917_weekly_bin740.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) = 14600.6329063
delta logL = -0.035965803203

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14600.5969408
delta logL = -3.52387360181e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30024E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.4332       1.0000          .0000       10.000    
     3 'Normalizat'    1.1892       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80230       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   14600.60     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      214 TOTAL
                     EDM=   .16E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        9.0524        .42118E-03** at limit **
   2  Index         3.0811        1.3917        .13260E-03     .0000    
   3  Normalizat    1.1891        1.1101       -.90311E-05   -.13949E-04
   4  Prefactor     .80233        1.1509        .91637E-05    .15908E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.08107
  Normalizat = 1.18907
  Prefactor  = 0.802332
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   14600.60     FROM HESSE     STATUS=FAILED         9 CALLS      223 TOTAL
                     EDM=   .16E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        9.0524        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.0713        2.0990        .13260E-03   -.39389    
   3  Normalizat    1.1891        1.1101       -.90311E-05   -.86941    
   4  Prefactor     .80233        1.1509        .91637E-05   -.99642    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.63854e-12
Minuit parameter uncertainties:
  1  1.76439e-05
  2  1.41371
  3  1.13335
  4  1.18841
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/834470': 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): 101
logL (Free Index) = 14600.5969404
delta logL = 2.19915818889e-09

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  0.000e+00  1.764e-05  0.000e+00  1.000e+06 ( 1.000e-13)
278        Index:  3.081e+00  1.414e+00  0.000e+00  1.000e+01 (-1.000e+00)
279        Scale:  8.988e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  8.023e-01  1.188e+00  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.189e+00  1.133e+00  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/834470/cmap_HighResolution_686534401_687139201_4FGL_J2149.7+1917_weekly_bin740.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.85e-03', job_status='DONE', photon_flux_upper_limit='6.22e-08', time_completed='2022-10-11 01:06:54.140038', job_id='834470', GAL2='0.80', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1665475614.14', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='2.20e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='740' AND source_name='4FGL J2149.7+1917' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct 11 01:06:54 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 834470: <4FGL_J2149.7+1917_weekly_bin740> in cluster <slac> Done

Job <4FGL_J2149.7+1917_weekly_bin740> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Oct 11 00:50:33 2022
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct 11 00:50:33 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct 11 00:50:33 2022
Terminated at Tue Oct 11 01:06:55 2022
Results reported at Tue Oct 11 01:06:55 2022

Your job looked like:

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

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

