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


Performing analysis on: 4FGL_J2219.2+1806_daily_bin1519
RA = 334.813, Dec = 18.1026
tmin = 633052801, tmax = 633312001
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='254128', job_status='RUN', time_executed='2021-09-28 08:52:58.714319', time_epoch_executed='1632844378.71' WHERE source_name='4FGL J2219.2+1806' and cadence='daily' and bin_id='1519'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/254128

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/254128/ft1_4FGL_J2219.2+1806_daily_bin1519.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/254128/ft2_4FGL_J2219.2+1806_daily_bin1519.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/254128/ft1_4FGL_J2219.2+1806_daily_bin1519.fits outfile=/scratch/kocevski/254128/ft1_filteredMKT_4FGL_J2219.2+1806_daily_bin1519.fits ra=334.813 dec=18.1026 rad=12.0 tmin=633052801.0 tmax=633312001.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.59
user 3.37
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/254128/ft2_4FGL_J2219.2+1806_daily_bin1519.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/254128/ft1_filteredMKT_4FGL_J2219.2+1806_daily_bin1519.fits evtable="EVENTS" outfile="/scratch/kocevski/254128/ft1_filtered_4FGL_J2219.2+1806_daily_bin1519.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/254128/ft1_filtered_4FGL_J2219.2+1806_daily_bin1519.fits" evtable="EVENTS" scfile=/scratch/kocevski/254128/ft2_4FGL_J2219.2+1806_daily_bin1519.fits sctable="SC_DATA" outfile=/scratch/kocevski/254128/ltcube_633052801_633312001_4FGL_J2219.2+1806_daily_bin1519.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/254128/ft2_4FGL_J2219.2+1806_daily_bin1519.fits
.....................!
real 11.80
user 11.47
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/254128/ft1_filtered_4FGL_J2219.2+1806_daily_bin1519.fits evtable="EVENTS" scfile=/scratch/kocevski/254128/ft2_4FGL_J2219.2+1806_daily_bin1519.fits sctable="SC_DATA" expcube=/scratch/kocevski/254128/ltcube_633052801_633312001_4FGL_J2219.2+1806_daily_bin1519.fits outfile=/scratch/kocevski/254128/expmap_633052801_633312001_4FGL_J2219.2+1806_daily_bin1519.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/254128/ltcube_633052801_633312001_4FGL_J2219.2+1806_daily_bin1519.fits
.....................!
real 190.90
user 185.16
sys 5.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
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/254128/ft1_filtered_4FGL_J2219.2+1806_daily_bin1519.fits scfile=/scratch/kocevski/254128/ft2_4FGL_J2219.2+1806_daily_bin1519.fits outfile=/scratch/kocevski/254128/cmap_633052801_633312001_4FGL_J2219.2+1806_daily_bin1519.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/254128/ft1_filtered_4FGL_J2219.2+1806_daily_bin1519.fits scfile=/scratch/kocevski/254128/ft2_4FGL_J2219.2+1806_daily_bin1519.fits outfile=/scratch/kocevski/254128/cmap_HighResolution_633052801_633312001_4FGL_J2219.2+1806_daily_bin1519.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/254128/ft1_filtered_4FGL_J2219.2+1806_daily_bin1519.fits evtable="EVENTS" scfile=/scratch/kocevski/254128/ft2_4FGL_J2219.2+1806_daily_bin1519.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/254128/Model_4FGL_J2219.2+1806_daily_bin1519.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/254128/ft1_filtered_4FGL_J2219.2+1806_daily_bin1519.fits.....................!
real 78.12
user 76.76
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/254128/ft1_filtered_4FGL_J2219.2+1806_daily_bin1519.fits', '/scratch/kocevski/254128/ft2_4FGL_J2219.2+1806_daily_bin1519.fits', expMap='/scratch/kocevski/254128/expmap_633052801_633312001_4FGL_J2219.2+1806_daily_bin1519.fits', expCube='/scratch/kocevski/254128/ltcube_633052801_633312001_4FGL_J2219.2+1806_daily_bin1519.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/254128/Model_4FGL_J2219.2+1806_daily_bin1519.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/254128/ft1_filtered_4FGL_J2219.2+1806_daily_bin1519.fits
Spacecraft file(s): /scratch/kocevski/254128/ft2_4FGL_J2219.2+1806_daily_bin1519.fits
Exposure map: /scratch/kocevski/254128/expmap_633052801_633312001_4FGL_J2219.2+1806_daily_bin1519.fits
Exposure cube: /scratch/kocevski/254128/ltcube_633052801_633312001_4FGL_J2219.2+1806_daily_bin1519.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/254128/Model_4FGL_J2219.2+1806_daily_bin1519.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) = 7772.52024512

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    42.633       1.0000         .10000E-03   10000.    
     3 'norm      '    2.0013       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.3798       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .74222       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.7665       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    98.754       1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.841       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .54558       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .17805E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.6978       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11109E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .43885       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10971E-02   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1659       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .80675       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=   7772.512     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     2987 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.0254       -.22644E-06** at limit **
   2  Prefactor     42.580        75.485       -.75667E-04   -.74090E-06
   3  norm          2.0014        2.3168        .63566E-06   -.48882E-03
   4  Prefactor     .10000E-03    34.953       -.23657E-05** at limit **
   5  norm          1.3799        1.4880        .63527E-07    .23900E-03
   6  Prefactor     .10000E-03    14.931       -.72951E-05** at limit **
   7  Prefactor     .10000E-03    22.984        .94261E-05** at limit **
   8  norm          .74229        .62495       -.59668E-07   -.22807E-03
   9  Prefactor     7.7322        39.735       -.81876E-04   -.14977E-05
  10  Prefactor     .10000E-03    9.8467        .95199E-05** at limit **
  11  norm          .10000E-03    2.1336        .40756E-07** at limit **
  12  Prefactor     .10000E-03    21.443        .55512E-05** at limit **
  13  Prefactor     98.784        102.40        .29241E-04    .19073E-04
  14  Prefactor     27.849        13.562       -.13778E-05   -.34402E-03
  15  Prefactor     .54565        .21085        .87324E-08    .19627E-03
  16  Prefactor     .10000E-03    3.7010        .10028E-06** at limit **
  17  norm          .10000E-03    .43528       -.44004E-06** at limit **
  18  norm          4.6980        2.1874       -.51797E-07    .84189E-03
  19  Prefactor     .10000E-03    6.3027        .13398E-05** at limit **
  20  Prefactor     .10006E-03    4.2523       -.19720E-05** at limit **
  21  Prefactor     .10000E-03    8.2165       -.68426E-05** at limit **
  22  Prefactor     .43890        .14238       -.35837E-07    .19486E-02
  23  Prefactor     .10001E-03    5.0803       -.79073E-06** at limit **
  24  Normalizat    1.1655        .21275        .21505E-05    .26944E-03
  25  Prefactor     .80696        .10344        .14216E-05    .36140E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 42.5798
  norm       = 2.0014
  Prefactor  = 0.0001
  norm       = 1.37992
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.742288
  Prefactor  = 7.7322
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 98.7842
  Prefactor  = 27.8487
  Prefactor  = 0.545646
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.69798
  Prefactor  = 0.0001
  Prefactor  = 0.000100058
  Prefactor  = 0.0001
  Prefactor  = 0.438901
  Prefactor  = 0.000100009
  Normalizat = 1.16549
  Prefactor  = 0.80696
 **********
 **   18 **HESSE 
 **********

 FCN=   7772.512     FROM HESSE     STATUS=OK           433 CALLS     3420 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.0765        .17270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     42.580        75.470        .30698E-03   -1.4402    
   3  norm          2.0014        2.3005        .13503E-03   -1.5425    
   4  Prefactor     .10000E-03    34.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.3799        1.4907        .10870E-03   -1.5473    
   6  Prefactor     .10000E-03    14.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    23.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .74229        .60523        .61830E-03   -1.5536    
   9  Prefactor     7.7322        40.021        .14389E-03   -1.5152    
  10  Prefactor     .10000E-03    9.8662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.1470        .12572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     98.784        102.31        .40452E-04   -1.3717    
  14  Prefactor     27.849        13.689        .37963E-03   -1.4652    
  15  Prefactor     .54565        .21006        .23726E-04   -1.5560    
  16  Prefactor     .10000E-03    3.7091        .16562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.7187        .11295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.6980        2.1605        .85092E-04   -1.5274    
  19  Prefactor     .10000E-03    6.3033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10006E-03    18.313        .34638E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.2247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .43890        .14211        .18072E-04   -1.5575    
  23  Prefactor     .10001E-03    44.972        .38482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1655        .25382        .30901E-03   -.87676    
  25  Prefactor     .80696        .12395        .18661E-03   -.99472    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.89388e-09
Minuit parameter uncertainties:
  1  9.70252e-06
  2  75.6403
  3  2.30065
  4  9.08436e-06
  5  1.49075
  6  0.000108872
  7  2.34746e-05
  8  0.605233
  9  35.2193
  10  0.000139881
  11  4.68274e-06
  12  0.000118432
  13  102.497
  14  13.6905
  15  0.210059
  16  5.88105e-07
  17  7.36992e-05
  18  2.16054
  19  2.19965e-06
  20  0.002053
  21  5.69318e-06
  22  0.142111
  23  0.00129574
  24  0.254088
  25  0.123992
Done.

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

Extracting fit parameters...

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  1.000e-04  4.683e-06  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:  8.070e-01  1.240e-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.165e+00  2.541e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 334.813 18.103
Photon Flux Upper Limit: 5.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.44e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/254128/likelihoodResults_633052801_633312001_4FGL_J2219.2+1806_daily_bin1519.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) = 7772.51393019
delta logL = -0.00221578938636

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7772.24166908
delta logL = 0.27004531752

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .83224E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0991       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82878       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.

 FCN=   7772.242     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      390 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .83268E-01    4.3875        .75527E-02    .41728E-02
   2  alpha         5.0000        2.7052        .46383    ** at limit **
   3  Normalizat    1.0991        .87425E-01    .71623E-01   -.21616E-03
   4  Prefactor     .82879        .36488E-01    .44091E-01   -.42228E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0832683
  alpha      = 5
  Normalizat = 1.0991
  Prefactor  = 0.828787
 **********
 **   18 **HESSE 
 **********

 FCN=   7772.242     FROM HESSE     STATUS=OK            31 CALLS      421 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .83268E-01    .12348        .33119E-04   -1.5650    
   2  alpha         5.0000        3.6900        .10449        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0991        .25259        .31693E-03   -.89781    
   4  Prefactor     .82879        .12553        .18438E-03   -.98676    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34355e-10
Minuit parameter uncertainties:
  1  0.123477
  2  3.68576e-05
  3  0.252864
  4  0.125577
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/254128': 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) = 7772.24166886
delta logL = 0.27004554056

Extracting fit parameters...

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  8.327e-02  1.235e-01  1.000e-04  1.000e+04 ( 1.000e-12)
263        alpha:  5.000e+00  3.686e-05  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:  8.288e-01  1.256e-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.099e+00  2.529e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 334.813 18.103

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/254128/cmap_HighResolution_633052801_633312001_4FGL_J2219.2+1806_daily_bin1519.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.44e-05', job_status='DONE', photon_flux_upper_limit='5.74e-08', time_completed='2021-09-28 09:06:03.061532', job_id='254128', GAL2='0.83', fit_tolerance='1e-08', EG2='1.10', EG='1.17', time_epoch_completed='1632845163.06', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='2.70e-01', ts2='0.60', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1519' AND source_name='4FGL J2219.2+1806' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:06:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 254128: <4FGL_J2219.2+1806_daily_bin1519> in cluster <slac> Done

Job <4FGL_J2219.2+1806_daily_bin1519> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 08:51:02 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 08:51:04 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:51:04 2021
Terminated at Tue Sep 28 09:06:03 2021
Results reported at Tue Sep 28 09:06:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2+1806_daily_bin1519 334.813 18.1026 633052801 633312001 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 :                                   780.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             325.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            901 sec.

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

