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


Performing analysis on: 4FGL_J0225.6-4502_daily_bin743
RA = 36.4048, Dec = -45.0366
tmin = 431913601, tmax = 432172801
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='382902', job_status='RUN', time_executed='2021-08-15 21:29:37.708751', time_epoch_executed='1629088177.71' WHERE source_name='4FGL J0225.6-4502' and cadence='daily' and bin_id='743'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/382902

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/382902/ft1_4FGL_J0225.6-4502_daily_bin743.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/382902/ft2_4FGL_J0225.6-4502_daily_bin743.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/382902/ft1_4FGL_J0225.6-4502_daily_bin743.fits outfile=/scratch/kocevski/382902/ft1_filteredMKT_4FGL_J0225.6-4502_daily_bin743.fits ra=36.4048 dec=-45.0366 rad=12.0 tmin=431913601.0 tmax=432172801.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 10.91
user 4.99
sys 5.85

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/382902/ft1_filtered_4FGL_J0225.6-4502_daily_bin743.fits" evtable="EVENTS" scfile=/scratch/kocevski/382902/ft2_4FGL_J0225.6-4502_daily_bin743.fits sctable="SC_DATA" outfile=/scratch/kocevski/382902/ltcube_431913601_432172801_4FGL_J0225.6-4502_daily_bin743.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/382902/ft2_4FGL_J0225.6-4502_daily_bin743.fits
.....................!
real 21.60
user 14.93
sys 6.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/382902/ft1_filtered_4FGL_J0225.6-4502_daily_bin743.fits evtable="EVENTS" scfile=/scratch/kocevski/382902/ft2_4FGL_J0225.6-4502_daily_bin743.fits sctable="SC_DATA" expcube=/scratch/kocevski/382902/ltcube_431913601_432172801_4FGL_J0225.6-4502_daily_bin743.fits outfile=/scratch/kocevski/382902/expmap_431913601_432172801_4FGL_J0225.6-4502_daily_bin743.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/382902/ltcube_431913601_432172801_4FGL_J0225.6-4502_daily_bin743.fits
.....................!
real 198.67
user 186.61
sys 11.58

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/382902/ft1_filtered_4FGL_J0225.6-4502_daily_bin743.fits scfile=/scratch/kocevski/382902/ft2_4FGL_J0225.6-4502_daily_bin743.fits outfile=/scratch/kocevski/382902/cmap_431913601_432172801_4FGL_J0225.6-4502_daily_bin743.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 6.01
user 0.39
sys 5.60

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/382902/ft1_filtered_4FGL_J0225.6-4502_daily_bin743.fits scfile=/scratch/kocevski/382902/ft2_4FGL_J0225.6-4502_daily_bin743.fits outfile=/scratch/kocevski/382902/cmap_HighResolution_431913601_432172801_4FGL_J0225.6-4502_daily_bin743.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 6.06
user 0.40
sys 5.60

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/382902/ft1_filtered_4FGL_J0225.6-4502_daily_bin743.fits evtable="EVENTS" scfile=/scratch/kocevski/382902/ft2_4FGL_J0225.6-4502_daily_bin743.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/382902/Model_4FGL_J0225.6-4502_daily_bin743.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/382902/ft1_filtered_4FGL_J0225.6-4502_daily_bin743.fits.....................!
real 72.31
user 63.52
sys 8.51

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.605       1.0000         .10000E-03   10000.    
     2 'norm      '    8.7836       1.0000         .10000E-03   10000.    
     3 'Prefactor '    53.019       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.1067       1.0000         .10000E-03   10000.    
     6 'norm      '    .22068E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.3371       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.3471       1.0000         .10000E-03   10000.    
    11 'norm      '    2.7324       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.384       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.8137       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-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 '    33.880       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .95704       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .69311       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=   3011.687     FROM MIGRAD    STATUS=CONVERGED    663 CALLS     3284 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.603        29.313         .0000        .58425E-04
   2  norm          8.7831        9.8827         .0000       -.13001E-03
   3  Prefactor     53.019        44.913         .0000       -.83159E-04
   4  Prefactor     .10000E-03    2.6738         .0000    ** at limit **
   5  Prefactor     4.1084        8.9066         .0000        .40349E-02
   6  norm          .10000E-03    139.85         .0000    ** at limit **
   7  norm          .10000E-03    5.8381         .0000    ** at limit **
   8  Prefactor     .10000E-03    4.4769         .0000    ** at limit **
   9  Prefactor     6.3425        22.776         .0000        .12293E-03
  10  Prefactor     3.3456        5.4026         .0000        .31619E-03
  11  norm          2.7321        2.0153         .0000        .28177E-04
  12  Prefactor     .10000E-03    16.312         .0000    ** at limit **
  13  Prefactor     .10000E-03    10.991         .0000    ** at limit **
  14  norm          .10000E-03    1.9644         .0000    ** at limit **
  15  norm          .10000E-03    1.3502         .0000    ** at limit **
  16  Prefactor     10.385        16.002         .0000       -.10883E-03
  17  Prefactor     .10000E-03    7.5765         .0000    ** at limit **
  18  Prefactor     .10000E-03    31.459         .0000    ** at limit **
  19  norm          .10000E-03    .76700         .0000    ** at limit **
  20  Prefactor     .10000E-03    71.358         .0000    ** at limit **
  21  Prefactor     3.8135        5.5086         .0000        .11124E-03
  22  Prefactor     .10000E-03    11.410         .0000    ** at limit **
  23  Prefactor     .10000E-03    7.1759         .0000    ** at limit **
  24  Prefactor     .10000E-03    4.5436         .0000    ** at limit **
  25  Prefactor     33.879        26.497         .0000        .96537E-05
  26  Normalizat    .95717        .20292         .0000       -.13445E-04
  27  Prefactor     .69290        .20949         .0000       -.93586E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.6034
  norm       = 8.78308
  Prefactor  = 53.0192
  Prefactor  = 0.0001
  Prefactor  = 4.10836
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.34255
  Prefactor  = 3.34562
  norm       = 2.73209
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10.3851
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.81355
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.879
  Normalizat = 0.957165
  Prefactor  = 0.692901
 **********
 **   18 **HESSE 
 **********

 FCN=   3011.687     FROM HESSE     STATUS=OK           482 CALLS     3766 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.603        29.408        .12303E-03   -1.5057    
   2  norm          8.7831        9.8819        .13525E-03   -1.5115    
   3  Prefactor     53.019        44.938        .55083E-04   -1.4250    
   4  Prefactor     .10000E-03    2.6785        .87627E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.1084        8.8529        .99466E-03   -1.5303    
   6  norm          .10000E-03    140.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    5.8569        .25604E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.4795        .11341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.3425        22.631        .15945E-03   -1.5204    
  10  Prefactor     3.3456        5.3864        .15140E-03   -1.5342    
  11  norm          2.7321        2.0117        .61248E-04   -1.5377    
  12  Prefactor     .10000E-03    16.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.996        .17771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.0361        .15008E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.3962        .12448E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.385        16.143        .12434E-03   -1.5063    
  17  Prefactor     .10000E-03    7.5774        .14755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    31.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .79691        .93481E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    71.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.8135        5.5025        .14891E-03   -1.5317    
  22  Prefactor     .10000E-03    11.680        .18099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.1771        .14359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.6130        .11423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     33.879        26.532        .68845E-04   -1.4543    
  26  Normalizat    .95717        .24287        .19815E-03   -.94480    
  27  Prefactor     .69290        .24823        .24915E-03   -1.0381    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62921e-10
Minuit parameter uncertainties:
  1  29.4479
  2  9.88372
  3  44.9669
  4  2.43375e-06
  5  8.85577
  6  0.000181302
  7  1.4553e-06
  8  2.95738e-06
  9  22.6617
  10  5.38717
  11  2.01172
  12  8.45282e-06
  13  1.92937e-06
  14  2.35949e-06
  15  8.84765e-07
  16  16.1497
  17  3.58721e-06
  18  2.81424e-06
  19  1.31118e-06
  20  0.000130688
  21  5.50322
  22  1.30833e-05
  23  1.41518e-06
  24  5.34628e-06
  25  26.5417
  26  0.243149
  27  0.24863
Done.

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

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  8.453e-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.929e-01  2.486e-01  0.000e+00  1.000e+01 ( 1.000e+00)
569        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
570        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  9.572e-01  2.431e-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: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/382902/likelihoodResults_431913601_432172801_4FGL_J0225.6-4502_daily_bin743.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) = 3011.68730197
delta logL = -0.000291124661089

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3011.687011
delta logL = -1.62562628248e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3760       1.0000          .0000       10.000    
     3 'Normalizat'    .95717       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69291       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=   3011.687     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      226 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    735.60        .90712E-02** at limit **
   2  Index         2.3811        6.0073        .50000       -.30452E-05
   3  Normalizat    .95716        .35310E-01    .45628E-01   -.31678E-04
   4  Prefactor     .69290        .38495E-01    .42307E-01   -.64694E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.38114
  Normalizat = 0.957165
  Prefactor  = 0.692902
 **********
 **   18 **HESSE 
 **********

 FCN=   3011.687     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      259 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1856.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3811        8.1291        .50000       -.55127    
   3  Normalizat    .95716        .65318E-01    .19815E-03   -.94480    
   4  Prefactor     .69290        .71216E-01    .24915E-03   -1.0381    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.85002e-09
Minuit parameter uncertainties:
  1  0.000284527
  2  47.7036
  3  0.0653236
  4  0.0712256
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/382902': 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) = 3011.68701093
delta logL = -8.74924808159e-08

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  2.845e-04  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  2.381e+00  4.770e+01  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.929e-01  7.123e-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:  9.572e-01  6.532e-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/382902/cmap_HighResolution_431913601_432172801_4FGL_J0225.6-4502_daily_bin743.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.92e-03', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-08-15 21:40:46.573984', job_id='382902', GAL2='0.69', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1629088846.57', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='-8.75e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='743' AND source_name='4FGL J0225.6-4502' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 21:40:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 382902: <4FGL_J0225.6-4502_daily_bin743> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0225.6-4502_daily_bin743 36.4048 -45.0366 431913601 432172801 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 :                                   752.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            907 sec.

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

