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


Performing analysis on: 4FGL_J2219.2+1806_daily_bin513
RA = 334.813, Dec = 18.1026
tmin = 372297601, tmax = 372556801
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='248214', job_status='RUN', time_executed='2021-09-28 08:30:37.728279', time_epoch_executed='1632843037.73' WHERE source_name='4FGL J2219.2+1806' and cadence='daily' and bin_id='513'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/248214

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/248214/ft1_4FGL_J2219.2+1806_daily_bin513.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/248214/ft2_4FGL_J2219.2+1806_daily_bin513.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/248214/ft1_4FGL_J2219.2+1806_daily_bin513.fits outfile=/scratch/kocevski/248214/ft1_filteredMKT_4FGL_J2219.2+1806_daily_bin513.fits ra=334.813 dec=18.1026 rad=12.0 tmin=372297601.0 tmax=372556801.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.30
user 3.10
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/248214/ft1_filtered_4FGL_J2219.2+1806_daily_bin513.fits evtable="EVENTS" scfile=/scratch/kocevski/248214/ft2_4FGL_J2219.2+1806_daily_bin513.fits sctable="SC_DATA" expcube=/scratch/kocevski/248214/ltcube_372297601_372556801_4FGL_J2219.2+1806_daily_bin513.fits outfile=/scratch/kocevski/248214/expmap_372297601_372556801_4FGL_J2219.2+1806_daily_bin513.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/248214/ltcube_372297601_372556801_4FGL_J2219.2+1806_daily_bin513.fits
.....................!
real 191.40
user 185.47
sys 5.62

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/248214/ft1_filtered_4FGL_J2219.2+1806_daily_bin513.fits scfile=/scratch/kocevski/248214/ft2_4FGL_J2219.2+1806_daily_bin513.fits outfile=/scratch/kocevski/248214/cmap_372297601_372556801_4FGL_J2219.2+1806_daily_bin513.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/248214/ft1_filtered_4FGL_J2219.2+1806_daily_bin513.fits scfile=/scratch/kocevski/248214/ft2_4FGL_J2219.2+1806_daily_bin513.fits outfile=/scratch/kocevski/248214/cmap_HighResolution_372297601_372556801_4FGL_J2219.2+1806_daily_bin513.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.741       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.1198       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.5225       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12069E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    40.593       1.0000         .10000E-03   10000.    
     8 'norm      '    6.4069       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.148       1.0000         .10000E-03   10000.    
    11 'norm      '    6.2085       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10117E-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.8253       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.3252       1.0000         .10000E-03   10000.    
    17 'norm      '    .53130       1.0000         .10000E-03   10000.    
    18 'norm      '    1.0846       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .41868       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0649       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98784       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=   8888.932     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     2875 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.741        9.5416       -.10048E-05   -.13028E-02
   2  Prefactor     .10000E-03    43.385       -.87289E-05** at limit **
   3  norm          8.1159        3.1212       -.44908E-07   -.70004E-03
   4  Prefactor     .10000E-03    52.384        .89635E-05** at limit **
   5  norm          4.5226        3.0123       -.12369E-06   -.27834E-03
   6  Prefactor     .10000E-03    61.533        .20436E-04** at limit **
   7  Prefactor     40.579        49.995       -.13563E-04    .10155E-03
   8  norm          6.4064        1.4759        .31152E-07   -.34841E-03
   9  Prefactor     .10000E-03    20.393       -.11196E-05** at limit **
  10  Prefactor     13.150        14.437       -.98913E-06   -.65393E-03
  11  norm          6.2090        5.5943       -.34947E-06   -.21714E-03
  12  Prefactor     .10000E-03    28.978        .85423E-05** at limit **
  13  Prefactor     .10000E-03    37.326       -.12827E-04** at limit **
  14  Prefactor     .10000E-03    7.2702        .11085E-07** at limit **
  15  Prefactor     2.8251        .36655       -.17583E-07   -.11228E-02
  16  Prefactor     3.3254        5.2939       -.10440E-05   -.10645E-03
  17  norm          .53152        .79174       -.16070E-06   -.16123E-02
  18  norm          1.0847        1.1017       -.27846E-07   -.10871E-05
  19  Prefactor     .10000E-03    86.039       -.18109E-04** at limit **
  20  Prefactor     .10000E-03    4.2627       -.30579E-07** at limit **
  21  Prefactor     .10000E-03    11.066        .31852E-07** at limit **
  22  Prefactor     .41861        .15986       -.13215E-07    .83118E-03
  23  Prefactor     .10000E-03    4.4374       -.23315E-07** at limit **
  24  Normalizat    1.0648        .23767        .11014E-05   -.75275E-04
  25  Prefactor     .98783        .11730        .53990E-06   -.11969E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.7411
  Prefactor  = 0.000100001
  norm       = 8.11594
  Prefactor  = 0.000100001
  norm       = 4.52255
  Prefactor  = 0.000100003
  Prefactor  = 40.5794
  norm       = 6.4064
  Prefactor  = 0.0001
  Prefactor  = 13.1496
  norm       = 6.20899
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.82509
  Prefactor  = 3.32544
  norm       = 0.531516
  norm       = 1.0847
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.41861
  Prefactor  = 0.0001
  Normalizat = 1.06476
  Prefactor  = 0.987833
 **********
 **   18 **HESSE 
 **********

 FCN=   8888.932     FROM HESSE     STATUS=OK           423 CALLS     3298 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.741        9.7532        .56111E-03   -1.4994    
   2  Prefactor     .10000E-03    43.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.1159        3.1185        .97449E-04   -1.5138    
   4  Prefactor     .10000E-03    52.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.5226        3.0121        .12901E-03   -1.5283    
   6  Prefactor     .10000E-03    61.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     40.579        49.726        .62914E-04   -1.4433    
   8  norm          6.4064        1.4762        .52501E-04   -1.5202    
   9  Prefactor     .10000E-03    20.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.150        14.615        .55233E-03   -1.4983    
  11  norm          6.2090        5.5991        .16111E-03   -1.5210    
  12  Prefactor     .10000E-03    29.443        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    37.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.3329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.8251        .36769        .19478E-04   -1.5372    
  16  Prefactor     3.3254        5.2924        .22198E-03   -1.5343    
  17  norm          .53152        .65289        .99394E-03   -1.5562    
  18  norm          1.0847        1.0961        .97131E-04   -1.5500    
  19  Prefactor     .10000E-03    86.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.2995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .41861        .15838        .22053E-04   -1.5579    
  23  Prefactor     .10000E-03    4.4636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0648        .27772        .38642E-03   -.90891    
  25  Prefactor     .98783        .13799        .20490E-03   -.93136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46612e-09
Minuit parameter uncertainties:
  1  9.75446
  2  0.000324728
  3  3.11854
  4  0.000370994
  5  3.01216
  6  0.000895567
  7  49.7765
  8  1.47617
  9  1.56367e-05
  10  14.6194
  11  5.59952
  12  0.000432448
  13  0.000442036
  14  3.71636e-06
  15  0.36769
  16  5.29314
  17  0.652896
  18  1.09611
  19  0.0010372
  20  4.17657e-06
  21  3.67042e-06
  22  0.158377
  23  4.72089e-06
  24  0.278104
  25  0.138043
Done.

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

Extracting fit parameters...

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  6.209e+00  5.600e+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.878e-01  1.380e-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.065e+00  2.781e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.86
Ra Dec: 334.813 18.103
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 3.88e-08 +/- 3.50e-08
Energy Flux (Fixed Index): 1.65e-05 +/- 1.49e-05

TS (Fixed Index): 1.86
Ra Dec: 334.813 18.103
Photon Flux Upper Limit: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.94e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/248214/likelihoodResults_372297601_372556801_4FGL_J2219.2+1806_daily_bin513.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): 0
logL (Free Index) = 8888.53009416
delta logL = 0.402011813101

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8888.52780361
delta logL = 0.404302365203

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8701       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0390       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0024       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0093       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=   8888.528     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      245 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8682        44.451        .51280E-02    .15690E-02
   2  alpha         3.0399        3.9920        .42430        .13538E-03
   3  Normalizat    1.0024        .71246E-01    .89577E-01   -.80853E-04
   4  Prefactor     1.0092        .33688E-01    .43436E-01   -.13565E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.86823
  alpha      = 3.03985
  Normalizat = 1.00243
  Prefactor  = 1.00924
 **********
 **   18 **HESSE 
 **********

 FCN=   8888.528     FROM HESSE     STATUS=OK            31 CALLS      276 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8682        8.1080        .12450E-03   -1.5315    
   2  alpha         3.0399        1.5029        .14679E-01    .21766    
   3  Normalizat    1.0024        .28502        .39667E-03   -.92949    
   4  Prefactor     1.0092        .14305        .20292E-03   -.92422    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.84142e-10
Minuit parameter uncertainties:
  1  8.11033
  2  1.61907
  3  0.285452
  4  0.1431
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/248214': 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) = 8888.52780299
delta logL = 0.40430298605

Extracting fit parameters...

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  3.868e+00  8.110e+00  1.000e-04  1.000e+04 ( 1.000e-12)
263        alpha:  3.040e+00  1.619e+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:  1.009e+00  1.431e-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.002e+00  2.855e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.73
Ra Dec: 334.813 18.103
Photon Index (Free Index): 3.04 +/- 1.62
Photon Flux (Free Index): 7.84e-08 +/- 6.76e-08
Energy Flux (Free Index): 1.62e-05 +/- 1.23e-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/248214/cmap_HighResolution_372297601_372556801_4FGL_J2219.2+1806_daily_bin513.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.94e-05', comment='SUCCESS', photon_flux='3.88e-08', energy_flux2='1.62e-05', photon_flux_error='3.50e-08', dlogl='4.04e-01', energy_flux='1.65e-05', photon_flux2='7.84e-08', job_status='DONE', time_completed='2021-09-28 08:44:45.196609', photon_index_error2='1.62', photon_index2='3.04', ts='1.86', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.16e-07', energy_flux_error2='1.23e-05', EG='1.06', time_epoch_completed='1632843885.2', return_code='0', job_id='248214', GAL2='1.01', EG2='1.00', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='6.76e-08', ts2='2.73', photon_index='2.18' WHERE bin_id='513' AND source_name='4FGL J2219.2+1806' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 08:44:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 248214: <4FGL_J2219.2+1806_daily_bin513> in cluster <slac> Done

Job <4FGL_J2219.2+1806_daily_bin513> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 08:30:22 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 08:30:24 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:30:24 2021
Terminated at Tue Sep 28 08:44:45 2021
Results reported at Tue Sep 28 08:44:45 2021

Your job looked like:

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

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

