/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 178 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J0228.0-3026_daily_bin869
RA = 37.014, Dec = -30.447
tmin = 464572801, tmax = 464832001
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='434176', job_status='RUN', time_executed='2021-08-16 00:16:38.568316', time_epoch_executed='1629098198.57' WHERE source_name='4FGL J0228.0-3026' and cadence='daily' and bin_id='869'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/434176

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/434176/ft1_4FGL_J0228.0-3026_daily_bin869.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/434176/ft2_4FGL_J0228.0-3026_daily_bin869.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/434176/ft1_4FGL_J0228.0-3026_daily_bin869.fits outfile=/scratch/kocevski/434176/ft1_filteredMKT_4FGL_J0228.0-3026_daily_bin869.fits ra=37.014 dec=-30.447 rad=12.0 tmin=464572801.0 tmax=464832001.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.71
user 3.16
sys 1.48

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/434176/ft1_filtered_4FGL_J0228.0-3026_daily_bin869.fits" evtable="EVENTS" scfile=/scratch/kocevski/434176/ft2_4FGL_J0228.0-3026_daily_bin869.fits sctable="SC_DATA" outfile=/scratch/kocevski/434176/ltcube_464572801_464832001_4FGL_J0228.0-3026_daily_bin869.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/434176/ft2_4FGL_J0228.0-3026_daily_bin869.fits
.....................!
real 14.91
user 13.12
sys 1.71

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/434176/ft1_filtered_4FGL_J0228.0-3026_daily_bin869.fits evtable="EVENTS" scfile=/scratch/kocevski/434176/ft2_4FGL_J0228.0-3026_daily_bin869.fits sctable="SC_DATA" expcube=/scratch/kocevski/434176/ltcube_464572801_464832001_4FGL_J0228.0-3026_daily_bin869.fits outfile=/scratch/kocevski/434176/expmap_464572801_464832001_4FGL_J0228.0-3026_daily_bin869.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/434176/ltcube_464572801_464832001_4FGL_J0228.0-3026_daily_bin869.fits
.....................!
real 192.73
user 185.65
sys 6.64

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_archive_v18/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/434176/ft1_filtered_4FGL_J0228.0-3026_daily_bin869.fits scfile=/scratch/kocevski/434176/ft2_4FGL_J0228.0-3026_daily_bin869.fits outfile=/scratch/kocevski/434176/cmap_464572801_464832001_4FGL_J0228.0-3026_daily_bin869.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.79
user 0.38
sys 1.40

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/434176/ft1_filtered_4FGL_J0228.0-3026_daily_bin869.fits scfile=/scratch/kocevski/434176/ft2_4FGL_J0228.0-3026_daily_bin869.fits outfile=/scratch/kocevski/434176/cmap_HighResolution_464572801_464832001_4FGL_J0228.0-3026_daily_bin869.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.82
user 0.38
sys 1.41

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/434176/ft1_filtered_4FGL_J0228.0-3026_daily_bin869.fits evtable="EVENTS" scfile=/scratch/kocevski/434176/ft2_4FGL_J0228.0-3026_daily_bin869.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/434176/Model_4FGL_J0228.0-3026_daily_bin869.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/434176/ft1_filtered_4FGL_J0228.0-3026_daily_bin869.fits.....................!
real 107.24
user 103.94
sys 2.97

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/434176/ft1_filtered_4FGL_J0228.0-3026_daily_bin869.fits', '/scratch/kocevski/434176/ft2_4FGL_J0228.0-3026_daily_bin869.fits', expMap='/scratch/kocevski/434176/expmap_464572801_464832001_4FGL_J0228.0-3026_daily_bin869.fits', expCube='/scratch/kocevski/434176/ltcube_464572801_464832001_4FGL_J0228.0-3026_daily_bin869.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/434176/Model_4FGL_J0228.0-3026_daily_bin869.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  1.000e-04  1.000e+04 ( 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/434176/ft1_filtered_4FGL_J0228.0-3026_daily_bin869.fits
Spacecraft file(s): /scratch/kocevski/434176/ft2_4FGL_J0228.0-3026_daily_bin869.fits
Exposure map: /scratch/kocevski/434176/expmap_464572801_464832001_4FGL_J0228.0-3026_daily_bin869.fits
Exposure cube: /scratch/kocevski/434176/ltcube_464572801_464832001_4FGL_J0228.0-3026_daily_bin869.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/434176/Model_4FGL_J0228.0-3026_daily_bin869.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) = 5137.02310871

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31667E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.0211       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.511       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.3476       1.0000         .10000E-03   10000.    
     8 'Prefactor '    36.444       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.0329       1.0000         .10000E-03   10000.    
    10 'norm      '    3.8801       1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.844       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.946       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.0745       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .99206       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.7055       1.0000         .10000E-03   10000.    
    19 'norm      '    .57794       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .91603       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .61686       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.

 FCN=   5137.017     FROM MIGRAD    STATUS=CONVERGED    452 CALLS     2236 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.3486        .72692E-07** at limit **
   2  norm          1.0213        2.4828        .56225E-06   -.10499E-03
   3  Prefactor     10.512        19.850       -.15553E-06   -.27463E-04
   4  Prefactor     .10000E-03    5.3434        .30799E-07** at limit **
   5  Prefactor     .10000E-03    2.0397       -.17640E-08** at limit **
   6  Prefactor     .10000E-03    2.7094        .27639E-07** at limit **
   7  Prefactor     2.3477        3.3479        .11776E-06   -.13317E-04
   8  Prefactor     36.447        34.875        .10995E-06    .52759E-05
   9  Prefactor     1.9991        140.86       -.64303E-05   -.55641E-04
  10  norm          3.8800        2.4371        .76771E-07   -.17393E-04
  11  Prefactor     18.844        19.513        .36518E-07   -.98172E-05
  12  Prefactor     14.949        18.438       -.38488E-06   -.71198E-04
  13  Prefactor     .10000E-03    12.354       -.13070E-07** at limit **
  14  Prefactor     4.0746        3.0864        .30524E-07    .34904E-04
  15  Prefactor     .10000E-03    162.96        .53432E-06** at limit **
  16  Prefactor     .10000E-03    47.871        .47314E-06** at limit **
  17  norm          .99245        1.3479        .71752E-06   -.77010E-03
  18  Prefactor     5.7103        12.425        .14357E-05    .17047E-03
  19  norm          .57812        1.4662        .47262E-06    .23292E-03
  20  Normalizat    .91609        .13421       -.35535E-06   -.24555E-04
  21  Prefactor     .61674        .14926       -.39705E-06   -.26373E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.02132
  Prefactor  = 10.5118
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.34768
  Prefactor  = 36.447
  Prefactor  = 1.9991
  norm       = 3.87999
  Prefactor  = 18.8443
  Prefactor  = 14.9493
  Prefactor  = 0.0001
  Prefactor  = 4.07457
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.992448
  Prefactor  = 5.71028
  norm       = 0.578116
  Normalizat = 0.91609
  Prefactor  = 0.61674
 **********
 **   18 **HESSE 
 **********

 FCN=   5137.017     FROM HESSE     STATUS=OK           325 CALLS     2561 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.3105        .16169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0213        2.4867        .16652E-03   -1.5506    
   3  Prefactor     10.512        19.856        .12358E-03   -1.5059    
   4  Prefactor     .10000E-03    5.3847        .16180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.0410        .99967E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.7708        .11513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.3477        3.3303        .15094E-03   -1.5402    
   8  Prefactor     36.447        34.886        .66386E-04   -1.4500    
   9  Prefactor     1.9991        155.51        .29012E-03   -1.5425    
  10  norm          3.8800        2.4352        .82268E-04   -1.5314    
  11  Prefactor     18.844        19.525        .92264E-04   -1.4839    
  12  Prefactor     14.949        18.486        .10360E-03   -1.4934    
  13  Prefactor     .10000E-03    12.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.0746        3.0847        .10549E-03   -1.5304    
  15  Prefactor     .10000E-03    163.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    48.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .99245        1.3509        .26275E-03   -1.5509    
  18  Prefactor     5.7103        12.547        .16816E-03   -1.5230    
  19  norm          .57812        1.2519        .13876E-02   -1.5556    
  20  Normalizat    .91609        .15790        .18026E-03   -.95897    
  21  Prefactor     .61674        .17444        .24792E-03   -1.0689    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.48054e-10
Minuit parameter uncertainties:
  1  3.21848e-05
  2  2.48696
  3  19.868
  4  2.5423e-06
  5  1.56732e-07
  6  2.57452e-06
  7  3.33059
  8  34.9058
  9  35.3582
  10  2.43523
  11  19.5311
  12  18.4932
  13  2.18902e-06
  14  3.08483
  15  0.000272595
  16  0.000121274
  17  1.35091
  18  12.5525
  19  1.25196
  20  0.157982
  21  0.174589
Done.

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

Extracting fit parameters...

4FGL J0228.0-3026
   Spectrum: PowerLaw
270    Prefactor:  1.999e+00  3.536e+01  1.000e-04  1.000e+04 ( 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:  6.167e-01  1.746e-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.161e-01  1.580e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/434176/likelihoodResults_464572801_464832001_4FGL_J0228.0-3026_daily_bin869.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): 102
logL (Free Index) = 5136.79114595
delta logL = 0.225748262146

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5136.79108233
delta logL = 0.225811885522

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7154       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3110       1.0000          .0000       10.000    
     3 'Normalizat'    .89365       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62844       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=   5136.791     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      239 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6918        133.96        .61790E-02    .49391E-03
   2  Index         3.3142        3.5880        .11298        .11673E-03
   3  Normalizat    .89366        .35277E-01    .44820E-01   -.69482E-04
   4  Prefactor     .62843        .39537E-01    .41440E-01    .17067E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.69177
  Index      = 3.31424
  Normalizat = 0.893661
  Prefactor  = 0.62843
 **********
 **   18 **HESSE 
 **********

 FCN=   5136.791     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      272 TOTAL
                     EDM=   .95E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6918        321.44        .17590E-03   -1.5380    
   2  Index         3.3142        6.1593        .65637E-02   -.34389    
   3  Normalizat    .89366        .14530        .18221E-03   -.96683    
   4  Prefactor     .62843        .16438        .24566E-03   -1.0640    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.46434e-07
Minuit parameter uncertainties:
  1  59.1565
  2  8.79776
  3  0.145361
  4  0.164509
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/434176': 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): 102
logL (Free Index) = 5136.79107977
delta logL = 0.225814438571

Extracting fit parameters...

4FGL J0228.0-3026
   Spectrum: PowerLaw
270    Prefactor:  2.692e+00  5.916e+01  1.000e-04  1.000e+04 ( 1.000e-14)
271        Index:  3.314e+00  8.798e+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:  6.284e-01  1.645e-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:  8.937e-01  1.454e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 37.014 -30.447

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/434176/cmap_HighResolution_464572801_464832001_4FGL_J0228.0-3026_daily_bin869.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.29e-03', job_status='DONE', photon_flux_upper_limit='5.63e-08', time_completed='2021-08-16 00:27:22.371960', job_id='434176', GAL2='0.63', fit_tolerance='1e-08', EG2='0.89', EG='0.92', time_epoch_completed='1629098842.37', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='2.26e-01', ts2='0.47', photon_index_error='0.00', photon_index='2.20' WHERE bin_id='869' AND source_name='4FGL J0228.0-3026' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 00:27:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0141>
Subject: Job 434176: <4FGL_J0228.0-3026_daily_bin869> in cluster <slac> Done

Job <4FGL_J0228.0-3026_daily_bin869> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Aug 16 00:10:49 2021
Job was executed on host(s) <bullet0141>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 00:13:09 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 16 00:13:09 2021
Terminated at Mon Aug 16 00:27:23 2021
Results reported at Mon Aug 16 00:27:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0228.0-3026_daily_bin869 37.014 -30.447 464572801 464832001 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 :                                   659.07 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             288.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            994 sec.

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

