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


Performing analysis on: 4FGL_J2149.7+1917_daily_bin1647
RA = 327.444, Dec = 19.2859
tmin = 666230401, tmax = 666489601
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='833547', job_status='RUN', time_executed='2022-02-14 00:35:58.870478', time_epoch_executed='1644827758.87' WHERE source_name='4FGL J2149.7+1917' and cadence='daily' and bin_id='1647'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/833547

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/833547/ft1_4FGL_J2149.7+1917_daily_bin1647.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/833547/ft2_4FGL_J2149.7+1917_daily_bin1647.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/833547/ft1_4FGL_J2149.7+1917_daily_bin1647.fits outfile=/scratch/kocevski/833547/ft1_filteredMKT_4FGL_J2149.7+1917_daily_bin1647.fits ra=327.444 dec=19.2859 rad=12.0 tmin=666230401.0 tmax=666489601.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 4.28
user 4.02
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/833547/ft2_4FGL_J2149.7+1917_daily_bin1647.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/833547/ft1_filteredMKT_4FGL_J2149.7+1917_daily_bin1647.fits evtable="EVENTS" outfile="/scratch/kocevski/833547/ft1_filtered_4FGL_J2149.7+1917_daily_bin1647.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.75
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/833547/ft1_filtered_4FGL_J2149.7+1917_daily_bin1647.fits" evtable="EVENTS" scfile=/scratch/kocevski/833547/ft2_4FGL_J2149.7+1917_daily_bin1647.fits sctable="SC_DATA" outfile=/scratch/kocevski/833547/ltcube_666230401_666489601_4FGL_J2149.7+1917_daily_bin1647.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/833547/ft2_4FGL_J2149.7+1917_daily_bin1647.fits
.....................!
real 12.65
user 11.72
sys 0.81

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/833547/ft1_filtered_4FGL_J2149.7+1917_daily_bin1647.fits evtable="EVENTS" scfile=/scratch/kocevski/833547/ft2_4FGL_J2149.7+1917_daily_bin1647.fits sctable="SC_DATA" expcube=/scratch/kocevski/833547/ltcube_666230401_666489601_4FGL_J2149.7+1917_daily_bin1647.fits outfile=/scratch/kocevski/833547/expmap_666230401_666489601_4FGL_J2149.7+1917_daily_bin1647.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/833547/ltcube_666230401_666489601_4FGL_J2149.7+1917_daily_bin1647.fits
.....................!
real 191.39
user 185.25
sys 5.77

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/833547/ft1_filtered_4FGL_J2149.7+1917_daily_bin1647.fits scfile=/scratch/kocevski/833547/ft2_4FGL_J2149.7+1917_daily_bin1647.fits outfile=/scratch/kocevski/833547/cmap_666230401_666489601_4FGL_J2149.7+1917_daily_bin1647.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/833547/ft1_filtered_4FGL_J2149.7+1917_daily_bin1647.fits scfile=/scratch/kocevski/833547/ft2_4FGL_J2149.7+1917_daily_bin1647.fits outfile=/scratch/kocevski/833547/cmap_HighResolution_666230401_666489601_4FGL_J2149.7+1917_daily_bin1647.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/833547/ft1_filtered_4FGL_J2149.7+1917_daily_bin1647.fits evtable="EVENTS" scfile=/scratch/kocevski/833547/ft2_4FGL_J2149.7+1917_daily_bin1647.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/833547/Model_4FGL_J2149.7+1917_daily_bin1647.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/833547/ft1_filtered_4FGL_J2149.7+1917_daily_bin1647.fits.....................!
real 149.99
user 148.42
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.6962       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.1814       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.834       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.1751       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.8659       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.4861       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.895       1.0000         .10000E-03   10000.    
    17 'norm      '    4.0740       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    40.125       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .96912       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .91398       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9649.286     FROM MIGRAD    STATUS=CONVERGED     79 CALLS     1955 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10008E-03    23.800       -.40372E-04** at limit **
   2  Prefactor     4.6929        1.3190       -.30772E-05    .88268E-03
   3  Prefactor     9.1794        1.0113        .26254E-06   -.19890E-04
   4  Prefactor     21.833        1.0041       -.14961E-06    .14912E-03
   5  Prefactor     .10243E-03    26.464       -.52798E-04** at limit **
   6  norm          .10000E-03    1.3609        .18610E-06** at limit **
   7  Prefactor     .10000E-03    6.9450       -.10011E-05** at limit **
   8  Prefactor     .10000E-03    5.0994       -.63561E-06** at limit **
   9  Prefactor     .10003E-03    15.090       -.16458E-04** at limit **
  10  norm          3.1745        2.2756        .37279E-06   -.33882E-03
  11  Prefactor     .10124E-03    14.242        .23181E-04** at limit **
  12  norm          4.8660        2.8582        .25544E-06    .17134E-03
  13  Prefactor     6.4856        1.0112       -.36478E-06    .94389E-04
  14  Prefactor     .10048E-03    13.213        .10411E-05** at limit **
  15  norm          .10000E-03    .26867        .81223E-07** at limit **
  16  Prefactor     12.894        1.0028       -.72123E-07   -.34328E-05
  17  norm          4.0739        4.6920        .70121E-05    .22931E-03
  18  Prefactor     .10000E-03    9.2953        .25204E-05** at limit **
  19  Prefactor     .10045E-03    24.827        .59638E-04** at limit **
  20  Prefactor     40.125        1.0095        .21114E-07   -.25348E-04
  21  Normalizat    .96913        .24552       -.31127E-05    .13927E-04
  22  Prefactor     .91398        .10362        .10278E-05    .36236E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100083
  Prefactor  = 4.69291
  Prefactor  = 9.17945
  Prefactor  = 21.8334
  Prefactor  = 0.000102433
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100026
  norm       = 3.17455
  Prefactor  = 0.000101236
  norm       = 4.86596
  Prefactor  = 6.48558
  Prefactor  = 0.000100478
  norm       = 0.0001
  Prefactor  = 12.8938
  norm       = 4.07389
  Prefactor  = 0.0001
  Prefactor  = 0.000100445
  Prefactor  = 40.1254
  Normalizat = 0.969134
  Prefactor  = 0.913982
 **********
 **   18 **HESSE 
 **********

 FCN=   9649.286     FROM HESSE     STATUS=OK           386 CALLS     2341 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10008E-03    24.528        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.6929        205.98        .46424E-02   -1.5275    
   3  Prefactor     9.1794        14.453        .33067E-02   -1.5102    
   4  Prefactor     21.833        25.070        .21430E-02   -1.4773    
   5  Prefactor     .10243E-03    62.584        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.3488        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.7162        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.0326        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10003E-03    56.270        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.1745        2.3912        .56858E-02   -1.5352    
  11  Prefactor     .10124E-03    49.505        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.8660        2.8703        .45589E-02   -1.5267    
  13  Prefactor     6.4856        28.490        .39396E-02   -1.5199    
  14  Prefactor     .10048E-03    53.002        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .26306        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.894        15.887        .27887E-02   -1.4990    
  17  norm          4.0739        4.7293        .49938E-02   -1.5304    
  18  Prefactor     .10000E-03    9.2132        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10045E-03    29.897        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     40.125        15.808        .15820E-02   -1.4440    
  21  Normalizat    .96913        .21914        .86425E-01   -.94072    
  22  Prefactor     .91398        .88542E-01    .45183E-01   -.95654    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61902e-07
Minuit parameter uncertainties:
  1  0.00284752
  2  62.4109
  3  14.459
  4  25.0818
  5  0.0247076
  6  1.91191e-05
  7  2.81662e-05
  8  3.58647e-05
  9  0.00243728
  10  2.39123
  11  0.0156592
  12  2.8704
  13  27.2079
  14  0.0100754
  15  2.77446e-07
  16  15.8927
  17  4.7297
  18  2.78879e-05
  19  0.00730047
  20  15.8092
  21  0.219343
  22  0.0885554
Done.

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

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  6.486e+00  2.721e+01  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:  9.140e-01  8.856e-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:  9.691e-01  2.193e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.07
Ra Dec: 327.444 19.286
Photon Flux Upper Limit: 1.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/833547/likelihoodResults_666230401_666489601_4FGL_J2149.7+1917_daily_bin1647.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) = 9645.92685189
delta logL = 3.35877650459

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9645.78766085
delta logL = 3.49796753944

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10851       1.0000         .10000E-03   10000.    
     2 'Index     '    6.2277       1.0000          .0000       10.000    
     3 'Normalizat'    .73457       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98031       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.

 FCN=   9645.788     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      294 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10753        .54335        .30081E-02    .33218E-02
   2  Index         6.2324        1.9397        .92713E-01    .26428E-03
   3  Normalizat    .73426        .64999E-01    .97896E-01    .51302E-04
   4  Prefactor     .98043        .27764E-01    .46020E-01   -.28240E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.107529
  Index      = 6.23239
  Normalizat = 0.734261
  Prefactor  = 0.980428
 **********
 **   18 **HESSE 
 **********

 FCN=   9645.788     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      327 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10753        .99574        .13530E-04   -1.5642    
   2  Index         6.2324        2.8073        .37778E-02    .24905    
   3  Normalizat    .73426        .22439        .43378E-03   -1.0256    
   4  Prefactor     .98043        .94135E-01    .16264E-03   -.93385    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.68859e-10
Minuit parameter uncertainties:
  1  0.654144
  2  2.99424
  3  0.224668
  4  0.0941505
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/833547': 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) = 9645.7876559
delta logL = 3.49797248694

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  1.075e-01  6.541e-01  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  6.232e+00  2.994e+00  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:  9.804e-01  9.415e-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:  7.343e-01  2.247e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.20
Ra Dec: 327.444 19.286
Photon Index (Free Index): 6.23 +/- 2.99
Photon Flux (Free Index): 1.82e-07 +/- 7.98e-08
Energy Flux (Free Index): 2.25e-05 +/- 1.07e-05

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/833547/cmap_HighResolution_666230401_666489601_4FGL_J2149.7+1917_daily_bin1647.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.80e-03', comment='SUCCESS', energy_flux2='2.25e-05', dlogl='3.50e+00', photon_flux2='1.82e-07', job_status='DONE', time_completed='2022-02-14 00:49:39.052258', photon_index_error2='2.99', photon_index2='6.23', ts='0.07', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.13e-07', energy_flux_error2='1.07e-05', EG='0.97', time_epoch_completed='1644828579.05', return_code='0', job_id='833547', GAL2='0.98', EG2='0.73', return_code2='102', photon_flux_error2='7.98e-08', ts2='8.20', photon_index='2.52' WHERE bin_id='1647' AND source_name='4FGL J2149.7+1917' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb 14 00:49:39 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 833547: <4FGL_J2149.7+1917_daily_bin1647> in cluster <slac> Done

Job <4FGL_J2149.7+1917_daily_bin1647> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Feb 14 00:35:41 2022
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb 14 00:35:43 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb 14 00:35:43 2022
Terminated at Mon Feb 14 00:49:39 2022
Results reported at Mon Feb 14 00:49:39 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2149.7+1917_daily_bin1647 327.444 19.2859 666230401 666489601 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 :                                   822.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             384.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            838 sec.

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

