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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1123
RA = 334.823, Dec = -3.7102
tmin = 530409601, tmax = 530668801
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='261163', job_status='RUN', time_executed='2021-09-28 09:18:01.027091', time_epoch_executed='1632845881.03' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1123'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261163

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261163/ft1_4FGL_J2219.2-0342_daily_bin1123.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261163/ft2_4FGL_J2219.2-0342_daily_bin1123.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261163/ft1_4FGL_J2219.2-0342_daily_bin1123.fits outfile=/scratch/kocevski/261163/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1123.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=530409601.0 tmax=530668801.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.65
user 3.38
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261163/ft1_filtered_4FGL_J2219.2-0342_daily_bin1123.fits" evtable="EVENTS" scfile=/scratch/kocevski/261163/ft2_4FGL_J2219.2-0342_daily_bin1123.fits sctable="SC_DATA" outfile=/scratch/kocevski/261163/ltcube_530409601_530668801_4FGL_J2219.2-0342_daily_bin1123.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/261163/ft2_4FGL_J2219.2-0342_daily_bin1123.fits
.....................!
real 11.85
user 11.51
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261163/ft1_filtered_4FGL_J2219.2-0342_daily_bin1123.fits evtable="EVENTS" scfile=/scratch/kocevski/261163/ft2_4FGL_J2219.2-0342_daily_bin1123.fits sctable="SC_DATA" expcube=/scratch/kocevski/261163/ltcube_530409601_530668801_4FGL_J2219.2-0342_daily_bin1123.fits outfile=/scratch/kocevski/261163/expmap_530409601_530668801_4FGL_J2219.2-0342_daily_bin1123.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/261163/ltcube_530409601_530668801_4FGL_J2219.2-0342_daily_bin1123.fits
.....................!
real 190.74
user 185.72
sys 4.67

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/261163/ft1_filtered_4FGL_J2219.2-0342_daily_bin1123.fits scfile=/scratch/kocevski/261163/ft2_4FGL_J2219.2-0342_daily_bin1123.fits outfile=/scratch/kocevski/261163/cmap_530409601_530668801_4FGL_J2219.2-0342_daily_bin1123.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.52
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261163/ft1_filtered_4FGL_J2219.2-0342_daily_bin1123.fits scfile=/scratch/kocevski/261163/ft2_4FGL_J2219.2-0342_daily_bin1123.fits outfile=/scratch/kocevski/261163/cmap_HighResolution_530409601_530668801_4FGL_J2219.2-0342_daily_bin1123.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.57
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261163/ft1_filtered_4FGL_J2219.2-0342_daily_bin1123.fits evtable="EVENTS" scfile=/scratch/kocevski/261163/ft2_4FGL_J2219.2-0342_daily_bin1123.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261163/Model_4FGL_J2219.2-0342_daily_bin1123.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/261163/ft1_filtered_4FGL_J2219.2-0342_daily_bin1123.fits.....................!
real 75.01
user 73.62
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6868       1.0000         .10000E-03   10000.    
     2 'Prefactor '    39.819       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .88218E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.7707       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10715E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.926       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.9796       1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.750       1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.789       1.0000         .10000E-03   10000.    
    14 'Prefactor '    37.254       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.7063       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    69.049       1.0000         .10000E-03   10000.    
    20 'norm      '    6.4488       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    10.287       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0855       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .80631       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=   7930.742     FROM MIGRAD    STATUS=CONVERGED    948 CALLS     3208 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6869        2.9287        .94200E-04   -.10126E-03
   2  Prefactor     39.821        42.152        .63521E-04    .26488E-04
   3  Prefactor     .10000E-03    60.856        .18142E-02** at limit **
   4  Prefactor     .10000E-03    47.162        .16762    ** at limit **
   5  Prefactor     .10000E-03    3.6481        .16542E-02** at limit **
   6  Prefactor     3.7710        5.7029        .20790E-03   -.10499E-04
   7  Prefactor     .10000E-03    5.5174        .18142E-02** at limit **
   8  Prefactor     .10000E-03    55.086        .36285E-03** at limit **
   9  Prefactor     .10000E-03    10.204        .18142E-02** at limit **
  10  Prefactor     27.927        18.421        .75812E-04    .11487E-03
  11  Prefactor     9.9804        10.496        .12684E-03    .40064E-04
  12  Prefactor     19.761        32.097        .90124E-04    .52350E-04
  13  Prefactor     19.790        11.374        .90037E-04    .12122E-04
  14  Prefactor     37.274        75.422        .65663E-04   -.55404E-06
  15  Prefactor     .10000E-03    2.8515        .28782E-03** at limit **
  16  norm          9.7062        4.2981        .56269E-03   -.53743E-04
  17  Prefactor     .10000E-03    24.968        .18142E-02** at limit **
  18  norm          .10000E-03    .20408        .18142E-03** at limit **
  19  Prefactor     69.073        60.879        .48306E-04   -.16474E-04
  20  norm          6.4465        4.8812        .74816E-04   -.28416E-04
  21  Prefactor     .10000E-03    3.3758        .15971E-02** at limit **
  22  norm          10.288        9.9846        .12492E-03    .11740E-04
  23  Normalizat    1.0854        .24928        .30091E-03    .11005E-03
  24  Prefactor     .80640        .13350        .20481E-03    .21882E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.68694
  Prefactor  = 39.8212
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.771
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.9274
  Prefactor  = 9.98036
  Prefactor  = 19.7608
  Prefactor  = 19.7897
  Prefactor  = 37.2742
  Prefactor  = 0.0001
  norm       = 9.70616
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 69.0726
  norm       = 6.4465
  Prefactor  = 0.0001
  norm       = 10.2877
  Normalizat = 1.08536
  Prefactor  = 0.806404
 **********
 **   18 **HESSE 
 **********

 FCN=   7930.742     FROM HESSE     STATUS=OK           385 CALLS     3593 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6869        2.9287        .37680E-05   -1.5191    
   2  Prefactor     39.821        42.155        .25408E-05   -1.4445    
   3  Prefactor     .10000E-03    60.881        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    48.670        .16417       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.6486        .33084E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.7710        5.7023        .83161E-05   -1.5320    
   7  Prefactor     .10000E-03    5.5185        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    55.088        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.207        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     27.927        18.420        .30325E-05   -1.4651    
  11  Prefactor     9.9804        10.496        .50737E-05   -1.5076    
  12  Prefactor     19.761        32.101        .36050E-05   -1.4819    
  13  Prefactor     19.790        11.374        .36015E-05   -1.4818    
  14  Prefactor     37.274        75.419        .13133E-04   -1.4486    
  15  Prefactor     .10000E-03    2.8516        .57564E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.7062        4.2976        .22507E-04   -1.5085    
  17  Prefactor     .10000E-03    24.968        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .20408        .36285E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     69.073        61.015        .19322E-05   -1.4044    
  20  norm          6.4465        4.8920        .29926E-05   -1.5200    
  21  Prefactor     .10000E-03    3.3759        .31942E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          10.288        9.9845        .49970E-05   -1.5066    
  23  Normalizat    1.0854        .24952        .12037E-04   -.90223    
  24  Prefactor     .80640        .13364        .40963E-04   -.99493    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.46988e-11
Minuit parameter uncertainties:
  1  2.92878
  2  42.1865
  3  0.00017196
  4  0.000193003
  5  3.27194e-06
  6  5.70311
  7  1.44572e-05
  8  0.000150324
  9  2.42981e-05
  10  18.4235
  11  10.4983
  12  32.1288
  13  11.3756
  14  75.6128
  15  5.74641e-06
  16  4.29773
  17  7.91269e-06
  18  6.27578e-08
  19  61.0706
  20  4.89227
  21  2.9705e-07
  22  9.98615
  23  0.249795
  24  0.13369
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.979e+01  1.138e+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:  8.064e-01  1.337e-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.085e+00  2.498e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.61
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 9.12e-08 +/- 5.24e-08
Energy Flux (Fixed Index): 2.23e-05 +/- 1.28e-05

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) = 7929.40705645
delta logL = 1.33478657686

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7929.39872627
delta logL = 1.34311675322

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8880       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9016       1.0000          .0000       10.000    
     3 'Normalizat'    .99848       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84370       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=   7929.399     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      285 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8876        13.734        .10315E-03    .11463E-03
   2  Index         3.9017        1.3521        .52916E-02   -.36959E-04
   3  Normalizat    .99850        .22850        .31190E-03   -.13549E-03
   4  Prefactor     .84369        .13408        .20068E-03   -.20478E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.88764
  Index      = 3.90172
  Normalizat = 0.998504
  Prefactor  = 0.843686
 **********
 **   18 **HESSE 
 **********

 FCN=   7929.399     FROM HESSE     STATUS=OK            25 CALLS      310 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8876        9.2538        .41259E-05   -1.5146    
   2  Index         3.9017        .91649        .21166E-03   -.22146    
   3  Normalizat    .99850        .22777        .12476E-04   -.93081    
   4  Prefactor     .84369        .13320        .40135E-04   -.98138    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57738e-10
Minuit parameter uncertainties:
  1  9.25551
  2  0.921971
  3  0.227989
  4  0.133249
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261163': 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) = 7929.39872625
delta logL = 1.34311677589

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  7.888e+00  9.256e+00  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  3.902e+00  9.220e-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:  8.437e-01  1.332e-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.985e-01  2.280e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.60
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 3.90 +/- 0.92
Photon Flux (Free Index): 1.53e-07 +/- 6.94e-08
Energy Flux (Free Index): 2.32e-05 +/- 1.05e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/261163/cmap_HighResolution_530409601_530668801_4FGL_J2219.2-0342_daily_bin1123.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.12e-08', energy_flux2='2.32e-05', photon_flux_error='5.24e-08', dlogl='1.34e+00', energy_flux='2.23e-05', photon_flux2='1.53e-07', job_status='DONE', time_completed='2021-09-28 09:29:55.988134', photon_index_error2='0.92', photon_index2='3.90', ts='4.61', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='1.05e-05', EG='1.09', time_epoch_completed='1632846595.99', return_code='0', job_id='261163', GAL2='0.84', EG2='1.00', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='6.94e-08', ts2='7.60', photon_index='2.68' WHERE bin_id='1123' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:29:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 261163: <4FGL_J2219.2-0342_daily_bin1123> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1123> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 09:15:18 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:15:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 09:15:20 2021
Terminated at Tue Sep 28 09:29:56 2021
Results reported at Tue Sep 28 09:29:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1123 334.823 -3.7102 530409601 530668801 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 :                                   714.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            878 sec.

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

