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 59 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1746
RA = 334.823, Dec = -3.7102
tmin = 691891201, tmax = 692150401
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='742474', job_status='RUN', time_executed='2022-12-08 01:51:25.826065', time_epoch_executed='1670493085.83' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1746'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/742474

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/742474/ft1_4FGL_J2219.2-0342_daily_bin1746.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/742474/ft2_4FGL_J2219.2-0342_daily_bin1746.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/742474/ft1_4FGL_J2219.2-0342_daily_bin1746.fits outfile=/scratch/kocevski/742474/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1746.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=691891201.0 tmax=692150401.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 4.78
user 4.49
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/742474/ft2_4FGL_J2219.2-0342_daily_bin1746.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/742474/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1746.fits evtable="EVENTS" outfile="/scratch/kocevski/742474/ft1_filtered_4FGL_J2219.2-0342_daily_bin1746.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 519

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/742474/ft1_filtered_4FGL_J2219.2-0342_daily_bin1746.fits" evtable="EVENTS" scfile=/scratch/kocevski/742474/ft2_4FGL_J2219.2-0342_daily_bin1746.fits sctable="SC_DATA" outfile=/scratch/kocevski/742474/ltcube_691891201_692150401_4FGL_J2219.2-0342_daily_bin1746.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/742474/ft2_4FGL_J2219.2-0342_daily_bin1746.fits
.....................!
real 14.51
user 13.96
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/742474/ft1_filtered_4FGL_J2219.2-0342_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/742474/ft2_4FGL_J2219.2-0342_daily_bin1746.fits sctable="SC_DATA" expcube=/scratch/kocevski/742474/ltcube_691891201_692150401_4FGL_J2219.2-0342_daily_bin1746.fits outfile=/scratch/kocevski/742474/expmap_691891201_692150401_4FGL_J2219.2-0342_daily_bin1746.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/742474/ltcube_691891201_692150401_4FGL_J2219.2-0342_daily_bin1746.fits
.....................!
real 192.30
user 186.28
sys 4.92

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/742474/ft1_filtered_4FGL_J2219.2-0342_daily_bin1746.fits scfile=/scratch/kocevski/742474/ft2_4FGL_J2219.2-0342_daily_bin1746.fits outfile=/scratch/kocevski/742474/cmap_691891201_692150401_4FGL_J2219.2-0342_daily_bin1746.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.60
user 0.38
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/742474/ft1_filtered_4FGL_J2219.2-0342_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/742474/ft2_4FGL_J2219.2-0342_daily_bin1746.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/742474/Model_4FGL_J2219.2-0342_daily_bin1746.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/742474/ft1_filtered_4FGL_J2219.2-0342_daily_bin1746.fits.....................!
real 56.20
user 54.80
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/742474/ft1_filtered_4FGL_J2219.2-0342_daily_bin1746.fits', '/scratch/kocevski/742474/ft2_4FGL_J2219.2-0342_daily_bin1746.fits', expMap='/scratch/kocevski/742474/expmap_691891201_692150401_4FGL_J2219.2-0342_daily_bin1746.fits', expCube='/scratch/kocevski/742474/ltcube_691891201_692150401_4FGL_J2219.2-0342_daily_bin1746.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/742474/Model_4FGL_J2219.2-0342_daily_bin1746.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  0.000e+00  1.000e+06 ( 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/742474/ft1_filtered_4FGL_J2219.2-0342_daily_bin1746.fits
Spacecraft file(s): /scratch/kocevski/742474/ft2_4FGL_J2219.2-0342_daily_bin1746.fits
Exposure map: /scratch/kocevski/742474/expmap_691891201_692150401_4FGL_J2219.2-0342_daily_bin1746.fits
Exposure cube: /scratch/kocevski/742474/ltcube_691891201_692150401_4FGL_J2219.2-0342_daily_bin1746.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/742474/Model_4FGL_J2219.2-0342_daily_bin1746.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) = 5696.85636317

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18418E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    67.652       1.0000          .0000       .10000E+07
     3 'Prefactor '    .77904E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .99479E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    2.3329       1.0000          .0000       .10000E+07
     6 'Prefactor '    .37131E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .14685E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .68579E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    17.982       1.0000          .0000       .10000E+07
    10 'Prefactor '    31.127       1.0000          .0000       .10000E+07
    11 'Prefactor '    6.5528       1.0000          .0000       .10000E+07
    12 'norm      '    .29259E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .17579       1.0000          .0000       .10000E+07
    14 'norm      '    2.9974       1.0000          .0000       .10000E+07
    15 'Prefactor '    .10468E-01   1.0000          .0000       .10000E+07
    16 'norm      '    2.7162       1.0000          .0000       .10000E+07
    17 'norm      '    .84876E-03   1.0000          .0000       .10000E+07
    18 'Normalizat'    .86762       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .88187       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5696.842     FROM MIGRAD    STATUS=CONVERGED    129 CALLS     1421 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.1296       -.38896E-06** at limit **
   2  Prefactor     67.841        34.401        .11934E-05   -.43321E-01
   3  Prefactor     .22783E-05    8.7795        .95538E-06** at limit **
   4  Prefactor     .44298E-07    5.5024        .13932E-05** at limit **
   5  Prefactor     2.2439        6.6640       -.17109E-05    .84553E-03
   6  Prefactor     .38858E-09    6.8479        .26766E-06** at limit **
   7  Prefactor     .81229E-06    13.335        .48337E-06** at limit **
   8  Prefactor     .28866E-08    8.9966        .64891E-06** at limit **
   9  Prefactor     17.960        4.3833        .12864E-06   -.82067E-01
  10  Prefactor     31.115        1.4465        .49756E-07   -.21893E-01
  11  Prefactor     6.5504        5.2960        .62144E-07    .10858E-02
  12  norm           .0000        2.4009       -.98746E-06** at limit **
  13  Prefactor     .24572E-05    7.2978       -.24011E-06** at limit **
  14  norm          2.9946        1.5049       -.35937E-07   -.17420E-02
  15  Prefactor     .36854E-06    20.781        .44704E-06** at limit **
  16  norm          2.7195        1.7394        .63574E-07   -.41630E-02
  17  norm          .39357E-07    5.2859       -.86824E-06** at limit **
  18  Normalizat    .86831        .25091        .71878E-05    .35756E-05
  19  Prefactor     .88187        .14916       -.10555E-04   -.10668E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 67.8409
  Prefactor  = 2.27829e-06
  Prefactor  = 4.42979e-08
  Prefactor  = 2.24394
  Prefactor  = 3.88578e-10
  Prefactor  = 8.12295e-07
  Prefactor  = 2.88658e-09
  Prefactor  = 17.9601
  Prefactor  = 31.1149
  Prefactor  = 6.55044
  norm       = 0
  Prefactor  = 2.4572e-06
  norm       = 2.99462
  Prefactor  = 3.68539e-07
  norm       = 2.71949
  norm       = 3.93574e-08
  Normalizat = 0.868309
  Prefactor  = 0.881866
 **********
 **   18 **HESSE 
 **********

 FCN=   5696.842     FROM HESSE     STATUS=OK           302 CALLS     1723 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.0644        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     67.841        36.728        .12159E-03   -1.5543    
   3  Prefactor     .22783E-05    19.535        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .44298E-07    5.6274        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.2439        6.7231        .67110E-03   -1.5678    
   6  Prefactor     .38858E-09    6.8388        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .81229E-06    18.469        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .28866E-08    8.9970        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.960        15.779        .23591E-03   -1.5623    
  10  Prefactor     31.115        14.945        .17926E-03   -1.5596    
  11  Prefactor     6.5504        5.6815        .39180E-03   -1.5657    
  12  norm           .0000        2.3998        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .24572E-05    202.95        .12224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.9946        1.5060        .58606E-03   -1.5673    
  15  Prefactor     .36854E-06    23.194        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.7195        1.7431        .61771E-03   -1.5675    
  17  norm          .39357E-07    5.4345        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .86831        .21416        .68822E-01   -.97583    
  19  Prefactor     .88187        .12428        .44774E-01   -.96778    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.44886e-07
Minuit parameter uncertainties:
  1  1.72745e-05
  2  36.7279
  3  0.0133427
  4  0.000998356
  5  6.72309
  6  0.000102749
  7  0.0077466
  8  0.000322873
  9  15.7789
  10  14.9449
  11  5.68152
  12  1.27051e-05
  13  0.0446646
  14  1.50601
  15  0.00584759
  16  1.74315
  17  0.000925104
  18  0.214367
  19  0.124317
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  3.111e+01  1.494e+01  0.000e+00  1.000e+06 ( 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.819e-01  1.243e-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.683e-01  2.144e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.99
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 1.43e-07 +/- 6.88e-08
Energy Flux (Fixed Index): 3.50e-05 +/- 1.68e-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) = 5696.78383281
delta logL = 0.0584531337336

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5696.77880729
delta logL = 0.0634786543624

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.258       1.0000          .0000       .10000E+07
     2 'Index     '    2.4932       1.0000          .0000       10.000    
     3 'Normalizat'    .89306       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87121       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=   5696.779     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      270 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.258        16.193        .69370E-05   -.18391E-02
   2  Index         2.4931        .51988        .66559E-02   -.71375E-04
   3  Normalizat    .89306        .25631        .30076E-03   -.29408E-04
   4  Prefactor     .87121        .15145        .18403E-03   -.32124E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.2581
  Index      = 2.49314
  Normalizat = 0.893057
  Prefactor  = 0.871209
 **********
 **   18 **HESSE 
 **********

 FCN=   5696.779     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.258        16.062        .13874E-05   -1.5593    
   2  Index         2.4931        .51496        .26624E-03   -.52518    
   3  Normalizat    .89306        .25643        .12030E-04   -.96705    
   4  Prefactor     .87121        .15151        .73610E-05   -.97155    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.99036e-11
Minuit parameter uncertainties:
  1  16.0623
  2  0.516187
  3  0.256777
  4  0.151584
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/742474': 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) = 5696.77880729
delta logL = 0.0634786572182

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  3.326e+01  1.606e+01  0.000e+00  1.000e+06 ( 1.000e-12)
257        Index:  2.493e+00  5.162e-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.712e-01  1.516e-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.931e-01  2.568e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.12
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 2.49 +/- 0.52
Photon Flux (Free Index): 1.27e-07 +/- 7.67e-08
Energy Flux (Free Index): 3.72e-05 +/- 1.90e-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/742474/cmap_HighResolution_691891201_692150401_4FGL_J2219.2-0342_daily_bin1746.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.43e-07', energy_flux2='3.72e-05', photon_flux_error='6.88e-08', dlogl='6.35e-02', energy_flux='3.50e-05', photon_flux2='1.27e-07', job_status='DONE', time_completed='2022-12-08 01:59:33.439102', photon_index_error2='0.52', photon_index2='2.49', ts='9.99', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='1.90e-05', EG='0.87', time_epoch_completed='1670493573.44', return_code='0', job_id='742474', GAL2='0.87', EG2='0.89', return_code2='0', energy_flux_error='1.68e-05', photon_flux_error2='7.67e-08', ts2='10.12', photon_index='2.68' WHERE bin_id='1746' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec  8 01:59:33 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 742474: <4FGL_J2219.2-0342_daily_bin1746> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1746> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Dec  8 01:50:15 2022
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec  8 01:50:17 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec  8 01:50:17 2022
Terminated at Thu Dec  8 01:59:34 2022
Results reported at Thu Dec  8 01:59:34 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1746 334.823 -3.7102 691891201 692150401 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 :                                   489.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             265.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   556 sec.
    Turnaround time :                            559 sec.

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

