/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 3 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7474
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2149.7+1917_daily_bin332
RA = 327.444, Dec = 19.2859
tmin = 325382401, tmax = 325641601
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='987339', job_status='RUN', time_executed='2021-09-27 18:22:47.628748', time_epoch_executed='1632792167.63' WHERE source_name='4FGL J2149.7+1917' and cadence='daily' and bin_id='332'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/987339

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/987339/ft1_4FGL_J2149.7+1917_daily_bin332.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/987339/ft2_4FGL_J2149.7+1917_daily_bin332.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/987339/ft1_4FGL_J2149.7+1917_daily_bin332.fits outfile=/scratch/kocevski/987339/ft1_filteredMKT_4FGL_J2149.7+1917_daily_bin332.fits ra=327.444 dec=19.2859 rad=12.0 tmin=325382401.0 tmax=325641601.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.55
user 3.31
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/987339/ft1_filtered_4FGL_J2149.7+1917_daily_bin332.fits" evtable="EVENTS" scfile=/scratch/kocevski/987339/ft2_4FGL_J2149.7+1917_daily_bin332.fits sctable="SC_DATA" outfile=/scratch/kocevski/987339/ltcube_325382401_325641601_4FGL_J2149.7+1917_daily_bin332.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/987339/ft2_4FGL_J2149.7+1917_daily_bin332.fits
.....................!
real 15.73
user 15.35
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/987339/ft1_filtered_4FGL_J2149.7+1917_daily_bin332.fits evtable="EVENTS" scfile=/scratch/kocevski/987339/ft2_4FGL_J2149.7+1917_daily_bin332.fits sctable="SC_DATA" expcube=/scratch/kocevski/987339/ltcube_325382401_325641601_4FGL_J2149.7+1917_daily_bin332.fits outfile=/scratch/kocevski/987339/expmap_325382401_325641601_4FGL_J2149.7+1917_daily_bin332.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/987339/ltcube_325382401_325641601_4FGL_J2149.7+1917_daily_bin332.fits
.....................!
real 193.36
user 187.25
sys 5.37

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/987339/ft1_filtered_4FGL_J2149.7+1917_daily_bin332.fits scfile=/scratch/kocevski/987339/ft2_4FGL_J2149.7+1917_daily_bin332.fits outfile=/scratch/kocevski/987339/cmap_325382401_325641601_4FGL_J2149.7+1917_daily_bin332.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/987339/ft1_filtered_4FGL_J2149.7+1917_daily_bin332.fits scfile=/scratch/kocevski/987339/ft2_4FGL_J2149.7+1917_daily_bin332.fits outfile=/scratch/kocevski/987339/cmap_HighResolution_325382401_325641601_4FGL_J2149.7+1917_daily_bin332.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/987339/ft1_filtered_4FGL_J2149.7+1917_daily_bin332.fits evtable="EVENTS" scfile=/scratch/kocevski/987339/ft2_4FGL_J2149.7+1917_daily_bin332.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/987339/Model_4FGL_J2149.7+1917_daily_bin332.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/987339/ft1_filtered_4FGL_J2149.7+1917_daily_bin332.fits.....................!
real 153.85
user 151.73
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.467       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10298E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.1323       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    38.722       1.0000         .10000E-03   10000.    
     6 'norm      '    2.0662       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.7763       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    117.07       1.0000         .10000E-03   10000.    
    10 'norm      '    2.2718       1.0000         .10000E-03   10000.    
    11 'Prefactor '    37.591       1.0000         .10000E-03   10000.    
    12 'norm      '    3.8773       1.0000         .10000E-03   10000.    
    13 'Prefactor '    43.819       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.2344       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.1129       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    49.793       1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.406       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1546       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94158       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=   9518.981     FROM MIGRAD    STATUS=CONVERGED    469 CALLS     2355 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.462        23.741       -.60727E-06   -.35417E-04
   2  Prefactor     .10000E-03    66.274        .16967E-06** at limit **
   3  Prefactor     5.1296        11.240        .50843E-05   -.26067E-03
   4  Prefactor     .10000E-03    18.928        .26476E-07** at limit **
   5  Prefactor     38.719        28.328       -.66572E-06   -.46545E-04
   6  norm          2.0665        2.3617        .48008E-07   -.66131E-04
   7  Prefactor     5.7736        6.1590       -.19217E-07   -.53117E-04
   8  Prefactor     .10000E-03    2.7787       -.46634E-08** at limit **
   9  Prefactor     117.08        122.89        .11541E-05    .21263E-04
  10  norm          2.2714        2.2267        .14725E-06   -.94880E-04
  11  Prefactor     37.595        59.350        .61674E-06    .19996E-04
  12  norm          3.8766        2.4870       -.93936E-08   -.34155E-04
  13  Prefactor     43.814        28.143       -.60397E-06   -.70435E-04
  14  Prefactor     .10000E-03    26.835        .13165E-07** at limit **
  15  norm          2.2342        .99341        .21286E-08   -.36537E-04
  16  Prefactor     9.1050        19.384        .60801E-06   -.44724E-05
  17  norm          .10000E-03    1.7734        .46268E-07** at limit **
  18  Prefactor     .10000E-03    4.4797        .29654E-07** at limit **
  19  Prefactor     49.735        93.504       -.96210E-05   -.14561E-03
  20  Prefactor     12.398        12.644        .13488E-06    .32990E-04
  21  Normalizat    1.1552        .23974        .13158E-05   -.81250E-04
  22  Prefactor     .94134        .98862E-01   -.74228E-06    .11939E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.4618
  Prefactor  = 0.0001
  Prefactor  = 5.12961
  Prefactor  = 0.0001
  Prefactor  = 38.7189
  norm       = 2.06651
  Prefactor  = 5.77358
  Prefactor  = 0.0001
  Prefactor  = 117.078
  norm       = 2.27137
  Prefactor  = 37.595
  norm       = 3.87664
  Prefactor  = 43.8137
  Prefactor  = 0.0001
  norm       = 2.23418
  Prefactor  = 9.10501
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.7346
  Prefactor  = 12.3975
  Normalizat = 1.15523
  Prefactor  = 0.94134
 **********
 **   18 **HESSE 
 **********

 FCN=   9518.981     FROM HESSE     STATUS=OK           340 CALLS     2695 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.462        23.778        .12385E-03   -1.5061    
   2  Prefactor     .10000E-03    66.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.1296        11.643        .88732E-03   -1.5255    
   4  Prefactor     .10000E-03    18.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     38.719        28.331        .64411E-04   -1.4463    
   6  norm          2.0665        2.3466        .15572E-03   -1.5420    
   7  Prefactor     5.7736        6.1687        .16711E-03   -1.5227    
   8  Prefactor     .10000E-03    2.7945        .15874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     117.08        123.00        .37188E-04   -1.3540    
  10  norm          2.2714        2.2074        .13315E-03   -1.5407    
  11  Prefactor     37.595        59.428        .65369E-04   -1.4481    
  12  norm          3.8766        2.4910        .11372E-03   -1.5314    
  13  Prefactor     43.814        28.141        .60563E-04   -1.4383    
  14  Prefactor     .10000E-03    26.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.2342        .99346        .62185E-04   -1.5409    
  16  Prefactor     9.1050        19.403        .13277E-03   -1.5104    
  17  norm          .10000E-03    1.7813        .12685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.4907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     49.735        99.647        .56831E-04   -1.4296    
  20  Prefactor     12.398        12.746        .11373E-03   -1.5004    
  21  Normalizat    1.1552        .28616        .37324E-03   -.87998    
  22  Prefactor     .94134        .11824        .18052E-03   -.94711    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.16852e-10
Minuit parameter uncertainties:
  1  23.7992
  2  4.00119e-05
  3  11.6477
  4  1.35498e-06
  5  28.3404
  6  2.34668
  7  6.16936
  8  3.81868e-06
  9  123.265
  10  2.20751
  11  59.522
  12  2.49107
  13  28.1498
  14  5.04894e-06
  15  0.993462
  16  19.4168
  17  1.04898e-06
  18  1.05959e-06
  19  99.9829
  20  12.7485
  21  0.286545
  22  0.118269
Done.

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

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  4.381e+01  2.815e+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.413e-01  1.183e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  1.155e+00  2.865e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.49
Ra Dec: 327.444 19.286
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 7.31e-08 +/- 4.69e-08
Energy Flux (Fixed Index): 2.07e-05 +/- 1.33e-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) = 9518.91114665
delta logL = 0.0693654369534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9518.90893887
delta logL = 0.0715732203425

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.157       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7293       1.0000          .0000       10.000    
     3 'Normalizat'    1.1414       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94517       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=   9518.909     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      302 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.162        33.897        .66649E-04   -.57996E-05
   2  Index         2.7296        .61624        .67903E-02    .68731E-03
   3  Normalizat    1.1413        .26421        .37517E-03   -.64485E-04
   4  Prefactor     .94518        .11594        .18019E-03   -.13689E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.1623
  Index      = 2.7296
  Normalizat = 1.14133
  Prefactor  = 0.945181
 **********
 **   18 **HESSE 
 **********

 FCN=   9518.909     FROM HESSE     STATUS=OK            25 CALLS      327 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.162        31.499        .26659E-05   -1.4505    
   2  Index         2.7296        .57249        .13581E-02   -.47134    
   3  Normalizat    1.1413        .26419        .15007E-04   -.88436    
   4  Prefactor     .94518        .11596        .36037E-04   -.94580    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32825e-11
Minuit parameter uncertainties:
  1  31.5134
  2  0.574081
  3  0.2645
  4  0.115988
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/987339': 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) = 9518.9089384
delta logL = 0.0715736930033

Extracting fit parameters...

4FGL J2149.7+1917
   Spectrum: PowerLaw
277    Prefactor:  3.616e+01  3.151e+01  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.730e+00  5.741e-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:  9.452e-01  1.160e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  1.141e+00  2.645e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.65
Ra Dec: 327.444 19.286
Photon Index (Free Index): 2.73 +/- 0.57
Photon Flux (Free Index): 8.39e-08 +/- 5.55e-08
Energy Flux (Free Index): 1.98e-05 +/- 1.20e-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/987339/cmap_HighResolution_325382401_325641601_4FGL_J2149.7+1917_daily_bin332.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.31e-08', energy_flux2='1.98e-05', photon_flux_error='4.69e-08', dlogl='7.16e-02', energy_flux='2.07e-05', photon_flux2='8.39e-08', job_status='DONE', time_completed='2021-09-27 18:36:17.965102', photon_index_error2='0.57', photon_index2='2.73', ts='4.49', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.20e-05', EG='1.16', time_epoch_completed='1632792977.97', return_code='0', job_id='987339', GAL2='0.95', EG2='1.14', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='5.55e-08', ts2='4.65', photon_index='2.52' WHERE bin_id='332' AND source_name='4FGL J2149.7+1917' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 18:36:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 987339: <4FGL_J2149.7+1917_daily_bin332> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2149.7+1917_daily_bin332 327.444 19.2859 325382401 325641601 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 :                                   801.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             366.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            934 sec.

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

