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


Performing analysis on: 4FGL_J2149.6+0323_daily_bin731
RA = 327.424, Dec = 3.3959
tmin = 428803201, tmax = 429062401
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='980752', job_status='RUN', time_executed='2021-09-27 18:03:09.386806', time_epoch_executed='1632790989.39' WHERE source_name='4FGL J2149.6+0323' and cadence='daily' and bin_id='731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/980752

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/980752/ft1_4FGL_J2149.6+0323_daily_bin731.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/980752/ft2_4FGL_J2149.6+0323_daily_bin731.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/980752/ft1_4FGL_J2149.6+0323_daily_bin731.fits outfile=/scratch/kocevski/980752/ft1_filteredMKT_4FGL_J2149.6+0323_daily_bin731.fits ra=327.424 dec=3.3959 rad=12.0 tmin=428803201.0 tmax=429062401.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 6.51
user 6.24
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/980752/ft1_filtered_4FGL_J2149.6+0323_daily_bin731.fits" evtable="EVENTS" scfile=/scratch/kocevski/980752/ft2_4FGL_J2149.6+0323_daily_bin731.fits sctable="SC_DATA" outfile=/scratch/kocevski/980752/ltcube_428803201_429062401_4FGL_J2149.6+0323_daily_bin731.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/980752/ft2_4FGL_J2149.6+0323_daily_bin731.fits
.....................!
real 12.69
user 12.35
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/980752/ft1_filtered_4FGL_J2149.6+0323_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/980752/ft2_4FGL_J2149.6+0323_daily_bin731.fits sctable="SC_DATA" expcube=/scratch/kocevski/980752/ltcube_428803201_429062401_4FGL_J2149.6+0323_daily_bin731.fits outfile=/scratch/kocevski/980752/expmap_428803201_429062401_4FGL_J2149.6+0323_daily_bin731.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/980752/ltcube_428803201_429062401_4FGL_J2149.6+0323_daily_bin731.fits
.....................!
real 191.67
user 186.63
sys 4.59

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/980752/ft1_filtered_4FGL_J2149.6+0323_daily_bin731.fits scfile=/scratch/kocevski/980752/ft2_4FGL_J2149.6+0323_daily_bin731.fits outfile=/scratch/kocevski/980752/cmap_428803201_429062401_4FGL_J2149.6+0323_daily_bin731.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.55
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/980752/ft1_filtered_4FGL_J2149.6+0323_daily_bin731.fits scfile=/scratch/kocevski/980752/ft2_4FGL_J2149.6+0323_daily_bin731.fits outfile=/scratch/kocevski/980752/cmap_HighResolution_428803201_429062401_4FGL_J2149.6+0323_daily_bin731.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.56
user 0.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/980752/ft1_filtered_4FGL_J2149.6+0323_daily_bin731.fits', '/scratch/kocevski/980752/ft2_4FGL_J2149.6+0323_daily_bin731.fits', expMap='/scratch/kocevski/980752/expmap_428803201_429062401_4FGL_J2149.6+0323_daily_bin731.fits', expCube='/scratch/kocevski/980752/ltcube_428803201_429062401_4FGL_J2149.6+0323_daily_bin731.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/980752/Model_4FGL_J2149.6+0323_daily_bin731.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/980752/ft1_filtered_4FGL_J2149.6+0323_daily_bin731.fits
Spacecraft file(s): /scratch/kocevski/980752/ft2_4FGL_J2149.6+0323_daily_bin731.fits
Exposure map: /scratch/kocevski/980752/expmap_428803201_429062401_4FGL_J2149.6+0323_daily_bin731.fits
Exposure cube: /scratch/kocevski/980752/ltcube_428803201_429062401_4FGL_J2149.6+0323_daily_bin731.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/980752/Model_4FGL_J2149.6+0323_daily_bin731.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 3152.58536537

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .20569E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.6514       1.0000         .10000E-03   10000.    
     4 'Prefactor '    87.963       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    73.773       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.557       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.895       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    111.25       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    68.397       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10610E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.409       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.241       1.0000         .10000E-03   10000.    
    20 'Prefactor '    24.294       1.0000         .10000E-03   10000.    
    21 'Prefactor '    127.82       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.075       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .61384       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .85565       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=   3152.442     FROM MIGRAD    STATUS=CONVERGED    530 CALLS     2738 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.781       -.97596E-06** at limit **
   2  Prefactor     .10005E-03    53.946        .62921E-06** at limit **
   3  Prefactor     7.5941        44.242        .46871E-04    .35876E-04
   4  Prefactor     88.082        111.49        .10008E-03    .49051E-04
   5  Prefactor     .10026E-03    37.928       -.88914E-05** at limit **
   6  Prefactor     73.736        87.400       -.39253E-04   -.18530E-05
   7  Prefactor     .10000E-03    7.4525       -.73028E-06** at limit **
   8  Prefactor     21.554        27.700        .54660E-05    .17931E-04
   9  Prefactor     .10000E-03    1.7166       -.14711E-06** at limit **
  10  Prefactor     23.912        68.779        .80595E-05    .29947E-04
  11  Prefactor     .10000E-03    28.925       -.69510E-06** at limit **
  12  Prefactor     .10000E-03    52.851       -.30844E-05** at limit **
  13  Prefactor     111.27        100.88        .15692E-04    .44202E-04
  14  norm          .10000E-03    1.4367       -.36340E-06** at limit **
  15  norm          68.396        49.699       -.23722E-05    .53519E-04
  16  Prefactor     .10000E-03    9.9055       -.77848E-06** at limit **
  17  Prefactor     16.404        23.186        .52054E-05   -.24017E-04
  18  Prefactor     .10000E-03    18.321       -.12494E-05** at limit **
  19  Prefactor     12.239        28.533        .65208E-05   -.17686E-04
  20  Prefactor     24.289        42.202        .36881E-05   -.18508E-04
  21  Prefactor     127.82        78.283        .22058E-05    .19914E-05
  22  Prefactor     11.080        23.310        .20738E-05   -.41696E-04
  23  Normalizat    .61309        .38205       -.14120E-04    .34412E-04
  24  Prefactor     .85604        .16850       -.51727E-05    .77147E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.000100048
  Prefactor  = 7.5941
  Prefactor  = 88.0824
  Prefactor  = 0.000100259
  Prefactor  = 73.7364
  Prefactor  = 0.0001
  Prefactor  = 21.5536
  Prefactor  = 0.0001
  Prefactor  = 23.9117
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 111.274
  norm       = 0.0001
  norm       = 68.3961
  Prefactor  = 0.000100001
  Prefactor  = 16.4045
  Prefactor  = 0.0001
  Prefactor  = 12.2386
  Prefactor  = 24.2888
  Prefactor  = 127.823
  Prefactor  = 11.0796
  Normalizat = 0.61309
  Prefactor  = 0.856042
 **********
 **   18 **HESSE 
 **********

 FCN=   3152.442     FROM HESSE     STATUS=OK           395 CALLS     3133 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10005E-03    53.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.5941        44.315        .14497E-03   -1.5157    
   4  Prefactor     88.082        111.36        .21419E-03   -1.3828    
   5  Prefactor     .10026E-03    364.49        .65454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     73.736        87.156        .46745E-04   -1.3988    
   7  Prefactor     .10000E-03    7.4675        .14951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     21.554        27.644        .86268E-04   -1.4779    
   9  Prefactor     .10000E-03    1.7217        .71661E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     23.912        68.581        .81946E-04   -1.4730    
  11  Prefactor     .10000E-03    28.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    52.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     111.27        100.74        .38136E-04   -1.3594    
  14  norm          .10000E-03    1.4391        .65712E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          68.396        49.671        .48534E-04   -1.4052    
  16  Prefactor     .10000E-03    9.9132        .17235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     16.404        23.168        .98875E-04   -1.4898    
  18  Prefactor     .10000E-03    18.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.239        28.464        .11449E-03   -1.5008    
  20  Prefactor     24.289        42.108        .81270E-04   -1.4722    
  21  Prefactor     127.82        78.170        .35609E-04   -1.3442    
  22  Prefactor     11.080        23.327        .12038E-03   -1.5042    
  23  Normalizat    .61309        .42722        .41966E-03   -1.0743    
  24  Prefactor     .85604        .19423        .17433E-03   -.97694    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.93381e-09
Minuit parameter uncertainties:
  1  0.000560938
  2  0.00320541
  3  36.7305
  4  111.622
  5  0.0195619
  6  87.3073
  7  2.64201e-05
  8  27.66
  9  2.49818e-05
  10  68.8086
  11  0.000266916
  12  2.79842e-05
  13  100.891
  14  5.40456e-06
  15  49.7008
  16  0.000154309
  17  23.1806
  18  4.28344e-06
  19  28.4954
  20  42.1593
  21  78.2334
  22  23.346
  23  0.429547
  24  0.194389
Done.

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

Extracting fit parameters...

4FGL J2149.6+0323
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  1.543e-04  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.560e-01  1.944e-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.131e-01  4.295e-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.56e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.18e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/980752/likelihoodResults_428803201_429062401_4FGL_J2149.6+0323_daily_bin731.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) = 3152.44292195
delta logL = -0.000480337662339

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3152.44244223
delta logL = -6.11969880993e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11695E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1226       1.0000          .0000       10.000    
     3 'Normalizat'    .61301       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85608       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.

 FCN=   3152.442     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      242 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10173E-03    66.287        .18056E-02** at limit **
   2  Index         2.0607        6.2859        .50000        .22832E-04
   3  Normalizat    .61311        .19799E-01    .41966E-03    .40933E-04
   4  Prefactor     .85603        .96980E-02    .17433E-03    .53104E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101726
  Index      = 2.06067
  Normalizat = 0.613106
  Prefactor  = 0.856033
 **********
 **   18 **HESSE 
 **********

 FCN=   3152.442     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10173E-03    285.88        .36112E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0607        6.5631        .50000       -.62842    
   3  Normalizat    .61311        .42157E-01    .16787E-04   -1.0743    
   4  Prefactor     .85603        .20650E-01    .34866E-04   -.97695    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.64117e-08
Minuit parameter uncertainties:
  1  0.0446409
  2  366.115
  3  0.0421589
  4  0.02065
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/980752': 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) = 3152.44244108
delta logL = 5.35026629223e-07

Extracting fit parameters...

4FGL J2149.6+0323
   Spectrum: PowerLaw
296    Prefactor:  1.017e-04  4.464e-02  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.061e+00  3.661e+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.560e-01  2.065e-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.131e-01  4.216e-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/980752/cmap_HighResolution_428803201_429062401_4FGL_J2149.6+0323_daily_bin731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.18e-02', job_status='DONE', photon_flux_upper_limit='1.56e-07', time_completed='2021-09-27 18:15:03.499441', job_id='980752', GAL2='0.86', fit_tolerance='1e-08', EG2='0.61', EG='0.61', time_epoch_completed='1632791703.5', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='5.35e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='731' AND source_name='4FGL J2149.6+0323' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 18:15:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 980752: <4FGL_J2149.6+0323_daily_bin731> in cluster <slac> Done

Job <4FGL_J2149.6+0323_daily_bin731> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep 27 18:00:13 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 18:00:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 27 18:00:16 2021
Terminated at Mon Sep 27 18:15:04 2021
Results reported at Mon Sep 27 18:15:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2149.6+0323_daily_bin731 327.424 3.3959 428803201 429062401 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 :                                   508.51 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             216.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            891 sec.

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

