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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1118
RA = 334.823, Dec = -3.7102
tmin = 529113601, tmax = 529372801
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='261151', job_status='RUN', time_executed='2021-09-28 09:17:01.192107', time_epoch_executed='1632845821.19' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261151

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261151/ft1_4FGL_J2219.2-0342_daily_bin1118.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261151/ft2_4FGL_J2219.2-0342_daily_bin1118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261151/ft1_4FGL_J2219.2-0342_daily_bin1118.fits outfile=/scratch/kocevski/261151/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1118.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=529113601.0 tmax=529372801.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.98
user 3.76
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261151/ft1_filtered_4FGL_J2219.2-0342_daily_bin1118.fits" evtable="EVENTS" scfile=/scratch/kocevski/261151/ft2_4FGL_J2219.2-0342_daily_bin1118.fits sctable="SC_DATA" outfile=/scratch/kocevski/261151/ltcube_529113601_529372801_4FGL_J2219.2-0342_daily_bin1118.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/261151/ft2_4FGL_J2219.2-0342_daily_bin1118.fits
.....................!
real 11.71
user 11.35
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261151/ft1_filtered_4FGL_J2219.2-0342_daily_bin1118.fits evtable="EVENTS" scfile=/scratch/kocevski/261151/ft2_4FGL_J2219.2-0342_daily_bin1118.fits sctable="SC_DATA" expcube=/scratch/kocevski/261151/ltcube_529113601_529372801_4FGL_J2219.2-0342_daily_bin1118.fits outfile=/scratch/kocevski/261151/expmap_529113601_529372801_4FGL_J2219.2-0342_daily_bin1118.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/261151/ltcube_529113601_529372801_4FGL_J2219.2-0342_daily_bin1118.fits
.....................!
real 192.35
user 186.90
sys 5.14

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/261151/ft1_filtered_4FGL_J2219.2-0342_daily_bin1118.fits scfile=/scratch/kocevski/261151/ft2_4FGL_J2219.2-0342_daily_bin1118.fits outfile=/scratch/kocevski/261151/cmap_529113601_529372801_4FGL_J2219.2-0342_daily_bin1118.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261151/ft1_filtered_4FGL_J2219.2-0342_daily_bin1118.fits scfile=/scratch/kocevski/261151/ft2_4FGL_J2219.2-0342_daily_bin1118.fits outfile=/scratch/kocevski/261151/cmap_HighResolution_529113601_529372801_4FGL_J2219.2-0342_daily_bin1118.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.53
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261151/ft1_filtered_4FGL_J2219.2-0342_daily_bin1118.fits evtable="EVENTS" scfile=/scratch/kocevski/261151/ft2_4FGL_J2219.2-0342_daily_bin1118.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261151/Model_4FGL_J2219.2-0342_daily_bin1118.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/261151/ft1_filtered_4FGL_J2219.2-0342_daily_bin1118.fits.....................!
real 69.08
user 67.74
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2972       1.0000         .10000E-03   10000.    
     2 'Prefactor '    34.078       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    103.48       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .22939       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.9805       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.0241       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.5742       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.7246       1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.768       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.0045       1.0000         .10000E-03   10000.    
    16 'norm      '    10.769       1.0000         .10000E-03   10000.    
    17 'Prefactor '    58.480       1.0000         .10000E-03   10000.    
    18 'norm      '    1.3170       1.0000         .10000E-03   10000.    
    19 'Prefactor '    32.233       1.0000         .10000E-03   10000.    
    20 'norm      '    14.566       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.5565       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .80902       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .93012       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=   7252.101     FROM MIGRAD    STATUS=CONVERGED    537 CALLS     2724 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2976        2.4756        .20918E-06   -.18203E-03
   2  Prefactor     34.075        31.055       -.35523E-07    .74485E-05
   3  Prefactor     .10000E-03    13.679       -.67658E-06** at limit **
   4  Prefactor     103.49        64.025        .13496E-04    .23842E-03
   5  Prefactor     .10000E-03    6.4148       -.10160E-05** at limit **
   6  Prefactor     .10000E-03    4.8672        .40903E-06** at limit **
   7  Prefactor     .18531        6.4104        .51344E-06   -.56282E-03
   8  Prefactor     5.9731        23.107       -.27998E-06   -.20000E-04
   9  Prefactor     9.0269        11.434        .14983E-05    .58116E-04
  10  Prefactor     .10000E-03    40.805       -.35669E-05** at limit **
  11  Prefactor     2.5720        15.388       -.25282E-06   -.18330E-03
  12  Prefactor     4.7236        32.620       -.24828E-05   -.36526E-04
  13  Prefactor     16.768        11.931        .76368E-06    .69156E-04
  14  Prefactor     .10000E-03    29.466        .16634E-05** at limit **
  15  Prefactor     6.0044        5.5237        .18567E-05   -.15071E-03
  16  norm          10.769        4.3937       -.73999E-06   -.37814E-03
  17  Prefactor     58.475        79.403       -.62441E-05   -.38262E-04
  18  norm          1.3175        1.0253       -.97434E-06   -.13657E-02
  19  Prefactor     32.295        48.357        .66039E-04    .31980E-03
  20  norm          14.552        4.5609       -.72115E-05    .34873E-02
  21  Prefactor     .10000E-03    4.9741       -.74955E-06** at limit **
  22  norm          2.5558        10.148       -.19143E-05   -.25141E-03
  23  Normalizat    .80861        .21849       -.61693E-05    .11006E-03
  24  Prefactor     .93040        .12185        .19647E-05   -.29998E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.29763
  Prefactor  = 34.0748
  Prefactor  = 0.0001
  Prefactor  = 103.494
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.185311
  Prefactor  = 5.97312
  Prefactor  = 9.02692
  Prefactor  = 0.000100001
  Prefactor  = 2.57195
  Prefactor  = 4.72364
  Prefactor  = 16.7678
  Prefactor  = 0.0001
  Prefactor  = 6.00442
  norm       = 10.7689
  Prefactor  = 58.4751
  norm       = 1.31753
  Prefactor  = 32.2947
  norm       = 14.5516
  Prefactor  = 0.0001
  norm       = 2.55576
  Normalizat = 0.808614
  Prefactor  = 0.930397
 **********
 **   18 **HESSE 
 **********

 FCN=   7252.101     FROM HESSE     STATUS=OK           401 CALLS     3125 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2976        2.4699        .11144E-03   -1.5345    
   2  Prefactor     34.075        31.042        .68646E-04   -1.4540    
   3  Prefactor     .10000E-03    13.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     103.49        64.041        .39527E-04   -1.3670    
   5  Prefactor     .10000E-03    6.4535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.9705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .18531        130.93        .40624E-02   -1.5622    
   8  Prefactor     5.9731        23.031        .16419E-03   -1.5219    
   9  Prefactor     9.0269        11.426        .13342E-03   -1.5107    
  10  Prefactor     .10000E-03    41.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.5720        15.464        .25439E-03   -1.5387    
  12  Prefactor     4.7236        32.523        .18512E-03   -1.5273    
  13  Prefactor     16.768        11.905        .97810E-04   -1.4889    
  14  Prefactor     .10000E-03    29.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.0044        5.4950        .16386E-03   -1.5218    
  16  norm          10.769        4.3964        .10620E-03   -1.5052    
  17  Prefactor     58.475        79.393        .52462E-04   -1.4177    
  18  norm          1.3175        1.0240        .72738E-04   -1.5478    
  19  Prefactor     32.295        48.233        .70577E-04   -1.4571    
  20  norm          14.552        4.5617        .58743E-04   -1.4945    
  21  Prefactor     .10000E-03    5.0034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.5558        10.143        .25534E-03   -1.5388    
  23  Normalizat    .80861        .25544        .34382E-03   -.99750    
  24  Prefactor     .93040        .14548        .19455E-03   -.95087    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7642e-08
Minuit parameter uncertainties:
  1  2.46997
  2  31.0564
  3  1.42296e-05
  4  64.0834
  5  0.000163004
  6  2.90416e-05
  7  9.87056
  8  23.0652
  9  11.4292
  10  0.000335268
  11  12.6176
  12  24.8085
  13  11.9063
  14  5.25476e-05
  15  5.4955
  16  4.39656
  17  79.537
  18  1.02401
  19  48.2908
  20  4.56181
  21  1.42587e-05
  22  10.1501
  23  0.255817
  24  0.145536
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.677e+01  1.191e+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:  9.304e-01  1.455e-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.086e-01  2.558e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.23
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 7.73e-08 +/- 5.48e-08
Energy Flux (Fixed Index): 1.89e-05 +/- 1.34e-05

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

Saving results to:
/scratch/kocevski/261151/likelihoodResults_529113601_529372801_4FGL_J2219.2-0342_daily_bin1118.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) = 7251.90883187
delta logL = 0.192330652572

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7251.89613776
delta logL = 0.205024762493

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.565       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3313       1.0000          .0000       10.000    
     3 'Normalizat'    .82832       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92074       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7251.896     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      278 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.561        12.833        .45275E-03   -.18079E-05
   2  Index         2.3308        .50884        .82485E-02   -.11093E-04
   3  Normalizat    .82838        .23654        .34007E-03   -.16047E-05
   4  Prefactor     .92082        .14294        .19539E-03   -.30839E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.5607
  Index      = 2.3308
  Normalizat = 0.828385
  Prefactor  = 0.920824
 **********
 **   18 **HESSE 
 **********

 FCN=   7251.896     FROM HESSE     STATUS=OK            25 CALLS      303 TOTAL
                     EDM=   .10E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.561        12.801        .18110E-04   -1.4823    
   2  Index         2.3308        .50751        .16497E-02   -.56313    
   3  Normalizat    .82838        .23671        .13603E-04   -.99024    
   4  Prefactor     .92082        .14304        .78154E-05   -.95417    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03251e-14
Minuit parameter uncertainties:
  1  12.8028
  2  0.508732
  3  0.237009
  4  0.1431
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261151': 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) = 7251.89613571
delta logL = 0.205026815008

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.956e+01  1.280e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.331e+00  5.087e-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:  9.208e-01  1.431e-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.284e-01  2.370e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.64
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 2.33 +/- 0.51
Photon Flux (Free Index): 6.44e-08 +/- 4.90e-08
Energy Flux (Free Index): 2.33e-05 +/- 1.74e-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/261151/cmap_HighResolution_529113601_529372801_4FGL_J2219.2-0342_daily_bin1118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.43e-02', comment='SUCCESS', photon_flux='7.73e-08', energy_flux2='2.33e-05', photon_flux_error='5.48e-08', dlogl='2.05e-01', energy_flux='1.89e-05', photon_flux2='6.44e-08', job_status='DONE', time_completed='2021-09-28 09:28:50.451975', photon_index_error2='0.51', photon_index2='2.33', ts='3.23', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.82e-07', energy_flux_error2='1.74e-05', EG='0.81', time_epoch_completed='1632846530.45', return_code='0', job_id='261151', GAL2='0.92', EG2='0.83', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='4.90e-08', ts2='3.64', photon_index='2.68' WHERE bin_id='1118' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:28:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 261151: <4FGL_J2219.2-0342_daily_bin1118> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1118 334.823 -3.7102 529113601 529372801 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 :                                   709.15 sec.
    Max Memory :                                 1160 MB
    Average Memory :                             312.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            813 sec.

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

