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


Performing analysis on: 4FGL_J2219.2+1806_daily_bin1057
RA = 334.813, Dec = 18.1026
tmin = 513302401, tmax = 513561601
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='252389', job_status='RUN', time_executed='2021-09-28 08:45:56.350263', time_epoch_executed='1632843956.35' WHERE source_name='4FGL J2219.2+1806' and cadence='daily' and bin_id='1057'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/252389

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/252389/ft1_4FGL_J2219.2+1806_daily_bin1057.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/252389/ft2_4FGL_J2219.2+1806_daily_bin1057.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/252389/ft1_4FGL_J2219.2+1806_daily_bin1057.fits outfile=/scratch/kocevski/252389/ft1_filteredMKT_4FGL_J2219.2+1806_daily_bin1057.fits ra=334.813 dec=18.1026 rad=12.0 tmin=513302401.0 tmax=513561601.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 5.37
user 5.12
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/252389/ft2_4FGL_J2219.2+1806_daily_bin1057.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/252389/ft1_filteredMKT_4FGL_J2219.2+1806_daily_bin1057.fits evtable="EVENTS" outfile="/scratch/kocevski/252389/ft1_filtered_4FGL_J2219.2+1806_daily_bin1057.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/252389/ft1_filtered_4FGL_J2219.2+1806_daily_bin1057.fits" evtable="EVENTS" scfile=/scratch/kocevski/252389/ft2_4FGL_J2219.2+1806_daily_bin1057.fits sctable="SC_DATA" outfile=/scratch/kocevski/252389/ltcube_513302401_513561601_4FGL_J2219.2+1806_daily_bin1057.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/252389/ft2_4FGL_J2219.2+1806_daily_bin1057.fits
.....................!
real 12.01
user 11.66
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/252389/ft1_filtered_4FGL_J2219.2+1806_daily_bin1057.fits evtable="EVENTS" scfile=/scratch/kocevski/252389/ft2_4FGL_J2219.2+1806_daily_bin1057.fits sctable="SC_DATA" expcube=/scratch/kocevski/252389/ltcube_513302401_513561601_4FGL_J2219.2+1806_daily_bin1057.fits outfile=/scratch/kocevski/252389/expmap_513302401_513561601_4FGL_J2219.2+1806_daily_bin1057.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/252389/ltcube_513302401_513561601_4FGL_J2219.2+1806_daily_bin1057.fits
.....................!
real 189.64
user 185.19
sys 4.14

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/252389/ft1_filtered_4FGL_J2219.2+1806_daily_bin1057.fits scfile=/scratch/kocevski/252389/ft2_4FGL_J2219.2+1806_daily_bin1057.fits outfile=/scratch/kocevski/252389/cmap_513302401_513561601_4FGL_J2219.2+1806_daily_bin1057.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/252389/ft1_filtered_4FGL_J2219.2+1806_daily_bin1057.fits scfile=/scratch/kocevski/252389/ft2_4FGL_J2219.2+1806_daily_bin1057.fits outfile=/scratch/kocevski/252389/cmap_HighResolution_513302401_513561601_4FGL_J2219.2+1806_daily_bin1057.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.9624       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.3898       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .68849       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.193       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.9842       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.854       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .26551E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.9532       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.1693       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.5205       1.0000         .10000E-03   10000.    
    17 'norm      '    1.9304       1.0000         .10000E-03   10000.    
    18 'norm      '    3.2012       1.0000         .10000E-03   10000.    
    19 'Prefactor '    47.924       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.738       1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.518       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.2276       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.9351       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3110       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .82005       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=   8187.583     FROM MIGRAD    STATUS=CONVERGED    585 CALLS     2934 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9631        9.8336       -.17567E-05   -.75670E-03
   2  Prefactor     .10001E-03    71.086        .54117E-05** at limit **
   3  norm          1.3903        2.2167        .39428E-06   -.69910E-04
   4  Prefactor     .10000E-03    50.722       -.22847E-05** at limit **
   5  norm          .68764        1.7772        .53334E-06    .49756E-04
   6  Prefactor     .10000E-03    8.0530        .15401E-07** at limit **
   7  Prefactor     17.192        45.944        .36941E-06    .13390E-05
   8  norm          .10000E-03    .42472        .70633E-07** at limit **
   9  Prefactor     1.9826        88.619        .29033E-04   -.13738E-03
  10  Prefactor     11.856        17.550        .28449E-06    .53559E-04
  11  norm          .10000E-03    2.5107        .80584E-07** at limit **
  12  Prefactor     .10072E-03    7.8050        .99136E-06** at limit **
  13  Prefactor     .10006E-03    137.11       -.11331E-04** at limit **
  14  Prefactor     2.9551        21.631        .15726E-05    .21932E-04
  15  Prefactor     3.1691        .40596       -.12540E-07   -.21787E-02
  16  Prefactor     4.5206        4.7472       -.10634E-06   -.17949E-04
  17  norm          1.9304        1.4054        .40411E-07    .81313E-05
  18  norm          3.2013        2.2290        .88534E-07    .30284E-05
  19  Prefactor     47.924        42.379        .16474E-06    .23118E-05
  20  Prefactor     10.739        11.914       -.90449E-06   -.35883E-03
  21  Prefactor     22.522        21.945        .73440E-07    .51879E-06
  22  Prefactor     3.2275        .34417        .42454E-08   -.29983E-03
  23  Prefactor     8.9360        11.158       -.12311E-05   -.45554E-03
  24  Normalizat    1.3107        .26927       -.29982E-07   -.15862E-03
  25  Prefactor     .82013        .12405       -.64318E-06   -.14765E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.96306
  Prefactor  = 0.000100014
  norm       = 1.39029
  Prefactor  = 0.000100002
  norm       = 0.68764
  Prefactor  = 0.0001
  Prefactor  = 17.1921
  norm       = 0.0001
  Prefactor  = 1.98259
  Prefactor  = 11.8556
  norm       = 0.0001
  Prefactor  = 0.00010072
  Prefactor  = 0.000100063
  Prefactor  = 2.9551
  Prefactor  = 3.16913
  Prefactor  = 4.52058
  norm       = 1.93044
  norm       = 3.20127
  Prefactor  = 47.9243
  Prefactor  = 10.7389
  Prefactor  = 22.5219
  Prefactor  = 3.22754
  Prefactor  = 8.93599
  Normalizat = 1.31074
  Prefactor  = 0.820128
 **********
 **   18 **HESSE 
 **********

 FCN=   8187.583     FROM HESSE     STATUS=OK           439 CALLS     3373 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9631        10.100        .13388E-03   -1.5109    
   2  Prefactor     .10001E-03    72.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.3903        2.1891        .16112E-03   -1.5472    
   4  Prefactor     .10000E-03    50.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .68764        1.6163        .18867E-02   -1.5542    
   6  Prefactor     .10000E-03    8.0565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.192        45.972        .96593E-04   -1.4878    
   8  norm          .10000E-03    .43826        .11502E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.9826        92.845        .14710E-02   -1.5426    
  10  Prefactor     11.856        17.533        .11635E-03   -1.5019    
  11  norm          .10000E-03    2.5238        .13998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10072E-03    119.47        .47476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10006E-03    142.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.9551        22.070        .23632E-03   -1.5364    
  15  Prefactor     3.1691        .39998        .19296E-04   -1.5352    
  16  Prefactor     4.5206        4.7519        .18935E-03   -1.5283    
  17  norm          1.9304        1.4014        .87685E-04   -1.5430    
  18  norm          3.2013        2.2273        .10674E-03   -1.5350    
  19  Prefactor     47.924        42.470        .57923E-04   -1.4322    
  20  Prefactor     10.739        11.975        .12227E-03   -1.5052    
  21  Prefactor     22.522        21.967        .84409E-04   -1.4758    
  22  Prefactor     3.2275        .34662        .16088E-04   -1.5349    
  23  Prefactor     8.9360        11.289        .13409E-03   -1.5110    
  24  Normalizat    1.3107        .32086        .37575E-03   -.83246    
  25  Prefactor     .82013        .14818        .22900E-03   -.98991    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.97136e-09
Minuit parameter uncertainties:
  1  10.1015
  2  0.00199021
  3  2.18925
  4  0.000712796
  5  1.61637
  6  8.24427e-07
  7  46.067
  8  1.06305e-07
  9  27.179
  10  17.5407
  11  1.34557e-06
  12  0.0185803
  13  0.00598246
  14  16.1597
  15  0.399977
  16  4.75233
  17  1.40139
  18  2.2274
  19  42.4966
  20  11.9779
  21  21.9744
  22  0.34662
  23  11.292
  24  0.321345
  25  0.148248
Done.

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

Extracting fit parameters...

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  1.000e-04  1.346e-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.201e-01  1.482e-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.311e+00  3.213e-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: 6.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.90e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/252389/likelihoodResults_513302401_513561601_4FGL_J2219.2+1806_daily_bin1057.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) = 8187.58525674
delta logL = -0.0018802859986

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8187.51133817
delta logL = 0.0720382798718

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8187.511     FROM MIGRAD    STATUS=FAILED       100 CALLS      332 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .18174        53.103        .76595E-03    .10253E-01
   2  alpha         4.3111        3.1721        .74085E-01    .28603E-03
   3  Normalizat    1.2680        .17115        .38121E-03   -.13301E-04
   4  Prefactor     .83275        .80246E-01    .22746E-03   -.20592E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8187.511     FROM SIMPLEX   STATUS=UNCHANGED     88 CALLS      420 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .18174        53.103        .11295E-03    .10253E-01
   2  alpha         4.3111        3.1721        .57974E-02    .28603E-03
   3  Normalizat    1.2680        .17115        .22900E-03   -.13301E-04
   4  Prefactor     .83275        .80246E-01    .47325E-04   -.20592E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8187.511     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      452 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .18174        2.7684        .15319E-03   -.87052E-04
   2  alpha         4.3111        4.6549        .14817E-01   -.89464E-06
   3  Normalizat    1.2680        .31045        .15248E-04   -.13420E-04
   4  Prefactor     .83275        .14807        .90984E-05   -.20742E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.181742
  alpha      = 4.31113
  Normalizat = 1.26805
  Prefactor  = 0.832746
 **********
 **   18 **HESSE 
 **********

 FCN=   8187.511     FROM HESSE     STATUS=OK            27 CALLS      479 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .18174        1.1392        .61276E-05   -1.5623    
   2  alpha         4.3111        4.2072        .59268E-03    .81024    
   3  Normalizat    1.2680        .31038        .30497E-05   -.84525    
   4  Prefactor     .83275        .14820        .18197E-05   -.98532    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4038e-12
Minuit parameter uncertainties:
  1  0.90982
  2  2.59598
  3  0.310831
  4  0.148273
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/252389': 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) = 8187.51133748
delta logL = 0.0720389667413

Extracting fit parameters...

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  1.817e-01  9.098e-01  1.000e-04  1.000e+04 ( 1.000e-12)
263        alpha:  4.311e+00  2.596e+00  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.327e-01  1.483e-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.268e+00  3.108e-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/252389/cmap_HighResolution_513302401_513561601_4FGL_J2219.2+1806_daily_bin1057.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.90e-05', job_status='DONE', photon_flux_upper_limit='6.82e-08', time_completed='2021-09-28 08:59:57.646844', job_id='252389', GAL2='0.83', fit_tolerance='1e-08', EG2='1.27', EG='1.31', time_epoch_completed='1632844797.65', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='7.20e-02', ts2='0.16', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1057' AND source_name='4FGL J2219.2+1806' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 08:59:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 252389: <4FGL_J2219.2+1806_daily_bin1057> in cluster <slac> Done

Job <4FGL_J2219.2+1806_daily_bin1057> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 08:45:37 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 08:45:38 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:45:38 2021
Terminated at Tue Sep 28 08:59:58 2021
Results reported at Tue Sep 28 08:59:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2+1806_daily_bin1057 334.813 18.1026 513302401 513561601 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 :                                   838.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             338.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            861 sec.

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

