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 57 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J2149.6+0323_daily_bin1676
RA = 327.424, Dec = 3.3959
tmin = 673747201, tmax = 674006401
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='67736', job_status='RUN', time_executed='2022-05-12 01:29:14.930163', time_epoch_executed='1652344154.93' WHERE source_name='4FGL J2149.6+0323' and cadence='daily' and bin_id='1676'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/67736

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/67736/ft1_4FGL_J2149.6+0323_daily_bin1676.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/67736/ft2_4FGL_J2149.6+0323_daily_bin1676.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/67736/ft1_4FGL_J2149.6+0323_daily_bin1676.fits outfile=/scratch/kocevski/67736/ft1_filteredMKT_4FGL_J2149.6+0323_daily_bin1676.fits ra=327.424 dec=3.3959 rad=12.0 tmin=673747201.0 tmax=674006401.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.83
user 3.59
sys 0.22

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

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

Number of photons that the gtmktime cut: 713

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/67736/ft1_filtered_4FGL_J2149.6+0323_daily_bin1676.fits" evtable="EVENTS" scfile=/scratch/kocevski/67736/ft2_4FGL_J2149.6+0323_daily_bin1676.fits sctable="SC_DATA" outfile=/scratch/kocevski/67736/ltcube_673747201_674006401_4FGL_J2149.6+0323_daily_bin1676.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/67736/ft2_4FGL_J2149.6+0323_daily_bin1676.fits
.....................!
real 15.13
user 14.69
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/67736/ft1_filtered_4FGL_J2149.6+0323_daily_bin1676.fits evtable="EVENTS" scfile=/scratch/kocevski/67736/ft2_4FGL_J2149.6+0323_daily_bin1676.fits sctable="SC_DATA" expcube=/scratch/kocevski/67736/ltcube_673747201_674006401_4FGL_J2149.6+0323_daily_bin1676.fits outfile=/scratch/kocevski/67736/expmap_673747201_674006401_4FGL_J2149.6+0323_daily_bin1676.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/67736/ltcube_673747201_674006401_4FGL_J2149.6+0323_daily_bin1676.fits
.....................!
real 194.37
user 188.66
sys 5.25

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/67736/ft1_filtered_4FGL_J2149.6+0323_daily_bin1676.fits scfile=/scratch/kocevski/67736/ft2_4FGL_J2149.6+0323_daily_bin1676.fits outfile=/scratch/kocevski/67736/cmap_673747201_674006401_4FGL_J2149.6+0323_daily_bin1676.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/67736/ft1_filtered_4FGL_J2149.6+0323_daily_bin1676.fits scfile=/scratch/kocevski/67736/ft2_4FGL_J2149.6+0323_daily_bin1676.fits outfile=/scratch/kocevski/67736/cmap_HighResolution_673747201_674006401_4FGL_J2149.6+0323_daily_bin1676.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.40
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/67736/ft1_filtered_4FGL_J2149.6+0323_daily_bin1676.fits', '/scratch/kocevski/67736/ft2_4FGL_J2149.6+0323_daily_bin1676.fits', expMap='/scratch/kocevski/67736/expmap_673747201_674006401_4FGL_J2149.6+0323_daily_bin1676.fits', expCube='/scratch/kocevski/67736/ltcube_673747201_674006401_4FGL_J2149.6+0323_daily_bin1676.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/67736/Model_4FGL_J2149.6+0323_daily_bin1676.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  1.000e-04  1.000e+04 ( 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/67736/ft1_filtered_4FGL_J2149.6+0323_daily_bin1676.fits
Spacecraft file(s): /scratch/kocevski/67736/ft2_4FGL_J2149.6+0323_daily_bin1676.fits
Exposure map: /scratch/kocevski/67736/expmap_673747201_674006401_4FGL_J2149.6+0323_daily_bin1676.fits
Exposure cube: /scratch/kocevski/67736/ltcube_673747201_674006401_4FGL_J2149.6+0323_daily_bin1676.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/67736/Model_4FGL_J2149.6+0323_daily_bin1676.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) = 7741.28664785

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.655       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.5187       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10247E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11130E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .16148E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.4203       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12237E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0482       1.0000         .10000E-03   10000.    
    14 'norm      '    3.9915       1.0000         .10000E-03   10000.    
    15 'norm      '    .84720       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10231E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.7197       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.348       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.505       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .67869       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0561       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.

 FCN=   7741.285     FROM MIGRAD    STATUS=CONVERGED    587 CALLS     2741 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.675        30.190        .56282E-06   -.20199E-04
   2  Prefactor     4.5104        17.298        .70312E-06    .24668E-04
   3  Prefactor     .10000E-03    14.232       -.35150E-06** at limit **
   4  Prefactor     .10000E-03    73.603        .46261E-05** at limit **
   5  Prefactor     .10000E-03    15.327        .48038E-06** at limit **
   6  Prefactor     .10000E-03    108.22       -.40817E-05** at limit **
   7  Prefactor     .10000E-03    3.1112        .73201E-07** at limit **
   8  Prefactor     .10000E-03    9.6309       -.31539E-07** at limit **
   9  Prefactor     3.4174        2.1145        .71679E-07    .67625E-03
  10  Prefactor     .10000E-03    64.907       -.21266E-06** at limit **
  11  Prefactor     .10000E-03    20.344        .13851E-05** at limit **
  12  Prefactor     .10000E-03    63.337       -.26757E-05** at limit **
  13  Prefactor     .80545        76.726       -.14972E-04    .11954E-03
  14  norm          3.9925        2.2196        .73352E-07    .30325E-03
  15  norm          .84868        18.433        .75452E-05   -.25743E-03
  16  Prefactor     .10000E-03    2.9426       -.13574E-07** at limit **
  17  Prefactor     2.7156        11.821        .90034E-05    .42306E-03
  18  Prefactor     .10000E-03    19.094       -.14001E-05** at limit **
  19  Prefactor     .10000E-03    8.5985        .10487E-06** at limit **
  20  Prefactor     .10000E-03    7.3803        .70981E-07** at limit **
  21  Prefactor     18.335        25.781        .63906E-07    .48576E-04
  22  Prefactor     11.498        12.695       -.39314E-06    .18780E-04
  23  Normalizat    .67897        .21980        .12042E-05    .24844E-03
  24  Prefactor     1.0559        .10805       -.89958E-06    .45261E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.6754
  Prefactor  = 4.51035
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.41737
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.80545
  norm       = 3.9925
  norm       = 0.848678
  Prefactor  = 0.0001
  Prefactor  = 2.71563
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.3346
  Prefactor  = 11.4976
  Normalizat = 0.678967
  Prefactor  = 1.05594
 **********
 **   18 **HESSE 
 **********

 FCN=   7741.285     FROM HESSE     STATUS=OK           403 CALLS     3144 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.675        30.182        .73573E-04   -1.4618    
   2  Prefactor     4.5104        17.261        .18939E-03   -1.5283    
   3  Prefactor     .10000E-03    14.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    73.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    109.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.2990        .29781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.8458        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.4174        2.1138        .96023E-04   -1.5338    
  10  Prefactor     .10000E-03    66.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    20.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    63.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .80545        53.353        .13952       -1.5528    
  14  norm          3.9925        2.2043        .90718E-04   -1.5308    
  15  norm          .84868        70.640        .48148E-02   -1.5524    
  16  Prefactor     .10000E-03    2.9492        .14724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.7156        12.971        .12348E-02   -1.5378    
  18  Prefactor     .10000E-03    19.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.6219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.3969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     18.335        25.755        .93502E-04   -1.4851    
  22  Prefactor     11.498        12.726        .11811E-03   -1.5030    
  23  Normalizat    .67897        .25059        .18747E-02   -1.0473    
  24  Prefactor     1.0559        .12471        .16385E-03   -.90887    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.59119e-09
Minuit parameter uncertainties:
  1  30.1972
  2  17.2803
  3  1.93005e-05
  4  0.000250232
  5  2.28013e-05
  6  4.04913e-05
  7  2.01883e-06
  8  1.43946e-05
  9  2.11387
  10  6.857e-05
  11  1.29493e-05
  12  9.78034e-05
  13  13.1221
  14  2.20432
  15  15.5036
  16  4.45854e-06
  17  11.8741
  18  3.19269e-05
  19  1.13501e-05
  20  7.38911e-06
  21  25.7709
  22  12.7288
  23  0.25101
  24  0.124744
Done.

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

Extracting fit parameters...

4FGL J2149.6+0323
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  4.459e-06  1.000e-04  1.000e+04 ( 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.056e+00  1.247e-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.790e-01  2.510e-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: 5.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/67736/likelihoodResults_673747201_674006401_4FGL_J2149.6+0323_daily_bin1676.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) = 7741.28647995
delta logL = -0.00161482810745

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7741.28486512
delta logL = -1.40244083013e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1583       1.0000          .0000       10.000    
     3 'Normalizat'    .67896       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0559       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=   7741.285     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      205 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    55.713        .90712E-02** at limit **
   2  Index         2.1602        8.8399        .50000       -.57588E-05
   3  Normalizat    .67897        .21649E-01    .84662E-01    .40251E-04
   4  Prefactor     1.0559        .11652E-01    .39574E-01   -.42436E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.16017
  Normalizat = 0.678966
  Prefactor  = 1.05594
 **********
 **   18 **HESSE 
 **********

 FCN=   7741.285     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      238 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    242.24        .14726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1602        7.1188        .50000       -.60403    
   3  Normalizat    .67897        .49098E-01    .37495E-03   -1.0473    
   4  Prefactor     1.0559        .26491E-01    .16385E-03   -.90887    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.769e-09
Minuit parameter uncertainties:
  1  1.1391e-06
  2  37.4656
  3  0.049101
  4  0.0264913
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/67736': 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) = 7741.28486511
delta logL = 4.66116034659e-09

Extracting fit parameters...

4FGL J2149.6+0323
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  1.139e-06  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.160e+00  3.747e+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:  1.056e+00  2.649e-02  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.790e-01  4.910e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 327.424 3.396

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/67736/cmap_HighResolution_673747201_674006401_4FGL_J2149.6+0323_daily_bin1676.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.34e-03', job_status='DONE', photon_flux_upper_limit='5.71e-08', time_completed='2022-05-12 01:42:19.728089', job_id='67736', GAL2='1.06', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1652344939.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='4.66e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='1676' AND source_name='4FGL J2149.6+0323' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu May 12 01:42:19 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 67736: <4FGL_J2149.6+0323_daily_bin1676> in cluster <slac> Done

Job <4FGL_J2149.6+0323_daily_bin1676> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu May 12 01:25:41 2022
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu May 12 01:28:07 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu May 12 01:28:07 2022
Terminated at Thu May 12 01:42:20 2022
Results reported at Thu May 12 01:42:20 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2149.6+0323_daily_bin1676 327.424 3.3959 673747201 674006401 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 :                                   786.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             320.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            999 sec.

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

