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


Performing analysis on: 4FGL_J0228.0-3026_daily_bin1738
RA = 37.014, Dec = -30.447
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='398359', job_status='RUN', time_executed='2022-11-14 00:09:16.679503', time_epoch_executed='1668413356.68' WHERE source_name='4FGL J0228.0-3026' and cadence='daily' and bin_id='1738'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/398359

Creating custom pfile directory:
/scratch/kocevski/398359/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/398359/ft1_4FGL_J0228.0-3026_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/398359/ft2_4FGL_J0228.0-3026_daily_bin1738.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/398359/ft1_4FGL_J0228.0-3026_daily_bin1738.fits outfile=/scratch/kocevski/398359/ft1_filteredMKT_4FGL_J0228.0-3026_daily_bin1738.fits ra=37.014 dec=-30.447 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.24
user 3.89
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/398359/ft2_4FGL_J0228.0-3026_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/398359/ft1_filteredMKT_4FGL_J0228.0-3026_daily_bin1738.fits evtable="EVENTS" outfile="/scratch/kocevski/398359/ft1_filtered_4FGL_J0228.0-3026_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 1.19
user 0.32
sys 0.17

Number of photons that the gtmktime cut: 475

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/398359/ft1_filtered_4FGL_J0228.0-3026_daily_bin1738.fits" evtable="EVENTS" scfile=/scratch/kocevski/398359/ft2_4FGL_J0228.0-3026_daily_bin1738.fits sctable="SC_DATA" outfile=/scratch/kocevski/398359/ltcube_689817601_690076801_4FGL_J0228.0-3026_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/398359/ft2_4FGL_J0228.0-3026_daily_bin1738.fits
.....................!
real 18.62
user 17.83
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/398359/ft1_filtered_4FGL_J0228.0-3026_daily_bin1738.fits evtable="EVENTS" scfile=/scratch/kocevski/398359/ft2_4FGL_J0228.0-3026_daily_bin1738.fits sctable="SC_DATA" expcube=/scratch/kocevski/398359/ltcube_689817601_690076801_4FGL_J0228.0-3026_daily_bin1738.fits outfile=/scratch/kocevski/398359/expmap_689817601_690076801_4FGL_J0228.0-3026_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/398359/ltcube_689817601_690076801_4FGL_J0228.0-3026_daily_bin1738.fits
.....................!
real 193.55
user 186.72
sys 5.55

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/398359/ft1_filtered_4FGL_J0228.0-3026_daily_bin1738.fits scfile=/scratch/kocevski/398359/ft2_4FGL_J0228.0-3026_daily_bin1738.fits outfile=/scratch/kocevski/398359/cmap_689817601_690076801_4FGL_J0228.0-3026_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=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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/398359/ft1_filtered_4FGL_J0228.0-3026_daily_bin1738.fits scfile=/scratch/kocevski/398359/ft2_4FGL_J0228.0-3026_daily_bin1738.fits outfile=/scratch/kocevski/398359/cmap_HighResolution_689817601_690076801_4FGL_J0228.0-3026_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=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.57
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24092E-05   1.0000          .0000       .10000E+07
     2 'norm      '    .11147E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    10.274       1.0000          .0000       .10000E+07
     4 'Prefactor '    .11759E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    21.424       1.0000          .0000       .10000E+07
     6 'Prefactor '    3.6982       1.0000          .0000       .10000E+07
     7 'Prefactor '    2.8785       1.0000          .0000       .10000E+07
     8 'Prefactor '    .42805E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    68.595       1.0000          .0000       .10000E+07
    10 'norm      '    4.9082       1.0000          .0000       .10000E+07
    11 'Prefactor '    .72617E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .50342E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    .94772E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .51988E-03   1.0000          .0000       .10000E+07
    15 'norm      '    .53172E-05   1.0000          .0000       .10000E+07
    16 'norm      '    4.1999       1.0000          .0000       .10000E+07
    17 'Normalizat'    .98489       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .79187       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=   5226.275     FROM MIGRAD    STATUS=CONVERGED    132 CALLS     1383 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.5868        .17229E-07** at limit **
   2  norm           .0000        4.5346        .68732E-07** at limit **
   3  Prefactor     10.337        5.6040        .29880E-07   -.14402    
   4  Prefactor     .55511E-10    4.2176        .10076E-06** at limit **
   5  Prefactor     21.440        12.761       -.19345E-07   -.11546E-01
   6  Prefactor     3.7372        5.1126        .17633E-06    .49193E-02
   7  Prefactor     2.9190        4.9597        .87890E-07    .22133E-02
   8  Prefactor     .49639E-05    132.75        .92988E-06** at limit **
   9  Prefactor     68.599        1.2659       -.24582E-09    .27009E-01
  10  norm          4.9083        2.3999       -.35737E-07   -.41847E-02
  11  Prefactor     .22204E-09    7.1360       -.19660E-06** at limit **
  12  Prefactor      .0000        14.571        .74019E-07** at limit **
  13  Prefactor     .17085E-05    74.160        .65610E-06** at limit **
  14  Prefactor     .55511E-10    2.6237       -.91317E-07** at limit **
  15  norm          .55511E-10    1.1335       -.85259E-07** at limit **
  16  norm          4.2160        4.1369       -.31735E-07   -.11806E-02
  17  Normalizat    .98465        .18479       -.45725E-06    .15965E-03
  18  Prefactor     .79176        .21107        .14380E-05    .13988E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 0
  Prefactor  = 10.3369
  Prefactor  = 5.55112e-11
  Prefactor  = 21.4397
  Prefactor  = 3.73725
  Prefactor  = 2.91897
  Prefactor  = 4.96386e-06
  Prefactor  = 68.5989
  norm       = 4.90834
  Prefactor  = 2.22045e-10
  Prefactor  = 0
  Prefactor  = 1.70852e-06
  Prefactor  = 5.55112e-11
  norm       = 5.55112e-11
  norm       = 4.21595
  Normalizat = 0.984652
  Prefactor  = 0.791756
 **********
 **   18 **HESSE 
 **********

 FCN=   5226.275     FROM HESSE     STATUS=OK           282 CALLS     1665 TOTAL
                     EDM=   .25E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.5784        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        1.3559        .32373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.337        34.678        .31235E-03   -1.5644    
   4  Prefactor     .55511E-10    4.2057        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     21.440        12.812        .21611E-03   -1.5615    
   6  Prefactor     3.7372        5.1345        .52492E-03   -1.5669    
   7  Prefactor     2.9190        5.0004        .59881E-03   -1.5674    
   8  Prefactor     .49639E-05    134.00        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     68.599        54.547        .12075E-03   -1.5542    
  10  norm          4.9083        2.4017        .45376E-03   -1.5664    
  11  Prefactor     .22204E-09    7.1515        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        14.510        .15527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .17085E-05    75.079        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .55511E-10    2.5942        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .55511E-10    1.1282        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.2160        4.1496        .49151E-03   -1.5667    
  17  Normalizat    .98465        .15627        .45977E-01   -.93546    
  18  Prefactor     .79176        .17788        .43611E-01   -1.0003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48284e-06
Minuit parameter uncertainties:
  1  2.54529e-06
  2  1.16346e-05
  3  34.6791
  4  2.78312e-05
  5  12.812
  6  5.13447
  7  5.00038
  8  0.0515827
  9  54.5476
  10  2.40173
  11  8.03235e-05
  12  3.9135e-05
  13  0.022652
  14  2.29699e-05
  15  1.42949e-05
  16  4.14962
  17  0.156341
  18  0.178009
Done.

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

Extracting fit parameters...

4FGL J0228.0-3026
   Spectrum: PowerLaw
270    Prefactor:  6.860e+01  5.455e+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:  7.918e-01  1.780e-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:  9.847e-01  1.563e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.47
Ra Dec: 37.014 -30.447
Photon Index (Fixed Index): 2.20 +/- 0.00
Photon Flux (Fixed Index): 3.92e-08 +/- 3.12e-08
Energy Flux (Fixed Index): 1.77e-05 +/- 1.41e-05

TS (Fixed Index): 2.47
Ra Dec: 37.014 -30.447
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/398359/likelihoodResults_689817601_690076801_4FGL_J0228.0-3026_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) = 5225.61180608
delta logL = 0.663311718344

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5225.59458582
delta logL = 0.680531981597

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.319       1.0000          .0000       .10000E+07
     2 'Index     '    3.0195       1.0000          .0000       10.000    
     3 'Normalizat'    .93332       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83033       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.

 FCN=   5225.595     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      270 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.319        219.62        .22759E-03    .53507E-02
   2  Index         3.0197        2.3726        .84758E-01    .17998E-03
   3  Normalizat    .93235        .62265E-01    .45326E-01   -.21550E-04
   4  Prefactor     .83149        .66011E-01    .44111E-01   -.97624E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.3194
  Index      = 3.01967
  Normalizat = 0.932346
  Prefactor  = 0.831491
 **********
 **   18 **HESSE 
 **********

 FCN=   5225.595     FROM HESSE     STATUS=OK            33 CALLS      303 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.319        182.63        .91036E-05   -1.5620    
   2  Index         3.0197        2.5124        .32630E-02   -.40723    
   3  Normalizat    .93235        .21138        .20574E-03   -.95333    
   4  Prefactor     .83149        .23852        .25055E-03   -.98578    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34968e-08
Minuit parameter uncertainties:
  1  118.803
  2  2.65852
  3  0.211569
  4  0.238817
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/398359': 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) = 5225.59457046
delta logL = 0.680547336254

Extracting fit parameters...

4FGL J0228.0-3026
   Spectrum: PowerLaw
270    Prefactor:  1.932e+01  1.188e+02  0.000e+00  1.000e+06 ( 1.000e-14)
271        Index:  3.020e+00  2.659e+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:  8.315e-01  2.388e-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:  9.323e-01  2.116e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.91
Ra Dec: 37.014 -30.447
Photon Index (Free Index): 3.02 +/- 2.66
Photon Flux (Free Index): 7.54e-08 +/- 5.71e-08
Energy Flux (Free Index): 1.49e-05 +/- 1.51e-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/398359/cmap_HighResolution_689817601_690076801_4FGL_J0228.0-3026_daily_bin1738.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.02e-03', comment='SUCCESS', photon_flux='3.92e-08', energy_flux2='1.49e-05', photon_flux_error='3.12e-08', dlogl='6.81e-01', energy_flux='1.77e-05', photon_flux2='7.54e-08', job_status='DONE', time_completed='2022-11-14 00:18:45.739547', photon_index_error2='2.66', photon_index2='3.02', ts='2.47', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='1.51e-05', EG='0.98', time_epoch_completed='1668413925.74', return_code='0', job_id='398359', GAL2='0.83', EG2='0.93', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='5.71e-08', ts2='3.91', photon_index='2.20' WHERE bin_id='1738' AND source_name='4FGL J0228.0-3026' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Nov 14 00:18:45 PST 2022

93', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='5.71e-08', ts2='3.91', photon_index='2.20' WHERE bin_id='1738' AND source_name='4FGL J0228.0-3026' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Nov 14 00:17:55 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 398358: <4FGL_J0228.0-3026_daily_bin1738> in cluster <slac> Done

Job <4FGL_J0228.0-3026_daily_bin1738> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Nov 14 00:05:29 2022
Job was executed on host(s) <bullet0126>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Nov 14 00:06:50 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:06:50 2022
Terminated at Mon Nov 14 00:17:56 2022
Results reported at Mon Nov 14 00:17:56 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0228.0-3026_daily_bin1738 37.014 -30.447 689817601 690076801 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 :                                   560.00 sec.
    Max Memory :                                 617 MB
    Average Memory :                             295.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   666 sec.
    Turnaround time :                            747 sec.

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


------------------------------------------------------------
Sender: LSF System <scs@bullet0146>
Subject: Job 398359: <4FGL_J0228.0-3026_daily_bin1738> in cluster <slac> Done

Job <4FGL_J0228.0-3026_daily_bin1738> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Nov 14 00:05:29 2022
Job was executed on host(s) <bullet0146>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Nov 14 00:06:51 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:06:51 2022
Terminated at Mon Nov 14 00:18:46 2022
Results reported at Mon Nov 14 00:18:46 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0228.0-3026_daily_bin1738 37.014 -30.447 689817601 690076801 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 :                                   563.60 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            797 sec.

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

