/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 122 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 = 7421
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0228.0-3026_daily_bin343
RA = 37.014, Dec = -30.447
tmin = 328233601, tmax = 328492801
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='431281', job_status='RUN', time_executed='2021-08-16 00:05:38.831975', time_epoch_executed='1629097538.83' WHERE source_name='4FGL J0228.0-3026' and cadence='daily' and bin_id='343'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/431281

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/431281/ft1_4FGL_J0228.0-3026_daily_bin343.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/431281/ft2_4FGL_J0228.0-3026_daily_bin343.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/431281/ft1_4FGL_J0228.0-3026_daily_bin343.fits outfile=/scratch/kocevski/431281/ft1_filteredMKT_4FGL_J0228.0-3026_daily_bin343.fits ra=37.014 dec=-30.447 rad=12.0 tmin=328233601.0 tmax=328492801.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 5.51
user 3.71
sys 1.71

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/431281/ft2_4FGL_J0228.0-3026_daily_bin343.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/431281/ft1_filteredMKT_4FGL_J0228.0-3026_daily_bin343.fits evtable="EVENTS" outfile="/scratch/kocevski/431281/ft1_filtered_4FGL_J0228.0-3026_daily_bin343.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 2.02
user 0.35
sys 1.64

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/431281/ft1_filtered_4FGL_J0228.0-3026_daily_bin343.fits" evtable="EVENTS" scfile=/scratch/kocevski/431281/ft2_4FGL_J0228.0-3026_daily_bin343.fits sctable="SC_DATA" outfile=/scratch/kocevski/431281/ltcube_328233601_328492801_4FGL_J0228.0-3026_daily_bin343.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/431281/ft2_4FGL_J0228.0-3026_daily_bin343.fits
.....................!
real 15.67
user 13.60
sys 2.00

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/431281/ft1_filtered_4FGL_J0228.0-3026_daily_bin343.fits evtable="EVENTS" scfile=/scratch/kocevski/431281/ft2_4FGL_J0228.0-3026_daily_bin343.fits sctable="SC_DATA" expcube=/scratch/kocevski/431281/ltcube_328233601_328492801_4FGL_J0228.0-3026_daily_bin343.fits outfile=/scratch/kocevski/431281/expmap_328233601_328492801_4FGL_J0228.0-3026_daily_bin343.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/431281/ltcube_328233601_328492801_4FGL_J0228.0-3026_daily_bin343.fits
.....................!
real 194.48
user 186.63
sys 7.37

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/431281/ft1_filtered_4FGL_J0228.0-3026_daily_bin343.fits scfile=/scratch/kocevski/431281/ft2_4FGL_J0228.0-3026_daily_bin343.fits outfile=/scratch/kocevski/431281/cmap_328233601_328492801_4FGL_J0228.0-3026_daily_bin343.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 2.05
user 0.39
sys 1.58

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/431281/ft1_filtered_4FGL_J0228.0-3026_daily_bin343.fits scfile=/scratch/kocevski/431281/ft2_4FGL_J0228.0-3026_daily_bin343.fits outfile=/scratch/kocevski/431281/cmap_HighResolution_328233601_328492801_4FGL_J0228.0-3026_daily_bin343.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 2.14
user 0.40
sys 1.60

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/431281/ft1_filtered_4FGL_J0228.0-3026_daily_bin343.fits evtable="EVENTS" scfile=/scratch/kocevski/431281/ft2_4FGL_J0228.0-3026_daily_bin343.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/431281/Model_4FGL_J0228.0-3026_daily_bin343.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/431281/ft1_filtered_4FGL_J0228.0-3026_daily_bin343.fits.....................!
real 110.04
user 106.40
sys 3.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7343       1.0000         .10000E-03   10000.    
     2 'norm      '    5.0206       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.290       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    6.2700       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10243E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10547E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11170E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.8002       1.0000         .10000E-03   10000.    
    17 'norm      '    20.786       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .33996E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    2.4760       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .94284       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .94220       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=   5152.061     FROM MIGRAD    STATUS=CONVERGED    479 CALLS     1901 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7310        3.8195       -.55018E-05    .11763E-03
   2  norm          5.0156        3.6591       -.25768E-06   -.38604E-04
   3  Prefactor     .10000E-03    16.010        .20419E-05** at limit **
   4  Prefactor     .10000E-03    6.1113       -.95018E-07** at limit **
   5  Prefactor     11.283        9.4744       -.28416E-06   -.42753E-04
   6  Prefactor     .10000E-03    3.4539        .39325E-06** at limit **
   7  Prefactor     .10000E-03    5.7985        .67358E-06** at limit **
   8  Prefactor     .10000E-03    16.504       -.53494E-06** at limit **
   9  Prefactor     .10000E-03    23.407        .15262E-05** at limit **
  10  norm          6.2662        3.2750       -.34415E-06    .63687E-03
  11  Prefactor     .10000E-03    17.707       -.22325E-05** at limit **
  12  Prefactor     .10000E-03    11.783        .43277E-06** at limit **
  13  Prefactor     .10000E-03    78.033       -.11171E-04** at limit **
  14  Prefactor     .10000E-03    1.5516        .19601E-06** at limit **
  15  Prefactor     .10003E-03    452.43       -.75592E-04** at limit **
  16  Prefactor     8.5741        50.746       -.15699E-04   -.19481E-03
  17  norm          20.786        3.9315       -.58659E-07   -.56793E-03
  18  Prefactor     .10000E-03    143.25        .59405E-04** at limit **
  19  norm          2.4775        2.7451       -.24461E-06   -.22860E-03
  20  Normalizat    .94387        .17607        .16534E-05   -.36274E-03
  21  Prefactor     .94143        .19548        .33360E-06   -.13321E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.73102
  norm       = 5.01559
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.2833
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.26621
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100035
  Prefactor  = 8.57412
  norm       = 20.7864
  Prefactor  = 0.0001
  norm       = 2.47751
  Normalizat = 0.943869
  Prefactor  = 0.941433
 **********
 **   18 **HESSE 
 **********

 FCN=   5152.061     FROM HESSE     STATUS=OK           311 CALLS     2212 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7310        3.8174        .79498E-03   -1.5377    
   2  norm          5.0156        3.6646        .11042E-03   -1.5260    
   3  Prefactor     .10000E-03    16.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.1402        .17329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.283        9.4776        .11923E-03   -1.5036    
   6  Prefactor     .10000E-03    3.4911        .13020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.8855        .16869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    23.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.2662        3.2793        .44205E-03   -1.5207    
  11  Prefactor     .10000E-03    17.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    78.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.5590        .87311E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10003E-03    447.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.5741        48.501        .13512E-03   -1.5122    
  17  norm          20.786        3.9304        .59336E-04   -1.4796    
  18  Prefactor     .10000E-03    138.66        .49499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.4775        2.7313        .12142E-03   -1.5393    
  20  Normalizat    .94387        .20688        .22678E-03   -.94935    
  21  Prefactor     .94143        .22940        .26292E-03   -.94708    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06311e-09
Minuit parameter uncertainties:
  1  3.81772
  2  3.66476
  3  2.55083e-05
  4  4.77612e-06
  5  9.47881
  6  1.1808e-05
  7  3.80534e-05
  8  1.76799e-05
  9  6.72539e-06
  10  3.27938
  11  6.64329e-05
  12  5.69145e-05
  13  0.000691917
  14  6.13366e-06
  15  0.00792175
  16  40.8355
  17  3.93048
  18  0.000122033
  19  2.73143
  20  0.207056
  21  0.229633
Done.

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

Extracting fit parameters...

4FGL J0228.0-3026
   Spectrum: PowerLaw
270    Prefactor:  1.000e-04  6.725e-06  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:  9.414e-01  2.296e-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.439e-01  2.071e-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.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/431281/likelihoodResults_328233601_328492801_4FGL_J0228.0-3026_daily_bin343.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) = 5152.06137811
delta logL = -0.00020313451023

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5152.06117514
delta logL = -1.64856828633e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2827       1.0000          .0000       10.000    
     3 'Normalizat'    .94386       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94144       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=   5152.061     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      267 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6465.4        .18142E-02** at limit **
   2  Index         2.2611        5.8868        .50000        .81092E-05
   3  Normalizat    .94387        .65591E-01    .22678E-03    .17045E-04
   4  Prefactor     .94143        .76346E-01    .26292E-03    .13404E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.26114
  Normalizat = 0.943872
  Prefactor  = 0.94143
 **********
 **   18 **HESSE 
 **********

 FCN=   5152.061     FROM HESSE     STATUS=OK            29 CALLS      296 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.151        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2611        6.0990        .50000       -.57970    
   3  Normalizat    .94387        .19539        .90711E-05   -.94935    
   4  Prefactor     .94143        .22739        .10517E-04   -.94708    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.84543e-11
Minuit parameter uncertainties:
  1  0.000415679
  2  4.81132
  3  0.195538
  4  0.22762
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/431281': 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) = 5152.06117509
delta logL = -1.1581050785e-07

Extracting fit parameters...

4FGL J0228.0-3026
   Spectrum: PowerLaw
270    Prefactor:  1.000e-04  4.157e-04  1.000e-04  1.000e+04 ( 1.000e-14)
271        Index:  2.261e+00  4.811e+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:  9.414e-01  2.276e-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.439e-01  1.955e-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/431281/cmap_HighResolution_328233601_328492801_4FGL_J0228.0-3026_daily_bin343.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.81e-03', job_status='DONE', photon_flux_upper_limit='5.00e-08', time_completed='2021-08-16 00:16:15.690560', job_id='431281', GAL2='0.94', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1629098175.69', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='-1.16e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.20' WHERE bin_id='343' AND source_name='4FGL J0228.0-3026' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 00:16:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 431281: <4FGL_J0228.0-3026_daily_bin343> in cluster <slac> Done

Job <4FGL_J0228.0-3026_daily_bin343> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Aug 16 00:01:14 2021
Job was executed on host(s) <bullet0150>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 00:02:59 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:02:59 2021
Terminated at Mon Aug 16 00:16:17 2021
Results reported at Mon Aug 16 00:16:17 2021

Your job looked like:

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

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

