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


Performing analysis on: 4FGL_J2222.8+1209_daily_bin1738
RA = 335.71, Dec = 12.1568
tmin = 689817601, tmax = 690076801
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='411928', job_status='RUN', time_executed='2022-11-14 00:53:50.997041', time_epoch_executed='1668416031.0' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='1738'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/411928

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/411928/ft1_4FGL_J2222.8+1209_daily_bin1738.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/411928/ft2_4FGL_J2222.8+1209_daily_bin1738.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/411928/ft1_4FGL_J2222.8+1209_daily_bin1738.fits outfile=/scratch/kocevski/411928/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin1738.fits ra=335.71 dec=12.1568 rad=12.0 tmin=689817601.0 tmax=690076801.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.26
user 3.97
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/411928/ft2_4FGL_J2222.8+1209_daily_bin1738.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/411928/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin1738.fits evtable="EVENTS" outfile="/scratch/kocevski/411928/ft1_filtered_4FGL_J2222.8+1209_daily_bin1738.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.52
user 0.35
sys 0.16

Number of photons that the gtmktime cut: 844

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/411928/ft1_filtered_4FGL_J2222.8+1209_daily_bin1738.fits evtable="EVENTS" scfile=/scratch/kocevski/411928/ft2_4FGL_J2222.8+1209_daily_bin1738.fits sctable="SC_DATA" expcube=/scratch/kocevski/411928/ltcube_689817601_690076801_4FGL_J2222.8+1209_daily_bin1738.fits outfile=/scratch/kocevski/411928/expmap_689817601_690076801_4FGL_J2222.8+1209_daily_bin1738.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/411928/ltcube_689817601_690076801_4FGL_J2222.8+1209_daily_bin1738.fits
.....................!
real 192.36
user 186.77
sys 5.01

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/411928/ft1_filtered_4FGL_J2222.8+1209_daily_bin1738.fits scfile=/scratch/kocevski/411928/ft2_4FGL_J2222.8+1209_daily_bin1738.fits outfile=/scratch/kocevski/411928/cmap_689817601_690076801_4FGL_J2222.8+1209_daily_bin1738.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.58
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/411928/ft1_filtered_4FGL_J2222.8+1209_daily_bin1738.fits scfile=/scratch/kocevski/411928/ft2_4FGL_J2222.8+1209_daily_bin1738.fits outfile=/scratch/kocevski/411928/cmap_HighResolution_689817601_690076801_4FGL_J2222.8+1209_daily_bin1738.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.57
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0478       1.0000          .0000       .10000E+07
     2 'Prefactor '    56.088       1.0000          .0000       .10000E+07
     3 'norm      '    1.0886       1.0000          .0000       .10000E+07
     4 'norm      '    .75083E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    40.378       1.0000          .0000       .10000E+07
     6 'Prefactor '    2.3341       1.0000          .0000       .10000E+07
     7 'norm      '    .48955E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    .47547E-03   1.0000          .0000       .10000E+07
     9 'norm      '    .81657E-07   1.0000          .0000       .10000E+07
    10 'Prefactor '    1.6212       1.0000          .0000       .10000E+07
    11 'Prefactor '    1.3599       1.0000          .0000       .10000E+07
    12 'Prefactor '    .93886       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .19526E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .47983       1.0000          .0000       .10000E+07
    15 'Prefactor '    .78075E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    8.3893       1.0000          .0000       .10000E+07
    17 'Prefactor '    4.0462       1.0000         .10000E-03   10000.    
    18 'Prefactor '    45.532       1.0000          .0000       .10000E+07
    19 'Prefactor '    .88556E-02   1.0000          .0000       .10000E+07
    20 'Normalizat'    1.1925       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .71036       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=   8979.048     FROM MIGRAD    STATUS=CONVERGED    154 CALLS     1674 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0864        2.9146       -.12721E-07    .36388E-03
   2  Prefactor     57.140        54.745        .88327E-07   -.42852E-01
   3  norm          1.0666        2.0274        .44425E-07    .76656E-03
   4  norm          .55511E-10    27.450        .25158E-06** at limit **
   5  Prefactor     39.694        24.654        .88051E-07   -.10424    
   6  Prefactor     2.5411        8.2181        .49338E-08    .10972E-01
   7  norm           .0000        1.0110       -.30952E-07** at limit **
   8  Prefactor      .0000        8.1533       -.11949E-06** at limit **
   9  norm           .0000        1.1313       -.34895E-07** at limit **
  10  Prefactor     1.4834        16.222       -.73283E-07   -.27880E-04
  11  Prefactor     1.1536        17.788        .30715E-06    .26615E-03
  12  Prefactor     .93928        .24506        .67047E-07    .63680E-03
  13  Prefactor     .10000E-03    2.8035        .29784E-06** at limit **
  14  norm          .47880        1.4169        .97021E-09    .28589E-04
  15  Prefactor      .0000        14.240        .35400E-07** at limit **
  16  Prefactor     8.4242        11.743        .14907E-08   -.18346E-03
  17  Prefactor     4.0455        .33782       -.17429E-07   -.11335E-03
  18  Prefactor     44.954        33.011        .15861E-06    .80854E-01
  19  Prefactor     .49960E-09    32.906        .60517E-06** at limit **
  20  Normalizat    1.1937        .26120        .19306E-05    .49218E-04
  21  Prefactor     .71015        .12704       -.10100E-05    .43675E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.08636
  Prefactor  = 57.1401
  norm       = 1.06656
  norm       = 5.55112e-11
  Prefactor  = 39.6939
  Prefactor  = 2.54107
  norm       = 0
  Prefactor  = 0
  norm       = 0
  Prefactor  = 1.48344
  Prefactor  = 1.15365
  Prefactor  = 0.939278
  Prefactor  = 0.0001
  norm       = 0.4788
  Prefactor  = 0
  Prefactor  = 8.42422
  Prefactor  = 4.04555
  Prefactor  = 44.9545
  Prefactor  = 4.996e-10
  Normalizat = 1.19374
  Prefactor  = 0.710151
 **********
 **   18 **HESSE 
 **********

 FCN=   8979.048     FROM HESSE     STATUS=OK           371 CALLS     2045 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0864        3.2292        .12123E-02   -1.5687    
   2  Prefactor     57.140        60.297        .13353E-03   -1.5557    
   3  norm          1.0666        2.0852        .11476E-02   -1.5687    
   4  norm          .55511E-10    9.9036        .10719E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     39.694        44.131        .15739E-03   -1.5582    
   6  Prefactor     2.5411        165.87        .67092E-03   -1.5676    
   7  norm           .0000        .97807        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        8.1608        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        1.1274        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.4834        16.234        .83086E-03   -1.5684    
  11  Prefactor     1.1536        17.529        .93627E-03   -1.5686    
  12  Prefactor     .93928        .24595        .50501E-02   -1.5514    
  13  Prefactor     .10000E-03    2.7973        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .47880        1.4664        .80765E-03   -1.5694    
  15  Prefactor      .0000        14.284        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.4242        11.908        .34587E-03   -1.5650    
  17  Prefactor     4.0455        .33667        .34222E-02   -1.5306    
  18  Prefactor     44.954        37.566        .14821E-03   -1.5574    
  19  Prefactor     .49960E-09    32.104        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1937        .21896        .77387E-01   -.86797    
  21  Prefactor     .71015        .10652        .42539E-01   -1.0313    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42326e-06
Minuit parameter uncertainties:
  1  3.22918
  2  60.2977
  3  2.08522
  4  3.99656e-05
  5  44.1309
  6  41.0617
  7  8.86658e-07
  8  1.42747e-05
  9  1.27237e-06
  10  9.81489
  11  8.99391
  12  0.245947
  13  2.7634e-06
  14  1.46639
  15  3.54554e-05
  16  11.9081
  17  0.33667
  18  37.566
  19  0.000249008
  20  0.219131
  21  0.106549
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  1.483e+00  9.815e+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

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  7.102e-01  1.065e-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.194e+00  2.191e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/411928/likelihoodResults_689817601_690076801_4FGL_J2222.8+1209_daily_bin1738.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) = 8978.99644588
delta logL = 0.0517211607184

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8978.9911577
delta logL = 0.0570093468032

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7163       1.0000          .0000       .10000E+07
     2 'Index     '    1.8187       1.0000          .0000       10.000    
     3 'Normalizat'    1.1978       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70761       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=   8978.991     FROM MIGRAD    STATUS=FAILED        87 CALLS      283 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7138        11.219        .20943E-04    .91228E-02
   2  Index         1.8189        1.3405        .13389E-01    .36760E-03
   3  Normalizat    1.1979        .24669        .34201E-03   -.49824E-03
   4  Prefactor     .70760        .12562        .21898E-03   -.99528E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8978.991     FROM SIMPLEX   STATUS=UNCHANGED     73 CALLS      356 TOTAL
                     EDM=   .89E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7138        11.219        .24607E-04   -1.5669    
   2  Index         1.8189        1.3405        .12904E-02   -.68959    
   3  Normalizat    1.1979        .24669        .25946E-03   -.86669    
   4  Prefactor     .70760        .12562        .17314E-03   -1.0323    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8978.991     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      384 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7131        11.258        .83773E-06    .13463E-02
   2  Index         1.8187        1.3455        .53555E-03    .10189E-04
   3  Normalizat    1.1979        .24689        .68402E-04    .95734E-05
   4  Prefactor     .70760        .12572        .43797E-04    .10072E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.71313
  Index      = 1.81872
  Normalizat = 1.19785
  Prefactor  = 0.707602
 **********
 **   18 **HESSE 
 **********

 FCN=   8978.991     FROM HESSE     STATUS=OK            23 CALLS      407 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7131        11.261        .37359E-06   -1.5669    
   2  Index         1.8187        1.3458        .21422E-04   -.68964    
   3  Normalizat    1.1979        .24693        .13680E-04   -.86669    
   4  Prefactor     .70760        .12574        .87594E-05   -1.0323    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.01206e-11
Minuit parameter uncertainties:
  1  11.2606
  2  1.37471
  3  0.247167
  4  0.125791
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/411928': 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) = 8978.99115758
delta logL = 0.0570094631003

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  3.713e+00  1.126e+01  0.000e+00  1.000e+06 ( 1.000e-13)
263        Index:  1.819e+00  1.375e+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:  7.076e-01  1.258e-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.198e+00  2.472e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/411928/cmap_HighResolution_689817601_690076801_4FGL_J2222.8+1209_daily_bin1738.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.96e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2022-11-14 01:05:23.383419', job_id='411928', GAL2='0.71', fit_tolerance='1e-08', EG2='1.20', EG='1.19', time_epoch_completed='1668416723.38', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='5.70e-02', ts2='0.14', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1738' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Nov 14 01:05:23 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 411928: <4FGL_J2222.8+1209_daily_bin1738> in cluster <slac> Done

Job <4FGL_J2222.8+1209_daily_bin1738> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Nov 14 00:50:13 2022
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Nov 14 00:50:27 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Nov 14 00:50:27 2022
Terminated at Mon Nov 14 01:05:24 2022
Results reported at Mon Nov 14 01:05:24 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin1738 335.71 12.1568 689817601 690076801 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 :                                   693.50 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             282.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            911 sec.

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

