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


Performing analysis on: 4FGL_J2149.6+0323_daily_bin990
RA = 327.424, Dec = 3.3959
tmin = 495936001, tmax = 496195201
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='981142', job_status='RUN', time_executed='2021-09-27 18:04:09.887459', time_epoch_executed='1632791049.89' WHERE source_name='4FGL J2149.6+0323' and cadence='daily' and bin_id='990'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/981142

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/981142/ft1_4FGL_J2149.6+0323_daily_bin990.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/981142/ft2_4FGL_J2149.6+0323_daily_bin990.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/981142/ft1_4FGL_J2149.6+0323_daily_bin990.fits outfile=/scratch/kocevski/981142/ft1_filteredMKT_4FGL_J2149.6+0323_daily_bin990.fits ra=327.424 dec=3.3959 rad=12.0 tmin=495936001.0 tmax=496195201.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 2.88
user 2.67
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/981142/ft2_4FGL_J2149.6+0323_daily_bin990.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/981142/ft1_filteredMKT_4FGL_J2149.6+0323_daily_bin990.fits evtable="EVENTS" outfile="/scratch/kocevski/981142/ft1_filtered_4FGL_J2149.6+0323_daily_bin990.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.44
user 0.28
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/981142/ft1_filtered_4FGL_J2149.6+0323_daily_bin990.fits" evtable="EVENTS" scfile=/scratch/kocevski/981142/ft2_4FGL_J2149.6+0323_daily_bin990.fits sctable="SC_DATA" outfile=/scratch/kocevski/981142/ltcube_495936001_496195201_4FGL_J2149.6+0323_daily_bin990.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/981142/ft2_4FGL_J2149.6+0323_daily_bin990.fits
.....................!
real 11.65
user 11.31
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/981142/ft1_filtered_4FGL_J2149.6+0323_daily_bin990.fits evtable="EVENTS" scfile=/scratch/kocevski/981142/ft2_4FGL_J2149.6+0323_daily_bin990.fits sctable="SC_DATA" expcube=/scratch/kocevski/981142/ltcube_495936001_496195201_4FGL_J2149.6+0323_daily_bin990.fits outfile=/scratch/kocevski/981142/expmap_495936001_496195201_4FGL_J2149.6+0323_daily_bin990.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/981142/ltcube_495936001_496195201_4FGL_J2149.6+0323_daily_bin990.fits
.....................!
real 160.79
user 155.19
sys 5.02

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/981142/ft1_filtered_4FGL_J2149.6+0323_daily_bin990.fits scfile=/scratch/kocevski/981142/ft2_4FGL_J2149.6+0323_daily_bin990.fits outfile=/scratch/kocevski/981142/cmap_495936001_496195201_4FGL_J2149.6+0323_daily_bin990.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.34
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/981142/ft1_filtered_4FGL_J2149.6+0323_daily_bin990.fits scfile=/scratch/kocevski/981142/ft2_4FGL_J2149.6+0323_daily_bin990.fits outfile=/scratch/kocevski/981142/cmap_HighResolution_495936001_496195201_4FGL_J2149.6+0323_daily_bin990.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.49
user 0.34
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.125       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.381       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .57579       1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.429       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.218       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.8442       1.0000         .10000E-03   10000.    
    14 'norm      '    .10913E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    26.198       1.0000         .10000E-03   10000.    
    21 'Prefactor '    36.001       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.8339       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .40140       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2399       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=   6371.094     FROM MIGRAD    STATUS=CONVERGED    548 CALLS     2731 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.677       -.11750E-06** at limit **
   2  Prefactor     19.134        24.405       -.15828E-05    .50773E-05
   3  Prefactor     .10000E-03    36.825        .23749E-06** at limit **
   4  Prefactor     19.369        65.423       -.18012E-05   -.25575E-04
   5  Prefactor     .10000E-03    71.371        .30862E-05** at limit **
   6  Prefactor     .10000E-03    29.575       -.31180E-06** at limit **
   7  Prefactor     .10000E-03    1.6796       -.87129E-07** at limit **
   8  Prefactor     .10000E-03    2.7657       -.67260E-07** at limit **
   9  Prefactor     .57631        1.7207        .32896E-06   -.15940E-03
  10  Prefactor     28.437        37.558       -.13726E-05   -.45424E-04
  11  Prefactor     .10000E-03    114.04       -.26007E-05** at limit **
  12  Prefactor     21.195        56.985        .25577E-05    .62367E-04
  13  Prefactor     7.8879        65.476       -.15487E-05    .20886E-04
  14  norm          .10000E-03    1.6588       -.10809E-05** at limit **
  15  norm          .10000E-03    10.238        .75541E-06** at limit **
  16  Prefactor     .10000E-03    3.0750        .73652E-06** at limit **
  17  Prefactor     .10000E-03    7.8382       -.45537E-07** at limit **
  18  Prefactor     .10000E-03    5.0555        .29481E-07** at limit **
  19  Prefactor     .10000E-03    8.8070       -.57245E-07** at limit **
  20  Prefactor     26.201        20.118       -.49077E-06   -.27953E-04
  21  Prefactor     35.998        30.023       -.72728E-06   -.38136E-05
  22  Prefactor     7.8371        12.194       -.59359E-06   -.30857E-04
  23  Normalizat    .40130        .29393        .74998E-05    .82160E-04
  24  Prefactor     1.2399        .14789       -.13780E-05    .18163E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 19.1336
  Prefactor  = 0.0001
  Prefactor  = 19.3693
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.576305
  Prefactor  = 28.4368
  Prefactor  = 0.000100001
  Prefactor  = 21.1953
  Prefactor  = 7.88788
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.201
  Prefactor  = 35.9976
  Prefactor  = 7.83711
  Normalizat = 0.401305
  Prefactor  = 1.2399
 **********
 **   18 **HESSE 
 **********

 FCN=   6371.094     FROM HESSE     STATUS=OK           395 CALLS     3126 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.134        24.476        .91585E-04   -1.4833    
   3  Prefactor     .10000E-03    36.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.369        65.529        .90978E-04   -1.4827    
   5  Prefactor     .10000E-03    72.705        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    29.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.6906        .10105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.7736        .12965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .57631        1.5854        .16315E-02   -1.5556    
  10  Prefactor     28.437        36.611        .75139E-04   -1.4641    
  11  Prefactor     .10000E-03    116.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     21.195        56.629        .86954E-04   -1.4787    
  13  Prefactor     7.8879        64.187        .14317E-03   -1.5146    
  14  norm          .10000E-03    2.9420        .18240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    10.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.0453        .13581E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.8924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.0577        .17527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.8192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     26.201        20.133        .78266E-04   -1.4684    
  21  Prefactor     35.998        29.948        .66793E-04   -1.4507    
  22  Prefactor     7.8371        12.185        .14326E-03   -1.5148    
  23  Normalizat    .40130        .29335        .50244E-03   -1.1723    
  24  Prefactor     1.2399        .14856        .16087E-03   -.85112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09359e-08
Minuit parameter uncertainties:
  1  2.89014e-05
  2  24.4889
  3  6.13923e-05
  4  65.774
  5  0.000102224
  6  8.57395e-07
  7  2.19628e-06
  8  1.95114e-06
  9  1.58551
  10  36.6403
  11  0.000641322
  12  56.7729
  13  45.0682
  14  0.000104253
  15  2.87974e-05
  16  1.42132e-05
  17  1.57893e-05
  18  3.78754e-06
  19  2.42125e-06
  20  20.1384
  21  29.9606
  22  12.1885
  23  0.294483
  24  0.148611
Done.

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

Extracting fit parameters...

4FGL J2149.6+0323
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  1.421e-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:  1.240e+00  1.486e-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:  4.013e-01  2.945e-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.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/981142/likelihoodResults_495936001_496195201_4FGL_J2149.6+0323_daily_bin990.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) = 6371.09586485
delta logL = -0.00155690849442

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6371.09430792
delta logL = 1.9109393179e-08

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 'Index     '    2.1485       1.0000          .0000       10.000    
     3 'Normalizat'    .40129       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2399       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=   6371.094     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      204 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.609        .90712E-02** at limit **
   2  Index         2.1405        8.9290        .50000        .21729E-04
   3  Normalizat    .40130        .23119E-01    .11342        .56402E-04
   4  Prefactor     1.2399        .12611E-01    .33749E-01   -.91727E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.14047
  Normalizat = 0.401304
  Prefactor  = 1.2399
 **********
 **   18 **HESSE 
 **********

 FCN=   6371.094     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      237 TOTAL
                     EDM=   .53E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    357.38        .13617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1405        8.6362        .50000       -.60883    
   3  Normalizat    .40130        .71865E-01    .50246E-03   -1.1723    
   4  Prefactor     1.2399        .39306E-01    .16087E-03   -.85112    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.29462e-08
Minuit parameter uncertainties:
  1  3.81981e-05
  2  44.6099
  3  0.0718816
  4  0.0393065
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/981142': 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) = 6371.09430785
delta logL = 8.64893081598e-08

Extracting fit parameters...

4FGL J2149.6+0323
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  3.820e-05  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.140e+00  4.461e+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.240e+00  3.931e-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:  4.013e-01  7.188e-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/981142/cmap_HighResolution_495936001_496195201_4FGL_J2149.6+0323_daily_bin990.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.68e-03', job_status='DONE', photon_flux_upper_limit='6.16e-08', time_completed='2021-09-27 18:16:45.148493', job_id='981142', GAL2='1.24', fit_tolerance='1e-08', EG2='0.40', EG='0.40', time_epoch_completed='1632791805.15', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='8.65e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='990' AND source_name='4FGL J2149.6+0323' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 18:16:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 981142: <4FGL_J2149.6+0323_daily_bin990> in cluster <slac> Done

Job <4FGL_J2149.6+0323_daily_bin990> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep 27 18:00:44 2021
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 18:01:39 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:01:39 2021
Terminated at Mon Sep 27 18:16:45 2021
Results reported at Mon Sep 27 18:16:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2149.6+0323_daily_bin990 327.424 3.3959 495936001 496195201 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 :                                   580.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            961 sec.

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

