/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 140 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 = 7474
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2219.2-0342_daily_bin159
RA = 334.823, Dec = -3.7102
tmin = 280540801, tmax = 280800001
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='255499', job_status='RUN', time_executed='2021-09-28 08:58:10.347559', time_epoch_executed='1632844690.35' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='159'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/255499

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/255499/ft1_4FGL_J2219.2-0342_daily_bin159.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/255499/ft2_4FGL_J2219.2-0342_daily_bin159.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/255499/ft1_4FGL_J2219.2-0342_daily_bin159.fits outfile=/scratch/kocevski/255499/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin159.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=280540801.0 tmax=280800001.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.51
user 3.27
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/255499/ft2_4FGL_J2219.2-0342_daily_bin159.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/255499/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin159.fits evtable="EVENTS" outfile="/scratch/kocevski/255499/ft1_filtered_4FGL_J2219.2-0342_daily_bin159.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.48
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/255499/ft1_filtered_4FGL_J2219.2-0342_daily_bin159.fits" evtable="EVENTS" scfile=/scratch/kocevski/255499/ft2_4FGL_J2219.2-0342_daily_bin159.fits sctable="SC_DATA" outfile=/scratch/kocevski/255499/ltcube_280540801_280800001_4FGL_J2219.2-0342_daily_bin159.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/255499/ft2_4FGL_J2219.2-0342_daily_bin159.fits
.....................!
real 11.77
user 11.43
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/255499/ft1_filtered_4FGL_J2219.2-0342_daily_bin159.fits evtable="EVENTS" scfile=/scratch/kocevski/255499/ft2_4FGL_J2219.2-0342_daily_bin159.fits sctable="SC_DATA" expcube=/scratch/kocevski/255499/ltcube_280540801_280800001_4FGL_J2219.2-0342_daily_bin159.fits outfile=/scratch/kocevski/255499/expmap_280540801_280800001_4FGL_J2219.2-0342_daily_bin159.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/255499/ltcube_280540801_280800001_4FGL_J2219.2-0342_daily_bin159.fits
.....................!
real 191.43
user 186.61
sys 4.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/255499/ft1_filtered_4FGL_J2219.2-0342_daily_bin159.fits scfile=/scratch/kocevski/255499/ft2_4FGL_J2219.2-0342_daily_bin159.fits outfile=/scratch/kocevski/255499/cmap_280540801_280800001_4FGL_J2219.2-0342_daily_bin159.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.37
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/255499/ft1_filtered_4FGL_J2219.2-0342_daily_bin159.fits evtable="EVENTS" scfile=/scratch/kocevski/255499/ft2_4FGL_J2219.2-0342_daily_bin159.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/255499/Model_4FGL_J2219.2-0342_daily_bin159.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/255499/ft1_filtered_4FGL_J2219.2-0342_daily_bin159.fits.....................!
real 65.42
user 64.12
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12819E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.309       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.7134       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.0031       1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.616       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.1670       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.171       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.7339       1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.828       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    59.020       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.753       1.0000         .10000E-03   10000.    
    16 'norm      '    10.170       1.0000         .10000E-03   10000.    
    17 'Prefactor '    74.489       1.0000         .10000E-03   10000.    
    18 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.3620       1.0000         .10000E-03   10000.    
    20 'norm      '    .20309E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .75251       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0415       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=   6708.744     FROM MIGRAD    STATUS=CONVERGED    533 CALLS     2784 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.5150       -.53759E-06** at limit **
   2  Prefactor     .10000E-03    21.826        .98223E-07** at limit **
   3  Prefactor     15.331        39.292        .11453E-05    .14600E-03
   4  Prefactor     8.7090        74.573       -.13564E-05   -.70660E-05
   5  Prefactor     4.0033        6.3351        .21339E-06    .24329E-05
   6  Prefactor     22.616        10.155        .12373E-06    .11980E-04
   7  Prefactor     6.1667        11.044        .43332E-05   -.40092E-04
   8  Prefactor     .10000E-03    28.647       -.16750E-06** at limit **
   9  Prefactor     23.169        19.277       -.56042E-06   -.23567E-04
  10  Prefactor     7.7337        17.641       -.10916E-06   -.12091E-05
  11  Prefactor     23.827        14.478        .16456E-06    .18822E-05
  12  Prefactor     .10000E-03    21.741        .13384E-06** at limit **
  13  Prefactor     .10000E-03    4.6941        .77557E-07** at limit **
  14  Prefactor     59.001        65.667       -.13980E-05   -.61228E-04
  15  Prefactor     11.753        5.4517        .75131E-06   -.66802E-04
  16  norm          10.171        4.8855        .20283E-06    .36470E-04
  17  Prefactor     74.435        93.141       -.45537E-05   -.10800E-03
  18  norm          .10000E-03    .45814       -.30110E-07** at limit **
  19  Prefactor     5.3717        12.016        .61289E-06    .23472E-03
  20  norm          .10003E-03    .76513       -.36279E-06** at limit **
  21  Prefactor     .10000E-03    3.6123        .21066E-08** at limit **
  22  norm          .10000E-03    6.1961        .64561E-06** at limit **
  23  Normalizat    .75250        .23070       -.13817E-05    .10232E-03
  24  Prefactor     1.0416        .13323       -.21104E-06    .18588E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 15.3308
  Prefactor  = 8.70905
  Prefactor  = 4.00325
  Prefactor  = 22.6161
  Prefactor  = 6.16673
  Prefactor  = 0.0001
  Prefactor  = 23.1686
  Prefactor  = 7.73367
  Prefactor  = 23.8271
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 59.0009
  Prefactor  = 11.7529
  norm       = 10.171
  Prefactor  = 74.4352
  norm       = 0.000100001
  Prefactor  = 5.37169
  norm       = 0.000100033
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.752504
  Prefactor  = 1.04158
 **********
 **   18 **HESSE 
 **********

 FCN=   6708.744     FROM HESSE     STATUS=OK           403 CALLS     3187 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.5201        .18829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    21.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.331        39.394        .10237E-03   -1.4925    
   4  Prefactor     8.7090        73.689        .13579E-03   -1.5118    
   5  Prefactor     4.0033        6.2860        .20157E-03   -1.5308    
   6  Prefactor     22.616        10.169        .84226E-04   -1.4756    
   7  Prefactor     6.1667        11.150        .80830E-03   -1.5211    
   8  Prefactor     .10000E-03    29.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     23.169        19.242        .83214E-04   -1.4745    
  10  Prefactor     7.7337        17.585        .14419E-03   -1.5152    
  11  Prefactor     23.827        14.495        .82060E-04   -1.4731    
  12  Prefactor     .10000E-03    21.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.7141        .17325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     59.001        65.987        .52223E-04   -1.4170    
  15  Prefactor     11.753        5.4474        .58426E-03   -1.5022    
  16  norm          10.171        4.8930        .11391E-03   -1.5070    
  17  Prefactor     74.435        95.069        .23260E-03   -1.3980    
  18  norm          .10000E-03    2.8620        .10747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.3717        10.746        .17355E-03   -1.5244    
  20  norm          .10003E-03    7.2079        .12120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.6170        .15203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    6.2496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .75250        .26719        .35975E-03   -1.0186    
  24  Prefactor     1.0416        .15614        .18812E-03   -.91356    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.95272e-09
Minuit parameter uncertainties:
  1  0.00031912
  2  1.62106e-05
  3  39.4608
  4  50.7505
  5  6.28701
  6  10.1697
  7  11.1542
  8  9.11572e-06
  9  19.2467
  10  17.5966
  11  14.497
  12  2.2754e-05
  13  2.61435e-06
  14  66.0686
  15  5.44765
  16  4.89314
  17  95.2643
  18  8.97621e-05
  19  10.7498
  20  0.000976124
  21  1.90944e-06
  22  4.96406e-05
  23  0.267655
  24  0.156205
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  2.614e-06  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.042e+00  1.562e-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:  7.525e-01  2.677e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 334.823 -3.710
Photon Flux Upper Limit: 8.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/255499/likelihoodResults_280540801_280800001_4FGL_J2219.2-0342_daily_bin159.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6708.74528562
delta logL = -0.00101026685206

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6708.74427521
delta logL = 1.45529156725e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6615       1.0000          .0000       10.000    
     3 'Normalizat'    .75249       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0416       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=   6708.744     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      253 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.807        .17620E-01** at limit **
   2  Index         2.1888        7.7235        .50000        .28676E-06
   3  Normalizat    .75250        .10863E-01    .35975E-03   -.22386E-03
   4  Prefactor     1.0416        .66365E-02    .18812E-03   -.41094E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.18882
  Normalizat = 0.752503
  Prefactor  = 1.04158
 **********
 **   18 **HESSE 
 **********

 FCN=   6708.744     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      282 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    225.58        .19356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1888        6.7402        .50000       -.59709    
   3  Normalizat    .75250        .33771E-01    .14390E-04   -1.0186    
   4  Prefactor     1.0416        .20633E-01    .37624E-04   -.91356    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.43694e-09
Minuit parameter uncertainties:
  1  9.68039e-05
  2  660.582
  3  0.0337723
  4  0.020633
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/255499': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6708.74427311
delta logL = 2.24633458856e-06

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  9.680e-05  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.189e+00  6.606e+02  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.042e+00  2.063e-02  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:  7.525e-01  3.377e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 334.823 -3.710

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/255499/cmap_HighResolution_280540801_280800001_4FGL_J2219.2-0342_daily_bin159.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.68e-03', job_status='DONE', photon_flux_upper_limit='8.50e-08', time_completed='2021-09-28 09:09:18.331297', job_id='255499', GAL2='1.04', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1632845358.33', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='2.25e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='159' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:09:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 255499: <4FGL_J2219.2-0342_daily_bin159> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin159> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 08:55:39 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 08:55:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 08:55:40 2021
Terminated at Tue Sep 28 09:09:21 2021
Results reported at Tue Sep 28 09:09:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin159 334.823 -3.7102 280540801 280800001 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 :                                   668.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             299.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            822 sec.

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

