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


Performing analysis on: 4FGL_J2222.8+1209_daily_bin1728
RA = 335.71, Dec = 12.1568
tmin = 687225601, tmax = 687484801
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='304477', job_status='RUN', time_executed='2022-10-15 00:36:50.073899', time_epoch_executed='1665819410.07' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='1728'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/304477

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/304477/ft1_4FGL_J2222.8+1209_daily_bin1728.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/304477/ft2_4FGL_J2222.8+1209_daily_bin1728.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/304477/ft1_4FGL_J2222.8+1209_daily_bin1728.fits outfile=/scratch/kocevski/304477/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin1728.fits ra=335.71 dec=12.1568 rad=12.0 tmin=687225601.0 tmax=687484801.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.72
user 2.52
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/304477/ft1_filtered_4FGL_J2222.8+1209_daily_bin1728.fits" evtable="EVENTS" scfile=/scratch/kocevski/304477/ft2_4FGL_J2222.8+1209_daily_bin1728.fits sctable="SC_DATA" outfile=/scratch/kocevski/304477/ltcube_687225601_687484801_4FGL_J2222.8+1209_daily_bin1728.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/304477/ft2_4FGL_J2222.8+1209_daily_bin1728.fits
.....................!
real 13.57
user 13.19
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/304477/ft1_filtered_4FGL_J2222.8+1209_daily_bin1728.fits evtable="EVENTS" scfile=/scratch/kocevski/304477/ft2_4FGL_J2222.8+1209_daily_bin1728.fits sctable="SC_DATA" expcube=/scratch/kocevski/304477/ltcube_687225601_687484801_4FGL_J2222.8+1209_daily_bin1728.fits outfile=/scratch/kocevski/304477/expmap_687225601_687484801_4FGL_J2222.8+1209_daily_bin1728.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/304477/ltcube_687225601_687484801_4FGL_J2222.8+1209_daily_bin1728.fits
.....................!
real 190.95
user 185.27
sys 5.23

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/304477/ft1_filtered_4FGL_J2222.8+1209_daily_bin1728.fits scfile=/scratch/kocevski/304477/ft2_4FGL_J2222.8+1209_daily_bin1728.fits outfile=/scratch/kocevski/304477/cmap_687225601_687484801_4FGL_J2222.8+1209_daily_bin1728.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/304477/ft1_filtered_4FGL_J2222.8+1209_daily_bin1728.fits scfile=/scratch/kocevski/304477/ft2_4FGL_J2222.8+1209_daily_bin1728.fits outfile=/scratch/kocevski/304477/cmap_HighResolution_687225601_687484801_4FGL_J2222.8+1209_daily_bin1728.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7349       1.0000          .0000       .10000E+07
     2 'Prefactor '    2.6684       1.0000          .0000       .10000E+07
     3 'norm      '    .32074E-05   1.0000          .0000       .10000E+07
     4 'norm      '    .14395E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    .45154       1.0000          .0000       .10000E+07
     6 'Prefactor '    .57160E-02   1.0000          .0000       .10000E+07
     7 'norm      '    1.1078       1.0000          .0000       .10000E+07
     8 'Prefactor '    33.742       1.0000          .0000       .10000E+07
     9 'norm      '    9.0215       1.0000          .0000       .10000E+07
    10 'Prefactor '    42.143       1.0000          .0000       .10000E+07
    11 'Prefactor '    .67750E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .65141       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10269E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .27756E-09   1.0000          .0000       .10000E+07
    15 'Prefactor '    92.886       1.0000          .0000       .10000E+07
    16 'Prefactor '    .13472E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    3.7973       1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.679       1.0000          .0000       .10000E+07
    19 'Prefactor '    13.464       1.0000          .0000       .10000E+07
    20 'Normalizat'    .64746       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .80421       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=   3367.732     FROM MIGRAD    STATUS=CONVERGED    169 CALLS     1718 TOTAL
                     EDM=   .43E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7476        2.5253        .37361E-09    .38415E-03
   2  Prefactor     4.5845        220.98       -.20213E-04    .96046E-04
   3  norm           .0000        1.2447       -.46532E-07** at limit **
   4  norm          .11102E-09    74.649       -.62537E-06** at limit **
   5  Prefactor      .0000        109.90       -.27045E-05** at limit **
   6  Prefactor     .55511E-10    23.080       -.42689E-08** at limit **
   7  norm          1.1037        1.4106       -.23005E-07    .91365E-03
   8  Prefactor     33.156        28.710        .23950E-05    .12638E-02
   9  norm          9.4165        9.7647        .21896E-07   -.13288E-03
  10  Prefactor     41.954        13.825        .63415E-06   -.36190E-02
  11  Prefactor      .0000        19.225        .75306E-07** at limit **
  12  Prefactor     .65223        .36258       -.20620E-06    .16610E-04
  13  Prefactor     .10000E-03    3.9351        .43720E-06** at limit **
  14  norm           .0000        1.0573       -.42212E-07** at limit **
  15  Prefactor     93.905        63.611        .42843E-05    .60451E-03
  16  Prefactor      .0000        9.2795       -.94003E-07** at limit **
  17  Prefactor     3.7948        .65366       -.32132E-06    .10339E-03
  18  Prefactor     24.553        56.445        .75721E-05   -.46299E-03
  19  Prefactor     13.460        20.502       -.19028E-05   -.31183E-04
  20  Normalizat    .64377        .39196        .14001E-04    .11785E-04
  21  Prefactor     .80505        .18691       -.54860E-05    .31618E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.7476
  Prefactor  = 4.58447
  norm       = 0
  norm       = 1.11022e-10
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  norm       = 1.10374
  Prefactor  = 33.1559
  norm       = 9.41649
  Prefactor  = 41.9543
  Prefactor  = 0
  Prefactor  = 0.65223
  Prefactor  = 0.0001
  norm       = 0
  Prefactor  = 93.9051
  Prefactor  = 0
  Prefactor  = 3.79477
  Prefactor  = 24.5529
  Prefactor  = 13.4599
  Normalizat = 0.643768
  Prefactor  = 0.805048
 **********
 **   18 **HESSE 
 **********

 FCN=   3367.732     FROM HESSE     STATUS=OK           361 CALLS     2079 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7476        2.5305        .61544E-03   -1.5675    
   2  Prefactor     4.5845        221.73        .62364E-03   -1.5665    
   3  norm           .0000        1.2416        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .11102E-09    74.572        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        107.46        .83743E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .55511E-10    23.106        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.1037        1.4552        .11235E-02   -1.5687    
   8  Prefactor     33.156        31.360        .17217E-03   -1.5593    
   9  norm          9.4165        9.7723        .33345E-03   -1.5647    
  10  Prefactor     41.954        31.000        .15406E-03   -1.5578    
  11  Prefactor      .0000        19.234        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .65223        .37649        .55825E-02   -1.5546    
  13  Prefactor     .10000E-03    3.9393        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        1.0594        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     93.905        84.069        .10377E-03   -1.5514    
  16  Prefactor      .0000        9.2933        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.7948        .65772        .41716E-02   -1.5318    
  18  Prefactor     24.553        85.220        .20555E-03   -1.5609    
  19  Prefactor     13.460        20.490        .27272E-03   -1.5635    
  20  Normalizat    .64377        .33909        .89160E-01   -1.0616    
  21  Prefactor     .80505        .15819        .43772E-01   -.99543    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.2113e-09
Minuit parameter uncertainties:
  1  2.5305
  2  63.7686
  3  1.0667e-06
  4  0.00016698
  5  4.92112e-05
  6  6.6031e-05
  7  1.45517
  8  31.3602
  9  9.77232
  10  30.9999
  11  4.69732e-06
  12  0.376494
  13  3.17793e-06
  14  2.39833e-07
  15  84.0705
  16  7.4811e-06
  17  0.657724
  18  85.2245
  19  20.4903
  20  0.340192
  21  0.158281
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  4.195e+01  3.100e+01  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.050e-01  1.583e-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:  6.438e-01  3.402e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.04
Ra Dec: 335.710 12.157
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 1.40e-07 +/- 1.03e-07
Energy Flux (Fixed Index): 4.55e-05 +/- 3.36e-05

TS (Fixed Index): 3.04
Ra Dec: 335.710 12.157
Photon Flux Upper Limit: 3.40e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.63e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/304477/likelihoodResults_687225601_687484801_4FGL_J2222.8+1209_daily_bin1728.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): 1
logL (Free Index) = 3362.8189081
delta logL = 4.91310271901

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3361.44138598
delta logL = 6.29062483386

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31659E-05   1.0000          .0000       .10000E+07
     2 'Index     '   10.0000       1.0000          .0000       10.000    
     3 'Normalizat'    .23950       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98385       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 TERMINATED WITHOUT CONVERGENCE.

 FCN=   3361.441     FROM MIGRAD    STATUS=FAILED       476 CALLS     1071 TOTAL
                     EDM=   .40E-01    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .31653E-05    .29756E-05     .0000    ** at limit **
   2  Index        10.0000        .57597         .0000    ** at limit **
   3  Normalizat    .23966        6.9456         .0000        .41423E-04
   4  Prefactor     .98383        1.2398         .0000       -.13863E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3361.441     FROM SIMPLEX   STATUS=UNCHANGED    136 CALLS     1207 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .31653E-05    .29756E-05    .44897E-11** at limit **
   2  Index        10.0000        .57597        .76782E-02** at limit **
   3  Normalizat    .23966        6.9456        .85616E-05    .41423E-04
   4  Prefactor     .98383        1.2398        .57629E-06   -.13863E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   3361.441     FROM MIGRAD    STATUS=FAILED        55 CALLS     1262 TOTAL
                     EDM=   .83E-02    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .31653E-05    .13517E-05     .0000    ** at limit **
   2  Index        10.0000        .19820         .0000    ** at limit **
   3  Normalizat    .23966        .40305         .0000       -.19319E-05
   4  Prefactor     .98383        .20417         .0000       -.17737E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.1653e-06
  Index      = 10
  Normalizat = 0.239655
  Prefactor  = 0.983833
 **********
 **   18 **HESSE 
 **********

 FCN=   3361.441     FROM HESSE     STATUS=OK            37 CALLS     1299 TOTAL
                     EDM=   .17E-01    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .31653E-05    .13512E-05    .37451E-05   -7.8540    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        .19668        .22322        30997.    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .23966        .40152        .24951E-04    5.0168    
   4  Prefactor     .98383        .20338        .12179E-04    255.40    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.0166546
Minuit parameter uncertainties:
  1  1.35118e-06
  2  5.4109e-07
  3  0.4065
  4  0.20354
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/304477': 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): 1
logL (Free Index) = 3361.4413845
delta logL = 6.29062631942

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  3.165e-06  1.351e-06  0.000e+00  1.000e+06 ( 1.000e-13)
263        Index:  1.000e+01  5.411e-07  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.838e-01  2.035e-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:  2.397e-01  4.065e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.67
Ra Dec: 335.710 12.157
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 4.57e-07 +/- 1.89e-07
Energy Flux (Free Index): 5.11e-05 +/- 2.13e-05

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/304477/cmap_HighResolution_687225601_687484801_4FGL_J2222.8+1209_daily_bin1728.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.63e-02', comment='SUCCESS', photon_flux='1.40e-07', energy_flux2='5.11e-05', photon_flux_error='1.03e-07', dlogl='6.29e+00', energy_flux='4.55e-05', photon_flux2='4.57e-07', job_status='DONE', time_completed='2022-10-15 00:44:39.700606', photon_index_error2='0.00', photon_index2='10.00', ts='3.04', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='3.40e-07', energy_flux_error2='2.13e-05', EG='0.64', time_epoch_completed='1665819879.7', return_code='0', job_id='304477', GAL2='0.98', EG2='0.24', return_code2='1', energy_flux_error='3.36e-05', photon_flux_error2='1.89e-07', ts2='17.67', photon_index='2.41' WHERE bin_id='1728' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Oct 15 00:44:39 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 304477: <4FGL_J2222.8+1209_daily_bin1728> in cluster <slac> Done

Job <4FGL_J2222.8+1209_daily_bin1728> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Oct 15 00:35:57 2022
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Oct 15 00:35:59 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Oct 15 00:35:59 2022
Terminated at Sat Oct 15 00:44:40 2022
Results reported at Sat Oct 15 00:44:40 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin1728 335.71 12.1568 687225601 687484801 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 :                                   472.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   520 sec.
    Turnaround time :                            523 sec.

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

