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


Performing analysis on: 4FGL_J2149.6+0323_daily_bin718
RA = 327.424, Dec = 3.3959
tmin = 425433601, tmax = 425692801
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='979470', job_status='RUN', time_executed='2021-09-27 17:59:27.881363', time_epoch_executed='1632790767.88' WHERE source_name='4FGL J2149.6+0323' and cadence='daily' and bin_id='718'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/979470

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

Retrieving the FT1 file...

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

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

Retrieving 38 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/979470/ft1_4FGL_J2149.6+0323_daily_bin718.fits


Retrieving the FT1 file...

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

Retrieving 38 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/979470/ft2_4FGL_J2149.6+0323_daily_bin718.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/979470/ft1_4FGL_J2149.6+0323_daily_bin718.fits outfile=/scratch/kocevski/979470/ft1_filteredMKT_4FGL_J2149.6+0323_daily_bin718.fits ra=327.424 dec=3.3959 rad=12.0 tmin=425433601.0 tmax=425692801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.17
user 2.86
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/979470/ft1_filtered_4FGL_J2149.6+0323_daily_bin718.fits" evtable="EVENTS" scfile=/scratch/kocevski/979470/ft2_4FGL_J2149.6+0323_daily_bin718.fits sctable="SC_DATA" outfile=/scratch/kocevski/979470/ltcube_425433601_425692801_4FGL_J2149.6+0323_daily_bin718.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/979470/ft2_4FGL_J2149.6+0323_daily_bin718.fits
.....................!
real 12.29
user 11.88
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/979470/ft1_filtered_4FGL_J2149.6+0323_daily_bin718.fits evtable="EVENTS" scfile=/scratch/kocevski/979470/ft2_4FGL_J2149.6+0323_daily_bin718.fits sctable="SC_DATA" expcube=/scratch/kocevski/979470/ltcube_425433601_425692801_4FGL_J2149.6+0323_daily_bin718.fits outfile=/scratch/kocevski/979470/expmap_425433601_425692801_4FGL_J2149.6+0323_daily_bin718.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/979470/ltcube_425433601_425692801_4FGL_J2149.6+0323_daily_bin718.fits
.....................!
real 190.58
user 185.14
sys 5.05

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/979470/ft1_filtered_4FGL_J2149.6+0323_daily_bin718.fits scfile=/scratch/kocevski/979470/ft2_4FGL_J2149.6+0323_daily_bin718.fits outfile=/scratch/kocevski/979470/cmap_425433601_425692801_4FGL_J2149.6+0323_daily_bin718.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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/979470/ft1_filtered_4FGL_J2149.6+0323_daily_bin718.fits scfile=/scratch/kocevski/979470/ft2_4FGL_J2149.6+0323_daily_bin718.fits outfile=/scratch/kocevski/979470/cmap_HighResolution_425433601_425692801_4FGL_J2149.6+0323_daily_bin718.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.61
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .31560E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.7394       1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.395       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.351       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.4976       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.9027       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.8506       1.0000         .10000E-03   10000.    
    14 'norm      '    3.1306       1.0000         .10000E-03   10000.    
    15 'norm      '    3.7122       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.5524       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .33759E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.361       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.6103       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.3918       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2749       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .62848       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=   6435.883     FROM MIGRAD    STATUS=CONVERGED    529 CALLS     2737 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.352       -.42361E-06** at limit **
   2  Prefactor     .10081E-03    23.344       -.11784E-05** at limit **
   3  Prefactor     9.7381        21.735       -.14380E-05    .11612E-03
   4  Prefactor     25.299        53.863       -.17174E-05   -.15648E-03
   5  Prefactor     .10000E-03    13.667       -.19846E-06** at limit **
   6  Prefactor     21.344        35.693        .19722E-06    .84662E-07
   7  Prefactor     4.4957        7.3749        .30439E-06    .13714E-04
   8  Prefactor     4.9018        10.816        .14884E-06   -.20019E-05
   9  Prefactor     .10000E-03    1.0548       -.25590E-06** at limit **
  10  Prefactor     .10000E-03    11.933       -.19713E-06** at limit **
  11  Prefactor     .10000E-03    10.801       -.11983E-07** at limit **
  12  Prefactor     .10000E-03    76.480        .37806E-06** at limit **
  13  Prefactor     6.8433        68.956       -.42035E-05   -.16190E-04
  14  norm          3.1301        2.5117       -.20761E-06   -.11598E-03
  15  norm          3.7108        12.261        .95319E-05   -.71608E-04
  16  Prefactor     6.5533        5.6882       -.68150E-07    .72159E-05
  17  Prefactor     .10002E-03    5.7182       -.55174E-06** at limit **
  18  Prefactor     13.364        21.606       -.68493E-06   -.40685E-06
  19  Prefactor     .10000E-03    6.2631        .20127E-06** at limit **
  20  Prefactor     .10000E-03    9.1512        .29834E-06** at limit **
  21  Prefactor     2.5975        88.916        .21000E-05   -.10916E-04
  22  Prefactor     9.3924        9.7070        .88804E-07    .78073E-05
  23  Normalizat    1.2748        .21812       -.25769E-06    .68256E-04
  24  Prefactor     .62861        .10504       -.74520E-06    .16373E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100815
  Prefactor  = 9.73809
  Prefactor  = 25.2987
  Prefactor  = 0.0001
  Prefactor  = 21.3436
  Prefactor  = 4.49574
  Prefactor  = 4.90176
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.8433
  norm       = 3.13009
  norm       = 3.71076
  Prefactor  = 6.55326
  Prefactor  = 0.000100022
  Prefactor  = 13.3638
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.5975
  Prefactor  = 9.39243
  Normalizat = 1.27484
  Prefactor  = 0.628608
 **********
 **   18 **HESSE 
 **********

 FCN=   6435.883     FROM HESSE     STATUS=OK           403 CALLS     3140 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10081E-03    130.15        .66233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.7381        19.611        .12840E-03   -1.5084    
   4  Prefactor     25.299        54.249        .79493E-04   -1.4702    
   5  Prefactor     .10000E-03    13.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     21.344        35.722        .86683E-04   -1.4784    
   7  Prefactor     4.4957        7.3253        .18985E-03   -1.5284    
   8  Prefactor     4.9018        10.750        .18165E-03   -1.5265    
   9  Prefactor     .10000E-03    1.0627        .79856E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    76.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.8433        68.799        .15329E-03   -1.5185    
  14  norm          3.1301        2.5025        .10708E-03   -1.5354    
  15  norm          3.7108        12.227        .10480E-02   -1.5323    
  16  Prefactor     6.5533        5.6728        .15678E-03   -1.5196    
  17  Prefactor     .10002E-03    24.806        .36925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.364        21.564        .10958E-03   -1.4977    
  19  Prefactor     .10000E-03    6.2799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.1794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.5975        88.407        .25248E-03   -1.5386    
  22  Prefactor     9.3924        9.7334        .13077E-03   -1.5095    
  23  Normalizat    1.2748        .26304        .27581E-03   -.84321    
  24  Prefactor     .62861        .12617        .18955E-03   -1.0639    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.26396e-09
Minuit parameter uncertainties:
  1  3.393e-05
  2  0.0206387
  3  19.6239
  4  54.3552
  5  1.13032e-05
  6  35.7575
  7  7.3268
  8  10.754
  9  4.18308e-06
  10  4.31294e-05
  11  1.74103e-05
  12  0.000182445
  13  43.461
  14  2.50258
  15  12.2349
  16  5.67324
  17  0.00148999
  18  21.5767
  19  4.41954e-06
  20  1.1817e-05
  21  30.3558
  22  9.73509
  23  0.263313
  24  0.126229
Done.

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

Extracting fit parameters...

4FGL J2149.6+0323
   Spectrum: PowerLaw
296    Prefactor:  6.553e+00  5.673e+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

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  6.286e-01  1.262e-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:  1.275e+00  2.633e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.08
Ra Dec: 327.424 3.396
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 2.88e-08 +/- 2.49e-08
Energy Flux (Fixed Index): 1.41e-05 +/- 1.22e-05

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): 0
logL (Free Index) = 6433.95752504
delta logL = 1.92504898668

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6433.69175273
delta logL = 2.19082129196

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6218       1.0000         .10000E-03   10000.    
     2 'Index     '    .57481       1.0000          .0000       10.000    
     3 'Normalizat'    1.2926       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62855       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=   6433.692     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      215 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6161        1.8987        .83075E-02   -.71023E-03
   2  Index         .57318        .46733        .27931        .64377E-06
   3  Normalizat    1.2923        .20528        .61993E-01   -.76571E-05
   4  Prefactor     .62864        .10313        .41442E-01   -.80218E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.6161
  Index      = 0.573175
  Normalizat = 1.29227
  Prefactor  = 0.628638
 **********
 **   18 **HESSE 
 **********

 FCN=   6433.692     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6161        3.3390        .98206E-04   -1.5454    
   2  Index         .57318        .74262        .13308E-01   -1.0873    
   3  Normalizat    1.2923        .24643        .27420E-03   -.83797    
   4  Prefactor     .62864        .12386        .18958E-03   -1.0639    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.3001e-11
Minuit parameter uncertainties:
  1  3.33942
  2  0.755871
  3  0.24665
  4  0.123911
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/979470': 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): 0
logL (Free Index) = 6433.6917497
delta logL = 2.19082432641

Extracting fit parameters...

4FGL J2149.6+0323
   Spectrum: PowerLaw
296    Prefactor:  1.616e+00  3.339e+00  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  5.732e-01  7.559e-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:  6.286e-01  1.239e-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:  1.292e+00  2.467e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.46
Ra Dec: 327.424 3.396
Photon Index (Free Index): 0.57 +/- 0.76
Photon Flux (Free Index): 3.59e-09 +/- 3.70e-09
Energy Flux (Free Index): 1.13e-04 +/- 1.38e-04

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/979470/cmap_HighResolution_425433601_425692801_4FGL_J2149.6+0323_daily_bin718.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.88e-08', energy_flux2='1.13e-04', photon_flux_error='2.49e-08', dlogl='2.19e+00', energy_flux='1.41e-05', photon_flux2='3.59e-09', job_status='DONE', time_completed='2021-09-27 18:09:58.649588', photon_index_error2='0.76', photon_index2='0.57', ts='9.08', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', energy_flux_error2='1.38e-04', EG='1.27', time_epoch_completed='1632791398.65', return_code='0', job_id='979470', GAL2='0.63', EG2='1.29', return_code2='0', energy_flux_error='1.22e-05', photon_flux_error2='3.70e-09', ts2='13.46', photon_index='2.16' WHERE bin_id='718' AND source_name='4FGL J2149.6+0323' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 18:09:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 979470: <4FGL_J2149.6+0323_daily_bin718> in cluster <slac> Done

Job <4FGL_J2149.6+0323_daily_bin718> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep 27 17:55:16 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 17:55:30 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:30 2021
Terminated at Mon Sep 27 18:09:59 2021
Results reported at Mon Sep 27 18:09:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2149.6+0323_daily_bin718 327.424 3.3959 425433601 425692801 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 :                                   627.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             263.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            883 sec.

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

