/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 5 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 = 7030
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0225.6-4502_daily_bin477
RA = 36.4048, Dec = -45.0366
tmin = 362966401, tmax = 363225601
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='381621', job_status='RUN', time_executed='2021-08-15 21:24:54.507035', time_epoch_executed='1629087894.51' WHERE source_name='4FGL J0225.6-4502' and cadence='daily' and bin_id='477'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/381621

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/381621/ft1_4FGL_J0225.6-4502_daily_bin477.fits


Retrieving the FT1 file...

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

Retrieving 44 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/381621/ft2_4FGL_J0225.6-4502_daily_bin477.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/381621/ft1_4FGL_J0225.6-4502_daily_bin477.fits outfile=/scratch/kocevski/381621/ft1_filteredMKT_4FGL_J0225.6-4502_daily_bin477.fits ra=36.4048 dec=-45.0366 rad=12.0 tmin=362966401.0 tmax=363225601.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 7.21
user 5.79
sys 1.35

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/381621/ft2_4FGL_J0225.6-4502_daily_bin477.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/381621/ft2_4FGL_J0225.6-4502_daily_bin477.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/381621/ft1_filteredMKT_4FGL_J0225.6-4502_daily_bin477.fits evtable="EVENTS" outfile="/scratch/kocevski/381621/ft1_filtered_4FGL_J0225.6-4502_daily_bin477.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.64
user 0.33
sys 1.26

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/381621/ft1_filtered_4FGL_J0225.6-4502_daily_bin477.fits" evtable="EVENTS" scfile=/scratch/kocevski/381621/ft2_4FGL_J0225.6-4502_daily_bin477.fits sctable="SC_DATA" outfile=/scratch/kocevski/381621/ltcube_362966401_363225601_4FGL_J0225.6-4502_daily_bin477.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/381621/ft2_4FGL_J0225.6-4502_daily_bin477.fits
.....................!
real 12.91
user 11.28
sys 1.58

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/381621/ft1_filtered_4FGL_J0225.6-4502_daily_bin477.fits evtable="EVENTS" scfile=/scratch/kocevski/381621/ft2_4FGL_J0225.6-4502_daily_bin477.fits sctable="SC_DATA" expcube=/scratch/kocevski/381621/ltcube_362966401_363225601_4FGL_J0225.6-4502_daily_bin477.fits outfile=/scratch/kocevski/381621/expmap_362966401_363225601_4FGL_J0225.6-4502_daily_bin477.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/381621/ltcube_362966401_363225601_4FGL_J0225.6-4502_daily_bin477.fits
.....................!
real 192.95
user 185.69
sys 6.82

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 180 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 J0225.6-4502 @ 36.4048 -45.0366

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/381621/ft1_filtered_4FGL_J0225.6-4502_daily_bin477.fits scfile=/scratch/kocevski/381621/ft2_4FGL_J0225.6-4502_daily_bin477.fits outfile=/scratch/kocevski/381621/cmap_362966401_363225601_4FGL_J0225.6-4502_daily_bin477.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=36.4048 yref=-45.0366 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.63
user 0.39
sys 1.21

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/381621/ft1_filtered_4FGL_J0225.6-4502_daily_bin477.fits scfile=/scratch/kocevski/381621/ft2_4FGL_J0225.6-4502_daily_bin477.fits outfile=/scratch/kocevski/381621/cmap_HighResolution_362966401_363225601_4FGL_J0225.6-4502_daily_bin477.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=36.4048 yref=-45.0366 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.67
user 0.39
sys 1.24

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/381621/ft1_filtered_4FGL_J0225.6-4502_daily_bin477.fits evtable="EVENTS" scfile=/scratch/kocevski/381621/ft2_4FGL_J0225.6-4502_daily_bin477.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/381621/Model_4FGL_J0225.6-4502_daily_bin477.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/381621/ft1_filtered_4FGL_J0225.6-4502_daily_bin477.fits.....................!
real 98.47
user 95.38
sys 2.73

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/381621/ft1_filtered_4FGL_J0225.6-4502_daily_bin477.fits', '/scratch/kocevski/381621/ft2_4FGL_J0225.6-4502_daily_bin477.fits', expMap='/scratch/kocevski/381621/expmap_362966401_363225601_4FGL_J0225.6-4502_daily_bin477.fits', expCube='/scratch/kocevski/381621/ltcube_362966401_363225601_4FGL_J0225.6-4502_daily_bin477.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/381621/Model_4FGL_J0225.6-4502_daily_bin477.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0225.6-4502'

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  2.072e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  2.479e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
286        Scale:  1.057e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/381621/ft1_filtered_4FGL_J0225.6-4502_daily_bin477.fits
Spacecraft file(s): /scratch/kocevski/381621/ft2_4FGL_J0225.6-4502_daily_bin477.fits
Exposure map: /scratch/kocevski/381621/expmap_362966401_363225601_4FGL_J0225.6-4502_daily_bin477.fits
Exposure cube: /scratch/kocevski/381621/ltcube_362966401_363225601_4FGL_J0225.6-4502_daily_bin477.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/381621/Model_4FGL_J0225.6-4502_daily_bin477.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) = 4672.99125314

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    25.384       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.3811       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.1573       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.742       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10251E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.4923       1.0000         .10000E-03   10000.    
    11 'norm      '    5.1617       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.832       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .67505E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.7500       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    6.1621       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .15252E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.035       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.2566       1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.449       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.4545       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .94945       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1726       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4672.959     FROM MIGRAD    STATUS=CONVERGED    630 CALLS     3280 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.304       -.16456E-04** at limit **
   2  norm          25.383        15.004        .27576E-06    .57236E-04
   3  Prefactor     5.3994        43.744        .32241E-04   -.84670E-05
   4  Prefactor     5.1564        6.0294       -.11725E-05   -.24910E-03
   5  Prefactor     .10000E-03    10.495       -.46395E-05** at limit **
   6  norm          .10000E-03    63.009        .15170E-04** at limit **
   7  norm          .10000E-03    4.3869        .14057E-06** at limit **
   8  Prefactor     13.742        14.080       -.21477E-06   -.46185E-05
   9  Prefactor     .10000E-03    67.040       -.15690E-04** at limit **
  10  Prefactor     9.4921        6.1851       -.64116E-08    .48030E-04
  11  norm          5.1617        2.2762        .14498E-07    .12404E-03
  12  Prefactor     12.830        18.032        .60829E-06   -.36293E-04
  13  Prefactor     .10000E-03    33.315        .47626E-05** at limit **
  14  norm          .10000E-03    1.4254       -.61313E-07** at limit **
  15  norm          .64811E-01    1.3733       -.20392E-06    .22222E-03
  16  Prefactor     5.7500        11.711       -.22000E-06   -.48890E-04
  17  Prefactor     .10000E-03    7.7397        .63760E-06** at limit **
  18  Prefactor     .10000E-03    13.561        .18043E-04** at limit **
  19  norm          6.1621        1.9970        .23470E-07    .29012E-04
  20  Prefactor     .10004E-03    927.77       -.61406E-03** at limit **
  21  Prefactor     12.035        8.2537       -.88416E-07   -.39142E-04
  22  Prefactor     3.2575        19.372       -.49504E-06   -.85795E-04
  23  Prefactor     14.450        14.354        .58713E-06    .39672E-03
  24  Prefactor     .10000E-03    6.0919        .59447E-07** at limit **
  25  Prefactor     2.4525        50.533       -.26391E-05   -.48614E-04
  26  Normalizat    .94949        .21055       -.19266E-07    .43191E-03
  27  Prefactor     1.1726        .22352       -.73289E-06    .43520E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 25.3826
  Prefactor  = 5.39944
  Prefactor  = 5.15642
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 13.7419
  Prefactor  = 0.0001
  Prefactor  = 9.49213
  norm       = 5.16171
  Prefactor  = 12.8296
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0648114
  Prefactor  = 5.74995
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.16206
  Prefactor  = 0.000100036
  Prefactor  = 12.0349
  Prefactor  = 3.2575
  Prefactor  = 14.4497
  Prefactor  = 0.0001
  Prefactor  = 2.45248
  Normalizat = 0.949487
  Prefactor  = 1.17263
 **********
 **   18 **HESSE 
 **********

 FCN=   4672.959     FROM HESSE     STATUS=OK           490 CALLS     3770 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          25.383        15.007        .79510E-04   -1.4700    
   3  Prefactor     5.3994        43.502        .17324E-03   -1.5243    
   4  Prefactor     5.1564        6.0193        .17377E-03   -1.5254    
   5  Prefactor     .10000E-03    10.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    63.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.4276        .13977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.742        14.088        .10805E-03   -1.4966    
   9  Prefactor     .10000E-03    67.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.4921        6.1905        .13007E-03   -1.5092    
  11  norm          5.1617        2.2768        .63804E-04   -1.5254    
  12  Prefactor     12.830        17.995        .11182E-03   -1.4991    
  13  Prefactor     .10000E-03    33.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.4703        .15929E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .64811E-01    17.120        .15343E-02   -1.5657    
  16  Prefactor     5.7500        11.682        .16750E-03   -1.5228    
  17  Prefactor     .10000E-03    7.7408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6.1621        1.9966        .51468E-04   -1.5211    
  20  Prefactor     .10004E-03    927.92        .20458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.035        8.2056        .11547E-03   -1.5014    
  22  Prefactor     3.2575        19.088        .22442E-03   -1.5347    
  23  Prefactor     14.450        14.355        .52685E-03   -1.4948    
  24  Prefactor     .10000E-03    6.1854        .16471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.4525        50.733        .26108E-03   -1.5395    
  26  Normalizat    .94949        .24532        .26076E-03   -.94742    
  27  Prefactor     1.1726        .26318        .26433E-03   -.87178    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31061e-09
Minuit parameter uncertainties:
  1  1.44716e-05
  2  15.0097
  3  30.6822
  4  6.02006
  5  3.81123e-05
  6  2.97744e-05
  7  1.44935e-05
  8  14.0913
  9  0.000225726
  10  6.19096
  11  2.27685
  12  18.0023
  13  5.41704e-05
  14  2.40537e-06
  15  2.10571
  16  11.6864
  17  5.28986e-06
  18  5.08965e-06
  19  1.99665
  20  0.0116975
  21  8.20633
  22  15.778
  23  14.3588
  24  5.68531e-06
  25  22.3302
  26  0.245607
  27  0.263477
Done.

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

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  1.283e+01  1.800e+01  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  2.479e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
286        Scale:  1.057e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  1.173e+00  2.635e-01  0.000e+00  1.000e+01 ( 1.000e+00)
569        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
570        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  9.495e-01  2.456e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.71
Ra Dec: 36.405 -45.037
Photon Flux Upper Limit: 1.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.00e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/381621/likelihoodResults_362966401_363225601_4FGL_J0225.6-4502_daily_bin477.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) = 4672.79792724
delta logL = 0.161191027923

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4672.78255621
delta logL = 0.1765620625

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6459       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2071       1.0000          .0000       10.000    
     3 'Normalizat'    .92430       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1908       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+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=   4672.783     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      280 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6446        31.393        .16906E-03   -.54758E-03
   2  Index         3.2072        2.4703        .68465E-02   -.90082E-04
   3  Normalizat    .92433        .24400        .26379E-03   -.13227E-03
   4  Prefactor     1.1908        .26742        .26254E-03   -.21559E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.64463
  Index      = 3.20724
  Normalizat = 0.924327
  Prefactor  = 1.19082
 **********
 **   18 **HESSE 
 **********

 FCN=   4672.783     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6446        14.053        .67625E-05   -1.5233    
   2  Index         3.2072        1.3520        .27386E-03   -.36672    
   3  Normalizat    .92433        .24142        .10551E-04   -.95611    
   4  Prefactor     1.1908        .26461        .52508E-04   -.86614    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9521e-10
Minuit parameter uncertainties:
  1  14.0607
  2  1.37164
  3  0.241707
  4  0.264908
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/381621': 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) = 4672.78255619
delta logL = 0.17656208166

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  5.645e+00  1.406e+01  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  3.207e+00  1.372e+00  0.000e+00  1.000e+01 (-1.000e+00)
286        Scale:  1.057e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  1.191e+00  2.649e-01  0.000e+00  1.000e+01 ( 1.000e+00)
569        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
570        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  9.243e-01  2.417e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.08
Ra Dec: 36.405 -45.037
Photon Index (Free Index): 3.21 +/- 1.37
Photon Flux (Free Index): 4.94e-08 +/- 5.85e-08
Energy Flux (Free Index): 9.01e-06 +/- 1.02e-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/381621/cmap_HighResolution_362966401_363225601_4FGL_J0225.6-4502_daily_bin477.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.00e-02', comment='SUCCESS', energy_flux2='9.01e-06', dlogl='1.77e-01', photon_flux2='4.94e-08', job_status='DONE', time_completed='2021-08-15 21:37:21.198787', photon_index_error2='1.37', photon_index2='3.21', ts='0.71', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='1.29e-07', energy_flux_error2='1.02e-05', EG='0.95', time_epoch_completed='1629088641.2', return_code='0', job_id='381621', GAL2='1.19', EG2='0.92', return_code2='0', photon_flux_error2='5.85e-08', ts2='1.08', photon_index='2.48' WHERE bin_id='477' AND source_name='4FGL J0225.6-4502' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 21:37:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0140>
Subject: Job 381621: <4FGL_J0225.6-4502_daily_bin477> in cluster <slac> Done

Job <4FGL_J0225.6-4502_daily_bin477> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 15 21:21:28 2021
Job was executed on host(s) <bullet0140>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 21:24:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 21:24:19 2021
Terminated at Sun Aug 15 21:37:23 2021
Results reported at Sun Aug 15 21:37:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0225.6-4502_daily_bin477 36.4048 -45.0366 362966401 363225601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0225.6-4502 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   759.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            955 sec.

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

