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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1702
RA = 334.823, Dec = -3.7102
tmin = 680486401, tmax = 680745601
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='258956', job_status='RUN', time_executed='2022-07-29 01:36:18.198308', time_epoch_executed='1659083778.2' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1702'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/258956

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/258956/ft1_4FGL_J2219.2-0342_daily_bin1702.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/258956/ft2_4FGL_J2219.2-0342_daily_bin1702.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/258956/ft1_4FGL_J2219.2-0342_daily_bin1702.fits outfile=/scratch/kocevski/258956/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1702.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=680486401.0 tmax=680745601.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.95
user 2.73
sys 0.20

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

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

Number of photons that the gtmktime cut: 111

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/258956/ft1_filtered_4FGL_J2219.2-0342_daily_bin1702.fits" evtable="EVENTS" scfile=/scratch/kocevski/258956/ft2_4FGL_J2219.2-0342_daily_bin1702.fits sctable="SC_DATA" outfile=/scratch/kocevski/258956/ltcube_680486401_680745601_4FGL_J2219.2-0342_daily_bin1702.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/258956/ft2_4FGL_J2219.2-0342_daily_bin1702.fits
.....................!
real 14.09
user 13.71
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/258956/ft1_filtered_4FGL_J2219.2-0342_daily_bin1702.fits evtable="EVENTS" scfile=/scratch/kocevski/258956/ft2_4FGL_J2219.2-0342_daily_bin1702.fits sctable="SC_DATA" expcube=/scratch/kocevski/258956/ltcube_680486401_680745601_4FGL_J2219.2-0342_daily_bin1702.fits outfile=/scratch/kocevski/258956/expmap_680486401_680745601_4FGL_J2219.2-0342_daily_bin1702.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/258956/ltcube_680486401_680745601_4FGL_J2219.2-0342_daily_bin1702.fits
.....................!
real 192.36
user 185.61
sys 5.44

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/258956/ft1_filtered_4FGL_J2219.2-0342_daily_bin1702.fits scfile=/scratch/kocevski/258956/ft2_4FGL_J2219.2-0342_daily_bin1702.fits outfile=/scratch/kocevski/258956/cmap_680486401_680745601_4FGL_J2219.2-0342_daily_bin1702.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=334.823 yref=-3.7102 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/258956/ft1_filtered_4FGL_J2219.2-0342_daily_bin1702.fits scfile=/scratch/kocevski/258956/ft2_4FGL_J2219.2-0342_daily_bin1702.fits outfile=/scratch/kocevski/258956/cmap_HighResolution_680486401_680745601_4FGL_J2219.2-0342_daily_bin1702.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.55
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/258956/ft1_filtered_4FGL_J2219.2-0342_daily_bin1702.fits evtable="EVENTS" scfile=/scratch/kocevski/258956/ft2_4FGL_J2219.2-0342_daily_bin1702.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/258956/Model_4FGL_J2219.2-0342_daily_bin1702.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/258956/ft1_filtered_4FGL_J2219.2-0342_daily_bin1702.fits.......................!
real 24.98
user 23.65
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11777E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13083       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.2223       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13775E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.137       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    175.17       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.5667       1.0000         .10000E-03   10000.    
    19 'Prefactor '    49.394       1.0000         .10000E-03   10000.    
    20 'norm      '    .13299E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    19.547       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .14271       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0165       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=   1369.210     FROM MIGRAD    STATUS=CONVERGED    996 CALLS     3549 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.7373        .10053E-02** at limit **
   2  Prefactor     .10000E-03    88.934        .18142E-02** at limit **
   3  Prefactor     .10000E-03    202.30        .18142E-02** at limit **
   4  Prefactor     .10000E-03    224.17        .18142E-02** at limit **
   5  Prefactor     .10002E-03    61.310        .55988E-01** at limit **
   6  Prefactor     9.2242        83.010        .13197E-03   -.22828E-05
   7  Prefactor     .10000E-03    22.018        .16959E-02** at limit **
   8  Prefactor     .10000E-03    484.08        .36285E-02** at limit **
   9  Prefactor     .10000E-03    49.834        .18142E-02** at limit **
  10  Prefactor     .10000E-03    101.64        .18142E-02** at limit **
  11  Prefactor     .10000E-03    20.293        .16287E-02** at limit **
  12  Prefactor     22.064        64.003        .85132E-04   -.10917E-04
  13  Prefactor     .10000E-03    33.878        .18142E-02** at limit **
  14  Prefactor     175.25        236.79        .15245E-03   -.16029E-04
  15  Prefactor     .10000E-03    4.0094        .72328E-03** at limit **
  16  norm          .10000E-03    5.4969        .84465E-03** at limit **
  17  Prefactor     .10000E-03    53.949        .18142E-02** at limit **
  18  norm          4.5661        3.4003        .56122E-04   -.17067E-04
  19  Prefactor     49.358        38.444        .57058E-04    .17105E-04
  20  norm          .10000E-03    3.9395        .11067E-02** at limit **
  21  Prefactor     .10000E-03    7.6757        .10014E-02** at limit **
  22  norm          19.546        18.674        .90593E-04   -.23624E-04
  23  Normalizat    .14262        .44015        .65903E-03   -.22314E-04
  24  Prefactor     1.0167        .26574        .15144E-03   -.12117E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100018
  Prefactor  = 9.22418
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 22.0638
  Prefactor  = 0.0001
  Prefactor  = 175.247
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.56608
  Prefactor  = 49.3576
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 19.5456
  Normalizat = 0.142619
  Prefactor  = 1.01668
 **********
 **   18 **HESSE 
 **********

 FCN=   1369.210     FROM HESSE     STATUS=OK           383 CALLS     3932 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.7373        .20106E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    88.934        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    202.30        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    224.19        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10002E-03    43.841        .68390E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.2242        82.989        .52789E-05   -1.5100    
   7  Prefactor     .10000E-03    22.019        .33918E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    487.15        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    49.836        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    101.65        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    20.293        .32573E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     22.064        64.002        .34053E-05   -1.4768    
  13  Prefactor     .10000E-03    33.885        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     175.25        236.77        .30491E-04   -1.3053    
  15  Prefactor     .10000E-03    4.0094        .14466E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.4971        .16893E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    53.949        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.5661        3.4002        .22449E-05   -1.5281    
  19  Prefactor     49.358        38.422        .11412E-04   -1.4302    
  20  norm          .10000E-03    3.9397        .22134E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.6757        .20028E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          19.546        18.673        .36237E-05   -1.4823    
  23  Normalizat    .14262        .43882        .26361E-04   -1.3398    
  24  Prefactor     1.0167        .26464        .30288E-04   -.92176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.11793e-11
Minuit parameter uncertainties:
  1  2.13888e-07
  2  0.000493125
  3  0.000720854
  4  0.000324589
  5  0.00177714
  6  55.4379
  7  1.07577e-05
  8  0.0013078
  9  7.38613e-05
  10  0.000735551
  11  1.38798e-05
  12  64.2025
  13  1.54139e-06
  14  238.072
  15  1.85548e-07
  16  2.36885e-05
  17  0.000186093
  18  3.40038
  19  38.441
  20  1.30871e-05
  21  1.80998e-06
  22  18.6784
  23  0.450373
  24  0.264978
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  1.541e-06  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.017e+00  2.650e-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.426e-01  4.504e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/258956/likelihoodResults_680486401_680745601_4FGL_J2219.2-0342_daily_bin1702.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): 102
logL (Free Index) = 1369.21030899
delta logL = -0.000140553011533

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1369.21017015
delta logL = -1.71436522578e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8998       1.0000          .0000       10.000    
     3 'Normalizat'    .14262       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0167       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=   1369.188     FROM MIGRAD    STATUS=CONVERGED    171 CALLS      371 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .52683        86.463        .14516E-01    .23932E-03
   2  Index         4.9105        7.4133        .35861        .17636E-04
   3  Normalizat    .11473        .52702E-01    .65913E-02    .69499E-04
   4  Prefactor     1.0259        .31414E-01    .15144E-03    .39225E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.52683
  Index      = 4.91046
  Normalizat = 0.114727
  Prefactor  = 1.02592
 **********
 **   18 **HESSE 
 **********

 FCN=   1369.188     FROM HESSE     STATUS=OK            31 CALLS      402 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .52683        108.58        .12540E-03   -1.5563    
   2  Index         4.9105        6.6603        .11692E-01   -.17909E-01
   3  Normalizat    .11473        .48561        .26365E-03   -1.3657    
   4  Prefactor     1.0259        .26271        .60575E-05   -.91870    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.98936e-09
Minuit parameter uncertainties:
  1  15.1531
  2  19.1285
  3  0.457272
  4  0.263039
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/258956': 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) = 1369.18814212
delta logL = 0.0220263128856

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  5.268e-01  1.515e+01  1.000e-04  1.000e+04 ( 1.000e-12)
257        Index:  4.910e+00  1.913e+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.026e+00  2.630e-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.147e-01  4.573e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/258956/cmap_HighResolution_680486401_680745601_4FGL_J2219.2-0342_daily_bin1702.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.81e-02', job_status='DONE', photon_flux_upper_limit='3.57e-07', time_completed='2022-07-29 01:43:01.672906', job_id='258956', GAL2='1.03', fit_tolerance='1e-08', EG2='0.11', EG='0.14', time_epoch_completed='1659084181.67', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='2.20e-02', ts2='0.05', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1702' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul 29 01:43:01 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 258956: <4FGL_J2219.2-0342_daily_bin1702> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1702> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Jul 29 01:35:19 2022
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul 29 01:35:28 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jul 29 01:35:28 2022
Terminated at Fri Jul 29 01:43:02 2022
Results reported at Fri Jul 29 01:43:02 2022

Your job looked like:

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

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

