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


Performing analysis on: 4FGL_J2149.7+1917_daily_bin1409
RA = 327.444, Dec = 19.2859
tmin = 604540801, tmax = 604800001
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='992739', job_status='RUN', time_executed='2021-09-27 18:42:51.390906', time_epoch_executed='1632793371.39' WHERE source_name='4FGL J2149.7+1917' and cadence='daily' and bin_id='1409'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/992739

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/992739/ft1_4FGL_J2149.7+1917_daily_bin1409.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/992739/ft2_4FGL_J2149.7+1917_daily_bin1409.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/992739/ft1_4FGL_J2149.7+1917_daily_bin1409.fits outfile=/scratch/kocevski/992739/ft1_filteredMKT_4FGL_J2149.7+1917_daily_bin1409.fits ra=327.444 dec=19.2859 rad=12.0 tmin=604540801.0 tmax=604800001.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.66
user 3.41
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/992739/ft1_filtered_4FGL_J2149.7+1917_daily_bin1409.fits" evtable="EVENTS" scfile=/scratch/kocevski/992739/ft2_4FGL_J2149.7+1917_daily_bin1409.fits sctable="SC_DATA" outfile=/scratch/kocevski/992739/ltcube_604540801_604800001_4FGL_J2149.7+1917_daily_bin1409.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/992739/ft2_4FGL_J2149.7+1917_daily_bin1409.fits
.....................!
real 14.13
user 13.77
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/992739/ft1_filtered_4FGL_J2149.7+1917_daily_bin1409.fits evtable="EVENTS" scfile=/scratch/kocevski/992739/ft2_4FGL_J2149.7+1917_daily_bin1409.fits sctable="SC_DATA" expcube=/scratch/kocevski/992739/ltcube_604540801_604800001_4FGL_J2149.7+1917_daily_bin1409.fits outfile=/scratch/kocevski/992739/expmap_604540801_604800001_4FGL_J2149.7+1917_daily_bin1409.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/992739/ltcube_604540801_604800001_4FGL_J2149.7+1917_daily_bin1409.fits
.....................!
real 192.01
user 185.82
sys 4.59

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/992739/ft1_filtered_4FGL_J2149.7+1917_daily_bin1409.fits scfile=/scratch/kocevski/992739/ft2_4FGL_J2149.7+1917_daily_bin1409.fits outfile=/scratch/kocevski/992739/cmap_604540801_604800001_4FGL_J2149.7+1917_daily_bin1409.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.54
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/992739/ft1_filtered_4FGL_J2149.7+1917_daily_bin1409.fits scfile=/scratch/kocevski/992739/ft2_4FGL_J2149.7+1917_daily_bin1409.fits outfile=/scratch/kocevski/992739/cmap_HighResolution_604540801_604800001_4FGL_J2149.7+1917_daily_bin1409.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.56
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/992739/ft1_filtered_4FGL_J2149.7+1917_daily_bin1409.fits evtable="EVENTS" scfile=/scratch/kocevski/992739/ft2_4FGL_J2149.7+1917_daily_bin1409.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/992739/Model_4FGL_J2149.7+1917_daily_bin1409.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/992739/ft1_filtered_4FGL_J2149.7+1917_daily_bin1409.fits.....................!
real 120.08
user 118.61
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/992739/ft1_filtered_4FGL_J2149.7+1917_daily_bin1409.fits', '/scratch/kocevski/992739/ft2_4FGL_J2149.7+1917_daily_bin1409.fits', expMap='/scratch/kocevski/992739/expmap_604540801_604800001_4FGL_J2149.7+1917_daily_bin1409.fits', expCube='/scratch/kocevski/992739/ltcube_604540801_604800001_4FGL_J2149.7+1917_daily_bin1409.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/992739/Model_4FGL_J2149.7+1917_daily_bin1409.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/992739/ft1_filtered_4FGL_J2149.7+1917_daily_bin1409.fits
Spacecraft file(s): /scratch/kocevski/992739/ft2_4FGL_J2149.7+1917_daily_bin1409.fits
Exposure map: /scratch/kocevski/992739/expmap_604540801_604800001_4FGL_J2149.7+1917_daily_bin1409.fits
Exposure cube: /scratch/kocevski/992739/ltcube_604540801_604800001_4FGL_J2149.7+1917_daily_bin1409.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/992739/Model_4FGL_J2149.7+1917_daily_bin1409.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) = 7433.50180753

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10290E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.617       1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.737       1.0000         .10000E-03   10000.    
     6 'norm      '    .10118E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.1913       1.0000         .10000E-03   10000.    
     9 'Prefactor '    66.655       1.0000         .10000E-03   10000.    
    10 'norm      '    2.4339       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .18110E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .10099E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    78.819       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.0907       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2004       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .88196       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=   7433.497     FROM MIGRAD    STATUS=CONVERGED    487 CALLS     2380 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.449        .53801E-06** at limit **
   2  Prefactor     .10000E-03    51.612        .24566E-06** at limit **
   3  Prefactor     .10000E-03    15.863       -.39135E-06** at limit **
   4  Prefactor     16.610        24.242       -.19443E-05   -.13950E-03
   5  Prefactor     20.731        39.022       -.34906E-05   -.10780E-03
   6  norm          .10000E-03    4.3681       -.30797E-07** at limit **
   7  Prefactor     .10000E-03    2.5588       -.15997E-06** at limit **
   8  Prefactor     4.1926        5.9533        .33065E-05   -.18551E-02
   9  Prefactor     66.661        68.419        .23800E-05    .92286E-04
  10  norm          2.4341        2.1584       -.14771E-06   -.20610E-03
  11  Prefactor     .10000E-03    30.753        .44670E-07** at limit **
  12  norm          .10000E-03    1.2521       -.19403E-07** at limit **
  13  Prefactor     .10000E-03    8.6191        .15709E-07** at limit **
  14  Prefactor     .10000E-03    12.597       -.12231E-06** at limit **
  15  norm          .10000E-03    .34243        .21438E-07** at limit **
  16  Prefactor     .10001E-03    5.9644        .18080E-06** at limit **
  17  norm          .10000E-03    5.5906        .10194E-06** at limit **
  18  Prefactor     .10000E-03    7.5300        .62802E-08** at limit **
  19  Prefactor     78.780        91.250       -.15480E-04   -.34276E-03
  20  Prefactor     1.0842        6.7295       -.65525E-07    .33480E-04
  21  Normalizat    1.2003        .23432        .59202E-06   -.25147E-04
  22  Prefactor     .88197        .99709E-01   -.10848E-06    .44037E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.6099
  Prefactor  = 20.7309
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.19256
  Prefactor  = 66.6609
  norm       = 2.4341
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100014
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 78.7804
  Prefactor  = 1.08423
  Normalizat = 1.2003
  Prefactor  = 0.881965
 **********
 **   18 **HESSE 
 **********

 FCN=   7433.497     FROM HESSE     STATUS=OK           338 CALLS     2718 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    51.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.610        24.331        .98251E-04   -1.4893    
   5  Prefactor     20.731        39.134        .87957E-04   -1.4797    
   6  norm          .10000E-03    4.4499        .17574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.5771        .13468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.1926        7.4872        .98426E-03   -1.5298    
   9  Prefactor     66.661        68.561        .49160E-04   -1.4073    
  10  norm          2.4341        2.1480        .11408E-03   -1.5396    
  11  Prefactor     .10000E-03    30.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.2914        .18832E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.6272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .47044        .97786E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    36.314        .40737E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.7888        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.5714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     78.780        97.440        .45235E-04   -1.3930    
  20  Prefactor     1.0842        38.156        .41714E-02   -1.5500    
  21  Normalizat    1.2003        .28556        .33886E-03   -.86593    
  22  Prefactor     .88197        .12132        .17047E-03   -.96774    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.77937e-09
Minuit parameter uncertainties:
  1  5.12752e-05
  2  2.73183e-05
  3  2.36368e-05
  4  24.3451
  5  39.1821
  6  7.61225e-07
  7  7.75503e-06
  8  7.48884
  9  68.6422
  10  2.14809
  11  2.03165e-07
  12  4.11269e-06
  13  3.87622e-06
  14  1.41297e-05
  15  3.70291e-06
  16  0.00145056
  17  5.00412e-06
  18  5.0053e-06
  19  97.6381
  20  12.8721
  21  0.285934
  22  0.121352
Done.

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

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  3.876e-06  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:  8.820e-01  1.214e-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:  1.200e+00  2.859e-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: 6.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/992739/likelihoodResults_604540801_604800001_4FGL_J2149.7+1917_daily_bin1409.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) = 7433.49705493
delta logL = -0.000552121141482

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7433.49650368
delta logL = -8.78877472132e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11231E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4975       1.0000          .0000       10.000    
     3 'Normalizat'    1.2001       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88201       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=   7433.497     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      259 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    52.282        .18142E-01** at limit **
   2  Index         1.7984        8.6620        .50000       -.52887E-07
   3  Normalizat    1.2003        .11697E-01    .33886E-03   -.70086E-04
   4  Prefactor     .88196        .51626E-02    .17047E-03   -.13706E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.79839
  Normalizat = 1.2003
  Prefactor  = 0.881965
 **********
 **   18 **HESSE 
 **********

 FCN=   7433.497     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      288 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    340.17        .30388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7984        7.9953        .50000       -.69492    
   3  Normalizat    1.2003        .30678E-01    .13554E-04   -.86593    
   4  Prefactor     .88196        .13540E-01    .34094E-04   -.96774    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.77196e-10
Minuit parameter uncertainties:
  1  0.000333952
  2  960.289
  3  0.0306783
  4  0.0135405
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/992739': 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) = 7433.49650084
delta logL = 1.96421751752e-06

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  3.340e-04  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  1.798e+00  9.603e+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:  8.820e-01  1.354e-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:  1.200e+00  3.068e-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/992739/cmap_HighResolution_604540801_604800001_4FGL_J2149.7+1917_daily_bin1409.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.26e-03', job_status='DONE', photon_flux_upper_limit='6.75e-08', time_completed='2021-09-27 18:55:45.636599', job_id='992739', GAL2='0.88', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1632794145.64', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='1.96e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1409' AND source_name='4FGL J2149.7+1917' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 18:55:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 992739: <4FGL_J2149.7+1917_daily_bin1409> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2149.7+1917_daily_bin1409 327.444 19.2859 604540801 604800001 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 :                                   764.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   785 sec.
    Turnaround time :                            921 sec.

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

