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


Performing analysis on: 4FGL_J0225.6-4502_daily_bin1585
RA = 36.4048, Dec = -45.0366
tmin = 650160001, tmax = 650419201
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='387029', job_status='RUN', time_executed='2021-08-15 21:44:19.152859', time_epoch_executed='1629089059.15' WHERE source_name='4FGL J0225.6-4502' and cadence='daily' and bin_id='1585'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/387029

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/387029/ft1_4FGL_J0225.6-4502_daily_bin1585.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/387029/ft2_4FGL_J0225.6-4502_daily_bin1585.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/387029/ft1_4FGL_J0225.6-4502_daily_bin1585.fits outfile=/scratch/kocevski/387029/ft1_filteredMKT_4FGL_J0225.6-4502_daily_bin1585.fits ra=36.4048 dec=-45.0366 rad=12.0 tmin=650160001.0 tmax=650419201.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 9.09
user 4.11
sys 4.80

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/387029/ft1_filtered_4FGL_J0225.6-4502_daily_bin1585.fits" evtable="EVENTS" scfile=/scratch/kocevski/387029/ft2_4FGL_J0225.6-4502_daily_bin1585.fits sctable="SC_DATA" outfile=/scratch/kocevski/387029/ltcube_650160001_650419201_4FGL_J0225.6-4502_daily_bin1585.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/387029/ft2_4FGL_J0225.6-4502_daily_bin1585.fits
.....................!
real 20.48
user 14.90
sys 5.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/387029/ft1_filtered_4FGL_J0225.6-4502_daily_bin1585.fits evtable="EVENTS" scfile=/scratch/kocevski/387029/ft2_4FGL_J0225.6-4502_daily_bin1585.fits sctable="SC_DATA" expcube=/scratch/kocevski/387029/ltcube_650160001_650419201_4FGL_J0225.6-4502_daily_bin1585.fits outfile=/scratch/kocevski/387029/expmap_650160001_650419201_4FGL_J0225.6-4502_daily_bin1585.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/387029/ltcube_650160001_650419201_4FGL_J0225.6-4502_daily_bin1585.fits
.....................!
real 198.26
user 186.17
sys 11.05

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/387029/ft1_filtered_4FGL_J0225.6-4502_daily_bin1585.fits scfile=/scratch/kocevski/387029/ft2_4FGL_J0225.6-4502_daily_bin1585.fits outfile=/scratch/kocevski/387029/cmap_650160001_650419201_4FGL_J0225.6-4502_daily_bin1585.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 4.97
user 0.38
sys 4.55

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/387029/ft1_filtered_4FGL_J0225.6-4502_daily_bin1585.fits scfile=/scratch/kocevski/387029/ft2_4FGL_J0225.6-4502_daily_bin1585.fits outfile=/scratch/kocevski/387029/cmap_HighResolution_650160001_650419201_4FGL_J0225.6-4502_daily_bin1585.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=36.4048 yref=-45.0366 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 5.05
user 0.38
sys 4.61

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/387029/ft1_filtered_4FGL_J0225.6-4502_daily_bin1585.fits evtable="EVENTS" scfile=/scratch/kocevski/387029/ft2_4FGL_J0225.6-4502_daily_bin1585.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/387029/Model_4FGL_J0225.6-4502_daily_bin1585.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/387029/ft1_filtered_4FGL_J0225.6-4502_daily_bin1585.fits.....................!
real 94.65
user 87.10
sys 7.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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.2670       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10891E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.176       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.7667       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10294E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .23355       1.0000         .10000E-03   10000.    
    11 'norm      '    1.4226       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.0498       1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.5743       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.6641       1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.7673       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0014       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .96171       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=   4423.885     FROM MIGRAD    STATUS=CONVERGED    667 CALLS     2808 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.974        .14471E-05** at limit **
   2  norm          4.2674        7.5952       -.62461E-06   -.15831E-03
   3  Prefactor     .10000E-03    35.964        .90336E-06** at limit **
   4  Prefactor     21.179        8.7041       -.39713E-07   -.17556E-04
   5  Prefactor     .10000E-03    6.7277       -.68803E-07** at limit **
   6  norm          .10000E-03    578.26       -.42888E-04** at limit **
   7  norm          6.7677        6.8430       -.10384E-05   -.28467E-03
   8  Prefactor     .10000E-03    25.318        .21146E-05** at limit **
   9  Prefactor     .10000E-03    19.964        .10477E-04** at limit **
  10  Prefactor     .27754        3.8671        .10199E-06   -.41097E-03
  11  norm          1.4181        1.4956       -.18669E-06   -.25093E-03
  12  Prefactor     .10000E-03    12.446       -.19266E-05** at limit **
  13  Prefactor     .10000E-03    9.5134       -.14129E-06** at limit **
  14  norm          3.0500        2.4911       -.18390E-06   -.22448E-03
  15  norm          .10000E-03    2.4032       -.11329E-06** at limit **
  16  Prefactor     .10000E-03    4.3097       -.40908E-07** at limit **
  17  Prefactor     .10000E-03    20.940       -.71359E-05** at limit **
  18  Prefactor     .10000E-03    20.773       -.37476E-05** at limit **
  19  norm          .10000E-03    .38023       -.10809E-07** at limit **
  20  Prefactor     .10000E-03    75.184       -.99773E-05** at limit **
  21  Prefactor     2.5742        5.0622       -.77889E-06   -.41592E-03
  22  Prefactor     .10000E-03    4.2269        .77517E-08** at limit **
  23  Prefactor     .10000E-03    7.6846        .30163E-07** at limit **
  24  Prefactor     5.6636        5.2548        .99895E-06    .17007E-03
  25  Prefactor     3.8047        33.795       -.47863E-04   -.28691E-04
  26  Normalizat    1.0017        .18739        .31026E-05    .43189E-04
  27  Prefactor     .96133        .20290        .26900E-06    .20696E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.26736
  Prefactor  = 0.0001
  Prefactor  = 21.1791
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.76775
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.277541
  norm       = 1.41812
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.04998
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.57415
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.66362
  Prefactor  = 3.80475
  Normalizat = 1.00166
  Prefactor  = 0.961333
 **********
 **   18 **HESSE 
 **********

 FCN=   4423.885     FROM HESSE     STATUS=OK           482 CALLS     3290 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.2674        7.5891        .19505E-03   -1.5295    
   3  Prefactor     .10000E-03    36.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.179        8.7047        .87041E-04   -1.4787    
   5  Prefactor     .10000E-03    6.7627        .16832E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    588.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.7677        6.8470        .15425E-03   -1.5188    
   8  Prefactor     .10000E-03    26.166        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    19.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .27754        26.669        .23380E-02   -1.5603    
  11  norm          1.4181        1.5549        .74436E-04   -1.5470    
  12  Prefactor     .10000E-03    12.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.5282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.0500        2.4825        .90836E-04   -1.5359    
  15  norm          .10000E-03    2.4987        .20111E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.3171        .13484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    21.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    20.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .38696        .40017E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    75.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.5742        5.0529        .20136E-03   -1.5387    
  22  Prefactor     .10000E-03    4.2346        .13354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.6869        .18009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.6636        5.2614        .14296E-03   -1.5232    
  25  Prefactor     3.8047        34.186        .20800E-03   -1.5318    
  26  Normalizat    1.0017        .22180        .22478E-03   -.92975    
  27  Prefactor     .96133        .24168        .24915E-03   -.94030    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07903e-09
Minuit parameter uncertainties:
  1  1.7328e-05
  2  7.59077
  3  7.56165e-05
  4  8.70525
  5  6.91724e-06
  6  0.000568478
  7  6.84781
  8  0.000183861
  9  1.94377e-06
  10  5.44275
  11  1.55497
  12  2.87747e-05
  13  8.73985e-06
  14  2.48258
  15  2.0859e-05
  16  5.8405e-06
  17  2.97238e-05
  18  1.6616e-05
  19  9.90205e-07
  20  1.80199e-05
  21  5.05373
  22  3.11143e-06
  23  1.0621e-05
  24  5.26179
  25  22.8266
  26  0.222004
  27  0.24195
Done.

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

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  2.877e-05  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:  9.613e-01  2.420e-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.002e+00  2.220e-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: 7.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/387029/likelihoodResults_650160001_650419201_4FGL_J0225.6-4502_daily_bin1585.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) = 4423.88567498
delta logL = -0.000378511088456

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4423.88529662
delta logL = -1.54931512952e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11030E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4398       1.0000          .0000       10.000    
     3 'Normalizat'    1.0017       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96136       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=   4423.885     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      240 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10516E-03    8.0717        .18142E-01** at limit **
   2  Index         2.3273        7.4282        .50000        .19001E-04
   3  Normalizat    1.0017        .33783E-02    .22478E-03   -.40057E-04
   4  Prefactor     .96133        .36952E-02    .24915E-03   -.27406E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105159
  Index      = 2.32733
  Normalizat = 1.00167
  Prefactor  = 0.961325
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10516E-03    439.98        .50465E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3273        5.4940        .50000       -.56396    
   3  Normalizat    1.0017        .25268E-01    .89911E-05   -.92975    
   4  Prefactor     .96133        .27637E-01    .49830E-04   -.94030    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.95412e-08
Minuit parameter uncertainties:
  1  0.0960024
  2  671.198
  3  0.025268
  4  0.0276376
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/387029': 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) = 4423.88529582
delta logL = 6.47570232104e-07

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  1.052e-04  9.600e-02  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  2.327e+00  6.712e+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:  9.613e-01  2.764e-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.002e+00  2.527e-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/387029/cmap_HighResolution_650160001_650419201_4FGL_J0225.6-4502_daily_bin1585.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.68e-03', job_status='DONE', photon_flux_upper_limit='7.31e-08', time_completed='2021-08-15 21:56:37.465534', job_id='387029', GAL2='0.96', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1629089797.47', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='6.48e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='1585' AND source_name='4FGL J0225.6-4502' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 21:56:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 387029: <4FGL_J0225.6-4502_daily_bin1585> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0225.6-4502_daily_bin1585 36.4048 -45.0366 650160001 650419201 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 :                                   798.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            962 sec.

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

