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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1744
RA = 334.823, Dec = -3.7102
tmin = 691372801, tmax = 691632001
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='595741', job_status='RUN', time_executed='2022-12-02 01:58:09.067670', time_epoch_executed='1669975089.07' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1744'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/595741

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/595741/ft1_4FGL_J2219.2-0342_daily_bin1744.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/595741/ft2_4FGL_J2219.2-0342_daily_bin1744.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/595741/ft1_4FGL_J2219.2-0342_daily_bin1744.fits outfile=/scratch/kocevski/595741/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1744.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=691372801.0 tmax=691632001.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.51
user 2.32
sys 0.17

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

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

Number of photons that the gtmktime cut: 748

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/595741/ft1_filtered_4FGL_J2219.2-0342_daily_bin1744.fits" evtable="EVENTS" scfile=/scratch/kocevski/595741/ft2_4FGL_J2219.2-0342_daily_bin1744.fits sctable="SC_DATA" outfile=/scratch/kocevski/595741/ltcube_691372801_691632001_4FGL_J2219.2-0342_daily_bin1744.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/595741/ft2_4FGL_J2219.2-0342_daily_bin1744.fits
.....................!
real 12.33
user 11.96
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/595741/ft1_filtered_4FGL_J2219.2-0342_daily_bin1744.fits evtable="EVENTS" scfile=/scratch/kocevski/595741/ft2_4FGL_J2219.2-0342_daily_bin1744.fits sctable="SC_DATA" expcube=/scratch/kocevski/595741/ltcube_691372801_691632001_4FGL_J2219.2-0342_daily_bin1744.fits outfile=/scratch/kocevski/595741/expmap_691372801_691632001_4FGL_J2219.2-0342_daily_bin1744.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/595741/ltcube_691372801_691632001_4FGL_J2219.2-0342_daily_bin1744.fits
.....................!
real 190.99
user 185.41
sys 5.23

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/595741/ft1_filtered_4FGL_J2219.2-0342_daily_bin1744.fits scfile=/scratch/kocevski/595741/ft2_4FGL_J2219.2-0342_daily_bin1744.fits outfile=/scratch/kocevski/595741/cmap_691372801_691632001_4FGL_J2219.2-0342_daily_bin1744.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.57
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/595741/ft1_filtered_4FGL_J2219.2-0342_daily_bin1744.fits scfile=/scratch/kocevski/595741/ft2_4FGL_J2219.2-0342_daily_bin1744.fits outfile=/scratch/kocevski/595741/cmap_HighResolution_691372801_691632001_4FGL_J2219.2-0342_daily_bin1744.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/595741/ft1_filtered_4FGL_J2219.2-0342_daily_bin1744.fits evtable="EVENTS" scfile=/scratch/kocevski/595741/ft2_4FGL_J2219.2-0342_daily_bin1744.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/595741/Model_4FGL_J2219.2-0342_daily_bin1744.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/595741/ft1_filtered_4FGL_J2219.2-0342_daily_bin1744.fits.....................!
real 76.43
user 75.05
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1053       1.0000          .0000       .10000E+07
     2 'Prefactor '    3.2364       1.0000          .0000       .10000E+07
     3 'Prefactor '    .61918E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .14093E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    10.372       1.0000          .0000       .10000E+07
     6 'Prefactor '    .14719E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    6.5610       1.0000          .0000       .10000E+07
     8 'Prefactor '    7.4617       1.0000          .0000       .10000E+07
     9 'Prefactor '    4.8003       1.0000          .0000       .10000E+07
    10 'Prefactor '    .17077E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    1.8058       1.0000          .0000       .10000E+07
    12 'norm      '    5.4439       1.0000          .0000       .10000E+07
    13 'Prefactor '    89.266       1.0000          .0000       .10000E+07
    14 'norm      '    6.4997       1.0000          .0000       .10000E+07
    15 'Prefactor '    27.864       1.0000          .0000       .10000E+07
    16 'norm      '    .20910       1.0000          .0000       .10000E+07
    17 'norm      '    .67916E-02   1.0000          .0000       .10000E+07
    18 'Normalizat'    .65804       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .99674       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=   8173.904     FROM MIGRAD    STATUS=CONVERGED    147 CALLS     1445 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1031        1.6612        .47287E-07   -.13191E-02
   2  Prefactor     3.3768        20.507        .13246E-05   -.17096E-01
   3  Prefactor     .37914E-07    8.0745       -.16845E-05** at limit **
   4  Prefactor      .0000        1.5203        .43853E-06** at limit **
   5  Prefactor     10.364        6.0191       -.41458E-07    .72708E-03
   6  Prefactor     .55511E-10    2.1839       -.81912E-06** at limit **
   7  Prefactor     6.6029        5.2650        .61272E-06    .10677    
   8  Prefactor     7.4381        8.8963       -.37662E-06   -.38468E-01
   9  Prefactor     4.8040        7.3501       -.45895E-06    .68254E-03
  10  Prefactor     .29143E-07    7.7910       -.29949E-05** at limit **
  11  Prefactor     1.7882        3.3667       -.92175E-06    .56789E-04
  12  norm          5.4714        3.3568       -.51386E-06   -.30932E-03
  13  Prefactor     88.806        70.178       -.27448E-05    .13250E-01
  14  norm          6.4981        1.5614       -.28142E-06    .17690E-02
  15  Prefactor     28.248        35.064       -.54734E-05    .58709E-02
  16  norm          .18634        6.8878        .27019E-05** at limit **
  17  norm           .0000        5.0575        .17699E-05** at limit **
  18  Normalizat    .65783        .20773        .32596E-04   -.64069E-04
  19  Prefactor     .99684        .12416       -.48545E-05   -.44905E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.10312
  Prefactor  = 3.37681
  Prefactor  = 3.79141e-08
  Prefactor  = 0
  Prefactor  = 10.3644
  Prefactor  = 5.55112e-11
  Prefactor  = 6.60286
  Prefactor  = 7.4381
  Prefactor  = 4.80396
  Prefactor  = 2.91434e-08
  Prefactor  = 1.78819
  norm       = 5.47136
  Prefactor  = 88.8057
  norm       = 6.49812
  Prefactor  = 28.2476
  norm       = 0.186344
  norm       = 0
  Normalizat = 0.657827
  Prefactor  = 0.996838
 **********
 **   18 **HESSE 
 **********

 FCN=   8173.904     FROM HESSE     STATUS=OK           316 CALLS     1761 TOTAL
                     EDM=   .43E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1031        1.7159        .11265E-02   -1.5687    
   2  Prefactor     3.3768        21.915        .56279E-03   -1.5671    
   3  Prefactor     .37914E-07    8.1529        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        1.5179        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.364        6.0082        .31086E-03   -1.5644    
   6  Prefactor     .55511E-10    2.1851        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.6029        13.738        .39155E-03   -1.5657    
   8  Prefactor     7.4381        9.7989        .36691E-03   -1.5653    
   9  Prefactor     4.8040        7.3622        .45895E-03   -1.5664    
  10  Prefactor     .29143E-07    7.8337        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.7882        3.4043        .77739E-03   -1.5681    
  12  norm          5.4714        3.3665        .43043E-03   -1.5661    
  13  Prefactor     88.806        71.241        .10585E-03   -1.5519    
  14  norm          6.4981        1.5564        .39341E-03   -1.5657    
  15  Prefactor     28.248        37.119        .18948E-03   -1.5602    
  16  norm          .18634        3.5387        .28320E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        5.0555        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .65783        .17694        .76358E-01   -1.0558    
  19  Prefactor     .99684        .10477        .46226E-01   -.92835    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.3288e-07
Minuit parameter uncertainties:
  1  1.71593
  2  17.2052
  3  0.00111231
  4  2.86054e-06
  5  6.00822
  6  1.61736e-05
  7  13.7378
  8  9.79894
  9  7.36225
  10  0.000955507
  11  3.40428
  12  3.36653
  13  71.2415
  14  1.55643
  15  37.1195
  16  1.62408
  17  1.53777e-05
  18  0.177092
  19  0.104792
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  2.914e-08  9.555e-04  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:  9.968e-01  1.048e-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:  6.578e-01  1.771e-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: 7.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/595741/likelihoodResults_691372801_691632001_4FGL_J2219.2-0342_daily_bin1744.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): 0
logL (Free Index) = 8173.90495041
delta logL = -0.000859063564349

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8173.90409214
delta logL = -7.9453093349e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .66878E-05   1.0000          .0000       .10000E+07
     2 'Index     '    2.8341       1.0000          .0000       10.000    
     3 'Normalizat'    .65788       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99676       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8173.834     FROM MIGRAD    STATUS=FAILED       200 CALLS      397 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .96675E-04    .32231E-03    .21846E-05** at limit **
   2  Index        10.0000        9.5469        .50000    ** at limit **
   3  Normalizat    .64003        .20247        .34253E-03    .92170E-04
   4  Prefactor     1.0042        .12450        .17307E-03    .17182E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8173.834     FROM SIMPLEX   STATUS=UNCHANGED    127 CALLS      524 TOTAL
                     EDM=   .47E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .96675E-04    .32231E-03    .21198E-08   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        9.5469        .23947E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .64003        .20247        .23524E-05   -1.0631    
   4  Prefactor     1.0042        .12450        .20997E-06   -.92589    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8173.834     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      565 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .96677E-04    .29607E-03    .43692E-06** at limit **
   2  Index        10.0000        9.2188        .50000    ** at limit **
   3  Normalizat    .64003        .20310        .13701E-04    .20080E-04
   4  Prefactor     1.0042        .12472        .34613E-04    .28903E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.66766e-05
  Index      = 10
  Normalizat = 0.640031
  Prefactor  = 1.00421
 **********
 **   18 **HESSE 
 **********

 FCN=   8173.834     FROM HESSE     STATUS=OK            29 CALLS      594 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .96677E-04    .29541E-03    .37450E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        9.2096        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .64003        .20293        .27402E-05   -1.0631    
   4  Prefactor     1.0042        .12464        .69227E-05   -.92589    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34597e-08
Minuit parameter uncertainties:
  1  0.000295412
  2  0.000249235
  3  0.203169
  4  0.124673
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/595741': 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) = 8173.83421637
delta logL = 0.0698749805433

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  9.668e-05  2.954e-04  0.000e+00  1.000e+06 ( 1.000e-12)
257        Index:  1.000e+01  2.492e-04  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.004e+00  1.247e-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:  6.400e-01  2.032e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/595741/cmap_HighResolution_691372801_691632001_4FGL_J2219.2-0342_daily_bin1744.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.04e-03', job_status='DONE', photon_flux_upper_limit='7.68e-08', time_completed='2022-12-02 02:08:19.213673', job_id='595741', GAL2='1.00', fit_tolerance='1e-08', EG2='0.64', EG='0.66', time_epoch_completed='1669975699.21', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='6.99e-02', ts2='0.15', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1744' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec  2 02:08:19 PST 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 595741: <4FGL_J2219.2-0342_daily_bin1744> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1744> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Fri Dec  2 01:55:26 2022
Job was executed on host(s) <bullet0160>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec  2 01:55:28 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec  2 01:55:28 2022
Terminated at Fri Dec  2 02:08:20 2022
Results reported at Fri Dec  2 02:08:20 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1744 334.823 -3.7102 691372801 691632001 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 :                                   611.49 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             284.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            774 sec.

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

