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


Performing analysis on: 4FGL_J0225.6-4502_daily_bin1019
RA = 36.4048, Dec = -45.0366
tmin = 503452801, tmax = 503712001
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='384107', job_status='RUN', time_executed='2021-08-15 21:32:40.037726', time_epoch_executed='1629088360.04' WHERE source_name='4FGL J0225.6-4502' and cadence='daily' and bin_id='1019'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384107

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384107/ft1_4FGL_J0225.6-4502_daily_bin1019.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384107/ft2_4FGL_J0225.6-4502_daily_bin1019.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384107/ft1_4FGL_J0225.6-4502_daily_bin1019.fits outfile=/scratch/kocevski/384107/ft1_filteredMKT_4FGL_J0225.6-4502_daily_bin1019.fits ra=36.4048 dec=-45.0366 rad=12.0 tmin=503452801.0 tmax=503712001.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 7.83
user 7.51
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/384107/ft1_filtered_4FGL_J0225.6-4502_daily_bin1019.fits" evtable="EVENTS" scfile=/scratch/kocevski/384107/ft2_4FGL_J0225.6-4502_daily_bin1019.fits sctable="SC_DATA" outfile=/scratch/kocevski/384107/ltcube_503452801_503712001_4FGL_J0225.6-4502_daily_bin1019.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/384107/ft2_4FGL_J0225.6-4502_daily_bin1019.fits
.....................!
real 13.96
user 13.58
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384107/ft1_filtered_4FGL_J0225.6-4502_daily_bin1019.fits evtable="EVENTS" scfile=/scratch/kocevski/384107/ft2_4FGL_J0225.6-4502_daily_bin1019.fits sctable="SC_DATA" expcube=/scratch/kocevski/384107/ltcube_503452801_503712001_4FGL_J0225.6-4502_daily_bin1019.fits outfile=/scratch/kocevski/384107/expmap_503452801_503712001_4FGL_J0225.6-4502_daily_bin1019.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/384107/ltcube_503452801_503712001_4FGL_J0225.6-4502_daily_bin1019.fits
.....................!
real 189.77
user 185.52
sys 3.80

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/384107/ft1_filtered_4FGL_J0225.6-4502_daily_bin1019.fits scfile=/scratch/kocevski/384107/ft2_4FGL_J0225.6-4502_daily_bin1019.fits outfile=/scratch/kocevski/384107/cmap_503452801_503712001_4FGL_J0225.6-4502_daily_bin1019.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 0.59
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/384107/ft1_filtered_4FGL_J0225.6-4502_daily_bin1019.fits scfile=/scratch/kocevski/384107/ft2_4FGL_J0225.6-4502_daily_bin1019.fits outfile=/scratch/kocevski/384107/cmap_HighResolution_503452801_503712001_4FGL_J0225.6-4502_daily_bin1019.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 0.58
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/384107/ft1_filtered_4FGL_J0225.6-4502_daily_bin1019.fits evtable="EVENTS" scfile=/scratch/kocevski/384107/ft2_4FGL_J0225.6-4502_daily_bin1019.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/384107/Model_4FGL_J0225.6-4502_daily_bin1019.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/384107/ft1_filtered_4FGL_J0225.6-4502_daily_bin1019.fits......................!
real 49.53
user 48.13
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.8365       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10786E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1706       1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.787       1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.8650       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.4531       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.2730       1.0000         .10000E-03   10000.    
    15 'norm      '    .50344E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.6436       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    56.281       1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.907       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10681E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .99840       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .81085       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=   2203.083     FROM MIGRAD    STATUS=CONVERGED    649 CALLS     3274 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.113       -.89325E-07** at limit **
   2  norm          4.8388        14.643        .54962E-05   -.20266E-03
   3  Prefactor     .10004E-03    91.916        .12077E-04** at limit **
   4  Prefactor     4.1718        9.3257        .52209E-06   -.10745E-03
   5  Prefactor     27.788        21.483       -.39263E-05   -.52377E-04
   6  norm          .10000E-03    34.376       -.19240E-05** at limit **
   7  norm          4.8658        11.084        .77176E-05   -.46411E-03
   8  Prefactor     .10000E-03    11.383        .10114E-05** at limit **
   9  Prefactor     .10000E-03    27.611        .21953E-05** at limit **
  10  Prefactor     .10000E-03    6.0150        .48101E-07** at limit **
  11  norm          4.4535        2.4780       -.81747E-07   -.55925E-04
  12  Prefactor     .10000E-03    6.9022       -.80017E-07** at limit **
  13  Prefactor     .10000E-03    10.484       -.19490E-05** at limit **
  14  norm          4.2736        3.5740       -.31726E-07   -.80276E-05
  15  norm          .10003E-03    4.0308        .25417E-06** at limit **
  16  Prefactor     5.6449        13.536        .34647E-05   -.18374E-03
  17  Prefactor     .10000E-03    25.229        .34072E-06** at limit **
  18  Prefactor     56.196        125.50       -.10997E-04   -.21640E-03
  19  norm          .10000E-03    .83751       -.78266E-08** at limit **
  20  Prefactor     .10004E-03    179.93       -.11253E-04** at limit **
  21  Prefactor     13.908        10.216       -.58309E-07    .44514E-06
  22  Prefactor     .10000E-03    10.118        .11527E-05** at limit **
  23  Prefactor     .10001E-03    68.127       -.46447E-05** at limit **
  24  Prefactor     .10000E-03    6.7103        .84431E-07** at limit **
  25  Prefactor     .10000E-03    23.808       -.19398E-05** at limit **
  26  Normalizat    .99862        .27345        .20590E-05   -.15925E-03
  27  Prefactor     .81041        .28293       -.14387E-05   -.54810E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.83879
  Prefactor  = 0.000100036
  Prefactor  = 4.17183
  Prefactor  = 27.7884
  norm       = 0.000100001
  norm       = 4.86576
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 4.45352
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 4.27357
  norm       = 0.000100033
  Prefactor  = 5.64486
  Prefactor  = 0.0001
  Prefactor  = 56.1961
  norm       = 0.0001
  Prefactor  = 0.000100038
  Prefactor  = 13.908
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.998624
  Prefactor  = 0.810411
 **********
 **   18 **HESSE 
 **********

 FCN=   2203.083     FROM HESSE     STATUS=OK           480 CALLS     3754 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.127        .17826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.8388        14.763        .91460E-03   -1.5268    
   3  Prefactor     .10004E-03    94.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.1718        9.3434        .19735E-03   -1.5299    
   5  Prefactor     27.788        21.591        .76000E-04   -1.4653    
   6  norm          .10000E-03    34.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.8658        11.293        .91187E-03   -1.5267    
   8  Prefactor     .10000E-03    11.414        .15475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    27.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.0567        .11231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.4535        2.4739        .52920E-04   -1.5286    
  12  Prefactor     .10000E-03    6.9041        .12045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.559        .14898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.2736        3.5718        .78149E-04   -1.5294    
  15  norm          .10003E-03    43.448        .17360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.6449        13.599        .84548E-03   -1.5233    
  17  Prefactor     .10000E-03    25.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     56.196        129.05        .53472E-04   -1.4207    
  19  norm          .10000E-03    .85148        .41902E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10004E-03    182.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.908        10.211        .10741E-03   -1.4962    
  22  Prefactor     .10000E-03    10.157        .14597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    69.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6.7342        .11875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    23.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .99862        .32029        .22501E-03   -.93077    
  27  Prefactor     .81041        .33150        .26401E-03   -.99346    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.02853e-09
Minuit parameter uncertainties:
  1  3.15635e-05
  2  14.7744
  3  0.00367515
  4  9.3467
  5  21.5967
  6  0.000403541
  7  11.2978
  8  9.74855e-05
  9  0.00033574
  10  2.92016e-06
  11  2.47396
  12  7.62528e-06
  13  0.000225
  14  3.572
  15  0.00238203
  16  13.6063
  17  0.00014233
  18  129.703
  19  4.11529e-06
  20  0.00527362
  21  10.2123
  22  0.000117196
  23  0.00149645
  24  1.53596e-06
  25  0.000360694
  26  0.320912
  27  0.332317
Done.

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

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  7.625e-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:  8.104e-01  3.323e-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.986e-01  3.209e-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: 8.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/384107/likelihoodResults_503452801_503712001_4FGL_J0225.6-4502_daily_bin1019.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) = 2203.08381113
delta logL = -0.000663406691729

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2203.08314762
delta logL = 1.11864665087e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4555       1.0000          .0000       10.000    
     3 'Normalizat'    .99869       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81032       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=   2203.083     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      250 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    61.869        .12329E-01** at limit **
   2  Index         1.6575        7.7784        .50000       -.23238E-07
   3  Normalizat    .99863        .15444E-01    .22501E-03   -.32689E-03
   4  Prefactor     .81041        .16576E-01    .26401E-03   -.27853E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.65754
  Normalizat = 0.998626
  Prefactor  = 0.810407
 **********
 **   18 **HESSE 
 **********

 FCN=   2203.083     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    468.75        .15367E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6575        8.9708        .50000       -.73218    
   3  Normalizat    .99863        .44637E-01    .45002E-04   -.93076    
   4  Prefactor     .81041        .47908E-01    .52801E-04   -.99346    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.68458e-09
Minuit parameter uncertainties:
  1  0.000724593
  2  1324.72
  3  0.0446382
  4  0.0479103
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384107': 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) = 2203.08314494
delta logL = 2.79082041743e-06

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  7.246e-04  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  1.658e+00  1.325e+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:  8.104e-01  4.791e-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.986e-01  4.464e-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/384107/cmap_HighResolution_503452801_503712001_4FGL_J0225.6-4502_daily_bin1019.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.98e-03', job_status='DONE', photon_flux_upper_limit='8.98e-08', time_completed='2021-08-15 21:41:17.624653', job_id='384107', GAL2='0.81', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1629088877.62', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='2.79e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='1019' AND source_name='4FGL J0225.6-4502' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 21:41:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 384107: <4FGL_J0225.6-4502_daily_bin1019> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0225.6-4502_daily_bin1019 36.4048 -45.0366 503452801 503712001 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 :                                   512.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   599 sec.
    Turnaround time :                            642 sec.

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

