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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1454
RA = 334.823, Dec = -3.7102
tmin = 616204801, tmax = 616464001
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='262663', job_status='RUN', time_executed='2021-09-28 09:23:29.434999', time_epoch_executed='1632846209.44' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1454'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/262663

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/262663/ft1_4FGL_J2219.2-0342_daily_bin1454.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/262663/ft2_4FGL_J2219.2-0342_daily_bin1454.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/262663/ft1_4FGL_J2219.2-0342_daily_bin1454.fits outfile=/scratch/kocevski/262663/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1454.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=616204801.0 tmax=616464001.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 4.05
user 3.80
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/262663/ft2_4FGL_J2219.2-0342_daily_bin1454.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/262663/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1454.fits evtable="EVENTS" outfile="/scratch/kocevski/262663/ft1_filtered_4FGL_J2219.2-0342_daily_bin1454.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/262663/ft1_filtered_4FGL_J2219.2-0342_daily_bin1454.fits" evtable="EVENTS" scfile=/scratch/kocevski/262663/ft2_4FGL_J2219.2-0342_daily_bin1454.fits sctable="SC_DATA" outfile=/scratch/kocevski/262663/ltcube_616204801_616464001_4FGL_J2219.2-0342_daily_bin1454.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/262663/ft2_4FGL_J2219.2-0342_daily_bin1454.fits
.....................!
real 16.77
user 16.41
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/262663/ft1_filtered_4FGL_J2219.2-0342_daily_bin1454.fits evtable="EVENTS" scfile=/scratch/kocevski/262663/ft2_4FGL_J2219.2-0342_daily_bin1454.fits sctable="SC_DATA" expcube=/scratch/kocevski/262663/ltcube_616204801_616464001_4FGL_J2219.2-0342_daily_bin1454.fits outfile=/scratch/kocevski/262663/expmap_616204801_616464001_4FGL_J2219.2-0342_daily_bin1454.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/262663/ltcube_616204801_616464001_4FGL_J2219.2-0342_daily_bin1454.fits
.....................!
real 194.05
user 188.72
sys 4.92

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/262663/ft1_filtered_4FGL_J2219.2-0342_daily_bin1454.fits scfile=/scratch/kocevski/262663/ft2_4FGL_J2219.2-0342_daily_bin1454.fits outfile=/scratch/kocevski/262663/cmap_616204801_616464001_4FGL_J2219.2-0342_daily_bin1454.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/262663/ft1_filtered_4FGL_J2219.2-0342_daily_bin1454.fits scfile=/scratch/kocevski/262663/ft2_4FGL_J2219.2-0342_daily_bin1454.fits outfile=/scratch/kocevski/262663/cmap_HighResolution_616204801_616464001_4FGL_J2219.2-0342_daily_bin1454.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.58
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/262663/ft1_filtered_4FGL_J2219.2-0342_daily_bin1454.fits evtable="EVENTS" scfile=/scratch/kocevski/262663/ft2_4FGL_J2219.2-0342_daily_bin1454.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/262663/Model_4FGL_J2219.2-0342_daily_bin1454.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/262663/ft1_filtered_4FGL_J2219.2-0342_daily_bin1454.fits.....................!
real 56.22
user 54.64
sys 1.35

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5923       1.0000         .10000E-03   10000.    
     2 'Prefactor '    29.981       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.187       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.5117       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.746       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.897       1.0000         .10000E-03   10000.    
    10 'Prefactor '    47.008       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.100       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.741       1.0000         .10000E-03   10000.    
    14 'Prefactor '    136.55       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.9188       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.1868       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.6542       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    47.279       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .85639       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .85934       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=   5456.615     FROM MIGRAD    STATUS=CONVERGED    530 CALLS     2704 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5920        3.1452        .36395E-07   -.18829E-02
   2  Prefactor     29.962        38.062       -.21955E-04    .18177E-05
   3  Prefactor     .10000E-03    15.856       -.22244E-05** at limit **
   4  Prefactor     16.160        37.471       -.42102E-04   -.30903E-04
   5  Prefactor     2.5165        7.9112        .79287E-05   -.16128E-03
   6  Prefactor     18.740        9.5586       -.74586E-06    .24556E-04
   7  Prefactor     .10000E-03    12.398       -.21109E-05** at limit **
   8  Prefactor     .10000E-03    5.9669        .56856E-07** at limit **
   9  Prefactor     12.899        27.989        .62643E-05    .13653E-04
  10  Prefactor     47.000        34.409       -.70038E-05    .18552E-04
  11  Prefactor     13.094        13.652        .39611E-05    .20513E-04
  12  Prefactor     .10000E-03    13.547        .22592E-05** at limit **
  13  Prefactor     19.739        12.825       -.10884E-05    .12716E-03
  14  Prefactor     136.46        106.60       -.70427E-04   -.14869E-05
  15  Prefactor     .10000E-03    2.6136       -.40108E-06** at limit **
  16  norm          2.9167        3.2130        .22969E-05    .29307E-03
  17  Prefactor     .10000E-03    66.471        .20956E-05** at limit **
  18  norm          1.1863        .94801        .30016E-06    .72313E-03
  19  Prefactor     .10000E-03    14.063        .23536E-05** at limit **
  20  norm          2.6535        1.3805       -.26361E-07    .21312E-04
  21  Prefactor     .10000E-03    3.4520       -.23475E-06** at limit **
  22  norm          47.268        18.161       -.16924E-05    .54519E-04
  23  Normalizat    .85721        .23169        .98793E-05   -.77212E-04
  24  Prefactor     .85889        .13091        .83569E-06    .25358E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.59196
  Prefactor  = 29.9621
  Prefactor  = 0.0001
  Prefactor  = 16.1602
  Prefactor  = 2.51653
  Prefactor  = 18.7402
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.8986
  Prefactor  = 47.0003
  Prefactor  = 13.0939
  Prefactor  = 0.0001
  Prefactor  = 19.7388
  Prefactor  = 136.461
  Prefactor  = 0.0001
  norm       = 2.91671
  Prefactor  = 0.0001
  norm       = 1.18628
  Prefactor  = 0.0001
  norm       = 2.65353
  Prefactor  = 0.0001
  norm       = 47.2681
  Normalizat = 0.857209
  Prefactor  = 0.858889
 **********
 **   18 **HESSE 
 **********

 FCN=   5456.615     FROM HESSE     STATUS=OK           405 CALLS     3109 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5920        3.1444        .52132E-03   -1.5279    
   2  Prefactor     29.962        37.993        .73173E-04   -1.4613    
   3  Prefactor     .10000E-03    15.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.160        37.265        .99548E-04   -1.4904    
   5  Prefactor     2.5165        7.8391        .25782E-03   -1.5391    
   6  Prefactor     18.740        9.5783        .92507E-04   -1.4842    
   7  Prefactor     .10000E-03    12.837        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.9708        .17623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.899        27.852        .11154E-03   -1.4990    
  10  Prefactor     47.000        34.264        .58482E-04   -1.4336    
  11  Prefactor     13.094        13.668        .11067E-03   -1.4984    
  12  Prefactor     .10000E-03    13.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     19.739        12.561        .90145E-04   -1.4819    
  14  Prefactor     136.46        106.63        .17234E-03   -1.3366    
  15  Prefactor     .10000E-03    17.158        .22277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.9167        3.1938        .13100E-03   -1.5366    
  17  Prefactor     .10000E-03    66.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.1863        .94402        .62205E-04   -1.5490    
  19  Prefactor     .10000E-03    14.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.6535        1.3797        .60635E-04   -1.5382    
  21  Prefactor     .10000E-03    3.4541        .13404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          47.268        18.216        .58315E-04   -1.4332    
  23  Normalizat    .85721        .26836        .32449E-03   -.97980    
  24  Prefactor     .85889        .15270        .19372E-03   -.97593    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36877e-09
Minuit parameter uncertainties:
  1  3.14451
  2  38.0234
  3  5.27548e-06
  4  37.3184
  5  7.84225
  6  9.5791
  7  7.43093e-06
  8  2.47703e-07
  9  27.8803
  10  34.2787
  11  13.6716
  12  3.32447e-05
  13  12.5624
  14  106.776
  15  7.03264e-05
  16  3.19402
  17  0.00010755
  18  0.944034
  19  2.27089e-05
  20  1.37975
  21  4.64922e-06
  22  18.218
  23  0.268782
  24  0.152778
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.974e+01  1.256e+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:  8.589e-01  1.528e-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.572e-01  2.688e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.53
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 9.09e-08 +/- 5.78e-08
Energy Flux (Fixed Index): 2.22e-05 +/- 1.41e-05

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) = 5455.97999117
delta logL = 0.634942184466

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5455.93099766
delta logL = 0.683935695047

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.210       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0848       1.0000          .0000       10.000    
     3 'Normalizat'    .89627       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84042       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=   5455.931     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      213 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.212        14.184        .39422E-05   -.82475E-03
   2  Index         2.0849        .35240       -.52769E-05   -.63647E-03
   3  Normalizat    .89642        .21680        .41128E-07    .35351E-04
   4  Prefactor     .84034        .12985       -.52031E-06    .98986E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.2122
  Index      = 2.08491
  Normalizat = 0.896423
  Prefactor  = 0.840337
 **********
 **   18 **HESSE 
 **********

 FCN=   5455.931     FROM HESSE     STATUS=OK            31 CALLS      244 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.212        14.926        .81410E-04   -1.4723    
   2  Index         2.0849        .44991        .70050E-02   -.62244    
   3  Normalizat    .89642        .25164        .31792E-03   -.96586    
   4  Prefactor     .84034        .15082        .19546E-03   -.98258    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.22234e-09
Minuit parameter uncertainties:
  1  14.9285
  2  0.450836
  3  0.251972
  4  0.150891
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/262663': 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) = 5455.9309974
delta logL = 0.683935953564

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  2.421e+01  1.493e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.085e+00  4.508e-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:  8.403e-01  1.509e-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.964e-01  2.520e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.89
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 2.08 +/- 0.45
Photon Flux (Free Index): 6.56e-08 +/- 4.80e-08
Energy Flux (Free Index): 3.72e-05 +/- 3.15e-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/262663/cmap_HighResolution_616204801_616464001_4FGL_J2219.2-0342_daily_bin1454.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.09e-08', energy_flux2='3.72e-05', photon_flux_error='5.78e-08', dlogl='6.84e-01', energy_flux='2.22e-05', photon_flux2='6.56e-08', job_status='DONE', time_completed='2021-09-28 09:33:02.817889', photon_index_error2='0.45', photon_index2='2.08', ts='4.53', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='3.15e-05', EG='0.86', time_epoch_completed='1632846782.82', return_code='0', job_id='262663', GAL2='0.84', EG2='0.90', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='4.80e-08', ts2='5.89', photon_index='2.68' WHERE bin_id='1454' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:33:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 262663: <4FGL_J2219.2-0342_daily_bin1454> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1454> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 09:20:13 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:20:14 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:20:14 2021
Terminated at Tue Sep 28 09:33:03 2021
Results reported at Tue Sep 28 09:33:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1454 334.823 -3.7102 616204801 616464001 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 :                                   571.40 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             280.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   769 sec.
    Turnaround time :                            770 sec.

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

