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


Performing analysis on: 4FGL_J2149.7+1917_daily_bin1724
RA = 327.444, Dec = 19.2859
tmin = 686188801, tmax = 686448001
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='707814', job_status='RUN', time_executed='2022-10-03 01:19:50.695254', time_epoch_executed='1664785190.7' WHERE source_name='4FGL J2149.7+1917' and cadence='daily' and bin_id='1724'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/707814

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/707814/ft1_4FGL_J2149.7+1917_daily_bin1724.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/707814/ft2_4FGL_J2149.7+1917_daily_bin1724.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/707814/ft1_4FGL_J2149.7+1917_daily_bin1724.fits outfile=/scratch/kocevski/707814/ft1_filteredMKT_4FGL_J2149.7+1917_daily_bin1724.fits ra=327.444 dec=19.2859 rad=12.0 tmin=686188801.0 tmax=686448001.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 4.62
user 4.33
sys 0.24

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

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

Number of photons that the gtmktime cut: 732

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/707814/ft1_filtered_4FGL_J2149.7+1917_daily_bin1724.fits" evtable="EVENTS" scfile=/scratch/kocevski/707814/ft2_4FGL_J2149.7+1917_daily_bin1724.fits sctable="SC_DATA" outfile=/scratch/kocevski/707814/ltcube_686188801_686448001_4FGL_J2149.7+1917_daily_bin1724.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/707814/ft2_4FGL_J2149.7+1917_daily_bin1724.fits
.....................!
real 13.62
user 13.18
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/707814/ft1_filtered_4FGL_J2149.7+1917_daily_bin1724.fits evtable="EVENTS" scfile=/scratch/kocevski/707814/ft2_4FGL_J2149.7+1917_daily_bin1724.fits sctable="SC_DATA" expcube=/scratch/kocevski/707814/ltcube_686188801_686448001_4FGL_J2149.7+1917_daily_bin1724.fits outfile=/scratch/kocevski/707814/expmap_686188801_686448001_4FGL_J2149.7+1917_daily_bin1724.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/707814/ltcube_686188801_686448001_4FGL_J2149.7+1917_daily_bin1724.fits
.....................!
real 192.11
user 186.09
sys 5.37

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/707814/ft1_filtered_4FGL_J2149.7+1917_daily_bin1724.fits scfile=/scratch/kocevski/707814/ft2_4FGL_J2149.7+1917_daily_bin1724.fits outfile=/scratch/kocevski/707814/cmap_686188801_686448001_4FGL_J2149.7+1917_daily_bin1724.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/707814/ft1_filtered_4FGL_J2149.7+1917_daily_bin1724.fits scfile=/scratch/kocevski/707814/ft2_4FGL_J2149.7+1917_daily_bin1724.fits outfile=/scratch/kocevski/707814/cmap_HighResolution_686188801_686448001_4FGL_J2149.7+1917_daily_bin1724.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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/707814/ft1_filtered_4FGL_J2149.7+1917_daily_bin1724.fits evtable="EVENTS" scfile=/scratch/kocevski/707814/ft2_4FGL_J2149.7+1917_daily_bin1724.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/707814/Model_4FGL_J2149.7+1917_daily_bin1724.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/707814/ft1_filtered_4FGL_J2149.7+1917_daily_bin1724.fits.....................!
real 111.66
user 110.09
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.229       1.0000          .0000       .10000E+07
     2 'Prefactor '    178.23       1.0000          .0000       .10000E+07
     3 'Prefactor '    29.581       1.0000          .0000       .10000E+07
     4 'Prefactor '    .26029E-03   1.0000          .0000       .10000E+07
     5 'norm      '    2.9892       1.0000          .0000       .10000E+07
     6 'Prefactor '    .82231E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    .30251E-03   1.0000          .0000       .10000E+07
     8 'norm      '    .10327E-04   1.0000          .0000       .10000E+07
     9 'norm      '    .11107E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    76.641       1.0000          .0000       .10000E+07
    11 'Prefactor '    18.973       1.0000          .0000       .10000E+07
    12 'norm      '    .36701E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    20.907       1.0000          .0000       .10000E+07
    14 'norm      '    5.8670       1.0000          .0000       .10000E+07
    15 'Prefactor '    .64446E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .11795E-03   1.0000          .0000       .10000E+07
    17 'Normalizat'    .79783       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .96658       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=   8016.026     FROM MIGRAD    STATUS=CONVERGED    165 CALLS     1395 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.529        3.8663        .70144E-07   -.17443    
   2  Prefactor     176.36        118.27       -.29566E-06    .38644E-03
   3  Prefactor     29.549        21.246       -.11701E-06    .14791E-01
   4  Prefactor     .10547E-07    11.935       -.67998E-06** at limit **
   5  norm          2.9922        3.2857       -.35488E-06    .24607E-03
   6  Prefactor     .16653E-09    8.3740        .68916E-06** at limit **
   7  Prefactor     .26201E-07    107.08       -.39173E-06** at limit **
   8  norm           .0000        .84542       -.22153E-06** at limit **
   9  norm           .0000        6.6327       -.66212E-08** at limit **
  10  Prefactor     76.994        7.8660        .89615E-07   -.71206E-01
  11  Prefactor     20.692        32.355        .83720E-06    .20335E-01
  12  norm          .16653E-09    12.924       -.73952E-06** at limit **
  13  Prefactor     20.863        3.4948       -.35719E-07   -.87429E-01
  14  norm          5.8823        5.8940        .28157E-08   -.64649E-03
  15  Prefactor     .55511E-10    6.5723        .82283E-06** at limit **
  16  Prefactor     .19873E-07    12.841       -.66170E-06** at limit **
  17  Normalizat    .79728        .26405       -.90490E-05   -.81863E-05
  18  Prefactor     .96656        .11611        .54404E-05   -.17340E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.5291
  Prefactor  = 176.364
  Prefactor  = 29.5487
  Prefactor  = 1.05471e-08
  norm       = 2.99222
  Prefactor  = 1.66533e-10
  Prefactor  = 2.62013e-08
  norm       = 0
  norm       = 0
  Prefactor  = 76.9936
  Prefactor  = 20.6916
  norm       = 1.66533e-10
  Prefactor  = 20.8632
  norm       = 5.88226
  Prefactor  = 5.55112e-11
  Prefactor  = 1.9873e-08
  Normalizat = 0.797282
  Prefactor  = 0.966558
 **********
 **   18 **HESSE 
 **********

 FCN=   8016.026     FROM HESSE     STATUS=OK           290 CALLS     1685 TOTAL
                     EDM=   .98E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.529        30.549        .15968E-03   -1.5582    
   2  Prefactor     176.36        118.77        .74911E-04   -1.5442    
   3  Prefactor     29.549        21.378        .18389E-03   -1.5599    
   4  Prefactor     .10547E-07    12.038        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.9922        3.2912        .58691E-03   -1.5673    
   6  Prefactor     .16653E-09    8.2312        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .26201E-07    107.37        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        .84280        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        1.1836        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     76.994        35.908        .11423E-03   -1.5532    
  11  Prefactor     20.692        33.760        .22966E-03   -1.5617    
  12  norm          .16653E-09    .89263        .25389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     20.863        16.881        .21877E-03   -1.5617    
  14  norm          5.8823        5.9144        .41437E-03   -1.5659    
  15  Prefactor     .55511E-10    6.5602        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .19873E-07    13.029        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .79728        .23949        .94589E-01   -1.0017    
  18  Prefactor     .96656        .10065        .45848E-01   -.93853    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.81999e-07
Minuit parameter uncertainties:
  1  30.5488
  2  118.774
  3  21.3779
  4  0.000712827
  5  3.29122
  6  6.84841e-05
  7  0.00335443
  8  1.26615e-07
  9  1.62058e-06
  10  35.9084
  11  33.7602
  12  2.62528e-05
  13  16.8809
  14  5.91444
  15  4.42507e-05
  16  0.00101731
  17  0.239803
  18  0.100674
Done.

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

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  7.699e+01  3.591e+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:  9.666e-01  1.007e-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:  7.973e-01  2.398e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.53
Ra Dec: 327.444 19.286
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 1.28e-07 +/- 5.99e-08
Energy Flux (Fixed Index): 3.65e-05 +/- 1.70e-05

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) = 8016.02019137
delta logL = 0.00531798274824

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8016.01367343
delta logL = 0.0118359177386

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    82.757       1.0000          .0000       .10000E+07
     2 'Index     '    2.4437       1.0000          .0000       10.000    
     3 'Normalizat'    .80449       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96441       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=   8016.014     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      268 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     82.755        55.176        .43973E-05    .13568E-02
   2  Index         2.4434        .52138        .56729E-02    .64862E-04
   3  Normalizat    .80511        .26723        .41718E-03   -.55430E-04
   4  Prefactor     .96414        .11580        .16819E-03   -.18552E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 82.7551
  Index      = 2.44337
  Normalizat = 0.805108
  Prefactor  = 0.964141
 **********
 **   18 **HESSE 
 **********

 FCN=   8016.014     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     82.755        52.500        .87946E-06   -1.5526    
   2  Index         2.4434        .49560        .22692E-03   -.53673    
   3  Normalizat    .80511        .26689        .16687E-04   -.99879    
   4  Prefactor     .96414        .11572        .33638E-04   -.93935    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.36493e-11
Minuit parameter uncertainties:
  1  52.5
  2  0.4967
  3  0.267328
  4  0.115751
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/707814': 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) = 8016.01367035
delta logL = 0.0118389972404

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  9.641e-01  1.158e-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:  8.051e-01  2.673e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.51
Ra Dec: 327.444 19.286
Photon Index (Free Index): 2.44 +/- 0.50
Photon Flux (Free Index): 1.23e-07 +/- 6.87e-08
Energy Flux (Free Index): 3.81e-05 +/- 2.09e-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/707814/cmap_HighResolution_686188801_686448001_4FGL_J2149.7+1917_daily_bin1724.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.28e-07', energy_flux2='3.81e-05', photon_flux_error='5.99e-08', dlogl='1.18e-02', energy_flux='3.65e-05', photon_flux2='1.23e-07', job_status='DONE', time_completed='2022-10-03 01:29:49.153868', photon_index_error2='0.50', photon_index2='2.44', ts='8.53', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='2.09e-05', EG='0.80', time_epoch_completed='1664785789.15', return_code='0', job_id='707814', GAL2='0.96', EG2='0.81', return_code2='0', energy_flux_error='1.70e-05', photon_flux_error2='6.87e-08', ts2='8.51', photon_index='2.52' WHERE bin_id='1724' AND source_name='4FGL J2149.7+1917' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Oct  3 01:29:49 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 707814: <4FGL_J2149.7+1917_daily_bin1724> in cluster <slac> Done

Job <4FGL_J2149.7+1917_daily_bin1724> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Oct  3 01:15:38 2022
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Oct  3 01:17:32 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Oct  3 01:17:32 2022
Terminated at Mon Oct  3 01:29:49 2022
Results reported at Mon Oct  3 01:29:49 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2149.7+1917_daily_bin1724 327.444 19.2859 686188801 686448001 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 :                                   599.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             308.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   737 sec.
    Turnaround time :                            851 sec.

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

