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


Performing analysis on: 4FGL_J2149.6+0323_daily_bin729
RA = 327.424, Dec = 3.3959
tmin = 428284801, tmax = 428544001
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='980745', job_status='RUN', time_executed='2021-09-27 18:04:24.511630', time_epoch_executed='1632791064.51' WHERE source_name='4FGL J2149.6+0323' and cadence='daily' and bin_id='729'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/980745

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/980745/ft1_4FGL_J2149.6+0323_daily_bin729.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/980745/ft2_4FGL_J2149.6+0323_daily_bin729.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/980745/ft1_4FGL_J2149.6+0323_daily_bin729.fits outfile=/scratch/kocevski/980745/ft1_filteredMKT_4FGL_J2149.6+0323_daily_bin729.fits ra=327.424 dec=3.3959 rad=12.0 tmin=428284801.0 tmax=428544001.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.11
user 5.81
sys 0.27

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/980745/ft1_filtered_4FGL_J2149.6+0323_daily_bin729.fits evtable="EVENTS" scfile=/scratch/kocevski/980745/ft2_4FGL_J2149.6+0323_daily_bin729.fits sctable="SC_DATA" expcube=/scratch/kocevski/980745/ltcube_428284801_428544001_4FGL_J2149.6+0323_daily_bin729.fits outfile=/scratch/kocevski/980745/expmap_428284801_428544001_4FGL_J2149.6+0323_daily_bin729.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/980745/ltcube_428284801_428544001_4FGL_J2149.6+0323_daily_bin729.fits
.....................!
real 193.99
user 188.00
sys 5.47

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/980745/ft1_filtered_4FGL_J2149.6+0323_daily_bin729.fits scfile=/scratch/kocevski/980745/ft2_4FGL_J2149.6+0323_daily_bin729.fits outfile=/scratch/kocevski/980745/cmap_428284801_428544001_4FGL_J2149.6+0323_daily_bin729.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.62
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/980745/ft1_filtered_4FGL_J2149.6+0323_daily_bin729.fits scfile=/scratch/kocevski/980745/ft2_4FGL_J2149.6+0323_daily_bin729.fits outfile=/scratch/kocevski/980745/cmap_HighResolution_428284801_428544001_4FGL_J2149.6+0323_daily_bin729.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.62
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.6815       1.0000         .10000E-03   10000.    
     4 'Prefactor '    95.054       1.0000         .10000E-03   10000.    
     5 'Prefactor '    55.483       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.8400       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.4260       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17631E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    35.755       1.0000         .10000E-03   10000.    
    12 'Prefactor '    153.66       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .69730       1.0000         .10000E-03   10000.    
    15 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .52247E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10397E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .19765       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0885       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=   3439.468     FROM MIGRAD    STATUS=CONVERGED    967 CALLS     4082 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.994        .18142E-02** at limit **
   2  Prefactor     .10000E-03    49.672        .18142E-02** at limit **
   3  Prefactor     2.6807        51.990        .12442E-02   -.14777E-03
   4  Prefactor     95.008        89.939        .41224E-04   -.71150E-05
   5  Prefactor     55.475        37.019        .53852E-04   -.22399E-03
   6  Prefactor     .10000E-03    28.174        .18142E-02** at limit **
   7  Prefactor     8.8370        11.755        .13481E-03   -.91414E-04
   8  Prefactor     .10000E-03    5.7837        .13774E-02** at limit **
   9  Prefactor     2.4248        2.4510        .88148E-04   -.50532E-03
  10  Prefactor     .10000E-03    245.82        .18142E-02** at limit **
  11  Prefactor     35.743        44.729        .67021E-04   -.29363E-04
  12  Prefactor     153.81        808.68        .16260E-03    .91692E-04
  13  Prefactor     .10000E-03    138.41        .18142E-02** at limit **
  14  norm          .68369        144.24        .23552E-02    .26764E-03
  15  norm          .10000E-03    29.223        .18142E-02** at limit **
  16  Prefactor     .33365E-01    18.608        .57851E-01    .11616E-03
  17  Prefactor     .10000E-03    9.4812        .17624E-02** at limit **
  18  Prefactor     .10000E-03    22.894        .18142E-02** at limit **
  19  Prefactor     .10000E-03    17.325        .18142E-02** at limit **
  20  Prefactor     .10000E-03    15.235        .18142E-02** at limit **
  21  Prefactor     .10000E-03    219.92        .18142E-02** at limit **
  22  Prefactor     .10000E-03    10.855        .18142E-02** at limit **
  23  Normalizat    .19790        .37332        .67889E-03    .75290E-04
  24  Prefactor     1.0884        .18794        .15297E-03    .19730E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 2.68073
  Prefactor  = 95.0076
  Prefactor  = 55.4748
  Prefactor  = 0.0001
  Prefactor  = 8.83703
  Prefactor  = 0.0001
  Prefactor  = 2.42478
  Prefactor  = 0.000100002
  Prefactor  = 35.7433
  Prefactor  = 153.807
  Prefactor  = 0.0001
  norm       = 0.683686
  norm       = 0.0001
  Prefactor  = 0.0333652
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Normalizat = 0.197898
  Prefactor  = 1.08843
 **********
 **   18 **HESSE 
 **********

 FCN=   3439.468     FROM HESSE     STATUS=OK           385 CALLS     4467 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.997        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    49.674        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.6807        51.905        .49768E-04   -1.5380    
   4  Prefactor     95.008        89.710        .82449E-05   -1.3755    
   5  Prefactor     55.475        37.016        .10770E-04   -1.4217    
   6  Prefactor     .10000E-03    28.175        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.8370        11.675        .53924E-05   -1.5113    
   8  Prefactor     .10000E-03    5.7837        .27547E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.4248        2.4487        .35259E-05   -1.5397    
  10  Prefactor     .10000E-03    245.99        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     35.743        44.663        .13404E-04   -1.4512    
  12  Prefactor     153.81        439.39        .32520E-04   -1.3221    
  13  Prefactor     .10000E-03    138.43        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .68369        55.849        .94207E-04   -1.5543    
  15  norm          .10000E-03    29.226        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .33365E-01    15.244        .65863E-01   -1.5671    
  17  Prefactor     .10000E-03    9.4817        .35247E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    22.895        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.326        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    15.235        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    220.02        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    10.855        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .19790        .35846        .27155E-04   -1.2956    
  24  Prefactor     1.0884        .18456        .30593E-04   -.89837    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20891e-09
Minuit parameter uncertainties:
  1  0.000285278
  2  0.000918187
  3  23.6151
  4  89.8385
  5  37.0312
  6  3.72481e-05
  7  11.6777
  8  5.07173e-06
  9  2.44881
  10  0.00122502
  11  44.705
  12  449.302
  13  0.000416324
  14  12.3695
  15  0.000104488
  16  1.42458
  17  2.47765e-05
  18  5.17805e-05
  19  2.71753e-05
  20  1.92638e-05
  21  0.00168889
  22  1.73481e-05
  23  0.362766
  24  0.184666
Done.

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

Extracting fit parameters...

4FGL J2149.6+0323
   Spectrum: PowerLaw
296    Prefactor:  3.337e-02  1.425e+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:  1.088e+00  1.847e-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.979e-01  3.628e-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.43e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.08e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/980745/likelihoodResults_428284801_428544001_4FGL_J2149.6+0323_daily_bin729.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) = 3439.46812042
delta logL = 7.41010489946e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3439.46811322
delta logL = 1.46155171024e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33365E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1493       1.0000          .0000       10.000    
     3 'Normalizat'    .19788       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0884       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3439.458     FROM MIGRAD    STATUS=CONVERGED    141 CALLS      308 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0327        27.974        .18377E-02   -.13878E-03
   2  Index         1.7676        1.7747        .84016E-02    .88476E-05
   3  Normalizat    .20108        .34346        .67381E-03    .13237E-03
   4  Prefactor     1.0850        .17894        .15319E-03    .48537E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.03269
  Index      = 1.76765
  Normalizat = 0.201077
  Prefactor  = 1.08497
 **********
 **   18 **HESSE 
 **********

 FCN=   3439.458     FROM HESSE     STATUS=OK            25 CALLS      333 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0327        27.210        .73509E-04   -1.5423    
   2  Index         1.7676        1.7536        .33606E-03   -.70295    
   3  Normalizat    .20108        .34269        .26952E-04   -1.2933    
   4  Prefactor     1.0850        .17848        .30638E-04   -.89948    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.63815e-10
Minuit parameter uncertainties:
  1  14.882
  2  1.82211
  3  0.346378
  4  0.178576
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/980745': 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) = 3439.45798108
delta logL = 0.0101467491545

Extracting fit parameters...

4FGL J2149.6+0323
   Spectrum: PowerLaw
296    Prefactor:  2.033e+00  1.488e+01  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  1.768e+00  1.822e+00  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.085e+00  1.786e-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:  2.011e-01  3.464e-01  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/980745/cmap_HighResolution_428284801_428544001_4FGL_J2149.6+0323_daily_bin729.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-02', job_status='DONE', photon_flux_upper_limit='1.43e-07', time_completed='2021-09-27 18:16:25.923361', job_id='980745', GAL2='1.08', fit_tolerance='1e-08', EG2='0.20', EG='0.20', time_epoch_completed='1632791785.92', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='1.01e-02', ts2='0.02', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='729' AND source_name='4FGL J2149.6+0323' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 18:16:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 980745: <4FGL_J2149.6+0323_daily_bin729> in cluster <slac> Done

Job <4FGL_J2149.6+0323_daily_bin729> 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) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 18:00:15 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:15 2021
Terminated at Mon Sep 27 18:16:26 2021
Results reported at Mon Sep 27 18:16:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2149.6+0323_daily_bin729 327.424 3.3959 428284801 428544001 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 :                                   585.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             268.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            973 sec.

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

