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


Performing analysis on: 4FGL_J0225.6-4502_daily_bin806
RA = 36.4048, Dec = -45.0366
tmin = 448243201, tmax = 448502401
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='382993', job_status='RUN', time_executed='2021-08-15 21:29:29.721621', time_epoch_executed='1629088169.72' WHERE source_name='4FGL J0225.6-4502' and cadence='daily' and bin_id='806'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/382993

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/382993/ft1_4FGL_J0225.6-4502_daily_bin806.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/382993/ft2_4FGL_J0225.6-4502_daily_bin806.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/382993/ft1_4FGL_J0225.6-4502_daily_bin806.fits outfile=/scratch/kocevski/382993/ft1_filteredMKT_4FGL_J0225.6-4502_daily_bin806.fits ra=36.4048 dec=-45.0366 rad=12.0 tmin=448243201.0 tmax=448502401.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.28
user 4.95
sys 3.05

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/382993/ft2_4FGL_J0225.6-4502_daily_bin806.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/382993/ft1_filteredMKT_4FGL_J0225.6-4502_daily_bin806.fits evtable="EVENTS" outfile="/scratch/kocevski/382993/ft1_filtered_4FGL_J0225.6-4502_daily_bin806.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 3.74
user 0.36
sys 2.92

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/382993/ft1_filtered_4FGL_J0225.6-4502_daily_bin806.fits" evtable="EVENTS" scfile=/scratch/kocevski/382993/ft2_4FGL_J0225.6-4502_daily_bin806.fits sctable="SC_DATA" outfile=/scratch/kocevski/382993/ltcube_448243201_448502401_4FGL_J0225.6-4502_daily_bin806.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/382993/ft2_4FGL_J0225.6-4502_daily_bin806.fits
.....................!
real 17.32
user 13.52
sys 3.46

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/382993/ft1_filtered_4FGL_J0225.6-4502_daily_bin806.fits evtable="EVENTS" scfile=/scratch/kocevski/382993/ft2_4FGL_J0225.6-4502_daily_bin806.fits sctable="SC_DATA" expcube=/scratch/kocevski/382993/ltcube_448243201_448502401_4FGL_J0225.6-4502_daily_bin806.fits outfile=/scratch/kocevski/382993/expmap_448243201_448502401_4FGL_J0225.6-4502_daily_bin806.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/382993/ltcube_448243201_448502401_4FGL_J0225.6-4502_daily_bin806.fits
.....................!
real 195.12
user 186.94
sys 7.76

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/382993/ft1_filtered_4FGL_J0225.6-4502_daily_bin806.fits scfile=/scratch/kocevski/382993/ft2_4FGL_J0225.6-4502_daily_bin806.fits outfile=/scratch/kocevski/382993/cmap_448243201_448502401_4FGL_J0225.6-4502_daily_bin806.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 3.27
user 0.40
sys 2.80

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/382993/ft1_filtered_4FGL_J0225.6-4502_daily_bin806.fits scfile=/scratch/kocevski/382993/ft2_4FGL_J0225.6-4502_daily_bin806.fits outfile=/scratch/kocevski/382993/cmap_HighResolution_448243201_448502401_4FGL_J0225.6-4502_daily_bin806.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 3.29
user 0.40
sys 2.85

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/382993/ft1_filtered_4FGL_J0225.6-4502_daily_bin806.fits evtable="EVENTS" scfile=/scratch/kocevski/382993/ft2_4FGL_J0225.6-4502_daily_bin806.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/382993/Model_4FGL_J0225.6-4502_daily_bin806.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/382993/ft1_filtered_4FGL_J0225.6-4502_daily_bin806.fits.....................!
real 88.69
user 83.59
sys 4.82

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    56.777       1.0000         .10000E-03   10000.    
     2 'norm      '    13.280       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.678       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.0425       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.5126       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.0008       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.3187       1.0000         .10000E-03   10000.    
    11 'norm      '    3.4631       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.6977       1.0000         .10000E-03   10000.    
    15 'norm      '    .10121E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.3675       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    49.796       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .88437       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0706       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=   4082.990     FROM MIGRAD    STATUS=CONVERGED    665 CALLS     2854 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     56.780        28.035       -.46274E-07   -.32482E-04
   2  norm          13.281        10.770        .35671E-06   -.29949E-03
   3  Prefactor     10.682        36.860        .43153E-06    .93284E-05
   4  Prefactor     .10000E-03    3.1795       -.47387E-07** at limit **
   5  Prefactor     .10000E-03    2.1998       -.10398E-09** at limit **
   6  norm          .10000E-03    20.086       -.44690E-05** at limit **
   7  norm          2.0435        3.5734       -.25710E-07   -.10532E-03
   8  Prefactor     3.5106        12.967        .52517E-05   -.61078E-03
   9  Prefactor     5.9972        18.303        .87617E-06    .16654E-04
  10  Prefactor     3.3194        6.1204        .19625E-06   -.12099E-03
  11  norm          3.4628        2.0605        .25911E-07   -.32321E-03
  12  Prefactor     .10000E-03    5.3204        .84970E-07** at limit **
  13  Prefactor     .10000E-03    7.6969       -.11641E-06** at limit **
  14  norm          2.6979        2.4312        .48494E-07   -.11687E-03
  15  norm          .10000E-03    3.1049        .37901E-06** at limit **
  16  Prefactor     .10001E-03    20.737        .83493E-05** at limit **
  17  Prefactor     .10000E-03    26.087       -.45403E-05** at limit **
  18  Prefactor     .10000E-03    51.080        .14321E-05** at limit **
  19  norm          .10000E-03    .57853        .67902E-07** at limit **
  20  Prefactor     .10000E-03    208.22       -.26372E-05** at limit **
  21  Prefactor     2.3665        5.8356        .36272E-06   -.18319E-03
  22  Prefactor     .10000E-03    5.5922       -.31074E-06** at limit **
  23  Prefactor     .10000E-03    8.5636        .13689E-06** at limit **
  24  Prefactor     .10000E-03    2.2448        .46290E-08** at limit **
  25  Prefactor     49.797        28.332        .89918E-07   -.14341E-04
  26  Normalizat    .88428        .20763       -.79416E-06   -.20671E-03
  27  Prefactor     1.0706        .22577       -.29646E-06   -.17522E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 56.7796
  norm       = 13.2806
  Prefactor  = 10.6817
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100004
  norm       = 2.0435
  Prefactor  = 3.51063
  Prefactor  = 5.99723
  Prefactor  = 3.31943
  norm       = 3.46283
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.69788
  norm       = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.36646
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.7967
  Normalizat = 0.884283
  Prefactor  = 1.07063
 **********
 **   18 **HESSE 
 **********

 FCN=   4082.990     FROM HESSE     STATUS=OK           482 CALLS     3336 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     56.780        28.023        .53239E-04   -1.4199    
   2  norm          13.281        10.845        .54958E-03   -1.4979    
   3  Prefactor     10.682        36.888        .12261E-03   -1.5054    
   4  Prefactor     .10000E-03    3.1939        .11121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.2025        .92548E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    20.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.0435        3.5291        .14667E-03   -1.5422    
   8  Prefactor     3.5106        19.870        .10785E-02   -1.5333    
   9  Prefactor     5.9972        18.184        .16391E-03   -1.5218    
  10  Prefactor     3.3194        6.0946        .19375E-03   -1.5344    
  11  norm          3.4628        2.0494        .62737E-04   -1.5336    
  12  Prefactor     .10000E-03    5.3303        .14394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.7021        .17315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.6979        2.4201        .90366E-04   -1.5379    
  15  norm          .10000E-03    5.7447        .21329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    22.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    26.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    51.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .80236        .93830E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    208.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.3665        5.8413        .23029E-03   -1.5400    
  22  Prefactor     .10000E-03    5.6065        .14756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.5699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.2482        .93498E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     49.797        28.348        .56829E-04   -1.4295    
  26  Normalizat    .88428        .24215        .23688E-03   -.97015    
  27  Prefactor     1.0706        .26618        .24333E-03   -.90411    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.81125e-09
Minuit parameter uncertainties:
  1  28.029
  2  10.8468
  3  36.9668
  4  3.5532e-06
  5  3.68815e-07
  6  0.000557358
  7  3.52948
  8  16.7124
  9  18.2013
  10  6.0957
  11  2.04948
  12  3.0659e-06
  13  1.03352e-05
  14  2.42021
  15  2.03603e-05
  16  0.000977738
  17  0.000643482
  18  0.000280046
  19  3.55271e-06
  20  0.00104313
  21  5.84271
  22  1.9419e-05
  23  1.13297e-05
  24  3.51502e-07
  25  28.356
  26  0.242444
  27  0.266512
Done.

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

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  3.066e-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:  1.071e+00  2.665e-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.843e-01  2.424e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/382993/likelihoodResults_448243201_448502401_4FGL_J0225.6-4502_daily_bin806.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) = 4082.9911957
delta logL = -0.000888891100203

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4082.9903067
delta logL = 1.08292624645e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4516       1.0000          .0000       10.000    
     3 'Normalizat'    .88434       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0706       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=   4082.990     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      240 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10350E-03    5.8406        .14811E-01** at limit **
   2  Index         2.3552        7.0610        .50000        .35031E-04
   3  Normalizat    .88428        .47138E-02    .23688E-03   -.37675E-04
   4  Prefactor     1.0706        .53051E-02    .24333E-03   -.33873E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103501
  Index      = 2.35521
  Normalizat = 0.884284
  Prefactor  = 1.07063
 **********
 **   18 **HESSE 
 **********

 FCN=   4082.990     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10350E-03    70.831        .15325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3552        5.4241        .50000       -.55737    
   3  Normalizat    .88428        .16583E-01    .94751E-05   -.97015    
   4  Prefactor     1.0706        .18663E-01    .97333E-05   -.90411    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.61632e-08
Minuit parameter uncertainties:
  1  0.0315325
  2  320.849
  3  0.0165828
  4  0.0186633
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/382993': 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) = 4082.99030597
delta logL = 8.32643308968e-07

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  1.035e-04  3.153e-02  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  2.355e+00  3.208e+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:  1.071e+00  1.866e-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:  8.843e-01  1.658e-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/382993/cmap_HighResolution_448243201_448502401_4FGL_J0225.6-4502_daily_bin806.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.58e-03', job_status='DONE', photon_flux_upper_limit='5.90e-08', time_completed='2021-08-15 21:41:02.561808', job_id='382993', GAL2='1.07', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1629088862.56', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='8.33e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='806' AND source_name='4FGL J0225.6-4502' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 21:41:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 382993: <4FGL_J0225.6-4502_daily_bin806> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0225.6-4502_daily_bin806 36.4048 -45.0366 448243201 448502401 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 :                                   731.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   754 sec.
    Turnaround time :                            917 sec.

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

