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


Performing analysis on: 4FGL_J0225.6-4502_daily_bin1593
RA = 36.4048, Dec = -45.0366
tmin = 652233601, tmax = 652492801
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='325117', job_status='RUN', time_executed='2021-09-05 00:01:17.094252', time_epoch_executed='1630825277.09' WHERE source_name='4FGL J0225.6-4502' and cadence='daily' and bin_id='1593'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/325117

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/325117/ft1_4FGL_J0225.6-4502_daily_bin1593.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/325117/ft2_4FGL_J0225.6-4502_daily_bin1593.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/325117/ft1_4FGL_J0225.6-4502_daily_bin1593.fits outfile=/scratch/kocevski/325117/ft1_filteredMKT_4FGL_J0225.6-4502_daily_bin1593.fits ra=36.4048 dec=-45.0366 rad=12.0 tmin=652233601.0 tmax=652492801.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.44
user 4.22
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/325117/ft1_filtered_4FGL_J0225.6-4502_daily_bin1593.fits" evtable="EVENTS" scfile=/scratch/kocevski/325117/ft2_4FGL_J0225.6-4502_daily_bin1593.fits sctable="SC_DATA" outfile=/scratch/kocevski/325117/ltcube_652233601_652492801_4FGL_J0225.6-4502_daily_bin1593.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/325117/ft2_4FGL_J0225.6-4502_daily_bin1593.fits
.....................!
real 11.98
user 11.57
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/325117/ft1_filtered_4FGL_J0225.6-4502_daily_bin1593.fits evtable="EVENTS" scfile=/scratch/kocevski/325117/ft2_4FGL_J0225.6-4502_daily_bin1593.fits sctable="SC_DATA" expcube=/scratch/kocevski/325117/ltcube_652233601_652492801_4FGL_J0225.6-4502_daily_bin1593.fits outfile=/scratch/kocevski/325117/expmap_652233601_652492801_4FGL_J0225.6-4502_daily_bin1593.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/325117/ltcube_652233601_652492801_4FGL_J0225.6-4502_daily_bin1593.fits
.....................!
real 192.26
user 186.89
sys 4.96

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/325117/ft1_filtered_4FGL_J0225.6-4502_daily_bin1593.fits scfile=/scratch/kocevski/325117/ft2_4FGL_J0225.6-4502_daily_bin1593.fits outfile=/scratch/kocevski/325117/cmap_652233601_652492801_4FGL_J0225.6-4502_daily_bin1593.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 0.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/325117/ft1_filtered_4FGL_J0225.6-4502_daily_bin1593.fits scfile=/scratch/kocevski/325117/ft2_4FGL_J0225.6-4502_daily_bin1593.fits outfile=/scratch/kocevski/325117/cmap_HighResolution_652233601_652492801_4FGL_J0225.6-4502_daily_bin1593.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 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/325117/ft1_filtered_4FGL_J0225.6-4502_daily_bin1593.fits evtable="EVENTS" scfile=/scratch/kocevski/325117/ft2_4FGL_J0225.6-4502_daily_bin1593.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/325117/Model_4FGL_J0225.6-4502_daily_bin1593.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/325117/ft1_filtered_4FGL_J0225.6-4502_daily_bin1593.fits.....................!
real 113.60
user 111.57
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/325117/ft1_filtered_4FGL_J0225.6-4502_daily_bin1593.fits', '/scratch/kocevski/325117/ft2_4FGL_J0225.6-4502_daily_bin1593.fits', expMap='/scratch/kocevski/325117/expmap_652233601_652492801_4FGL_J0225.6-4502_daily_bin1593.fits', expCube='/scratch/kocevski/325117/ltcube_652233601_652492801_4FGL_J0225.6-4502_daily_bin1593.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/325117/Model_4FGL_J0225.6-4502_daily_bin1593.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/325117/ft1_filtered_4FGL_J0225.6-4502_daily_bin1593.fits
Spacecraft file(s): /scratch/kocevski/325117/ft2_4FGL_J0225.6-4502_daily_bin1593.fits
Exposure map: /scratch/kocevski/325117/expmap_652233601_652492801_4FGL_J0225.6-4502_daily_bin1593.fits
Exposure cube: /scratch/kocevski/325117/ltcube_652233601_652492801_4FGL_J0225.6-4502_daily_bin1593.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/325117/Model_4FGL_J0225.6-4502_daily_bin1593.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) = 5764.97587061

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    5.1168       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.8130       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    52.467       1.0000         .10000E-03   10000.    
     7 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.3839       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6266       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.7266       1.0000         .10000E-03   10000.    
    11 'norm      '    .41844       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.360       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    84.448       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    71.939       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .91559       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .12158E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    49.239       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .70280       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .89375       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=   5764.937     FROM MIGRAD    STATUS=CONVERGED    609 CALLS     3685 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.5892        .46190E-06** at limit **
   2  norm          5.1166        5.3924        .11015E-06   -.28837E-04
   3  Prefactor     .10000E-03    8.7683       -.83689E-06** at limit **
   4  Prefactor     3.8125        3.7237        .25339E-05   -.91867E-03
   5  Prefactor     .10000E-03    2.5228        .12957E-06** at limit **
   6  norm          52.475        45.367        .14746E-05    .11216E-03
   7  norm          .10000E-03    1.4096        .79744E-08** at limit **
   8  Prefactor     7.3836        6.6914       -.10385E-06   -.26022E-04
   9  Prefactor     4.6264        14.323        .65985E-06    .32287E-05
  10  Prefactor     5.7267        3.3224       -.19010E-07    .18161E-04
  11  norm          .41840        .52279        .13130E-07   -.10400E-03
  12  Prefactor     .10000E-03    7.7278        .60488E-06** at limit **
  13  Prefactor     .10000E-03    7.0124        .46296E-06** at limit **
  14  norm          .10000E-03    .70003       -.36009E-07** at limit **
  15  norm          .10000E-03    .82986       -.41692E-07** at limit **
  16  Prefactor     12.359        8.2187        .69612E-07   -.62986E-04
  17  Prefactor     .10000E-03    5.9024       -.66263E-06** at limit **
  18  Prefactor     84.457        44.539        .14341E-05    .11827E-03
  19  norm          .10000E-03    .24772        .44621E-07** at limit **
  20  Prefactor     71.794        211.51       -.22862E-04   -.10498E-03
  21  Prefactor     .91508        4.0400        .16730E-05   -.18166E-03
  22  Prefactor     .10000E-03    2.5331       -.68804E-07** at limit **
  23  Prefactor     .10000E-03    4.8903       -.31228E-06** at limit **
  24  Prefactor     .10001E-03    3.4369        .11664E-05** at limit **
  25  Prefactor     49.244        22.117        .88854E-06    .19404E-03
  26  Normalizat    .70287        .13372       -.73997E-06   -.15937E-03
  27  Prefactor     .89369        .15018        .21786E-07   -.23332E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.11663
  Prefactor  = 0.0001
  Prefactor  = 3.81247
  Prefactor  = 0.0001
  norm       = 52.4748
  norm       = 0.0001
  Prefactor  = 7.38355
  Prefactor  = 4.62637
  Prefactor  = 5.72666
  norm       = 0.418399
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 12.359
  Prefactor  = 0.0001
  Prefactor  = 84.4566
  norm       = 0.0001
  Prefactor  = 71.7944
  Prefactor  = 0.915079
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 49.2444
  Normalizat = 0.702874
  Prefactor  = 0.893691
 **********
 **   18 **HESSE 
 **********

 FCN=   5764.937     FROM HESSE     STATUS=OK           484 CALLS     4169 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.5983        .15896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.1166        5.3879        .17588E-03   -1.5256    
   3  Prefactor     .10000E-03    8.8087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.8125        3.8799        .72905E-03   -1.5317    
   5  Prefactor     .10000E-03    2.5409        .11774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          52.475        45.529        .55370E-04   -1.4258    
   7  norm          .10000E-03    1.4158        .87671E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.3836        6.6882        .14760E-03   -1.5164    
   9  Prefactor     4.6264        14.267        .18712E-03   -1.5278    
  10  Prefactor     5.7267        3.3212        .10220E-03   -1.5229    
  11  norm          .41840        .49425        .59523E-03   -1.5579    
  12  Prefactor     .10000E-03    7.8003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.0285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.1618        .12289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .84743        .67461E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.359        8.2190        .11394E-03   -1.5005    
  17  Prefactor     .10000E-03    5.9117        .18022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     84.457        44.722        .21857E-03   -1.3867    
  19  norm          .10000E-03    .25424        .73691E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     71.794        224.24        .23666E-03   -1.4011    
  21  Prefactor     .91508        4.1620        .28997E-03   -1.5517    
  22  Prefactor     .10000E-03    2.5372        .11800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.8965        .16406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10001E-03    7.3437        .26925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     49.244        22.174        .57148E-04   -1.4303    
  26  Normalizat    .70287        .15789        .21265E-03   -1.0378    
  27  Prefactor     .89369        .17721        .21576E-03   -.96362    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13818e-09
Minuit parameter uncertainties:
  1  2.87788e-05
  2  5.38843
  3  8.43148e-05
  4  3.88018
  5  3.01636e-06
  6  45.559
  7  3.02693e-06
  8  6.68892
  9  14.2771
  10  3.32128
  11  0.494258
  12  3.97814e-05
  13  3.25764e-05
  14  5.15889e-06
  15  1.95477e-06
  16  8.21976
  17  3.24195e-05
  18  44.7402
  19  8.3609e-10
  20  226.963
  21  3.90334
  22  7.48633e-06
  23  2.79351e-05
  24  0.00041016
  25  22.1773
  26  0.157996
  27  0.177328
Done.

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

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  3.978e-05  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:  8.937e-01  1.773e-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:  7.029e-01  1.580e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 36.405 -45.037
Photon Flux Upper Limit: 5.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/325117/likelihoodResults_652233601_652492801_4FGL_J0225.6-4502_daily_bin1593.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) = 5764.93802045
delta logL = -0.000611032250163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5764.93740945
delta logL = -3.23871063301e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4758       1.0000          .0000       10.000    
     3 'Normalizat'    .70285       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89373       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.

 FCN=   5764.937     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      201 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    336.98        .90712E-02** at limit **
   2  Index         2.4731        5.6883        .50000        .29534E-05
   3  Normalizat    .70287        .22739E-01    .42329E-01    .42875E-04
   4  Prefactor     .89369        .25920E-01    .44925E-01    .26668E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.47307
  Normalizat = 0.702873
  Prefactor  = 0.893692
 **********
 **   18 **HESSE 
 **********

 FCN=   5764.937     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4731        6.2206        .50000       -.52983    
   3  Normalizat    .70287        .15332        .21265E-03   -1.0378    
   4  Prefactor     .89369        .17488        .21576E-03   -.96362    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56188e-11
Minuit parameter uncertainties:
  1  1.24429e-05
  2  4.97813
  3  0.153417
  4  0.174993
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/325117': 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) = 5764.93740942
delta logL = 3.86353349313e-09

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  1.244e-05  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  2.473e+00  4.978e+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:  8.937e-01  1.750e-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:  7.029e-01  1.534e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 36.405 -45.037

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/325117/cmap_HighResolution_652233601_652492801_4FGL_J0225.6-4502_daily_bin1593.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.98e-03', job_status='DONE', photon_flux_upper_limit='5.12e-08', time_completed='2021-09-05 00:14:49.140368', job_id='325117', GAL2='0.89', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1630826089.14', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='3.86e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='1593' AND source_name='4FGL J0225.6-4502' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 00:14:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 325117: <4FGL_J0225.6-4502_daily_bin1593> in cluster <slac> Done

Job <4FGL_J0225.6-4502_daily_bin1593> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 00:00:51 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 00:00:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 00:00:53 2021
Terminated at Sun Sep  5 00:14:49 2021
Results reported at Sun Sep  5 00:14:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0225.6-4502_daily_bin1593 36.4048 -45.0366 652233601 652492801 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 :                                   813.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             382.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            838 sec.

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

