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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin643
RA = 334.823, Dec = -3.7102
tmin = 405993601, tmax = 406252801
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='259385', job_status='RUN', time_executed='2021-09-28 09:12:25.864721', time_epoch_executed='1632845545.86' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='643'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/259385

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/259385/ft1_4FGL_J2219.2-0342_daily_bin643.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/259385/ft2_4FGL_J2219.2-0342_daily_bin643.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/259385/ft1_4FGL_J2219.2-0342_daily_bin643.fits outfile=/scratch/kocevski/259385/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin643.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=405993601.0 tmax=406252801.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.39
user 3.18
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/259385/ft1_filtered_4FGL_J2219.2-0342_daily_bin643.fits" evtable="EVENTS" scfile=/scratch/kocevski/259385/ft2_4FGL_J2219.2-0342_daily_bin643.fits sctable="SC_DATA" outfile=/scratch/kocevski/259385/ltcube_405993601_406252801_4FGL_J2219.2-0342_daily_bin643.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/259385/ft2_4FGL_J2219.2-0342_daily_bin643.fits
.....................!
real 12.08
user 11.67
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/259385/ft1_filtered_4FGL_J2219.2-0342_daily_bin643.fits evtable="EVENTS" scfile=/scratch/kocevski/259385/ft2_4FGL_J2219.2-0342_daily_bin643.fits sctable="SC_DATA" expcube=/scratch/kocevski/259385/ltcube_405993601_406252801_4FGL_J2219.2-0342_daily_bin643.fits outfile=/scratch/kocevski/259385/expmap_405993601_406252801_4FGL_J2219.2-0342_daily_bin643.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/259385/ltcube_405993601_406252801_4FGL_J2219.2-0342_daily_bin643.fits
.....................!
real 192.15
user 185.82
sys 5.96

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/259385/ft1_filtered_4FGL_J2219.2-0342_daily_bin643.fits scfile=/scratch/kocevski/259385/ft2_4FGL_J2219.2-0342_daily_bin643.fits outfile=/scratch/kocevski/259385/cmap_405993601_406252801_4FGL_J2219.2-0342_daily_bin643.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.36
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/259385/ft1_filtered_4FGL_J2219.2-0342_daily_bin643.fits evtable="EVENTS" scfile=/scratch/kocevski/259385/ft2_4FGL_J2219.2-0342_daily_bin643.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/259385/Model_4FGL_J2219.2-0342_daily_bin643.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/259385/ft1_filtered_4FGL_J2219.2-0342_daily_bin643.fits.....................!
real 70.70
user 69.25
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.786       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.273       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.1616       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.3441       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .97942E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.6853       1.0000         .10000E-03   10000.    
    14 'Prefactor '    42.891       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10721E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.4358       1.0000         .10000E-03   10000.    
    17 'Prefactor '    44.602       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .48423       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.3036       1.0000         .10000E-03   10000.    
    22 'norm      '    .10094E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .64660       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0892       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=   7726.152     FROM MIGRAD    STATUS=CONVERGED    562 CALLS     2748 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.2768        .16843E-06** at limit **
   2  Prefactor     20.785        36.229       -.33236E-06   -.37267E-05
   3  Prefactor     .10000E-03    10.218       -.10738E-06** at limit **
   4  Prefactor     .10000E-03    44.456        .11004E-05** at limit **
   5  Prefactor     11.270        7.1398       -.66866E-07   -.35757E-04
   6  Prefactor     9.1623        5.1838       -.71800E-06   -.39571E-04
   7  Prefactor     .10000E-03    3.0187        .11837E-06** at limit **
   8  Prefactor     .10000E-03    4.3717        .72770E-07** at limit **
   9  Prefactor     .10000E-03    4.8237        .79468E-07** at limit **
  10  Prefactor     .10000E-03    4.9040        .26497E-06** at limit **
  11  Prefactor     9.3453        9.7655       -.12727E-05   -.21657E-04
  12  Prefactor     .10000E-03    98.702       -.10135E-04** at limit **
  13  Prefactor     5.6968        8.1649       -.34305E-06    .28098E-04
  14  Prefactor     42.899        66.878        .97322E-06   -.21333E-04
  15  Prefactor     .10000E-03    2.3662        .69152E-06** at limit **
  16  norm          3.4375        3.3920       -.49957E-06   -.75316E-04
  17  Prefactor     44.655        76.996        .41413E-05   -.12758E-03
  18  norm          .10000E-03    .33368        .29895E-07** at limit **
  19  Prefactor     .10000E-03    10.575       -.78750E-06** at limit **
  20  norm          .48505        .76982        .56159E-06    .12820E-02
  21  Prefactor     1.3043        4.7232       -.12622E-05   -.25359E-04
  22  norm          .10000E-03    18.145        .71162E-06** at limit **
  23  Normalizat    .64667        .19222        .11109E-05   -.81414E-04
  24  Prefactor     1.0891        .11375       -.74610E-06    .71105E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 20.7851
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.2698
  Prefactor  = 9.16232
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.34534
  Prefactor  = 0.000100001
  Prefactor  = 5.69684
  Prefactor  = 42.8992
  Prefactor  = 0.0001
  norm       = 3.43745
  Prefactor  = 44.6548
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.485048
  Prefactor  = 1.30427
  norm       = 0.0001
  Normalizat = 0.646666
  Prefactor  = 1.08906
 **********
 **   18 **HESSE 
 **********

 FCN=   7726.152     FROM HESSE     STATUS=OK           399 CALLS     3147 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.3228        .19360E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     20.785        36.171        .87852E-04   -1.4796    
   3  Prefactor     .10000E-03    10.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    44.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.270        7.1355        .11932E-03   -1.5036    
   6  Prefactor     9.1623        5.1692        .66206E-03   -1.5102    
   7  Prefactor     .10000E-03    3.0271        .14914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.3743        .17949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.8351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.9175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.3453        9.7365        .65553E-03   -1.5096    
  12  Prefactor     .10000E-03    98.075        .66915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.6968        7.8075        .16847E-03   -1.5231    
  14  Prefactor     42.899        66.738        .61212E-04   -1.4397    
  15  Prefactor     .10000E-03    13.252        .22492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.4375        3.3470        .14305E-03   -1.5337    
  17  Prefactor     44.655        74.617        .60032E-04   -1.4370    
  18  norm          .10000E-03    .34896        .98973E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .48505        .73424        .10295E-02   -1.5569    
  21  Prefactor     1.3043        4.6899        .35603E-03   -1.5480    
  22  norm          .10000E-03    18.882        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .64667        .21582        .33915E-03   -1.0604    
  24  Prefactor     1.0891        .12968        .17047E-03   -.89817    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.18747e-10
Minuit parameter uncertainties:
  1  8.28674e-07
  2  36.2092
  3  2.59971e-05
  4  0.000236423
  5  7.13601
  6  5.1695
  7  1.01242e-06
  8  1.21359e-06
  9  8.3967e-06
  10  9.34388e-06
  11  9.73816
  12  0.000494577
  13  7.80893
  14  66.8549
  15  0.000151753
  16  3.34717
  17  74.7735
  18  8.40159e-07
  19  9.93623e-05
  20  0.734257
  21  4.69122
  22  2.26832e-05
  23  0.216101
  24  0.129722
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  5.697e+00  7.809e+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

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  1.089e+00  1.297e-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:  6.467e-01  2.161e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.66
Ra Dec: 334.823 -3.710
Photon Flux Upper Limit: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/259385/likelihoodResults_405993601_406252801_4FGL_J2219.2-0342_daily_bin643.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) = 7726.15063908
delta logL = 0.00159756693665

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7726.1502588
delta logL = 0.00197785430555

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9260       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6257       1.0000          .0000       10.000    
     3 'Normalizat'    .64759       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0886       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=   7726.150     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      240 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9256        9.0219        .16496E-03    .61358E-03
   2  Index         2.6258        .90921        .13041E-01    .13459E-03
   3  Normalizat    .64759        .20094        .33892E-03   -.81745E-04
   4  Prefactor     1.0886        .12871        .17050E-03   -.18323E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.92556
  Index      = 2.62579
  Normalizat = 0.647587
  Prefactor  = 1.08856
 **********
 **   18 **HESSE 
 **********

 FCN=   7726.150     FROM HESSE     STATUS=OK            25 CALLS      265 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9256        8.7148        .65983E-05   -1.5221    
   2  Index         2.6258        .87870        .52165E-03   -.49479    
   3  Normalizat    .64759        .20107        .13557E-04   -1.0600    
   4  Prefactor     1.0886        .12875        .34100E-04   -.89833    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.6154e-10
Minuit parameter uncertainties:
  1  8.71663
  2  0.88465
  3  0.201299
  4  0.128786
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/259385': 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) = 7726.15025879
delta logL = 0.00197785858745

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  5.926e+00  8.717e+00  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.626e+00  8.847e-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.089e+00  1.288e-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:  6.476e-01  2.013e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/259385/cmap_HighResolution_405993601_406252801_4FGL_J2219.2-0342_daily_bin643.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.31e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-09-28 09:24:31.926330', job_id='259385', GAL2='1.09', fit_tolerance='1e-08', EG2='0.65', EG='0.65', time_epoch_completed='1632846271.93', return_code2='0', ts='0.66', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='1.98e-03', ts2='0.66', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='643' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:24:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 259385: <4FGL_J2219.2-0342_daily_bin643> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin643 334.823 -3.7102 405993601 406252801 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 :                                   727.41 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             294.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            861 sec.

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

