aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 128 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is 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 = 7682
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2149.6+0323_daily_bin1707
RA = 327.424, Dec = 3.3959
tmin = 681782401, tmax = 682041601
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='550235', job_status='RUN', time_executed='2022-08-13 00:32:52.604769', time_epoch_executed='1660375972.6' WHERE source_name='4FGL J2149.6+0323' and cadence='daily' and bin_id='1707'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/550235

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/550235/ft1_4FGL_J2149.6+0323_daily_bin1707.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/550235/ft2_4FGL_J2149.6+0323_daily_bin1707.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/550235/ft1_4FGL_J2149.6+0323_daily_bin1707.fits outfile=/scratch/kocevski/550235/ft1_filteredMKT_4FGL_J2149.6+0323_daily_bin1707.fits ra=327.424 dec=3.3959 rad=12.0 tmin=681782401.0 tmax=682041601.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 5.41
user 5.18
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/550235/ft2_4FGL_J2149.6+0323_daily_bin1707.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/550235/ft1_filteredMKT_4FGL_J2149.6+0323_daily_bin1707.fits evtable="EVENTS" outfile="/scratch/kocevski/550235/ft1_filtered_4FGL_J2149.6+0323_daily_bin1707.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.73
user 0.34
sys 0.18

Number of photons that the gtmktime cut: 485

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/550235/ft1_filtered_4FGL_J2149.6+0323_daily_bin1707.fits evtable="EVENTS" scfile=/scratch/kocevski/550235/ft2_4FGL_J2149.6+0323_daily_bin1707.fits sctable="SC_DATA" expcube=/scratch/kocevski/550235/ltcube_681782401_682041601_4FGL_J2149.6+0323_daily_bin1707.fits outfile=/scratch/kocevski/550235/expmap_681782401_682041601_4FGL_J2149.6+0323_daily_bin1707.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/550235/ltcube_681782401_682041601_4FGL_J2149.6+0323_daily_bin1707.fits
.....................!
real 193.44
user 188.80
sys 4.26

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/550235/ft1_filtered_4FGL_J2149.6+0323_daily_bin1707.fits scfile=/scratch/kocevski/550235/ft2_4FGL_J2149.6+0323_daily_bin1707.fits outfile=/scratch/kocevski/550235/cmap_681782401_682041601_4FGL_J2149.6+0323_daily_bin1707.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.53
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.4685       1.0000         .10000E-03   10000.    
     4 'Prefactor '    41.038       1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.866       1.0000         .10000E-03   10000.    
     6 'Prefactor '    105.14       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.8596       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    32.929       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.041       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    16.735       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .34106       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    38.824       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .38162       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1145       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=   5630.396     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2733 TOTAL
                     EDM=   .18E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.773        .29630E-07** at limit **
   2  Prefactor     .10000E-03    31.763        .19536E-05** at limit **
   3  Prefactor     6.4658        23.148        .19826E-05   -.10906E-04
   4  Prefactor     41.039        77.763        .77455E-06    .92878E-05
   5  Prefactor     26.857        36.634        .97506E-06    .18827E-04
   6  Prefactor     105.14        71.427       -.39586E-07    .30398E-04
   7  Prefactor     .10000E-03    10.410        .56445E-06** at limit **
   8  Prefactor     .10000E-03    23.511        .47199E-06** at limit **
   9  Prefactor     2.8600        4.2208        .65752E-07   -.39985E-04
  10  Prefactor     .10000E-03    58.715       -.11382E-05** at limit **
  11  Prefactor     32.920        48.642        .31069E-06    .20317E-04
  12  Prefactor     14.037        52.601        .30998E-06    .76201E-06
  13  Prefactor     .10000E-03    24.900        .16900E-06** at limit **
  14  norm          .10000E-03    1.3429        .14326E-06** at limit **
  15  norm          16.738        26.946        .11233E-05   -.19882E-05
  16  Prefactor     .10000E-03    3.2655        .82759E-08** at limit **
  17  Prefactor     .25899        195.75       -.27135E-05    .16342E-05
  18  Prefactor     .10000E-03    7.0993        .58648E-07** at limit **
  19  Prefactor     .10000E-03    6.2541        .25219E-07** at limit **
  20  Prefactor     38.834        24.059        .74051E-06   -.22073E-04
  21  Prefactor     .10000E-03    18.695        .15296E-06** at limit **
  22  Prefactor     .10000E-03    35.268        .18136E-05** at limit **
  23  Normalizat    .38158        .28995       -.67531E-05   -.86057E-05
  24  Prefactor     1.1146        .14437        .11688E-05   -.20125E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.46583
  Prefactor  = 41.0386
  Prefactor  = 26.8569
  Prefactor  = 105.138
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.86004
  Prefactor  = 0.0001
  Prefactor  = 32.9199
  Prefactor  = 14.0367
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 16.7381
  Prefactor  = 0.0001
  Prefactor  = 0.258989
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.8345
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.381582
  Prefactor  = 1.11456
 **********
 **   18 **HESSE 
 **********

 FCN=   5630.396     FROM HESSE     STATUS=OK           395 CALLS     3128 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    31.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.4658        23.028        .15780E-03   -1.5199    
   4  Prefactor     41.039        77.919        .62574E-04   -1.4426    
   5  Prefactor     26.857        36.805        .77290E-04   -1.4671    
   6  Prefactor     105.14        70.336        .39218E-04   -1.3654    
   7  Prefactor     .10000E-03    10.864        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    24.264        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.8600        4.1910        .14992E-03   -1.5370    
  10  Prefactor     .10000E-03    59.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     32.920        48.588        .69830E-04   -1.4560    
  12  Prefactor     14.037        52.629        .10689E-03   -1.4958    
  13  Prefactor     .10000E-03    24.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.3638        .84707E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          16.738        26.890        .97906E-04   -1.4889    
  16  Prefactor     .10000E-03    3.2724        .13241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .25899        196.74        .44987E-02   -1.5606    
  18  Prefactor     .10000E-03    7.1041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.2589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     38.834        24.047        .64327E-04   -1.4461    
  21  Prefactor     .10000E-03    18.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    36.771        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .38158        .29423        .51053E-03   -1.1826    
  24  Prefactor     1.1146        .14760        .16070E-03   -.89003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.43434e-11
Minuit parameter uncertainties:
  1  1.04803e-05
  2  0.000161439
  3  23.0593
  4  78.1129
  5  36.8357
  6  70.3914
  7  1.09361e-05
  8  2.04343e-05
  9  4.19138
  10  1.09492e-05
  11  48.6461
  12  52.8039
  13  3.07432e-05
  14  2.01154e-06
  15  26.9098
  16  1.36663e-06
  17  14.3211
  18  3.59526e-09
  19  3.26057e-06
  20  24.0529
  21  2.29288e-05
  22  9.6811e-05
  23  0.295429
  24  0.147655
Done.

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

Extracting fit parameters...

4FGL J2149.6+0323
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  1.367e-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.115e+00  1.477e-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.816e-01  2.954e-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: 6.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/550235/likelihoodResults_681782401_682041601_4FGL_J2149.6+0323_daily_bin1707.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) = 5630.39754031
delta logL = -0.00144931798786

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5630.39609332
delta logL = -2.31907688431e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11576E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1417       1.0000          .0000       10.000    
     3 'Normalizat'    .38169       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1145       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=   5630.396     FROM MIGRAD    STATUS=FAILED        90 CALLS      241 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10117E-03    51.698        .13365E-02** at limit **
   2  Index         2.0828        7.8653        .50000        .32508E-04
   3  Normalizat    .38158        .23210E-01    .51052E-03   -.28059E-05
   4  Prefactor     1.1146        .12194E-01    .16070E-03   -.58011E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5630.396     FROM SIMPLEX   STATUS=PROGRESS     126 CALLS      367 TOTAL
                     EDM=   .57E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10092E-03    51.698        .23800E-03** at limit **
   2  Index         2.0820        7.8653        .27091E-03    .32508E-04
   3  Normalizat    .38157        .23210E-01    .93424E-05   -.28059E-05
   4  Prefactor     1.1146        .12194E-01    .20284E-05   -.58011E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5630.396     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      419 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    53.745        .26729E-02** at limit **
   2  Index         1.7281        5.8607        .50000        .37480E-06
   3  Normalizat    .38158        .22482E-01    .20421E-04    .25720E-04
   4  Prefactor     1.1146        .11811E-01    .64279E-05    .64378E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.72813
  Normalizat = 0.381583
  Prefactor  = 1.11456
 **********
 **   18 **HESSE 
 **********

 FCN=   5630.396     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      448 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    248.85        .53459E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7281        5.2963        .50000       -.71335    
   3  Normalizat    .38158        .51833E-01    .40842E-05   -1.1826    
   4  Prefactor     1.1146        .27223E-01    .12856E-05   -.89003    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.38716e-10
Minuit parameter uncertainties:
  1  0.000812365
  2  878.407
  3  0.0518397
  4  0.0272233
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/550235': 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) = 5630.39608895
delta logL = 2.04808839044e-06

Extracting fit parameters...

4FGL J2149.6+0323
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  8.124e-04  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  1.728e+00  8.784e+02  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.115e+00  2.722e-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:  3.816e-01  5.184e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/550235/cmap_HighResolution_681782401_682041601_4FGL_J2149.6+0323_daily_bin1707.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.28e-03', job_status='DONE', photon_flux_upper_limit='6.95e-08', time_completed='2022-08-13 00:43:39.429638', job_id='550235', GAL2='1.11', fit_tolerance='1e-08', EG2='0.38', EG='0.38', time_epoch_completed='1660376619.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='2.05e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='1707' AND source_name='4FGL J2149.6+0323' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 13 00:43:39 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 550235: <4FGL_J2149.6+0323_daily_bin1707> in cluster <slac> Done

Job <4FGL_J2149.6+0323_daily_bin1707> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Aug 13 00:30:35 2022
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 13 00:30:36 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 13 00:30:36 2022
Terminated at Sat Aug 13 00:43:40 2022
Results reported at Sat Aug 13 00:43:40 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2149.6+0323_daily_bin1707 327.424 3.3959 681782401 682041601 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 :                                   648.52 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             322.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   783 sec.
    Turnaround time :                            785 sec.

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

