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 48 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 = 7436
number of fields = 31
RA_SUN column already exists. File will not be modified.DDone.


Performing analysis on: 4FGL_J0228.0-3026_daily_bin1727
RA = 37.014, Dec = -30.447
tmin = 686966401, tmax = 687225601
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='204959', job_status='RUN', time_executed='2022-10-12 00:07:10.965412', time_epoch_executed='1665558430.97' WHERE source_name='4FGL J0228.0-3026' and cadence='daily' and bin_id='1727'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/204959

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/204959/ft1_4FGL_J0228.0-3026_daily_bin1727.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/204959/ft2_4FGL_J0228.0-3026_daily_bin1727.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/204959/ft1_4FGL_J0228.0-3026_daily_bin1727.fits outfile=/scratch/kocevski/204959/ft1_filteredMKT_4FGL_J0228.0-3026_daily_bin1727.fits ra=37.014 dec=-30.447 rad=12.0 tmin=686966401.0 tmax=687225601.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.30
user 2.71
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/204959/ft2_4FGL_J0228.0-3026_daily_bin1727.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/204959/ft2_4FGL_J0228.0-3026_daily_bin1727.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/204959/ft1_filteredMKT_4FGL_J0228.0-3026_daily_bin1727.fits evtable="EVENTS" outfile="/scratch/kocevski/204959/ft1_filtered_4FGL_J0228.0-3026_daily_bin1727.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.97
user 0.33
sys 0.17

Number of photons that the gtmktime cut: 416

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/204959/ft1_filtered_4FGL_J0228.0-3026_daily_bin1727.fits" evtable="EVENTS" scfile=/scratch/kocevski/204959/ft2_4FGL_J0228.0-3026_daily_bin1727.fits sctable="SC_DATA" outfile=/scratch/kocevski/204959/ltcube_686966401_687225601_4FGL_J0228.0-3026_daily_bin1727.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/204959/ft2_4FGL_J0228.0-3026_daily_bin1727.fits
.....................!
real 13.05
user 12.28
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/204959/ft1_filtered_4FGL_J0228.0-3026_daily_bin1727.fits evtable="EVENTS" scfile=/scratch/kocevski/204959/ft2_4FGL_J0228.0-3026_daily_bin1727.fits sctable="SC_DATA" expcube=/scratch/kocevski/204959/ltcube_686966401_687225601_4FGL_J0228.0-3026_daily_bin1727.fits outfile=/scratch/kocevski/204959/expmap_686966401_687225601_4FGL_J0228.0-3026_daily_bin1727.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/204959/ltcube_686966401_687225601_4FGL_J0228.0-3026_daily_bin1727.fits
.....................!
real 190.34
user 185.43
sys 4.00

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
Extended source Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/FornaxA.fits is the correct path to the extended template.
Added 170 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0228.0-3026 @ 37.014 -30.447

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/204959/ft1_filtered_4FGL_J0228.0-3026_daily_bin1727.fits scfile=/scratch/kocevski/204959/ft2_4FGL_J0228.0-3026_daily_bin1727.fits outfile=/scratch/kocevski/204959/cmap_686966401_687225601_4FGL_J0228.0-3026_daily_bin1727.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=37.014 yref=-30.447 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 1.60
user 0.38
sys 0.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/204959/ft1_filtered_4FGL_J0228.0-3026_daily_bin1727.fits scfile=/scratch/kocevski/204959/ft2_4FGL_J0228.0-3026_daily_bin1727.fits outfile=/scratch/kocevski/204959/cmap_HighResolution_686966401_687225601_4FGL_J0228.0-3026_daily_bin1727.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=37.014 yref=-30.447 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 1.05
user 0.39
sys 0.20

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/204959/ft1_filtered_4FGL_J0228.0-3026_daily_bin1727.fits evtable="EVENTS" scfile=/scratch/kocevski/204959/ft2_4FGL_J0228.0-3026_daily_bin1727.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/204959/Model_4FGL_J0228.0-3026_daily_bin1727.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/204959/ft1_filtered_4FGL_J0228.0-3026_daily_bin1727.fits.....................!
real 107.76
user 93.72
sys 1.49

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/204959/ft1_filtered_4FGL_J0228.0-3026_daily_bin1727.fits', '/scratch/kocevski/204959/ft2_4FGL_J0228.0-3026_daily_bin1727.fits', expMap='/scratch/kocevski/204959/expmap_686966401_687225601_4FGL_J0228.0-3026_daily_bin1727.fits', expCube='/scratch/kocevski/204959/ltcube_686966401_687225601_4FGL_J0228.0-3026_daily_bin1727.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/204959/Model_4FGL_J0228.0-3026_daily_bin1727.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0228.0-3026'

4FGL J0228.0-3026
   Spectrum: PowerLaw
270    Prefactor:  4.208e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
271        Index:  2.197e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
272        Scale:  1.951e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/204959/ft1_filtered_4FGL_J0228.0-3026_daily_bin1727.fits
Spacecraft file(s): /scratch/kocevski/204959/ft2_4FGL_J0228.0-3026_daily_bin1727.fits
Exposure map: /scratch/kocevski/204959/expmap_686966401_687225601_4FGL_J0228.0-3026_daily_bin1727.fits
Exposure cube: /scratch/kocevski/204959/ltcube_686966401_687225601_4FGL_J0228.0-3026_daily_bin1727.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/204959/Model_4FGL_J0228.0-3026_daily_bin1727.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) = 4804.25749407

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.941       1.0000          .0000       .10000E+07
     2 'norm      '    9.6595       1.0000          .0000       .10000E+07
     3 'Prefactor '    15.229       1.0000          .0000       .10000E+07
     4 'Prefactor '    .12795E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    13.555       1.0000          .0000       .10000E+07
     6 'Prefactor '    .29652E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .67629E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .16056E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    82.100       1.0000          .0000       .10000E+07
    10 'norm      '    .28056       1.0000          .0000       .10000E+07
    11 'Prefactor '    .12929E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    49.850       1.0000          .0000       .10000E+07
    13 'Prefactor '    .22665E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .16980E-04   1.0000          .0000       .10000E+07
    15 'norm      '    .30662E-02   1.0000          .0000       .10000E+07
    16 'norm      '    10.375       1.0000          .0000       .10000E+07
    17 'Normalizat'    .69239       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1894       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4804.170     FROM MIGRAD    STATUS=CONVERGED    160 CALLS     1376 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.977        6.0203        .15808E-07    .21136E-02
   2  norm          9.5697        5.0241       -.57336E-07   -.15337E-02
   3  Prefactor     21.115        67.826        .44282E-07   -.31496E-01
   4  Prefactor     .36637E-08    9.1969        .20752E-06** at limit **
   5  Prefactor     12.771        10.172        .59806E-07    .30389E-01
   6  Prefactor     .11102E-09    2.7334       -.23673E-06** at limit **
   7  Prefactor     .32762E-05    18.426       -.37148E-06** at limit **
   8  Prefactor     .33613E-05    18.579       -.32903E-06** at limit **
   9  Prefactor     84.568        29.233       -.32930E-06    .31722    
  10  norm          .28796        3.6092       -.19540E-06   -.93177E-03
  11  Prefactor     .12768E-08    6.0695        .69561E-07** at limit **
  12  Prefactor     52.870        41.846       -.11153E-06   -.89232E-01
  13  Prefactor     .11034E-04    17.598        .72631E-06** at limit **
  14  Prefactor      .0000        1.2596        .65703E-08** at limit **
  15  norm          .16653E-09    4.8836        .16287E-06** at limit **
  16  norm          10.362        4.3908        .77845E-08    .13887E-02
  17  Normalizat    .68879        .20524       -.26983E-05    .14539E-03
  18  Prefactor     1.1903        .22745        .60849E-05    .28050E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.9767
  norm       = 9.5697
  Prefactor  = 21.1145
  Prefactor  = 3.66374e-09
  Prefactor  = 12.7711
  Prefactor  = 1.11022e-10
  Prefactor  = 3.27616e-06
  Prefactor  = 3.36126e-06
  Prefactor  = 84.5677
  norm       = 0.28796
  Prefactor  = 1.27676e-09
  Prefactor  = 52.8703
  Prefactor  = 1.10336e-05
  Prefactor  = 0
  norm       = 1.66533e-10
  norm       = 10.3622
  Normalizat = 0.688786
  Prefactor  = 1.19026
 **********
 **   18 **HESSE 
 **********

 FCN=   4804.170     FROM HESSE     STATUS=OK           284 CALLS     1660 TOTAL
                     EDM=   .49E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.977        6.0276        .25885E-03   -1.5631    
   2  norm          9.5697        5.0185        .32219E-03   -1.5646    
   3  Prefactor     21.115        70.000        .25639E-03   -1.5616    
   4  Prefactor     .36637E-08    9.1933        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.771        22.137        .27180E-03   -1.5636    
   6  Prefactor     .11102E-09    2.7310        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .32762E-05    19.846        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .33613E-05    20.906        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     84.568        53.165        .11037E-03   -1.5524    
  10  norm          .28796        1.9653        .30607E-02   -1.5697    
  11  Prefactor     .12768E-08    6.0776        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     52.870        43.539        .14164E-03   -1.5563    
  13  Prefactor     .11034E-04    20.191        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        1.2564        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .16653E-09    4.6725        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          10.362        4.4105        .31083E-03   -1.5644    
  17  Normalizat    .68879        .17907        .42189E-01   -1.0434    
  18  Prefactor     1.1903        .19467        .52500E-01   -.86632    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.92044e-06
Minuit parameter uncertainties:
  1  6.02758
  2  5.0185
  3  70.0028
  4  0.000368325
  5  22.137
  6  3.11163e-05
  7  0.0161271
  8  0.0167657
  9  53.1654
  10  1.50456
  11  0.000177489
  12  43.5391
  13  0.0298519
  14  7.84753e-07
  15  5.88914e-05
  16  4.41046
  17  0.179225
  18  0.194787
Done.

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

Extracting fit parameters...

4FGL J0228.0-3026
   Spectrum: PowerLaw
270    Prefactor:  8.457e+01  5.317e+01  0.000e+00  1.000e+06 ( 1.000e-14)
271        Index:  2.197e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
272        Scale:  1.951e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
539    Prefactor:  1.190e+00  1.948e-01  0.000e+00  1.000e+01 ( 1.000e+00)
540        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
541        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  6.888e-01  1.792e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.76
Ra Dec: 37.014 -30.447
Photon Index (Fixed Index): 2.20 +/- 0.00
Photon Flux (Fixed Index): 4.83e-08 +/- 3.04e-08
Energy Flux (Fixed Index): 2.18e-05 +/- 1.37e-05

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) = 4803.73309934
delta logL = 0.437213964547

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4803.73012068
delta logL = 0.440192628093

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.500       1.0000          .0000       .10000E+07
     2 'Index     '    2.8489       1.0000          .0000       10.000    
     3 'Normalizat'    .63982       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2237       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5420E+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=   4803.730     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      308 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.502        63.263        .68109E-05    .25705E-03
   2  Index         2.8491        .94319        .34361E-02    .39730E-04
   3  Normalizat    .63934        .21128        .26943E-03   -.74264E-05
   4  Prefactor     1.2241        .23308        .22922E-03    .40055E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.5017
  Index      = 2.84909
  Normalizat = 0.639336
  Prefactor  = 1.22412
 **********
 **   18 **HESSE 
 **********

 FCN=   4803.730     FROM HESSE     STATUS=OK            25 CALLS      333 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.502        47.310        .27244E-06   -1.5590    
   2  Index         2.8491        .70666        .13744E-03   -.44470    
   3  Normalizat    .63934        .20727        .10777E-04   -1.0634    
   4  Prefactor     1.2241        .23099        .45844E-04   -.85592    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44507e-11
Minuit parameter uncertainties:
  1  47.3108
  2  0.709581
  3  0.207524
  4  0.231183
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/204959': 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) = 4803.7301177
delta logL = 0.440195603392

Extracting fit parameters...

4FGL J0228.0-3026
   Spectrum: PowerLaw
270    Prefactor:  3.450e+01  4.731e+01  0.000e+00  1.000e+06 ( 1.000e-14)
271        Index:  2.849e+00  7.096e-01  0.000e+00  1.000e+01 (-1.000e+00)
272        Scale:  1.951e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
539    Prefactor:  1.224e+00  2.312e-01  0.000e+00  1.000e+01 ( 1.000e+00)
540        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
541        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  6.393e-01  2.075e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.70
Ra Dec: 37.014 -30.447
Photon Index (Free Index): 2.85 +/- 0.71
Photon Flux (Free Index): 8.86e-08 +/- 6.24e-08
Energy Flux (Free Index): 1.92e-05 +/- 1.03e-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/204959/cmap_HighResolution_686966401_687225601_4FGL_J0228.0-3026_daily_bin1727.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.83e-08', energy_flux2='1.92e-05', photon_flux_error='3.04e-08', dlogl='4.40e-01', energy_flux='2.18e-05', photon_flux2='8.86e-08', job_status='DONE', time_completed='2022-10-12 00:15:55.885297', photon_index_error2='0.71', photon_index2='2.85', ts='6.76', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', energy_flux_error2='1.03e-05', EG='0.69', time_epoch_completed='1665558955.89', return_code='0', job_id='204959', GAL2='1.22', EG2='0.64', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='6.24e-08', ts2='7.70', photon_index='2.20' WHERE bin_id='1727' AND source_name='4FGL J0228.0-3026' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Oct 12 00:15:55 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 204960: <4FGL_J0228.0-3026_daily_bin1727> in cluster <slac> Done

Job <4FGL_J0228.0-3026_daily_bin1727> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Oct 12 00:05:43 2022
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Oct 12 00:05:48 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Oct 12 00:05:48 2022
Terminated at Wed Oct 12 00:15:52 2022
Results reported at Wed Oct 12 00:15:52 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0228.0-3026_daily_bin1727 37.014 -30.447 686966401 687225601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0228.0-3026 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   497.37 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             337.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   604 sec.
    Turnaround time :                            609 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 204959: <4FGL_J0228.0-3026_daily_bin1727> in cluster <slac> Done

Job <4FGL_J0228.0-3026_daily_bin1727> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Oct 12 00:05:43 2022
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Oct 12 00:05:48 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Oct 12 00:05:48 2022
Terminated at Wed Oct 12 00:15:56 2022
Results reported at Wed Oct 12 00:15:56 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0228.0-3026_daily_bin1727 37.014 -30.447 686966401 687225601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0228.0-3026 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   503.49 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             377.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   608 sec.
    Turnaround time :                            613 sec.

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

