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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1435
RA = 334.823, Dec = -3.7102
tmin = 611280001, tmax = 611539201
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='261649', job_status='RUN', time_executed='2021-09-28 09:18:10.670602', time_epoch_executed='1632845890.67' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1435'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261649

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261649/ft1_4FGL_J2219.2-0342_daily_bin1435.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261649/ft2_4FGL_J2219.2-0342_daily_bin1435.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261649/ft1_4FGL_J2219.2-0342_daily_bin1435.fits outfile=/scratch/kocevski/261649/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1435.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=611280001.0 tmax=611539201.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.45
user 3.23
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/261649/ft2_4FGL_J2219.2-0342_daily_bin1435.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/261649/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1435.fits evtable="EVENTS" outfile="/scratch/kocevski/261649/ft1_filtered_4FGL_J2219.2-0342_daily_bin1435.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.49
user 0.30
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261649/ft1_filtered_4FGL_J2219.2-0342_daily_bin1435.fits" evtable="EVENTS" scfile=/scratch/kocevski/261649/ft2_4FGL_J2219.2-0342_daily_bin1435.fits sctable="SC_DATA" outfile=/scratch/kocevski/261649/ltcube_611280001_611539201_4FGL_J2219.2-0342_daily_bin1435.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/261649/ft2_4FGL_J2219.2-0342_daily_bin1435.fits
.....................!
real 12.98
user 12.58
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261649/ft1_filtered_4FGL_J2219.2-0342_daily_bin1435.fits evtable="EVENTS" scfile=/scratch/kocevski/261649/ft2_4FGL_J2219.2-0342_daily_bin1435.fits sctable="SC_DATA" expcube=/scratch/kocevski/261649/ltcube_611280001_611539201_4FGL_J2219.2-0342_daily_bin1435.fits outfile=/scratch/kocevski/261649/expmap_611280001_611539201_4FGL_J2219.2-0342_daily_bin1435.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/261649/ltcube_611280001_611539201_4FGL_J2219.2-0342_daily_bin1435.fits
.....................!
real 191.82
user 187.09
sys 4.34

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/261649/ft1_filtered_4FGL_J2219.2-0342_daily_bin1435.fits scfile=/scratch/kocevski/261649/ft2_4FGL_J2219.2-0342_daily_bin1435.fits outfile=/scratch/kocevski/261649/cmap_611280001_611539201_4FGL_J2219.2-0342_daily_bin1435.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261649/ft1_filtered_4FGL_J2219.2-0342_daily_bin1435.fits scfile=/scratch/kocevski/261649/ft2_4FGL_J2219.2-0342_daily_bin1435.fits outfile=/scratch/kocevski/261649/cmap_HighResolution_611280001_611539201_4FGL_J2219.2-0342_daily_bin1435.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.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261649/ft1_filtered_4FGL_J2219.2-0342_daily_bin1435.fits evtable="EVENTS" scfile=/scratch/kocevski/261649/ft2_4FGL_J2219.2-0342_daily_bin1435.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261649/Model_4FGL_J2219.2-0342_daily_bin1435.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/261649/ft1_filtered_4FGL_J2219.2-0342_daily_bin1435.fits.....................!
real 74.06
user 72.65
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/261649/ft1_filtered_4FGL_J2219.2-0342_daily_bin1435.fits', '/scratch/kocevski/261649/ft2_4FGL_J2219.2-0342_daily_bin1435.fits', expMap='/scratch/kocevski/261649/expmap_611280001_611539201_4FGL_J2219.2-0342_daily_bin1435.fits', expCube='/scratch/kocevski/261649/ltcube_611280001_611539201_4FGL_J2219.2-0342_daily_bin1435.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/261649/Model_4FGL_J2219.2-0342_daily_bin1435.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/261649/ft1_filtered_4FGL_J2219.2-0342_daily_bin1435.fits
Spacecraft file(s): /scratch/kocevski/261649/ft2_4FGL_J2219.2-0342_daily_bin1435.fits
Exposure map: /scratch/kocevski/261649/expmap_611280001_611539201_4FGL_J2219.2-0342_daily_bin1435.fits
Exposure cube: /scratch/kocevski/261649/ltcube_611280001_611539201_4FGL_J2219.2-0342_daily_bin1435.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/261649/Model_4FGL_J2219.2-0342_daily_bin1435.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) = 8064.85413933

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12026E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.4787       1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.332       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11379E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.046       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.792       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.778       1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.193       1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.165       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.6944       1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.771       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10350E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.7582       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.1796       1.0000         .10000E-03   10000.    
    19 'Prefactor '    95.940       1.0000         .10000E-03   10000.    
    20 'norm      '    .12154E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    15.120       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .66041       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0715       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=   8064.402     FROM MIGRAD    STATUS=CONVERGED    557 CALLS     2860 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.1847       -.14130E-05** at limit **
   2  Prefactor     9.4777        26.489        .81944E-06    .10765E-03
   3  Prefactor     25.314        38.748        .24395E-05    .83076E-04
   4  Prefactor     .10000E-03    27.346       -.62605E-07** at limit **
   5  Prefactor     .10000E-03    4.5750       -.12626E-06** at limit **
   6  Prefactor     .10000E-03    3.2341       -.43794E-06** at limit **
   7  Prefactor     .10000E-03    4.4771       -.56125E-07** at limit **
   8  Prefactor     14.045        13.640       -.11245E-06    .26580E-04
   9  Prefactor     10.792        13.197        .11650E-06    .18032E-03
  10  Prefactor     14.776        15.490       -.23770E-06    .63481E-04
  11  Prefactor     18.194        10.943        .36088E-07    .11186E-03
  12  Prefactor     23.163        27.357        .10538E-07   -.25207E-04
  13  Prefactor     8.6929        9.1181       -.14458E-06    .51416E-04
  14  Prefactor     27.770        34.377       -.28397E-07   -.11301E-04
  15  Prefactor     .10000E-03    2.4984        .37949E-07** at limit **
  16  norm          2.7581        2.5088       -.44445E-07   -.28173E-03
  17  Prefactor     .10003E-03    173.34        .26691E-05** at limit **
  18  norm          1.1796        .72057        .12573E-07   -.26750E-03
  19  Prefactor     95.895        22.433        .98251E-06   -.31640E-03
  20  norm          .10000E-03    2.4962        .32912E-05** at limit **
  21  Prefactor     .10000E-03    6.0867       -.49855E-07** at limit **
  22  norm          15.119        11.090       -.57692E-07   -.98009E-05
  23  Normalizat    .66054        .19705       -.12403E-05    .87359E-04
  24  Prefactor     1.0714        .11473        .10223E-05    .59735E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 9.47768
  Prefactor  = 25.3139
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.045
  Prefactor  = 10.7916
  Prefactor  = 14.7759
  Prefactor  = 18.1935
  Prefactor  = 23.1627
  Prefactor  = 8.69289
  Prefactor  = 27.7701
  Prefactor  = 0.0001
  norm       = 2.75812
  Prefactor  = 0.000100027
  norm       = 1.17957
  Prefactor  = 95.8946
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 15.119
  Normalizat = 0.660538
  Prefactor  = 1.0714
 **********
 **   18 **HESSE 
 **********

 FCN=   8064.402     FROM HESSE     STATUS=OK           401 CALLS     3261 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.0513        .18570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.4777        26.444        .13017E-03   -1.5092    
   3  Prefactor     25.314        39.057        .79591E-04   -1.4701    
   4  Prefactor     .10000E-03    27.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.6278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.1663        .30972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.4928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.045        13.633        .10687E-03   -1.4958    
   9  Prefactor     10.792        13.199        .60981E-03   -1.5051    
  10  Prefactor     14.776        15.468        .10419E-03   -1.4939    
  11  Prefactor     18.194        10.943        .93900E-04   -1.4855    
  12  Prefactor     23.163        27.337        .83225E-04   -1.4745    
  13  Prefactor     8.6929        9.0908        .13594E-03   -1.5118    
  14  Prefactor     27.770        34.366        .76022E-04   -1.4654    
  15  Prefactor     .10000E-03    2.5850        .27593E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.7581        2.5024        .12940E-03   -1.5376    
  17  Prefactor     .10003E-03    173.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.1796        .71442        .57836E-04   -1.5491    
  19  Prefactor     95.895        22.456        .20518E-03   -1.3746    
  20  norm          .10000E-03    2.6541        .14992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.1097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          15.119        11.087        .10300E-03   -1.4930    
  23  Normalizat    .66054        .22137        .35750E-03   -1.0547    
  24  Prefactor     1.0714        .13208        .17886E-03   -.90386    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54168e-09
Minuit parameter uncertainties:
  1  9.86401e-05
  2  26.4763
  3  39.0963
  4  5.62881e-05
  5  1.52961e-05
  6  2.61911e-05
  7  1.28137e-05
  8  13.636
  9  13.2027
  10  15.4724
  11  10.9442
  12  27.3514
  13  9.09221
  14  34.39
  15  3.95135e-06
  16  2.50248
  17  0.0042961
  18  0.714421
  19  22.4584
  20  8.201e-05
  21  1.46418e-05
  22  11.0888
  23  0.221668
  24  0.132121
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  8.693e+00  9.092e+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

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  1.071e+00  1.321e-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:  6.605e-01  2.217e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.20
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 4.01e-08 +/- 4.18e-08
Energy Flux (Fixed Index): 9.78e-06 +/- 1.02e-05

TS (Fixed Index): 1.20
Ra Dec: 334.823 -3.710
Photon Flux Upper Limit: 1.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/261649/likelihoodResults_611280001_611539201_4FGL_J2219.2-0342_daily_bin1435.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) = 8062.7370092
delta logL = 1.66539435826

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8062.61489144
delta logL = 1.78751211845

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15120E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    7.8834       1.0000          .0000       10.000    
     3 'Normalizat'    .59217       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1072       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=   8062.615     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      371 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13783E-01    .13042        .13837E-02   -.10320E-01
   2  Index         7.9453        3.1998        .18775       -.46586E-05
   3  Normalizat    .59241        .52695E-01    .84828E-01    .33621E-03
   4  Prefactor     1.1071        .33088E-01    .37321E-01    .83532E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0137829
  Index      = 7.94528
  Normalizat = 0.592412
  Prefactor  = 1.10714
 **********
 **   18 **HESSE 
 **********

 FCN=   8062.615     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      404 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13783E-01    .25879        .62348E-04   -1.5685    
   2  Index         7.9453        8.2091        .78893E-02    .62989    
   3  Normalizat    .59241        .16634        .37572E-03   -1.0831    
   4  Prefactor     1.1071        .10338        .17621E-03   -.89239    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.62025e-10
Minuit parameter uncertainties:
  1  0.119014
  2  5.64756
  3  0.166478
  4  0.103396
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261649': 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) = 8062.61486599
delta logL = 1.78753757072

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.378e-02  1.190e-01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  7.945e+00  5.648e+00  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:  1.107e+00  1.034e-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:  5.924e-01  1.665e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.98
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 7.95 +/- 5.65
Photon Flux (Free Index): 7.97e-08 +/- 4.95e-08
Energy Flux (Free Index): 9.26e-06 +/- 6.42e-06

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/261649/cmap_HighResolution_611280001_611539201_4FGL_J2219.2-0342_daily_bin1435.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.89e-03', comment='SUCCESS', photon_flux='4.01e-08', energy_flux2='9.26e-06', photon_flux_error='4.18e-08', dlogl='1.79e+00', energy_flux='9.78e-06', photon_flux2='7.97e-08', job_status='DONE', time_completed='2021-09-28 09:31:07.444284', photon_index_error2='5.65', photon_index2='7.95', ts='1.20', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.26e-07', energy_flux_error2='6.42e-06', EG='0.66', time_epoch_completed='1632846667.44', return_code='0', job_id='261649', GAL2='1.11', EG2='0.59', return_code2='102', energy_flux_error='1.02e-05', photon_flux_error2='4.95e-08', ts2='4.98', photon_index='2.68' WHERE bin_id='1435' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:31:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 261649: <4FGL_J2219.2-0342_daily_bin1435> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1435> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 09:15:59 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:16:00 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:16:00 2021
Terminated at Tue Sep 28 09:31:08 2021
Results reported at Tue Sep 28 09:31:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1435 334.823 -3.7102 611280001 611539201 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 :                                   775.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             330.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            909 sec.

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

