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 102 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 = 7477
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1669
RA = 334.823, Dec = -3.7102
tmin = 671932801, tmax = 672192001
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='692197', job_status='RUN', time_executed='2022-04-21 00:37:28.550798', time_epoch_executed='1650526648.55' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1669'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/692197

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/692197/ft1_4FGL_J2219.2-0342_daily_bin1669.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/692197/ft2_4FGL_J2219.2-0342_daily_bin1669.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/692197/ft1_4FGL_J2219.2-0342_daily_bin1669.fits outfile=/scratch/kocevski/692197/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1669.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=671932801.0 tmax=672192001.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.12
user 2.88
sys 0.20

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

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

Number of photons that the gtmktime cut: 795

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/692197/ft1_filtered_4FGL_J2219.2-0342_daily_bin1669.fits" evtable="EVENTS" scfile=/scratch/kocevski/692197/ft2_4FGL_J2219.2-0342_daily_bin1669.fits sctable="SC_DATA" outfile=/scratch/kocevski/692197/ltcube_671932801_672192001_4FGL_J2219.2-0342_daily_bin1669.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/692197/ft2_4FGL_J2219.2-0342_daily_bin1669.fits
.....................!
real 10.08
user 9.73
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/692197/ft1_filtered_4FGL_J2219.2-0342_daily_bin1669.fits evtable="EVENTS" scfile=/scratch/kocevski/692197/ft2_4FGL_J2219.2-0342_daily_bin1669.fits sctable="SC_DATA" expcube=/scratch/kocevski/692197/ltcube_671932801_672192001_4FGL_J2219.2-0342_daily_bin1669.fits outfile=/scratch/kocevski/692197/expmap_671932801_672192001_4FGL_J2219.2-0342_daily_bin1669.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/692197/ltcube_671932801_672192001_4FGL_J2219.2-0342_daily_bin1669.fits
.....................!
real 155.62
user 151.28
sys 4.03

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/692197/ft1_filtered_4FGL_J2219.2-0342_daily_bin1669.fits scfile=/scratch/kocevski/692197/ft2_4FGL_J2219.2-0342_daily_bin1669.fits outfile=/scratch/kocevski/692197/cmap_671932801_672192001_4FGL_J2219.2-0342_daily_bin1669.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.47
user 0.31
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/692197/ft1_filtered_4FGL_J2219.2-0342_daily_bin1669.fits scfile=/scratch/kocevski/692197/ft2_4FGL_J2219.2-0342_daily_bin1669.fits outfile=/scratch/kocevski/692197/cmap_HighResolution_671932801_672192001_4FGL_J2219.2-0342_daily_bin1669.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.48
user 0.33
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/692197/ft1_filtered_4FGL_J2219.2-0342_daily_bin1669.fits evtable="EVENTS" scfile=/scratch/kocevski/692197/ft2_4FGL_J2219.2-0342_daily_bin1669.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/692197/Model_4FGL_J2219.2-0342_daily_bin1669.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/692197/ft1_filtered_4FGL_J2219.2-0342_daily_bin1669.fits.....................!
real 63.29
user 62.04
sys 1.04

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4089       1.0000         .10000E-03   10000.    
     2 'Prefactor '    24.640       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .21487E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.1597       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .20886E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.988       1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.488       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.862       1.0000         .10000E-03   10000.    
    12 'Prefactor '    37.786       1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.489       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .33272       1.0000         .10000E-03   10000.    
    16 'norm      '    .11109E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.7732       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    30.389       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .96609       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .92018       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=   8647.416     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     2799 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4094        2.2297        .37243E-06    .18590E-03
   2  Prefactor     24.650        25.981       -.15067E-05   -.22961E-03
   3  Prefactor     .10126E-03    36.341       -.22446E-05** at limit **
   4  Prefactor     .10000E-03    10.107       -.15784E-05** at limit **
   5  Prefactor     .10000E-03    2.6280        .26774E-07** at limit **
   6  Prefactor     7.1599        5.3857        .23443E-05   -.10610E-02
   7  Prefactor     .10000E-03    3.8262        .33113E-06** at limit **
   8  Prefactor     20.984        19.077        .54927E-06    .58866E-04
   9  Prefactor     26.487        14.780        .12145E-06   -.72894E-04
  10  Prefactor     .10000E-03    9.8545        .88527E-06** at limit **
  11  Prefactor     21.862        11.987       -.26802E-06   -.52814E-04
  12  Prefactor     37.802        34.818       -.61379E-06   -.12096E-03
  13  Prefactor     20.485        11.296       -.17456E-06   -.20797E-03
  14  Prefactor     .10002E-03    53.050       -.62668E-05** at limit **
  15  Prefactor     .34420        1.7634        .21775E-06   -.21385E-03
  16  norm          .10000E-03    1.1817        .12453E-06** at limit **
  17  Prefactor     .10002E-03    55.708        .66897E-05** at limit **
  18  norm          5.7734        1.3781        .10855E-07   -.83560E-04
  19  Prefactor     .10000E-03    10.813        .10404E-05** at limit **
  20  norm          .10000E-03    .59333        .60068E-07** at limit **
  21  Prefactor     .10000E-03    13.561       -.19085E-06** at limit **
  22  norm          30.389        12.431        .32530E-07   -.39285E-04
  23  Normalizat    .96632        .19087       -.58105E-06   -.16242E-04
  24  Prefactor     .92008        .11081       -.24892E-06    .96140E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.40941
  Prefactor  = 24.6504
  Prefactor  = 0.000101258
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 7.15986
  Prefactor  = 0.000100002
  Prefactor  = 20.9837
  Prefactor  = 26.487
  Prefactor  = 0.0001
  Prefactor  = 21.8622
  Prefactor  = 37.8021
  Prefactor  = 20.4849
  Prefactor  = 0.00010002
  Prefactor  = 0.344197
  norm       = 0.0001
  Prefactor  = 0.000100021
  norm       = 5.7734
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 30.3894
  Normalizat = 0.96632
  Prefactor  = 0.920079
 **********
 **   18 **HESSE 
 **********

 FCN=   8647.416     FROM HESSE     STATUS=OK           411 CALLS     3210 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4094        2.1899        .16063E-03   -1.5471    
   2  Prefactor     24.650        26.180        .80698E-04   -1.4715    
   3  Prefactor     .10126E-03    32.769        .14407       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.6448        .14720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.1599        5.5889        .74956E-03   -1.5173    
   7  Prefactor     .10000E-03    20.375        .34859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.984        19.080        .87428E-04   -1.4791    
   9  Prefactor     26.487        14.691        .77837E-04   -1.4678    
  10  Prefactor     .10000E-03    9.9584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     21.862        12.040        .85665E-04   -1.4772    
  12  Prefactor     37.802        34.958        .65201E-04   -1.4478    
  13  Prefactor     20.485        11.186        .88486E-04   -1.4802    
  14  Prefactor     .10002E-03    55.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .34420        6.9409        .21801E-02   -1.5591    
  16  norm          .10000E-03    2.2137        .19509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10002E-03    58.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.7734        1.3783        .51560E-04   -1.5227    
  19  Prefactor     .10000E-03    10.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .61588        .13974E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          30.389        12.440        .72681E-04   -1.4605    
  23  Normalizat    .96632        .22538        .31507E-03   -.94167    
  24  Prefactor     .92008        .13174        .19681E-03   -.95443    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.6479e-08
Minuit parameter uncertainties:
  1  2.18999
  2  26.1924
  3  0.01285
  4  0.000227313
  5  2.39778e-06
  6  5.58932
  7  0.000354617
  8  19.0858
  9  14.6932
  10  0.000116567
  11  12.0414
  12  34.9773
  13  11.1868
  14  0.00208949
  15  3.09126
  16  4.46049e-06
  17  0.00222355
  18  1.37831
  19  0.000140909
  20  1.96946e-07
  21  4.19374e-05
  22  12.4412
  23  0.225603
  24  0.131786
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  2.048e+01  1.119e+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:  9.201e-01  1.318e-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.663e-01  2.256e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.86
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 9.44e-08 +/- 5.15e-08
Energy Flux (Fixed Index): 2.30e-05 +/- 1.26e-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) = 8647.41515306
delta logL = 0.000359766791007

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8647.41452544
delta logL = 0.00098739005989

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.037       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6415       1.0000          .0000       10.000    
     3 'Normalizat'    .96902       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91869       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=   8647.415     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      272 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.037        18.002        .87328E-04   -.11456E-04
   2  Index         2.6422        .98144        .89482E-02    .44633E-03
   3  Normalizat    .96929        .22676        .31464E-03    .31147E-04
   4  Prefactor     .91850        .13651        .19695E-03    .85776E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.0368
  Index      = 2.64217
  Normalizat = 0.969287
  Prefactor  = 0.918498
 **********
 **   18 **HESSE 
 **********

 FCN=   8647.415     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .51E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.037        16.417        .34931E-05   -1.4790    
   2  Index         2.6422        .89524        .17896E-02   -.49107    
   3  Normalizat    .96929        .22522        .12585E-04   -.94067    
   4  Prefactor     .91850        .13561        .78781E-05   -.95498    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.14102e-12
Minuit parameter uncertainties:
  1  16.4207
  2  0.901507
  3  0.225439
  4  0.13566
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/692197': 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) = 8647.41452335
delta logL = 0.000989481108263

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  2.104e+01  1.642e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  2.642e+00  9.015e-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:  9.185e-01  1.357e-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.693e-01  2.254e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.81
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 2.64 +/- 0.90
Photon Flux (Free Index): 9.30e-08 +/- 5.66e-08
Energy Flux (Free Index): 2.35e-05 +/- 1.61e-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/692197/cmap_HighResolution_671932801_672192001_4FGL_J2219.2-0342_daily_bin1669.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.44e-08', energy_flux2='2.35e-05', photon_flux_error='5.15e-08', dlogl='9.89e-04', energy_flux='2.30e-05', photon_flux2='9.30e-08', job_status='DONE', time_completed='2022-04-21 00:47:08.569472', photon_index_error2='0.90', photon_index2='2.64', ts='5.86', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='1.61e-05', EG='0.97', time_epoch_completed='1650527228.57', return_code='0', job_id='692197', GAL2='0.92', EG2='0.97', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='5.66e-08', ts2='5.81', photon_index='2.68' WHERE bin_id='1669' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Apr 21 00:47:08 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 692197: <4FGL_J2219.2-0342_daily_bin1669> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1669> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Apr 21 00:35:36 2022
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Apr 21 00:35:37 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Apr 21 00:35:37 2022
Terminated at Thu Apr 21 00:47:09 2022
Results reported at Thu Apr 21 00:47:09 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1669 334.823 -3.7102 671932801 672192001 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 :                                   581.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   691 sec.
    Turnaround time :                            693 sec.

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

