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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin723
RA = 334.823, Dec = -3.7102
tmin = 426729601, tmax = 426988801
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='259503', job_status='RUN', time_executed='2021-09-28 09:13:41.372807', time_epoch_executed='1632845621.37' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='723'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259503

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259503/ft1_4FGL_J2219.2-0342_daily_bin723.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259503/ft2_4FGL_J2219.2-0342_daily_bin723.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259503/ft1_4FGL_J2219.2-0342_daily_bin723.fits outfile=/scratch/kocevski/259503/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin723.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=426729601.0 tmax=426988801.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 5.60
user 5.24
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/259503/ft2_4FGL_J2219.2-0342_daily_bin723.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/259503/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin723.fits evtable="EVENTS" outfile="/scratch/kocevski/259503/ft1_filtered_4FGL_J2219.2-0342_daily_bin723.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.49
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/259503/ft1_filtered_4FGL_J2219.2-0342_daily_bin723.fits" evtable="EVENTS" scfile=/scratch/kocevski/259503/ft2_4FGL_J2219.2-0342_daily_bin723.fits sctable="SC_DATA" outfile=/scratch/kocevski/259503/ltcube_426729601_426988801_4FGL_J2219.2-0342_daily_bin723.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/259503/ft2_4FGL_J2219.2-0342_daily_bin723.fits
.....................!
real 11.94
user 11.59
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259503/ft1_filtered_4FGL_J2219.2-0342_daily_bin723.fits evtable="EVENTS" scfile=/scratch/kocevski/259503/ft2_4FGL_J2219.2-0342_daily_bin723.fits sctable="SC_DATA" expcube=/scratch/kocevski/259503/ltcube_426729601_426988801_4FGL_J2219.2-0342_daily_bin723.fits outfile=/scratch/kocevski/259503/expmap_426729601_426988801_4FGL_J2219.2-0342_daily_bin723.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/259503/ltcube_426729601_426988801_4FGL_J2219.2-0342_daily_bin723.fits
.....................!
real 190.56
user 185.09
sys 5.07

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/259503/ft1_filtered_4FGL_J2219.2-0342_daily_bin723.fits scfile=/scratch/kocevski/259503/ft2_4FGL_J2219.2-0342_daily_bin723.fits outfile=/scratch/kocevski/259503/cmap_426729601_426988801_4FGL_J2219.2-0342_daily_bin723.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/259503/ft1_filtered_4FGL_J2219.2-0342_daily_bin723.fits scfile=/scratch/kocevski/259503/ft2_4FGL_J2219.2-0342_daily_bin723.fits outfile=/scratch/kocevski/259503/cmap_HighResolution_426729601_426988801_4FGL_J2219.2-0342_daily_bin723.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .63280       1.0000         .10000E-03   10000.    
     2 'Prefactor '    112.20       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.916       1.0000         .10000E-03   10000.    
     4 'Prefactor '    41.176       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.6904       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.6733       1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.606       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10373E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.362       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.121       1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.800       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.9079       1.0000         .10000E-03   10000.    
    16 'norm      '    7.0434       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.5961       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .20478       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1252       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5297.311     FROM MIGRAD    STATUS=CONVERGED     79 CALLS     2659 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .63383        1.9558       -.36044E-06    .11576E-02
   2  Prefactor     112.20        1.0856        .29825E-06   -.17665E-02
   3  Prefactor     11.918        1.0490        .64204E-06   -.29422E-03
   4  Prefactor     41.171        1.5127       -.14077E-05    .29973E-02
   5  Prefactor     .10000E-03    2.4743       -.18786E-05** at limit **
   6  Prefactor     5.6918        1.0888       -.92711E-06    .58906E-03
   7  Prefactor     2.6783        1.2604       -.30429E-05   -.41531E-03
   8  Prefactor     19.611        1.2862        .12856E-05   -.56689E-03
   9  Prefactor     .10000E-03    54.407        .69499E-04** at limit **
  10  Prefactor     .10018E-03    47.009       -.83923E-04** at limit **
  11  Prefactor     10.363        1.0558       -.72434E-06   -.14563E-03
  12  Prefactor     .10000E-03    12.226       -.10776E-04** at limit **
  13  Prefactor     20.123        1.0360        .56043E-06    .14823E-03
  14  Prefactor     25.805        1.5653        .19264E-05   -.27084E-02
  15  Prefactor     8.9087        1.5443        .26863E-05    .23523E-03
  16  norm          7.0440        4.6815        .11937E-04    .67201E-04
  17  Prefactor     .10056E-03    30.924       -.52054E-04** at limit **
  18  norm          2.5962        1.5238        .10186E-06    .49715E-03
  19  Prefactor     .10000E-03    6.5469       -.94912E-05** at limit **
  20  norm          .10000E-03    .53824       -.28557E-06** at limit **
  21  Prefactor     .10000E-03    9.5371        .79583E-05** at limit **
  22  norm          .10000E-03    6.2424        .89078E-05** at limit **
  23  Normalizat    .20487        .25682       -.11540E-04    .15342E-03
  24  Prefactor     1.1251        .15712       -.13573E-06    .81450E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.633833
  Prefactor  = 112.198
  Prefactor  = 11.9181
  Prefactor  = 41.1713
  Prefactor  = 0.000100002
  Prefactor  = 5.6918
  Prefactor  = 2.67833
  Prefactor  = 19.6113
  Prefactor  = 0.000100003
  Prefactor  = 0.000100177
  Prefactor  = 10.3633
  Prefactor  = 0.0001
  Prefactor  = 20.1232
  Prefactor  = 25.8048
  Prefactor  = 8.90873
  norm       = 7.04402
  Prefactor  = 0.000100559
  norm       = 2.59622
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Normalizat = 0.204869
  Prefactor  = 1.12515
 **********
 **   18 **HESSE 
 **********

 FCN=   5297.311     FROM HESSE     STATUS=OK           453 CALLS     3112 TOTAL
                     EDM=   .35E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .63383        2.1737        .11802E-01   -1.5549    
   2  Prefactor     112.20        54.180        .94944E-03   -1.3586    
   3  Prefactor     11.918        42.101        .29012E-02   -1.5017    
   4  Prefactor     41.171        54.829        .15617E-02   -1.4424    
   5  Prefactor     .10000E-03    2.4693        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.6918        11.823        .42097E-02   -1.5231    
   7  Prefactor     2.6783        20.804        .62312E-02   -1.5381    
   8  Prefactor     19.611        25.776        .22614E-02   -1.4822    
   9  Prefactor     .10000E-03    54.088        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10018E-03    77.829        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.363        16.956        .31119E-02   -1.5064    
  12  Prefactor     .10000E-03    12.214        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     20.123        19.030        .22323E-02   -1.4810    
  14  Prefactor     25.805        95.137        .19717E-02   -1.4692    
  15  Prefactor     8.9087        7.9544        .33573E-02   -1.5111    
  16  norm          7.0440        5.6014        .37789E-02   -1.5177    
  17  Prefactor     .10056E-03    72.260        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.5962        1.5576        .63307E-02   -1.5386    
  19  Prefactor     .10000E-03    6.5492        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .53691        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.5261        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    6.2436        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .20487        .94526        .13723       -1.2905    
  24  Prefactor     1.1251        .40190        .36699E-01   -.88667    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.47499e-07
Minuit parameter uncertainties:
  1  2.17402
  2  54.2037
  3  42.2063
  4  54.8959
  5  0.000135946
  6  11.8282
  7  14.9362
  8  25.791
  9  0.000758308
  10  0.00742485
  11  16.9642
  12  3.51834e-05
  13  19.036
  14  95.7033
  15  7.95536
  16  5.60185
  17  0.0127272
  18  1.55761
  19  0.000146989
  20  5.6063e-07
  21  0.000136349
  22  0.00017839
  23  0.88194
  24  0.402987
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  2.012e+01  1.904e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.682e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
258        Scale:  5.061e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  1.125e+00  4.030e-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:  2.049e-01  8.819e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.58
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 9.27e-08 +/- 8.76e-08
Energy Flux (Fixed Index): 2.26e-05 +/- 2.14e-05

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

Saving results to:
/scratch/kocevski/259503/likelihoodResults_426729601_426988801_4FGL_J2219.2-0342_daily_bin723.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) = 5297.30134463
delta logL = 0.00994033274037

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5297.29755365
delta logL = 0.0137313072401

Fit tolerance = 1e-08

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

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

 FCN=   5297.298     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      237 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.845        319.12        .23072E-02    .42712E-04
   2  Index         2.8012        6.3703        .21141        .48650E-04
   3  Normalizat    .19640        .96048E-01    .14022        .10401E-03
   4  Prefactor     1.1291        .58645E-01    .36582E-01    .87153E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.8453
  Index      = 2.8012
  Normalizat = 0.1964
  Prefactor  = 1.12915
 **********
 **   18 **HESSE 
 **********

 FCN=   5297.298     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .67E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.845        17.102        .92287E-04   -1.4839    
   2  Index         2.8012        .76846        .75643E-02   -.45533    
   3  Normalizat    .19640        .26378        .61535E-03   -1.2967    
   4  Prefactor     1.1291        .15930        .16209E-03   -.88540    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.67658e-12
Minuit parameter uncertainties:
  1  17.1061
  2  0.772261
  3  0.265487
  4  0.159367
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259503': 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) = 5297.29754792
delta logL = 0.0137370444609

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.885e+01  1.711e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.801e+00  7.723e-01  0.000e+00  1.000e+01 (-1.000e+00)
258        Scale:  5.061e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  1.129e+00  1.594e-01  0.000e+00  1.000e+01 ( 1.000e+00)
504        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
505        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
502   Normalization:  1.964e-01  2.655e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.64
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 2.80 +/- 0.77
Photon Flux (Free Index): 9.84e-08 +/- 7.69e-08
Energy Flux (Free Index): 2.20e-05 +/- 1.68e-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/259503/cmap_HighResolution_426729601_426988801_4FGL_J2219.2-0342_daily_bin723.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.79e-02', comment='SUCCESS', photon_flux='9.27e-08', energy_flux2='2.20e-05', photon_flux_error='8.76e-08', dlogl='1.37e-02', energy_flux='2.26e-05', photon_flux2='9.84e-08', job_status='DONE', time_completed='2021-09-28 09:24:00.155870', photon_index_error2='0.77', photon_index2='2.80', ts='2.58', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='2.28e-07', energy_flux_error2='1.68e-05', EG='0.20', time_epoch_completed='1632846240.16', return_code='0', job_id='259503', GAL2='1.13', EG2='0.20', return_code2='0', energy_flux_error='2.14e-05', photon_flux_error2='7.69e-08', ts2='2.64', photon_index='2.68' WHERE bin_id='723' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:24:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0143>
Subject: Job 259503: <4FGL_J2219.2-0342_daily_bin723> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin723 334.823 -3.7102 426729601 426988801 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 :                                   618.46 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            819 sec.

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

