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


Performing analysis on: 4FGL_J2222.8+1209_daily_bin1751
RA = 335.71, Dec = 12.1568
tmin = 693187201, tmax = 693446401
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='88988', job_status='RUN', time_executed='2022-12-23 01:26:18.225704', time_epoch_executed='1671787578.23' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='1751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/88988

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/88988/ft1_4FGL_J2222.8+1209_daily_bin1751.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/88988/ft2_4FGL_J2222.8+1209_daily_bin1751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/88988/ft1_4FGL_J2222.8+1209_daily_bin1751.fits outfile=/scratch/kocevski/88988/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin1751.fits ra=335.71 dec=12.1568 rad=12.0 tmin=693187201.0 tmax=693446401.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.64
user 3.40
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/88988/ft2_4FGL_J2222.8+1209_daily_bin1751.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/88988/ft2_4FGL_J2222.8+1209_daily_bin1751.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/88988/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin1751.fits evtable="EVENTS" outfile="/scratch/kocevski/88988/ft1_filtered_4FGL_J2222.8+1209_daily_bin1751.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 892

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/88988/ft1_filtered_4FGL_J2222.8+1209_daily_bin1751.fits" evtable="EVENTS" scfile=/scratch/kocevski/88988/ft2_4FGL_J2222.8+1209_daily_bin1751.fits sctable="SC_DATA" outfile=/scratch/kocevski/88988/ltcube_693187201_693446401_4FGL_J2222.8+1209_daily_bin1751.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/88988/ft2_4FGL_J2222.8+1209_daily_bin1751.fits
.....................!
real 12.08
user 11.72
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/88988/ft1_filtered_4FGL_J2222.8+1209_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/88988/ft2_4FGL_J2222.8+1209_daily_bin1751.fits sctable="SC_DATA" expcube=/scratch/kocevski/88988/ltcube_693187201_693446401_4FGL_J2222.8+1209_daily_bin1751.fits outfile=/scratch/kocevski/88988/expmap_693187201_693446401_4FGL_J2222.8+1209_daily_bin1751.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/88988/ltcube_693187201_693446401_4FGL_J2222.8+1209_daily_bin1751.fits
.....................!
real 190.51
user 185.05
sys 5.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 158 point sources and 0 extended sources

Setting source of interest to:
4FGL J2222.8+1209 @ 335.71 12.1568

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/88988/ft1_filtered_4FGL_J2222.8+1209_daily_bin1751.fits scfile=/scratch/kocevski/88988/ft2_4FGL_J2222.8+1209_daily_bin1751.fits outfile=/scratch/kocevski/88988/cmap_693187201_693446401_4FGL_J2222.8+1209_daily_bin1751.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=335.71 yref=12.1568 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/88988/ft1_filtered_4FGL_J2222.8+1209_daily_bin1751.fits scfile=/scratch/kocevski/88988/ft2_4FGL_J2222.8+1209_daily_bin1751.fits outfile=/scratch/kocevski/88988/cmap_HighResolution_693187201_693446401_4FGL_J2222.8+1209_daily_bin1751.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=335.71 yref=12.1568 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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/88988/ft1_filtered_4FGL_J2222.8+1209_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/88988/ft2_4FGL_J2222.8+1209_daily_bin1751.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/88988/Model_4FGL_J2222.8+1209_daily_bin1751.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/88988/ft1_filtered_4FGL_J2222.8+1209_daily_bin1751.fits.....................!
real 93.65
user 92.22
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/88988/ft1_filtered_4FGL_J2222.8+1209_daily_bin1751.fits', '/scratch/kocevski/88988/ft2_4FGL_J2222.8+1209_daily_bin1751.fits', expMap='/scratch/kocevski/88988/expmap_693187201_693446401_4FGL_J2222.8+1209_daily_bin1751.fits', expCube='/scratch/kocevski/88988/ltcube_693187201_693446401_4FGL_J2222.8+1209_daily_bin1751.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/88988/Model_4FGL_J2222.8+1209_daily_bin1751.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2222.8+1209'

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.996e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
263        Index:  2.407e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
264        Scale:  1.288e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/88988/ft1_filtered_4FGL_J2222.8+1209_daily_bin1751.fits
Spacecraft file(s): /scratch/kocevski/88988/ft2_4FGL_J2222.8+1209_daily_bin1751.fits
Exposure map: /scratch/kocevski/88988/expmap_693187201_693446401_4FGL_J2222.8+1209_daily_bin1751.fits
Exposure cube: /scratch/kocevski/88988/ltcube_693187201_693446401_4FGL_J2222.8+1209_daily_bin1751.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/88988/Model_4FGL_J2222.8+1209_daily_bin1751.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) = 9538.90843546

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0734       1.0000          .0000       .10000E+07
     2 'Prefactor '    .33894E-01   1.0000          .0000       .10000E+07
     3 'norm      '    4.5524       1.0000          .0000       .10000E+07
     4 'norm      '    .32877E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    2.6756       1.0000          .0000       .10000E+07
     6 'Prefactor '    .33685E-01   1.0000          .0000       .10000E+07
     7 'norm      '    .73608E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    22.787       1.0000          .0000       .10000E+07
     9 'norm      '    .17756E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .22460E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    1.7683       1.0000          .0000       .10000E+07
    12 'Prefactor '    2.2708       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10515E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .15554E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    9.9257       1.0000          .0000       .10000E+07
    16 'Prefactor '    15.452       1.0000          .0000       .10000E+07
    17 'Prefactor '    2.0433       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .84157E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    17.092       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.5303       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .81255       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9538.899     FROM MIGRAD    STATUS=CONVERGED    103 CALLS     1607 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0730        2.2004        .96360E-06   -.11277E-02
   2  Prefactor     .69222E-07    17.098        .24410E-06** at limit **
   3  norm          4.5550        2.6069       -.16264E-06   -.77968E-02
   4  norm          .23687E-06    120.94        .15494E-04** at limit **
   5  Prefactor     2.6319        1.0350       -.27018E-07   -.36961E-02
   6  Prefactor     .53846E-07    16.292        .49692E-06** at limit **
   7  norm           .0000        .36070       -.10131E-05** at limit **
   8  Prefactor     22.891        1.5482       -.13975E-06    .13957    
   9  norm           .0000        1.4838       -.32606E-05** at limit **
  10  Prefactor     .55511E-09    21.142        .45735E-05** at limit **
  11  Prefactor     1.8036        12.474        .47469E-05   -.48323E-02
  12  Prefactor     2.2707        .33498        .79771E-06   -.12048E-02
  13  Prefactor     .10000E-03    3.7478       -.71245E-05** at limit **
  14  norm           .0000        1.0367        .16823E-06** at limit **
  15  Prefactor     9.8905        1.0771        .47747E-07   -.26411E-01
  16  Prefactor     15.330        2.9388       -.25636E-07   -.82495E-01
  17  Prefactor     2.0436        .27032        .11850E-05    .87533E-03
  18  Prefactor     .29199E-07    42.257       -.98510E-05** at limit **
  19  Prefactor     17.090        4.9430       -.88435E-06   -.92644E-01
  20  Normalizat    1.5301        .28400       -.51390E-04   -.26165E-03
  21  Prefactor     .81274        .14008        .64847E-05   -.32617E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.07298
  Prefactor  = 6.92224e-08
  norm       = 4.55502
  norm       = 2.36866e-07
  Prefactor  = 2.63192
  Prefactor  = 5.38458e-08
  norm       = 0
  Prefactor  = 22.8911
  norm       = 0
  Prefactor  = 5.55112e-10
  Prefactor  = 1.8036
  Prefactor  = 2.27067
  Prefactor  = 0.0001
  norm       = 0
  Prefactor  = 9.89052
  Prefactor  = 15.33
  Prefactor  = 2.04363
  Prefactor  = 2.91989e-08
  Prefactor  = 17.0899
  Normalizat = 1.53012
  Prefactor  = 0.812744
 **********
 **   18 **HESSE 
 **********

 FCN=   9538.899     FROM HESSE     STATUS=OK           365 CALLS     1972 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0730        2.2854        .11690E-02   -1.5687    
   2  Prefactor     .69222E-07    32.758        .16252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.5550        2.6466        .47157E-03   -1.5665    
   4  norm          .23687E-06    9.9607        .16302E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.6319        50.167        .62273E-03   -1.5676    
   6  Prefactor     .53846E-07    32.689        .16262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        .35807        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     22.891        27.087        .20954E-03   -1.5612    
   9  norm           .0000        1.4861        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .55511E-09    20.470        .16880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.8036        16.835        .78728E-03   -1.5681    
  12  Prefactor     2.2707        .33641        .46517E-02   -1.5407    
  13  Prefactor     .10000E-03    3.7323        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        1.0269        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.8905        25.119        .31781E-03   -1.5645    
  16  Prefactor     15.330        12.005        .25453E-03   -1.5630    
  17  Prefactor     2.0436        .27491        .39471E-02   -1.5422    
  18  Prefactor     .29199E-07    42.294        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.090        10.180        .24199E-03   -1.5625    
  20  Normalizat    1.5301        .24366        .80059E-01   -.76935    
  21  Prefactor     .81274        .11828        .43880E-01   -.99260    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07709e-06
Minuit parameter uncertainties:
  1  2.28545
  2  0.0030121
  3  2.64663
  4  0.00307192
  5  22.9816
  6  0.00265399
  7  5.28521e-06
  8  27.0876
  9  1.11629e-05
  10  0.00021411
  11  11.0208
  12  0.336412
  13  1.25464e-06
  14  3.47724e-06
  15  25.1196
  16  12.0054
  17  0.274911
  18  0.00222322
  19  10.1796
  20  0.24385
  21  0.118316
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  5.551e-10  2.141e-04  0.000e+00  1.000e+06 ( 1.000e-13)
263        Index:  2.407e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
264        Scale:  1.288e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  8.127e-01  1.183e-01  0.000e+00  1.000e+01 ( 1.000e+00)
513        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
514        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
511   Normalization:  1.530e+00  2.438e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 335.710 12.157
Photon Flux Upper Limit: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/88988/likelihoodResults_693187201_693446401_4FGL_J2222.8+1209_daily_bin1751.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9538.73500623
delta logL = 0.16360570576

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9538.70950173
delta logL = 0.189110198186

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29860       1.0000          .0000       .10000E+07
     2 'Index     '    4.3194       1.0000          .0000       10.000    
     3 'Normalizat'    1.4765       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82905       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9538.709     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      292 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29901        6.7772        .10232E-02    .30583E-01
   2  Index         4.3221        2.5940        .13698        .17973E-03
   3  Normalizat    1.4762        .37821E-01    .81140E-01   -.45428E-04
   4  Prefactor     .82916        .19246E-01    .44094E-01   -.68856E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.299011
  Index      = 4.32207
  Normalizat = 1.47619
  Prefactor  = 0.829158
 **********
 **   18 **HESSE 
 **********

 FCN=   9538.709     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      325 TOTAL
                     EDM=   .24E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .29901        38.446        .81472E-05   -1.5697    
   2  Index         4.3221        6.7814        .86239E-02   -.13601    
   3  Normalizat    1.4762        .20280        .35915E-03   -.78450    
   4  Prefactor     .82916        .10159        .23426E-03   -.98662    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.44158e-06
Minuit parameter uncertainties:
  1  6.78109
  2  9.87338
  3  0.202909
  4  0.101615
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/88988': 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) = 9538.70949189
delta logL = 0.189120041265

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  2.990e-01  6.781e+00  0.000e+00  1.000e+06 ( 1.000e-13)
263        Index:  4.322e+00  9.873e+00  0.000e+00  1.000e+01 (-1.000e+00)
264        Scale:  1.288e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  8.292e-01  1.016e-01  0.000e+00  1.000e+01 ( 1.000e+00)
513        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
514        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
511   Normalization:  1.476e+00  2.029e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 335.710 12.157

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/88988/cmap_HighResolution_693187201_693446401_4FGL_J2222.8+1209_daily_bin1751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.49e-03', job_status='DONE', photon_flux_upper_limit='1.23e-07', time_completed='2022-12-23 01:37:31.622318', job_id='88988', GAL2='0.83', fit_tolerance='1e-08', EG2='1.48', EG='1.53', time_epoch_completed='1671788251.62', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='1.89e-01', ts2='0.41', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1751' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 23 01:37:31 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 88988: <4FGL_J2222.8+1209_daily_bin1751> in cluster <slac> Done

Job <4FGL_J2222.8+1209_daily_bin1751> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Fri Dec 23 01:25:15 2022
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 23 01:25:15 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 23 01:25:15 2022
Terminated at Fri Dec 23 01:37:32 2022
Results reported at Fri Dec 23 01:37:32 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin1751 335.71 12.1568 693187201 693446401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2222.8+1209 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   675.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             332.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   736 sec.
    Turnaround time :                            737 sec.

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

