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


Performing analysis on: 4FGL_J0228.0-3026_daily_bin1751
RA = 37.014, Dec = -30.447
tmin = 693187201, tmax = 693446401
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='67328', job_status='RUN', time_executed='2022-12-23 00:06:55.182191', time_epoch_executed='1671782815.18' WHERE source_name='4FGL J0228.0-3026' and cadence='daily' and bin_id='1751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/67328

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/67328/ft1_4FGL_J0228.0-3026_daily_bin1751.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/67328/ft2_4FGL_J0228.0-3026_daily_bin1751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/67328/ft1_4FGL_J0228.0-3026_daily_bin1751.fits outfile=/scratch/kocevski/67328/ft1_filteredMKT_4FGL_J0228.0-3026_daily_bin1751.fits ra=37.014 dec=-30.447 rad=12.0 tmin=693187201.0 tmax=693446401.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.54
user 3.43
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/67328/ft2_4FGL_J0228.0-3026_daily_bin1751.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/67328/ft1_filteredMKT_4FGL_J0228.0-3026_daily_bin1751.fits evtable="EVENTS" outfile="/scratch/kocevski/67328/ft1_filtered_4FGL_J0228.0-3026_daily_bin1751.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.71
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 551

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/67328/ft1_filtered_4FGL_J0228.0-3026_daily_bin1751.fits" evtable="EVENTS" scfile=/scratch/kocevski/67328/ft2_4FGL_J0228.0-3026_daily_bin1751.fits sctable="SC_DATA" outfile=/scratch/kocevski/67328/ltcube_693187201_693446401_4FGL_J0228.0-3026_daily_bin1751.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/67328/ft2_4FGL_J0228.0-3026_daily_bin1751.fits
.....................!
real 15.93
user 15.13
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/67328/ft1_filtered_4FGL_J0228.0-3026_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/67328/ft2_4FGL_J0228.0-3026_daily_bin1751.fits sctable="SC_DATA" expcube=/scratch/kocevski/67328/ltcube_693187201_693446401_4FGL_J0228.0-3026_daily_bin1751.fits outfile=/scratch/kocevski/67328/expmap_693187201_693446401_4FGL_J0228.0-3026_daily_bin1751.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/67328/ltcube_693187201_693446401_4FGL_J0228.0-3026_daily_bin1751.fits
.....................!
real 193.52
user 185.79
sys 4.82

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/67328/ft1_filtered_4FGL_J0228.0-3026_daily_bin1751.fits scfile=/scratch/kocevski/67328/ft2_4FGL_J0228.0-3026_daily_bin1751.fits outfile=/scratch/kocevski/67328/cmap_693187201_693446401_4FGL_J0228.0-3026_daily_bin1751.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 0.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/67328/ft1_filtered_4FGL_J0228.0-3026_daily_bin1751.fits scfile=/scratch/kocevski/67328/ft2_4FGL_J0228.0-3026_daily_bin1751.fits outfile=/scratch/kocevski/67328/cmap_HighResolution_693187201_693446401_4FGL_J0228.0-3026_daily_bin1751.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 0.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/67328/ft1_filtered_4FGL_J0228.0-3026_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/67328/ft2_4FGL_J0228.0-3026_daily_bin1751.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/67328/Model_4FGL_J0228.0-3026_daily_bin1751.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/67328/ft1_filtered_4FGL_J0228.0-3026_daily_bin1751.fits.....................!
real 121.37
user 118.31
sys 1.57

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/67328/ft1_filtered_4FGL_J0228.0-3026_daily_bin1751.fits', '/scratch/kocevski/67328/ft2_4FGL_J0228.0-3026_daily_bin1751.fits', expMap='/scratch/kocevski/67328/expmap_693187201_693446401_4FGL_J0228.0-3026_daily_bin1751.fits', expCube='/scratch/kocevski/67328/ltcube_693187201_693446401_4FGL_J0228.0-3026_daily_bin1751.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/67328/Model_4FGL_J0228.0-3026_daily_bin1751.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/67328/ft1_filtered_4FGL_J0228.0-3026_daily_bin1751.fits
Spacecraft file(s): /scratch/kocevski/67328/ft2_4FGL_J0228.0-3026_daily_bin1751.fits
Exposure map: /scratch/kocevski/67328/expmap_693187201_693446401_4FGL_J0228.0-3026_daily_bin1751.fits
Exposure cube: /scratch/kocevski/67328/ltcube_693187201_693446401_4FGL_J0228.0-3026_daily_bin1751.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/67328/Model_4FGL_J0228.0-3026_daily_bin1751.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) = 6106.98347314

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .64948E-08   1.0000          .0000       .10000E+07
     2 'norm      '    1.8230       1.0000          .0000       .10000E+07
     3 'Prefactor '    .56954E-07   1.0000          .0000       .10000E+07
     4 'Prefactor '    1.8137       1.0000          .0000       .10000E+07
     5 'Prefactor '    31.128       1.0000          .0000       .10000E+07
     6 'Prefactor '    3.6479       1.0000          .0000       .10000E+07
     7 'Prefactor '    .82920       1.0000          .0000       .10000E+07
     8 'Prefactor '    .20321E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    36.093       1.0000          .0000       .10000E+07
    10 'norm      '    2.1350       1.0000          .0000       .10000E+07
    11 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
    12 'Prefactor '    4.0079       1.0000          .0000       .10000E+07
    13 'Prefactor '    .42744E-08   1.0000          .0000       .10000E+07
    14 'Prefactor '    4.5803       1.0000          .0000       .10000E+07
    15 'norm      '    .36082E-08   1.0000          .0000       .10000E+07
    16 'norm      '    6.6304       1.0000          .0000       .10000E+07
    17 'Normalizat'    .64672       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .99958       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=   6106.975     FROM MIGRAD    STATUS=CONVERGED    137 CALLS     1615 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    1.4805       -.28064E-06** at limit **
   2  norm          1.8232        2.3145        .12296E-07   -.29673E-03
   3  Prefactor      .0000        11.196       -.37226E-06** at limit **
   4  Prefactor     1.8142        5.1847        .23075E-06    .21707E-02
   5  Prefactor     31.126        12.264        .16145E-05    .91620E-03
   6  Prefactor     3.6455        4.0049       -.34087E-06    .18525E-02
   7  Prefactor     .83009        8.2642       -.66823E-06   -.80331E-03
   8  Prefactor     .21649E-08    183.57       -.15110E-05** at limit **
   9  Prefactor     36.090        2.6305       -.37018E-06    .27241E-01
  10  norm          2.1351        1.5828       -.23677E-07   -.22645E-02
  11  Prefactor      .0000        9.5744        .13317E-05** at limit **
  12  Prefactor     3.9536        34.720        .92916E-05    .75579E-03
  13  Prefactor     .55511E-10    7.9181        .36855E-06** at limit **
  14  Prefactor     4.5804        2.9505        .11719E-06   -.23636E-02
  15  norm           .0000        .46730        .10066E-06** at limit **
  16  norm          6.6310        3.1938        .31832E-08    .16658E-02
  17  Normalizat    .64669        .15322       -.15658E-04   -.11789E-03
  18  Prefactor     .99954        .17911        .17247E-05   -.10080E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  norm       = 1.82324
  Prefactor  = 0
  Prefactor  = 1.81418
  Prefactor  = 31.1258
  Prefactor  = 3.64549
  Prefactor  = 0.830091
  Prefactor  = 2.16493e-09
  Prefactor  = 36.0896
  norm       = 2.13513
  Prefactor  = 0
  Prefactor  = 3.95364
  Prefactor  = 5.55112e-11
  Prefactor  = 4.58042
  norm       = 0
  norm       = 6.63101
  Normalizat = 0.646693
  Prefactor  = 0.999536
 **********
 **   18 **HESSE 
 **********

 FCN=   6106.975     FROM HESSE     STATUS=OK           282 CALLS     1897 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    1.4734        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.8232        2.3287        .77299E-03   -1.5681    
   3  Prefactor      .0000        11.206        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.8142        5.2003        .77536E-03   -1.5681    
   5  Prefactor     31.126        12.268        .17926E-03   -1.5596    
   6  Prefactor     3.6455        4.0279        .52866E-03   -1.5670    
   7  Prefactor     .83009        8.5770        .50783E-03   -1.5690    
   8  Prefactor     .21649E-08    182.48        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     36.090        39.723        .16647E-03   -1.5588    
  10  norm          2.1351        1.5898        .70523E-03   -1.5679    
  11  Prefactor      .0000        9.5667        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.9536        35.487        .50350E-03   -1.5668    
  13  Prefactor     .55511E-10    7.9210        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.5804        2.9626        .47010E-03   -1.5665    
  15  norm           .0000        .46440        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.6310        3.1975        .38947E-03   -1.5656    
  17  Normalizat    .64669        .13110        .41575E-01   -1.0604    
  18  Prefactor     .99954        .15203        .46262E-01   -.92745    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84914e-07
Minuit parameter uncertainties:
  1  1.36622e-05
  2  2.32871
  3  1.98343e-06
  4  5.20027
  5  12.2684
  6  4.0279
  7  5.33656
  8  0.00125421
  9  39.7232
  10  1.58981
  11  8.91848e-06
  12  23.6899
  13  3.57287e-05
  14  2.96256
  15  6.43331e-06
  16  3.19746
  17  0.131164
  18  0.152098
Done.

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

Extracting fit parameters...

4FGL J0228.0-3026
   Spectrum: PowerLaw
270    Prefactor:  3.609e+01  3.972e+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:  9.995e-01  1.521e-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.467e-01  1.312e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.27
Ra Dec: 37.014 -30.447
Photon Index (Fixed Index): 2.20 +/- 0.00
Photon Flux (Fixed Index): 2.06e-08 +/- 2.27e-08
Energy Flux (Fixed Index): 9.31e-06 +/- 1.02e-05

TS (Fixed Index): 1.27
Ra Dec: 37.014 -30.447
Photon Flux Upper Limit: 7.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/67328/likelihoodResults_693187201_693446401_4FGL_J0228.0-3026_daily_bin1751.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) = 6106.85261983
delta logL = 0.122043104167

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6106.82784797
delta logL = 0.146814968529

Fit tolerance = 1e-08

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

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

 FCN=   6106.828     FROM MIGRAD    STATUS=FAILED       101 CALLS      296 TOTAL
                     EDM=   .81E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.510        623.72        .10470E-04   -.84804E-03
   2  Index         2.7807        6.3076        .58680E-02    .62758E-03
   3  Normalizat    .62885        .20041        .22348E-03   -.11191E-05
   4  Prefactor     1.0142        .22000        .21514E-03   -.26844E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6106.828     FROM SIMPLEX   STATUS=UNCHANGED     92 CALLS      388 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.510        623.72        .41798E-04   -.84804E-03
   2  Index         2.7807        6.3076        .10188E-02    .62758E-03
   3  Normalizat    .62885        .20041        .20246E-03   -.11191E-05
   4  Prefactor     1.0142        .22000        .16808E-03   -.26844E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6106.828     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      418 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.510        44.255        .41880E-06   -.96516E-03
   2  Index         2.7807        1.4025        .11736E-02   -.31163E-04
   3  Normalizat    .62885        .15485        .89393E-05   -.30522E-05
   4  Prefactor     1.0142        .18274        .86056E-05   -.27743E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.5098
  Index      = 2.78067
  Normalizat = 0.628852
  Prefactor  = 1.01418
 **********
 **   18 **HESSE 
 **********

 FCN=   6106.828     FROM HESSE     STATUS=OK            23 CALLS      441 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.510        39.229        .37269E-06   -1.5632    
   2  Index         2.7807        1.2471        .46944E-04   -.45991    
   3  Normalizat    .62885        .15417        .17879E-05   -1.0677    
   4  Prefactor     1.0142        .18223        .17211E-05   -.92258    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51112e-11
Minuit parameter uncertainties:
  1  39.2297
  2  1.26383
  3  0.154274
  4  0.182337
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/67328': 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) = 6106.82784266
delta logL = 0.146820282034

Extracting fit parameters...

4FGL J0228.0-3026
   Spectrum: PowerLaw
270    Prefactor:  1.451e+01  3.923e+01  0.000e+00  1.000e+06 ( 1.000e-14)
271        Index:  2.781e+00  1.264e+00  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.014e+00  1.823e-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.289e-01  1.543e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.58
Ra Dec: 37.014 -30.447
Photon Index (Free Index): 2.78 +/- 1.26
Photon Flux (Free Index): 3.16e-08 +/- 3.43e-08
Energy Flux (Free Index): 7.16e-06 +/- 7.30e-06

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/67328/cmap_HighResolution_693187201_693446401_4FGL_J0228.0-3026_daily_bin1751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.59e-03', comment='SUCCESS', photon_flux='2.06e-08', energy_flux2='7.16e-06', photon_flux_error='2.27e-08', dlogl='1.47e-01', energy_flux='9.31e-06', photon_flux2='3.16e-08', job_status='DONE', time_completed='2022-12-23 00:17:18.901768', photon_index_error2='1.26', photon_index2='2.78', ts='1.27', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='7.34e-08', energy_flux_error2='7.30e-06', EG='0.65', time_epoch_completed='1671783438.9', return_code='0', job_id='67328', GAL2='1.01', EG2='0.63', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='3.43e-08', ts2='1.58', photon_index='2.20' WHERE bin_id='1751' AND source_name='4FGL J0228.0-3026' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 23 00:17:18 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 67328: <4FGL_J0228.0-3026_daily_bin1751> in cluster <slac> Done

Job <4FGL_J0228.0-3026_daily_bin1751> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Dec 23 00:05:02 2022
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 23 00:05:03 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 23 00:05:03 2022
Terminated at Fri Dec 23 00:17:19 2022
Results reported at Fri Dec 23 00:17:19 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0228.0-3026_daily_bin1751 37.014 -30.447 693187201 693446401 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 :                                   614.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   736 sec.
    Turnaround time :                            737 sec.

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

