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


Performing analysis on: 4FGL_J0225.6-4502_daily_bin1006
RA = 36.4048, Dec = -45.0366
tmin = 500083201, tmax = 500342401
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='384085', job_status='RUN', time_executed='2021-08-15 21:32:29.764074', time_epoch_executed='1629088349.76' WHERE source_name='4FGL J0225.6-4502' and cadence='daily' and bin_id='1006'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384085

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384085/ft1_4FGL_J0225.6-4502_daily_bin1006.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384085/ft2_4FGL_J0225.6-4502_daily_bin1006.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384085/ft1_4FGL_J0225.6-4502_daily_bin1006.fits outfile=/scratch/kocevski/384085/ft1_filteredMKT_4FGL_J0225.6-4502_daily_bin1006.fits ra=36.4048 dec=-45.0366 rad=12.0 tmin=500083201.0 tmax=500342401.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.25
user 5.41
sys 2.73

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/384085/ft2_4FGL_J0225.6-4502_daily_bin1006.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/384085/ft1_filteredMKT_4FGL_J0225.6-4502_daily_bin1006.fits evtable="EVENTS" outfile="/scratch/kocevski/384085/ft1_filtered_4FGL_J0225.6-4502_daily_bin1006.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.10
user 0.35
sys 2.63

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/384085/ft1_filtered_4FGL_J0225.6-4502_daily_bin1006.fits" evtable="EVENTS" scfile=/scratch/kocevski/384085/ft2_4FGL_J0225.6-4502_daily_bin1006.fits sctable="SC_DATA" outfile=/scratch/kocevski/384085/ltcube_500083201_500342401_4FGL_J0225.6-4502_daily_bin1006.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/384085/ft2_4FGL_J0225.6-4502_daily_bin1006.fits
.....................!
real 18.08
user 14.82
sys 3.13

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384085/ft1_filtered_4FGL_J0225.6-4502_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/384085/ft2_4FGL_J0225.6-4502_daily_bin1006.fits sctable="SC_DATA" expcube=/scratch/kocevski/384085/ltcube_500083201_500342401_4FGL_J0225.6-4502_daily_bin1006.fits outfile=/scratch/kocevski/384085/expmap_500083201_500342401_4FGL_J0225.6-4502_daily_bin1006.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/384085/ltcube_500083201_500342401_4FGL_J0225.6-4502_daily_bin1006.fits
.....................!
real 200.20
user 188.82
sys 8.99

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/384085/ft1_filtered_4FGL_J0225.6-4502_daily_bin1006.fits scfile=/scratch/kocevski/384085/ft2_4FGL_J0225.6-4502_daily_bin1006.fits outfile=/scratch/kocevski/384085/cmap_500083201_500342401_4FGL_J0225.6-4502_daily_bin1006.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 2.98
user 0.37
sys 2.58

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/384085/ft1_filtered_4FGL_J0225.6-4502_daily_bin1006.fits scfile=/scratch/kocevski/384085/ft2_4FGL_J0225.6-4502_daily_bin1006.fits outfile=/scratch/kocevski/384085/cmap_HighResolution_500083201_500342401_4FGL_J0225.6-4502_daily_bin1006.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.06
user 0.39
sys 2.58

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/384085/ft1_filtered_4FGL_J0225.6-4502_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/384085/ft2_4FGL_J0225.6-4502_daily_bin1006.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/384085/Model_4FGL_J0225.6-4502_daily_bin1006.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/384085/ft1_filtered_4FGL_J0225.6-4502_daily_bin1006.fits......................!
real 64.00
user 59.02
sys 4.49

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    64.740       1.0000         .10000E-03   10000.    
     7 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.4606       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .18224E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.4029       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.559       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    94.375       1.0000         .10000E-03   10000.    
    19 'norm      '    1.5489       1.0000         .10000E-03   10000.    
    20 'Prefactor '    162.24       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.416       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    20.334       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2272       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .46415       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=   2530.457     FROM MIGRAD    STATUS=CONVERGED    640 CALLS     3279 TOTAL
                     EDM=   .66E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.483        .10006E-04** at limit **
   2  norm          .10000E-03    7.2096        .34762E-05** at limit **
   3  Prefactor     .10000E-03    21.263       -.11174E-04** at limit **
   4  Prefactor     .10000E-03    3.5285       -.14011E-06** at limit **
   5  Prefactor     .10000E-03    9.1555        .25618E-05** at limit **
   6  norm          64.748        80.315        .79249E-05   -.33028E-05
   7  norm          .10000E-03    3.6803        .29680E-06** at limit **
   8  Prefactor     8.4609        16.467        .72203E-06   -.25662E-04
   9  Prefactor     .10000E-03    130.19       -.36122E-05** at limit **
  10  Prefactor     .10000E-03    3.8357       -.17604E-06** at limit **
  11  norm          7.4027        3.0329        .93320E-07   -.16254E-03
  12  Prefactor     .10000E-03    13.491        .88935E-06** at limit **
  13  Prefactor     .10000E-03    37.383        .38769E-05** at limit **
  14  norm          .10000E-03    3.2690        .81312E-07** at limit **
  15  norm          .10000E-03    1.1097       -.85507E-07** at limit **
  16  Prefactor     21.557        18.575        .12011E-05   -.27793E-04
  17  Prefactor     .10000E-03    11.276       -.52130E-05** at limit **
  18  Prefactor     94.391        86.085        .14341E-04   -.13542E-05
  19  norm          1.5491        1.2960        .15752E-07   -.64315E-04
  20  Prefactor     162.29        261.95        .43417E-04   -.45743E-06
  21  Prefactor     10.419        7.8514        .36348E-06    .11796E-04
  22  Prefactor     .10000E-03    7.4712       -.48291E-05** at limit **
  23  Prefactor     .10000E-03    9.8287        .18492E-05** at limit **
  24  Prefactor     .10000E-03    2.6472        .29821E-07** at limit **
  25  Prefactor     20.342        30.007        .29836E-05   -.86709E-05
  26  Normalizat    1.2269        .24922       -.21720E-05    .18048E-04
  27  Prefactor     .46413        .25139       -.20607E-05   -.75645E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 64.7479
  norm       = 0.0001
  Prefactor  = 8.46091
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.40271
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 21.5568
  Prefactor  = 0.0001
  Prefactor  = 94.391
  norm       = 1.54913
  Prefactor  = 162.294
  Prefactor  = 10.4186
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.3416
  Normalizat = 1.22692
  Prefactor  = 0.46413
 **********
 **   18 **HESSE 
 **********

 FCN=   2530.457     FROM HESSE     STATUS=OK           476 CALLS     3755 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    7.2355        .13193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.5336        .92284E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.2042        .14866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          64.748        80.328        .24938E-03   -1.4097    
   7  norm          .10000E-03    3.6922        .94245E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.4609        16.475        .13782E-03   -1.5126    
   9  Prefactor     .10000E-03    131.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.8412        .96172E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.4027        3.0348        .53003E-04   -1.5164    
  12  Prefactor     .10000E-03    13.533        .18046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    37.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.3950        .17734E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.1118        .51748E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     21.557        18.570        .86264E-04   -1.4779    
  17  Prefactor     .10000E-03    11.286        .16506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     94.391        86.173        .41371E-04   -1.3762    
  19  norm          1.5491        1.2968        .49780E-04   -1.5459    
  20  Prefactor     162.29        261.97        .15831E-03   -1.3153    
  21  Prefactor     10.419        7.8487        .11735E-03   -1.5062    
  22  Prefactor     .10000E-03    7.4782        .13420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9.8328        .15406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.6494        .79936E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     20.342        30.057        .88823E-04   -1.4806    
  26  Normalizat    1.2269        .28064        .19634E-03   -.85775    
  27  Prefactor     .46413        .27981        .31774E-03   -1.1365    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61113e-10
Minuit parameter uncertainties:
  1  1.30744e-05
  2  2.53567e-06
  3  1.31843e-05
  4  4.13108e-06
  5  1.35839e-05
  6  80.4632
  7  5.82701e-06
  8  16.4835
  9  0.000421364
  10  4.98631e-07
  11  3.0349
  12  6.61853e-06
  13  3.75248e-05
  14  2.15439e-05
  15  4.28699e-06
  16  18.5747
  17  1.35389e-05
  18  86.2873
  19  1.29687
  20  263.885
  21  7.84949
  22  1.07414e-05
  23  4.24411e-06
  24  1.74846e-06
  25  30.0797
  26  0.280988
  27  0.280644
Done.

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

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  6.619e-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:  4.641e-01  2.806e-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.227e+00  2.810e-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.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/384085/likelihoodResults_500083201_500342401_4FGL_J0225.6-4502_daily_bin1006.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) = 2530.45776713
delta logL = -0.000351484511611

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2530.45741562
delta logL = 3.17522790283e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4542       1.0000          .0000       10.000    
     3 'Normalizat'    1.2269       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .46412       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=   2530.457     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      259 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    40.235        .18142E-01** at limit **
   2  Index         1.8975        6.8083        .50000        .19246E-06
   3  Normalizat    1.2269        .85437E-02    .19634E-03   -.28314E-05
   4  Prefactor     .46413        .88806E-02    .31774E-03    .28266E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.89755
  Normalizat = 1.22692
  Prefactor  = 0.464133
 **********
 **   18 **HESSE 
 **********

 FCN=   2530.457     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      288 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    494.95        .21339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8975        6.3222        .50000       -.66937    
   3  Normalizat    1.2269        .30912E-01    .39268E-04   -.85775    
   4  Prefactor     .46413        .32130E-01    .12709E-04   -1.1365    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.77615e-09
Minuit parameter uncertainties:
  1  0.000646068
  2  1204.94
  3  0.0309125
  4  0.0321313
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384085': 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) = 2530.45741459
delta logL = 1.05761364466e-06

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  6.461e-04  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  1.898e+00  1.205e+03  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.641e-01  3.213e-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.227e+00  3.091e-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/384085/cmap_HighResolution_500083201_500342401_4FGL_J0225.6-4502_daily_bin1006.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.33e-03', job_status='DONE', photon_flux_upper_limit='1.07e-07', time_completed='2021-08-15 21:42:30.528624', job_id='384085', GAL2='0.46', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1629088950.53', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.46', dlogl='1.06e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='1006' AND source_name='4FGL J0225.6-4502' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 21:42:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 384085: <4FGL_J0225.6-4502_daily_bin1006> in cluster <slac> Done

Job <4FGL_J0225.6-4502_daily_bin1006> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 15 21:30:35 2021
Job was executed on host(s) <bullet0304>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 21:31:06 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:31:06 2021
Terminated at Sun Aug 15 21:42:32 2021
Results reported at Sun Aug 15 21:42:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0225.6-4502_daily_bin1006 36.4048 -45.0366 500083201 500342401 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 :                                   630.30 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             319.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   685 sec.
    Turnaround time :                            717 sec.

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

