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 54 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.6+0323_daily_bin1724
RA = 327.424, Dec = 3.3959
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='707812', job_status='RUN', time_executed='2022-10-03 01:18:35.352737', time_epoch_executed='1664785115.35' WHERE source_name='4FGL J2149.6+0323' and cadence='daily' and bin_id='1724'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/707812

Creating custom pfile directory:
/scratch/kocevski/707812/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/707812/ft1_4FGL_J2149.6+0323_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/707812/ft2_4FGL_J2149.6+0323_daily_bin1724.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/707812/ft1_4FGL_J2149.6+0323_daily_bin1724.fits outfile=/scratch/kocevski/707812/ft1_filteredMKT_4FGL_J2149.6+0323_daily_bin1724.fits ra=327.424 dec=3.3959 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.63
user 4.38
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/707812/ft2_4FGL_J2149.6+0323_daily_bin1724.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/707812/ft2_4FGL_J2149.6+0323_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/707812/ft1_filteredMKT_4FGL_J2149.6+0323_daily_bin1724.fits evtable="EVENTS" outfile="/scratch/kocevski/707812/ft1_filtered_4FGL_J2149.6+0323_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: 563

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/707812/ft1_filtered_4FGL_J2149.6+0323_daily_bin1724.fits" evtable="EVENTS" scfile=/scratch/kocevski/707812/ft2_4FGL_J2149.6+0323_daily_bin1724.fits sctable="SC_DATA" outfile=/scratch/kocevski/707812/ltcube_686188801_686448001_4FGL_J2149.6+0323_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/707812/ft2_4FGL_J2149.6+0323_daily_bin1724.fits
.....................!
real 15.12
user 14.62
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/707812/ft1_filtered_4FGL_J2149.6+0323_daily_bin1724.fits evtable="EVENTS" scfile=/scratch/kocevski/707812/ft2_4FGL_J2149.6+0323_daily_bin1724.fits sctable="SC_DATA" expcube=/scratch/kocevski/707812/ltcube_686188801_686448001_4FGL_J2149.6+0323_daily_bin1724.fits outfile=/scratch/kocevski/707812/expmap_686188801_686448001_4FGL_J2149.6+0323_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/707812/ltcube_686188801_686448001_4FGL_J2149.6+0323_daily_bin1724.fits
.....................!
real 191.87
user 186.28
sys 5.11

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
Added 171 point sources and 0 extended sources

Setting source of interest to:
4FGL J2149.6+0323 @ 327.424 3.3959

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/707812/ft1_filtered_4FGL_J2149.6+0323_daily_bin1724.fits scfile=/scratch/kocevski/707812/ft2_4FGL_J2149.6+0323_daily_bin1724.fits outfile=/scratch/kocevski/707812/cmap_686188801_686448001_4FGL_J2149.6+0323_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.424 yref=3.3959 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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/707812/ft1_filtered_4FGL_J2149.6+0323_daily_bin1724.fits scfile=/scratch/kocevski/707812/ft2_4FGL_J2149.6+0323_daily_bin1724.fits outfile=/scratch/kocevski/707812/cmap_HighResolution_686188801_686448001_4FGL_J2149.6+0323_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.424 yref=3.3959 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/707812/ft1_filtered_4FGL_J2149.6+0323_daily_bin1724.fits evtable="EVENTS" scfile=/scratch/kocevski/707812/ft2_4FGL_J2149.6+0323_daily_bin1724.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/707812/Model_4FGL_J2149.6+0323_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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/707812/ft1_filtered_4FGL_J2149.6+0323_daily_bin1724.fits.....................!
real 63.89
user 62.40
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/707812/ft1_filtered_4FGL_J2149.6+0323_daily_bin1724.fits', '/scratch/kocevski/707812/ft2_4FGL_J2149.6+0323_daily_bin1724.fits', expMap='/scratch/kocevski/707812/expmap_686188801_686448001_4FGL_J2149.6+0323_daily_bin1724.fits', expCube='/scratch/kocevski/707812/ltcube_686188801_686448001_4FGL_J2149.6+0323_daily_bin1724.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/707812/Model_4FGL_J2149.6+0323_daily_bin1724.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2149.6+0323'

4FGL J2149.6+0323
   Spectrum: PowerLaw
296    Prefactor:  1.704e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
297        Index:  2.157e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  1.798e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/707812/ft1_filtered_4FGL_J2149.6+0323_daily_bin1724.fits
Spacecraft file(s): /scratch/kocevski/707812/ft2_4FGL_J2149.6+0323_daily_bin1724.fits
Exposure map: /scratch/kocevski/707812/expmap_686188801_686448001_4FGL_J2149.6+0323_daily_bin1724.fits
Exposure cube: /scratch/kocevski/707812/ltcube_686188801_686448001_4FGL_J2149.6+0323_daily_bin1724.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/707812/Model_4FGL_J2149.6+0323_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) = 6462.45109434

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20389E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    .49405E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    .14211E-07   1.0000          .0000       .10000E+07
     4 'Prefactor '    7.5399       1.0000          .0000       .10000E+07
     5 'Prefactor '    54.703       1.0000          .0000       .10000E+07
     6 'Prefactor '    .28783E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    .25334       1.0000          .0000       .10000E+07
     8 'Prefactor '    61.828       1.0000          .0000       .10000E+07
     9 'Prefactor '    22.759       1.0000          .0000       .10000E+07
    10 'norm      '    .43897E-02   1.0000          .0000       .10000E+07
    11 'norm      '    .86986E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    11.398       1.0000          .0000       .10000E+07
    13 'Prefactor '    19.592       1.0000          .0000       .10000E+07
    14 'Prefactor '    .64627E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    11.966       1.0000          .0000       .10000E+07
    16 'Prefactor '    .50511E-05   1.0000          .0000       .10000E+07
    17 'Normalizat'    .71887       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .92818       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5550E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6462.401     FROM MIGRAD    STATUS=CONVERGED    211 CALLS     1671 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .62933E-06    73.560       -.33742E-05** at limit **
   2  Prefactor      .0000        4.6787       -.51311E-06** at limit **
   3  Prefactor     .34983E-06    16.704       -.32479E-05** at limit **
   4  Prefactor     7.5410        2.2206        .41732E-06    .20133E-02
   5  Prefactor     54.723        7.9745        .98417E-06   -.14104    
   6  Prefactor     .23004E-06    14.798        .42670E-05** at limit **
   7  Prefactor     .24849        6.4021        .79217E-07** at limit **
   8  Prefactor     61.873        1.1458       -.44565E-07    .91281E-03
   9  Prefactor     22.624        7.4230       -.15327E-05    .92527E-01
  10  norm          .26025E-01    33.676        .66990E-07** at limit **
  11  norm           .0000        8.9465       -.25209E-05** at limit **
  12  Prefactor     11.401        9.5699       -.94031E-06   -.21828E-01
  13  Prefactor     19.594        4.2612       -.84982E-06   -.71289E-01
  14  Prefactor     .47129E-06    24.627        .47357E-05** at limit **
  15  Prefactor     11.984        3.2043        .64187E-06   -.11698E-01
  16  Prefactor     .74385E-08    12.902       -.35641E-05** at limit **
  17  Normalizat    .71797        .26097        .30057E-04   -.28829E-03
  18  Prefactor     .92848        .13267       -.18558E-04   -.58333E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.2933e-07
  Prefactor  = 0
  Prefactor  = 3.49831e-07
  Prefactor  = 7.54102
  Prefactor  = 54.7235
  Prefactor  = 2.30038e-07
  Prefactor  = 0.248491
  Prefactor  = 61.8733
  Prefactor  = 22.6238
  norm       = 0.0260252
  norm       = 0
  Prefactor  = 11.4011
  Prefactor  = 19.5936
  Prefactor  = 4.7129e-07
  Prefactor  = 11.9838
  Prefactor  = 7.43849e-09
  Normalizat = 0.717965
  Prefactor  = 0.92848
 **********
 **   18 **HESSE 
 **********

 FCN=   6462.401     FROM HESSE     STATUS=OK           292 CALLS     1963 TOTAL
                     EDM=   .31E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .62933E-06    74.318        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        16.302        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .34983E-06    18.396        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.5410        23.982        .36499E-03   -1.5653    
   5  Prefactor     54.723        49.952        .13521E-03   -1.5560    
   6  Prefactor     .23004E-06    16.460        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .24849        1.4838        .54837E-02   -1.5718    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     61.873        42.561        .12718E-03   -1.5551    
   9  Prefactor     22.624        74.801        .20967E-03   -1.5613    
  10  norm          .26025E-01    1.3124        .42118E-02   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        8.8763        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.401        11.874        .29649E-03   -1.5640    
  13  Prefactor     19.594        14.395        .22600E-03   -1.5619    
  14  Prefactor     .47129E-06    25.471        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.984        23.019        .28934E-03   -1.5639    
  16  Prefactor     .74385E-08    15.362        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .71797        .24062        .84045E-01   -1.0319    
  18  Prefactor     .92848        .11289        .45363E-01   -.95153    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.1247e-06
Minuit parameter uncertainties:
  1  0.0136782
  2  4.14117e-05
  3  0.00507386
  4  23.9822
  5  49.9528
  6  0.00389155
  7  1.21444
  8  42.5611
  9  74.8042
  10  0.369626
  11  2.08152e-05
  12  11.8744
  13  14.395
  14  0.00692923
  15  23.019
  16  0.000676613
  17  0.24097
  18  0.11292
Done.

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

Extracting fit parameters...

4FGL J2149.6+0323
   Spectrum: PowerLaw
296    Prefactor:  1.140e+01  1.187e+01  0.000e+00  1.000e+06 ( 1.000e-13)
297        Index:  2.157e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  1.798e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  9.285e-01  1.129e-01  0.000e+00  1.000e+01 ( 1.000e+00)
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  7.180e-01  2.410e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.30
Ra Dec: 327.424 3.396
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 5.01e-08 +/- 5.22e-08
Energy Flux (Fixed Index): 2.45e-05 +/- 2.55e-05

TS (Fixed Index): 2.30
Ra Dec: 327.424 3.396
Photon Flux Upper Limit: 1.45e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.10e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/707812/likelihoodResults_686188801_686448001_4FGL_J2149.6+0323_daily_bin1724.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) = 6462.24939132
delta logL = 0.152072603842

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6462.24414644
delta logL = 0.157317483112

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7162       1.0000          .0000       .10000E+07
     2 'Index     '    2.5479       1.0000          .0000       10.000    
     3 'Normalizat'    .68536       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93812       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5550E+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=   6462.244     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      278 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7157        11.867        .14430E-04   -.95012E-03
   2  Index         2.5481        .86472        .58747E-02    .61511E-03
   3  Normalizat    .68535        .26980        .38013E-03   -.65765E-04
   4  Prefactor     .93812        .13521        .16806E-03   -.21546E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.71569
  Index      = 2.54811
  Normalizat = 0.685349
  Prefactor  = 0.938119
 **********
 **   18 **HESSE 
 **********

 FCN=   6462.244     FROM HESSE     STATUS=OK            25 CALLS      303 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7157        10.076        .57722E-06   -1.5652    
   2  Index         2.5481        .73414        .11749E-02   -.51252    
   3  Normalizat    .68535        .26758        .15205E-04   -1.0447    
   4  Prefactor     .93812        .13456        .33611E-04   -.94822    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.09992e-11
Minuit parameter uncertainties:
  1  10.0758
  2  0.737658
  3  0.26809
  4  0.134611
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/707812': 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) = 6462.24414631
delta logL = 0.157317615503

Extracting fit parameters...

4FGL J2149.6+0323
   Spectrum: PowerLaw
296    Prefactor:  7.716e+00  1.008e+01  0.000e+00  1.000e+06 ( 1.000e-13)
297        Index:  2.548e+00  7.377e-01  0.000e+00  1.000e+01 (-1.000e+00)
298        Scale:  1.798e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  9.381e-01  1.346e-01  0.000e+00  1.000e+01 ( 1.000e+00)
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  6.853e-01  2.681e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.64
Ra Dec: 327.424 3.396
Photon Index (Free Index): 2.55 +/- 0.74
Photon Flux (Free Index): 7.86e-08 +/- 7.52e-08
Energy Flux (Free Index): 2.17e-05 +/- 1.67e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/707812/cmap_HighResolution_686188801_686448001_4FGL_J2149.6+0323_daily_bin1724.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', comment='SUCCESS', photon_flux='5.01e-08', energy_flux2='2.17e-05', photon_flux_error='5.22e-08', dlogl='1.57e-01', energy_flux='2.45e-05', photon_flux2='7.86e-08', job_status='DONE', time_completed='2022-10-03 01:28:19.641827', photon_index_error2='0.74', photon_index2='2.55', ts='2.30', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.45e-07', energy_flux_error2='1.67e-05', EG='0.72', time_epoch_completed='1664785699.64', return_code='0', job_id='707812', GAL2='0.94', EG2='0.69', return_code2='0', energy_flux_error='2.55e-05', photon_flux_error2='7.52e-08', ts2='2.64', photon_index='2.16' WHERE bin_id='1724' AND source_name='4FGL J2149.6+0323' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Oct  3 01:28:19 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 707812: <4FGL_J2149.6+0323_daily_bin1724> in cluster <slac> Done

Job <4FGL_J2149.6+0323_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) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Oct  3 01:17:31 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:31 2022
Terminated at Mon Oct  3 01:28:20 2022
Results reported at Mon Oct  3 01:28:20 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2149.6+0323_daily_bin1724 327.424 3.3959 686188801 686448001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2149.6+0323 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   586.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             281.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   648 sec.
    Turnaround time :                            762 sec.

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

