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


Performing analysis on: 4FGL_J2222.8+1209_daily_bin1777
RA = 335.71, Dec = 12.1568
tmin = 699926401, tmax = 700185601
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='925584', job_status='RUN', time_executed='2023-03-11 01:25:27.861537', time_epoch_executed='1678526727.86' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='1777'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/925584

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/925584/ft1_4FGL_J2222.8+1209_daily_bin1777.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/925584/ft2_4FGL_J2222.8+1209_daily_bin1777.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/925584/ft1_4FGL_J2222.8+1209_daily_bin1777.fits outfile=/scratch/kocevski/925584/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin1777.fits ra=335.71 dec=12.1568 rad=12.0 tmin=699926401.0 tmax=700185601.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.68
user 3.46
sys 0.21

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

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

Number of photons that the gtmktime cut: 791

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/925584/ft1_filtered_4FGL_J2222.8+1209_daily_bin1777.fits" evtable="EVENTS" scfile=/scratch/kocevski/925584/ft2_4FGL_J2222.8+1209_daily_bin1777.fits sctable="SC_DATA" outfile=/scratch/kocevski/925584/ltcube_699926401_700185601_4FGL_J2222.8+1209_daily_bin1777.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/925584/ft2_4FGL_J2222.8+1209_daily_bin1777.fits
.....................!
real 12.37
user 12.04
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/925584/ft1_filtered_4FGL_J2222.8+1209_daily_bin1777.fits evtable="EVENTS" scfile=/scratch/kocevski/925584/ft2_4FGL_J2222.8+1209_daily_bin1777.fits sctable="SC_DATA" expcube=/scratch/kocevski/925584/ltcube_699926401_700185601_4FGL_J2222.8+1209_daily_bin1777.fits outfile=/scratch/kocevski/925584/expmap_699926401_700185601_4FGL_J2222.8+1209_daily_bin1777.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/925584/ltcube_699926401_700185601_4FGL_J2222.8+1209_daily_bin1777.fits
.....................!
real 190.02
user 185.17
sys 4.47

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/925584/ft1_filtered_4FGL_J2222.8+1209_daily_bin1777.fits scfile=/scratch/kocevski/925584/ft2_4FGL_J2222.8+1209_daily_bin1777.fits outfile=/scratch/kocevski/925584/cmap_699926401_700185601_4FGL_J2222.8+1209_daily_bin1777.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/925584/ft1_filtered_4FGL_J2222.8+1209_daily_bin1777.fits scfile=/scratch/kocevski/925584/ft2_4FGL_J2222.8+1209_daily_bin1777.fits outfile=/scratch/kocevski/925584/cmap_HighResolution_699926401_700185601_4FGL_J2222.8+1209_daily_bin1777.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.54
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/925584/ft1_filtered_4FGL_J2222.8+1209_daily_bin1777.fits', '/scratch/kocevski/925584/ft2_4FGL_J2222.8+1209_daily_bin1777.fits', expMap='/scratch/kocevski/925584/expmap_699926401_700185601_4FGL_J2222.8+1209_daily_bin1777.fits', expCube='/scratch/kocevski/925584/ltcube_699926401_700185601_4FGL_J2222.8+1209_daily_bin1777.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/925584/Model_4FGL_J2222.8+1209_daily_bin1777.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/925584/ft1_filtered_4FGL_J2222.8+1209_daily_bin1777.fits
Spacecraft file(s): /scratch/kocevski/925584/ft2_4FGL_J2222.8+1209_daily_bin1777.fits
Exposure map: /scratch/kocevski/925584/expmap_699926401_700185601_4FGL_J2222.8+1209_daily_bin1777.fits
Exposure cube: /scratch/kocevski/925584/ltcube_699926401_700185601_4FGL_J2222.8+1209_daily_bin1777.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/925584/Model_4FGL_J2222.8+1209_daily_bin1777.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) = 8674.23849254

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14151E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    .19995E-01   1.0000          .0000       .10000E+07
     3 'norm      '    .10414E-04   1.0000          .0000       .10000E+07
     4 'norm      '    4.6280       1.0000          .0000       .10000E+07
     5 'Prefactor '    .53071E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .71718E-02   1.0000          .0000       .10000E+07
     7 'norm      '    .34195E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    4.4667       1.0000          .0000       .10000E+07
     9 'norm      '    .70235E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .13090E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .12829E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    1.5683       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .23723E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    23.653       1.0000          .0000       .10000E+07
    16 'Prefactor '    10.729       1.0000          .0000       .10000E+07
    17 'Prefactor '    .93770E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    45.094       1.0000          .0000       .10000E+07
    19 'Prefactor '    11.495       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.3101       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .90350       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=   8674.220     FROM MIGRAD    STATUS=CONVERGED    159 CALLS     1684 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.2536        .30634E-06** at limit **
   2  Prefactor     .55511E-10    32.185        .56024E-06** at limit **
   3  norm           .0000        1.2546        .34157E-07** at limit **
   4  norm          4.6348        4.2259       -.38135E-05   -.35856E-01
   5  Prefactor     .38858E-09    19.645        .27919E-06** at limit **
   6  Prefactor      .0000        52.208        .27576E-05** at limit **
   7  norm           .0000        .95810       -.28732E-06** at limit **
   8  Prefactor     4.4960        28.922       -.23745E-04    .97504E-02
   9  norm           .0000        1.3517       -.15173E-06** at limit **
  10  Prefactor     .13878E-08    7.1622       -.16407E-05** at limit **
  11  Prefactor     .55511E-10    5.0996        .40671E-08** at limit **
  12  Prefactor     1.5684        .27448       -.20636E-07    .26768E-03
  13  Prefactor     .10000E-03    2.3099       -.39872E-06** at limit **
  14  norm           .0000        1.4152        .25393E-08** at limit **
  15  Prefactor     23.666        5.0293       -.22560E-05   -.32527E-01
  16  Prefactor     10.729        13.960        .39806E-06   -.50392E-02
  17  Prefactor     .93886E-01    .10632        .75198E-08    .94805E-04
  18  Prefactor     46.986        66.385        .44356E-05   -.30889E-03
  19  Prefactor     11.519        8.3110       -.22659E-06   -.14954E-02
  20  Normalizat    1.3086        .26912        .12706E-04    .88542E-04
  21  Prefactor     .90386        .13401        .60905E-05    .25439E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 5.55112e-11
  norm       = 0
  norm       = 4.63478
  Prefactor  = 3.88578e-10
  Prefactor  = 0
  norm       = 0
  Prefactor  = 4.49603
  norm       = 0
  Prefactor  = 1.38778e-09
  Prefactor  = 5.55112e-11
  Prefactor  = 1.56842
  Prefactor  = 0.0001
  norm       = 0
  Prefactor  = 23.6657
  Prefactor  = 10.7286
  Prefactor  = 0.0938861
  Prefactor  = 46.986
  Prefactor  = 11.5193
  Normalizat = 1.30862
  Prefactor  = 0.903856
 **********
 **   18 **HESSE 
 **********

 FCN=   8674.220     FROM HESSE     STATUS=OK           355 CALLS     2039 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.2432        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .55511E-10    32.121        .17037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        1.2489        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.6348        15.859        .46761E-03   -1.5665    
   5  Prefactor     .38858E-09    19.667        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        52.226        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        .92583        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.4960        32.299        .47619E-03   -1.5666    
   9  norm           .0000        1.3523        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .13878E-08    7.1606        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    5.0996        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.5684        .27389        .43785E-02   -1.5457    
  13  Prefactor     .10000E-03    2.3080        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        1.4084        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     23.666        20.074        .20566E-03   -1.5611    
  16  Prefactor     10.729        14.162        .30563E-03   -1.5642    
  17  Prefactor     .93886E-01    .12010        .69936E-02   -1.5647    
  18  Prefactor     46.986        65.690        .14893E-03   -1.5571    
  19  Prefactor     11.519        8.3737        .29523E-03   -1.5640    
  20  Normalizat    1.3086        .22320        .74124E-01   -.83309    
  21  Prefactor     .90386        .11039        .45050E-01   -.96006    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00104e-07
Minuit parameter uncertainties:
  1  1.15585e-05
  2  7.09246e-05
  3  5.31556e-06
  4  15.8593
  5  0.000170056
  6  4.41733e-05
  7  3.74258e-06
  8  24.1014
  9  7.04471e-06
  10  0.000198225
  11  2.97101e-05
  12  0.27389
  13  1.26448e-06
  14  7.6715e-07
  15  20.0738
  16  14.1619
  17  0.120097
  18  65.6908
  19  8.37371
  20  0.223366
  21  0.110416
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.388e-09  1.982e-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:  9.039e-01  1.104e-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.309e+00  2.234e-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: 8.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/925584/likelihoodResults_699926401_700185601_4FGL_J2222.8+1209_daily_bin1777.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) = 8674.28765004
delta logL = -0.0676864751749

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8674.21996384
delta logL = -2.80811946141e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10166E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.0521       1.0000          .0000       10.000    
     3 'Normalizat'    1.3086       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90383       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8674.220     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      218 TOTAL
                     EDM=   .14E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.3261        .42118E-03** at limit **
   2  Index         3.4753        1.8452        .34762E-04     .0000    
   3  Normalizat    1.3086        1.0776        .14843E-04   -.87973E-04
   4  Prefactor     .90386        1.2486       -.97724E-05   -.12844E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.47529
  Normalizat = 1.30862
  Prefactor  = 0.903855
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8674.220     FROM HESSE     STATUS=FAILED         9 CALLS      227 TOTAL
                     EDM=   .14E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.3261        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.3447        2.2497        .34762E-04   -.30988    
   3  Normalizat    1.3086        1.0776        .14843E-04   -.83309    
   4  Prefactor     .90386        1.2486       -.97724E-05   -.96007    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.40075e-11
Minuit parameter uncertainties:
  1  1.33827e-05
  2  1.89479
  3  1.09699
  4  1.29184
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/925584': 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): 101
logL (Free Index) = 8674.21996356
delta logL = 1.14596332423e-10

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  0.000e+00  1.338e-05  0.000e+00  1.000e+06 ( 1.000e-13)
263        Index:  3.475e+00  1.895e+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:  9.039e-01  1.292e+00  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.309e+00  1.097e+00  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/925584/cmap_HighResolution_699926401_700185601_4FGL_J2222.8+1209_daily_bin1777.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.76e-03', job_status='DONE', photon_flux_upper_limit='8.74e-08', time_completed='2023-03-11 01:36:00.651738', job_id='925584', GAL2='0.90', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1678527360.65', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.15e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1777' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Mar 11 01:36:00 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 925584: <4FGL_J2222.8+1209_daily_bin1777> in cluster <slac> Done

Job <4FGL_J2222.8+1209_daily_bin1777> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Mar 11 01:25:15 2023
Job was executed on host(s) <bullet0197>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Mar 11 01:25:16 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Mar 11 01:25:16 2023
Terminated at Sat Mar 11 01:36:01 2023
Results reported at Sat Mar 11 01:36:01 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin1777 335.71 12.1568 699926401 700185601 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 :                                   635.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             333.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   644 sec.
    Turnaround time :                            646 sec.

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

