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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1044
RA = 334.823, Dec = -3.7102
tmin = 509932801, tmax = 510192001
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='259995', job_status='RUN', time_executed='2021-09-28 09:11:25.130344', time_epoch_executed='1632845485.13' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1044'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259995

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259995/ft1_4FGL_J2219.2-0342_daily_bin1044.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259995/ft2_4FGL_J2219.2-0342_daily_bin1044.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259995/ft1_4FGL_J2219.2-0342_daily_bin1044.fits outfile=/scratch/kocevski/259995/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1044.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=509932801.0 tmax=510192001.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.55
user 3.29
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/259995/ft1_filtered_4FGL_J2219.2-0342_daily_bin1044.fits" evtable="EVENTS" scfile=/scratch/kocevski/259995/ft2_4FGL_J2219.2-0342_daily_bin1044.fits sctable="SC_DATA" outfile=/scratch/kocevski/259995/ltcube_509932801_510192001_4FGL_J2219.2-0342_daily_bin1044.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/259995/ft2_4FGL_J2219.2-0342_daily_bin1044.fits
.....................!
real 12.04
user 11.68
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259995/ft1_filtered_4FGL_J2219.2-0342_daily_bin1044.fits evtable="EVENTS" scfile=/scratch/kocevski/259995/ft2_4FGL_J2219.2-0342_daily_bin1044.fits sctable="SC_DATA" expcube=/scratch/kocevski/259995/ltcube_509932801_510192001_4FGL_J2219.2-0342_daily_bin1044.fits outfile=/scratch/kocevski/259995/expmap_509932801_510192001_4FGL_J2219.2-0342_daily_bin1044.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/259995/ltcube_509932801_510192001_4FGL_J2219.2-0342_daily_bin1044.fits
.....................!
real 191.35
user 185.51
sys 5.51

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/259995/ft1_filtered_4FGL_J2219.2-0342_daily_bin1044.fits scfile=/scratch/kocevski/259995/ft2_4FGL_J2219.2-0342_daily_bin1044.fits outfile=/scratch/kocevski/259995/cmap_509932801_510192001_4FGL_J2219.2-0342_daily_bin1044.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/259995/ft1_filtered_4FGL_J2219.2-0342_daily_bin1044.fits scfile=/scratch/kocevski/259995/ft2_4FGL_J2219.2-0342_daily_bin1044.fits outfile=/scratch/kocevski/259995/cmap_HighResolution_509932801_510192001_4FGL_J2219.2-0342_daily_bin1044.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11350E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12618E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.118       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10542E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10266E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9652       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.5158       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.436       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7704       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.7920       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.440       1.0000         .10000E-03   10000.    
    14 'Prefactor '    34.419       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.3013       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10506E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.8217       1.0000         .10000E-03   10000.    
    19 'Prefactor '    80.706       1.0000         .10000E-03   10000.    
    20 'norm      '    10.844       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.8815       1.0000         .10000E-03   10000.    
    22 'norm      '    28.832       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2046       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1032       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=   6787.366     FROM MIGRAD    STATUS=CONVERGED    562 CALLS     2839 TOTAL
                     EDM=   .79E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6648        .24744E-06** at limit **
   2  Prefactor     .10000E-03    36.158        .31689E-06** at limit **
   3  Prefactor     16.300        55.460        .42226E-05   -.27064E-05
   4  Prefactor     .10000E-03    30.195       -.78936E-07** at limit **
   5  Prefactor     .10000E-03    4.5274        .53147E-07** at limit **
   6  Prefactor     1.9632        6.9923        .12763E-05   -.86481E-05
   7  Prefactor     8.5213        12.179       -.13700E-06   -.25326E-04
   8  Prefactor     12.440        13.441        .11071E-06   -.99406E-05
   9  Prefactor     1.7961        85.933        .16745E-05   -.16392E-04
  10  Prefactor     5.7783        24.472        .56142E-06    .18223E-04
  11  Prefactor     .10000E-03    8.2518        .68422E-07** at limit **
  12  Prefactor     .10000E-03    11.454        .38285E-07** at limit **
  13  Prefactor     16.441        13.930        .12901E-06   -.22892E-04
  14  Prefactor     34.453        121.97        .75457E-05    .69340E-05
  15  Prefactor     .10000E-03    2.3556        .11226E-08** at limit **
  16  norm          7.3032        6.0060        .15278E-06   -.23882E-04
  17  Prefactor     .10000E-03    67.920       -.69584E-06** at limit **
  18  norm          3.8219        1.5711       -.24701E-08   -.35462E-04
  19  Prefactor     80.712        89.710        .13029E-05   -.14903E-04
  20  norm          10.844        7.0848       -.23501E-06    .13754E-04
  21  Prefactor     6.8808        12.720        .18957E-05   -.55655E-05
  22  norm          28.831        17.318        .23335E-06   -.12295E-04
  23  Normalizat    1.2046        .28293       -.35557E-05   -.10965E-04
  24  Prefactor     1.1033        .15548        .64844E-06   -.20817E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 16.2996
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.9632
  Prefactor  = 8.5213
  Prefactor  = 12.4402
  Prefactor  = 1.79614
  Prefactor  = 5.77833
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.441
  Prefactor  = 34.4529
  Prefactor  = 0.0001
  norm       = 7.30325
  Prefactor  = 0.0001
  norm       = 3.82185
  Prefactor  = 80.7118
  norm       = 10.844
  Prefactor  = 6.88081
  norm       = 28.8312
  Normalizat = 1.20459
  Prefactor  = 1.10326
 **********
 **   18 **HESSE 
 **********

 FCN=   6787.366     FROM HESSE     STATUS=OK           403 CALLS     3242 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.1530        .19934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    36.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.300        54.710        .99762E-04   -1.4900    
   4  Prefactor     .10000E-03    30.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.5522        .17120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.9632        7.0157        .29585E-03   -1.5428    
   7  Prefactor     8.5213        12.157        .13737E-03   -1.5124    
   8  Prefactor     12.440        13.441        .11359E-03   -1.5002    
   9  Prefactor     1.7961        88.128        .31473E-03   -1.5440    
  10  Prefactor     5.7783        24.517        .16688E-03   -1.5227    
  11  Prefactor     .10000E-03    8.2843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     16.441        13.927        .98780E-04   -1.4897    
  14  Prefactor     34.453        122.41        .68305E-04   -1.4533    
  15  Prefactor     .10000E-03    2.3705        .12337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.3032        5.9945        .14844E-03   -1.5167    
  17  Prefactor     .10000E-03    67.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.8219        1.5711        .63870E-04   -1.5317    
  19  Prefactor     80.712        95.827        .44707E-04   -1.3909    
  20  norm          10.844        7.5624        .83881E-04   -1.5049    
  21  Prefactor     6.8808        12.796        .76471E-03   -1.5183    
  22  norm          28.831        17.323        .74614E-04   -1.4634    
  23  Normalizat    1.2046        .31456        .35258E-03   -.86461    
  24  Prefactor     1.1033        .17878        .21720E-03   -.89362    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.2638e-10
Minuit parameter uncertainties:
  1  0.000168908
  2  3.5073e-05
  3  54.8792
  4  1.51751e-05
  5  6.713e-06
  6  7.01861
  7  12.1606
  8  13.4447
  9  25.2014
  10  23.8213
  11  2.77566e-06
  12  7.85926e-06
  13  13.9299
  14  123.316
  15  3.56621e-06
  16  5.99497
  17  8.31383e-06
  18  1.57107
  19  96.0108
  20  7.56309
  21  12.8011
  22  17.3262
  23  0.315059
  24  0.178876
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.644e+01  1.393e+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.103e+00  1.789e-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.205e+00  3.151e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.12
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 7.57e-08 +/- 6.41e-08
Energy Flux (Fixed Index): 1.85e-05 +/- 1.57e-05

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

Saving results to:
/scratch/kocevski/259995/likelihoodResults_509932801_510192001_4FGL_J2219.2-0342_daily_bin1044.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) = 6787.3068755
delta logL = 0.0593656000256

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6787.29836062
delta logL = 0.0678804817335

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.355       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4220       1.0000          .0000       10.000    
     3 'Normalizat'    1.2202       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0961       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6787.298     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      236 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.354        15.590        .93485E-04    .73496E-03
   2  Index         2.4220        .67019        .97659E-02    .21534E-03
   3  Normalizat    1.2202        .29682        .35061E-03   -.11725E-03
   4  Prefactor     1.0961        .17564        .21779E-03   -.25366E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.3543
  Index      = 2.422
  Normalizat = 1.22018
  Prefactor  = 1.09608
 **********
 **   18 **HESSE 
 **********

 FCN=   6787.298     FROM HESSE     STATUS=OK            23 CALLS      259 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.354        15.495        .18697E-04   -1.4851    
   2  Index         2.4220        .66591        .39063E-03   -.54171    
   3  Normalizat    1.2202        .29705        .14024E-04   -.85982    
   4  Prefactor     1.0961        .17575        .43558E-04   -.89592    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70786e-09
Minuit parameter uncertainties:
  1  15.498
  2  0.668621
  3  0.297461
  4  0.175838
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259995': 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) = 6787.29836061
delta logL = 0.0678804861909

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.835e+01  1.550e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.422e+00  6.686e-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.096e+00  1.758e-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.220e+00  2.975e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.24
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 2.42 +/- 0.67
Photon Flux (Free Index): 6.56e-08 +/- 6.37e-08
Energy Flux (Free Index): 2.09e-05 +/- 1.90e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/259995/cmap_HighResolution_509932801_510192001_4FGL_J2219.2-0342_daily_bin1044.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.66e-02', comment='SUCCESS', photon_flux='7.57e-08', energy_flux2='2.09e-05', photon_flux_error='6.41e-08', dlogl='6.79e-02', energy_flux='1.85e-05', photon_flux2='6.56e-08', job_status='DONE', time_completed='2021-09-28 09:22:50.373630', photon_index_error2='0.67', photon_index2='2.42', ts='2.12', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='2.11e-07', energy_flux_error2='1.90e-05', EG='1.20', time_epoch_completed='1632846170.37', return_code='0', job_id='259995', GAL2='1.10', EG2='1.22', return_code2='0', energy_flux_error='1.57e-05', photon_flux_error2='6.37e-08', ts2='2.24', photon_index='2.68' WHERE bin_id='1044' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:22:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 259995: <4FGL_J2219.2-0342_daily_bin1044> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1044> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 09:10:59 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:11: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:11:00 2021
Terminated at Tue Sep 28 09:22:51 2021
Results reported at Tue Sep 28 09:22:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1044 334.823 -3.7102 509932801 510192001 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 :                                   684.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             369.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   710 sec.
    Turnaround time :                            712 sec.

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

