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


Performing analysis on: 4FGL_J2219.2-0342_daily_bin1714
RA = 334.823, Dec = -3.7102
tmin = 683596801, tmax = 683856001
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='242220', job_status='RUN', time_executed='2022-09-16 23:48:58.836104', time_epoch_executed='1663397338.84' WHERE source_name='4FGL J2219.2-0342' and cadence='daily' and bin_id='1714'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/242220

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/242220/ft1_4FGL_J2219.2-0342_daily_bin1714.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/242220/ft2_4FGL_J2219.2-0342_daily_bin1714.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/242220/ft1_4FGL_J2219.2-0342_daily_bin1714.fits outfile=/scratch/kocevski/242220/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1714.fits ra=334.823 dec=-3.7102 rad=12.0 tmin=683596801.0 tmax=683856001.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.09
user 2.71
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/242220/ft2_4FGL_J2219.2-0342_daily_bin1714.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/242220/ft1_filteredMKT_4FGL_J2219.2-0342_daily_bin1714.fits evtable="EVENTS" outfile="/scratch/kocevski/242220/ft1_filtered_4FGL_J2219.2-0342_daily_bin1714.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.47
user 0.31
sys 0.15

Number of photons that the gtmktime cut: 474

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/242220/ft1_filtered_4FGL_J2219.2-0342_daily_bin1714.fits" evtable="EVENTS" scfile=/scratch/kocevski/242220/ft2_4FGL_J2219.2-0342_daily_bin1714.fits sctable="SC_DATA" outfile=/scratch/kocevski/242220/ltcube_683596801_683856001_4FGL_J2219.2-0342_daily_bin1714.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/242220/ft2_4FGL_J2219.2-0342_daily_bin1714.fits
.....................!
real 13.34
user 12.97
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/242220/ft1_filtered_4FGL_J2219.2-0342_daily_bin1714.fits evtable="EVENTS" scfile=/scratch/kocevski/242220/ft2_4FGL_J2219.2-0342_daily_bin1714.fits sctable="SC_DATA" expcube=/scratch/kocevski/242220/ltcube_683596801_683856001_4FGL_J2219.2-0342_daily_bin1714.fits outfile=/scratch/kocevski/242220/expmap_683596801_683856001_4FGL_J2219.2-0342_daily_bin1714.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/242220/ltcube_683596801_683856001_4FGL_J2219.2-0342_daily_bin1714.fits
.....................!
real 157.98
user 152.26
sys 4.09

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/242220/ft1_filtered_4FGL_J2219.2-0342_daily_bin1714.fits scfile=/scratch/kocevski/242220/ft2_4FGL_J2219.2-0342_daily_bin1714.fits outfile=/scratch/kocevski/242220/cmap_683596801_683856001_4FGL_J2219.2-0342_daily_bin1714.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.49
user 0.32
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/242220/ft1_filtered_4FGL_J2219.2-0342_daily_bin1714.fits scfile=/scratch/kocevski/242220/ft2_4FGL_J2219.2-0342_daily_bin1714.fits outfile=/scratch/kocevski/242220/cmap_HighResolution_683596801_683856001_4FGL_J2219.2-0342_daily_bin1714.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.50
user 0.34
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/242220/ft1_filtered_4FGL_J2219.2-0342_daily_bin1714.fits evtable="EVENTS" scfile=/scratch/kocevski/242220/ft2_4FGL_J2219.2-0342_daily_bin1714.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/242220/Model_4FGL_J2219.2-0342_daily_bin1714.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/242220/ft1_filtered_4FGL_J2219.2-0342_daily_bin1714.fits.....................!
real 45.65
user 44.15
sys 1.02

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .63442       1.0000          .0000       .10000E+07
     2 'Prefactor '    .87651E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .10688       1.0000          .0000       .10000E+07
     4 'Prefactor '    8.2030       1.0000          .0000       .10000E+07
     5 'Prefactor '    15.796       1.0000          .0000       .10000E+07
     6 'Prefactor '    .21605E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .12941       1.0000          .0000       .10000E+07
     8 'Prefactor '    .57697E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    1.9488       1.0000          .0000       .10000E+07
    10 'Prefactor '    .26818       1.0000          .0000       .10000E+07
    11 'Prefactor '    .22890E-04   1.0000          .0000       .10000E+07
    12 'norm      '    5.6404       1.0000          .0000       .10000E+07
    13 'Prefactor '    .58063       1.0000          .0000       .10000E+07
    14 'norm      '    3.0112       1.0000          .0000       .10000E+07
    15 'Prefactor '    28.620       1.0000          .0000       .10000E+07
    16 'norm      '    .19823E-06   1.0000          .0000       .10000E+07
    17 'norm      '    .13814E-03   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.1674       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .72602       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=   5396.296     FROM MIGRAD    STATUS=CONVERGED    137 CALLS     1519 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .62980        1.9868        .58288E-07    .60351E-03
   2  Prefactor     .20223E-06    9.3845       -.20284E-07** at limit **
   3  Prefactor      .0000        27.601        .88993E-07** at limit **
   4  Prefactor     8.1633        8.1338        .17607E-07    .10538E-02
   5  Prefactor     15.825        9.3564       -.92344E-08   -.10319E-01
   6  Prefactor     .83711E-07    12.736        .77900E-07** at limit **
   7  Prefactor     .20821        12.323       -.99926E-08** at limit **
   8  Prefactor     .62017E-06    5.0025        .26433E-07** at limit **
   9  Prefactor     1.7930        6.1838        .92992E-08    .10319E-01
  10  Prefactor     .43909E-07    3.4423       -.26942E-07** at limit **
  11  Prefactor     .16653E-09    2.8166        .38404E-07** at limit **
  12  norm          5.6445        4.4616       -.13578E-07   -.41935E-03
  13  Prefactor     .47462E-06    95.192        .86895E-07** at limit **
  14  norm          3.0158        1.6258        .31809E-08   -.11893E-03
  15  Prefactor     28.301        20.889       -.11304E-07    .25481E-01
  16  norm          .55511E-10    5.0554       -.30919E-06** at limit **
  17  norm          .55511E-10    3.8972        .11077E-06** at limit **
  18  Normalizat    1.1695        .25653       -.15648E-05   -.58276E-05
  19  Prefactor     .72565        .14717        .12089E-05    .19477E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.629804
  Prefactor  = 2.02227e-07
  Prefactor  = 0
  Prefactor  = 8.1633
  Prefactor  = 15.8254
  Prefactor  = 8.37108e-08
  Prefactor  = 0.20821
  Prefactor  = 6.20171e-07
  Prefactor  = 1.79298
  Prefactor  = 4.39093e-08
  Prefactor  = 1.66533e-10
  norm       = 5.64451
  Prefactor  = 4.7462e-07
  norm       = 3.0158
  Prefactor  = 28.301
  norm       = 5.55112e-11
  norm       = 5.55112e-11
  Normalizat = 1.16954
  Prefactor  = 0.725646
 **********
 **   18 **HESSE 
 **********

 FCN=   5396.296     FROM HESSE     STATUS=OK           320 CALLS     1839 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .62980        2.0152        .66200E-03   -1.5692    
   2  Prefactor     .20223E-06    12.083        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        27.514        .13748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.1633        8.1485        .34981E-03   -1.5651    
   5  Prefactor     15.825        9.5191        .25174E-03   -1.5628    
   6  Prefactor     .83711E-07    14.834        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .20821        13.359        .95298E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .62017E-06    12.818        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.7930        57.178        .74313E-03   -1.5681    
  10  Prefactor     .43909E-07    9.5087        .78757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .16653E-09    2.8007        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.6445        4.4715        .42274E-03   -1.5660    
  13  Prefactor     .47462E-06    100.86        .70981E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.0158        1.6410        .58463E-03   -1.5673    
  15  Prefactor     28.301        28.988        .18695E-03   -1.5602    
  16  norm          .55511E-10    2.2149        .31751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .55511E-10    3.8992        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1695        .22659        .61967E-01   -.87549    
  19  Prefactor     .72565        .12418        .42747E-01   -1.0253    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30134e-07
Minuit parameter uncertainties:
  1  2.01524
  2  0.0031261
  3  4.18612e-05
  4  8.14855
  5  9.51913
  6  0.00222844
  7  3.33559
  8  0.00563881
  9  20.2505
  10  0.00129242
  11  4.08928e-05
  12  4.47153
  13  0.0138378
  14  1.64101
  15  28.9883
  16  2.2303e-05
  17  2.80866e-05
  18  0.226784
  19  0.12423
Done.

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

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  4.391e-08  1.292e-03  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:  7.256e-01  1.242e-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.170e+00  2.268e-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: 1.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/242220/likelihoodResults_683596801_683856001_4FGL_J2219.2-0342_daily_bin1714.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) = 5396.25773306
delta logL = 0.0385523889036

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5395.76315635
delta logL = 0.533129103685

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25418E-02   1.0000          .0000       .10000E+07
     2 'Index     '    8.8707       1.0000          .0000       10.000    
     3 'Normalizat'    1.0997       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75294       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=   5396.296     FROM MIGRAD    STATUS=CONVERGED     76 CALLS      396 TOTAL
                     EDM=   .98E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-09    9.3690       -.15800E-05** at limit **
   2  Index         2.0428        .63074       -.29817E-04    .37916E-10
   3  Normalizat    1.1695        .24997        .19352E-04    .62275E-04
   4  Prefactor     .72565        .14692       -.94493E-05    .45353E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-10
  Index      = 2.04279
  Normalizat = 1.16954
  Prefactor  = 0.725646
 **********
 **   18 **HESSE 
 **********

 FCN=   5396.296     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      429 TOTAL
                     EDM=   .11E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-09    .71158E-01    .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0428        6.5549        .36567       -33.925    
   3  Normalizat    1.1695        .47680E-03    .61970E-01   -2.2661    
   4  Prefactor     .72565        .27997E-03    .43102E-01   -2.1163    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.0934e-14
Minuit parameter uncertainties:
  1  4.91621e-06
  2  14720.7
  3  0.000476798
  4  0.000279967
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/242220': 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): 102
logL (Free Index) = 5396.29628545
delta logL = 2.61934474111e-10

Extracting fit parameters...

4FGL J2219.2-0342
   Spectrum: PowerLaw
256    Prefactor:  1.110e-10  4.916e-06  0.000e+00  1.000e+06 ( 1.000e-12)
257        Index:  2.043e+00  1.472e+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:  7.256e-01  2.800e-04  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.170e+00  4.768e-04  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/242220/cmap_HighResolution_683596801_683856001_4FGL_J2219.2-0342_daily_bin1714.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.72e-03', job_status='DONE', photon_flux_upper_limit='1.24e-07', time_completed='2022-09-16 23:56:02.018443', job_id='242220', GAL2='0.73', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1663397762.02', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='2.62e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1714' AND source_name='4FGL J2219.2-0342' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 23:56:02 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0033>
Subject: Job 242220: <4FGL_J2219.2-0342_daily_bin1714> in cluster <slac> Done

Job <4FGL_J2219.2-0342_daily_bin1714> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 16 23:45:28 2022
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 23:46:35 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 23:46:35 2022
Terminated at Fri Sep 16 23:56:02 2022
Results reported at Fri Sep 16 23:56:02 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2219.2-0342_daily_bin1714 334.823 -3.7102 683596801 683856001 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 :                                   422.03 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             323.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   568 sec.
    Turnaround time :                            634 sec.

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

