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


Performing analysis on: 4FGL_J0225.6-4502_daily_bin1474
RA = 36.4048, Dec = -45.0366
tmin = 621388801, tmax = 621648001
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='386856', job_status='RUN', time_executed='2021-08-15 21:41:52.343395', time_epoch_executed='1629088912.34' WHERE source_name='4FGL J0225.6-4502' and cadence='daily' and bin_id='1474'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/386856

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/386856/ft1_4FGL_J0225.6-4502_daily_bin1474.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/386856/ft2_4FGL_J0225.6-4502_daily_bin1474.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/386856/ft1_4FGL_J0225.6-4502_daily_bin1474.fits outfile=/scratch/kocevski/386856/ft1_filteredMKT_4FGL_J0225.6-4502_daily_bin1474.fits ra=36.4048 dec=-45.0366 rad=12.0 tmin=621388801.0 tmax=621648001.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.09
user 3.05
sys 0.98

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/386856/ft2_4FGL_J0225.6-4502_daily_bin1474.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/386856/ft1_filteredMKT_4FGL_J0225.6-4502_daily_bin1474.fits evtable="EVENTS" outfile="/scratch/kocevski/386856/ft1_filtered_4FGL_J0225.6-4502_daily_bin1474.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.31
user 0.34
sys 0.92

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/386856/ft1_filtered_4FGL_J0225.6-4502_daily_bin1474.fits" evtable="EVENTS" scfile=/scratch/kocevski/386856/ft2_4FGL_J0225.6-4502_daily_bin1474.fits sctable="SC_DATA" outfile=/scratch/kocevski/386856/ltcube_621388801_621648001_4FGL_J0225.6-4502_daily_bin1474.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/386856/ft2_4FGL_J0225.6-4502_daily_bin1474.fits
.....................!
real 15.84
user 14.48
sys 1.22

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/386856/ft1_filtered_4FGL_J0225.6-4502_daily_bin1474.fits evtable="EVENTS" scfile=/scratch/kocevski/386856/ft2_4FGL_J0225.6-4502_daily_bin1474.fits sctable="SC_DATA" expcube=/scratch/kocevski/386856/ltcube_621388801_621648001_4FGL_J0225.6-4502_daily_bin1474.fits outfile=/scratch/kocevski/386856/expmap_621388801_621648001_4FGL_J0225.6-4502_daily_bin1474.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/386856/ltcube_621388801_621648001_4FGL_J0225.6-4502_daily_bin1474.fits
.....................!
real 192.17
user 185.82
sys 5.61

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/386856/ft1_filtered_4FGL_J0225.6-4502_daily_bin1474.fits scfile=/scratch/kocevski/386856/ft2_4FGL_J0225.6-4502_daily_bin1474.fits outfile=/scratch/kocevski/386856/cmap_621388801_621648001_4FGL_J0225.6-4502_daily_bin1474.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.33
user 0.39
sys 0.91

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/386856/ft1_filtered_4FGL_J0225.6-4502_daily_bin1474.fits scfile=/scratch/kocevski/386856/ft2_4FGL_J0225.6-4502_daily_bin1474.fits outfile=/scratch/kocevski/386856/cmap_HighResolution_621388801_621648001_4FGL_J0225.6-4502_daily_bin1474.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.32
user 0.39
sys 0.91

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/386856/ft1_filtered_4FGL_J0225.6-4502_daily_bin1474.fits evtable="EVENTS" scfile=/scratch/kocevski/386856/ft2_4FGL_J0225.6-4502_daily_bin1474.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/386856/Model_4FGL_J0225.6-4502_daily_bin1474.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/386856/ft1_filtered_4FGL_J0225.6-4502_daily_bin1474.fits.....................!
real 85.82
user 83.15
sys 2.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2511       1.0000         .10000E-03   10000.    
     2 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    46.818       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .21502E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.780       1.0000         .10000E-03   10000.    
    11 'norm      '    7.0004       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .16047       1.0000         .10000E-03   10000.    
    15 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    32.266       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10816E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.5950       1.0000         .10000E-03   10000.    
    20 'Prefactor '    161.94       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.7547       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.2644       1.0000         .10000E-03   10000.    
    25 'Prefactor '    29.137       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.6138       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .61335       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=   3997.169     FROM MIGRAD    STATUS=CONVERGED    651 CALLS     3236 TOTAL
                     EDM=   .51E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2447        87.494        .57098E-05   -.96144E-06
   2  norm          .10000E-03    14.180       -.56737E-06** at limit **
   3  Prefactor     46.750        61.286        .71883E-05    .23190E-04
   4  Prefactor     .10000E-03    4.3708       -.44170E-06** at limit **
   5  Prefactor     .10000E-03    4.3904        .52060E-06** at limit **
   6  norm          .10000E-03    359.73       -.16604E-06** at limit **
   7  norm          .10000E-03    4.1685       -.50782E-07** at limit **
   8  Prefactor     .10000E-03    12.061       -.84447E-06** at limit **
   9  Prefactor     .10000E-03    26.130       -.93580E-07** at limit **
  10  Prefactor     13.779        9.1985        .35234E-07   -.15626E-04
  11  norm          6.9991        3.0018        .11551E-07   -.44491E-04
  12  Prefactor     .10000E-03    4.7844       -.79677E-07** at limit **
  13  Prefactor     .10000E-03    6.5537       -.15823E-07** at limit **
  14  norm          .15799        1.7151        .49741E-06   -.29967E-03
  15  norm          .10000E-03    1.8306        .21153E-07** at limit **
  16  Prefactor     32.270        19.026        .55758E-06    .10357E-04
  17  Prefactor     .10000E-03    8.4279        .36679E-07** at limit **
  18  Prefactor     .10000E-03    35.083        .68580E-07** at limit **
  19  norm          1.5947        1.2920       -.37376E-08   -.61437E-04
  20  Prefactor     162.05        203.90       -.97574E-05   -.83593E-05
  21  Prefactor     7.7551        5.6361        .47641E-07    .28820E-05
  22  Prefactor     .10000E-03    4.3644       -.45331E-06** at limit **
  23  Prefactor     .10000E-03    12.974        .12083E-05** at limit **
  24  Prefactor     1.2640        4.7321        .82529E-05   -.24495E-04
  25  Prefactor     29.114        29.017       -.17910E-05   -.14508E-04
  26  Normalizat    1.6139        .25004       -.14527E-06   -.49604E-05
  27  Prefactor     .61337        .25553       -.14864E-05    .43024E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.24471
  norm       = 0.0001
  Prefactor  = 46.7499
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.7792
  norm       = 6.99909
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.15799
  norm       = 0.0001
  Prefactor  = 32.2696
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.59471
  Prefactor  = 162.046
  Prefactor  = 7.75514
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.26397
  Prefactor  = 29.1136
  Normalizat = 1.61392
  Prefactor  = 0.613366
 **********
 **   18 **HESSE 
 **********

 FCN=   3997.169     FROM HESSE     STATUS=OK           484 CALLS     3720 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2447        87.764        .11231E-02   -1.5348    
   2  norm          .10000E-03    14.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     46.750        61.327        .58600E-04   -1.4339    
   4  Prefactor     .10000E-03    4.3805        .12915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.4004        .12935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    367.93        .20163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.1941        .12605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    26.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.779        9.2152        .10790E-03   -1.4965    
  11  norm          6.9991        3.0105        .63828E-04   -1.5179    
  12  Prefactor     .10000E-03    4.7859        .13506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.5541        .15809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .15799        11.494        .15600E-02   -1.5628    
  15  norm          .10000E-03    1.8521        .83499E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     32.270        19.045        .70541E-04   -1.4571    
  17  Prefactor     .10000E-03    8.4286        .17928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    35.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.5947        1.2946        .61384E-04   -1.5455    
  20  Prefactor     162.05        203.91        .15845E-03   -1.3155    
  21  Prefactor     7.7551        5.6381        .12353E-03   -1.5151    
  22  Prefactor     .10000E-03    4.3683        .12899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    12.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.2640        4.7341        .13030E-02   -1.5483    
  25  Prefactor     29.114        29.132        .74222E-04   -1.4628    
  26  Normalizat    1.6139        .29575        .22514E-03   -.74626    
  27  Prefactor     .61337        .29941        .35698E-03   -1.0703    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.55262e-10
Minuit parameter uncertainties:
  1  33.8047
  2  2.02737e-06
  3  61.4102
  4  3.44208e-05
  5  2.99483e-06
  6  5.24111e-05
  7  8.73724e-06
  8  6.77306e-05
  9  5.0606e-05
  10  9.21611
  11  3.01059
  12  5.19152e-06
  13  2.66571e-06
  14  2.69478
  15  2.07468e-06
  16  19.0487
  17  5.57641e-06
  18  3.22785e-05
  19  1.29462
  20  204.806
  21  5.63846
  22  1.68555e-06
  23  1.49665e-05
  24  4.73549
  25  29.1461
  26  0.296068
  27  0.30019
Done.

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

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  5.192e-06  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:  6.134e-01  3.002e-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:  1.614e+00  2.961e-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: 6.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/386856/likelihoodResults_621388801_621648001_4FGL_J0225.6-4502_daily_bin1474.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3997.16982755
delta logL = -0.000899734205177

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3997.1689276
delta logL = 2.14454757952e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4567       1.0000          .0000       10.000    
     3 'Normalizat'    1.6139       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61335       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=   3997.169     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      263 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.684        .13825E-01** at limit **
   2  Index         1.7054        8.0886        .50000        .27671E-07
   3  Normalizat    1.6139        .12120E-01    .22514E-03   -.25630E-02
   4  Prefactor     .61336        .12542E-01    .35698E-03   -.16165E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.70539
  Normalizat = 1.61391
  Prefactor  = 0.613359
 **********
 **   18 **HESSE 
 **********

 FCN=   3997.169     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      292 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    241.31        .16936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7054        5.7469        .50000       -.71939    
   3  Normalizat    1.6139        .35184E-01    .45029E-04   -.74626    
   4  Prefactor     .61336        .36410E-01    .71396E-04   -1.0703    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.29989e-09
Minuit parameter uncertainties:
  1  0.000293563
  2  896.674
  3  0.0351842
  4  0.0364114
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/386856': 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) = 3997.16892402
delta logL = 3.7955874177e-06

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  2.936e-04  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  1.705e+00  8.967e+02  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:  6.134e-01  3.641e-02  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:  1.614e+00  3.518e-02  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/386856/cmap_HighResolution_621388801_621648001_4FGL_J0225.6-4502_daily_bin1474.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.88e-03', job_status='DONE', photon_flux_upper_limit='6.29e-08', time_completed='2021-08-15 21:53:25.095224', job_id='386856', GAL2='0.61', fit_tolerance='1e-08', EG2='1.61', EG='1.61', time_epoch_completed='1629089605.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='3.80e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='1474' AND source_name='4FGL J0225.6-4502' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 21:53:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 386856: <4FGL_J0225.6-4502_daily_bin1474> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0225.6-4502_daily_bin1474 36.4048 -45.0366 621388801 621648001 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 :                                   681.23 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             341.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   745 sec.
    Turnaround time :                            777 sec.

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

