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


Performing analysis on: 4FGL_J0225.6-4502_daily_bin1583
RA = 36.4048, Dec = -45.0366
tmin = 649641601, tmax = 649900801
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='387025', job_status='RUN', time_executed='2021-08-15 21:43:33.568577', time_epoch_executed='1629089013.57' WHERE source_name='4FGL J0225.6-4502' and cadence='daily' and bin_id='1583'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/387025

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/387025/ft1_4FGL_J0225.6-4502_daily_bin1583.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/387025/ft2_4FGL_J0225.6-4502_daily_bin1583.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/387025/ft1_4FGL_J0225.6-4502_daily_bin1583.fits outfile=/scratch/kocevski/387025/ft1_filteredMKT_4FGL_J0225.6-4502_daily_bin1583.fits ra=36.4048 dec=-45.0366 rad=12.0 tmin=649641601.0 tmax=649900801.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 3.18
user 1.94
sys 1.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/387025/ft2_4FGL_J0225.6-4502_daily_bin1583.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/387025/ft1_filteredMKT_4FGL_J0225.6-4502_daily_bin1583.fits evtable="EVENTS" outfile="/scratch/kocevski/387025/ft1_filtered_4FGL_J0225.6-4502_daily_bin1583.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.49
user 0.31
sys 1.11

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/387025/ft1_filtered_4FGL_J0225.6-4502_daily_bin1583.fits" evtable="EVENTS" scfile=/scratch/kocevski/387025/ft2_4FGL_J0225.6-4502_daily_bin1583.fits sctable="SC_DATA" outfile=/scratch/kocevski/387025/ltcube_649641601_649900801_4FGL_J0225.6-4502_daily_bin1583.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/387025/ft2_4FGL_J0225.6-4502_daily_bin1583.fits
.....................!
real 15.25
user 13.73
sys 1.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/387025/ft1_filtered_4FGL_J0225.6-4502_daily_bin1583.fits evtable="EVENTS" scfile=/scratch/kocevski/387025/ft2_4FGL_J0225.6-4502_daily_bin1583.fits sctable="SC_DATA" expcube=/scratch/kocevski/387025/ltcube_649641601_649900801_4FGL_J0225.6-4502_daily_bin1583.fits outfile=/scratch/kocevski/387025/expmap_649641601_649900801_4FGL_J0225.6-4502_daily_bin1583.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/387025/ltcube_649641601_649900801_4FGL_J0225.6-4502_daily_bin1583.fits
.....................!
real 161.30
user 154.36
sys 5.48

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/387025/ft1_filtered_4FGL_J0225.6-4502_daily_bin1583.fits scfile=/scratch/kocevski/387025/ft2_4FGL_J0225.6-4502_daily_bin1583.fits outfile=/scratch/kocevski/387025/cmap_649641601_649900801_4FGL_J0225.6-4502_daily_bin1583.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.47
user 0.35
sys 1.09

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/387025/ft1_filtered_4FGL_J0225.6-4502_daily_bin1583.fits scfile=/scratch/kocevski/387025/ft2_4FGL_J0225.6-4502_daily_bin1583.fits outfile=/scratch/kocevski/387025/cmap_HighResolution_649641601_649900801_4FGL_J0225.6-4502_daily_bin1583.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.43
user 0.35
sys 1.06

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/387025/ft1_filtered_4FGL_J0225.6-4502_daily_bin1583.fits evtable="EVENTS" scfile=/scratch/kocevski/387025/ft2_4FGL_J0225.6-4502_daily_bin1583.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/387025/Model_4FGL_J0225.6-4502_daily_bin1583.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/387025/ft1_filtered_4FGL_J0225.6-4502_daily_bin1583.fits.....................!
real 83.92
user 81.11
sys 2.35

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10451E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.2623       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.6425       1.0000         .10000E-03   10000.    
     9 'Prefactor '    88.929       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.2168       1.0000         .10000E-03   10000.    
    11 'norm      '    2.1574       1.0000         .10000E-03   10000.    
    12 'Prefactor '    28.652       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.4607       1.0000         .10000E-03   10000.    
    15 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    29.467       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    54.581       1.0000         .10000E-03   10000.    
    19 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    136.71       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11229E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    26.230       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .83750       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.5151       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5002.911     FROM MIGRAD    STATUS=CONVERGED    101 CALLS     3369 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10982E-03    42.438        .18659E-04** at limit **
   2  norm          .10053E-03    11.382       -.21893E-04** at limit **
   3  Prefactor     .10000E-03    13.358       -.23263E-04** at limit **
   4  Prefactor     2.2623        3.9283       -.36319E-05   -.21247E-03
   5  Prefactor     .10000E-03    3.7696       -.11793E-06** at limit **
   6  norm          .10046E-03    24.019        .34021E-04** at limit **
   7  norm          .10000E-03    3.8726        .21640E-05** at limit **
   8  Prefactor     3.6428        1.0127       -.14523E-06    .43338E-05
   9  Prefactor     88.933        1.2833        .50484E-06   -.28063E-02
  10  Prefactor     4.2168        1.0330       -.11334E-06   -.21830E-04
  11  norm          2.1578        2.1714       -.58346E-06    .86547E-04
  12  Prefactor     28.650        1.0256       -.22909E-06    .34270E-03
  13  Prefactor     .10024E-03    13.511        .30360E-04** at limit **
  14  norm          1.4608        2.3103       -.73569E-06   -.98893E-04
  15  norm          .10000E-03    .91068        .63973E-06** at limit **
  16  Prefactor     29.467        1.0009        .38375E-07   -.61335E-04
  17  Prefactor     .10001E-03    11.233       -.81432E-05** at limit **
  18  Prefactor     54.572        2.0044       -.14019E-05    .48423E-02
  19  norm          .10000E-03    .49496       -.10437E-05** at limit **
  20  Prefactor     136.71        1.0046       -.50417E-07    .46715E-03
  21  Prefactor     .10000E-03    2.0558        .48793E-06** at limit **
  22  Prefactor     .11310E-03    60.173       -.49212E-04** at limit **
  23  Prefactor     .10000E-03    8.3764        .14885E-05** at limit **
  24  Prefactor     .10000E-03    4.1412       -.58324E-06** at limit **
  25  Prefactor     26.233        1.0198        .16333E-06   -.15907E-03
  26  Normalizat    .83771        .25377       -.31713E-05    .22145E-04
  27  Prefactor     1.5149        .28540       -.20766E-05    .37953E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000109821
  norm       = 0.000100533
  Prefactor  = 0.000100001
  Prefactor  = 2.2623
  Prefactor  = 0.0001
  norm       = 0.000100464
  norm       = 0.0001
  Prefactor  = 3.64283
  Prefactor  = 88.9329
  Prefactor  = 4.21681
  norm       = 2.15781
  Prefactor  = 28.6499
  Prefactor  = 0.000100243
  norm       = 1.4608
  norm       = 0.0001
  Prefactor  = 29.4667
  Prefactor  = 0.000100008
  Prefactor  = 54.5723
  norm       = 0.0001
  Prefactor  = 136.711
  Prefactor  = 0.0001
  Prefactor  = 0.000113096
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.2326
  Normalizat = 0.837708
  Prefactor  = 1.51487
 **********
 **   18 **HESSE 
 **********

 FCN=   5002.911     FROM HESSE     STATUS=OK           544 CALLS     3913 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10982E-03    73.709        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10053E-03    17.876        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    23.925        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.2623        3.9560        .68275E-02   -1.5407    
   5  Prefactor     .10000E-03    3.7640        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10046E-03    30.005        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.8638        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.6428        15.096        .52917E-02   -1.5326    
   9  Prefactor     88.933        48.458        .10652E-02   -1.3819    
  10  Prefactor     4.2168        6.9489        .49060E-02   -1.5297    
  11  norm          2.1578        2.3828        .70117E-02   -1.5414    
  12  Prefactor     28.650        24.640        .18712E-02   -1.4637    
  13  Prefactor     .10024E-03    15.189        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.4608        2.3380        .89003E-02   -1.5466    
  15  norm          .10000E-03    .90607        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     29.467        18.886        .18452E-02   -1.4622    
  17  Prefactor     .10001E-03    11.260        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     54.572        48.865        .13573E-02   -1.4229    
  19  norm          .10000E-03    .47990        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     136.71        200.21        .86117E-03   -1.3364    
  21  Prefactor     .10000E-03    2.0505        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .11310E-03    12.300        .90712E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.3754        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.1239        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     26.233        24.845        .19555E-02   -1.4683    
  26  Normalizat    .83771        .22240        .65922E-01   -.98685    
  27  Prefactor     1.5149        .23641        .56882E-01   -.77124    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.97083e-07
Minuit parameter uncertainties:
  1  0.0538779
  2  0.00617761
  3  0.000338479
  4  3.95648
  5  7.04514e-06
  6  0.00746439
  7  9.26269e-06
  8  14.8375
  9  48.4792
  10  6.95022
  11  2.38286
  12  24.6484
  13  0.00384683
  14  2.33815
  15  5.9356e-07
  16  18.8896
  17  0.000590101
  18  48.9013
  19  1.34206e-06
  20  201.211
  21  1.1663e-06
  22  0.0253886
  23  3.354e-05
  24  8.91619e-06
  25  24.8551
  26  0.222642
  27  0.23658
Done.

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

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  2.865e+01  2.465e+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.515e+00  2.366e-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:  8.377e-01  2.226e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.96
Ra Dec: 36.405 -45.037
Photon Index (Fixed Index): 2.48 +/- 0.00
Photon Flux (Fixed Index): 6.70e-08 +/- 5.76e-08
Energy Flux (Fixed Index): 1.99e-05 +/- 1.71e-05

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

Saving results to:
/scratch/kocevski/387025/likelihoodResults_649641601_649900801_4FGL_J0225.6-4502_daily_bin1583.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) = 5002.33724639
delta logL = 0.573291738431

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5002.32022559
delta logL = 0.590312540001

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8690       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4646       1.0000          .0000       10.000    
     3 'Normalizat'    .77078       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5706       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=   5002.320     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      291 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8679        151.87        .12001E-03   -.11248E-02
   2  Index         3.4648        3.9535        .40319E-02   -.37300E-03
   3  Normalizat    .77081        .28892        .30242E-03   -.34600E-03
   4  Prefactor     1.5705        .32401        .24772E-03   -.41055E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.86786
  Index      = 3.46482
  Normalizat = 0.770809
  Prefactor  = 1.5705
 **********
 **   18 **HESSE 
 **********

 FCN=   5002.320     FROM HESSE     STATUS=OK            25 CALLS      316 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8679        16.970        .48006E-05   -1.5147    
   2  Index         3.4648        1.1309        .16127E-03   -.31208    
   3  Normalizat    .77081        .26471        .12097E-04   -1.0116    
   4  Prefactor     1.5705        .29129        .49544E-04   -.75584    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35693e-09
Minuit parameter uncertainties:
  1  16.9804
  2  1.1418
  3  0.265152
  4  0.291597
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/387025': 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) = 5002.32022546
delta logL = 0.590312669113

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  7.868e+00  1.698e+01  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  3.465e+00  1.142e+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.570e+00  2.916e-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.708e-01  2.652e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.31
Ra Dec: 36.405 -45.037
Photon Index (Free Index): 3.46 +/- 1.14
Photon Flux (Free Index): 1.13e-07 +/- 7.62e-08
Energy Flux (Free Index): 1.90e-05 +/- 1.27e-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/387025/cmap_HighResolution_649641601_649900801_4FGL_J0225.6-4502_daily_bin1583.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.40e-02', comment='SUCCESS', photon_flux='6.70e-08', energy_flux2='1.90e-05', photon_flux_error='5.76e-08', dlogl='5.90e-01', energy_flux='1.99e-05', photon_flux2='1.13e-07', job_status='DONE', time_completed='2021-08-15 21:54:25.569369', photon_index_error2='1.14', photon_index2='3.46', ts='1.96', fit_tolerance='1e-08', GAL='1.51', photon_index_error='0.00', photon_flux_upper_limit='1.80e-07', energy_flux_error2='1.27e-05', EG='0.84', time_epoch_completed='1629089665.57', return_code='0', job_id='387025', GAL2='1.57', EG2='0.77', return_code2='0', energy_flux_error='1.71e-05', photon_flux_error2='7.62e-08', ts2='3.31', photon_index='2.48' WHERE bin_id='1583' AND source_name='4FGL J0225.6-4502' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 21:54:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0033>
Subject: Job 387025: <4FGL_J0225.6-4502_daily_bin1583> in cluster <slac> Done

Job <4FGL_J0225.6-4502_daily_bin1583> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 15 21:40:37 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 21:41:47 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:41:47 2021
Terminated at Sun Aug 15 21:54:26 2021
Results reported at Sun Aug 15 21:54:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0225.6-4502_daily_bin1583 36.4048 -45.0366 649641601 649900801 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 :                                   655.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             302.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   761 sec.
    Turnaround time :                            829 sec.

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

