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


Performing analysis on: 4FGL_J2219.2+1806_daily_bin1381
RA = 334.813, Dec = 18.1026
tmin = 597283201, tmax = 597542401
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='253919', job_status='RUN', time_executed='2021-09-28 08:53:40.582573', time_epoch_executed='1632844420.58' WHERE source_name='4FGL J2219.2+1806' and cadence='daily' and bin_id='1381'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/253919

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/253919/ft1_4FGL_J2219.2+1806_daily_bin1381.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/253919/ft2_4FGL_J2219.2+1806_daily_bin1381.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/253919/ft1_4FGL_J2219.2+1806_daily_bin1381.fits outfile=/scratch/kocevski/253919/ft1_filteredMKT_4FGL_J2219.2+1806_daily_bin1381.fits ra=334.813 dec=18.1026 rad=12.0 tmin=597283201.0 tmax=597542401.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.53
user 3.31
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/253919/ft2_4FGL_J2219.2+1806_daily_bin1381.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/253919/ft2_4FGL_J2219.2+1806_daily_bin1381.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/253919/ft1_filteredMKT_4FGL_J2219.2+1806_daily_bin1381.fits evtable="EVENTS" outfile="/scratch/kocevski/253919/ft1_filtered_4FGL_J2219.2+1806_daily_bin1381.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.48
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/253919/ft1_filtered_4FGL_J2219.2+1806_daily_bin1381.fits" evtable="EVENTS" scfile=/scratch/kocevski/253919/ft2_4FGL_J2219.2+1806_daily_bin1381.fits sctable="SC_DATA" outfile=/scratch/kocevski/253919/ltcube_597283201_597542401_4FGL_J2219.2+1806_daily_bin1381.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/253919/ft2_4FGL_J2219.2+1806_daily_bin1381.fits
.....................!
real 12.22
user 11.82
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/253919/ft1_filtered_4FGL_J2219.2+1806_daily_bin1381.fits evtable="EVENTS" scfile=/scratch/kocevski/253919/ft2_4FGL_J2219.2+1806_daily_bin1381.fits sctable="SC_DATA" expcube=/scratch/kocevski/253919/ltcube_597283201_597542401_4FGL_J2219.2+1806_daily_bin1381.fits outfile=/scratch/kocevski/253919/expmap_597283201_597542401_4FGL_J2219.2+1806_daily_bin1381.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/253919/ltcube_597283201_597542401_4FGL_J2219.2+1806_daily_bin1381.fits
.....................!
real 190.45
user 185.41
sys 4.72

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
Added 154 point sources and 0 extended sources

Setting source of interest to:
4FGL J2219.2+1806 @ 334.813 18.1026

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/253919/ft1_filtered_4FGL_J2219.2+1806_daily_bin1381.fits scfile=/scratch/kocevski/253919/ft2_4FGL_J2219.2+1806_daily_bin1381.fits outfile=/scratch/kocevski/253919/cmap_597283201_597542401_4FGL_J2219.2+1806_daily_bin1381.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=334.813 yref=18.1026 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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/253919/ft1_filtered_4FGL_J2219.2+1806_daily_bin1381.fits scfile=/scratch/kocevski/253919/ft2_4FGL_J2219.2+1806_daily_bin1381.fits outfile=/scratch/kocevski/253919/cmap_HighResolution_597283201_597542401_4FGL_J2219.2+1806_daily_bin1381.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=334.813 yref=18.1026 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/253919/ft1_filtered_4FGL_J2219.2+1806_daily_bin1381.fits evtable="EVENTS" scfile=/scratch/kocevski/253919/ft2_4FGL_J2219.2+1806_daily_bin1381.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/253919/Model_4FGL_J2219.2+1806_daily_bin1381.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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/253919/ft1_filtered_4FGL_J2219.2+1806_daily_bin1381.fits.....................!
real 85.20
user 83.91
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/253919/ft1_filtered_4FGL_J2219.2+1806_daily_bin1381.fits', '/scratch/kocevski/253919/ft2_4FGL_J2219.2+1806_daily_bin1381.fits', expMap='/scratch/kocevski/253919/expmap_597283201_597542401_4FGL_J2219.2+1806_daily_bin1381.fits', expCube='/scratch/kocevski/253919/ltcube_597283201_597542401_4FGL_J2219.2+1806_daily_bin1381.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/253919/Model_4FGL_J2219.2+1806_daily_bin1381.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2219.2+1806'

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  3.275e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
263        alpha:  2.178e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
264         beta:  8.363e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
265           Eb:  7.797e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/253919/ft1_filtered_4FGL_J2219.2+1806_daily_bin1381.fits
Spacecraft file(s): /scratch/kocevski/253919/ft2_4FGL_J2219.2+1806_daily_bin1381.fits
Exposure map: /scratch/kocevski/253919/expmap_597283201_597542401_4FGL_J2219.2+1806_daily_bin1381.fits
Exposure cube: /scratch/kocevski/253919/ltcube_597283201_597542401_4FGL_J2219.2+1806_daily_bin1381.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/253919/Model_4FGL_J2219.2+1806_daily_bin1381.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) = 8577.52720149

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .17138E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.6939       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.176       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.089       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.859       1.0000         .10000E-03   10000.    
    11 'norm      '    11.387       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    109.25       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10275E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .20670       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.0047       1.0000         .10000E-03   10000.    
    18 'norm      '    .42010       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10617E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.261       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.6597       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .78206       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .29074E-01   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2547       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .95278       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8577.524     FROM MIGRAD    STATUS=CONVERGED    591 CALLS     2924 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.6034        .86161E-09** at limit **
   2  Prefactor     .10009E-03    908.76       -.17059E-04** at limit **
   3  norm          .10000E-03    .97079       -.92883E-07** at limit **
   4  Prefactor     .10000E-03    38.027       -.99330E-07** at limit **
   5  norm          7.6940        3.4446        .58313E-06   -.73675E-04
   6  Prefactor     10.194        27.339       -.14964E-05   -.79386E-05
   7  Prefactor     .10000E-03    46.823       -.45141E-07** at limit **
   8  norm          .10000E-03    .33099        .11652E-08** at limit **
   9  Prefactor     27.090        34.296        .17786E-06   -.41491E-05
  10  Prefactor     15.857        13.686        .11891E-06   -.12543E-04
  11  norm          11.383        6.2098        .64183E-07   -.40168E-04
  12  Prefactor     .10000E-03    4.8596        .19960E-07** at limit **
  13  Prefactor     109.26        87.771        .43553E-06    .13622E-04
  14  Prefactor     .10000E-03    16.751        .75000E-07** at limit **
  15  Prefactor     .20669        .14813        .21304E-07    .59558E-04
  16  Prefactor     .10000E-03    2.5108        .12822E-07** at limit **
  17  norm          3.0046        1.2512        .22890E-07   -.66508E-04
  18  norm          .41965        1.9206        .21039E-05   -.46645E-04
  19  Prefactor     .10000E-03    20.810        .25934E-07** at limit **
  20  Prefactor     21.264        13.489       -.79438E-06   -.22329E-03
  21  Prefactor     4.6542        41.505        .98673E-06   -.11527E-05
  22  Prefactor     .78204        .20704        .22416E-08   -.78735E-03
  23  Prefactor     .10041E-03    6.5933        .62151E-06** at limit **
  24  Normalizat    1.2547        .23427       -.22035E-06   -.13558E-03
  25  Prefactor     .95278        .11402       -.66915E-06   -.14729E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100093
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.69395
  Prefactor  = 10.1942
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 27.0903
  Prefactor  = 15.8575
  norm       = 11.3825
  Prefactor  = 0.0001
  Prefactor  = 109.26
  Prefactor  = 0.0001
  Prefactor  = 0.206691
  Prefactor  = 0.0001
  norm       = 3.00462
  norm       = 0.419648
  Prefactor  = 0.0001
  Prefactor  = 21.264
  Prefactor  = 4.65423
  Prefactor  = 0.782039
  Prefactor  = 0.000100406
  Normalizat = 1.25475
  Prefactor  = 0.952775
 **********
 **   18 **HESSE 
 **********

 FCN=   8577.524     FROM HESSE     STATUS=OK           435 CALLS     3359 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.6266        .17168E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10009E-03    941.69        .20363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .98906        .88859E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    38.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.6940        3.4448        .55602E-03   -1.5153    
   6  Prefactor     10.194        27.222        .12561E-03   -1.5069    
   7  Prefactor     .10000E-03    47.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .34028        .10394E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     27.090        34.327        .76970E-04   -1.4667    
  10  Prefactor     15.857        13.693        .10057E-03   -1.4911    
  11  norm          11.383        6.2251        .11872E-03   -1.5033    
  12  Prefactor     .10000E-03    4.8676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     109.26        87.800        .38481E-04   -1.3614    
  14  Prefactor     .10000E-03    16.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .20669        .14593        .28940E-04   -1.5617    
  16  Prefactor     .10000E-03    2.5140        .14331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.0046        1.2513        .64593E-04   -1.5361    
  18  norm          .41965        1.9445        .23648E-03   -1.5578    
  19  Prefactor     .10000E-03    20.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     21.264        13.459        .86866E-04   -1.4785    
  21  Prefactor     4.6542        41.560        .18644E-03   -1.5276    
  22  Prefactor     .78204        .20712        .19587E-04   -1.5531    
  23  Prefactor     .10041E-03    8.3006        .75832E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2547        .28097        .35107E-03   -.84927    
  25  Prefactor     .95278        .13644        .19831E-03   -.94321    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26023e-10
Minuit parameter uncertainties:
  1  2.69789e-06
  2  0.0189928
  3  4.78246e-06
  4  2.38626e-05
  5  3.44488
  6  27.2551
  7  1.50768e-05
  8  1.1274e-06
  9  34.3524
  10  13.6953
  11  6.22545
  12  2.09765e-06
  13  87.9046
  14  1.43395e-05
  15  0.14593
  16  8.02915e-07
  17  1.25129
  18  1.80652
  19  3.31799e-06
  20  13.4614
  21  27.8413
  22  0.207118
  23  0.00367316
  24  0.281307
  25  0.136494
Done.

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

Extracting fit parameters...

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  1.138e+01  6.225e+00  1.000e-04  1.000e+04 ( 1.000e-12)
263        alpha:  2.178e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
264         beta:  8.363e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
265           Eb:  7.797e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  9.528e-01  1.365e-01  0.000e+00  1.000e+01 ( 1.000e+00)
501        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
502        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
499   Normalization:  1.255e+00  2.813e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.20
Ra Dec: 334.813 18.103
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 7.11e-08 +/- 3.89e-08
Energy Flux (Fixed Index): 3.03e-05 +/- 1.66e-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) = 8576.97574937
delta logL = 0.548104497608

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8576.97242057
delta logL = 0.551433300405

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.9617       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7640       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1632       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98067       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5030E+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=   8576.972     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      305 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.9643        6.0942        .60421E-03   -.89074E-04
   2  alpha         2.7645        .55200        .11222E-01    .32582E-03
   3  Normalizat    1.1632        .28657        .36256E-03   -.55000E-04
   4  Prefactor     .98063        .13912        .19574E-03   -.10961E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.96434
  alpha      = 2.76455
  Normalizat = 1.16315
  Prefactor  = 0.980634
 **********
 **   18 **HESSE 
 **********

 FCN=   8576.972     FROM HESSE     STATUS=OK            27 CALLS      332 TOTAL
                     EDM=   .65E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.9643        5.7372        .24168E-04   -1.5077    
   2  alpha         2.7645        .51943        .22445E-02    .10602    
   3  Normalizat    1.1632        .28626        .14502E-04   -.87749    
   4  Prefactor     .98063        .13907        .39148E-04   -.93378    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.54272e-12
Minuit parameter uncertainties:
  1  5.73755
  2  0.523288
  3  0.286644
  4  0.139116
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/253919': 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) = 8576.97241863
delta logL = 0.551435237279

Extracting fit parameters...

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  9.964e+00  5.738e+00  1.000e-04  1.000e+04 ( 1.000e-12)
263        alpha:  2.765e+00  5.233e-01  0.000e+00  5.000e+00 ( 1.000e+00)
264         beta:  8.363e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
265           Eb:  7.797e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  9.806e-01  1.391e-01  0.000e+00  1.000e+01 ( 1.000e+00)
501        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
502        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
499   Normalization:  1.163e+00  2.866e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.45
Ra Dec: 334.813 18.103
Photon Index (Free Index): 2.76 +/- 0.52
Photon Flux (Free Index): 1.34e-07 +/- 7.81e-08
Energy Flux (Free Index): 3.23e-05 +/- 1.43e-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/253919/cmap_HighResolution_597283201_597542401_4FGL_J2219.2+1806_daily_bin1381.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.11e-08', energy_flux2='3.23e-05', photon_flux_error='3.89e-08', dlogl='5.51e-01', energy_flux='3.03e-05', photon_flux2='1.34e-07', job_status='DONE', time_completed='2021-09-28 09:05:49.405998', photon_index_error2='0.52', photon_index2='2.76', ts='11.20', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='1.43e-05', EG='1.25', time_epoch_completed='1632845149.41', return_code='0', job_id='253919', GAL2='0.98', EG2='1.16', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='7.81e-08', ts2='12.45', photon_index='2.18' WHERE bin_id='1381' AND source_name='4FGL J2219.2+1806' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:05:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 253919: <4FGL_J2219.2+1806_daily_bin1381> in cluster <slac> Done

Job <4FGL_J2219.2+1806_daily_bin1381> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 08:50:44 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 08:50:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 08:50:46 2021
Terminated at Tue Sep 28 09:05:50 2021
Results reported at Tue Sep 28 09:05:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2+1806_daily_bin1381 334.813 18.1026 597283201 597542401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2219.2+1806 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   725.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            906 sec.

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

