aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 225 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 = 7542
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1703
RA = 334.823, Dec = -3.7102
tmin = 680745601, tmax = 681004801
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='324147', job_status='RUN', time_executed='2022-08-01 01:25:42.022138', time_epoch_executed='1659342342.02' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1703'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/324147

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/324147/ft1_4FGL_J2219.2-0342_daily_bin1703.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/324147/ft2_4FGL_J2219.2-0342_daily_bin1703.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/324147/ft1_4FGL_J2219.2-0342_daily_bin1703.fits outfile=/scratch/kocevski/324147/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1703.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=680745601.0 tmax=681004801.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 2.97
user 2.74
sys 0.21

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

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

Number of photons that the gtmktime cut: 164

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/324147/ft1_filtered_4FGL_J2219.2-0342_daily_bin1703.fits" evtable="EVENTS" scfile=/scratch/kocevski/324147/ft2_4FGL_J2219.2-0342_daily_bin1703.fits sctable="SC_DATA" outfile=/scratch/kocevski/324147/ltcube_680745601_681004801_4FGL_J2219.2-0342_daily_bin1703.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/324147/ft2_4FGL_J2219.2-0342_daily_bin1703.fits
.....................!
real 15.26
user 14.89
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/324147/ft1_filtered_4FGL_J2219.2-0342_daily_bin1703.fits evtable="EVENTS" scfile=/scratch/kocevski/324147/ft2_4FGL_J2219.2-0342_daily_bin1703.fits sctable="SC_DATA" expcube=/scratch/kocevski/324147/ltcube_680745601_681004801_4FGL_J2219.2-0342_daily_bin1703.fits outfile=/scratch/kocevski/324147/expmap_680745601_681004801_4FGL_J2219.2-0342_daily_bin1703.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/324147/ltcube_680745601_681004801_4FGL_J2219.2-0342_daily_bin1703.fits
.....................!
real 194.32
user 189.10
sys 4.70

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/324147/ft1_filtered_4FGL_J2219.2-0342_daily_bin1703.fits scfile=/scratch/kocevski/324147/ft2_4FGL_J2219.2-0342_daily_bin1703.fits outfile=/scratch/kocevski/324147/cmap_680745601_681004801_4FGL_J2219.2-0342_daily_bin1703.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.56
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/324147/ft1_filtered_4FGL_J2219.2-0342_daily_bin1703.fits scfile=/scratch/kocevski/324147/ft2_4FGL_J2219.2-0342_daily_bin1703.fits outfile=/scratch/kocevski/324147/cmap_HighResolution_680745601_681004801_4FGL_J2219.2-0342_daily_bin1703.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/324147/ft1_filtered_4FGL_J2219.2-0342_daily_bin1703.fits evtable="EVENTS" scfile=/scratch/kocevski/324147/ft2_4FGL_J2219.2-0342_daily_bin1703.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/324147/Model_4FGL_J2219.2-0342_daily_bin1703.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/324147/ft1_filtered_4FGL_J2219.2-0342_daily_bin1703.fits.....................!
real 30.56
user 29.28
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.2741       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    59.246       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.484       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    137.06       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .41759E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    102.87       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    88.884       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.683       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    19.488       1.0000         .10000E-03   10000.    
    17 'Prefactor '    593.23       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .98255       1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.056       1.0000         .10000E-03   10000.    
    22 'norm      '    20.136       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .83554       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .73795       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=   1957.287     FROM MIGRAD    STATUS=CONVERGED    952 CALLS     3567 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2783        16.250        .13937E-03    .33036E-05
   2  Prefactor     .10000E-03    93.717        .18142E-02** at limit **
   3  Prefactor     .10000E-03    151.96        .18142E-02** at limit **
   4  Prefactor     59.454        131.60        .26062E-03    .62052E-05
   5  Prefactor     .10000E-03    11.294        .14521E-02** at limit **
   6  Prefactor     14.488        28.295        .10524E-03    .25115E-05
   7  Prefactor     .10000E-03    17.356        .18001E-02** at limit **
   8  Prefactor     .10000E-03    32.242        .18142E-02** at limit **
   9  Prefactor     136.89        111.39        .17202E-03   -.15531E-04
  10  Prefactor     .10013E-03    273.88        .13505    ** at limit **
  11  Prefactor     102.89        60.179        .19822E-03   -.22942E-05
  12  Prefactor     .10000E-03    145.89        .18142E-02** at limit **
  13  Prefactor     88.874        52.758        .42618E-04    .15525E-04
  14  Prefactor     10.715        984.09        .12258E-03    .88107E-06
  15  Prefactor     .10000E-03    6.4946        .11004E-02** at limit **
  16  norm          19.483        14.186        .90727E-04    .25813E-04
  17  Prefactor     593.69        346.31        .84664E-04   -.33301E-05
  18  norm          .10000E-03    .94508        .41802E-03** at limit **
  19  Prefactor     .10000E-03    24.395        .18142E-02** at limit **
  20  norm          .98230        2.0558        .97016E-03    .25135E-03
  21  Prefactor     23.063        27.160        .83421E-04    .95397E-06
  22  norm          20.138        20.518        .89259E-04    .30250E-05
  23  Normalizat    .83518        .51942        .37161E-03    .44536E-04
  24  Prefactor     .73805        .28464        .21896E-03   -.46146E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.27826
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 59.4544
  Prefactor  = 0.0001
  Prefactor  = 14.4877
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 136.886
  Prefactor  = 0.000100129
  Prefactor  = 102.893
  Prefactor  = 0.000100001
  Prefactor  = 88.8744
  Prefactor  = 10.7154
  Prefactor  = 0.0001
  norm       = 19.4835
  Prefactor  = 593.689
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.982303
  Prefactor  = 23.0625
  norm       = 20.1376
  Normalizat = 0.835177
  Prefactor  = 0.738051
 **********
 **   18 **HESSE 
 **********

 FCN=   1957.287     FROM HESSE     STATUS=OK           385 CALLS     3952 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2783        16.251        .55749E-05   -1.5132    
   2  Prefactor     .10000E-03    93.717        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    151.96        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     59.454        131.60        .10425E-04   -1.4164    
   5  Prefactor     .10000E-03    11.295        .29042E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.488        28.296        .42098E-05   -1.4947    
   7  Prefactor     .10000E-03    17.356        .36001E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    32.244        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     136.89        112.03        .68806E-05   -1.3363    
  10  Prefactor     .10013E-03    300.74        .12864       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     102.89        60.179        .79287E-05   -1.3676    
  12  Prefactor     .10000E-03    145.92        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     88.874        52.756        .85236E-05   -1.3820    
  14  Prefactor     10.715        979.54        .49032E-05   -1.5053    
  15  Prefactor     .10000E-03    6.4947        .22007E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          19.483        14.182        .36291E-05   -1.4825    
  17  Prefactor     593.69        346.32        .16933E-04   -1.0785    
  18  norm          .10000E-03    .94510        .83605E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    24.395        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .98230        2.0543        .38806E-04   -1.5510    
  21  Prefactor     23.063        27.153        .33368E-05   -1.4747    
  22  norm          20.138        20.518        .35703E-05   -1.4810    
  23  Normalizat    .83518        .51993        .14864E-04   -.98777    
  24  Prefactor     .73805        .28492        .87582E-05   -1.0205    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32082e-10
Minuit parameter uncertainties:
  1  16.2593
  2  6.63189e-05
  3  0.000145638
  4  132.255
  5  0.00011169
  6  28.3219
  7  4.61696e-07
  8  6.88756e-05
  9  112.209
  10  0.0125053
  11  60.2151
  12  0.000547118
  13  52.7841
  14  208.522
  15  3.99865e-05
  16  14.1845
  17  347.572
  18  1.18375e-06
  19  3.67212e-05
  20  2.05442
  21  27.1672
  22  20.525
  23  0.523077
  24  0.28549
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  8.887e+01  5.278e+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.381e-01  2.855e-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.352e-01  5.231e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.98
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 4.09e-07 +/- 2.43e-07
Energy Flux (Fixed Index): 1.00e-04 +/- 5.94e-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) = 1957.17355461
delta logL = 0.113783021283

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1957.15563523
delta logL = 0.131702401229

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    98.650       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4258       1.0000          .0000       10.000    
     3 'Normalizat'    .86996       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72192       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=   1957.156     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      218 TOTAL
                     EDM=   .68E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     98.663        58.038        .20458E-05   -.12581E-04
   2  Index         2.4256        .47990        .83458E-05   -.51779E-05
   3  Normalizat    .87000        .43097       -.22120E-05   -.33465E-04
   4  Prefactor     .72191        .23941        .72712E-07   -.65644E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 98.663
  Index      = 2.42562
  Normalizat = 0.870005
  Prefactor  = 0.721905
 **********
 **   18 **HESSE 
 **********

 FCN=   1957.156     FROM HESSE     STATUS=OK            31 CALLS      249 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     98.663        58.243        .40473E-04   -1.3718    
   2  Index         2.4256        .48151        .45455E-02   -.54086    
   3  Normalizat    .87000        .50062        .36514E-03   -.97522    
   4  Prefactor     .72191        .27941        .22104E-03   -1.0267    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13874e-11
Minuit parameter uncertainties:
  1  58.2769
  2  0.482532
  3  0.503324
  4  0.279952
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/324147': 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) = 1957.15563511
delta logL = 0.131702520303

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  9.866e+01  5.828e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.426e+00  4.825e-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:  7.219e-01  2.800e-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.700e-01  5.033e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.28
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 2.43 +/- 0.48
Photon Flux (Free Index): 3.54e-07 +/- 2.39e-07
Energy Flux (Free Index): 1.12e-04 +/- 7.18e-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/324147/cmap_HighResolution_680745601_681004801_4FGL_J2219.2-0342_daily_bin1703.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.09e-07', energy_flux2='1.12e-04', photon_flux_error='2.43e-07', dlogl='1.32e-01', energy_flux='1.00e-04', photon_flux2='3.54e-07', job_status='DONE', time_completed='2022-08-01 01:32:41.595435', photon_index_error2='0.48', photon_index2='2.43', ts='4.98', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', energy_flux_error2='7.18e-05', EG='0.84', time_epoch_completed='1659342761.6', return_code='0', job_id='324147', GAL2='0.72', EG2='0.87', return_code2='0', energy_flux_error='5.94e-05', photon_flux_error2='2.39e-07', ts2='5.28', photon_index='2.68' WHERE bin_id='1703' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug  1 01:32:41 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 324147: <4FGL_J2219.2-0342_daily_bin1703> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1703> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug  1 01:20:21 2022
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug  1 01:21:48 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug  1 01:21:48 2022
Terminated at Mon Aug  1 01:32:42 2022
Results reported at Mon Aug  1 01:32:42 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1703 334.823 -3.7102 680745601 681004801 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 :                                   422.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             243.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   653 sec.
    Turnaround time :                            741 sec.

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

