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


Performing analysis on: 4FGL_J2149.7+1917_daily_bin1721
RA = 327.444, Dec = 19.2859
tmin = 685411201, tmax = 685670401
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='70598', job_status='RUN', time_executed='2022-09-24 01:14:14.561843', time_epoch_executed='1664007254.56' WHERE source_name='4FGL J2149.7+1917' and cadence='daily' and bin_id='1721'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/70598

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/70598/ft1_4FGL_J2149.7+1917_daily_bin1721.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/70598/ft2_4FGL_J2149.7+1917_daily_bin1721.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/70598/ft1_4FGL_J2149.7+1917_daily_bin1721.fits outfile=/scratch/kocevski/70598/ft1_filteredMKT_4FGL_J2149.7+1917_daily_bin1721.fits ra=327.444 dec=19.2859 rad=12.0 tmin=685411201.0 tmax=685670401.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.26
user 4.95
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/70598/ft2_4FGL_J2149.7+1917_daily_bin1721.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/70598/ft1_filteredMKT_4FGL_J2149.7+1917_daily_bin1721.fits evtable="EVENTS" outfile="/scratch/kocevski/70598/ft1_filtered_4FGL_J2149.7+1917_daily_bin1721.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.51
user 0.33
sys 0.18

Number of photons that the gtmktime cut: 653

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/70598/ft1_filtered_4FGL_J2149.7+1917_daily_bin1721.fits" evtable="EVENTS" scfile=/scratch/kocevski/70598/ft2_4FGL_J2149.7+1917_daily_bin1721.fits sctable="SC_DATA" outfile=/scratch/kocevski/70598/ltcube_685411201_685670401_4FGL_J2149.7+1917_daily_bin1721.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/70598/ft2_4FGL_J2149.7+1917_daily_bin1721.fits
.....................!
real 14.71
user 14.26
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/70598/ft1_filtered_4FGL_J2149.7+1917_daily_bin1721.fits evtable="EVENTS" scfile=/scratch/kocevski/70598/ft2_4FGL_J2149.7+1917_daily_bin1721.fits sctable="SC_DATA" expcube=/scratch/kocevski/70598/ltcube_685411201_685670401_4FGL_J2149.7+1917_daily_bin1721.fits outfile=/scratch/kocevski/70598/expmap_685411201_685670401_4FGL_J2149.7+1917_daily_bin1721.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/70598/ltcube_685411201_685670401_4FGL_J2149.7+1917_daily_bin1721.fits
.....................!
real 192.02
user 186.27
sys 5.00

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/70598/ft1_filtered_4FGL_J2149.7+1917_daily_bin1721.fits scfile=/scratch/kocevski/70598/ft2_4FGL_J2149.7+1917_daily_bin1721.fits outfile=/scratch/kocevski/70598/cmap_685411201_685670401_4FGL_J2149.7+1917_daily_bin1721.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/70598/ft1_filtered_4FGL_J2149.7+1917_daily_bin1721.fits scfile=/scratch/kocevski/70598/ft2_4FGL_J2149.7+1917_daily_bin1721.fits outfile=/scratch/kocevski/70598/cmap_HighResolution_685411201_685670401_4FGL_J2149.7+1917_daily_bin1721.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.894       1.0000          .0000       .10000E+07
     2 'Prefactor '    .78921E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    16.146       1.0000          .0000       .10000E+07
     4 'Prefactor '    .10723E-02   1.0000          .0000       .10000E+07
     5 'norm      '    7.2645       1.0000          .0000       .10000E+07
     6 'Prefactor '    2.8652       1.0000          .0000       .10000E+07
     7 'Prefactor '    .42040E-02   1.0000          .0000       .10000E+07
     8 'norm      '    .78898E-02   1.0000          .0000       .10000E+07
     9 'norm      '    2.5117       1.0000          .0000       .10000E+07
    10 'Prefactor '    30.548       1.0000          .0000       .10000E+07
    11 'Prefactor '    .53693       1.0000          .0000       .10000E+07
    12 'norm      '    1.4838       1.0000          .0000       .10000E+07
    13 'Prefactor '    29.616       1.0000          .0000       .10000E+07
    14 'norm      '    .16925E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .36485E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    3.7195       1.0000          .0000       .10000E+07
    17 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.3120       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=   7417.466     FROM MIGRAD    STATUS=CONVERGED    144 CALLS     1373 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.995        2.2976       -.12152E-07   -.99562E-02
   2  Prefactor     .41633E-08    25.006       -.10707E-06** at limit **
   3  Prefactor     15.711        18.561       -.26552E-07   -.31035E-02
   4  Prefactor     .87967E-05    60.392        .99254E-07** at limit **
   5  norm          7.2308        5.9571       -.18347E-06   -.35468E-03
   6  Prefactor     2.8949        6.2083       -.19648E-06   -.14029E-03
   7  Prefactor     .31853E-05    89.139       -.47292E-06** at limit **
   8  norm          .22204E-09    14.811        .52938E-06** at limit **
   9  norm          2.5115        1.9674        .69594E-07   -.25310E-03
  10  Prefactor     32.231        23.515       -.80823E-07   -.71782E-01
  11  Prefactor     .38473E-05    128.44        .10690E-06** at limit **
  12  norm          1.4765        1.1273        .72270E-07   -.89995E-03
  13  Prefactor     29.695        3.3058       -.93656E-08   -.32500E-01
  14  norm           .0000        4.3466        .23524E-06** at limit **
  15  Prefactor      .0000        4.2004       -.11544E-06** at limit **
  16  Prefactor     3.6317        9.4437       -.17028E-06    .46212E-03
  17  Normalizat    .10000E-01    .54043       -.74842E-05** at limit **
  18  Prefactor     1.3118        .67076E-01    .17085E-05   -.48707E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.9955
  Prefactor  = 4.16334e-09
  Prefactor  = 15.7106
  Prefactor  = 8.79669e-06
  norm       = 7.23078
  Prefactor  = 2.89491
  Prefactor  = 3.18534e-06
  norm       = 2.22045e-10
  norm       = 2.51147
  Prefactor  = 32.2314
  Prefactor  = 3.84726e-06
  norm       = 1.47649
  Prefactor  = 29.6948
  norm       = 0
  Prefactor  = 0
  Prefactor  = 3.63169
  Normalizat = 0.01
  Prefactor  = 1.3118
 **********
 **   18 **HESSE 
 **********

 FCN=   7417.466     FROM HESSE     STATUS=OK           286 CALLS     1659 TOTAL
                     EDM=   .64E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.995        27.087        .23649E-03   -1.5623    
   2  Prefactor     .41633E-08    24.979        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.711        18.726        .24899E-03   -1.5629    
   4  Prefactor     .87967E-05    82.141        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.2308        5.9655        .37191E-03   -1.5654    
   6  Prefactor     2.8949        6.2873        .60029E-03   -1.5674    
   7  Prefactor     .31853E-05    96.834        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .22204E-09    2.3302        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.5115        1.9811        .64443E-03   -1.5676    
  10  Prefactor     32.231        38.541        .18096E-03   -1.5594    
  11  Prefactor     .38473E-05    140.51        .75078E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.4765        1.1518        .88045E-03   -1.5684    
  13  Prefactor     29.695        26.093        .18378E-03   -1.5599    
  14  norm           .0000        4.3260        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        4.2063        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.6317        9.5611        .52335E-03   -1.5670    
  17  Normalizat    .10000E-01    .15465        .32094       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.3118        .91817E-01    .32404E-01   -.82957    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.44177e-07
Minuit parameter uncertainties:
  1  27.0868
  2  0.000643645
  3  18.7263
  4  0.0537619
  5  5.96547
  6  6.28734
  7  0.035126
  8  4.36053e-05
  9  1.98111
  10  38.5418
  11  0.0465008
  12  1.15181
  13  26.0933
  14  1.1287e-06
  15  1.50791e-05
  16  9.56117
  17  2.63774e-07
  18  0.0918288
Done.

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

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  3.223e+01  3.854e+01  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:  1.312e+00  9.183e-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.000e-02  2.638e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.12
Ra Dec: 327.444 19.286
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 5.38e-08 +/- 6.43e-08
Energy Flux (Fixed Index): 1.53e-05 +/- 1.82e-05

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

Saving results to:
/scratch/kocevski/70598/likelihoodResults_685411201_685670401_4FGL_J2149.7+1917_daily_bin1721.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) = 7417.2104255
delta logL = 0.255183472354

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7417.2032687
delta logL = 0.262340268962

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.839       1.0000          .0000       .10000E+07
     2 'Index     '    3.3303       1.0000          .0000       10.000    
     3 'Normalizat'    .10003E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3054       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=   7417.203     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      325 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.894        625.73        .10390E-04    .11161E-03
   2  Index         3.3288        6.4618        .72059E-02    .31033E-04
   3  Normalizat    .10000E-01    .28755        .12802E-01** at limit **
   4  Prefactor     1.3054        .63501E-01    .15010E-03    .11285E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.8944
  Index      = 3.32878
  Normalizat = 0.01
  Prefactor  = 1.30538
 **********
 **   18 **HESSE 
 **********

 FCN=   7417.203     FROM HESSE     STATUS=OK            25 CALLS      350 TOTAL
                     EDM=   .88E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.894        34.927        .41559E-06   -1.5631    
   2  Index         3.3288        1.3730        .28824E-03   -.34080    
   3  Normalizat    .10000E-01    .29001        .25604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3054        .62252E-01    .60041E-05   -.83147    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.76163e-13
Minuit parameter uncertainties:
  1  34.9278
  2  1.39318
  3  4.97161e-07
  4  0.0622558
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/70598': 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) = 7417.20326082
delta logL = 0.262348153911

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  1.489e+01  3.493e+01  0.000e+00  1.000e+06 ( 1.000e-13)
278        Index:  3.329e+00  1.393e+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.305e+00  6.226e-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.000e-02  4.972e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.71
Ra Dec: 327.444 19.286
Photon Index (Free Index): 3.33 +/- 1.39
Photon Flux (Free Index): 9.58e-08 +/- 8.77e-08
Energy Flux (Free Index): 1.68e-05 +/- 1.49e-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/70598/cmap_HighResolution_685411201_685670401_4FGL_J2149.7+1917_daily_bin1721.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.41e-02', comment='SUCCESS', photon_flux='5.38e-08', energy_flux2='1.68e-05', photon_flux_error='6.43e-08', dlogl='2.62e-01', energy_flux='1.53e-05', photon_flux2='9.58e-08', job_status='DONE', time_completed='2022-09-24 01:24:34.258155', photon_index_error2='1.39', photon_index2='3.33', ts='1.12', fit_tolerance='1e-08', GAL='1.31', photon_index_error='0.00', photon_flux_upper_limit='1.81e-07', energy_flux_error2='1.49e-05', EG='0.01', time_epoch_completed='1664007874.26', return_code='0', job_id='70598', GAL2='1.31', EG2='0.01', return_code2='0', energy_flux_error='1.82e-05', photon_flux_error2='8.77e-08', ts2='1.71', photon_index='2.52' WHERE bin_id='1721' AND source_name='4FGL J2149.7+1917' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 24 01:24:34 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 70598: <4FGL_J2149.7+1917_daily_bin1721> in cluster <slac> Done

Job <4FGL_J2149.7+1917_daily_bin1721> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sat Sep 24 01:10:34 2022
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 24 01:12:29 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 24 01:12:29 2022
Terminated at Sat Sep 24 01:24:35 2022
Results reported at Sat Sep 24 01:24:35 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2149.7+1917_daily_bin1721 327.444 19.2859 685411201 685670401 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 :                                   621.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             319.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   725 sec.
    Turnaround time :                            841 sec.

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

