/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 180 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 = 7470
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2149.6+0323_daily_bin694
RA = 327.424, Dec = 3.3959
tmin = 419212801, tmax = 419472001
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='979435', job_status='RUN', time_executed='2021-09-27 17:58:30.609194', time_epoch_executed='1632790710.61' WHERE source_name='4FGL J2149.6+0323' and cadence='daily' and bin_id='694'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/979435

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/979435/ft1_4FGL_J2149.6+0323_daily_bin694.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/979435/ft2_4FGL_J2149.6+0323_daily_bin694.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/979435/ft1_4FGL_J2149.6+0323_daily_bin694.fits outfile=/scratch/kocevski/979435/ft1_filteredMKT_4FGL_J2149.6+0323_daily_bin694.fits ra=327.424 dec=3.3959 rad=12.0 tmin=419212801.0 tmax=419472001.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.59
user 5.29
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/979435/ft1_filtered_4FGL_J2149.6+0323_daily_bin694.fits evtable="EVENTS" scfile=/scratch/kocevski/979435/ft2_4FGL_J2149.6+0323_daily_bin694.fits sctable="SC_DATA" expcube=/scratch/kocevski/979435/ltcube_419212801_419472001_4FGL_J2149.6+0323_daily_bin694.fits outfile=/scratch/kocevski/979435/expmap_419212801_419472001_4FGL_J2149.6+0323_daily_bin694.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/979435/ltcube_419212801_419472001_4FGL_J2149.6+0323_daily_bin694.fits
.....................!
real 190.54
user 185.36
sys 4.61

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/979435/ft1_filtered_4FGL_J2149.6+0323_daily_bin694.fits scfile=/scratch/kocevski/979435/ft2_4FGL_J2149.6+0323_daily_bin694.fits outfile=/scratch/kocevski/979435/cmap_419212801_419472001_4FGL_J2149.6+0323_daily_bin694.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.59
user 0.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/979435/ft1_filtered_4FGL_J2149.6+0323_daily_bin694.fits scfile=/scratch/kocevski/979435/ft2_4FGL_J2149.6+0323_daily_bin694.fits outfile=/scratch/kocevski/979435/cmap_HighResolution_419212801_419472001_4FGL_J2149.6+0323_daily_bin694.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.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.552       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10359E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.1530       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.005       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10145E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    30.865       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10562E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10837E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .92241       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .86817       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=   4188.910     FROM MIGRAD    STATUS=CONVERGED    525 CALLS     2618 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.736       -.15036E-04** at limit **
   2  Prefactor     .10000E-03    15.002        .26584E-05** at limit **
   3  Prefactor     .10000E-03    12.007       -.80825E-05** at limit **
   4  Prefactor     28.542        63.910       -.13749E-04    .78402E-04
   5  Prefactor     .10000E-03    58.800        .10203E-04** at limit **
   6  Prefactor     .10000E-03    132.86       -.96685E-04** at limit **
   7  Prefactor     .10000E-03    7.1444        .15144E-06** at limit **
   8  Prefactor     .10000E-03    12.894        .96927E-05** at limit **
   9  Prefactor     2.1527        2.2839        .16808E-06    .91586E-03
  10  Prefactor     13.007        41.027        .35857E-05    .84893E-04
  11  Prefactor     .10000E-03    100.53        .10957E-04** at limit **
  12  Prefactor     .10000E-03    77.031        .37999E-04** at limit **
  13  Prefactor     .10000E-03    106.02       -.25782E-05** at limit **
  14  norm          .10000E-03    2.7534       -.85323E-07** at limit **
  15  norm          .10000E-03    41.678       -.20855E-04** at limit **
  16  Prefactor     .10000E-03    8.1834       -.33123E-06** at limit **
  17  Prefactor     30.851        19.904        .15860E-06   -.30807E-04
  18  Prefactor     .10000E-03    23.347        .88826E-05** at limit **
  19  Prefactor     .10000E-03    43.914       -.20399E-04** at limit **
  20  Prefactor     .10000E-03    86.187        .34710E-04** at limit **
  21  Prefactor     .10000E-03    26.512        .14723E-04** at limit **
  22  Prefactor     .10000E-03    9.6335        .60377E-06** at limit **
  23  Normalizat    .92229        .28797        .49783E-06    .15967E-03
  24  Prefactor     .86810        .13698        .71243E-06    .27087E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.5417
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.15271
  Prefactor  = 13.0068
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.851
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.922293
  Prefactor  = 0.868099
 **********
 **   18 **HESSE 
 **********

 FCN=   4188.910     FROM HESSE     STATUS=OK           381 CALLS     2999 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     28.542        63.856        .74978E-04   -1.4639    
   5  Prefactor     .10000E-03    59.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    133.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.1978        .16890E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.1527        2.2727        .95667E-04   -1.5415    
  10  Prefactor     13.007        41.277        .11108E-03   -1.4987    
  11  Prefactor     .10000E-03    101.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    77.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    106.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.8147        .10478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    42.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.2192        .18080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     30.851        19.905        .72120E-04   -1.4597    
  18  Prefactor     .10000E-03    23.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    44.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    87.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    26.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.6514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .92229        .35699        .33820E-03   -.95681    
  24  Prefactor     .86810        .17047        .17025E-03   -.97265    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.34888e-10
Minuit parameter uncertainties:
  1  1.93061e-05
  2  3.07488e-06
  3  2.6078e-06
  4  64.0098
  5  4.56543e-05
  6  0.00119027
  7  1.87301e-05
  8  2.7309e-05
  9  2.27283
  10  41.3682
  11  5.00601e-05
  12  3.89967e-05
  13  8.50797e-05
  14  7.13554e-06
  15  1.64552e-05
  16  1.32662e-05
  17  19.9094
  18  3.27523e-05
  19  9.75303e-05
  20  0.000350658
  21  2.60322e-05
  22  1.00493e-05
  23  0.357915
  24  0.17057
Done.

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

Extracting fit parameters...

4FGL J2149.6+0323
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  1.327e-05  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:  8.681e-01  1.706e-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.223e-01  3.579e-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: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/979435/likelihoodResults_419212801_419472001_4FGL_J2149.6+0323_daily_bin694.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) = 4188.91094262
delta logL = -0.000579958785238

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4188.9103627
delta logL = -4.49053914053e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1527       1.0000          .0000       10.000    
     3 'Normalizat'    .92226       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86812       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=   4188.910     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      207 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.0797        .90712E-02** at limit **
   2  Index         2.1490        6.0320        .50000        .36466E-05
   3  Normalizat    .92229        .64031E-02    .76416E-01    .28893E-04
   4  Prefactor     .86810        .31536E-02    .44597E-01    .38603E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.14897
  Normalizat = 0.922291
  Prefactor  = 0.868099
 **********
 **   18 **HESSE 
 **********

 FCN=   4188.910     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      238 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    67.688        .18091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1490        7.5667        .50000       -.60676    
   3  Normalizat    .92229        .19877E-01    .33820E-03   -.95681    
   4  Prefactor     .86810        .98059E-02    .17025E-03   -.97265    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.99237e-08
Minuit parameter uncertainties:
  1  2.873e-05
  2  253.643
  3  0.0198776
  4  0.00980591
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/979435': 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) = 4188.91036265
delta logL = 6.93580659572e-09

Extracting fit parameters...

4FGL J2149.6+0323
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  2.873e-05  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.149e+00  2.536e+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:  8.681e-01  9.806e-03  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.223e-01  1.988e-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/979435/cmap_HighResolution_419212801_419472001_4FGL_J2149.6+0323_daily_bin694.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.33e-03', job_status='DONE', photon_flux_upper_limit='1.23e-07', time_completed='2021-09-27 18:07:51.124514', job_id='979435', GAL2='0.87', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1632791271.12', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='6.94e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='694' AND source_name='4FGL J2149.6+0323' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 18:07:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 979435: <4FGL_J2149.6+0323_daily_bin694> in cluster <slac> Done

Job <4FGL_J2149.6+0323_daily_bin694> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep 27 17:55:14 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 17:55:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 27 17:55:20 2021
Terminated at Mon Sep 27 18:07:51 2021
Results reported at Mon Sep 27 18:07:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2149.6+0323_daily_bin694 327.424 3.3959 419212801 419472001 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 :                                   560.02 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             229.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   751 sec.
    Turnaround time :                            757 sec.

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

