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


Performing analysis on: 4FGL_J2219.2+1806_daily_bin994
RA = 334.813, Dec = 18.1026
tmin = 496972801, tmax = 497232001
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='252292', job_status='RUN', time_executed='2021-09-28 08:45:41.168925', time_epoch_executed='1632843941.17' WHERE source_name='4FGL J2219.2+1806' and cadence='daily' and bin_id='994'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/252292

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/252292/ft1_4FGL_J2219.2+1806_daily_bin994.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/252292/ft2_4FGL_J2219.2+1806_daily_bin994.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/252292/ft1_4FGL_J2219.2+1806_daily_bin994.fits outfile=/scratch/kocevski/252292/ft1_filteredMKT_4FGL_J2219.2+1806_daily_bin994.fits ra=334.813 dec=18.1026 rad=12.0 tmin=496972801.0 tmax=497232001.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.23
user 4.93
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/252292/ft1_filtered_4FGL_J2219.2+1806_daily_bin994.fits" evtable="EVENTS" scfile=/scratch/kocevski/252292/ft2_4FGL_J2219.2+1806_daily_bin994.fits sctable="SC_DATA" outfile=/scratch/kocevski/252292/ltcube_496972801_497232001_4FGL_J2219.2+1806_daily_bin994.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/252292/ft2_4FGL_J2219.2+1806_daily_bin994.fits
.....................!
real 17.49
user 17.10
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/252292/ft1_filtered_4FGL_J2219.2+1806_daily_bin994.fits evtable="EVENTS" scfile=/scratch/kocevski/252292/ft2_4FGL_J2219.2+1806_daily_bin994.fits sctable="SC_DATA" expcube=/scratch/kocevski/252292/ltcube_496972801_497232001_4FGL_J2219.2+1806_daily_bin994.fits outfile=/scratch/kocevski/252292/expmap_496972801_497232001_4FGL_J2219.2+1806_daily_bin994.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/252292/ltcube_496972801_497232001_4FGL_J2219.2+1806_daily_bin994.fits
.....................!
real 194.14
user 188.90
sys 4.81

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/252292/ft1_filtered_4FGL_J2219.2+1806_daily_bin994.fits scfile=/scratch/kocevski/252292/ft2_4FGL_J2219.2+1806_daily_bin994.fits outfile=/scratch/kocevski/252292/cmap_496972801_497232001_4FGL_J2219.2+1806_daily_bin994.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.58
user 0.42
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/252292/ft1_filtered_4FGL_J2219.2+1806_daily_bin994.fits scfile=/scratch/kocevski/252292/ft2_4FGL_J2219.2+1806_daily_bin994.fits outfile=/scratch/kocevski/252292/cmap_HighResolution_496972801_497232001_4FGL_J2219.2+1806_daily_bin994.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.58
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.091       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.9133       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.2999       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    63.636       1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.266       1.0000         .10000E-03   10000.    
    11 'norm      '    9.9007       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.5510       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.5511       1.0000         .10000E-03   10000.    
    19 'Prefactor '    55.791       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.5997       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.4809       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1108       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .86745       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=   6720.197     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     2864 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.091        12.703        .13580E-07   -.85789E-05
   2  Prefactor     .10000E-03    56.934        .18770E-05** at limit **
   3  norm          3.9115        3.3907        .86203E-07   -.67654E-04
   4  Prefactor     .10001E-03    48.329        .80418E-05** at limit **
   5  norm          2.3002        5.1912       -.16076E-07   -.38760E-03
   6  Prefactor     .10000E-03    34.583       -.23997E-05** at limit **
   7  Prefactor     .10000E-03    16.586        .26099E-06** at limit **
   8  norm          .10000E-03    .43490        .23611E-07** at limit **
   9  Prefactor     63.639        47.839        .94196E-06    .66849E-04
  10  Prefactor     19.267        19.785        .19840E-06    .14822E-04
  11  norm          9.9009        6.9453        .74704E-07    .26020E-05
  12  Prefactor     .10000E-03    10.978       -.10819E-06** at limit **
  13  Prefactor     .10002E-03    59.624       -.86579E-05** at limit **
  14  Prefactor     .10000E-03    4.1565       -.13577E-08** at limit **
  15  Prefactor     2.5510        .42638        .35831E-08   -.21571E-04
  16  Prefactor     .10000E-03    4.5242        .15853E-07** at limit **
  17  norm          .10000E-03    .52663        .35625E-07** at limit **
  18  norm          6.5514        3.4948       -.28225E-06   -.86256E-04
  19  Prefactor     55.793        53.664        .10078E-05    .48075E-04
  20  Prefactor     4.6001        14.867        .48789E-05   -.41659E-03
  21  Prefactor     .10000E-03    8.2132       -.19510E-09** at limit **
  22  Prefactor     3.4808        .39360       -.13894E-07   -.60344E-04
  23  Prefactor     .10000E-03    8.7632        .98877E-09** at limit **
  24  Normalizat    1.1107        .30277       -.64805E-06   -.66392E-05
  25  Prefactor     .86741        .14086       -.18901E-06   -.69401E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.0912
  Prefactor  = 0.000100001
  norm       = 3.91146
  Prefactor  = 0.000100014
  norm       = 2.3002
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 63.6388
  Prefactor  = 19.267
  norm       = 9.9009
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 2.55101
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.55142
  Prefactor  = 55.7932
  Prefactor  = 4.60005
  Prefactor  = 0.0001
  Prefactor  = 3.48083
  Prefactor  = 0.0001
  Normalizat = 1.11073
  Prefactor  = 0.867411
 **********
 **   18 **HESSE 
 **********

 FCN=   6720.197     FROM HESSE     STATUS=OK           427 CALLS     3291 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.091        12.699        .10310E-03   -1.4931    
   2  Prefactor     .10000E-03    57.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.9115        3.3890        .13328E-03   -1.5312    
   4  Prefactor     .10001E-03    51.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.3002        5.3254        .27061E-03   -1.5405    
   6  Prefactor     .10000E-03    34.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .75500        .10481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     63.639        47.944        .50305E-04   -1.4111    
  10  Prefactor     19.267        19.812        .91249E-04   -1.4830    
  11  norm          9.9009        6.9431        .12735E-03   -1.5079    
  12  Prefactor     .10000E-03    10.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10002E-03    63.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.1601        .16322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.5510        .42790        .20776E-04   -1.5389    
  16  Prefactor     .10000E-03    4.5309        .17028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .87242        .11531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.5514        3.5368        .10314E-03   -1.5196    
  19  Prefactor     55.793        53.944        .53705E-04   -1.4213    
  20  Prefactor     4.6001        17.480        .93839E-03   -1.5279    
  21  Prefactor     .10000E-03    8.2150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.4808        .39637        .15991E-04   -1.5335    
  23  Prefactor     .10000E-03    8.8086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1107        .35887        .41673E-03   -.89408    
  25  Prefactor     .86741        .16756        .22567E-03   -.97289    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9171e-09
Minuit parameter uncertainties:
  1  12.7017
  2  0.000408428
  3  3.3892
  4  0.00167581
  5  5.32654
  6  0.000398606
  7  3.05413e-05
  8  8.58462e-07
  9  47.9734
  10  19.8191
  11  6.94363
  12  1.12213e-05
  13  0.00197313
  14  4.9532e-07
  15  0.427898
  16  9.13205e-07
  17  4.85777e-08
  18  3.53689
  19  53.991
  20  17.4998
  21  3.55656e-07
  22  0.396375
  23  1.49959e-06
  24  0.359663
  25  0.167659
Done.

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

Extracting fit parameters...

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  9.901e+00  6.944e+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:  8.674e-01  1.677e-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.111e+00  3.597e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.22
Ra Dec: 334.813 18.103
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 6.19e-08 +/- 4.34e-08
Energy Flux (Fixed Index): 2.63e-05 +/- 1.85e-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) = 6720.18318231
delta logL = 0.0137850060119

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6720.18198598
delta logL = 0.0149813364778

Fit tolerance = 1e-08

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

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

 FCN=   6720.182     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      236 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.221        7.4037        .12533E-03   -.54769E-03
   2  alpha         2.0809        .55629        .14954E-01   -.72338E-04
   3  Normalizat    1.1158        .34018        .41591E-03    .10934E-04
   4  Prefactor     .86591        .16570        .22585E-03    .24112E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.2205
  alpha      = 2.08086
  Normalizat = 1.11583
  Prefactor  = 0.865906
 **********
 **   18 **HESSE 
 **********

 FCN=   6720.182     FROM HESSE     STATUS=OK            23 CALLS      259 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.221        7.3558        .50134E-05   -1.5068    
   2  alpha         2.0809        .55268        .59818E-03   -.16845    
   3  Normalizat    1.1158        .34049        .16636E-04   -.89245    
   4  Prefactor     .86591        .16585        .90339E-05   -.97343    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.6911e-10
Minuit parameter uncertainties:
  1  7.35644
  2  0.557418
  3  0.341161
  4  0.16595
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/252292': 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) = 6720.18198597
delta logL = 0.0149813459957

Extracting fit parameters...

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  1.022e+01  7.356e+00  1.000e-04  1.000e+04 ( 1.000e-12)
263        alpha:  2.081e+00  5.574e-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:  8.659e-01  1.659e-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.116e+00  3.412e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.21
Ra Dec: 334.813 18.103
Photon Index (Free Index): 2.08 +/- 0.56
Photon Flux (Free Index): 5.73e-08 +/- 4.86e-08
Energy Flux (Free Index): 2.82e-05 +/- 2.30e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/252292/cmap_HighResolution_496972801_497232001_4FGL_J2219.2+1806_daily_bin994.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.19e-08', energy_flux2='2.82e-05', photon_flux_error='4.34e-08', dlogl='1.50e-02', energy_flux='2.63e-05', photon_flux2='5.73e-08', job_status='DONE', time_completed='2021-09-28 08:56:54.017890', photon_index_error2='0.56', photon_index2='2.08', ts='5.22', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='2.30e-05', EG='1.11', time_epoch_completed='1632844614.02', return_code='0', job_id='252292', GAL2='0.87', EG2='1.12', return_code2='0', energy_flux_error='1.85e-05', photon_flux_error2='4.86e-08', ts2='5.21', photon_index='2.18' WHERE bin_id='994' AND source_name='4FGL J2219.2+1806' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 08:56:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 252292: <4FGL_J2219.2+1806_daily_bin994> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2+1806_daily_bin994 334.813 18.1026 496972801 497232001 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 :                                   670.56 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             389.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   683 sec.
    Turnaround time :                            685 sec.

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

