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


Performing analysis on: 4FGL_J2222.8+1209_daily_bin1769
RA = 335.71, Dec = 12.1568
tmin = 697852801, tmax = 698112001
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='446385', job_status='RUN', time_executed='2023-02-15 01:38:49.676504', time_epoch_executed='1676453929.68' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='1769'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/446385

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/446385/ft1_4FGL_J2222.8+1209_daily_bin1769.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/446385/ft2_4FGL_J2222.8+1209_daily_bin1769.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/446385/ft1_4FGL_J2222.8+1209_daily_bin1769.fits outfile=/scratch/kocevski/446385/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin1769.fits ra=335.71 dec=12.1568 rad=12.0 tmin=697852801.0 tmax=698112001.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 4.41
user 4.16
sys 0.21

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

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

Number of photons that the gtmktime cut: 899

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/446385/ft1_filtered_4FGL_J2222.8+1209_daily_bin1769.fits evtable="EVENTS" scfile=/scratch/kocevski/446385/ft2_4FGL_J2222.8+1209_daily_bin1769.fits sctable="SC_DATA" expcube=/scratch/kocevski/446385/ltcube_697852801_698112001_4FGL_J2222.8+1209_daily_bin1769.fits outfile=/scratch/kocevski/446385/expmap_697852801_698112001_4FGL_J2222.8+1209_daily_bin1769.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/446385/ltcube_697852801_698112001_4FGL_J2222.8+1209_daily_bin1769.fits
.....................!
real 191.24
user 185.94
sys 4.96

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/446385/ft1_filtered_4FGL_J2222.8+1209_daily_bin1769.fits scfile=/scratch/kocevski/446385/ft2_4FGL_J2222.8+1209_daily_bin1769.fits outfile=/scratch/kocevski/446385/cmap_697852801_698112001_4FGL_J2222.8+1209_daily_bin1769.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/446385/ft1_filtered_4FGL_J2222.8+1209_daily_bin1769.fits scfile=/scratch/kocevski/446385/ft2_4FGL_J2222.8+1209_daily_bin1769.fits outfile=/scratch/kocevski/446385/cmap_HighResolution_697852801_698112001_4FGL_J2222.8+1209_daily_bin1769.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0129       1.0000          .0000       .10000E+07
     2 'Prefactor '    74.806       1.0000          .0000       .10000E+07
     3 'norm      '    .55814E-03   1.0000          .0000       .10000E+07
     4 'norm      '    .39110       1.0000          .0000       .10000E+07
     5 'Prefactor '    .18979E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    .41751E-01   1.0000          .0000       .10000E+07
     7 'norm      '    .62751       1.0000          .0000       .10000E+07
     8 'Prefactor '    10.930       1.0000          .0000       .10000E+07
     9 'norm      '    .30739E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    7.6265       1.0000          .0000       .10000E+07
    11 'Prefactor '    10.126       1.0000          .0000       .10000E+07
    12 'Prefactor '    3.3193       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .36618E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    4.2709       1.0000          .0000       .10000E+07
    15 'Prefactor '    .31532E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .23264E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    5.3002       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .60861E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    .43727       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.4335       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .61448       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=   9362.111     FROM MIGRAD    STATUS=CONVERGED    181 CALLS     1695 TOTAL
                     EDM=   .38E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0094        2.2627       -.22574E-08    .13055E-03
   2  Prefactor     76.381        96.903        .49126E-06   -.11349E-03
   3  norm           .0000        4.1024        .14203E-07** at limit **
   4  norm          .19429E-08    516.50        .15494E-05** at limit **
   5  Prefactor      .0000        11.149       -.16041E-07** at limit **
   6  Prefactor      .0000        26.025       -.15377E-08** at limit **
   7  norm          .62802        .78192       -.49755E-08    .15165E-03
   8  Prefactor     11.723        32.866       -.23156E-06   -.15441E-04
   9  norm           .0000        2.8092        .30656E-08** at limit **
  10  Prefactor     7.6536        16.139       -.33265E-07    .13138E-05
  11  Prefactor     10.219        10.225        .81539E-07    .27300E-04
  12  Prefactor     3.3190        .42043        .10022E-07   -.96150E-04
  13  Prefactor     .10000E-03    13.819       -.12415E-05** at limit **
  14  norm          4.2719        2.1528       -.14429E-10   -.19840E-03
  15  Prefactor      .0000        14.895       -.49139E-07** at limit **
  16  Prefactor      .0000        5.3986       -.21624E-07** at limit **
  17  Prefactor     5.3018        .40754       -.14247E-07    .11676E-03
  18  Prefactor      .0000        27.938       -.73874E-08** at limit **
  19  Prefactor     .23512        164.88        .21991E-06** at limit **
  20  Normalizat    1.4321        .29424        .20702E-06   -.15490E-04
  21  Prefactor     .61490        .13783        .68698E-07   -.20619E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.00937
  Prefactor  = 76.3811
  norm       = 0
  norm       = 1.94289e-09
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0.62802
  Prefactor  = 11.7235
  norm       = 0
  Prefactor  = 7.65358
  Prefactor  = 10.219
  Prefactor  = 3.31899
  Prefactor  = 0.0001
  norm       = 4.27187
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 5.30184
  Prefactor  = 0
  Prefactor  = 0.235119
  Normalizat = 1.43212
  Prefactor  = 0.6149
 **********
 **   18 **HESSE 
 **********

 FCN=   9362.111     FROM HESSE     STATUS=OK           379 CALLS     2074 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0094        2.2815        .72935E-03   -1.5680    
   2  Prefactor     76.381        118.75        .11563E-03   -1.5533    
   3  norm           .0000        3.9918        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .19429E-08    35.884        .12025E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        11.208        .17105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        25.939        .15886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .62802        .79765        .66799E-03   -1.5692    
   8  Prefactor     11.723        32.680        .30280E-03   -1.5639    
   9  norm           .0000        2.8040        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.6536        16.117        .36289E-03   -1.5653    
  11  Prefactor     10.219        10.221        .31464E-03   -1.5644    
  12  Prefactor     3.3190        .41858        .46602E-02   -1.5344    
  13  Prefactor     .10000E-03    13.289        .98009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.2719        2.1526        .48728E-03   -1.5667    
  15  Prefactor      .0000        14.908        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        5.4082        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.3018        .40634        .36126E-02   -1.5247    
  18  Prefactor      .0000        28.194        .15131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .23512        7.8175        .96444E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.4321        .24243        .83343E-01   -.79704    
  21  Prefactor     .61490        .11379        .59590E-01   -1.0696    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23015e-09
Minuit parameter uncertainties:
  1  2.28147
  2  118.753
  3  1.83997e-07
  4  0.000530383
  5  3.77917e-06
  6  4.41799e-07
  7  0.797653
  8  32.6802
  9  3.60473e-07
  10  16.1173
  11  10.2207
  12  0.418583
  13  1.35036e-06
  14  2.15257
  15  2.29467e-06
  16  2.49122e-07
  17  0.406345
  18  9.1422e-07
  19  2.71149
  20  0.242628
  21  0.113833
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  7.654e+00  1.612e+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:  6.149e-01  1.138e-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.432e+00  2.426e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/446385/likelihoodResults_697852801_698112001_4FGL_J2222.8+1209_daily_bin1769.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) = 9362.01043848
delta logL = 0.100885276148

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9362.00757348
delta logL = 0.103750282242

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.6110       1.0000          .0000       .10000E+07
     2 'Index     '    1.7132       1.0000          .0000       10.000    
     3 'Normalizat'    1.4474       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61027       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9362.008     FROM MIGRAD    STATUS=FAILED        84 CALLS      259 TOTAL
                     EDM=   .65E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6148        16.846        .13654E-04   -.14992E-01
   2  Index         1.7131        1.1692        .11064E-01   -.64888E-03
   3  Normalizat    1.4474        .27714        .36747E-03    .53359E-03
   4  Prefactor     .61034        .13624        .26452E-03    .90748E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9362.008     FROM SIMPLEX   STATUS=UNCHANGED     68 CALLS      327 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6148        16.846        .17454E-04   -1.5649    
   2  Index         1.7131        1.1692        .96211E-03   -.71734    
   3  Normalizat    1.4474        .27714        .37922E-03   -.79268    
   4  Prefactor     .61034        .13624        .25942E-03   -1.0715    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9362.008     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      356 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6179        17.199        .27309E-05   -.11890E-02
   2  Index         1.7134        1.1933        .44256E-03    .14129E-04
   3  Normalizat    1.4474        .27738        .73494E-04   -.52408E-04
   4  Prefactor     .61034        .13637        .52904E-04   -.76157E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.61786
  Index      = 1.71339
  Normalizat = 1.44736
  Prefactor  = 0.610335
 **********
 **   18 **HESSE 
 **********

 FCN=   9362.008     FROM HESSE     STATUS=OK            23 CALLS      379 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6179        17.213        .54617E-06   -1.5649    
   2  Index         1.7134        1.1938        .17703E-04   -.71726    
   3  Normalizat    1.4474        .27740        .14699E-04   -.79268    
   4  Prefactor     .61034        .13638        .10581E-04   -1.0715    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.40911e-11
Minuit parameter uncertainties:
  1  17.2133
  2  1.2147
  3  0.277694
  4  0.136452
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/446385': 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): 0
logL (Free Index) = 9362.00757307
delta logL = 0.103750691307

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  8.618e+00  1.721e+01  0.000e+00  1.000e+06 ( 1.000e-13)
263        Index:  1.713e+00  1.215e+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:  6.103e-01  1.365e-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.447e+00  2.777e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.28
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/446385/cmap_HighResolution_697852801_698112001_4FGL_J2222.8+1209_daily_bin1769.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.18e-02', job_status='DONE', photon_flux_upper_limit='1.53e-07', time_completed='2023-02-15 01:50:30.873603', job_id='446385', GAL2='0.61', fit_tolerance='1e-08', EG2='1.45', EG='1.43', time_epoch_completed='1676454630.87', return_code2='0', ts='0.28', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='1.04e-01', ts2='0.49', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1769' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Feb 15 01:50:30 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 446385: <4FGL_J2222.8+1209_daily_bin1769> in cluster <slac> Done

Job <4FGL_J2222.8+1209_daily_bin1769> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Feb 15 01:35:13 2023
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Feb 15 01:35:14 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Feb 15 01:35:14 2023
Terminated at Wed Feb 15 01:50:31 2023
Results reported at Wed Feb 15 01:50:31 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin1769 335.71 12.1568 697852801 698112001 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 :                                   703.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             246.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   917 sec.
    Turnaround time :                            918 sec.

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

