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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1110
RA = 334.823, Dec = -3.7102
tmin = 527040001, tmax = 527299201
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='261138', job_status='RUN', time_executed='2021-09-28 09:18:06.785817', time_epoch_executed='1632845886.79' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1110'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261138

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261138/ft1_4FGL_J2219.2-0342_daily_bin1110.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261138/ft2_4FGL_J2219.2-0342_daily_bin1110.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261138/ft1_4FGL_J2219.2-0342_daily_bin1110.fits outfile=/scratch/kocevski/261138/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1110.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=527040001.0 tmax=527299201.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 5.97
user 5.70
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261138/ft1_filtered_4FGL_J2219.2-0342_daily_bin1110.fits" evtable="EVENTS" scfile=/scratch/kocevski/261138/ft2_4FGL_J2219.2-0342_daily_bin1110.fits sctable="SC_DATA" outfile=/scratch/kocevski/261138/ltcube_527040001_527299201_4FGL_J2219.2-0342_daily_bin1110.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/261138/ft2_4FGL_J2219.2-0342_daily_bin1110.fits
.....................!
real 11.84
user 11.53
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261138/ft1_filtered_4FGL_J2219.2-0342_daily_bin1110.fits evtable="EVENTS" scfile=/scratch/kocevski/261138/ft2_4FGL_J2219.2-0342_daily_bin1110.fits sctable="SC_DATA" expcube=/scratch/kocevski/261138/ltcube_527040001_527299201_4FGL_J2219.2-0342_daily_bin1110.fits outfile=/scratch/kocevski/261138/expmap_527040001_527299201_4FGL_J2219.2-0342_daily_bin1110.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/261138/ltcube_527040001_527299201_4FGL_J2219.2-0342_daily_bin1110.fits
.....................!
real 191.37
user 185.29
sys 5.28

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/261138/ft1_filtered_4FGL_J2219.2-0342_daily_bin1110.fits scfile=/scratch/kocevski/261138/ft2_4FGL_J2219.2-0342_daily_bin1110.fits outfile=/scratch/kocevski/261138/cmap_527040001_527299201_4FGL_J2219.2-0342_daily_bin1110.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261138/ft1_filtered_4FGL_J2219.2-0342_daily_bin1110.fits scfile=/scratch/kocevski/261138/ft2_4FGL_J2219.2-0342_daily_bin1110.fits outfile=/scratch/kocevski/261138/cmap_HighResolution_527040001_527299201_4FGL_J2219.2-0342_daily_bin1110.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261138/ft1_filtered_4FGL_J2219.2-0342_daily_bin1110.fits evtable="EVENTS" scfile=/scratch/kocevski/261138/ft2_4FGL_J2219.2-0342_daily_bin1110.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261138/Model_4FGL_J2219.2-0342_daily_bin1110.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/261138/ft1_filtered_4FGL_J2219.2-0342_daily_bin1110.fits.....................!
real 79.57
user 78.10
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5265       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    82.344       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.488       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.645       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.4286       1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.516       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10151E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .35380       1.0000         .10000E-03   10000.    
    19 'Prefactor '    192.37       1.0000         .10000E-03   10000.    
    20 'norm      '    .58938       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    43.218       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .87615       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1426       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=   8317.445     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     2830 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5265        1.9772       -.19789E-07   -.31935E-03
   2  Prefactor     .10000E-03    19.691       -.24257E-07** at limit **
   3  Prefactor     .10000E-03    72.949       -.30102E-08** at limit **
   4  Prefactor     82.344        50.647        .28585E-06   -.11419E-03
   5  Prefactor     .10000E-03    1.4600        .10613E-07** at limit **
   6  Prefactor     .10000E-03    1.9661        .19495E-07** at limit **
   7  Prefactor     .10000E-03    6.9751       -.57671E-07** at limit **
   8  Prefactor     .10000E-03    7.5361       -.41174E-06** at limit **
   9  Prefactor     26.489        17.378        .15479E-06   -.16054E-03
  10  Prefactor     .10000E-03    4.7919        .17963E-07** at limit **
  11  Prefactor     26.643        14.555       -.81163E-06    .10429E-02
  12  Prefactor     5.4315        26.159       -.10911E-05    .44007E-04
  13  Prefactor     17.514        11.563       -.23389E-06    .23180E-03
  14  Prefactor     .10000E-03    27.286        .23671E-07** at limit **
  15  Prefactor     .10000E-03    1.5954        .90026E-08** at limit **
  16  norm          .10000E-03    1.9499       -.67555E-07** at limit **
  17  Prefactor     .10000E-03    245.66       -.44519E-06** at limit **
  18  norm          .35394        1.1841       -.92035E-06   -.59456E-03
  19  Prefactor     192.38        81.584        .69600E-05    .86159E-03
  20  norm          .58616        5.4054       -.40553E-05    .14614E-02
  21  Prefactor     .10000E-03    7.5400        .30282E-06** at limit **
  22  norm          43.226        29.648       -.78100E-06    .33313E-03
  23  Normalizat    .87640        .23417        .19040E-06    .37372E-03
  24  Prefactor     1.1424        .13140        .23556E-06    .58598E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.52647
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 82.3444
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.4888
  Prefactor  = 0.0001
  Prefactor  = 26.6434
  Prefactor  = 5.43153
  Prefactor  = 17.5144
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.353943
  Prefactor  = 192.38
  norm       = 0.586156
  Prefactor  = 0.0001
  norm       = 43.2264
  Normalizat = 0.876397
  Prefactor  = 1.14242
 **********
 **   18 **HESSE 
 **********

 FCN=   8317.445     FROM HESSE     STATUS=OK           391 CALLS     3221 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5265        1.9749        .91988E-04   -1.5332    
   2  Prefactor     .10000E-03    19.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    73.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     82.344        50.595        .44264E-04   -1.3891    
   5  Prefactor     .10000E-03    1.4619        .10759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.9780        .12484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.0291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.5400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     26.489        17.356        .77837E-04   -1.4678    
  10  Prefactor     .10000E-03    4.7954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     26.643        14.468        .77608E-04   -1.4675    
  12  Prefactor     5.4315        26.151        .17247E-03   -1.5242    
  13  Prefactor     17.514        11.563        .95699E-04   -1.4871    
  14  Prefactor     .10000E-03    27.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.6013        .11241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    9.6197        .24110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    246.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .35394        1.3119        .18538E-03   -1.5589    
  19  Prefactor     192.38        133.43        .14561E-03   -1.2925    
  20  norm          .58616        32.014        .22289E-02   -1.5555    
  21  Prefactor     .10000E-03    7.5437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          43.226        29.580        .60981E-04   -1.4392    
  23  Normalizat    .87640        .27158        .37483E-03   -.97295    
  24  Prefactor     1.1424        .15387        .19790E-03   -.88122    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.323e-08
Minuit parameter uncertainties:
  1  1.97497
  2  6.06481e-06
  3  8.41892e-05
  4  50.6213
  5  2.44394e-06
  6  1.06712e-06
  7  6.673e-07
  8  9.20434e-05
  9  17.359
  10  6.84333e-06
  11  14.4697
  12  23.8527
  13  11.5647
  14  1.56079e-06
  15  1.0114e-06
  16  2.24365e-06
  17  0.000476678
  18  1.31205
  19  133.637
  20  8.66787
  21  7.01027e-05
  22  29.5895
  23  0.272006
  24  0.153928
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.751e+01  1.156e+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:  1.142e+00  1.539e-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:  8.764e-01  2.720e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.66
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 8.07e-08 +/- 5.32e-08
Energy Flux (Fixed Index): 1.97e-05 +/- 1.30e-05

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

Saving results to:
/scratch/kocevski/261138/likelihoodResults_527040001_527299201_4FGL_J2219.2-0342_daily_bin1110.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) = 8317.08886768
delta logL = 0.356318969934

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8317.05620069
delta logL = 0.388985964837

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.817       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1898       1.0000          .0000       10.000    
     3 'Normalizat'    .90894       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1273       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=   8317.056     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      210 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 64.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.818        11.468        .11449E-05   -.83120E-03
   2  Index         2.1903        .37957       -.33018E-05   -.26170E-03
   3  Normalizat    .90868        .21976        .21258E-06    .41716E-04
   4  Prefactor     1.1275        .13082       -.17607E-06    .98450E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.8176
  Index      = 2.19032
  Normalizat = 0.90868
  Prefactor  = 1.12748
 **********
 **   18 **HESSE 
 **********

 FCN=   8317.056     FROM HESSE     STATUS=OK            29 CALLS      239 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.818        13.238        .87787E-04   -1.4795    
   2  Index         2.1903        .50074        .82201E-02   -.59673    
   3  Normalizat    .90868        .25513        .36864E-03   -.96156    
   4  Prefactor     1.1275        .15170        .19895E-03   -.88593    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81407e-09
Minuit parameter uncertainties:
  1  13.2401
  2  0.501968
  3  0.255469
  4  0.151755
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261138': 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) = 8317.05619965
delta logL = 0.38898699745

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  2.082e+01  1.324e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.190e+00  5.020e-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:  1.127e+00  1.518e-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:  9.087e-01  2.555e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.40
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 2.19 +/- 0.50
Photon Flux (Free Index): 6.10e-08 +/- 4.75e-08
Energy Flux (Free Index): 2.79e-05 +/- 2.23e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/261138/cmap_HighResolution_527040001_527299201_4FGL_J2219.2-0342_daily_bin1110.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.48e-02', comment='SUCCESS', photon_flux='8.07e-08', energy_flux2='2.79e-05', photon_flux_error='5.32e-08', dlogl='3.89e-01', energy_flux='1.97e-05', photon_flux2='6.10e-08', job_status='DONE', time_completed='2021-09-28 09:31:05.950576', photon_index_error2='0.50', photon_index2='2.19', ts='3.66', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='1.88e-07', energy_flux_error2='2.23e-05', EG='0.88', time_epoch_completed='1632846665.95', return_code='0', job_id='261138', GAL2='1.13', EG2='0.91', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='4.75e-08', ts2='4.40', photon_index='2.68' WHERE bin_id='1110' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:31:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 261138: <4FGL_J2219.2-0342_daily_bin1110> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1110 334.823 -3.7102 527040001 527299201 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 :                                   777.23 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             291.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            950 sec.

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

