/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 189 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_bin1091
RA = 36.4048, Dec = -45.0366
tmin = 522115201, tmax = 522374401
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='384224', job_status='RUN', time_executed='2021-08-15 21:35:31.839962', time_epoch_executed='1629088531.84' WHERE source_name='4FGL J0225.6-4502' and cadence='daily' and bin_id='1091'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384224

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384224/ft1_4FGL_J0225.6-4502_daily_bin1091.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384224/ft2_4FGL_J0225.6-4502_daily_bin1091.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384224/ft1_4FGL_J0225.6-4502_daily_bin1091.fits outfile=/scratch/kocevski/384224/ft1_filteredMKT_4FGL_J0225.6-4502_daily_bin1091.fits ra=36.4048 dec=-45.0366 rad=12.0 tmin=522115201.0 tmax=522374401.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 4.67
user 3.42
sys 1.10

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/384224/ft1_filtered_4FGL_J0225.6-4502_daily_bin1091.fits" evtable="EVENTS" scfile=/scratch/kocevski/384224/ft2_4FGL_J0225.6-4502_daily_bin1091.fits sctable="SC_DATA" outfile=/scratch/kocevski/384224/ltcube_522115201_522374401_4FGL_J0225.6-4502_daily_bin1091.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/384224/ft2_4FGL_J0225.6-4502_daily_bin1091.fits
.....................!
real 14.24
user 12.92
sys 1.22

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384224/ft1_filtered_4FGL_J0225.6-4502_daily_bin1091.fits evtable="EVENTS" scfile=/scratch/kocevski/384224/ft2_4FGL_J0225.6-4502_daily_bin1091.fits sctable="SC_DATA" expcube=/scratch/kocevski/384224/ltcube_522115201_522374401_4FGL_J0225.6-4502_daily_bin1091.fits outfile=/scratch/kocevski/384224/expmap_522115201_522374401_4FGL_J0225.6-4502_daily_bin1091.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/384224/ltcube_522115201_522374401_4FGL_J0225.6-4502_daily_bin1091.fits
.....................!
real 194.54
user 187.35
sys 6.23

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/384224/ft1_filtered_4FGL_J0225.6-4502_daily_bin1091.fits scfile=/scratch/kocevski/384224/ft2_4FGL_J0225.6-4502_daily_bin1091.fits outfile=/scratch/kocevski/384224/cmap_522115201_522374401_4FGL_J0225.6-4502_daily_bin1091.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 1.33
user 0.37
sys 0.94

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/384224/ft1_filtered_4FGL_J0225.6-4502_daily_bin1091.fits scfile=/scratch/kocevski/384224/ft2_4FGL_J0225.6-4502_daily_bin1091.fits outfile=/scratch/kocevski/384224/cmap_HighResolution_522115201_522374401_4FGL_J0225.6-4502_daily_bin1091.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 1.44
user 0.38
sys 1.03

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/384224/ft1_filtered_4FGL_J0225.6-4502_daily_bin1091.fits evtable="EVENTS" scfile=/scratch/kocevski/384224/ft2_4FGL_J0225.6-4502_daily_bin1091.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/384224/Model_4FGL_J0225.6-4502_daily_bin1091.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/384224/ft1_filtered_4FGL_J0225.6-4502_daily_bin1091.fits.....................!
real 92.02
user 89.21
sys 2.47

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16641       1.0000         .10000E-03   10000.    
     2 'norm      '    13.261       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1930       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10736       1.0000         .10000E-03   10000.    
     6 'norm      '    .10316E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10628E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.024       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.8784       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10516E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .26923       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13647E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    47.992       1.0000         .10000E-03   10000.    
    19 'norm      '    1.2346       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .16438E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10479E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    18.147       1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.196       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10509E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .87068       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2737       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=   4479.356     FROM MIGRAD    STATUS=CONVERGED    696 CALLS     3371 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10829E-03    14.537       -.19714E-05** at limit **
   2  norm          13.268        9.5172        .39241E-05    .18401E-04
   3  Prefactor     .10000E-03    15.369        .48075E-06** at limit **
   4  Prefactor     3.1927        3.9562        .66920E-08   -.12812E-04
   5  Prefactor     .10217        8.7040        .14881E-05   -.33746E-03
   6  norm          .10000E-03    42.803       -.13504E-05** at limit **
   7  norm          .10000E-03    7.6734        .62447E-06** at limit **
   8  Prefactor     .10000E-03    7.5965       -.29082E-06** at limit **
   9  Prefactor     11.032        39.782       -.72389E-05   -.12562E-03
  10  Prefactor     .10000E-03    1.4483       -.22002E-07** at limit **
  11  norm          2.8778        1.5606       -.81537E-07   -.25602E-03
  12  Prefactor     .10000E-03    12.575       -.48857E-07** at limit **
  13  Prefactor     .10000E-03    9.3413        .10390E-05** at limit **
  14  norm          .26920        1.6626       -.11594E-05   -.16522E-02
  15  norm          .10000E-03    1.5089       -.11414E-07** at limit **
  16  Prefactor     .10000E-03    5.1652        .13420E-06** at limit **
  17  Prefactor     .10001E-03    123.60        .74583E-04** at limit **
  18  Prefactor     47.982        67.732       -.13246E-04   -.72771E-04
  19  norm          1.2347        1.4073       -.11531E-06   -.28062E-03
  20  Prefactor     .10000E-03    74.472        .47442E-04** at limit **
  21  Prefactor     .10000E-03    5.3915       -.42609E-07** at limit **
  22  Prefactor     18.138        16.149       -.11001E-05    .12616E-03
  23  Prefactor     16.199        20.454        .58964E-06    .84353E-04
  24  Prefactor     .10000E-03    9.0559       -.10940E-05** at limit **
  25  Prefactor     .10003E-03    89.954       -.95550E-04** at limit **
  26  Normalizat    .87076        .20068        .24126E-05    .11519E-03
  27  Prefactor     1.2735        .21448       -.51669E-06    .12280E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000108291
  norm       = 13.2675
  Prefactor  = 0.0001
  Prefactor  = 3.19271
  Prefactor  = 0.102169
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.0316
  Prefactor  = 0.0001
  norm       = 2.87783
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.269204
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 47.9819
  norm       = 1.23474
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.1383
  Prefactor  = 16.1995
  Prefactor  = 0.0001
  Prefactor  = 0.000100025
  Normalizat = 0.870762
  Prefactor  = 1.27351
 **********
 **   18 **HESSE 
 **********

 FCN=   4479.356     FROM HESSE     STATUS=OK           496 CALLS     3867 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10829E-03    30.400        .83608E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          13.268        9.5167        .10999E-03   -1.4979    
   3  Prefactor     .10000E-03    15.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.1927        3.9520        .14426E-03   -1.5351    
   5  Prefactor     .10217        26.228        .52090E-01   -1.5644    
   6  norm          .10000E-03    42.832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    7.7482        .35856E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.6189        .18015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.032        42.593        .12066E-03   -1.5044    
  10  Prefactor     .10000E-03    1.4493        .78651E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.8778        1.5596        .59028E-04   -1.5369    
  12  Prefactor     .10000E-03    12.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.3467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .26920        1.6480        .16716E-03   -1.5604    
  15  norm          .10000E-03    1.5278        .80211E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.1741        .14853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    125.94        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     47.982        67.971        .57882E-04   -1.4321    
  19  norm          1.2347        1.3795        .79686E-04   -1.5486    
  20  Prefactor     .10000E-03    74.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.6325        .30311E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     18.138        16.137        .94020E-04   -1.4856    
  23  Prefactor     16.199        20.442        .99521E-04   -1.4903    
  24  Prefactor     .10000E-03    9.1585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10003E-03    90.509        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .87076        .23630        .25314E-03   -.97495    
  27  Prefactor     1.2735        .25310        .23868E-03   -.84098    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80747e-09
Minuit parameter uncertainties:
  1  0.0317678
  2  9.51783
  3  8.41571e-06
  4  3.95228
  5  3.27381
  6  1.83814e-05
  7  8.09322e-05
  8  5.19381e-06
  9  42.7106
  10  9.55041e-07
  11  1.55957
  12  6.60304e-06
  13  1.84415e-06
  14  1.33194
  15  1.21629e-06
  16  4.96769e-07
  17  0.00199374
  18  68.0807
  19  1.37949
  20  3.55051e-07
  21  8.97832e-06
  22  16.1413
  23  20.4506
  24  1.39629e-05
  25  0.00302262
  26  0.236581
  27  0.253348
Done.

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

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  6.603e-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.274e+00  2.533e-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.708e-01  2.366e-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.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/384224/likelihoodResults_522115201_522374401_4FGL_J0225.6-4502_daily_bin1091.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) = 4479.35679477
delta logL = -0.000377085317268

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4479.35641804
delta logL = -3.59014848073e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10379E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4885       1.0000          .0000       10.000    
     3 'Normalizat'    .87063       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2737       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4479.356     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1323.4        .90712E-02** at limit **
   2  Index         2.4986        8.7505        .50000       -.73547E-05
   3  Normalizat    .87076        .59471E-01    .44525E-01    .19730E-04
   4  Prefactor     1.2735        .66443E-01    .53982E-01    .96139E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.49856
  Normalizat = 0.870761
  Prefactor  = 1.27351
 **********
 **   18 **HESSE 
 **********

 FCN=   4479.356     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      240 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1965.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4986        5.6396        .50000       -.52393    
   3  Normalizat    .87076        .84890E-01    .25314E-03   -.97495    
   4  Prefactor     1.2735        .95158E-01    .23868E-03   -.84098    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.5838e-09
Minuit parameter uncertainties:
  1  0.000199251
  2  55.8472
  3  0.0849034
  4  0.0951709
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384224': 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) = 4479.35641765
delta logL = 3.27354428009e-08

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  1.993e-04  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  2.499e+00  5.585e+01  0.000e+00  1.000e+01 (-1.000e+00)
286        Scale:  1.057e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
568    Prefactor:  1.274e+00  9.517e-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.708e-01  8.490e-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/384224/cmap_HighResolution_522115201_522374401_4FGL_J0225.6-4502_daily_bin1091.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.80e-03', job_status='DONE', photon_flux_upper_limit='8.75e-08', time_completed='2021-08-15 21:47:23.612178', job_id='384224', GAL2='1.27', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1629089243.61', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='3.27e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='1091' AND source_name='4FGL J0225.6-4502' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 21:47:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 384224: <4FGL_J0225.6-4502_daily_bin1091> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0225.6-4502_daily_bin1091 36.4048 -45.0366 522115201 522374401 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 :                                   721.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             275.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            998 sec.

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

