/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 6 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 = 7398
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2149.7+1917_daily_bin324
RA = 327.444, Dec = 19.2859
tmin = 323308801, tmax = 323568001
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='987326', job_status='RUN', time_executed='2021-09-27 18:22:39.097477', time_epoch_executed='1632792159.1' WHERE source_name='4FGL J2149.7+1917' and cadence='daily' and bin_id='324'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/987326

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/987326/ft1_4FGL_J2149.7+1917_daily_bin324.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/987326/ft2_4FGL_J2149.7+1917_daily_bin324.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/987326/ft1_4FGL_J2149.7+1917_daily_bin324.fits outfile=/scratch/kocevski/987326/ft1_filteredMKT_4FGL_J2149.7+1917_daily_bin324.fits ra=327.444 dec=19.2859 rad=12.0 tmin=323308801.0 tmax=323568001.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.34
user 3.10
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/987326/ft1_filtered_4FGL_J2149.7+1917_daily_bin324.fits" evtable="EVENTS" scfile=/scratch/kocevski/987326/ft2_4FGL_J2149.7+1917_daily_bin324.fits sctable="SC_DATA" outfile=/scratch/kocevski/987326/ltcube_323308801_323568001_4FGL_J2149.7+1917_daily_bin324.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/987326/ft2_4FGL_J2149.7+1917_daily_bin324.fits
.....................!
real 16.10
user 15.65
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/987326/ft1_filtered_4FGL_J2149.7+1917_daily_bin324.fits evtable="EVENTS" scfile=/scratch/kocevski/987326/ft2_4FGL_J2149.7+1917_daily_bin324.fits sctable="SC_DATA" expcube=/scratch/kocevski/987326/ltcube_323308801_323568001_4FGL_J2149.7+1917_daily_bin324.fits outfile=/scratch/kocevski/987326/expmap_323308801_323568001_4FGL_J2149.7+1917_daily_bin324.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/987326/ltcube_323308801_323568001_4FGL_J2149.7+1917_daily_bin324.fits
.....................!
real 194.36
user 186.67
sys 6.17

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/987326/ft1_filtered_4FGL_J2149.7+1917_daily_bin324.fits scfile=/scratch/kocevski/987326/ft2_4FGL_J2149.7+1917_daily_bin324.fits outfile=/scratch/kocevski/987326/cmap_323308801_323568001_4FGL_J2149.7+1917_daily_bin324.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.56
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/987326/ft1_filtered_4FGL_J2149.7+1917_daily_bin324.fits scfile=/scratch/kocevski/987326/ft2_4FGL_J2149.7+1917_daily_bin324.fits outfile=/scratch/kocevski/987326/cmap_HighResolution_323308801_323568001_4FGL_J2149.7+1917_daily_bin324.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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/987326/ft1_filtered_4FGL_J2149.7+1917_daily_bin324.fits evtable="EVENTS" scfile=/scratch/kocevski/987326/ft2_4FGL_J2149.7+1917_daily_bin324.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/987326/Model_4FGL_J2149.7+1917_daily_bin324.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/987326/ft1_filtered_4FGL_J2149.7+1917_daily_bin324.fits.....................!
real 172.59
user 170.64
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    94.356       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    9.2059       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .36852       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10446E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    13.299       1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.145       1.0000         .10000E-03   10000.    
    12 'norm      '    2.7304       1.0000         .10000E-03   10000.    
    13 'Prefactor '    74.089       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.304       1.0000         .10000E-03   10000.    
    15 'norm      '    .10300E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    33.094       1.0000         .10000E-03   10000.    
    17 'norm      '    3.1604       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    119.90       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.7757       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .72201       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0520       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=   10978.18     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2437 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.012       -.28388E-07** at limit **
   2  Prefactor     94.311        86.200       -.41047E-05   -.24053E-03
   3  Prefactor     .10000E-03    5.7534        .15607E-06** at limit **
   4  Prefactor     .10000E-03    17.118       -.77911E-07** at limit **
   5  Prefactor     .10000E-03    7.4563        .11258E-07** at limit **
   6  norm          9.2065        4.7103        .99393E-07    .38487E-04
   7  Prefactor     .37041        1.8019        .21706E-07    .32155E-04
   8  Prefactor     .10000E-03    4.6068        .10924E-06** at limit **
   9  Prefactor     .10000E-03    30.928        .84564E-07** at limit **
  10  norm          13.300        3.5900        .35595E-06   -.39071E-03
  11  Prefactor     26.123        45.867       -.45602E-05   -.19185E-03
  12  norm          2.7317        2.0622        .39930E-06   -.13871E-03
  13  Prefactor     74.088        42.389       -.52267E-06    .27840E-04
  14  Prefactor     18.302        52.720        .71726E-07   -.23760E-05
  15  norm          .10000E-03    .32188       -.30749E-08** at limit **
  16  Prefactor     33.093        20.572       -.38958E-06   -.47419E-04
  17  norm          3.1615        4.0058        .17069E-06   -.90404E-04
  18  Prefactor     .10000E-03    3.3044        .58609E-07** at limit **
  19  Prefactor     119.88        112.09       -.17097E-05   -.82809E-04
  20  Prefactor     4.7757        10.381        .59715E-05   -.29265E-03
  21  Normalizat    .72171        .24153       -.31093E-05    .86603E-05
  22  Prefactor     1.0521        .97477E-01    .62487E-06   -.14716E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 94.3106
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.20651
  Prefactor  = 0.370415
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.2995
  Prefactor  = 26.1232
  norm       = 2.73174
  Prefactor  = 74.0882
  Prefactor  = 18.3025
  norm       = 0.0001
  Prefactor  = 33.0934
  norm       = 3.16153
  Prefactor  = 0.0001
  Prefactor  = 119.875
  Prefactor  = 4.77569
  Normalizat = 0.721708
  Prefactor  = 1.05206
 **********
 **   18 **HESSE 
 **********

 FCN=   10978.18     FROM HESSE     STATUS=OK           344 CALLS     2781 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     94.311        89.363        .20688E-03   -1.3763    
   3  Prefactor     .10000E-03    5.7755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.4624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          9.2065        4.7095        .13209E-03   -1.5101    
   7  Prefactor     .37041        8.5160        .26723E-02   -1.5586    
   8  Prefactor     .10000E-03    4.7017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    30.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          13.300        3.5975        .44895E-03   -1.4978    
  11  Prefactor     26.123        47.032        .78345E-04   -1.4685    
  12  norm          2.7317        2.0655        .11687E-03   -1.5377    
  13  Prefactor     74.088        42.240        .46645E-04   -1.3984    
  14  Prefactor     18.302        52.665        .93614E-04   -1.4852    
  15  norm          .10000E-03    6.0004        .11326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     33.093        20.560        .69655E-04   -1.4557    
  17  norm          3.1615        3.9891        .22691E-03   -1.5352    
  18  Prefactor     .10000E-03    3.3104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     119.88        112.71        .36752E-04   -1.3514    
  20  Prefactor     4.7757        10.561        .92053E-03   -1.5271    
  21  Normalizat    .72171        .26305        .46681E-03   -1.0304    
  22  Prefactor     1.0521        .10880        .17181E-03   -.91014    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23148e-09
Minuit parameter uncertainties:
  1  1.93078e-05
  2  89.4908
  3  8.23343e-06
  4  2.07139e-06
  5  2.31762e-06
  6  4.70971
  7  3.55226
  8  1.2566e-06
  9  1.70225e-05
  10  3.59752
  11  47.0987
  12  2.06558
  13  42.2567
  14  52.7996
  15  4.23506e-05
  16  20.564
  17  3.98944
  18  1.36195e-06
  19  112.916
  20  10.5652
  21  0.263513
  22  0.108821
Done.

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

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  7.409e+01  4.226e+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:  1.052e+00  1.088e-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:  7.217e-01  2.635e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.24
Ra Dec: 327.444 19.286
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 1.24e-07 +/- 7.04e-08
Energy Flux (Fixed Index): 3.51e-05 +/- 2.00e-05

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) = 10977.6791228
delta logL = 0.496619085476

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10977.6507709
delta logL = 0.524971043063

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.450       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0668       1.0000          .0000       10.000    
     3 'Normalizat'    .65952       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0711       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=   10977.65     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      310 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.433        54.980        .61528E-04   -.60273E-03
   2  Index         3.0670        .80646        .47849E-02   -.29465E-03
   3  Normalizat    .65839        .25794        .48681E-03    .45016E-03
   4  Prefactor     1.0716        .11083        .17040E-03    .57991E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.4326
  Index      = 3.067
  Normalizat = 0.658394
  Prefactor  = 1.07158
 **********
 **   18 **HESSE 
 **********

 FCN=   10977.65     FROM HESSE     STATUS=OK            25 CALLS      335 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.433        42.174        .12306E-04   -1.4404    
   2  Index         3.0670        .61849        .19140E-03   -.39694    
   3  Normalizat    .65839        .25528        .19472E-04   -1.0556    
   4  Prefactor     1.0716        .10966        .34080E-04   -.90380    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79282e-09
Minuit parameter uncertainties:
  1  42.2034
  2  0.620359
  3  0.25574
  4  0.109684
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/987326': 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) = 10977.6507585
delta logL = 0.524983451973

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  4.243e+01  4.220e+01  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  3.067e+00  6.204e-01  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.072e+00  1.097e-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.584e-01  2.557e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.50
Ra Dec: 327.444 19.286
Photon Index (Free Index): 3.07 +/- 0.62
Photon Flux (Free Index): 1.73e-07 +/- 8.56e-08
Energy Flux (Free Index): 3.34e-05 +/- 1.58e-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/987326/cmap_HighResolution_323308801_323568001_4FGL_J2149.7+1917_daily_bin324.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.24e-07', energy_flux2='3.34e-05', photon_flux_error='7.04e-08', dlogl='5.25e-01', energy_flux='3.51e-05', photon_flux2='1.73e-07', job_status='DONE', time_completed='2021-09-27 18:37:12.103680', photon_index_error2='0.62', photon_index2='3.07', ts='5.24', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='1.58e-05', EG='0.72', time_epoch_completed='1632793032.1', return_code='0', job_id='987326', GAL2='1.07', EG2='0.66', return_code2='0', energy_flux_error='2.00e-05', photon_flux_error2='8.56e-08', ts2='6.50', photon_index='2.52' WHERE bin_id='324' AND source_name='4FGL J2149.7+1917' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 18:37:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 987326: <4FGL_J2149.7+1917_daily_bin324> in cluster <slac> Done

Job <4FGL_J2149.7+1917_daily_bin324> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep 27 18:20:43 2021
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 18:22:23 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:22:23 2021
Terminated at Mon Sep 27 18:37:12 2021
Results reported at Mon Sep 27 18:37:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2149.7+1917_daily_bin324 327.444 19.2859 323308801 323568001 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 :                                   866.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             352.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            989 sec.

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

