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


Performing analysis on: 4FGL_J2222.8+1209_daily_bin1776
RA = 335.71, Dec = 12.1568
tmin = 699667201, tmax = 699926401
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='845100', job_status='RUN', time_executed='2023-03-08 01:22:09.280561', time_epoch_executed='1678267329.28' WHERE source_name='4FGL J2222.8+1209' and cadence='daily' and bin_id='1776'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/845100

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/845100/ft1_4FGL_J2222.8+1209_daily_bin1776.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/845100/ft2_4FGL_J2222.8+1209_daily_bin1776.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/845100/ft1_4FGL_J2222.8+1209_daily_bin1776.fits outfile=/scratch/kocevski/845100/ft1_filteredMKT_4FGL_J2222.8+1209_daily_bin1776.fits ra=335.71 dec=12.1568 rad=12.0 tmin=699667201.0 tmax=699926401.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.90
user 3.66
sys 0.23

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

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

Number of photons that the gtmktime cut: 833

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/845100/ft1_filtered_4FGL_J2222.8+1209_daily_bin1776.fits" evtable="EVENTS" scfile=/scratch/kocevski/845100/ft2_4FGL_J2222.8+1209_daily_bin1776.fits sctable="SC_DATA" outfile=/scratch/kocevski/845100/ltcube_699667201_699926401_4FGL_J2222.8+1209_daily_bin1776.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/845100/ft2_4FGL_J2222.8+1209_daily_bin1776.fits
.....................!
real 11.91
user 11.56
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/845100/ft1_filtered_4FGL_J2222.8+1209_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/845100/ft2_4FGL_J2222.8+1209_daily_bin1776.fits sctable="SC_DATA" expcube=/scratch/kocevski/845100/ltcube_699667201_699926401_4FGL_J2222.8+1209_daily_bin1776.fits outfile=/scratch/kocevski/845100/expmap_699667201_699926401_4FGL_J2222.8+1209_daily_bin1776.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/845100/ltcube_699667201_699926401_4FGL_J2222.8+1209_daily_bin1776.fits
.....................!
real 192.39
user 186.72
sys 5.34

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/845100/ft1_filtered_4FGL_J2222.8+1209_daily_bin1776.fits scfile=/scratch/kocevski/845100/ft2_4FGL_J2222.8+1209_daily_bin1776.fits outfile=/scratch/kocevski/845100/cmap_699667201_699926401_4FGL_J2222.8+1209_daily_bin1776.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.57
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/845100/ft1_filtered_4FGL_J2222.8+1209_daily_bin1776.fits scfile=/scratch/kocevski/845100/ft2_4FGL_J2222.8+1209_daily_bin1776.fits outfile=/scratch/kocevski/845100/cmap_HighResolution_699667201_699926401_4FGL_J2222.8+1209_daily_bin1776.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=335.71 yref=12.1568 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5289       1.0000          .0000       .10000E+07
     2 'Prefactor '    10.691       1.0000          .0000       .10000E+07
     3 'norm      '    1.4830       1.0000          .0000       .10000E+07
     4 'norm      '    .53613E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    3.1106       1.0000          .0000       .10000E+07
     6 'Prefactor '    73.198       1.0000          .0000       .10000E+07
     7 'norm      '    2.0793       1.0000          .0000       .10000E+07
     8 'Prefactor '    .70680       1.0000          .0000       .10000E+07
     9 'norm      '    3.4621       1.0000          .0000       .10000E+07
    10 'Prefactor '    9.0670       1.0000          .0000       .10000E+07
    11 'Prefactor '    13.191       1.0000          .0000       .10000E+07
    12 'Prefactor '    2.1979       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.3113       1.0000         .10000E-03   10000.    
    14 'norm      '    .90150E-07   1.0000          .0000       .10000E+07
    15 'Prefactor '    19.314       1.0000          .0000       .10000E+07
    16 'Prefactor '    .14468E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    .48377       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .81512E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    2.8332       1.0000          .0000       .10000E+07
    20 'Normalizat'    1.4041       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .80857       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=   9094.244     FROM MIGRAD    STATUS=CONVERGED    123 CALLS     1612 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5323        2.0866        .26643E-05   -.87850E-05
   2  Prefactor     12.561        58.310        .74676E-08    .38433E-02
   3  norm          1.4833        1.9069       -.31996E-05   -.15169E-03
   4  norm           .0000        6.4888       -.23696E-05** at limit **
   5  Prefactor     3.1472        1.8557       -.10858E-06   -.52840E-02
   6  Prefactor     72.803        11.562       -.16327E-07    .67908E-01
   7  norm          2.0815        1.1279        .64243E-06   -.45336E-03
   8  Prefactor     .83163        4.6873        .22329E-05   -.30209E-01
   9  norm          3.4898        5.6616       -.75792E-06   -.25507E-03
  10  Prefactor     9.1009        1.5614       -.90205E-07    .16111E-01
  11  Prefactor     13.453        13.490        .17989E-05   -.75776E-03
  12  Prefactor     2.1983        .33608        .11931E-05   -.81165E-05
  13  Prefactor     7.3322        6.2964       -.43547E-05   -.88412E-05
  14  norm           .0000        .65086        .94716E-07** at limit **
  15  Prefactor     19.986        20.444        .25295E-05    .27881E-01
  16  Prefactor      .0000        4.1273        .19019E-05** at limit **
  17  Prefactor     .48339        .17093       -.12360E-05   -.42791E-03
  18  Prefactor     .61062E-09    55.784        .22673E-05** at limit **
  19  Prefactor     2.8962        7.9905        .32210E-05   -.28653E-04
  20  Normalizat    1.4014        .28138       -.19022E-04   -.35212E-04
  21  Prefactor     .80887        .13735        .18658E-04   -.47651E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.53231
  Prefactor  = 12.5611
  norm       = 1.48333
  norm       = 0
  Prefactor  = 3.1472
  Prefactor  = 72.8027
  norm       = 2.08152
  Prefactor  = 0.831625
  norm       = 3.48982
  Prefactor  = 9.10089
  Prefactor  = 13.4532
  Prefactor  = 2.19833
  Prefactor  = 7.33224
  norm       = 0
  Prefactor  = 19.9856
  Prefactor  = 0
  Prefactor  = 0.483395
  Prefactor  = 6.10623e-10
  Prefactor  = 2.89617
  Normalizat = 1.40136
  Prefactor  = 0.808867
 **********
 **   18 **HESSE 
 **********

 FCN=   9094.244     FROM HESSE     STATUS=OK           365 CALLS     1977 TOTAL
                     EDM=   .68E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5323        2.1779        .86301E-03   -1.5683    
   2  Prefactor     12.561        59.228        .30617E-03   -1.5637    
   3  norm          1.4833        1.9312        .88078E-03   -1.5684    
   4  norm           .0000        6.4635        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.1472        71.158        .57467E-03   -1.5672    
   6  Prefactor     72.803        57.600        .11689E-03   -1.5537    
   7  norm          2.0815        1.1395        .71590E-03   -1.5679    
   8  Prefactor     .83163        42.891        .60158E-03   -1.5690    
   9  norm          3.4898        5.6724        .54326E-03   -1.5671    
  10  Prefactor     9.1009        16.418        .33261E-03   -1.5648    
  11  Prefactor     13.453        13.487        .27553E-03   -1.5635    
  12  Prefactor     2.1983        .34600        .45680E-02   -1.5411    
  13  Prefactor     7.3322        6.2990        .37084E-02   -1.5166    
  14  norm           .0000        .64932        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.986        21.589        .22762E-03   -1.5619    
  16  Prefactor      .0000        4.1333        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .48339        .17357        .49896E-02   -1.5569    
  18  Prefactor     .61062E-09    55.735        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.8962        8.0066        .60390E-03   -1.5674    
  20  Normalizat    1.4014        .23663        .76690E-01   -.80589    
  21  Prefactor     .80887        .11562        .43829E-01   -.99402    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.81601e-07
Minuit parameter uncertainties:
  1  2.17787
  2  54.5528
  3  1.93115
  4  3.67165e-06
  5  29.9302
  6  57.6003
  7  1.13946
  8  11.9449
  9  5.67243
  10  16.418
  11  13.4872
  12  0.345997
  13  6.29952
  14  8.80767e-07
  15  21.5894
  16  7.31884e-06
  17  0.173572
  18  0.000365481
  19  8.00658
  20  0.23681
  21  0.115651
Done.

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

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  9.101e+00  1.642e+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.089e-01  1.157e-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.401e+00  2.368e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/845100/likelihoodResults_699667201_699926401_4FGL_J2222.8+1209_daily_bin1776.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) = 9093.54962216
delta logL = 0.694732518275

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9093.51639576
delta logL = 0.727958918507

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8917       1.0000          .0000       .10000E+07
     2 'Index     '    3.4542       1.0000          .0000       10.000    
     3 'Normalizat'    1.3244       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83185       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9093.516     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      287 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8914        116.15        .14169E-04   -.38497E-02
   2  Index         3.4543        6.6935        .57928E-02   -.11905E-03
   3  Normalizat    1.3244        .29568        .34694E-03   -.23239E-03
   4  Prefactor     .83185        .15069        .21709E-03   -.31746E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.89138
  Index      = 3.45425
  Normalizat = 1.32441
  Prefactor  = 0.831853
 **********
 **   18 **HESSE 
 **********

 FCN=   9093.516     FROM HESSE     STATUS=OK            25 CALLS      312 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8914        7.7648        .56677E-06   -1.5669    
   2  Index         3.4543        .94012        .23171E-03   -.31430    
   3  Normalizat    1.3244        .27685        .13878E-04   -.82841    
   4  Prefactor     .83185        .13795        .43418E-04   -.98565    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.8113e-10
Minuit parameter uncertainties:
  1  7.7648
  2  0.946354
  3  0.277163
  4  0.138004
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/845100': 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) = 9093.51639575
delta logL = 0.727958934849

Extracting fit parameters...

4FGL J2222.8+1209
   Spectrum: PowerLaw
262    Prefactor:  3.891e+00  7.765e+00  0.000e+00  1.000e+06 ( 1.000e-13)
263        Index:  3.454e+00  9.464e-01  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:  8.319e-01  1.380e-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.324e+00  2.772e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.93
Ra Dec: 335.710 12.157
Photon Index (Free Index): 3.45 +/- 0.95
Photon Flux (Free Index): 1.08e-07 +/- 9.15e-08
Energy Flux (Free Index): 1.83e-05 +/- 1.50e-05

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/845100/cmap_HighResolution_699667201_699926401_4FGL_J2222.8+1209_daily_bin1776.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-02', comment='SUCCESS', energy_flux2='1.83e-05', dlogl='7.28e-01', photon_flux2='1.08e-07', job_status='DONE', time_completed='2023-03-08 01:33:06.763286', photon_index_error2='0.95', photon_index2='3.45', ts='0.38', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='1.49e-07', energy_flux_error2='1.50e-05', EG='1.40', time_epoch_completed='1678267986.76', return_code='0', job_id='845100', GAL2='0.83', EG2='1.32', return_code2='0', photon_flux_error2='9.15e-08', ts2='1.93', photon_index='2.41' WHERE bin_id='1776' AND source_name='4FGL J2222.8+1209' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Mar  8 01:33:06 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 845100: <4FGL_J2222.8+1209_daily_bin1776> in cluster <slac> Done

Job <4FGL_J2222.8+1209_daily_bin1776> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Mar  8 01:20:26 2023
Job was executed on host(s) <bullet0103>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Mar  8 01:20:39 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Mar  8 01:20:39 2023
Terminated at Wed Mar  8 01:33:07 2023
Results reported at Wed Mar  8 01:33:07 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2222.8+1209_daily_bin1776 335.71 12.1568 699667201 699926401 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 :                                   659.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            761 sec.

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

