/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 175 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 = 7413
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2149.7+1917_daily_bin32
RA = 327.444, Dec = 19.2859
tmin = 247622401, tmax = 247881601
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='985679', job_status='RUN', time_executed='2021-09-27 18:19:14.058382', time_epoch_executed='1632791954.06' WHERE source_name='4FGL J2149.7+1917' and cadence='daily' and bin_id='32'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/985679

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/985679/ft1_4FGL_J2149.7+1917_daily_bin32.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/985679/ft2_4FGL_J2149.7+1917_daily_bin32.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/985679/ft1_4FGL_J2149.7+1917_daily_bin32.fits outfile=/scratch/kocevski/985679/ft1_filteredMKT_4FGL_J2149.7+1917_daily_bin32.fits ra=327.444 dec=19.2859 rad=12.0 tmin=247622401.0 tmax=247881601.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 1.39
user 1.22
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/985679/ft2_4FGL_J2149.7+1917_daily_bin32.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/985679/ft1_filteredMKT_4FGL_J2149.7+1917_daily_bin32.fits evtable="EVENTS" outfile="/scratch/kocevski/985679/ft1_filtered_4FGL_J2149.7+1917_daily_bin32.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/985679/ft1_filtered_4FGL_J2149.7+1917_daily_bin32.fits" evtable="EVENTS" scfile=/scratch/kocevski/985679/ft2_4FGL_J2149.7+1917_daily_bin32.fits sctable="SC_DATA" outfile=/scratch/kocevski/985679/ltcube_247622401_247881601_4FGL_J2149.7+1917_daily_bin32.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/985679/ft2_4FGL_J2149.7+1917_daily_bin32.fits
.....................!
real 14.85
user 14.47
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/985679/ft1_filtered_4FGL_J2149.7+1917_daily_bin32.fits evtable="EVENTS" scfile=/scratch/kocevski/985679/ft2_4FGL_J2149.7+1917_daily_bin32.fits sctable="SC_DATA" expcube=/scratch/kocevski/985679/ltcube_247622401_247881601_4FGL_J2149.7+1917_daily_bin32.fits outfile=/scratch/kocevski/985679/expmap_247622401_247881601_4FGL_J2149.7+1917_daily_bin32.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/985679/ltcube_247622401_247881601_4FGL_J2149.7+1917_daily_bin32.fits
.....................!
real 191.00
user 185.53
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/985679/ft1_filtered_4FGL_J2149.7+1917_daily_bin32.fits scfile=/scratch/kocevski/985679/ft2_4FGL_J2149.7+1917_daily_bin32.fits outfile=/scratch/kocevski/985679/cmap_247622401_247881601_4FGL_J2149.7+1917_daily_bin32.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/985679/ft1_filtered_4FGL_J2149.7+1917_daily_bin32.fits scfile=/scratch/kocevski/985679/ft2_4FGL_J2149.7+1917_daily_bin32.fits outfile=/scratch/kocevski/985679/cmap_HighResolution_247622401_247881601_4FGL_J2149.7+1917_daily_bin32.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/985679/ft1_filtered_4FGL_J2149.7+1917_daily_bin32.fits evtable="EVENTS" scfile=/scratch/kocevski/985679/ft2_4FGL_J2149.7+1917_daily_bin32.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/985679/Model_4FGL_J2149.7+1917_daily_bin32.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/985679/ft1_filtered_4FGL_J2149.7+1917_daily_bin32.fits.....................!
real 120.68
user 119.22
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    88.613       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.177       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.858       1.0000         .10000E-03   10000.    
     6 'norm      '    3.2699       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.1465       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.2344       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.7023       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.8740       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.3913       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.447       1.0000         .10000E-03   10000.    
    17 'norm      '    3.0331       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.9595       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .66070       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97751       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=   7561.441     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2360 TOTAL
                     EDM=   .25E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.748        .26912E-05** at limit **
   2  Prefactor     88.606        73.817        .91927E-06   -.33779E-05
   3  Prefactor     18.179        18.232        .75883E-07   -.60052E-05
   4  Prefactor     .10000E-03    27.146       -.41310E-05** at limit **
   5  Prefactor     23.857        25.573        .10085E-07   -.11795E-05
   6  norm          3.2705        5.1576        .45939E-06    .31283E-04
   7  Prefactor     3.1466        4.4983        .19033E-05   -.62334E-04
   8  Prefactor     8.2359        8.7195        .88149E-07   -.24971E-04
   9  Prefactor     .10000E-03    48.820       -.22925E-05** at limit **
  10  norm          3.7004        2.7985       -.15282E-06   -.41499E-03
  11  Prefactor     .10000E-03    30.684        .39227E-05** at limit **
  12  norm          6.8743        2.5358       -.85370E-08   -.10429E-03
  13  Prefactor     .10000E-03    86.257        .79107E-05** at limit **
  14  Prefactor     .10000E-03    59.172       -.45768E-05** at limit **
  15  norm          1.3912        .87007       -.17761E-07   -.19636E-03
  16  Prefactor     12.448        14.944        .17939E-06    .78007E-06
  17  norm          3.0332        4.0496        .12867E-05   -.27795E-04
  18  Prefactor     2.9598        9.3315        .38837E-06    .25135E-06
  19  Prefactor     .10000E-03    48.238       -.19763E-05** at limit **
  20  Prefactor     .10000E-03    10.655        .82840E-07** at limit **
  21  Normalizat    .66033        .24500       -.14394E-05   -.64752E-04
  22  Prefactor     .97766        .10526       -.20484E-07   -.11849E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 88.6062
  Prefactor  = 18.179
  Prefactor  = 0.0001
  Prefactor  = 23.8567
  norm       = 3.27053
  Prefactor  = 3.14665
  Prefactor  = 8.23592
  Prefactor  = 0.0001
  norm       = 3.70041
  Prefactor  = 0.0001
  norm       = 6.87434
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.3912
  Prefactor  = 12.4479
  norm       = 3.03315
  Prefactor  = 2.95982
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.660325
  Prefactor  = 0.977658
 **********
 **   18 **HESSE 
 **********

 FCN=   7561.441     FROM HESSE     STATUS=OK           344 CALLS     2704 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     88.606        73.875        .42683E-04   -1.3823    
   3  Prefactor     18.179        18.213        .93941E-04   -1.4855    
   4  Prefactor     .10000E-03    27.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     23.857        25.574        .82009E-04   -1.4731    
   6  norm          3.2705        5.1455        .22394E-03   -1.5346    
   7  Prefactor     3.1466        4.4970        .10412E-02   -1.5353    
   8  Prefactor     8.2359        8.6982        .13971E-03   -1.5134    
   9  Prefactor     .10000E-03    48.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.7004        2.7896        .11716E-03   -1.5323    
  11  Prefactor     .10000E-03    30.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.8743        2.5340        .80943E-04   -1.5184    
  13  Prefactor     .10000E-03    87.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    59.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.3912        .87121        .61318E-04   -1.5472    
  16  Prefactor     12.448        14.939        .11354E-03   -1.5002    
  17  norm          3.0332        4.0401        .97483E-03   -1.5360    
  18  Prefactor     2.9598        9.3104        .23605E-03   -1.5364    
  19  Prefactor     .10000E-03    48.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.005        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .66033        .27756        .42741E-03   -1.0548    
  22  Prefactor     .97766        .12198        .16209E-03   -.93478    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.30052e-11
Minuit parameter uncertainties:
  1  3.17392e-05
  2  73.9514
  3  18.2187
  4  5.20435e-06
  5  25.5856
  6  5.14615
  7  4.49749
  8  8.69953
  9  6.55033e-06
  10  2.78973
  11  7.25689e-06
  12  2.53408
  13  2.4371e-05
  14  2.56064e-05
  15  0.871218
  16  14.943
  17  4.0405
  18  9.31499
  19  3.33983e-06
  20  5.90527e-06
  21  0.278154
  22  0.122012
Done.

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

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  1.000e-04  2.437e-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:  9.777e-01  1.220e-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.603e-01  2.782e-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: 1.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/985679/likelihoodResults_247622401_247881601_4FGL_J2149.7+1917_daily_bin32.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) = 7561.44077736
delta logL = -5.45565953871e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7561.35135762
delta logL = 0.0893651761908

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0437       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5542       1.0000          .0000       10.000    
     3 'Normalizat'    .62592       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98528       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7561.351     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      337 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0319        766.82        .11628E-02   -.43250E-03
   2  Index         3.5583        6.4215        .10438E-01   -.81135E-04
   3  Normalizat    .62620        .24718        .43826E-03   -.19046E-03
   4  Prefactor     .98507        .10793        .16152E-03   -.33539E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.03187
  Index      = 3.55829
  Normalizat = 0.626198
  Prefactor  = 0.98507
 **********
 **   18 **HESSE 
 **********

 FCN=   7561.351     FROM HESSE     STATUS=OK            25 CALLS      362 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0319        13.845        .46513E-04   -1.5360    
   2  Index         3.5583        1.9291        .41752E-03   -.29249    
   3  Normalizat    .62620        .27510        .17530E-04   -1.0688    
   4  Prefactor     .98507        .12227        .32305E-04   -.93229    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.71306e-10
Minuit parameter uncertainties:
  1  12.9625
  2  1.98555
  3  0.275706
  4  0.122308
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/985679': 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) = 7561.35135227
delta logL = 0.0893705339467

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  3.032e+00  1.296e+01  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  3.558e+00  1.986e+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.851e-01  1.223e-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.262e-01  2.757e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/985679/cmap_HighResolution_247622401_247881601_4FGL_J2149.7+1917_daily_bin32.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.41e-03', job_status='DONE', photon_flux_upper_limit='1.21e-07', time_completed='2021-09-27 18:31:37.070492', job_id='985679', GAL2='0.99', fit_tolerance='1e-08', EG2='0.63', EG='0.66', time_epoch_completed='1632792697.07', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='8.94e-02', ts2='0.21', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='32' AND source_name='4FGL J2149.7+1917' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 18:31:37 PDT 2021


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

Job <4FGL_J2149.7+1917_daily_bin32> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 18:15:20 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 18:16:11 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:16:11 2021
Terminated at Mon Sep 27 18:31:37 2021
Results reported at Mon Sep 27 18:31:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2149.7+1917_daily_bin32 327.444 19.2859 247622401 247881601 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 :                                   742.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            977 sec.

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

