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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin370
RA = 334.823, Dec = -3.7102
tmin = 335232001, tmax = 335491201
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='257942', job_status='RUN', time_executed='2021-09-28 09:07:19.044563', time_epoch_executed='1632845239.04' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='370'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/257942

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/257942/ft1_4FGL_J2219.2-0342_daily_bin370.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/257942/ft2_4FGL_J2219.2-0342_daily_bin370.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/257942/ft1_4FGL_J2219.2-0342_daily_bin370.fits outfile=/scratch/kocevski/257942/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin370.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=335232001.0 tmax=335491201.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.80
user 3.54
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/257942/ft1_filtered_4FGL_J2219.2-0342_daily_bin370.fits" evtable="EVENTS" scfile=/scratch/kocevski/257942/ft2_4FGL_J2219.2-0342_daily_bin370.fits sctable="SC_DATA" outfile=/scratch/kocevski/257942/ltcube_335232001_335491201_4FGL_J2219.2-0342_daily_bin370.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/257942/ft2_4FGL_J2219.2-0342_daily_bin370.fits
.....................!
real 12.21
user 11.84
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/257942/ft1_filtered_4FGL_J2219.2-0342_daily_bin370.fits evtable="EVENTS" scfile=/scratch/kocevski/257942/ft2_4FGL_J2219.2-0342_daily_bin370.fits sctable="SC_DATA" expcube=/scratch/kocevski/257942/ltcube_335232001_335491201_4FGL_J2219.2-0342_daily_bin370.fits outfile=/scratch/kocevski/257942/expmap_335232001_335491201_4FGL_J2219.2-0342_daily_bin370.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/257942/ltcube_335232001_335491201_4FGL_J2219.2-0342_daily_bin370.fits
.....................!
real 190.22
user 184.95
sys 4.90

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/257942/ft1_filtered_4FGL_J2219.2-0342_daily_bin370.fits scfile=/scratch/kocevski/257942/ft2_4FGL_J2219.2-0342_daily_bin370.fits outfile=/scratch/kocevski/257942/cmap_335232001_335491201_4FGL_J2219.2-0342_daily_bin370.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.57
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/257942/ft1_filtered_4FGL_J2219.2-0342_daily_bin370.fits scfile=/scratch/kocevski/257942/ft2_4FGL_J2219.2-0342_daily_bin370.fits outfile=/scratch/kocevski/257942/cmap_HighResolution_335232001_335491201_4FGL_J2219.2-0342_daily_bin370.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/257942/ft1_filtered_4FGL_J2219.2-0342_daily_bin370.fits evtable="EVENTS" scfile=/scratch/kocevski/257942/ft2_4FGL_J2219.2-0342_daily_bin370.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/257942/Model_4FGL_J2219.2-0342_daily_bin370.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/257942/ft1_filtered_4FGL_J2219.2-0342_daily_bin370.fits.....................!
real 51.56
user 50.10
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    42.731       1.0000         .10000E-03   10000.    
     4 'Prefactor '    38.147       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.9784       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.9299       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12163E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.931       1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.797       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.432       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.708       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.2364       1.0000         .10000E-03   10000.    
    16 'norm      '    8.4618       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.576       1.0000         .10000E-03   10000.    
    18 'norm      '    5.1450       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.5796       1.0000         .10000E-03   10000.    
    20 'norm      '    .16080E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.154       1.0000         .10000E-03   10000.    
    22 'norm      '    5.5473       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .94108       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .77766       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=   5032.402     FROM MIGRAD    STATUS=CONVERGED    542 CALLS     2731 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .79787        .13144E-08** at limit **
   2  Prefactor     .10000E-03    22.488       -.29617E-06** at limit **
   3  Prefactor     42.730        34.987        .74583E-07   -.77576E-06
   4  Prefactor     38.089        64.344        .87843E-05   -.19186E-04
   5  Prefactor     5.9823        8.5235       -.14914E-05   -.38208E-04
   6  Prefactor     .10000E-03    3.7189        .34363E-07** at limit **
   7  Prefactor     2.9291        8.9665        .20297E-07   -.46917E-05
   8  Prefactor     .10000E-03    28.705        .11171E-06** at limit **
   9  Prefactor     18.930        19.732        .12198E-06   -.11210E-05
  10  Prefactor     22.799        20.723       -.91603E-07   -.50542E-07
  11  Prefactor     13.432        15.324        .84707E-07    .46933E-05
  12  Prefactor     .10000E-03    7.5937        .34694E-08** at limit **
  13  Prefactor     17.710        14.995       -.91696E-06   -.87237E-05
  14  Prefactor     .10000E-03    91.803       -.52705E-06** at limit **
  15  Prefactor     3.2352        5.6252        .25560E-05   -.12254E-03
  16  norm          8.4621        4.9115       -.15141E-06    .24071E-04
  17  Prefactor     13.547        149.56        .55554E-05   -.33472E-05
  18  norm          5.1449        1.7688        .36985E-07    .26301E-03
  19  Prefactor     5.6316        32.481        .19799E-05    .17639E-03
  20  norm          .10000E-03    2.1437       -.32305E-06** at limit **
  21  Prefactor     22.154        16.880        .63400E-06    .74174E-04
  22  norm          5.5463        14.462        .10290E-06    .20321E-06
  23  Normalizat    .94095        .23626        .81976E-08    .62932E-04
  24  Prefactor     .77778        .13361       -.75795E-06    .91161E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.7296
  Prefactor  = 38.0889
  Prefactor  = 5.98227
  Prefactor  = 0.0001
  Prefactor  = 2.92913
  Prefactor  = 0.0001
  Prefactor  = 18.9304
  Prefactor  = 22.7991
  Prefactor  = 13.4325
  Prefactor  = 0.0001
  Prefactor  = 17.7101
  Prefactor  = 0.0001
  Prefactor  = 3.23516
  norm       = 8.46214
  Prefactor  = 13.5468
  norm       = 5.14494
  Prefactor  = 5.63161
  norm       = 0.0001
  Prefactor  = 22.1539
  norm       = 5.5463
  Normalizat = 0.940953
  Prefactor  = 0.777778
 **********
 **   18 **HESSE 
 **********

 FCN=   5032.402     FROM HESSE     STATUS=OK           405 CALLS     3136 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .80655        .61868E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    22.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     42.730        34.993        .61327E-04   -1.4400    
   4  Prefactor     38.089        63.096        .64893E-04   -1.4473    
   5  Prefactor     5.9823        8.4754        .16422E-03   -1.5219    
   6  Prefactor     .10000E-03    3.7600        .13357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.9291        8.9517        .23731E-03   -1.5366    
   8  Prefactor     .10000E-03    29.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     18.930        19.713        .92053E-04   -1.4838    
  10  Prefactor     22.799        20.725        .83892E-04   -1.4753    
  11  Prefactor     13.432        15.391        .10929E-03   -1.4975    
  12  Prefactor     .10000E-03    7.5962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     17.710        15.043        .95177E-04   -1.4866    
  14  Prefactor     .10000E-03    91.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.2352        5.6442        .97655E-03   -1.5348    
  16  norm          8.4621        4.9162        .11058E-03   -1.5126    
  17  Prefactor     13.547        148.58        .10871E-03   -1.4972    
  18  norm          5.1449        1.7678        .53077E-04   -1.5254    
  19  Prefactor     5.6316        22.806        .17008E-03   -1.5233    
  20  norm          .10000E-03    3.6540        .16384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     22.154        16.853        .85099E-04   -1.4766    
  22  norm          5.5463        14.479        .17058E-03   -1.5237    
  23  Normalizat    .94095        .28157        .29804E-03   -.95036    
  24  Prefactor     .77778        .15856        .19392E-03   -1.0055    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.46493e-10
Minuit parameter uncertainties:
  1  1.5482e-07
  2  3.68219e-05
  3  35.01
  4  63.2071
  5  8.47706
  6  3.06769e-06
  7  8.95577
  8  4.25173e-05
  9  19.7201
  10  20.7316
  11  15.3958
  12  1.3968e-07
  13  15.0458
  14  1.95356e-05
  15  5.64508
  16  4.9164
  17  90.0125
  18  1.76782
  19  22.6804
  20  8.51499e-05
  21  16.8567
  22  14.4885
  23  0.282008
  24  0.158654
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.771e+01  1.505e+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:  7.778e-01  1.587e-01  0.000e+00  1.000e+01 ( 1.000e+00)
504        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
505        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
502   Normalization:  9.410e-01  2.820e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.23
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 8.16e-08 +/- 6.92e-08
Energy Flux (Fixed Index): 1.99e-05 +/- 1.69e-05

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

Saving results to:
/scratch/kocevski/257942/likelihoodResults_335232001_335491201_4FGL_J2219.2-0342_daily_bin370.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) = 5032.11396716
delta logL = 0.287734355428

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5032.10758781
delta logL = 0.294113710526

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9868       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4505       1.0000          .0000       10.000    
     3 'Normalizat'    .89657       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79918       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=   5032.108     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      290 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9705        22.632        .63399E-03   -.53617E-05
   2  Index         3.4531        1.8381        .65989E-02    .29827E-03
   3  Normalizat    .89655        .27273        .30444E-03   -.33982E-05
   4  Prefactor     .79917        .16161        .19155E-03   -.54603E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.97052
  Index      = 3.45312
  Normalizat = 0.896546
  Prefactor  = 0.799174
 **********
 **   18 **HESSE 
 **********

 FCN=   5032.108     FROM HESSE     STATUS=OK            27 CALLS      317 TOTAL
                     EDM=   .67E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9705        15.778        .25360E-04   -1.5076    
   2  Index         3.4531        1.2973        .13198E-02   -.31454    
   3  Normalizat    .89655        .27042        .12178E-04   -.96582    
   4  Prefactor     .79917        .15938        .76619E-05   -.99759    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.68329e-14
Minuit parameter uncertainties:
  1  15.7845
  2  1.31397
  3  0.270826
  4  0.159475
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/257942': 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) = 5032.1075842
delta logL = 0.294117322441

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  9.971e+00  1.578e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  3.453e+00  1.314e+00  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:  7.992e-01  1.595e-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.965e-01  2.708e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.89
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 3.45 +/- 1.31
Photon Flux (Free Index): 1.10e-07 +/- 8.01e-08
Energy Flux (Free Index): 1.86e-05 +/- 1.36e-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/257942/cmap_HighResolution_335232001_335491201_4FGL_J2219.2-0342_daily_bin370.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.68e-02', comment='SUCCESS', photon_flux='8.16e-08', energy_flux2='1.86e-05', photon_flux_error='6.92e-08', dlogl='2.94e-01', energy_flux='1.99e-05', photon_flux2='1.10e-07', job_status='DONE', time_completed='2021-09-28 09:17:03.512859', photon_index_error2='1.31', photon_index2='3.45', ts='2.23', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='2.13e-07', energy_flux_error2='1.36e-05', EG='0.94', time_epoch_completed='1632845823.51', return_code='0', job_id='257942', GAL2='0.80', EG2='0.90', return_code2='0', energy_flux_error='1.69e-05', photon_flux_error2='8.01e-08', ts2='2.89', photon_index='2.68' WHERE bin_id='370' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:17:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 257942: <4FGL_J2219.2-0342_daily_bin370> in cluster <slac> Done

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

Your job looked like:

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

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

