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


Performing analysis on: 4FGL_J0225.6-4502_daily_bin1269
RA = 36.4048, Dec = -45.0366
tmin = 568252801, tmax = 568512001
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='385526', job_status='RUN', time_executed='2021-08-15 21:39:14.238154', time_epoch_executed='1629088754.24' WHERE source_name='4FGL J0225.6-4502' and cadence='daily' and bin_id='1269'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/385526

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/385526/ft1_4FGL_J0225.6-4502_daily_bin1269.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/385526/ft2_4FGL_J0225.6-4502_daily_bin1269.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/385526/ft1_4FGL_J0225.6-4502_daily_bin1269.fits outfile=/scratch/kocevski/385526/ft1_filteredMKT_4FGL_J0225.6-4502_daily_bin1269.fits ra=36.4048 dec=-45.0366 rad=12.0 tmin=568252801.0 tmax=568512001.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 8.64
user 3.48
sys 5.03

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/385526/ft1_filtered_4FGL_J0225.6-4502_daily_bin1269.fits" evtable="EVENTS" scfile=/scratch/kocevski/385526/ft2_4FGL_J0225.6-4502_daily_bin1269.fits sctable="SC_DATA" outfile=/scratch/kocevski/385526/ltcube_568252801_568512001_4FGL_J0225.6-4502_daily_bin1269.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/385526/ft2_4FGL_J0225.6-4502_daily_bin1269.fits
.....................!
real 18.63
user 12.74
sys 5.79

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/385526/ft1_filtered_4FGL_J0225.6-4502_daily_bin1269.fits evtable="EVENTS" scfile=/scratch/kocevski/385526/ft2_4FGL_J0225.6-4502_daily_bin1269.fits sctable="SC_DATA" expcube=/scratch/kocevski/385526/ltcube_568252801_568512001_4FGL_J0225.6-4502_daily_bin1269.fits outfile=/scratch/kocevski/385526/expmap_568252801_568512001_4FGL_J0225.6-4502_daily_bin1269.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/385526/ltcube_568252801_568512001_4FGL_J0225.6-4502_daily_bin1269.fits
.....................!
real 197.99
user 186.42
sys 10.89

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/385526/ft1_filtered_4FGL_J0225.6-4502_daily_bin1269.fits scfile=/scratch/kocevski/385526/ft2_4FGL_J0225.6-4502_daily_bin1269.fits outfile=/scratch/kocevski/385526/cmap_568252801_568512001_4FGL_J0225.6-4502_daily_bin1269.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 5.35
user 0.38
sys 4.92

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/385526/ft1_filtered_4FGL_J0225.6-4502_daily_bin1269.fits scfile=/scratch/kocevski/385526/ft2_4FGL_J0225.6-4502_daily_bin1269.fits outfile=/scratch/kocevski/385526/cmap_HighResolution_568252801_568512001_4FGL_J0225.6-4502_daily_bin1269.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 5.33
user 0.40
sys 4.88

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/385526/ft1_filtered_4FGL_J0225.6-4502_daily_bin1269.fits evtable="EVENTS" scfile=/scratch/kocevski/385526/ft2_4FGL_J0225.6-4502_daily_bin1269.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/385526/Model_4FGL_J0225.6-4502_daily_bin1269.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/385526/ft1_filtered_4FGL_J0225.6-4502_daily_bin1269.fits.........................!
real 30.58
user 22.70
sys 7.58

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/385526/ft1_filtered_4FGL_J0225.6-4502_daily_bin1269.fits', '/scratch/kocevski/385526/ft2_4FGL_J0225.6-4502_daily_bin1269.fits', expMap='/scratch/kocevski/385526/expmap_568252801_568512001_4FGL_J0225.6-4502_daily_bin1269.fits', expCube='/scratch/kocevski/385526/ltcube_568252801_568512001_4FGL_J0225.6-4502_daily_bin1269.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/385526/Model_4FGL_J0225.6-4502_daily_bin1269.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/385526/ft1_filtered_4FGL_J0225.6-4502_daily_bin1269.fits
Spacecraft file(s): /scratch/kocevski/385526/ft2_4FGL_J0225.6-4502_daily_bin1269.fits
Exposure map: /scratch/kocevski/385526/expmap_568252801_568512001_4FGL_J0225.6-4502_daily_bin1269.fits
Exposure cube: /scratch/kocevski/385526/ltcube_568252801_568512001_4FGL_J0225.6-4502_daily_bin1269.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/385526/Model_4FGL_J0225.6-4502_daily_bin1269.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 621.788883669

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 617.384144497

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36648       1.0000         .10000E-03   10000.    
     2 'norm      '    .50542E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    72.640       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12368E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.3461       1.0000         .10000E-03   10000.    
     7 'norm      '    .12612E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.7559       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .32633       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .41037E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    57.938       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3604       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .61533E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    3.1983       1.0000         .10000E-03   10000.    
    15 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    149.47       1.0000         .10000E-03   10000.    
    17 'Prefactor '    33.058       1.0000         .10000E-03   10000.    
    18 'Prefactor '    207.04       1.0000         .10000E-03   10000.    
    19 'norm      '    .10151E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .87838       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.2587       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.8002       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .41191E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .14527       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .23454E-01   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1594       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .48384       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=   617.3754     FROM MIGRAD    STATUS=CONVERGED    213 CALLS      610 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    78.280       -.51550E-05** at limit **
   2  norm          .10001E-03    148.43        .11184E-04** at limit **
   3  Prefactor     74.038        62.010        .14047E-05   -.14895E-01
   4  Prefactor     .10000E-03    9.8184       -.10385E-04** at limit **
   5  Prefactor     .10000E-03    26.317       -.36716E-06** at limit **
   6  norm          .70052E-02    937.66       -.10573E-05   -.29345E-02
   7  norm          .10000E-03    12.166       -.12967E-05** at limit **
   8  Prefactor     8.3215        117.53       -.52674E-04    .26561E-02
   9  Prefactor     .10000E-03    115.91        .14924E-04** at limit **
  10  Prefactor     .10000E-03    82.106        .59918E-06** at limit **
  11  norm          57.625        38.402        .83934E-05   -.13262E-01
  12  Prefactor     .20739E-01    432.34        .66221E-04    .22166E-02
  13  Prefactor     .10003E-03    147.49        .26692E-05** at limit **
  14  norm          3.1983        1.0128         .0000         .0000    
  15  norm          .10000E-03    5.9272        .19383E-04** at limit **
  16  Prefactor     155.75        186.23       -.28555E-04   -.72603E-02
  17  Prefactor     33.214        61.766       -.17582E-06    .10792E-01
  18  Prefactor     203.39        63.102        .78332E-05   -.10073E-02
  19  norm          .10000E-03    4.5967       -.12682E-05** at limit **
  20  Prefactor     .10000E-03    349.66        .10304E-04** at limit **
  21  Prefactor     2.2587        1.0269         .0000         .0000    
  22  Prefactor     .24025E-02    692.03       -.31516E-04** at limit **
  23  Prefactor     .15462E-03    232.02        .29015E-04** at limit **
  24  Prefactor     .10007E-03    215.41       -.16660E-05** at limit **
  25  Prefactor     .23038E-03    202.26       -.12241E-04** at limit **
  26  Normalizat    1.1553        .66605        .79137E-05   -.15500E-04
  27  Prefactor     .48607        .63671       -.30195E-04   -.10180E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100014
  Prefactor  = 74.0376
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0070052
  norm       = 0.0001
  Prefactor  = 8.32151
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 57.6246
  Prefactor  = 0.0207385
  Prefactor  = 0.000100029
  norm       = 3.19835
  norm       = 0.0001
  Prefactor  = 155.751
  Prefactor  = 33.2138
  Prefactor  = 203.393
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 2.25874
  Prefactor  = 0.00240247
  Prefactor  = 0.000154622
  Prefactor  = 0.000100068
  Prefactor  = 0.000230385
  Normalizat = 1.15532
  Prefactor  = 0.486073
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   617.3754     FROM HESSE     STATUS=FAILED        61 CALLS      671 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    78.248        .10713E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10001E-03    147.71        .92727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     74.038        117.49        .11776E-02   -1.3985    
   4  Prefactor     .10000E-03    9.8054        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    26.293        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .70052E-02    1350.3        .48304E-02   -1.5725    
   7  norm          .10000E-03    12.158        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.3215        81.671        .35997E-02   -1.5131    
   9  Prefactor     .10000E-03    115.92        .10540E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    82.153        .92262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          57.625        43.661        .13176E-02   -1.4188    
  12  Prefactor     .20739E-01    6345.5        .66687E-02   -1.5679    
  13  Prefactor     .10003E-03    145.61        .93262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          551.78        548.50         .0000       -1.5350    
  15  norm          .10000E-03    .20571        .19383E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     155.75        1.0205       -.28555E-04   -1.3205    
  17  Prefactor     33.214        1.0025       -.17582E-06   -1.4555    
  18  Prefactor     203.39        .99135        .78332E-05   -1.2846    
  19  norm          .10000E-03    .20571       -.12682E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .40506        .10304E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.2587        1.0269         .0000       -1.5407    
  22  Prefactor     .24025E-02    .15168       -.31516E-04   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .15462E-03    .21284        .29015E-04   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10007E-03    .23643       -.16660E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .23038E-03    .20883       -.12241E-04   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1553        1.1204        .79137E-05   -.87995    
  27  Prefactor     .48607        .82643       -.30195E-04   -1.1262    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.06367e-09
Minuit parameter uncertainties:
  1  5.37657e-05
  2  0.00292847
  3  117.864
  4  1.15071e-05
  5  2.40421e-06
  6  6.25357
  7  1.41744e-06
  8  52.2322
  9  0.000393283
  10  8.64265e-05
  11  43.6853
  12  15.7114
  13  0.00411122
  14  1.01277
  15  2.79738e-06
  16  1.02049
  17  1.00246
  18  0.991349
  19  1.59033e-07
  20  5.38164e-05
  21  1.02688
  22  0.0373759
  23  0.00681936
  24  0.000253349
  25  0.0104363
  26  1.14495
  27  0.848259
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 617.375384165

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  2.074e-02  1.571e+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:  4.861e-01  8.483e-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.155e+00  1.145e+00  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/385526/likelihoodResults_568252801_568512001_4FGL_J0225.6-4502_daily_bin1269.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) = 617.375384164
delta logL = 2.62048160948e-10

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 617.375384164
delta logL = 5.24210008734e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20736E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4785       1.0000          .0000       10.000    
     3 'Normalizat'    1.1553       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .48607       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=   617.3754     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      292 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10691E-03    1124.6        .10351    ** at limit **
   2  Index         2.5331        5.0808        .50000       -.26948E-06
   3  Normalizat    1.1553        .28859E-01    .22945E-03   -.36170E-05
   4  Prefactor     .48608        .28890E-01    .34262E-03    .25931E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106912
  Index      = 2.53314
  Normalizat = 1.15533
  Prefactor  = 0.486083
 **********
 **   18 **HESSE 
 **********

 FCN=   617.3754     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      331 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10691E-03    1057.9        .10649       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5331        5.0273        .50000       -.51596    
   3  Normalizat    1.1553        .28529E-01    .91779E-05   -.87995    
   4  Prefactor     .48608        .28560E-01    .13705E-04   -1.1262    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.23444e-10
Minuit parameter uncertainties:
  1  0.174192
  2  9.2296
  3  0.0285292
  4  0.0285609
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/385526': 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) = 617.375381005
delta logL = 3.15981753829e-06

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  1.069e-04  1.742e-01  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  2.533e+00  9.230e+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:  4.861e-01  2.856e-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.155e+00  2.853e-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/385526/cmap_HighResolution_568252801_568512001_4FGL_J0225.6-4502_daily_bin1269.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.44e-02', job_status='DONE', photon_flux_upper_limit='7.00e-07', time_completed='2021-08-15 21:46:12.900576', job_id='385526', GAL2='0.49', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1629089172.9', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.49', dlogl='3.16e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='1269' AND source_name='4FGL J0225.6-4502' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 21:46:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0293>
Subject: Job 385526: <4FGL_J0225.6-4502_daily_bin1269> in cluster <slac> Done

Job <4FGL_J0225.6-4502_daily_bin1269> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Aug 15 21:35:35 2021
Job was executed on host(s) <bullet0293>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 21:36:17 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:36:17 2021
Terminated at Sun Aug 15 21:46:14 2021
Results reported at Sun Aug 15 21:46:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0225.6-4502_daily_bin1269 36.4048 -45.0366 568252801 568512001 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 :                                   490.43 sec.
    Max Memory :                                 1166 MB
    Average Memory :                             317.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   598 sec.
    Turnaround time :                            639 sec.

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

