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


Performing analysis on: 4FGL_J2149.7+1917_daily_bin1343
RA = 327.444, Dec = 19.2859
tmin = 587433601, tmax = 587692801
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='992643', job_status='RUN', time_executed='2021-09-27 18:41:58.810426', time_epoch_executed='1632793318.81' WHERE source_name='4FGL J2149.7+1917' and cadence='daily' and bin_id='1343'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/992643

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/992643/ft1_4FGL_J2149.7+1917_daily_bin1343.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/992643/ft2_4FGL_J2149.7+1917_daily_bin1343.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/992643/ft1_4FGL_J2149.7+1917_daily_bin1343.fits outfile=/scratch/kocevski/992643/ft1_filteredMKT_4FGL_J2149.7+1917_daily_bin1343.fits ra=327.444 dec=19.2859 rad=12.0 tmin=587433601.0 tmax=587692801.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.54
user 3.33
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/992643/ft2_4FGL_J2149.7+1917_daily_bin1343.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/992643/ft2_4FGL_J2149.7+1917_daily_bin1343.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/992643/ft1_filteredMKT_4FGL_J2149.7+1917_daily_bin1343.fits evtable="EVENTS" outfile="/scratch/kocevski/992643/ft1_filtered_4FGL_J2149.7+1917_daily_bin1343.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/992643/ft1_filtered_4FGL_J2149.7+1917_daily_bin1343.fits" evtable="EVENTS" scfile=/scratch/kocevski/992643/ft2_4FGL_J2149.7+1917_daily_bin1343.fits sctable="SC_DATA" outfile=/scratch/kocevski/992643/ltcube_587433601_587692801_4FGL_J2149.7+1917_daily_bin1343.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/992643/ft2_4FGL_J2149.7+1917_daily_bin1343.fits
.....................!
real 16.35
user 15.93
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/992643/ft1_filtered_4FGL_J2149.7+1917_daily_bin1343.fits evtable="EVENTS" scfile=/scratch/kocevski/992643/ft2_4FGL_J2149.7+1917_daily_bin1343.fits sctable="SC_DATA" expcube=/scratch/kocevski/992643/ltcube_587433601_587692801_4FGL_J2149.7+1917_daily_bin1343.fits outfile=/scratch/kocevski/992643/expmap_587433601_587692801_4FGL_J2149.7+1917_daily_bin1343.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/992643/ltcube_587433601_587692801_4FGL_J2149.7+1917_daily_bin1343.fits
.....................!
real 191.27
user 186.34
sys 4.52

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
Extended source Cygnus Loop in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CygnusLoop.fits is the correct path to the extended template.
Added 161 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2149.7+1917 @ 327.444 19.2859

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/992643/ft1_filtered_4FGL_J2149.7+1917_daily_bin1343.fits scfile=/scratch/kocevski/992643/ft2_4FGL_J2149.7+1917_daily_bin1343.fits outfile=/scratch/kocevski/992643/cmap_587433601_587692801_4FGL_J2149.7+1917_daily_bin1343.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.444 yref=19.2859 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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/992643/ft1_filtered_4FGL_J2149.7+1917_daily_bin1343.fits scfile=/scratch/kocevski/992643/ft2_4FGL_J2149.7+1917_daily_bin1343.fits outfile=/scratch/kocevski/992643/cmap_HighResolution_587433601_587692801_4FGL_J2149.7+1917_daily_bin1343.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.444 yref=19.2859 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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/992643/ft1_filtered_4FGL_J2149.7+1917_daily_bin1343.fits evtable="EVENTS" scfile=/scratch/kocevski/992643/ft2_4FGL_J2149.7+1917_daily_bin1343.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/992643/Model_4FGL_J2149.7+1917_daily_bin1343.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 Cygnus Loop
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/992643/ft1_filtered_4FGL_J2149.7+1917_daily_bin1343.fits.....................!
real 130.61
user 129.15
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/992643/ft1_filtered_4FGL_J2149.7+1917_daily_bin1343.fits', '/scratch/kocevski/992643/ft2_4FGL_J2149.7+1917_daily_bin1343.fits', expMap='/scratch/kocevski/992643/expmap_587433601_587692801_4FGL_J2149.7+1917_daily_bin1343.fits', expCube='/scratch/kocevski/992643/ltcube_587433601_587692801_4FGL_J2149.7+1917_daily_bin1343.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/992643/Model_4FGL_J2149.7+1917_daily_bin1343.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2149.7+1917'

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  7.294e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.521e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
279        Scale:  8.988e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/992643/ft1_filtered_4FGL_J2149.7+1917_daily_bin1343.fits
Spacecraft file(s): /scratch/kocevski/992643/ft2_4FGL_J2149.7+1917_daily_bin1343.fits
Exposure map: /scratch/kocevski/992643/expmap_587433601_587692801_4FGL_J2149.7+1917_daily_bin1343.fits
Exposure cube: /scratch/kocevski/992643/ltcube_587433601_587692801_4FGL_J2149.7+1917_daily_bin1343.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/992643/Model_4FGL_J2149.7+1917_daily_bin1343.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) = 8120.77369614

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.751       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10524E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    43.620       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.2938       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.7777       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.107       1.0000         .10000E-03   10000.    
    10 'norm      '    1.0077       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .79179       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    107.80       1.0000         .10000E-03   10000.    
    15 'norm      '    .86595       1.0000         .10000E-03   10000.    
    16 'Prefactor '    36.984       1.0000         .10000E-03   10000.    
    17 'norm      '    7.9061       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.290       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .60549       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1109       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8120.760     FROM MIGRAD    STATUS=CONVERGED    497 CALLS     2399 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.758        27.608       -.84210E-05   -.74966E-04
   2  Prefactor     .10000E-03    56.563        .49002E-04** at limit **
   3  Prefactor     .10000E-03    29.496        .12818E-04** at limit **
   4  Prefactor     .10000E-03    14.388       -.99642E-06** at limit **
   5  Prefactor     43.555        43.054        .12998E-04   -.71174E-04
   6  norm          .10000E-03    1.3020        .13831E-06** at limit **
   7  Prefactor     8.2949        6.6911        .22740E-05   -.16634E-03
   8  Prefactor     3.7784        6.9148       -.45945E-05   -.37684E-03
   9  Prefactor     12.262        137.98        .26183E-03    .33734E-04
  10  norm          1.0080        2.0039       -.23406E-05   -.23155E-02
  11  Prefactor     .10000E-03    18.287        .43448E-05** at limit **
  12  norm          .79194        1.4939       -.31377E-06   -.17537E-02
  13  Prefactor     .10000E-03    21.554       -.10056E-04** at limit **
  14  Prefactor     107.79        74.531       -.87704E-05    .20273E-04
  15  norm          .86602        .85330        .13822E-06   -.40703E-03
  16  Prefactor     36.976        18.366        .24564E-05    .65567E-04
  17  norm          7.9075        4.6422        .98166E-07   -.29600E-04
  18  Prefactor     .10000E-03    3.9327       -.76776E-07** at limit **
  19  Prefactor     .10000E-03    49.684       -.54434E-04** at limit **
  20  Prefactor     10.291        9.7894       -.76823E-07   -.12313E-04
  21  Normalizat    .60555        .26328        .31785E-05   -.82212E-04
  22  Prefactor     1.1109        .11236       -.22360E-05    .33698E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.758
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 43.5547
  norm       = 0.0001
  Prefactor  = 8.29495
  Prefactor  = 3.77842
  Prefactor  = 12.262
  norm       = 1.00799
  Prefactor  = 0.0001
  norm       = 0.791944
  Prefactor  = 0.000100001
  Prefactor  = 107.789
  norm       = 0.86602
  Prefactor  = 36.9759
  norm       = 7.90751
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2911
  Normalizat = 0.605555
  Prefactor  = 1.11092
 **********
 **   18 **HESSE 
 **********

 FCN=   8120.760     FROM HESSE     STATUS=OK           344 CALLS     2743 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.758        27.619        .80518E-04   -1.4712    
   2  Prefactor     .10000E-03    56.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    30.737        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     43.555        42.959        .60701E-04   -1.4387    
   6  norm          .10000E-03    1.3105        .10040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.2949        6.6583        .13921E-03   -1.5132    
   8  Prefactor     3.7784        6.8636        .20770E-03   -1.5319    
   9  Prefactor     12.262        137.37        .11513E-03   -1.5007    
  10  norm          1.0080        1.9665        .16890E-03   -1.5507    
  11  Prefactor     .10000E-03    18.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .79194        1.2228        .14621E-02   -1.5530    
  13  Prefactor     .10000E-03    21.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     107.79        74.328        .38735E-04   -1.3628    
  15  norm          .86602        .81611        .78988E-03   -1.5522    
  16  Prefactor     36.976        18.340        .65902E-04   -1.4491    
  17  norm          7.9075        4.6382        .14260E-03   -1.5145    
  18  Prefactor     .10000E-03    3.9428        .17453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    49.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.291        9.7800        .12491E-03   -1.5066    
  21  Normalizat    .60555        .27960        .46671E-03   -1.0775    
  22  Prefactor     1.1109        .12294        .16163E-03   -.89118    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.36438e-09
Minuit parameter uncertainties:
  1  27.6332
  2  8.26896e-05
  3  0.000574528
  4  4.63036e-05
  5  42.9897
  6  2.17834e-06
  7  6.65889
  8  6.86505
  9  82.3237
  10  1.96666
  11  3.53481e-06
  12  1.22286
  13  0.000313091
  14  74.3925
  15  0.816118
  16  18.3429
  17  4.63836
  18  1.36967e-06
  19  2.94478e-06
  20  9.78155
  21  0.280252
  22  0.122969
Done.

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

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  3.131e-04  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.521e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
279        Scale:  8.988e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  1.111e+00  1.230e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  6.056e-01  2.803e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 327.444 19.286
Photon Flux Upper Limit: 9.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/992643/likelihoodResults_587433601_587692801_4FGL_J2149.7+1917_daily_bin1343.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) = 8120.76052322
delta logL = -0.000220219493713

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8120.76030345
delta logL = -4.42729287897e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10369E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8270       1.0000          .0000       10.000    
     3 'Normalizat'    .60555       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1109       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+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=   8120.760     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      275 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10071E-03    109.26        .18142E-02** at limit **
   2  Index         2.7864        8.5077        .50000        .87368E-05
   3  Normalizat    .60556        .13340E-01    .46671E-03   -.32910E-04
   4  Prefactor     1.1109        .61571E-02    .16163E-03   -.36576E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100705
  Index      = 2.78644
  Normalizat = 0.605559
  Prefactor  = 1.11092
 **********
 **   18 **HESSE 
 **********

 FCN=   8120.760     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      304 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10071E-03    485.48        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7864        5.5712        .50000       -.45862    
   3  Normalizat    .60556        .28907E-01    .18668E-04   -1.0775    
   4  Prefactor     1.1109        .13342E-01    .64652E-05   -.89118    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.17537e-09
Minuit parameter uncertainties:
  1  0.0373172
  2  515.781
  3  0.0289073
  4  0.0133423
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/992643': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8120.76030328
delta logL = -2.78259904007e-07

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  1.007e-04  3.732e-02  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.786e+00  5.158e+02  0.000e+00  1.000e+01 (-1.000e+00)
279        Scale:  8.988e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  1.111e+00  1.334e-02  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  6.056e-01  2.891e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 327.444 19.286

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/992643/cmap_HighResolution_587433601_587692801_4FGL_J2149.7+1917_daily_bin1343.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.13e-03', job_status='DONE', photon_flux_upper_limit='9.16e-08', time_completed='2021-09-27 18:55:27.742470', job_id='992643', GAL2='1.11', fit_tolerance='1e-08', EG2='0.61', EG='0.61', time_epoch_completed='1632794127.74', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='-2.78e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1343' AND source_name='4FGL J2149.7+1917' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 18:55:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 992643: <4FGL_J2149.7+1917_daily_bin1343> in cluster <slac> Done

Job <4FGL_J2149.7+1917_daily_bin1343> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep 27 18:40:19 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 18:41:49 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:41:49 2021
Terminated at Mon Sep 27 18:55:28 2021
Results reported at Mon Sep 27 18:55:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2149.7+1917_daily_bin1343 327.444 19.2859 587433601 587692801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2149.7+1917 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   799.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             328.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            909 sec.

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

