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


Performing analysis on: 4FGL_J2149.6+0323_daily_bin655
RA = 327.424, Dec = 3.3959
tmin = 409104001, tmax = 409363201
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='978190', job_status='RUN', time_executed='2021-09-27 17:53:59.626096', time_epoch_executed='1632790439.63' WHERE source_name='4FGL J2149.6+0323' and cadence='daily' and bin_id='655'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/978190

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/978190/ft1_4FGL_J2149.6+0323_daily_bin655.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/978190/ft2_4FGL_J2149.6+0323_daily_bin655.fits


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

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

Done.
real 5.77
user 5.45
sys 0.30

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/978190/ft2_4FGL_J2149.6+0323_daily_bin655.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/978190/ft1_filteredMKT_4FGL_J2149.6+0323_daily_bin655.fits evtable="EVENTS" outfile="/scratch/kocevski/978190/ft1_filtered_4FGL_J2149.6+0323_daily_bin655.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.60
user 0.42
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/978190/ft1_filtered_4FGL_J2149.6+0323_daily_bin655.fits" evtable="EVENTS" scfile=/scratch/kocevski/978190/ft2_4FGL_J2149.6+0323_daily_bin655.fits sctable="SC_DATA" outfile=/scratch/kocevski/978190/ltcube_409104001_409363201_4FGL_J2149.6+0323_daily_bin655.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/978190/ft2_4FGL_J2149.6+0323_daily_bin655.fits
.....................!
real 18.65
user 18.19
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/978190/ft1_filtered_4FGL_J2149.6+0323_daily_bin655.fits evtable="EVENTS" scfile=/scratch/kocevski/978190/ft2_4FGL_J2149.6+0323_daily_bin655.fits sctable="SC_DATA" expcube=/scratch/kocevski/978190/ltcube_409104001_409363201_4FGL_J2149.6+0323_daily_bin655.fits outfile=/scratch/kocevski/978190/expmap_409104001_409363201_4FGL_J2149.6+0323_daily_bin655.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/978190/ltcube_409104001_409363201_4FGL_J2149.6+0323_daily_bin655.fits
.....................!
real 195.34
user 188.95
sys 5.98

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/978190/ft1_filtered_4FGL_J2149.6+0323_daily_bin655.fits scfile=/scratch/kocevski/978190/ft2_4FGL_J2149.6+0323_daily_bin655.fits outfile=/scratch/kocevski/978190/cmap_409104001_409363201_4FGL_J2149.6+0323_daily_bin655.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=327.424 yref=3.3959 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.59
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/978190/ft1_filtered_4FGL_J2149.6+0323_daily_bin655.fits scfile=/scratch/kocevski/978190/ft2_4FGL_J2149.6+0323_daily_bin655.fits outfile=/scratch/kocevski/978190/cmap_HighResolution_409104001_409363201_4FGL_J2149.6+0323_daily_bin655.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.64
user 0.46
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .16091E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10995E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.333       1.0000         .10000E-03   10000.    
     6 'Prefactor '    80.576       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .42260       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .68902       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.774       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    31.978       1.0000         .10000E-03   10000.    
    14 'norm      '    10.919       1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.2516       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.1549       1.0000         .10000E-03   10000.    
    18 'Prefactor '    30.947       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.407       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    41.970       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .73453       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .87674       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=   4704.843     FROM MIGRAD    STATUS=CONVERGED    532 CALLS     2729 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    52.662        .64111E-06** at limit **
   2  Prefactor     .10000E-03    59.523        .16304E-05** at limit **
   3  Prefactor     .10000E-03    37.140        .36332E-06** at limit **
   4  Prefactor     .10000E-03    25.250       -.11425E-06** at limit **
   5  Prefactor     27.332        23.552       -.19844E-07   -.92153E-05
   6  Prefactor     80.526        62.240        .18964E-05   -.43645E-05
   7  Prefactor     .10000E-03    4.4069        .20516E-06** at limit **
   8  Prefactor     .42768        10.804       -.80357E-06    .13991E-03
   9  Prefactor     .69391        2.4493       -.13705E-05   -.24884E-03
  10  Prefactor     .10000E-03    14.723       -.83000E-07** at limit **
  11  Prefactor     10.754        68.033        .75427E-06   -.18723E-05
  12  Prefactor     .10000E-03    86.018       -.22997E-06** at limit **
  13  Prefactor     31.984        42.950       -.24855E-05   -.44036E-04
  14  norm          10.922        4.3327       -.10888E-06   -.43210E-04
  15  norm          .10000E-03    17.720        .14029E-06** at limit **
  16  Prefactor     1.2505        11.802        .43986E-05    .20514E-04
  17  Prefactor     8.1546        15.557        .19828E-08   -.19722E-04
  18  Prefactor     30.957        37.917       -.54696E-06   -.88508E-05
  19  Prefactor     11.400        18.334        .76312E-07   -.10401E-04
  20  Prefactor     .10000E-03    11.865        .13287E-06** at limit **
  21  Prefactor     41.935        55.780       -.54086E-06   -.49093E-04
  22  Prefactor     .10000E-03    22.774        .88651E-06** at limit **
  23  Normalizat    .73399        .30201        .45905E-05   -.26435E-04
  24  Prefactor     .87694        .13922       -.19928E-05    .18421E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.3321
  Prefactor  = 80.5263
  Prefactor  = 0.0001
  Prefactor  = 0.42768
  Prefactor  = 0.693909
  Prefactor  = 0.0001
  Prefactor  = 10.7541
  Prefactor  = 0.0001
  Prefactor  = 31.9838
  norm       = 10.9216
  norm       = 0.0001
  Prefactor  = 1.25048
  Prefactor  = 8.15461
  Prefactor  = 30.9567
  Prefactor  = 11.3997
  Prefactor  = 0.0001
  Prefactor  = 41.9347
  Prefactor  = 0.0001
  Normalizat = 0.733994
  Prefactor  = 0.876941
 **********
 **   18 **HESSE 
 **********

 FCN=   4704.843     FROM HESSE     STATUS=OK           395 CALLS     3124 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    52.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    60.895        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    37.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    25.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     27.332        23.560        .76627E-04   -1.4662    
   6  Prefactor     80.526        61.903        .44743E-04   -1.3911    
   7  Prefactor     .10000E-03    4.4370        .14042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .42768        66.534        .42684E-02   -1.5577    
   9  Prefactor     .69391        2.4173        .17616E-03   -1.5541    
  10  Prefactor     .10000E-03    14.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.754        67.914        .12206E-03   -1.5052    
  12  Prefactor     .10000E-03    85.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     31.984        42.778        .70857E-04   -1.4576    
  14  norm          10.922        4.3271        .85277E-04   -1.5047    
  15  norm          .10000E-03    17.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.2505        11.697        .39963E-03   -1.5484    
  17  Prefactor     8.1546        15.539        .14040E-03   -1.5137    
  18  Prefactor     30.957        37.891        .72025E-04   -1.4595    
  19  Prefactor     11.400        18.319        .11862E-03   -1.5033    
  20  Prefactor     .10000E-03    11.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     41.935        55.552        .61878E-04   -1.4412    
  22  Prefactor     .10000E-03    23.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .73399        .33198        .37625E-03   -1.0257    
  24  Prefactor     .87694        .15433        .17154E-03   -.96952    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16089e-09
Minuit parameter uncertainties:
  1  0.000128263
  2  0.000262489
  3  0.000112015
  4  8.67425e-06
  5  23.5682
  6  61.9521
  7  5.18688e-06
  8  10.6795
  9  2.41768
  10  3.91625e-07
  11  54.1406
  12  0.000191928
  13  42.8191
  14  4.32724
  15  1.70749e-05
  16  7.65077
  17  15.5465
  18  37.92
  19  18.3281
  20  2.41079e-06
  21  55.6204
  22  3.60337e-05
  23  0.332897
  24  0.154403
Done.

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

Extracting fit parameters...

4FGL J2149.6+0323
   Spectrum: PowerLaw
296    Prefactor:  1.250e+00  7.651e+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:  8.769e-01  1.544e-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:  7.340e-01  3.329e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 327.424 3.396
Photon Flux Upper Limit: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/978190/likelihoodResults_409104001_409363201_4FGL_J2149.6+0323_daily_bin655.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): 0
logL (Free Index) = 4704.82778478
delta logL = 0.0152233807366

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4704.82738713
delta logL = 0.0156210304867

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1412       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4485       1.0000          .0000       10.000    
     3 'Normalizat'    .73180       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87699       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=   4704.827     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      251 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1412        11.821        .14869E-02   -.10005E-02
   2  Index         2.4487        2.0111        .11437E-01    .20666E-04
   3  Normalizat    .73180        .30393        .37674E-03   -.66389E-06
   4  Prefactor     .87699        .15185        .17152E-03    .53024E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.14123
  Index      = 2.44874
  Normalizat = 0.731796
  Prefactor  = 0.876991
 **********
 **   18 **HESSE 
 **********

 FCN=   4704.827     FROM HESSE     STATUS=OK            25 CALLS      276 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1412        7.1740        .59475E-04   -1.5494    
   2  Index         2.4487        1.5943        .45746E-03   -.53548    
   3  Normalizat    .73180        .30419        .15069E-04   -1.0265    
   4  Prefactor     .87699        .15190        .68609E-05   -.96950    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.40995e-09
Minuit parameter uncertainties:
  1  5.72342
  2  1.63326
  3  0.304894
  4  0.151971
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/978190': 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) = 4704.82738712
delta logL = 0.0156210458626

Extracting fit parameters...

4FGL J2149.6+0323
   Spectrum: PowerLaw
296    Prefactor:  1.141e+00  5.723e+00  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.449e+00  1.633e+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:  8.770e-01  1.520e-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:  7.318e-01  3.049e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/978190/cmap_HighResolution_409104001_409363201_4FGL_J2149.6+0323_daily_bin655.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.65e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-09-27 18:04:28.449410', job_id='978190', GAL2='0.88', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1632791068.45', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='1.56e-02', ts2='0.06', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='655' AND source_name='4FGL J2149.6+0323' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 18:04:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 978190: <4FGL_J2149.6+0323_daily_bin655> in cluster <slac> Done

Job <4FGL_J2149.6+0323_daily_bin655> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 17:50:12 2021
Job was executed on host(s) <bullet0299>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 17:51:00 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:51:00 2021
Terminated at Mon Sep 27 18:04:29 2021
Results reported at Mon Sep 27 18:04:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2149.6+0323_daily_bin655 327.424 3.3959 409104001 409363201 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 :                                   628.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             275.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            857 sec.

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

