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


Performing analysis on: 4FGL_J2149.6+0323_daily_bin1749
RA = 327.424, Dec = 3.3959
tmin = 692668801, tmax = 692928001
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='963265', job_status='RUN', time_executed='2022-12-17 01:26:23.576507', time_epoch_executed='1671269183.58' WHERE source_name='4FGL J2149.6+0323' and cadence='daily' and bin_id='1749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/963265

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/963265/ft1_4FGL_J2149.6+0323_daily_bin1749.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/963265/ft2_4FGL_J2149.6+0323_daily_bin1749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/963265/ft1_4FGL_J2149.6+0323_daily_bin1749.fits outfile=/scratch/kocevski/963265/ft1_filteredMKT_4FGL_J2149.6+0323_daily_bin1749.fits ra=327.424 dec=3.3959 rad=12.0 tmin=692668801.0 tmax=692928001.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.65
user 3.42
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/963265/ft2_4FGL_J2149.6+0323_daily_bin1749.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/963265/ft1_filteredMKT_4FGL_J2149.6+0323_daily_bin1749.fits evtable="EVENTS" outfile="/scratch/kocevski/963265/ft1_filtered_4FGL_J2149.6+0323_daily_bin1749.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.49
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 608

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/963265/ft1_filtered_4FGL_J2149.6+0323_daily_bin1749.fits" evtable="EVENTS" scfile=/scratch/kocevski/963265/ft2_4FGL_J2149.6+0323_daily_bin1749.fits sctable="SC_DATA" outfile=/scratch/kocevski/963265/ltcube_692668801_692928001_4FGL_J2149.6+0323_daily_bin1749.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/963265/ft2_4FGL_J2149.6+0323_daily_bin1749.fits
.....................!
real 12.09
user 11.75
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/963265/ft1_filtered_4FGL_J2149.6+0323_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/963265/ft2_4FGL_J2149.6+0323_daily_bin1749.fits sctable="SC_DATA" expcube=/scratch/kocevski/963265/ltcube_692668801_692928001_4FGL_J2149.6+0323_daily_bin1749.fits outfile=/scratch/kocevski/963265/expmap_692668801_692928001_4FGL_J2149.6+0323_daily_bin1749.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/963265/ltcube_692668801_692928001_4FGL_J2149.6+0323_daily_bin1749.fits
.....................!
real 192.95
user 186.84
sys 5.81

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/963265/ft1_filtered_4FGL_J2149.6+0323_daily_bin1749.fits scfile=/scratch/kocevski/963265/ft2_4FGL_J2149.6+0323_daily_bin1749.fits outfile=/scratch/kocevski/963265/cmap_692668801_692928001_4FGL_J2149.6+0323_daily_bin1749.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/963265/ft1_filtered_4FGL_J2149.6+0323_daily_bin1749.fits scfile=/scratch/kocevski/963265/ft2_4FGL_J2149.6+0323_daily_bin1749.fits outfile=/scratch/kocevski/963265/cmap_HighResolution_692668801_692928001_4FGL_J2149.6+0323_daily_bin1749.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.57
user 0.37
sys 0.19

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .48358E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .22909E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    9.9775       1.0000          .0000       .10000E+07
     4 'Prefactor '    3.9206       1.0000          .0000       .10000E+07
     5 'Prefactor '    .11248E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    .26180E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .48966E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    13.339       1.0000          .0000       .10000E+07
     9 'Prefactor '    41.499       1.0000          .0000       .10000E+07
    10 'norm      '    .73237       1.0000          .0000       .10000E+07
    11 'norm      '    .83599E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .52550E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .40617E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    17.935       1.0000          .0000       .10000E+07
    15 'Prefactor '    14.988       1.0000          .0000       .10000E+07
    16 'Prefactor '    23.042       1.0000          .0000       .10000E+07
    17 'Normalizat'    .98215       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .96152       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=   6649.259     FROM MIGRAD    STATUS=CONVERGED    153 CALLS     1350 TOTAL
                     EDM=   .50E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10547E-08    9.7826       -.41316E-06** at limit **
   2  Prefactor     .11102E-09    8.1165       -.66111E-06** at limit **
   3  Prefactor     12.624        46.430       -.24994E-05   -.47061E-03
   4  Prefactor     3.8809        6.7439        .31721E-05   -.15466E-02
   5  Prefactor     .11102E-09    20.165        .70362E-06** at limit **
   6  Prefactor      .0000        6.7384        .10094E-05** at limit **
   7  Prefactor      .0000        .93654       -.47042E-06** at limit **
   8  Prefactor     13.706        33.020        .64741E-05   -.42698E-03
   9  Prefactor     46.516        56.785       -.23305E-06   -.76267E-03
  10  norm          .74875        2.1622        .23241E-06   -.26339E-03
  11  norm          .55511E-10    17.576       -.11323E-05** at limit **
  12  Prefactor     .55511E-10    5.9285       -.12186E-05** at limit **
  13  Prefactor     .33307E-09    9.0328       -.75452E-06** at limit **
  14  Prefactor     17.896        6.1098       -.12682E-05    .14563E-01
  15  Prefactor     15.040        4.1309       -.81231E-06    .64876E-02
  16  Prefactor     23.176        12.665        .26451E-05    .11946E-01
  17  Normalizat    .97290        .28335       -.26820E-04   -.34823E-04
  18  Prefactor     .96338        .13936        .10850E-04   -.66842E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.05471e-09
  Prefactor  = 1.11022e-10
  Prefactor  = 12.6242
  Prefactor  = 3.88088
  Prefactor  = 1.11022e-10
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 13.7055
  Prefactor  = 46.5158
  norm       = 0.748751
  norm       = 5.55112e-11
  Prefactor  = 5.55112e-11
  Prefactor  = 3.33067e-10
  Prefactor  = 17.896
  Prefactor  = 15.04
  Prefactor  = 23.1762
  Normalizat = 0.972901
  Prefactor  = 0.963379
 **********
 **   18 **HESSE 
 **********

 FCN=   6649.259     FROM HESSE     STATUS=OK           280 CALLS     1630 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10547E-08    9.8700        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .11102E-09    8.0962        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.624        46.505        .31699E-03   -1.5637    
   4  Prefactor     3.8809        15.965        .50927E-03   -1.5669    
   5  Prefactor     .11102E-09    20.177        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        6.6935        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        .93665        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.706        32.967        .27400E-03   -1.5634    
   9  Prefactor     46.516        56.259        .15525E-03   -1.5572    
  10  norm          .74875        2.1801        .58119E-03   -1.5691    
  11  norm          .55511E-10    17.532        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .55511E-10    5.9090        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .33307E-09    9.0559        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     17.896        17.306        .23622E-03   -1.5623    
  15  Prefactor     15.040        19.663        .25845E-03   -1.5630    
  16  Prefactor     23.176        15.349        .20837E-03   -1.5612    
  17  Normalizat    .97290        .23830        .76871E-01   -.93944    
  18  Prefactor     .96338        .11559        .45784E-01   -.93960    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.87978e-09
Minuit parameter uncertainties:
  1  0.00020472
  2  5.68715e-05
  3  46.5059
  4  15.7427
  5  8.82113e-05
  6  6.9243e-06
  7  5.32354e-06
  8  32.967
  9  56.2594
  10  2.18008
  11  6.31454e-05
  12  2.875e-05
  13  0.000113962
  14  17.3058
  15  19.6627
  16  15.3494
  17  0.238565
  18  0.115622
Done.

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

Extracting fit parameters...

4FGL J2149.6+0323
   Spectrum: PowerLaw
296    Prefactor:  5.551e-11  2.875e-05  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.634e-01  1.156e-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:  9.729e-01  2.386e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/963265/likelihoodResults_692668801_692928001_4FGL_J2149.6+0323_daily_bin1749.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): 102
logL (Free Index) = 6649.34211046
delta logL = -0.0834796172894

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6646.77173208
delta logL = 2.48689876414

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19953E-01   1.0000          .0000       .10000E+07
     2 'Index     '    5.2188       1.0000          .0000       10.000    
     3 'Normalizat'    .75132       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0362       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.

 FCN=   6646.772     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      263 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19949E-01    .13365        .12952E-03** at limit **
   2  Index         5.2195        1.7038        .66381E-01   -.32832E-03
   3  Normalizat    .75186        .68599E-01    .86064E-01   -.65286E-04
   4  Prefactor     1.0358        .35415E-01    .40797E-01   -.42930E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0199494
  Index      = 5.21953
  Normalizat = 0.751862
  Prefactor  = 1.03582
 **********
 **   18 **HESSE 
 **********

 FCN=   6646.772     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      296 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19949E-01    .24874        .56459E-06   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.2195        2.5387        .26859E-02    .43920E-01
   3  Normalizat    .75186        .24456        .38114E-03   -1.0188    
   4  Prefactor     1.0358        .12450        .17103E-03   -.91545    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.70872e-10
Minuit parameter uncertainties:
  1  0.140886
  2  2.66312
  3  0.244917
  4  0.124538
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/963265': 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): 102
logL (Free Index) = 6646.77172067
delta logL = 2.48691017294

Extracting fit parameters...

4FGL J2149.6+0323
   Spectrum: PowerLaw
296    Prefactor:  1.995e-02  1.409e-01  0.000e+00  1.000e+06 ( 1.000e-13)
297        Index:  5.220e+00  2.663e+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.036e+00  1.245e-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.519e-01  2.449e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.58
Ra Dec: 327.424 3.396
Photon Index (Free Index): 5.22 +/- 2.66
Photon Flux (Free Index): 1.69e-07 +/- 8.60e-08
Energy Flux (Free Index): 2.21e-05 +/- 1.19e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/963265/cmap_HighResolution_692668801_692928001_4FGL_J2149.6+0323_daily_bin1749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.26e-03', comment='SUCCESS', energy_flux2='2.21e-05', dlogl='2.49e+00', photon_flux2='1.69e-07', job_status='DONE', time_completed='2022-12-17 01:35:45.394611', photon_index_error2='2.66', photon_index2='5.22', ts='-0.00', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='8.24e-08', energy_flux_error2='1.19e-05', EG='0.97', time_epoch_completed='1671269745.39', return_code='0', job_id='963265', GAL2='1.04', EG2='0.75', return_code2='102', photon_flux_error2='8.60e-08', ts2='5.58', photon_index='2.16' WHERE bin_id='1749' AND source_name='4FGL J2149.6+0323' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Dec 17 01:35:45 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0212>
Subject: Job 963265: <4FGL_J2149.6+0323_daily_bin1749> in cluster <slac> Done

Job <4FGL_J2149.6+0323_daily_bin1749> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Dec 17 01:25:22 2022
Job was executed on host(s) <bullet0212>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Dec 17 01:25:23 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Dec 17 01:25:23 2022
Terminated at Sat Dec 17 01:35:46 2022
Results reported at Sat Dec 17 01:35:46 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2149.6+0323_daily_bin1749 327.424 3.3959 692668801 692928001 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 :                                   564.14 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             297.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   622 sec.
    Turnaround time :                            624 sec.

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

