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


Performing analysis on: 4FGL_J2149.7+1917_daily_bin1606
RA = 327.444, Dec = 19.2859
tmin = 655603201, tmax = 655862401
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='477581', job_status='RUN', time_executed='2021-12-08 08:09:55.917774', time_epoch_executed='1638979795.92' WHERE source_name='4FGL J2149.7+1917' and cadence='daily' and bin_id='1606'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/477581

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/477581/ft1_4FGL_J2149.7+1917_daily_bin1606.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/477581/ft2_4FGL_J2149.7+1917_daily_bin1606.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/477581/ft1_4FGL_J2149.7+1917_daily_bin1606.fits outfile=/scratch/kocevski/477581/ft1_filteredMKT_4FGL_J2149.7+1917_daily_bin1606.fits ra=327.444 dec=19.2859 rad=12.0 tmin=655603201.0 tmax=655862401.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.33
user 4.08
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/477581/ft1_filtered_4FGL_J2149.7+1917_daily_bin1606.fits" evtable="EVENTS" scfile=/scratch/kocevski/477581/ft2_4FGL_J2149.7+1917_daily_bin1606.fits sctable="SC_DATA" outfile=/scratch/kocevski/477581/ltcube_655603201_655862401_4FGL_J2149.7+1917_daily_bin1606.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/477581/ft2_4FGL_J2149.7+1917_daily_bin1606.fits
.....................!
real 13.75
user 13.37
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/477581/ft1_filtered_4FGL_J2149.7+1917_daily_bin1606.fits evtable="EVENTS" scfile=/scratch/kocevski/477581/ft2_4FGL_J2149.7+1917_daily_bin1606.fits sctable="SC_DATA" expcube=/scratch/kocevski/477581/ltcube_655603201_655862401_4FGL_J2149.7+1917_daily_bin1606.fits outfile=/scratch/kocevski/477581/expmap_655603201_655862401_4FGL_J2149.7+1917_daily_bin1606.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/477581/ltcube_655603201_655862401_4FGL_J2149.7+1917_daily_bin1606.fits
.....................!
real 191.55
user 186.84
sys 4.32

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/477581/ft1_filtered_4FGL_J2149.7+1917_daily_bin1606.fits scfile=/scratch/kocevski/477581/ft2_4FGL_J2149.7+1917_daily_bin1606.fits outfile=/scratch/kocevski/477581/cmap_655603201_655862401_4FGL_J2149.7+1917_daily_bin1606.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/477581/ft1_filtered_4FGL_J2149.7+1917_daily_bin1606.fits scfile=/scratch/kocevski/477581/ft2_4FGL_J2149.7+1917_daily_bin1606.fits outfile=/scratch/kocevski/477581/cmap_HighResolution_655603201_655862401_4FGL_J2149.7+1917_daily_bin1606.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.58
user 0.42
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/477581/ft1_filtered_4FGL_J2149.7+1917_daily_bin1606.fits evtable="EVENTS" scfile=/scratch/kocevski/477581/ft2_4FGL_J2149.7+1917_daily_bin1606.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/477581/Model_4FGL_J2149.7+1917_daily_bin1606.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/477581/ft1_filtered_4FGL_J2149.7+1917_daily_bin1606.fits.....................!
real 100.38
user 98.97
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.961       1.0000         .10000E-03   10000.    
     2 'Prefactor '    40.484       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.0250       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.802       1.0000         .10000E-03   10000.    
     6 'norm      '    3.6612       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.853       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.3114       1.0000         .10000E-03   10000.    
     9 'Prefactor '    74.440       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    86.262       1.0000         .10000E-03   10000.    
    12 'norm      '    1.3105       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .21465E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    52.761       1.0000         .10000E-03   10000.    
    17 'norm      '    .36995E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    44.635       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.4638       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .84732       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .84198       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=   6181.163     FROM MIGRAD    STATUS=CONVERGED    486 CALLS     2489 TOTAL
                     EDM=   .72E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.962        16.171        .67803E-07   -.72426E-05
   2  Prefactor     40.473        74.000        .68697E-06   -.38863E-05
   3  Prefactor     1.9866        26.061        .25637E-05   -.29446E-05
   4  Prefactor     .10000E-03    13.330        .17988E-07** at limit **
   5  Prefactor     24.819        30.343       -.15181E-06   -.97621E-05
   6  norm          3.6618        4.6404        .36667E-06   -.22814E-04
   7  Prefactor     14.851        7.8892       -.10772E-06   -.67604E-04
   8  Prefactor     3.3111        10.675        .10088E-05   -.80755E-05
   9  Prefactor     74.348        111.34        .30230E-06   -.95757E-05
  10  norm          .10000E-03    1.2474       -.10284E-06** at limit **
  11  Prefactor     86.313        94.201       -.22351E-05   -.18572E-05
  12  norm          1.3071        2.4843        .98902E-06    .50536E-04
  13  Prefactor     .10000E-03    14.464       -.47042E-06** at limit **
  14  Prefactor     .10000E-03    192.01        .48444E-06** at limit **
  15  norm          .10000E-03    .58468        .29634E-06** at limit **
  16  Prefactor     52.741        25.369        .38671E-07   -.24957E-04
  17  norm          .10107E-03    3.8976        .43196E-06** at limit **
  18  Prefactor     .10000E-03    2.7683        .32392E-07** at limit **
  19  Prefactor     44.492        104.20        .33768E-06   -.13912E-04
  20  Prefactor     8.4650        12.235        .12856E-06   -.33204E-04
  21  Normalizat    .84781        .25000       -.13509E-05   -.12633E-03
  22  Prefactor     .84182        .10374       -.37898E-06   -.23292E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.9624
  Prefactor  = 40.4734
  Prefactor  = 1.98661
  Prefactor  = 0.0001
  Prefactor  = 24.8192
  norm       = 3.66183
  Prefactor  = 14.8509
  Prefactor  = 3.31107
  Prefactor  = 74.3475
  norm       = 0.0001
  Prefactor  = 86.3128
  norm       = 1.30714
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 52.7408
  norm       = 0.000101071
  Prefactor  = 0.0001
  Prefactor  = 44.4916
  Prefactor  = 8.46498
  Normalizat = 0.84781
  Prefactor  = 0.841816
 **********
 **   18 **HESSE 
 **********

 FCN=   6181.163     FROM HESSE     STATUS=OK           360 CALLS     2849 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.962        16.174        .10025E-03   -1.4909    
   2  Prefactor     40.473        74.125        .62999E-04   -1.4435    
   3  Prefactor     1.9866        26.108        .29077E-03   -1.5426    
   4  Prefactor     .10000E-03    13.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     24.819        30.279        .80434E-04   -1.4711    
   6  norm          3.6618        4.6318        .18146E-03   -1.5325    
   7  Prefactor     14.851        7.8236        .10392E-03   -1.4937    
   8  Prefactor     3.3111        10.528        .22246E-03   -1.5344    
   9  Prefactor     74.348        111.07        .23268E-03   -1.3981    
  10  norm          .10000E-03    4.2740        .16817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     86.313        93.672        .21628E-03   -1.3847    
  12  norm          1.3071        2.4671        .14708E-03   -1.5479    
  13  Prefactor     .10000E-03    14.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    194.20        .20164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.0848        .11375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     52.741        25.405        .55217E-04   -1.4254    
  17  norm          .10107E-03    3.8505        .48715E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.7694        .12776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     44.492        104.20        .30005E-03   -1.4373    
  20  Prefactor     8.4650        12.259        .13779E-03   -1.5126    
  21  Normalizat    .84781        .29804        .36175E-03   -.98319    
  22  Prefactor     .84182        .12471        .15949E-03   -.98205    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36258e-10
Minuit parameter uncertainties:
  1  16.1782
  2  74.2948
  3  14.4111
  4  2.23265e-06
  5  30.2975
  6  4.63223
  7  7.82412
  8  10.5341
  9  111.381
  10  8.14146e-05
  11  93.8325
  12  2.46727
  13  1.2644e-05
  14  0.00022394
  15  1.59706e-05
  16  25.4104
  17  0.00406097
  18  4.10915e-07
  19  104.629
  20  12.2631
  21  0.29862
  22  0.124756
Done.

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

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  1.264e-05  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.418e-01  1.248e-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:  8.478e-01  2.986e-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: 8.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/477581/likelihoodResults_655603201_655862401_4FGL_J2149.7+1917_daily_bin1606.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) = 6181.16344324
delta logL = -0.000329213837176

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6181.16311619
delta logL = -2.16440366785e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5252       1.0000          .0000       10.000    
     3 'Normalizat'    .84756       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84181       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6181.163     FROM MIGRAD    STATUS=FAILED        89 CALLS      244 TOTAL
                     EDM=   .97E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10145E-03    14.797        .18142E-02** at limit **
   2  Index         2.6697        6.3257        .20000       -.29274E-05
   3  Normalizat    .84781        .27350        .36174E-03    .75740E-05
   4  Prefactor     .84182        .12141        .15949E-03    .12902E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6181.163     FROM SIMPLEX   STATUS=UNCHANGED    112 CALLS      356 TOTAL
                     EDM=   .76E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10145E-03    14.797        .46615E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6697        6.3257        .15781E-02   -.48482    
   3  Normalizat    .84781        .27350        .12899E-03   -.98319    
   4  Prefactor     .84182        .12141        .43500E-04   -.98205    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6181.163     FROM MIGRAD    STATUS=CONVERGED     26 CALLS      382 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.792        .36285E-03** at limit **
   2  Index         2.6698        6.3257        .80000E-02   -.28820E-05
   3  Normalizat    .84781        .27375        .14470E-04   -.26242E-04
   4  Prefactor     .84182        .12152        .63794E-05   -.42414E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.66978
  Normalizat = 0.847811
  Prefactor  = 0.841816
 **********
 **   18 **HESSE 
 **********

 FCN=   6181.163     FROM HESSE     STATUS=OK            23 CALLS      405 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.792        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6698        3.7225        .16000E-02   -.48481    
   3  Normalizat    .84781        .27389        .28940E-05   -.98319    
   4  Prefactor     .84182        .12158        .12759E-05   -.98205    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27485e-11
Minuit parameter uncertainties:
  1  4.9974e-05
  2  4.42381
  3  0.274336
  4  0.121619
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/477581': 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) = 6181.16311393
delta logL = 9.3722519523e-08

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  4.997e-05  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.670e+00  4.424e+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:  8.418e-01  1.216e-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:  8.478e-01  2.743e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/477581/cmap_HighResolution_655603201_655862401_4FGL_J2149.7+1917_daily_bin1606.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.36e-03', job_status='DONE', photon_flux_upper_limit='8.17e-08', time_completed='2021-12-08 08:21:30.332530', job_id='477581', GAL2='0.84', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1638980490.33', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='9.37e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='1606' AND source_name='4FGL J2149.7+1917' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 08:21:30 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 477581: <4FGL_J2149.7+1917_daily_bin1606> in cluster <slac> Done

Job <4FGL_J2149.7+1917_daily_bin1606> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Dec  8 08:05:22 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 08:07:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 08:07:15 2021
Terminated at Wed Dec  8 08:21:31 2021
Results reported at Wed Dec  8 08:21:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2149.7+1917_daily_bin1606 327.444 19.2859 655603201 655862401 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 :                                   694.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            969 sec.

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

