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


Performing analysis on: 4FGL_J0225.6-4502_daily_bin1588
RA = 36.4048, Dec = -45.0366
tmin = 650937601, tmax = 651196801
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='609073', job_status='RUN', time_executed='2021-08-21 00:31:39.084808', time_epoch_executed='1629531099.08' WHERE source_name='4FGL J0225.6-4502' and cadence='daily' and bin_id='1588'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/609073

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/609073/ft1_4FGL_J0225.6-4502_daily_bin1588.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/609073/ft2_4FGL_J0225.6-4502_daily_bin1588.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/609073/ft1_4FGL_J0225.6-4502_daily_bin1588.fits outfile=/scratch/kocevski/609073/ft1_filteredMKT_4FGL_J0225.6-4502_daily_bin1588.fits ra=36.4048 dec=-45.0366 rad=12.0 tmin=650937601.0 tmax=651196801.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.52
user 3.38
sys 1.12

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/609073/ft1_filtered_4FGL_J0225.6-4502_daily_bin1588.fits" evtable="EVENTS" scfile=/scratch/kocevski/609073/ft2_4FGL_J0225.6-4502_daily_bin1588.fits sctable="SC_DATA" outfile=/scratch/kocevski/609073/ltcube_650937601_651196801_4FGL_J0225.6-4502_daily_bin1588.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/609073/ft2_4FGL_J0225.6-4502_daily_bin1588.fits
.....................!
real 12.81
user 11.39
sys 1.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/609073/ft1_filtered_4FGL_J0225.6-4502_daily_bin1588.fits evtable="EVENTS" scfile=/scratch/kocevski/609073/ft2_4FGL_J0225.6-4502_daily_bin1588.fits sctable="SC_DATA" expcube=/scratch/kocevski/609073/ltcube_650937601_651196801_4FGL_J0225.6-4502_daily_bin1588.fits outfile=/scratch/kocevski/609073/expmap_650937601_651196801_4FGL_J0225.6-4502_daily_bin1588.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/609073/ltcube_650937601_651196801_4FGL_J0225.6-4502_daily_bin1588.fits
.....................!
real 191.17
user 184.92
sys 5.87

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/609073/ft1_filtered_4FGL_J0225.6-4502_daily_bin1588.fits scfile=/scratch/kocevski/609073/ft2_4FGL_J0225.6-4502_daily_bin1588.fits outfile=/scratch/kocevski/609073/cmap_650937601_651196801_4FGL_J0225.6-4502_daily_bin1588.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.64
user 0.35
sys 1.07

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/609073/ft1_filtered_4FGL_J0225.6-4502_daily_bin1588.fits scfile=/scratch/kocevski/609073/ft2_4FGL_J0225.6-4502_daily_bin1588.fits outfile=/scratch/kocevski/609073/cmap_HighResolution_650937601_651196801_4FGL_J0225.6-4502_daily_bin1588.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.53
user 0.38
sys 1.05

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/609073/ft1_filtered_4FGL_J0225.6-4502_daily_bin1588.fits evtable="EVENTS" scfile=/scratch/kocevski/609073/ft2_4FGL_J0225.6-4502_daily_bin1588.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/609073/Model_4FGL_J0225.6-4502_daily_bin1588.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/609073/ft1_filtered_4FGL_J0225.6-4502_daily_bin1588.fits.....................!
real 99.12
user 92.62
sys 2.39

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.2206       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.0341       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    31.938       1.0000         .10000E-03   10000.    
     7 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.1866       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .22733E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    2.6914       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .73472       1.0000         .10000E-03   10000.    
    15 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.3868       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.2393       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10078E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    335.21       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10734E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.4602       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.7226       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.4173       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .45723       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=   4675.188     FROM MIGRAD    STATUS=CONVERGED    650 CALLS     2827 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.270        .34899E-06** at limit **
   2  norm          4.2214        9.0130        .22560E-05   -.79879E-04
   3  Prefactor     .10000E-03    11.921       -.35205E-06** at limit **
   4  Prefactor     3.0348        4.6250        .83719E-07    .18374E-05
   5  Prefactor     .10000E-03    8.8276        .17650E-06** at limit **
   6  norm          31.923        40.866        .34471E-05    .13071E-03
   7  norm          .10000E-03    2.7083       -.74605E-07** at limit **
   8  Prefactor     4.1867        8.7314        .21576E-05   -.67090E-04
   9  Prefactor     .10000E-03    19.720       -.93389E-06** at limit **
  10  Prefactor     .55504E-01    3.3950       -.50141E-06    .59081E-04
  11  norm          2.6879        1.5765        .19324E-07    .18021E-03
  12  Prefactor     .10000E-03    3.5400       -.23982E-07** at limit **
  13  Prefactor     .10000E-03    4.9869        .88916E-07** at limit **
  14  norm          .73294        1.7464        .41384E-07   -.14400E-03
  15  norm          .10000E-03    1.5446        .74774E-07** at limit **
  16  Prefactor     9.3850        12.644        .10192E-06    .91441E-05
  17  Prefactor     3.2411        20.357        .36726E-06   -.62587E-06
  18  Prefactor     .10000E-03    17.036        .77503E-06** at limit **
  19  norm          .10000E-03    .73120        .16129E-07** at limit **
  20  Prefactor     335.31        223.27       -.77365E-05   -.10036E-03
  21  Prefactor     .10000E-03    4.9997       -.17886E-06** at limit **
  22  Prefactor     7.4606        10.495        .91499E-06   -.12019E-06
  23  Prefactor     .10000E-03    9.6562       -.40433E-06** at limit **
  24  Prefactor     .10000E-03    2.3516       -.45702E-07** at limit **
  25  Prefactor     1.7193        34.047        .13432E-04   -.63628E-04
  26  Normalizat    1.4170        .18764       -.10348E-05    .11675E-03
  27  Prefactor     .45753        .19218        .53321E-06    .78496E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.22137
  Prefactor  = 0.0001
  Prefactor  = 3.03477
  Prefactor  = 0.0001
  norm       = 31.9235
  norm       = 0.0001
  Prefactor  = 4.18674
  Prefactor  = 0.0001
  Prefactor  = 0.0555036
  norm       = 2.68788
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.732936
  norm       = 0.0001
  Prefactor  = 9.38501
  Prefactor  = 3.24113
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 335.308
  Prefactor  = 0.0001
  Prefactor  = 7.46061
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.7193
  Normalizat = 1.41697
  Prefactor  = 0.457528
 **********
 **   18 **HESSE 
 **********

 FCN=   4675.188     FROM HESSE     STATUS=OK           490 CALLS     3317 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.2214        9.0217        .98073E-03   -1.5297    
   3  Prefactor     .10000E-03    11.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.0348        4.6119        .17597E-03   -1.5360    
   5  Prefactor     .10000E-03    8.9769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          31.923        40.966        .35451E-03   -1.4577    
   7  norm          .10000E-03    2.7288        .10987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.1867        8.7345        .98482E-03   -1.5299    
   9  Prefactor     .10000E-03    19.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .55504E-01    29.636        .23786E-02   -1.5661    
  11  norm          2.6879        1.5984        .61282E-04   -1.5380    
  12  Prefactor     .10000E-03    3.5422        .12564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.9880        .14913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .73294        1.6558        .13318E-02   -1.5537    
  15  norm          .10000E-03    1.6060        .16572E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.3850        12.537        .13081E-03   -1.5095    
  17  Prefactor     3.2411        20.297        .22505E-03   -1.5348    
  18  Prefactor     .10000E-03    17.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.2554        .11129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     335.31        224.52        .11112E-03   -1.2025    
  21  Prefactor     .10000E-03    5.1538        .29825E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.4606        10.497        .73418E-03   -1.5162    
  23  Prefactor     .10000E-03    9.6688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.3555        .10239E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.7193        34.250        .16001E-02   -1.5446    
  26  Normalizat    1.4170        .20750        .18899E-03   -.80139    
  27  Prefactor     .45753        .21117        .32736E-03   -1.1397    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.1289e-09
Minuit parameter uncertainties:
  1  1.3647e-05
  2  9.02461
  3  2.5434e-05
  4  4.61247
  5  8.48363e-06
  6  41.0016
  7  6.00724e-06
  8  8.73718
  9  8.98905e-05
  10  2.56405
  11  1.59843
  12  7.17614e-07
  13  3.59642e-06
  14  1.65591
  15  5.97299e-06
  16  12.5406
  17  16.2294
  18  6.99872e-05
  19  8.02674e-07
  20  225.103
  21  1.42845e-05
  22  10.4992
  23  2.84252e-05
  24  2.70308e-06
  25  15.357
  26  0.207627
  27  0.211535
Done.

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

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  7.176e-07  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.575e-01  2.115e-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.417e+00  2.076e-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: 4.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/609073/likelihoodResults_650937601_651196801_4FGL_J0225.6-4502_daily_bin1588.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) = 4675.18951742
delta logL = -0.00129855979776

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4675.18821964
delta logL = -7.86328200775e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10449E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4528       1.0000          .0000       10.000    
     3 'Normalizat'    1.4172       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .45731       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=   4675.188     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      257 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.367        .12914E-01** at limit **
   2  Index         1.7142        7.9749        .50000       -.20304E-07
   3  Normalizat    1.4170        .85638E-02    .18899E-03    .24864E-03
   4  Prefactor     .45753        .88958E-02    .32736E-03    .15530E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.71419
  Normalizat = 1.41697
  Prefactor  = 0.457528
 **********
 **   18 **HESSE 
 **********

 FCN=   4675.188     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      286 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    168.26        .15905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7142        7.8384        .50000       -.71705    
   3  Normalizat    1.4170        .24782E-01    .37799E-04   -.80139    
   4  Prefactor     .45753        .25743E-01    .13095E-04   -1.1397    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.60341e-11
Minuit parameter uncertainties:
  1  5.86106e-05
  2  697.729
  3  0.0247825
  4  0.0257434
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/609073': 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) = 4675.18821355
delta logL = 5.3025487432e-06

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  5.861e-05  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  1.714e+00  6.977e+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:  4.575e-01  2.574e-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.417e+00  2.478e-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/609073/cmap_HighResolution_650937601_651196801_4FGL_J0225.6-4502_daily_bin1588.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.52e-03', job_status='DONE', photon_flux_upper_limit='4.53e-08', time_completed='2021-08-21 00:43:08.292667', job_id='609073', GAL2='0.46', fit_tolerance='1e-08', EG2='1.42', EG='1.42', time_epoch_completed='1629531788.29', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.46', dlogl='5.30e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='1588' AND source_name='4FGL J0225.6-4502' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 00:43:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 609073: <4FGL_J0225.6-4502_daily_bin1588> in cluster <slac> Done

Job <4FGL_J0225.6-4502_daily_bin1588> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Aug 21 00:30:21 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 21 00:30:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 21 00:30:23 2021
Terminated at Sat Aug 21 00:43:09 2021
Results reported at Sat Aug 21 00:43:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0225.6-4502_daily_bin1588 36.4048 -45.0366 650937601 651196801 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 :                                   699.14 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             319.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   765 sec.
    Turnaround time :                            768 sec.

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

