/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 57 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 = 7480
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0228.0-3026_daily_bin53
RA = 37.014, Dec = -30.447
tmin = 253065601, tmax = 253324801
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='430872', job_status='RUN', time_executed='2021-08-16 00:02:57.101597', time_epoch_executed='1629097377.1' WHERE source_name='4FGL J0228.0-3026' and cadence='daily' and bin_id='53'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/430872

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/430872/ft1_4FGL_J0228.0-3026_daily_bin53.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/430872/ft2_4FGL_J0228.0-3026_daily_bin53.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/430872/ft1_4FGL_J0228.0-3026_daily_bin53.fits outfile=/scratch/kocevski/430872/ft1_filteredMKT_4FGL_J0228.0-3026_daily_bin53.fits ra=37.014 dec=-30.447 rad=12.0 tmin=253065601.0 tmax=253324801.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.80
user 1.24
sys 3.47

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/430872/ft1_filtered_4FGL_J0228.0-3026_daily_bin53.fits" evtable="EVENTS" scfile=/scratch/kocevski/430872/ft2_4FGL_J0228.0-3026_daily_bin53.fits sctable="SC_DATA" outfile=/scratch/kocevski/430872/ltcube_253065601_253324801_4FGL_J0228.0-3026_daily_bin53.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/430872/ft2_4FGL_J0228.0-3026_daily_bin53.fits
.....................!
real 18.75
user 14.62
sys 4.06

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/430872/ft1_filtered_4FGL_J0228.0-3026_daily_bin53.fits evtable="EVENTS" scfile=/scratch/kocevski/430872/ft2_4FGL_J0228.0-3026_daily_bin53.fits sctable="SC_DATA" expcube=/scratch/kocevski/430872/ltcube_253065601_253324801_4FGL_J0228.0-3026_daily_bin53.fits outfile=/scratch/kocevski/430872/expmap_253065601_253324801_4FGL_J0228.0-3026_daily_bin53.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/430872/ltcube_253065601_253324801_4FGL_J0228.0-3026_daily_bin53.fits
.....................!
real 195.96
user 186.30
sys 8.85

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/430872/ft1_filtered_4FGL_J0228.0-3026_daily_bin53.fits scfile=/scratch/kocevski/430872/ft2_4FGL_J0228.0-3026_daily_bin53.fits outfile=/scratch/kocevski/430872/cmap_253065601_253324801_4FGL_J0228.0-3026_daily_bin53.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 3.78
user 0.39
sys 3.33

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/430872/ft1_filtered_4FGL_J0228.0-3026_daily_bin53.fits scfile=/scratch/kocevski/430872/ft2_4FGL_J0228.0-3026_daily_bin53.fits outfile=/scratch/kocevski/430872/cmap_HighResolution_253065601_253324801_4FGL_J0228.0-3026_daily_bin53.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 3.73
user 0.38
sys 3.32

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/430872/ft1_filtered_4FGL_J0228.0-3026_daily_bin53.fits evtable="EVENTS" scfile=/scratch/kocevski/430872/ft2_4FGL_J0228.0-3026_daily_bin53.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/430872/Model_4FGL_J0228.0-3026_daily_bin53.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/430872/ft1_filtered_4FGL_J0228.0-3026_daily_bin53.fits.....................!
real 115.95
user 109.60
sys 5.57

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.384       1.0000         .10000E-03   10000.    
     2 'norm      '    .15568E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .25615E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3095       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .70056       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.101       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10255E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.732       1.0000         .10000E-03   10000.    
    10 'norm      '    .39791       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.0443       1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.982       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10298E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.7188       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.0311       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .93601       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .72070       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=   5510.382     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     2245 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.385        5.4133        .39564E-07    .44383E-04
   2  norm          .10000E-03    1.1141        .75889E-07** at limit **
   3  Prefactor     .10000E-03    13.072        .17494E-08** at limit **
   4  Prefactor     .10001E-03    6.7661       -.31201E-06** at limit **
   5  Prefactor     1.3111        8.6142        .23272E-05   -.45592E-04
   6  Prefactor     .70478        3.2604        .44641E-06   -.17423E-03
   7  Prefactor     11.098        7.2116       -.24827E-06   -.22639E-03
   8  Prefactor     .10000E-03    99.410       -.29259E-05** at limit **
   9  Prefactor     27.703        47.134       -.25651E-05   -.86835E-04
  10  norm          .39821        1.5037        .10158E-05    .59148E-04
  11  Prefactor     8.0445        11.379       -.65774E-07   -.20957E-04
  12  Prefactor     29.977        27.279       -.28511E-07   -.34050E-04
  13  Prefactor     .10000E-03    40.286       -.74050E-07** at limit **
  14  Prefactor     .10000E-03    .99734       -.11583E-06** at limit **
  15  Prefactor     .10000E-03    85.148        .29910E-05** at limit **
  16  Prefactor     .10000E-03    32.520        .14135E-06** at limit **
  17  norm          8.7186        2.3575        .50773E-07   -.36888E-04
  18  Prefactor     .10000E-03    4.5840        .56839E-07** at limit **
  19  norm          4.0315        2.6536        .39407E-07   -.11223E-04
  20  Normalizat    .93627        .15599        .56430E-06   -.19843E-03
  21  Prefactor     .72035        .17360       -.15980E-05   -.50483E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.3855
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 1.31109
  Prefactor  = 0.704778
  Prefactor  = 11.0984
  Prefactor  = 0.000100001
  Prefactor  = 27.7029
  norm       = 0.398206
  Prefactor  = 8.04446
  Prefactor  = 29.9767
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 8.71856
  Prefactor  = 0.0001
  norm       = 4.03152
  Normalizat = 0.936269
  Prefactor  = 0.720346
 **********
 **   18 **HESSE 
 **********

 FCN=   5510.382     FROM HESSE     STATUS=OK           321 CALLS     2566 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.385        5.4147        .11851E-03   -1.5063    
   2  norm          .10000E-03    8.5531        .15120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    46.257        .37037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.3111        8.7745        .38540E-03   -1.5479    
   6  Prefactor     .70478        5.4039        .24419E-02   -1.5540    
   7  Prefactor     11.098        7.1656        .12024E-03   -1.5042    
   8  Prefactor     .10000E-03    101.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     27.703        48.159        .76076E-04   -1.4655    
  10  norm          .39821        1.5116        .17198E-03   -1.5582    
  11  Prefactor     8.0445        11.368        .14136E-03   -1.5141    
  12  Prefactor     29.977        27.311        .73172E-04   -1.4612    
  13  Prefactor     .10000E-03    40.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .99733        .72327E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    86.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    32.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.7186        2.3589        .28392E-03   -1.5117    
  18  Prefactor     .10000E-03    4.6097        .15522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.0315        2.6535        .94881E-04   -1.5306    
  20  Normalizat    .93627        .18375        .20166E-03   -.95197    
  21  Prefactor     .72035        .20284        .26000E-03   -1.0273    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0434e-08
Minuit parameter uncertainties:
  1  5.41491
  2  5.82756e-05
  3  1.44978e-06
  4  0.00150224
  5  6.78474
  6  3.9033
  7  7.16611
  8  0.000647461
  9  48.2264
  10  1.51176
  11  11.3711
  12  27.3222
  13  3.57883e-05
  14  1.45459e-06
  15  0.000666744
  16  3.82993e-05
  17  2.35895
  18  2.65029e-06
  19  2.65362
  20  0.183869
  21  0.203048
Done.

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

Extracting fit parameters...

4FGL J0228.0-3026
   Spectrum: PowerLaw
270    Prefactor:  2.770e+01  4.823e+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:  7.203e-01  2.030e-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.363e-01  1.839e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/430872/likelihoodResults_253065601_253324801_4FGL_J0228.0-3026_daily_bin53.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) = 5509.52992107
delta logL = 0.852478427041

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5509.52878227
delta logL = 0.853617219237

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2770       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3375       1.0000          .0000       10.000    
     3 'Normalizat'    .88773       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75259       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=   5509.529     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      327 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2945        99.469        .40055E-02    .27873E-03
   2  Index         3.3367        2.3912        .10279        .15486E-03
   3  Normalizat    .88748        .46573E-01    .44745E-01   -.38069E-05
   4  Prefactor     .75280        .51971E-01    .43097E-01    .11135E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.29453
  Index      = 3.33671
  Normalizat = 0.887485
  Prefactor  = 0.752802
 **********
 **   18 **HESSE 
 **********

 FCN=   5509.529     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      360 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2945        183.58        .13732E-03   -1.5206    
   2  Index         3.3367        3.7288        .36484E-02   -.33912    
   3  Normalizat    .88748        .18001        .20630E-03   -.96901    
   4  Prefactor     .75280        .20598        .25463E-03   -1.0149    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.35121e-07
Minuit parameter uncertainties:
  1  68.2176
  2  4.30085
  3  0.180131
  4  0.206195
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/430872': 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) = 5509.5287805
delta logL = 0.853618993742

Extracting fit parameters...

4FGL J0228.0-3026
   Spectrum: PowerLaw
270    Prefactor:  6.295e+00  6.822e+01  1.000e-04  1.000e+04 ( 1.000e-14)
271        Index:  3.337e+00  4.301e+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:  7.528e-01  2.062e-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.875e-01  1.801e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.18
Ra Dec: 37.014 -30.447
Photon Index (Free Index): 3.34 +/- 4.30
Photon Flux (Free Index): 5.45e-08 +/- 4.34e-08
Energy Flux (Free Index): 9.51e-06 +/- 1.40e-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/430872/cmap_HighResolution_253065601_253324801_4FGL_J0228.0-3026_daily_bin53.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.04e-03', comment='SUCCESS', energy_flux2='9.51e-06', dlogl='8.54e-01', photon_flux2='5.45e-08', job_status='DONE', time_completed='2021-08-16 00:14:30.615395', photon_index_error2='4.30', photon_index2='3.34', ts='0.41', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', photon_flux_upper_limit='7.93e-08', energy_flux_error2='1.40e-05', EG='0.94', time_epoch_completed='1629098070.62', return_code='0', job_id='430872', GAL2='0.75', EG2='0.89', return_code2='102', photon_flux_error2='4.34e-08', ts2='2.18', photon_index='2.20' WHERE bin_id='53' AND source_name='4FGL J0228.0-3026' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 00:14:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 430872: <4FGL_J0228.0-3026_daily_bin53> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0228.0-3026_daily_bin53 37.014 -30.447 253065601 253324801 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 :                                   740.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             313.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   817 sec.
    Turnaround time :                            834 sec.

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

