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


Performing analysis on: 4FGL_J2219.2+1806_daily_bin989
RA = 334.813, Dec = 18.1026
tmin = 495676801, tmax = 495936001
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='252284', job_status='RUN', time_executed='2021-09-28 08:45:46.588902', time_epoch_executed='1632843946.59' WHERE source_name='4FGL J2219.2+1806' and cadence='daily' and bin_id='989'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/252284

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/252284/ft1_4FGL_J2219.2+1806_daily_bin989.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/252284/ft2_4FGL_J2219.2+1806_daily_bin989.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/252284/ft1_4FGL_J2219.2+1806_daily_bin989.fits outfile=/scratch/kocevski/252284/ft1_filteredMKT_4FGL_J2219.2+1806_daily_bin989.fits ra=334.813 dec=18.1026 rad=12.0 tmin=495676801.0 tmax=495936001.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.51
user 3.29
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/252284/ft2_4FGL_J2219.2+1806_daily_bin989.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/252284/ft1_filteredMKT_4FGL_J2219.2+1806_daily_bin989.fits evtable="EVENTS" outfile="/scratch/kocevski/252284/ft1_filtered_4FGL_J2219.2+1806_daily_bin989.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/252284/ft1_filtered_4FGL_J2219.2+1806_daily_bin989.fits" evtable="EVENTS" scfile=/scratch/kocevski/252284/ft2_4FGL_J2219.2+1806_daily_bin989.fits sctable="SC_DATA" outfile=/scratch/kocevski/252284/ltcube_495676801_495936001_4FGL_J2219.2+1806_daily_bin989.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/252284/ft2_4FGL_J2219.2+1806_daily_bin989.fits
.....................!
real 11.82
user 11.44
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/252284/ft1_filtered_4FGL_J2219.2+1806_daily_bin989.fits evtable="EVENTS" scfile=/scratch/kocevski/252284/ft2_4FGL_J2219.2+1806_daily_bin989.fits sctable="SC_DATA" expcube=/scratch/kocevski/252284/ltcube_495676801_495936001_4FGL_J2219.2+1806_daily_bin989.fits outfile=/scratch/kocevski/252284/expmap_495676801_495936001_4FGL_J2219.2+1806_daily_bin989.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/252284/ltcube_495676801_495936001_4FGL_J2219.2+1806_daily_bin989.fits
.....................!
real 190.43
user 184.70
sys 5.38

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/252284/ft1_filtered_4FGL_J2219.2+1806_daily_bin989.fits scfile=/scratch/kocevski/252284/ft2_4FGL_J2219.2+1806_daily_bin989.fits outfile=/scratch/kocevski/252284/cmap_495676801_495936001_4FGL_J2219.2+1806_daily_bin989.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/252284/ft1_filtered_4FGL_J2219.2+1806_daily_bin989.fits scfile=/scratch/kocevski/252284/ft2_4FGL_J2219.2+1806_daily_bin989.fits outfile=/scratch/kocevski/252284/cmap_HighResolution_495676801_495936001_4FGL_J2219.2+1806_daily_bin989.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6139       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13617E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.8122       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14899E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.2860       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .43751E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    73.841       1.0000         .10000E-03   10000.    
     8 'norm      '    .59005       1.0000         .10000E-03   10000.    
     9 'Prefactor '    71.639       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13552E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.8455       1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.100       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .19405E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.292       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.2420       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10577E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.8037       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .20726E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .15600E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .26076E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.5151       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.5336       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1605       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .82722       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=   9423.049     FROM MIGRAD    STATUS=CONVERGED    610 CALLS     2963 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6296        5.4958        .33602E-06   -.18093E-03
   2  Prefactor     .10000E-03    41.826       -.44363E-06** at limit **
   3  norm          7.8099        2.7330       -.14792E-06    .47847E-04
   4  Prefactor     .10000E-03    43.921        .76902E-07** at limit **
   5  norm          3.2859        2.3563        .27978E-07   -.24193E-04
   6  Prefactor     .10000E-03    126.32        .19403E-04** at limit **
   7  Prefactor     73.937        46.354        .30418E-05   -.24279E-03
   8  norm          .58969        .75532        .91552E-06    .18585E-02
   9  Prefactor     71.566        41.865       -.21352E-05    .16115E-03
  10  Prefactor     .10000E-03    3.9996        .14884E-06** at limit **
  11  norm          3.8303        5.1240       -.74468E-07   -.31252E-03
  12  Prefactor     17.085        15.918        .91898E-07   -.21982E-04
  13  Prefactor     .10000E-03    42.337       -.30280E-06** at limit **
  14  Prefactor     10.272        10.690        .55266E-06   -.14613E-03
  15  Prefactor     4.2421        .43055        .14455E-07   -.72172E-03
  16  Prefactor     .10000E-03    7.3788       -.61818E-07** at limit **
  17  norm          .10000E-03    .44151        .97087E-08** at limit **
  18  norm          6.8013        2.3300        .20547E-07   -.36279E-04
  19  Prefactor     .10000E-03    18.781       -.17126E-06** at limit **
  20  Prefactor     .10000E-03    4.6690       -.15109E-07** at limit **
  21  Prefactor     .10000E-03    41.516        .74847E-06** at limit **
  22  Prefactor     1.5151        .22624        .22086E-07   -.12357E-02
  23  Prefactor     2.5257        8.8299        .71336E-06   -.99245E-04
  24  Normalizat    1.1608        .23502       -.17447E-05   -.16103E-04
  25  Prefactor     .82718        .11100        .80132E-07   -.15832E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.62958
  Prefactor  = 0.0001
  norm       = 7.80989
  Prefactor  = 0.0001
  norm       = 3.28591
  Prefactor  = 0.000100003
  Prefactor  = 73.9371
  norm       = 0.589686
  Prefactor  = 71.5662
  Prefactor  = 0.0001
  norm       = 3.83027
  Prefactor  = 17.085
  Prefactor  = 0.0001
  Prefactor  = 10.2719
  Prefactor  = 4.24213
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.8013
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.51508
  Prefactor  = 2.52567
  Normalizat = 1.16081
  Prefactor  = 0.82718
 **********
 **   18 **HESSE 
 **********

 FCN=   9423.049     FROM HESSE     STATUS=OK           435 CALLS     3398 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6296        5.4772        .12614E-02   -1.5384    
   2  Prefactor     .10000E-03    41.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.8099        2.6943        .89173E-04   -1.5149    
   4  Prefactor     .10000E-03    43.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.2859        2.3517        .12233E-03   -1.5345    
   6  Prefactor     .10000E-03    119.91        .64147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     73.937        45.588        .23362E-03   -1.3986    
   8  norm          .58969        .73312        .10072E-02   -1.5554    
   9  Prefactor     71.566        41.627        .23715E-03   -1.4014    
  10  Prefactor     .10000E-03    4.0040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.8303        5.0880        .10290E-02   -1.5317    
  12  Prefactor     17.085        15.964        .96854E-04   -1.4881    
  13  Prefactor     .10000E-03    42.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.272        10.716        .12490E-03   -1.5067    
  15  Prefactor     4.2421        .43270        .18843E-04   -1.5296    
  16  Prefactor     .10000E-03    7.5719        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .45921        .12584E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.8013        2.3298        .84246E-04   -1.5186    
  19  Prefactor     .10000E-03    18.876        .20197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.6853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    42.220        .21448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.5151        .22658        .16986E-04   -1.5462    
  23  Prefactor     2.5257        8.8055        .12830E-02   -1.5390    
  24  Normalizat    1.1608        .27371        .37661E-03   -.87823    
  25  Prefactor     .82718        .13055        .21955E-03   -.98734    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.80532e-10
Minuit parameter uncertainties:
  1  5.47819
  2  6.04498e-05
  3  2.69437
  4  3.77501e-06
  5  2.35178
  6  0.00110517
  7  45.6091
  8  0.733136
  9  41.6438
  10  4.78032e-06
  11  5.08858
  12  15.9683
  13  6.10045e-05
  14  10.7179
  15  0.432702
  16  6.81778e-06
  17  2.12942e-06
  18  2.32982
  19  1.45929e-05
  20  5.92935e-06
  21  8.23315e-05
  22  0.226578
  23  8.80996
  24  0.274048
  25  0.130595
Done.

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

Extracting fit parameters...

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  3.830e+00  5.089e+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.272e-01  1.306e-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.161e+00  2.740e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/252284/likelihoodResults_495676801_495936001_4FGL_J2219.2+1806_daily_bin989.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) = 9422.53021323
delta logL = 0.519021974304

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9422.52151626
delta logL = 0.527718947193

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9675       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4155       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0875       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85091       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=   9422.522     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      250 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9633        25.821        .73913E-02    .13067E-02
   2  alpha         3.4169        4.1390        .45336        .99277E-04
   3  Normalizat    1.0877        .58469E-01    .87452E-01    .18606E-03
   4  Prefactor     .85083        .28942E-01    .44376E-01    .52533E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.96326
  alpha      = 3.41692
  Normalizat = 1.08766
  Prefactor  = 0.850835
 **********
 **   18 **HESSE 
 **********

 FCN=   9422.522     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      283 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9633        62.945        .10609E-03   -1.5428    
   2  alpha         3.4169        3.2963        .16802E-01    .37553    
   3  Normalizat    1.0877        .30974        .38728E-03   -.90149    
   4  Prefactor     .85083        .15457        .21677E-03   -.97881    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.08817e-09
Minuit parameter uncertainties:
  1  22.2582
  2  7.54365
  3  0.310253
  4  0.15465
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/252284': 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): 102
logL (Free Index) = 9422.52151552
delta logL = 0.527719686717

Extracting fit parameters...

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  1.963e+00  2.226e+01  1.000e-04  1.000e+04 ( 1.000e-12)
263        alpha:  3.417e+00  7.544e+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.508e-01  1.546e-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.088e+00  3.103e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.92
Ra Dec: 334.813 18.103
Photon Index (Free Index): 3.42 +/- 7.54
Photon Flux (Free Index): 7.18e-08 +/- 8.18e-08
Energy Flux (Free Index): 1.28e-05 +/- 2.27e-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/252284/cmap_HighResolution_495676801_495936001_4FGL_J2219.2+1806_daily_bin989.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.22e-05', comment='SUCCESS', energy_flux2='1.28e-05', dlogl='5.28e-01', photon_flux2='7.18e-08', job_status='DONE', time_completed='2021-09-28 09:00:50.748733', photon_index_error2='7.54', photon_index2='3.42', ts='0.79', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='9.93e-08', energy_flux_error2='2.27e-05', EG='1.16', time_epoch_completed='1632844850.75', return_code='0', job_id='252284', GAL2='0.85', EG2='1.09', return_code2='102', photon_flux_error2='8.18e-08', ts2='1.92', photon_index='2.18' WHERE bin_id='989' AND source_name='4FGL J2219.2+1806' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:00:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 252284: <4FGL_J2219.2+1806_daily_bin989> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2+1806_daily_bin989 334.813 18.1026 495676801 495936001 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 :                                   902.35 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             342.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            923 sec.

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

