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 141 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J2222.8+1209_daily_bin1703
RA = 335.71, Dec = 12.1568
tmin = 680745601, tmax = 681004801
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='324152', job_status='RUN', time_executed='2022-08-01 01:24:18.940876', time_epoch_executed='1659342258.94' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='1703'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/324152

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/324152/ft1_4FGL_J2222.8+1209_daily_bin1703.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/324152/ft2_4FGL_J2222.8+1209_daily_bin1703.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/324152/ft1_4FGL_J2222.8+1209_daily_bin1703.fits outfile=/scratch/kocevski/324152/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin1703.fits ra=335.71 dec=12.1568 rad=12.0 tmin=680745601.0 tmax=681004801.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.99
user 2.77
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/324152/ft2_4FGL_J2222.8+1209_daily_bin1703.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/324152/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin1703.fits evtable="EVENTS" outfile="/scratch/kocevski/324152/ft1_filtered_4FGL_J2222.8+1209_daily_bin1703.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.35
sys 0.15

Number of photons that the gtmktime cut: 461

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/324152/ft1_filtered_4FGL_J2222.8+1209_daily_bin1703.fits" evtable="EVENTS" scfile=/scratch/kocevski/324152/ft2_4FGL_J2222.8+1209_daily_bin1703.fits sctable="SC_DATA" outfile=/scratch/kocevski/324152/ltcube_680745601_681004801_4FGL_J2222.8+1209_daily_bin1703.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/324152/ft2_4FGL_J2222.8+1209_daily_bin1703.fits
.....................!
real 14.07
user 13.64
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/324152/ft1_filtered_4FGL_J2222.8+1209_daily_bin1703.fits evtable="EVENTS" scfile=/scratch/kocevski/324152/ft2_4FGL_J2222.8+1209_daily_bin1703.fits sctable="SC_DATA" expcube=/scratch/kocevski/324152/ltcube_680745601_681004801_4FGL_J2222.8+1209_daily_bin1703.fits outfile=/scratch/kocevski/324152/expmap_680745601_681004801_4FGL_J2222.8+1209_daily_bin1703.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/324152/ltcube_680745601_681004801_4FGL_J2222.8+1209_daily_bin1703.fits
.....................!
real 193.25
user 187.92
sys 4.71

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/324152/ft1_filtered_4FGL_J2222.8+1209_daily_bin1703.fits scfile=/scratch/kocevski/324152/ft2_4FGL_J2222.8+1209_daily_bin1703.fits outfile=/scratch/kocevski/324152/cmap_680745601_681004801_4FGL_J2222.8+1209_daily_bin1703.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.56
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/324152/ft1_filtered_4FGL_J2222.8+1209_daily_bin1703.fits scfile=/scratch/kocevski/324152/ft2_4FGL_J2222.8+1209_daily_bin1703.fits outfile=/scratch/kocevski/324152/cmap_HighResolution_680745601_681004801_4FGL_J2222.8+1209_daily_bin1703.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.56
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/324152/ft1_filtered_4FGL_J2222.8+1209_daily_bin1703.fits', '/scratch/kocevski/324152/ft2_4FGL_J2222.8+1209_daily_bin1703.fits', expMap='/scratch/kocevski/324152/expmap_680745601_681004801_4FGL_J2222.8+1209_daily_bin1703.fits', expCube='/scratch/kocevski/324152/ltcube_680745601_681004801_4FGL_J2222.8+1209_daily_bin1703.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/324152/Model_4FGL_J2222.8+1209_daily_bin1703.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  1.000e-04  1.000e+04 ( 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/324152/ft1_filtered_4FGL_J2222.8+1209_daily_bin1703.fits
Spacecraft file(s): /scratch/kocevski/324152/ft2_4FGL_J2222.8+1209_daily_bin1703.fits
Exposure map: /scratch/kocevski/324152/expmap_680745601_681004801_4FGL_J2222.8+1209_daily_bin1703.fits
Exposure cube: /scratch/kocevski/324152/ltcube_680745601_681004801_4FGL_J2222.8+1209_daily_bin1703.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/324152/Model_4FGL_J2222.8+1209_daily_bin1703.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) = 5306.59583311

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9757       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    300.05       1.0000         .10000E-03   10000.    
     4 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .11848E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .19470E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .62304E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    2.6315       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.332       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .86589       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.3274       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.4197       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .78542       1.0000         .10000E-03   10000.    
    22 'Prefactor '    54.872       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.1691       1.0000         .10000E-03   10000.    
    24 'Prefactor '    14.901       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4684       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .61457       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5306.527     FROM MIGRAD    STATUS=CONVERGED   1094 CALLS     3584 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9769        3.2741        .13054E-03    .16896E-04
   2  Prefactor     .10000E-03    39.728        .18142E-02** at limit **
   3  Prefactor     299.79        246.11        .11723E-03    .11637E-04
   4  norm          .10000E-03    1.4162        .84482E-03** at limit **
   5  norm          .10000E-03    25.866        .18142E-02** at limit **
   6  Prefactor     .10000E-03    18.841        .18142E-02** at limit **
   7  Prefactor     .10000E-03    30.328        .18142E-02** at limit **
   8  norm          .10000E-03    .28839        .37865E-03** at limit **
   9  Prefactor     .10000E-03    37.612        .18142E-02** at limit **
  10  Prefactor     .10000E-03    439.44        .18142E-02** at limit **
  11  Prefactor     .10000E-03    71.565        .17228    ** at limit **
  12  norm          2.6330        4.8799        .20929E-03    .17546E-04
  13  Prefactor     .10000E-03    8.5098        .18142E-02** at limit **
  14  Prefactor     19.341        17.201        .91093E-04    .71138E-04
  15  Prefactor     .86591        .31250        .22908E-04    .95039E-03
  16  Prefactor     .10000E-03    15.429        .18142E-02** at limit **
  17  norm          1.3276        1.2617        .74815E-04    .21274E-05
  18  Prefactor     .10000E-03    10.656        .18142E-02** at limit **
  19  Prefactor     1.4227        14.708        .18156E-02    .71572E-04
  20  Prefactor     .10000E-03    17.253        .18142E-02** at limit **
  21  Prefactor     .78549        .20353        .15531E-04    .11332E-02
  22  Prefactor     54.885        64.931        .54150E-04    .21751E-04
  23  Prefactor     5.1705        7.1512        .17682E-03    .41021E-05
  24  Prefactor     14.907        19.651        .10376E-03    .10300E-04
  25  Normalizat    1.4681        .36318        .31336E-03    .68461E-04
  26  Prefactor     .61451        .16635        .22545E-03    .48258E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.97687
  Prefactor  = 0.0001
  Prefactor  = 299.789
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 2.63301
  Prefactor  = 0.0001
  Prefactor  = 19.3409
  Prefactor  = 0.865908
  Prefactor  = 0.0001
  norm       = 1.32757
  Prefactor  = 0.0001
  Prefactor  = 1.42274
  Prefactor  = 0.0001
  Prefactor  = 0.785486
  Prefactor  = 54.8854
  Prefactor  = 5.17052
  Prefactor  = 14.9074
  Normalizat = 1.46814
  Prefactor  = 0.614511
 **********
 **   18 **HESSE 
 **********

 FCN=   5306.527     FROM HESSE     STATUS=OK           442 CALLS     4026 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9769        3.2740        .52214E-05   -1.5363    
   2  Prefactor     .10000E-03    39.728        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     299.79        246.10        .23447E-04   -1.2228    
   4  norm          .10000E-03    1.4162        .16896E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    25.867        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    18.842        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    30.330        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .28840        .75730E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    37.613        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    439.53        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    75.429        .16619       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.6330        4.8794        .83714E-05   -1.5383    
  13  Prefactor     .10000E-03    8.5104        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     19.341        17.202        .36437E-05   -1.4828    
  15  Prefactor     .86591        .31247        .91630E-06   -1.5522    
  16  Prefactor     .10000E-03    15.435        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.3276        1.2593        .29926E-05   -1.5478    
  18  Prefactor     .10000E-03    10.656        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.4227        14.626        .72623E-04   -1.5469    
  20  Prefactor     .10000E-03    17.255        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .78549        .20353        .62123E-06   -1.5531    
  22  Prefactor     54.885        64.928        .10830E-04   -1.4225    
  23  Prefactor     5.1705        7.1508        .35364E-04   -1.5253    
  24  Prefactor     14.907        19.650        .41503E-05   -1.4936    
  25  Normalizat    1.4681        .36350        .12534E-04   -.78677    
  26  Prefactor     .61451        .16654        .45090E-04   -1.0698    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.4287e-10
Minuit parameter uncertainties:
  1  3.27415
  2  5.04987e-06
  3  246.962
  4  2.63326e-06
  5  1.50936e-05
  6  3.92768e-05
  7  5.17482e-05
  8  2.36194e-06
  9  5.45804e-05
  10  7.618e-05
  11  0.000924727
  12  4.88014
  13  1.66061e-05
  14  17.2066
  15  0.312473
  16  1.06017e-05
  17  1.25936
  18  6.96408e-06
  19  9.12587
  20  6.92845e-07
  21  0.203526
  22  65.0123
  23  7.152
  24  19.6582
  25  0.364145
  26  0.166671
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  1.661e-05  1.000e-04  1.000e+04 ( 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:  6.145e-01  1.667e-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.468e+00  3.641e-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.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/324152/likelihoodResults_680745601_681004801_4FGL_J2222.8+1209_daily_bin1703.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) = 5306.52738065
delta logL = -0.000559226073165

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5306.52682143
delta logL = -2.27100827033e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4052       1.0000          .0000       10.000    
     3 'Normalizat'    1.4682       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61451       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=   5306.527     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      209 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.237        .90712E-02** at limit **
   2  Index         2.4035        5.8566        .50000        .16985E-05
   3  Normalizat    1.4682        .90045E-02    .70824E-01    .27331E-04
   4  Prefactor     .61451        .44112E-02    .41252E-01    .39667E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.40352
  Normalizat = 1.46815
  Prefactor  = 0.614507
 **********
 **   18 **HESSE 
 **********

 FCN=   5306.527     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      242 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    173.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4035        7.9031        .50000       -.54603    
   3  Normalizat    1.4682        .32115E-01    .31335E-03   -.78677    
   4  Prefactor     .61451        .15740E-01    .22545E-03   -1.0698    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.3976e-07
Minuit parameter uncertainties:
  1  4.13941e-05
  2  934.364
  3  0.0321157
  4  0.0157402
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/324152': 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) = 5306.52682142
delta logL = 1.72531144926e-09

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  4.139e-05  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.404e+00  9.344e+02  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:  6.145e-01  1.574e-02  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.468e+00  3.212e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/324152/cmap_HighResolution_680745601_681004801_4FGL_J2222.8+1209_daily_bin1703.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.09e-03', job_status='DONE', photon_flux_upper_limit='1.18e-07', time_completed='2022-08-01 01:35:29.090359', job_id='324152', GAL2='0.61', fit_tolerance='1e-08', EG2='1.47', EG='1.47', time_epoch_completed='1659342929.09', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='1.73e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1703' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug  1 01:35:29 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 324152: <4FGL_J2222.8+1209_daily_bin1703> in cluster <slac> Done

Job <4FGL_J2222.8+1209_daily_bin1703> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug  1 01:20:21 2022
Job was executed on host(s) <bullet0126>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug  1 01:21:49 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug  1 01:21:49 2022
Terminated at Mon Aug  1 01:35:30 2022
Results reported at Mon Aug  1 01:35:30 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin1703 335.71 12.1568 680745601 681004801 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 :                                   665.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             322.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            909 sec.

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

