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


Performing analysis on: 4FGL_J2149.6+0323_daily_bin1747
RA = 327.424, Dec = 3.3959
tmin = 692150401, tmax = 692409601
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='813641', job_status='RUN', time_executed='2022-12-11 01:40:58.357905', time_epoch_executed='1670751658.36' WHERE source_name='4FGL J2149.6+0323' and cadence='daily' and bin_id='1747'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/813641

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/813641/ft1_4FGL_J2149.6+0323_daily_bin1747.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/813641/ft2_4FGL_J2149.6+0323_daily_bin1747.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/813641/ft1_4FGL_J2149.6+0323_daily_bin1747.fits outfile=/scratch/kocevski/813641/ft1_filteredMKT_4FGL_J2149.6+0323_daily_bin1747.fits ra=327.424 dec=3.3959 rad=12.0 tmin=692150401.0 tmax=692409601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.98
user 3.75
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/813641/ft2_4FGL_J2149.6+0323_daily_bin1747.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/813641/ft1_filteredMKT_4FGL_J2149.6+0323_daily_bin1747.fits evtable="EVENTS" outfile="/scratch/kocevski/813641/ft1_filtered_4FGL_J2149.6+0323_daily_bin1747.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.31
sys 0.17

Number of photons that the gtmktime cut: 546

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/813641/ft1_filtered_4FGL_J2149.6+0323_daily_bin1747.fits" evtable="EVENTS" scfile=/scratch/kocevski/813641/ft2_4FGL_J2149.6+0323_daily_bin1747.fits sctable="SC_DATA" outfile=/scratch/kocevski/813641/ltcube_692150401_692409601_4FGL_J2149.6+0323_daily_bin1747.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/813641/ft2_4FGL_J2149.6+0323_daily_bin1747.fits
.....................!
real 11.84
user 11.48
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/813641/ft1_filtered_4FGL_J2149.6+0323_daily_bin1747.fits evtable="EVENTS" scfile=/scratch/kocevski/813641/ft2_4FGL_J2149.6+0323_daily_bin1747.fits sctable="SC_DATA" expcube=/scratch/kocevski/813641/ltcube_692150401_692409601_4FGL_J2149.6+0323_daily_bin1747.fits outfile=/scratch/kocevski/813641/expmap_692150401_692409601_4FGL_J2149.6+0323_daily_bin1747.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/813641/ltcube_692150401_692409601_4FGL_J2149.6+0323_daily_bin1747.fits
.....................!
real 190.20
user 185.14
sys 4.74

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/813641/ft1_filtered_4FGL_J2149.6+0323_daily_bin1747.fits scfile=/scratch/kocevski/813641/ft2_4FGL_J2149.6+0323_daily_bin1747.fits outfile=/scratch/kocevski/813641/cmap_692150401_692409601_4FGL_J2149.6+0323_daily_bin1747.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/813641/ft1_filtered_4FGL_J2149.6+0323_daily_bin1747.fits scfile=/scratch/kocevski/813641/ft2_4FGL_J2149.6+0323_daily_bin1747.fits outfile=/scratch/kocevski/813641/cmap_HighResolution_692150401_692409601_4FGL_J2149.6+0323_daily_bin1747.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/813641/ft1_filtered_4FGL_J2149.6+0323_daily_bin1747.fits evtable="EVENTS" scfile=/scratch/kocevski/813641/ft2_4FGL_J2149.6+0323_daily_bin1747.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/813641/Model_4FGL_J2149.6+0323_daily_bin1747.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/813641/ft1_filtered_4FGL_J2149.6+0323_daily_bin1747.fits.....................!
real 57.76
user 56.43
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/813641/ft1_filtered_4FGL_J2149.6+0323_daily_bin1747.fits', '/scratch/kocevski/813641/ft2_4FGL_J2149.6+0323_daily_bin1747.fits', expMap='/scratch/kocevski/813641/expmap_692150401_692409601_4FGL_J2149.6+0323_daily_bin1747.fits', expCube='/scratch/kocevski/813641/ltcube_692150401_692409601_4FGL_J2149.6+0323_daily_bin1747.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/813641/Model_4FGL_J2149.6+0323_daily_bin1747.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/813641/ft1_filtered_4FGL_J2149.6+0323_daily_bin1747.fits
Spacecraft file(s): /scratch/kocevski/813641/ft2_4FGL_J2149.6+0323_daily_bin1747.fits
Exposure map: /scratch/kocevski/813641/expmap_692150401_692409601_4FGL_J2149.6+0323_daily_bin1747.fits
Exposure cube: /scratch/kocevski/813641/ltcube_692150401_692409601_4FGL_J2149.6+0323_daily_bin1747.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/813641/Model_4FGL_J2149.6+0323_daily_bin1747.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) = 5996.31661207

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .80058E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    .25676E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    .62090E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .11629E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    34.985       1.0000          .0000       .10000E+07
     6 'Prefactor '    2.9587       1.0000          .0000       .10000E+07
     7 'Prefactor '    1.7776       1.0000          .0000       .10000E+07
     8 'Prefactor '    .20483E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .29271E-06   1.0000          .0000       .10000E+07
    10 'norm      '    4.9541       1.0000          .0000       .10000E+07
    11 'norm      '    .75949E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    4.3570       1.0000          .0000       .10000E+07
    13 'Prefactor '    .41844E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    17.867       1.0000          .0000       .10000E+07
    15 'Prefactor '    .52075E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    23.826       1.0000          .0000       .10000E+07
    17 'Normalizat'    .30628       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1372       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=   5996.302     FROM MIGRAD    STATUS=CONVERGED    130 CALLS     1311 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12793E-05    30.215        .24169E-05** at limit **
   2  Prefactor     .55511E-10    28.147        .20506E-05** at limit **
   3  Prefactor     .71387E-07    10.290        .22564E-05** at limit **
   4  Prefactor     .63433E-06    8.8000        .17259E-05** at limit **
   5  Prefactor     34.556        47.267       -.14261E-05    .33322E-01
   6  Prefactor     2.9427        5.1333       -.73757E-06   -.46202E-03
   7  Prefactor     1.7875        2.7944        .54479E-07    .56225E-03
   8  Prefactor     .52125E-07    9.5910        .35441E-06** at limit **
   9  Prefactor     .19392E-05    22.887        .10129E-05** at limit **
  10  norm          4.9565        2.4107       -.14942E-06    .29982E-04
  11  norm          .11326E-05    6.0423        .88159E-06** at limit **
  12  Prefactor     4.3982        7.6861        .87490E-06    .12785E-02
  13  Prefactor     .28122E-06    12.062        .76587E-06** at limit **
  14  Prefactor     17.818        5.7727        .25723E-06    .11688    
  15  Prefactor     .94585E-06    5.5025        .12068E-05** at limit **
  16  Prefactor     23.809        10.835        .18905E-06    .13611    
  17  Normalizat    .30675        .24987       -.61647E-05   -.28686E-04
  18  Prefactor     1.1372        .13513        .39568E-06   -.61640E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.27931e-06
  Prefactor  = 5.55112e-11
  Prefactor  = 7.13873e-08
  Prefactor  = 6.34326e-07
  Prefactor  = 34.5562
  Prefactor  = 2.94274
  Prefactor  = 1.78752
  Prefactor  = 5.2125e-08
  Prefactor  = 1.93917e-06
  norm       = 4.95655
  norm       = 1.13265e-06
  Prefactor  = 4.39822
  Prefactor  = 2.81219e-07
  Prefactor  = 17.8176
  Prefactor  = 9.45855e-07
  Prefactor  = 23.8087
  Normalizat = 0.306753
  Prefactor  = 1.13721
 **********
 **   18 **HESSE 
 **********

 FCN=   5996.302     FROM HESSE     STATUS=OK           280 CALLS     1591 TOTAL
                     EDM=   .82E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12793E-05    31.788        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .55511E-10    27.080        .16688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .71387E-07    17.852        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .63433E-06    18.621        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     34.556        51.017        .16909E-03   -1.5590    
   6  Prefactor     2.9427        5.1769        .59011E-03   -1.5674    
   7  Prefactor     1.7875        2.8951        .78480E-03   -1.5681    
   8  Prefactor     .52125E-07    9.6743        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .19392E-05    25.520        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.9565        2.4311        .45161E-03   -1.5663    
  11  norm          .11326E-05    8.1693        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.3982        7.7589        .48231E-03   -1.5666    
  13  Prefactor     .28122E-06    12.656        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     17.818        15.529        .23668E-03   -1.5624    
  15  Prefactor     .94585E-06    8.2478        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     23.809        12.769        .20492E-03   -1.5610    
  17  Normalizat    .30675        .27599        .11712       -1.2244    
  18  Prefactor     1.1372        .14356        .36318E-01   -.88286    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.21613e-07
Minuit parameter uncertainties:
  1  0.012754
  2  6.42598e-05
  3  0.00225785
  4  0.00687379
  5  51.0179
  6  5.17692
  7  2.89505
  8  0.00142009
  9  0.0140695
  10  2.43108
  11  0.00608371
  12  7.75888
  13  0.00377317
  14  15.5285
  15  0.0055861
  16  12.7695
  17  0.277218
  18  0.143611
Done.

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

Extracting fit parameters...

4FGL J2149.6+0323
   Spectrum: PowerLaw
296    Prefactor:  4.398e+00  7.759e+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

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  1.137e+00  1.436e-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:  3.068e-01  2.772e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.40
Ra Dec: 327.424 3.396
Photon Flux Upper Limit: 9.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/813641/likelihoodResults_692150401_692409601_4FGL_J2149.6+0323_daily_bin1747.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) = 5995.79909579
delta logL = 0.502440187373

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5995.78986285
delta logL = 0.511673133831

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36991       1.0000          .0000       .10000E+07
     2 'Index     '    3.6091       1.0000          .0000       10.000    
     3 'Normalizat'    .25983       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1542       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5995.790     FROM MIGRAD    STATUS=FAILED        83 CALLS      336 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .37005        17.524        .46288E-04    .86452E-01
   2  Index         3.6091        6.7776        .49656E-02    .77038E-03
   3  Normalizat    .25985        .18275        .56160E-03    .19397E-03
   4  Prefactor     1.1542        .10101        .15219E-03    .63821E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5995.790     FROM SIMPLEX   STATUS=UNCHANGED     82 CALLS      418 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .37005        17.524        .14873E-04    .86452E-01
   2  Index         3.6091        6.7776        .19812E-02    .77038E-03
   3  Normalizat    .25985        .18275        .58413E-03    .19397E-03
   4  Prefactor     1.1542        .10101        .12252E-03    .63821E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5995.790     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      445 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .37013        2.4522        .18515E-05    .84302E-01
   2  Index         3.6090        1.9911        .19862E-03    .60328E-03
   3  Normalizat    .25985        .24804        .22464E-04    .17602E-03
   4  Prefactor     1.1542        .13613        .30437E-04    .61809E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.370131
  Index      = 3.60904
  Normalizat = 0.259847
  Prefactor  = 1.15415
 **********
 **   18 **HESSE 
 **********

 FCN=   5995.790     FROM HESSE     STATUS=OK            23 CALLS      468 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .37013        1.9847        .37422E-06   -1.5696    
   2  Index         3.6090        1.8017        .39725E-04   -.28191    
   3  Normalizat    .25985        .24789        .44928E-05   -1.2532    
   4  Prefactor     1.1542        .13602        .60875E-05   -.87754    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44517e-09
Minuit parameter uncertainties:
  1  1.71415
  2  1.84692
  3  0.248941
  4  0.136058
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/813641': 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) = 5995.78986268
delta logL = 0.511673302177

Extracting fit parameters...

4FGL J2149.6+0323
   Spectrum: PowerLaw
296    Prefactor:  3.701e-01  1.714e+00  0.000e+00  1.000e+06 ( 1.000e-13)
297        Index:  3.609e+00  1.847e+00  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:  1.154e+00  1.361e-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:  2.598e-01  2.489e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.48
Ra Dec: 327.424 3.396
Photon Index (Free Index): 3.61 +/- 1.85
Photon Flux (Free Index): 4.81e-08 +/- 4.76e-08
Energy Flux (Free Index): 7.78e-06 +/- 8.11e-06

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/813641/cmap_HighResolution_692150401_692409601_4FGL_J2149.6+0323_daily_bin1747.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.54e-03', comment='SUCCESS', energy_flux2='7.78e-06', dlogl='5.12e-01', photon_flux2='4.81e-08', job_status='DONE', time_completed='2022-12-11 01:49:56.097322', photon_index_error2='1.85', photon_index2='3.61', ts='0.40', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='9.93e-08', energy_flux_error2='8.11e-06', EG='0.31', time_epoch_completed='1670752196.1', return_code='0', job_id='813641', GAL2='1.15', EG2='0.26', return_code2='0', photon_flux_error2='4.76e-08', ts2='1.48', photon_index='2.16' WHERE bin_id='1747' AND source_name='4FGL J2149.6+0323' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Dec 11 01:49:56 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 813641: <4FGL_J2149.6+0323_daily_bin1747> in cluster <slac> Done

Job <4FGL_J2149.6+0323_daily_bin1747> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Dec 11 01:40:17 2022
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Dec 11 01:40:17 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Dec 11 01:40:17 2022
Terminated at Sun Dec 11 01:49:56 2022
Results reported at Sun Dec 11 01:49:56 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2149.6+0323_daily_bin1747 327.424 3.3959 692150401 692409601 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 :                                   540.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   579 sec.
    Turnaround time :                            579 sec.

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

