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 61 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_bin1756
RA = 334.823, Dec = -3.7102
tmin = 694483201, tmax = 694742401
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='26898', job_status='RUN', time_executed='2023-01-07 01:42:20.600830', time_epoch_executed='1673084540.6' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1756'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/26898

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/26898/ft1_4FGL_J2219.2-0342_daily_bin1756.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/26898/ft2_4FGL_J2219.2-0342_daily_bin1756.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/26898/ft1_4FGL_J2219.2-0342_daily_bin1756.fits outfile=/scratch/kocevski/26898/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1756.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=694483201.0 tmax=694742401.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.00
user 2.75
sys 0.20

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

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

Number of photons that the gtmktime cut: 631

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/26898/ft1_filtered_4FGL_J2219.2-0342_daily_bin1756.fits" evtable="EVENTS" scfile=/scratch/kocevski/26898/ft2_4FGL_J2219.2-0342_daily_bin1756.fits sctable="SC_DATA" outfile=/scratch/kocevski/26898/ltcube_694483201_694742401_4FGL_J2219.2-0342_daily_bin1756.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/26898/ft2_4FGL_J2219.2-0342_daily_bin1756.fits
.....................!
real 15.72
user 15.23
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/26898/ft1_filtered_4FGL_J2219.2-0342_daily_bin1756.fits evtable="EVENTS" scfile=/scratch/kocevski/26898/ft2_4FGL_J2219.2-0342_daily_bin1756.fits sctable="SC_DATA" expcube=/scratch/kocevski/26898/ltcube_694483201_694742401_4FGL_J2219.2-0342_daily_bin1756.fits outfile=/scratch/kocevski/26898/expmap_694483201_694742401_4FGL_J2219.2-0342_daily_bin1756.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/26898/ltcube_694483201_694742401_4FGL_J2219.2-0342_daily_bin1756.fits
.....................!
real 193.28
user 186.20
sys 5.64

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/26898/ft1_filtered_4FGL_J2219.2-0342_daily_bin1756.fits scfile=/scratch/kocevski/26898/ft2_4FGL_J2219.2-0342_daily_bin1756.fits outfile=/scratch/kocevski/26898/cmap_694483201_694742401_4FGL_J2219.2-0342_daily_bin1756.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/26898/ft1_filtered_4FGL_J2219.2-0342_daily_bin1756.fits scfile=/scratch/kocevski/26898/ft2_4FGL_J2219.2-0342_daily_bin1756.fits outfile=/scratch/kocevski/26898/cmap_HighResolution_694483201_694742401_4FGL_J2219.2-0342_daily_bin1756.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/26898/ft1_filtered_4FGL_J2219.2-0342_daily_bin1756.fits evtable="EVENTS" scfile=/scratch/kocevski/26898/ft2_4FGL_J2219.2-0342_daily_bin1756.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/26898/Model_4FGL_J2219.2-0342_daily_bin1756.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/26898/ft1_filtered_4FGL_J2219.2-0342_daily_bin1756.fits.....................!
real 66.67
user 65.27
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .82934E-07   1.0000          .0000       .10000E+07
     2 'Prefactor '    60.490       1.0000          .0000       .10000E+07
     3 'Prefactor '    .18093       1.0000          .0000       .10000E+07
     4 'Prefactor '    .38491E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    5.6175       1.0000          .0000       .10000E+07
     6 'Prefactor '    .81832E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .23920E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    .28388E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    11.534       1.0000          .0000       .10000E+07
    10 'Prefactor '    20.858       1.0000          .0000       .10000E+07
    11 'Prefactor '    2.0098       1.0000          .0000       .10000E+07
    12 'norm      '    .77716E-08   1.0000          .0000       .10000E+07
    13 'Prefactor '    .41489E-06   1.0000          .0000       .10000E+07
    14 'norm      '    3.4256       1.0000          .0000       .10000E+07
    15 'Prefactor '    15.772       1.0000          .0000       .10000E+07
    16 'norm      '    1.8817       1.0000          .0000       .10000E+07
    17 'norm      '    .18874E-08   1.0000          .0000       .10000E+07
    18 'Normalizat'    .99127       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .82150       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=   7039.461     FROM MIGRAD    STATUS=CONVERGED    124 CALLS     1736 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.0235        .36965E-07** at limit **
   2  Prefactor     60.435        4.5688        .19990E-07   -.23838    
   3  Prefactor     .64477E-01    3.9033       -.11172E-06** at limit **
   4  Prefactor     .14655E-07    9.3524        .24455E-06** at limit **
   5  Prefactor     5.6166        7.1183        .25192E-06    .10459E-02
   6  Prefactor     .63999E-06    75.479       -.43409E-06** at limit **
   7  Prefactor     .86486E-07    12.734        .28605E-07** at limit **
   8  Prefactor     .95035E-07    10.583        .51584E-07** at limit **
   9  Prefactor     11.531        8.2929        .67139E-07   -.73827E-02
  10  Prefactor     20.855        9.4387       -.21439E-07   -.51470E-01
  11  Prefactor     2.0088        3.5404       -.33106E-07   -.30330E-03
  12  norm           .0000        .98110        .42211E-07** at limit **
  13  Prefactor     .70277E-07    22.603        .69014E-06** at limit **
  14  norm          3.4255        1.1469        .57062E-08    .36176E-03
  15  Prefactor     15.763        1.3080       -.79868E-08   -.87077E-02
  16  norm          1.8820        1.2489        .84665E-08    .11084E-03
  17  norm          .33307E-09    6.9997       -.75376E-07** at limit **
  18  Normalizat    .99140        .20924       -.50031E-05   -.15428E-03
  19  Prefactor     .82153        .12283        .16874E-05   -.14045E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 60.4347
  Prefactor  = 0.0644772
  Prefactor  = 1.46549e-08
  Prefactor  = 5.61657
  Prefactor  = 6.39988e-07
  Prefactor  = 8.64864e-08
  Prefactor  = 9.50351e-08
  Prefactor  = 11.5312
  Prefactor  = 20.8553
  Prefactor  = 2.00882
  norm       = 0
  Prefactor  = 7.02771e-08
  norm       = 3.42553
  Prefactor  = 15.7632
  norm       = 1.88195
  norm       = 3.33067e-10
  Normalizat = 0.991404
  Prefactor  = 0.821529
 **********
 **   18 **HESSE 
 **********

 FCN=   7039.461     FROM HESSE     STATUS=OK           308 CALLS     2044 TOTAL
                     EDM=   .27E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.0254        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     60.435        51.922        .12858E-03   -1.5552    
   3  Prefactor     .64477E-01    28.998        .16459E-01   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .14655E-07    9.4869        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.6166        7.1770        .42361E-03   -1.5661    
   6  Prefactor     .63999E-06    74.783        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .86486E-07    12.780        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .95035E-07    10.654        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.531        12.883        .29472E-03   -1.5640    
  10  Prefactor     20.855        12.413        .21902E-03   -1.5617    
  11  Prefactor     2.0088        3.6237        .72999E-03   -1.5680    
  12  norm           .0000        .98184        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .70277E-07    22.689        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.4255        1.1521        .54628E-03   -1.5671    
  15  Prefactor     15.763        26.379        .25193E-03   -1.5629    
  16  norm          1.8820        2.0359        .75858E-03   -1.5681    
  17  norm          .33307E-09    7.0881        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .99140        .18953        .46057E-01   -.93319    
  19  Prefactor     .82153        .10696        .43996E-01   -.98940    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.68927e-06
Minuit parameter uncertainties:
  1  3.84559e-06
  2  51.9228
  3  2.73475
  4  0.000745301
  5  7.17704
  6  0.0138365
  7  0.00210255
  8  0.00201225
  9  12.8833
  10  12.4129
  11  3.62375
  12  5.52477e-06
  13  0.00252537
  14  1.15212
  15  26.3788
  16  2.03586
  17  9.60132e-05
  18  0.189661
  19  0.106983
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  2.086e+01  1.241e+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.215e-01  1.070e-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.914e-01  1.897e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.52
Ra Dec: 334.823 -3.710
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 9.61e-08 +/- 5.71e-08
Energy Flux (Fixed Index): 2.35e-05 +/- 1.40e-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) = 7039.45727724
delta logL = 0.00414610269763

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7039.45624225
delta logL = 0.00518109102723

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.598       1.0000          .0000       .10000E+07
     2 'Index     '    2.7759       1.0000          .0000       10.000    
     3 'Normalizat'    .98060       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82542       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=   7039.456     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      256 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.597        12.533        .88162E-05    .49672E-02
   2  Index         2.7756        .95050        .85690E-02    .89890E-04
   3  Normalizat    .98084        .23493        .28946E-03   -.14654E-03
   4  Prefactor     .82529        .12920        .18661E-03   -.35766E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.597
  Index      = 2.77556
  Normalizat = 0.980845
  Prefactor  = 0.825291
 **********
 **   18 **HESSE 
 **********

 FCN=   7039.456     FROM HESSE     STATUS=OK            25 CALLS      281 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.597        12.181        .35265E-06   -1.5617    
   2  Index         2.7756        .91833        .34276E-03   -.46105    
   3  Normalizat    .98084        .23387        .11579E-04   -.93675    
   4  Prefactor     .82529        .12885        .37322E-04   -.98803    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.27405e-10
Minuit parameter uncertainties:
  1  12.1808
  2  0.924894
  3  0.234118
  4  0.128898
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/26898': 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) = 7039.4562417
delta logL = 0.00518164212826

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  2.060e+01  1.218e+01  0.000e+00  1.000e+06 ( 1.000e-12)
257        Index:  2.776e+00  9.249e-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.253e-01  1.289e-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.808e-01  2.341e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.54
Ra Dec: 334.823 -3.710
Photon Index (Free Index): 2.78 +/- 0.92
Photon Flux (Free Index): 1.05e-07 +/- 1.01e-07
Energy Flux (Free Index): 2.38e-05 +/- 1.37e-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/26898/cmap_HighResolution_694483201_694742401_4FGL_J2219.2-0342_daily_bin1756.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.61e-08', energy_flux2='2.38e-05', photon_flux_error='5.71e-08', dlogl='5.18e-03', energy_flux='2.35e-05', photon_flux2='1.05e-07', job_status='DONE', time_completed='2023-01-07 01:51:24.331867', photon_index_error2='0.92', photon_index2='2.78', ts='5.52', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='1.37e-05', EG='0.99', time_epoch_completed='1673085084.33', return_code='0', job_id='26898', GAL2='0.83', EG2='0.98', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='1.01e-07', ts2='5.54', photon_index='2.68' WHERE bin_id='1756' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jan  7 01:51:24 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 26898: <4FGL_J2219.2-0342_daily_bin1756> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1756> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Jan  7 01:40:14 2023
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jan  7 01:41:10 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jan  7 01:41:10 2023
Terminated at Sat Jan  7 01:51:25 2023
Results reported at Sat Jan  7 01:51:25 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1756 334.823 -3.7102 694483201 694742401 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 :                                   544.60 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             306.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   614 sec.
    Turnaround time :                            671 sec.

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

