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


Performing analysis on: 4FGL_J2149.6+0323_daily_bin732
RA = 327.424, Dec = 3.3959
tmin = 429062401, tmax = 429321601
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='980753', job_status='RUN', time_executed='2021-09-27 18:04:11.853483', time_epoch_executed='1632791051.85' WHERE source_name='4FGL J2149.6+0323' and cadence='daily' and bin_id='732'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/980753

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/980753/ft1_4FGL_J2149.6+0323_daily_bin732.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/980753/ft2_4FGL_J2149.6+0323_daily_bin732.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/980753/ft1_4FGL_J2149.6+0323_daily_bin732.fits outfile=/scratch/kocevski/980753/ft1_filteredMKT_4FGL_J2149.6+0323_daily_bin732.fits ra=327.424 dec=3.3959 rad=12.0 tmin=429062401.0 tmax=429321601.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.27
user 4.99
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/980753/ft1_filtered_4FGL_J2149.6+0323_daily_bin732.fits" evtable="EVENTS" scfile=/scratch/kocevski/980753/ft2_4FGL_J2149.6+0323_daily_bin732.fits sctable="SC_DATA" outfile=/scratch/kocevski/980753/ltcube_429062401_429321601_4FGL_J2149.6+0323_daily_bin732.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/980753/ft2_4FGL_J2149.6+0323_daily_bin732.fits
.....................!
real 12.83
user 12.19
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/980753/ft1_filtered_4FGL_J2149.6+0323_daily_bin732.fits evtable="EVENTS" scfile=/scratch/kocevski/980753/ft2_4FGL_J2149.6+0323_daily_bin732.fits sctable="SC_DATA" expcube=/scratch/kocevski/980753/ltcube_429062401_429321601_4FGL_J2149.6+0323_daily_bin732.fits outfile=/scratch/kocevski/980753/expmap_429062401_429321601_4FGL_J2149.6+0323_daily_bin732.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/980753/ltcube_429062401_429321601_4FGL_J2149.6+0323_daily_bin732.fits
.....................!
real 156.17
user 151.14
sys 4.67

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/980753/ft1_filtered_4FGL_J2149.6+0323_daily_bin732.fits scfile=/scratch/kocevski/980753/ft2_4FGL_J2149.6+0323_daily_bin732.fits outfile=/scratch/kocevski/980753/cmap_429062401_429321601_4FGL_J2149.6+0323_daily_bin732.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.47
user 0.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/980753/ft1_filtered_4FGL_J2149.6+0323_daily_bin732.fits scfile=/scratch/kocevski/980753/ft2_4FGL_J2149.6+0323_daily_bin732.fits outfile=/scratch/kocevski/980753/cmap_HighResolution_429062401_429321601_4FGL_J2149.6+0323_daily_bin732.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.48
user 0.31
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    2.9733       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10368E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    40.249       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.0969       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.9157       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    51.485       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10378E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    43.470       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.0921       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .84215       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .76385       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=   3115.874     FROM MIGRAD    STATUS=CONVERGED    535 CALLS     2666 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    156.19        .50392E-05** at limit **
   2  Prefactor     2.9377        146.19       -.21516E-07   -.57538E-05
   3  Prefactor     .10000E-03    24.755        .27275E-05** at limit **
   4  Prefactor     40.201        93.092        .35407E-05    .27810E-05
   5  Prefactor     .10000E-03    36.853        .12890E-05** at limit **
   6  Prefactor     7.0978        77.647       -.20175E-05    .39946E-05
   7  Prefactor     .10000E-03    2.8490       -.37048E-07** at limit **
   8  Prefactor     8.9162        16.495        .13547E-06    .21480E-05
   9  Prefactor     .10000E-03    2.1451       -.25577E-07** at limit **
  10  Prefactor     51.480        58.703        .40982E-07    .18843E-04
  11  Prefactor     .10000E-03    122.74       -.45947E-05** at limit **
  12  Prefactor     .10000E-03    41.939       -.20823E-06** at limit **
  13  Prefactor     .10000E-03    32.942       -.13769E-06** at limit **
  14  norm          .10000E-03    1.5861       -.37625E-06** at limit **
  15  norm          .10000E-03    17.029       -.66819E-06** at limit **
  16  Prefactor     .10000E-03    25.825       -.22843E-05** at limit **
  17  Prefactor     .10000E-03    18.807       -.63491E-06** at limit **
  18  Prefactor     .10000E-03    23.465       -.86435E-06** at limit **
  19  Prefactor     .10000E-03    10.852       -.46587E-06** at limit **
  20  Prefactor     .10000E-03    12.216       -.52594E-06** at limit **
  21  Prefactor     43.471        49.531       -.15317E-06    .82943E-05
  22  Prefactor     1.0962        18.133        .18835E-05    .22501E-05
  23  Normalizat    .84201        .29013        .12549E-05    .21246E-04
  24  Prefactor     .76381        .13922        .61419E-07    .88909E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.93774
  Prefactor  = 0.0001
  Prefactor  = 40.201
  Prefactor  = 0.0001
  Prefactor  = 7.09779
  Prefactor  = 0.0001
  Prefactor  = 8.91623
  Prefactor  = 0.0001
  Prefactor  = 51.4797
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.4711
  Prefactor  = 1.09619
  Normalizat = 0.842009
  Prefactor  = 0.763808
 **********
 **   18 **HESSE 
 **********

 FCN=   3115.874     FROM HESSE     STATUS=OK           389 CALLS     3055 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    155.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.9377        147.90        .23547E-03   -1.5365    
   3  Prefactor     .10000E-03    24.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     40.201        92.904        .63182E-04   -1.4439    
   5  Prefactor     .10000E-03    36.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.0978        76.641        .15058E-03   -1.5175    
   7  Prefactor     .10000E-03    2.8530        .92013E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.9162        16.494        .67117E-03   -1.5111    
   9  Prefactor     .10000E-03    2.1597        .79227E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     51.480        58.919        .55894E-04   -1.4272    
  11  Prefactor     .10000E-03    124.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    41.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    32.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.6064        .68762E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    17.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    26.779        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    23.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.873        .17968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     43.471        49.575        .60805E-04   -1.4388    
  22  Prefactor     1.0962        18.156        .22662E-02   -1.5499    
  23  Normalizat    .84201        .34339        .31168E-03   -.98529    
  24  Prefactor     .76381        .16697        .16327E-03   -1.0108    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73477e-11
Minuit parameter uncertainties:
  1  0.000275185
  2  41.7984
  3  5.79677e-05
  4  93.2415
  5  6.82089e-05
  6  46.7231
  7  1.68922e-06
  8  16.5021
  9  4.75194e-07
  10  58.9854
  11  0.000151672
  12  9.44628e-06
  13  2.79932e-06
  14  9.30203e-07
  15  1.20715e-05
  16  4.68491e-06
  17  1.32142e-06
  18  1.09981e-05
  19  3.62197e-06
  20  3.79487e-06
  21  49.6218
  22  8.92523
  23  0.344282
  24  0.167076
Done.

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

Extracting fit parameters...

4FGL J2149.6+0323
   Spectrum: PowerLaw
296    Prefactor:  1.000e-04  4.685e-06  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:  7.638e-01  1.671e-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:  8.420e-01  3.443e-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.37e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.04e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/980753/likelihoodResults_429062401_429321601_4FGL_J2149.6+0323_daily_bin732.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) = 3115.8742677
delta logL = -0.000178164144018

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3115.51407537
delta logL = 0.360014172089

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1157       1.0000         .10000E-03   10000.    
     2 'Index     '    1.1727       1.0000          .0000       10.000    
     3 'Normalizat'    .85147       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75355       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=   3115.514     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      297 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1129        13.155        .14074E-03   -.75651E-04
   2  Index         1.1728        .66566        .99346E-02    .10863E-04
   3  Normalizat    .85152        .32441        .30990E-03    .11007E-03
   4  Prefactor     .75351        .16413        .16414E-03    .16009E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.11287
  Index      = 1.17282
  Normalizat = 0.851521
  Prefactor  = 0.753509
 **********
 **   18 **HESSE 
 **********

 FCN=   3115.514     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1129        13.374        .56294E-05   -1.5138    
   2  Index         1.1728        .67666        .39739E-03   -.87172    
   3  Normalizat    .85152        .32466        .12396E-04   -.98185    
   4  Prefactor     .75351        .16426        .32828E-04   -1.0147    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.54052e-11
Minuit parameter uncertainties:
  1  13.3785
  2  0.68175
  3  0.325402
  4  0.164366
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/980753': 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) = 3115.51407528
delta logL = 0.360014261168

Extracting fit parameters...

4FGL J2149.6+0323
   Spectrum: PowerLaw
296    Prefactor:  8.113e+00  1.338e+01  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  1.173e+00  6.817e-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:  7.535e-01  1.644e-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:  8.515e-01  3.254e-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/980753/cmap_HighResolution_429062401_429321601_4FGL_J2149.6+0323_daily_bin732.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', job_status='DONE', photon_flux_upper_limit='1.37e-07', time_completed='2021-09-27 18:13:48.408781', job_id='980753', GAL2='0.75', fit_tolerance='1e-08', EG2='0.85', EG='0.84', time_epoch_completed='1632791628.41', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='3.60e-01', ts2='0.73', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='732' AND source_name='4FGL J2149.6+0323' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 18:13:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 980753: <4FGL_J2149.6+0323_daily_bin732> in cluster <slac> Done

Job <4FGL_J2149.6+0323_daily_bin732> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep 27 18:00:14 2021
Job was executed on host(s) <bullet0086>, 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:13:48 2021
Results reported at Mon Sep 27 18:13:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2149.6+0323_daily_bin732 327.424 3.3959 429062401 429321601 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 :                                   420.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             229.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            814 sec.

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

