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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1202
RA = 334.823, Dec = -3.7102
tmin = 550886401, tmax = 551145601
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='261286', job_status='RUN', time_executed='2021-09-28 09:19:07.427628', time_epoch_executed='1632845947.43' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261286

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261286/ft1_4FGL_J2219.2-0342_daily_bin1202.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261286/ft2_4FGL_J2219.2-0342_daily_bin1202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261286/ft1_4FGL_J2219.2-0342_daily_bin1202.fits outfile=/scratch/kocevski/261286/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1202.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=550886401.0 tmax=551145601.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.76
user 3.50
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/261286/ft2_4FGL_J2219.2-0342_daily_bin1202.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/261286/ft2_4FGL_J2219.2-0342_daily_bin1202.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/261286/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1202.fits evtable="EVENTS" outfile="/scratch/kocevski/261286/ft1_filtered_4FGL_J2219.2-0342_daily_bin1202.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.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261286/ft1_filtered_4FGL_J2219.2-0342_daily_bin1202.fits" evtable="EVENTS" scfile=/scratch/kocevski/261286/ft2_4FGL_J2219.2-0342_daily_bin1202.fits sctable="SC_DATA" outfile=/scratch/kocevski/261286/ltcube_550886401_551145601_4FGL_J2219.2-0342_daily_bin1202.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/261286/ft2_4FGL_J2219.2-0342_daily_bin1202.fits
.....................!
real 12.74
user 12.39
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261286/ft1_filtered_4FGL_J2219.2-0342_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/261286/ft2_4FGL_J2219.2-0342_daily_bin1202.fits sctable="SC_DATA" expcube=/scratch/kocevski/261286/ltcube_550886401_551145601_4FGL_J2219.2-0342_daily_bin1202.fits outfile=/scratch/kocevski/261286/expmap_550886401_551145601_4FGL_J2219.2-0342_daily_bin1202.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/261286/ltcube_550886401_551145601_4FGL_J2219.2-0342_daily_bin1202.fits
.....................!
real 192.19
user 187.00
sys 4.78

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 157 point sources and 0 extended sources

Setting source of interest to:
4FGL J2219.2-0342 @ 334.823 -3.7102

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/261286/ft1_filtered_4FGL_J2219.2-0342_daily_bin1202.fits scfile=/scratch/kocevski/261286/ft2_4FGL_J2219.2-0342_daily_bin1202.fits outfile=/scratch/kocevski/261286/cmap_550886401_551145601_4FGL_J2219.2-0342_daily_bin1202.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.823 yref=-3.7102 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261286/ft1_filtered_4FGL_J2219.2-0342_daily_bin1202.fits scfile=/scratch/kocevski/261286/ft2_4FGL_J2219.2-0342_daily_bin1202.fits outfile=/scratch/kocevski/261286/cmap_HighResolution_550886401_551145601_4FGL_J2219.2-0342_daily_bin1202.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.823 yref=-3.7102 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261286/ft1_filtered_4FGL_J2219.2-0342_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/261286/ft2_4FGL_J2219.2-0342_daily_bin1202.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261286/Model_4FGL_J2219.2-0342_daily_bin1202.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/261286/ft1_filtered_4FGL_J2219.2-0342_daily_bin1202.fits.....................!
real 33.99
user 32.66
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/261286/ft1_filtered_4FGL_J2219.2-0342_daily_bin1202.fits', '/scratch/kocevski/261286/ft2_4FGL_J2219.2-0342_daily_bin1202.fits', expMap='/scratch/kocevski/261286/expmap_550886401_551145601_4FGL_J2219.2-0342_daily_bin1202.fits', expCube='/scratch/kocevski/261286/ltcube_550886401_551145601_4FGL_J2219.2-0342_daily_bin1202.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/261286/Model_4FGL_J2219.2-0342_daily_bin1202.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2219.2-0342'

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  3.492e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.682e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
258        Scale:  5.061e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/261286/ft1_filtered_4FGL_J2219.2-0342_daily_bin1202.fits
Spacecraft file(s): /scratch/kocevski/261286/ft2_4FGL_J2219.2-0342_daily_bin1202.fits
Exposure map: /scratch/kocevski/261286/expmap_550886401_551145601_4FGL_J2219.2-0342_daily_bin1202.fits
Exposure cube: /scratch/kocevski/261286/ltcube_550886401_551145601_4FGL_J2219.2-0342_daily_bin1202.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/261286/Model_4FGL_J2219.2-0342_daily_bin1202.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) = 2589.24381542

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8596       1.0000         .10000E-03   10000.    
     2 'Prefactor '    24.880       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .24563       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.418       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.6256       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.8769       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.673       1.0000         .10000E-03   10000.    
    12 'Prefactor '    63.171       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.0037       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10668E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .70054       1.0000         .10000E-03   10000.    
    17 'Prefactor '    100.59       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    67.323       1.0000         .10000E-03   10000.    
    20 'norm      '    .32245E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    20.892       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.8181       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .33442       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2589.187     FROM MIGRAD    STATUS=CONVERGED    655 CALLS     2956 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8597        2.9157        .59511E-06    .20218E-04
   2  Prefactor     24.886        69.831       -.40256E-04   -.11766E-04
   3  Prefactor     .10000E-03    40.418       -.15999E-07** at limit **
   4  Prefactor     .14620E-03    185.10        .21932E-05** at limit **
   5  Prefactor     15.433        20.116        .29311E-06   -.13560E-03
   6  Prefactor     1.6265        11.877       -.36290E-05   -.44632E-03
   7  Prefactor     .10000E-03    4.8077       -.76507E-08** at limit **
   8  Prefactor     .10000E-03    16.747        .91005E-07** at limit **
   9  Prefactor     .10000E-03    24.397       -.71097E-06** at limit **
  10  Prefactor     3.8850        40.145        .25348E-04   -.27085E-04
  11  Prefactor     14.679        24.875        .48588E-05    .63549E-05
  12  Prefactor     63.165        61.400       -.18974E-04   -.84752E-05
  13  Prefactor     8.0020        11.754       -.47268E-06   -.26803E-04
  14  Prefactor     .10000E-03    146.48       -.25734E-05** at limit **
  15  Prefactor     .10000E-03    2.9675        .37508E-07** at limit **
  16  norm          .70054        6.3112       -.35907E-06   -.28657E-03
  17  Prefactor     100.68        114.83       -.17834E-04    .24565E-07
  18  norm          .10000E-03    .75793       -.68999E-07** at limit **
  19  Prefactor     67.916        41.348       -.14275E-05   -.25125E-03
  20  norm          .10022E-03    1.9229        .39278E-06** at limit **
  21  Prefactor     .10000E-03    12.319       -.64731E-07** at limit **
  22  norm          20.893        21.122        .19088E-05   -.10500E-04
  23  Normalizat    1.8178        .37656        .52160E-06   -.35643E-04
  24  Prefactor     .33445        .19809        .30968E-05   -.17321E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.85971
  Prefactor  = 24.8863
  Prefactor  = 0.0001
  Prefactor  = 0.000146197
  Prefactor  = 15.4326
  Prefactor  = 1.6265
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.88496
  Prefactor  = 14.6793
  Prefactor  = 63.165
  Prefactor  = 8.00203
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.700538
  Prefactor  = 100.681
  norm       = 0.0001
  Prefactor  = 67.9164
  norm       = 0.000100222
  Prefactor  = 0.0001
  norm       = 20.8928
  Normalizat = 1.81778
  Prefactor  = 0.334453
 **********
 **   18 **HESSE 
 **********

 FCN=   2589.187     FROM HESSE     STATUS=OK           421 CALLS     3377 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8597        2.8899        .10529E-03   -1.5435    
   2  Prefactor     24.886        70.097        .80309E-04   -1.4710    
   3  Prefactor     .10000E-03    40.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .14620E-03    174.69        .16436       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.433        20.066        .10200E-03   -1.4922    
   6  Prefactor     1.6265        12.105        .33181E-03   -1.5453    
   7  Prefactor     .10000E-03    4.8084        .10897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    24.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.8850        39.452        .20493E-03   -1.5314    
  11  Prefactor     14.679        25.525        .10456E-03   -1.4942    
  12  Prefactor     63.165        61.396        .50488E-04   -1.4117    
  13  Prefactor     8.0020        11.748        .14172E-03   -1.5142    
  14  Prefactor     .10000E-03    146.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.9766        .85580E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .70054        10.300        .22965E-02   -1.5541    
  17  Prefactor     100.68        114.09        .20043E-03   -1.3698    
  18  norm          .10000E-03    1.0211        .85905E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     67.916        56.122        .48917E-04   -1.4058    
  20  norm          .10022E-03    14.579        .19584E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.390        .17444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          20.893        21.144        .87629E-04   -1.4793    
  23  Normalizat    1.8178        .45611        .23805E-03   -.69200    
  24  Prefactor     .33445        .23397        .28681E-03   -1.2030    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96776e-09
Minuit parameter uncertainties:
  1  2.89008
  2  70.3304
  3  9.91943e-06
  4  0.180196
  5  20.0752
  6  8.87664
  7  2.34682e-07
  8  3.22893e-05
  9  0.000346084
  10  24.7813
  11  25.5437
  12  61.4573
  13  11.7512
  14  0.000239954
  15  7.49821e-06
  16  5.37304
  17  114.34
  18  8.78105e-06
  19  56.1656
  20  0.00359712
  21  1.11856e-05
  22  21.1512
  23  0.457186
  24  0.234638
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  8.002e+00  1.175e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.682e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
258        Scale:  5.061e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  3.345e-01  2.346e-01  0.000e+00  1.000e+01 ( 1.000e+00)
504        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
505        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
502   Normalization:  1.818e+00  4.572e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.87
Ra Dec: 334.823 -3.710
Photon Flux Upper Limit: 2.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.66e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/261286/likelihoodResults_550886401_551145601_4FGL_J2219.2-0342_daily_bin1202.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) = 2588.46621768
delta logL = 0.720663597871

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2588.42985379
delta logL = 0.757027492368

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.4634       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6418       1.0000          .0000       10.000    
     3 'Normalizat'    1.8519       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .31547       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2588.430     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      205 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.4634        10.725        .32568E-02    .10723E-02
   2  Index         1.6417        .52159        .17769        .64453E-04
   3  Normalizat    1.8518        .34613        .53420E-01   -.38243E-04
   4  Prefactor     .31554        .19479        .66470E-01    .45541E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.4634
  Index      = 1.64169
  Normalizat = 1.85183
  Prefactor  = 0.315544
 **********
 **   18 **HESSE 
 **********

 FCN=   2588.430     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.4634        12.381        .13027E-03   -1.5093    
   2  Index         1.6417        .67656        .69935E-02   -.73645    
   3  Normalizat    1.8518        .39631        .23616E-03   -.68318    
   4  Prefactor     .31554        .22241        .29431E-03   -1.2136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92436e-09
Minuit parameter uncertainties:
  1  12.384
  2  0.680377
  3  0.397002
  4  0.223016
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261286': 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) = 2588.42985365
delta logL = 0.757027634309

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  9.463e+00  1.238e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  1.642e+00  6.804e-01  0.000e+00  1.000e+01 (-1.000e+00)
258        Scale:  5.061e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  3.155e-01  2.230e-01  0.000e+00  1.000e+01 ( 1.000e+00)
504        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
505        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
502   Normalization:  1.852e+00  3.970e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.41
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 1.64 +/- 0.68
Photon Flux (Free Index): 2.09e-08 +/- 2.84e-08
Energy Flux (Free Index): 4.12e-05 +/- 7.63e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/261286/cmap_HighResolution_550886401_551145601_4FGL_J2219.2-0342_daily_bin1202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.66e-02', comment='SUCCESS', energy_flux2='4.12e-05', dlogl='7.57e-01', photon_flux2='2.09e-08', job_status='DONE', time_completed='2021-09-28 09:26:52.733437', photon_index_error2='0.68', photon_index2='1.64', ts='0.87', fit_tolerance='1e-08', GAL='0.33', photon_index_error='0.00', photon_flux_upper_limit='2.12e-07', energy_flux_error2='7.63e-05', EG='1.82', time_epoch_completed='1632846412.73', return_code='0', job_id='261286', GAL2='0.32', EG2='1.85', return_code2='0', photon_flux_error2='2.84e-08', ts2='2.41', photon_index='2.68' WHERE bin_id='1202' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:26:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 261286: <4FGL_J2219.2-0342_daily_bin1202> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1202> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 09:15:28 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:15: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 09:15:30 2021
Terminated at Tue Sep 28 09:26:53 2021
Results reported at Tue Sep 28 09:26:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1202 334.823 -3.7102 550886401 551145601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2219.2-0342 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   465.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             210.39 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.

