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


Performing analysis on: 4FGL_J2219.2+1806_daily_bin552
RA = 334.813, Dec = 18.1026
tmin = 382406401, tmax = 382665601
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='248272', job_status='RUN', time_executed='2021-09-28 08:30:38.744369', time_epoch_executed='1632843038.74' WHERE source_name='4FGL J2219.2+1806' and cadence='daily' and bin_id='552'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/248272

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/248272/ft1_4FGL_J2219.2+1806_daily_bin552.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/248272/ft2_4FGL_J2219.2+1806_daily_bin552.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/248272/ft1_4FGL_J2219.2+1806_daily_bin552.fits outfile=/scratch/kocevski/248272/ft1_filteredMKT_4FGL_J2219.2+1806_daily_bin552.fits ra=334.813 dec=18.1026 rad=12.0 tmin=382406401.0 tmax=382665601.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 4.68
user 4.45
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/248272/ft1_filtered_4FGL_J2219.2+1806_daily_bin552.fits evtable="EVENTS" scfile=/scratch/kocevski/248272/ft2_4FGL_J2219.2+1806_daily_bin552.fits sctable="SC_DATA" expcube=/scratch/kocevski/248272/ltcube_382406401_382665601_4FGL_J2219.2+1806_daily_bin552.fits outfile=/scratch/kocevski/248272/expmap_382406401_382665601_4FGL_J2219.2+1806_daily_bin552.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/248272/ltcube_382406401_382665601_4FGL_J2219.2+1806_daily_bin552.fits
.....................!
real 189.40
user 185.02
sys 4.06

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/248272/ft1_filtered_4FGL_J2219.2+1806_daily_bin552.fits scfile=/scratch/kocevski/248272/ft2_4FGL_J2219.2+1806_daily_bin552.fits outfile=/scratch/kocevski/248272/cmap_382406401_382665601_4FGL_J2219.2+1806_daily_bin552.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/248272/ft1_filtered_4FGL_J2219.2+1806_daily_bin552.fits scfile=/scratch/kocevski/248272/ft2_4FGL_J2219.2+1806_daily_bin552.fits outfile=/scratch/kocevski/248272/cmap_HighResolution_382406401_382665601_4FGL_J2219.2+1806_daily_bin552.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    92.563       1.0000         .10000E-03   10000.    
     3 'norm      '    9.8994       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.0644       1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.268       1.0000         .10000E-03   10000.    
     7 'Prefactor '    39.714       1.0000         .10000E-03   10000.    
     8 'norm      '    .35879       1.0000         .10000E-03   10000.    
     9 'Prefactor '    73.468       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    117.08       1.0000         .10000E-03   10000.    
    14 'Prefactor '    47.074       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.1752       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.4234       1.0000         .10000E-03   10000.    
    17 'norm      '    2.5189       1.0000         .10000E-03   10000.    
    18 'norm      '    4.9032       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10802E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.997       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.0588       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .82167       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91230       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=   8748.777     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2916 TOTAL
                     EDM=   .52E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9047        .14038E-07** at limit **
   2  Prefactor     92.484        139.05       -.11649E-05   -.54339E-04
   3  norm          9.8994        3.4259        .43662E-08   -.15017E-04
   4  Prefactor     .10000E-03    71.088       -.56664E-06** at limit **
   5  norm          5.0642        3.0179       -.39620E-07    .35719E-06
   6  Prefactor     24.265        33.670       -.35821E-06   -.20854E-04
   7  Prefactor     39.713        36.258       -.12121E-06   -.31654E-05
   8  norm          .35874        .62837        .87504E-06   -.27679E-03
   9  Prefactor     73.458        46.244        .95200E-07   -.41378E-04
  10  Prefactor     .10000E-03    12.884       -.10668E-06** at limit **
  11  norm          .10000E-03    2.2717        .45246E-07** at limit **
  12  Prefactor     .10000E-03    50.515        .23472E-05** at limit **
  13  Prefactor     117.05        115.28       -.32758E-06   -.25031E-04
  14  Prefactor     47.069        19.419       -.57461E-07   -.10841E-04
  15  Prefactor     1.1751        .28226        .43464E-07   -.51300E-03
  16  Prefactor     6.4238        6.6678        .33310E-07   -.22921E-04
  17  norm          2.5187        1.3380        .10151E-08    .98976E-05
  18  norm          4.9042        2.2538       -.88051E-07    .25965E-04
  19  Prefactor     .10000E-03    19.822        .98192E-07** at limit **
  20  Prefactor     .10000E-03    31.916       -.16327E-06** at limit **
  21  Prefactor     10.999        26.310        .20016E-06    .35084E-05
  22  Prefactor     2.0588        .27361       -.43243E-08   -.31932E-04
  23  Prefactor     .10000E-03    9.9024        .16177E-06** at limit **
  24  Normalizat    .82197        .26047       -.78955E-06   -.86687E-05
  25  Prefactor     .91218        .11933        .32911E-06   -.60049E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 92.4836
  norm       = 9.89943
  Prefactor  = 0.000100001
  norm       = 5.06421
  Prefactor  = 24.2649
  Prefactor  = 39.7133
  norm       = 0.358744
  Prefactor  = 73.4584
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 117.051
  Prefactor  = 47.0691
  Prefactor  = 1.17515
  Prefactor  = 6.42377
  norm       = 2.51871
  norm       = 4.90421
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.999
  Prefactor  = 2.05884
  Prefactor  = 0.0001
  Normalizat = 0.821968
  Prefactor  = 0.912183
 **********
 **   18 **HESSE 
 **********

 FCN=   8748.777     FROM HESSE     STATUS=OK           429 CALLS     3345 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.9062        .12606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     92.484        139.58        .20885E-03   -1.3782    
   3  norm          9.8994        3.4254        .91890E-04   -1.5079    
   4  Prefactor     .10000E-03    71.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.0642        3.0163        .12099E-03   -1.5258    
   6  Prefactor     24.265        33.653        .81313E-04   -1.4722    
   7  Prefactor     39.713        36.265        .63604E-04   -1.4447    
   8  norm          .35874        .63082        .21360E-03   -1.5588    
   9  Prefactor     73.458        46.270        .46841E-04   -1.3992    
  10  Prefactor     .10000E-03    12.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.2859        .13763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    51.787        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     117.05        115.35        .37187E-04   -1.3540    
  14  Prefactor     47.069        19.542        .58441E-04   -1.4335    
  15  Prefactor     1.1751        .28148        .22657E-04   -1.5491    
  16  Prefactor     6.4238        6.6706        .15836E-03   -1.5201    
  17  norm          2.5187        1.3342        .75501E-04   -1.5391    
  18  norm          4.9042        2.2484        .92030E-04   -1.5265    
  19  Prefactor     .10000E-03    19.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    32.904        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.999        26.390        .12082E-03   -1.5045    
  22  Prefactor     2.0588        .27527        .16433E-04   -1.5421    
  23  Prefactor     .10000E-03    10.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .82197        .29681        .43528E-03   -.99259    
  25  Prefactor     .91218        .13774        .20422E-03   -.95717    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06411e-10
Minuit parameter uncertainties:
  1  2.39873e-07
  2  140.078
  3  3.42548
  4  0.000489262
  5  3.01635
  6  33.6795
  7  36.2847
  8  0.630831
  9  46.2931
  10  1.92546e-06
  11  2.22943e-06
  12  0.000262762
  13  115.569
  14  19.5446
  15  0.281477
  16  6.67135
  17  1.33421
  18  2.24845
  19  1.60016e-05
  20  7.05269e-05
  21  26.4184
  22  0.27527
  23  2.605e-06
  24  0.297397
  25  0.137796
Done.

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

Extracting fit parameters...

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  1.000e-04  2.229e-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:  9.122e-01  1.378e-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:  8.220e-01  2.974e-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.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.63e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/248272/likelihoodResults_382406401_382665601_4FGL_J2219.2+1806_daily_bin552.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) = 8748.77880434
delta logL = -0.00208126333018

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8748.77672691
delta logL = -3.83412407245e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1678       1.0000          .0000       5.0000    
     3 'Normalizat'    .82187       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91205       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=   8748.777     FROM MIGRAD    STATUS=FAILED       101 CALLS      248 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    75.790        .13819E-01** at limit **
   2  alpha         1.6486        3.2677        .50000       -.15708E-05
   3  Normalizat    .82197        .32923E-01    .43527E-03    .72348E-04
   4  Prefactor     .91218        .16340E-01    .20422E-03    .19940E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8748.777     FROM SIMPLEX   STATUS=UNCHANGED    228 CALLS      476 TOTAL
                     EDM=   .68E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    75.790        .21801E-03** at limit **
   2  alpha         1.6486        3.2677        .11195E-07   -.15708E-05
   3  Normalizat    .82197        .32923E-01    .49575E-09    .72348E-04
   4  Prefactor     .91218        .16340E-01    .30265E-10    .19940E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8748.777     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      511 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.9280        .28966E-03** at limit **
   2  alpha         1.6484        3.2108        .50000       -.15858E-05
   3  Normalizat    .82197        .27025        .17411E-04    .72087E-04
   4  Prefactor     .91218        .13427        .40844E-04    .19862E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.64835
  Normalizat = 0.821968
  Prefactor  = 0.912183
 **********
 **   18 **HESSE 
 **********

 FCN=   8748.777     FROM HESSE     STATUS=OK            27 CALLS      538 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.6274        .57933E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6484        4.0217        .50000       -.34762    
   3  Normalizat    .82197        .27012        .34822E-05   -.99259    
   4  Prefactor     .91218        .13422        .81689E-05   -.95717    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.68574e-09
Minuit parameter uncertainties:
  1  8.2928e-06
  2  129.586
  3  0.270558
  4  0.134265
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/248272': 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) = 8748.77672032
delta logL = 2.75780803349e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  9.122e-01  1.343e-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:  8.220e-01  2.706e-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/248272/cmap_HighResolution_382406401_382665601_4FGL_J2219.2+1806_daily_bin552.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.63e-05', job_status='DONE', photon_flux_upper_limit='6.17e-08', time_completed='2021-09-28 08:44:27.982858', job_id='248272', GAL2='0.91', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1632843867.98', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='2.76e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='552' AND source_name='4FGL J2219.2+1806' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 08:44:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 248272: <4FGL_J2219.2+1806_daily_bin552> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2+1806_daily_bin552 334.813 18.1026 382406401 382665601 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 :                                   823.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             313.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            840 sec.

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

