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


Performing analysis on: 4FGL_J0225.6-4502_daily_bin645
RA = 36.4048, Dec = -45.0366
tmin = 406512001, tmax = 406771201
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='382761', job_status='RUN', time_executed='2021-08-15 21:27:14.904909', time_epoch_executed='1629088034.9' WHERE source_name='4FGL J0225.6-4502' and cadence='daily' and bin_id='645'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/382761

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/382761/ft1_4FGL_J0225.6-4502_daily_bin645.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/382761/ft2_4FGL_J0225.6-4502_daily_bin645.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/382761/ft1_4FGL_J0225.6-4502_daily_bin645.fits outfile=/scratch/kocevski/382761/ft1_filteredMKT_4FGL_J0225.6-4502_daily_bin645.fits ra=36.4048 dec=-45.0366 rad=12.0 tmin=406512001.0 tmax=406771201.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 5.09
user 3.30
sys 1.73

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/382761/ft2_4FGL_J0225.6-4502_daily_bin645.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/382761/ft1_filteredMKT_4FGL_J0225.6-4502_daily_bin645.fits evtable="EVENTS" outfile="/scratch/kocevski/382761/ft1_filtered_4FGL_J0225.6-4502_daily_bin645.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 2.08
user 0.37
sys 1.66

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/382761/ft1_filtered_4FGL_J0225.6-4502_daily_bin645.fits" evtable="EVENTS" scfile=/scratch/kocevski/382761/ft2_4FGL_J0225.6-4502_daily_bin645.fits sctable="SC_DATA" outfile=/scratch/kocevski/382761/ltcube_406512001_406771201_4FGL_J0225.6-4502_daily_bin645.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/382761/ft2_4FGL_J0225.6-4502_daily_bin645.fits
.....................!
real 16.53
user 14.33
sys 2.05

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/382761/ft1_filtered_4FGL_J0225.6-4502_daily_bin645.fits evtable="EVENTS" scfile=/scratch/kocevski/382761/ft2_4FGL_J0225.6-4502_daily_bin645.fits sctable="SC_DATA" expcube=/scratch/kocevski/382761/ltcube_406512001_406771201_4FGL_J0225.6-4502_daily_bin645.fits outfile=/scratch/kocevski/382761/expmap_406512001_406771201_4FGL_J0225.6-4502_daily_bin645.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/382761/ltcube_406512001_406771201_4FGL_J0225.6-4502_daily_bin645.fits
.....................!
real 194.99
user 187.25
sys 6.29

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/382761/ft1_filtered_4FGL_J0225.6-4502_daily_bin645.fits scfile=/scratch/kocevski/382761/ft2_4FGL_J0225.6-4502_daily_bin645.fits outfile=/scratch/kocevski/382761/cmap_406512001_406771201_4FGL_J0225.6-4502_daily_bin645.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=36.4048 yref=-45.0366 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 2.04
user 0.39
sys 1.64

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/382761/ft1_filtered_4FGL_J0225.6-4502_daily_bin645.fits scfile=/scratch/kocevski/382761/ft2_4FGL_J0225.6-4502_daily_bin645.fits outfile=/scratch/kocevski/382761/cmap_HighResolution_406512001_406771201_4FGL_J0225.6-4502_daily_bin645.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 2.08
user 0.41
sys 1.62

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/382761/ft1_filtered_4FGL_J0225.6-4502_daily_bin645.fits evtable="EVENTS" scfile=/scratch/kocevski/382761/ft2_4FGL_J0225.6-4502_daily_bin645.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/382761/Model_4FGL_J0225.6-4502_daily_bin645.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/382761/ft1_filtered_4FGL_J0225.6-4502_daily_bin645.fits.....................!
real 116.65
user 113.01
sys 3.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.663       1.0000         .10000E-03   10000.    
     2 'norm      '    5.4856       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .62710       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    36.064       1.0000         .10000E-03   10000.    
     7 'norm      '    11.605       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.2266       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.4312       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.772       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.9762       1.0000         .10000E-03   10000.    
    15 'norm      '    2.7987       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13539E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .13910E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.537       1.0000         .10000E-03   10000.    
    23 'Prefactor '    27.294       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .93780       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .89263       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=   5751.443     FROM MIGRAD    STATUS=CONVERGED    653 CALLS     3282 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.666        20.883        .72237E-07   -.21242E-04
   2  norm          5.4863        7.0341        .22826E-06    .17517E-05
   3  Prefactor     .10000E-03    11.693       -.37169E-07** at limit **
   4  Prefactor     .62616        5.7255        .25811E-05   -.23082E-03
   5  Prefactor     .10000E-03    6.2571       -.18605E-06** at limit **
   6  norm          36.070        37.646        .60242E-06    .57874E-04
   7  norm          11.603        5.4442       -.45557E-06   -.74665E-03
   8  Prefactor     7.2267        7.4697       -.72657E-07   -.30479E-04
   9  Prefactor     .10000E-03    13.598       -.65079E-06** at limit **
  10  Prefactor     .10000E-03    1.3123        .50896E-09** at limit **
  11  norm          2.4313        1.3466        .38321E-07   -.83783E-04
  12  Prefactor     15.777        14.170        .21050E-06   -.15589E-03
  13  Prefactor     .10000E-03    15.244        .14769E-05** at limit **
  14  norm          8.9760        2.6183        .54390E-08    .24369E-04
  15  norm          2.7990        2.4117        .49716E-07   -.36394E-04
  16  Prefactor     .10002E-03    6.0436        .46971E-06** at limit **
  17  Prefactor     .10000E-03    12.770       -.69639E-06** at limit **
  18  Prefactor     .10000E-03    19.518       -.10741E-05** at limit **
  19  norm          .10000E-03    .30685        .16465E-07** at limit **
  20  Prefactor     .10000E-03    135.95       -.78271E-06** at limit **
  21  Prefactor     .10000E-03    3.8186       -.20065E-06** at limit **
  22  Prefactor     10.534        10.691        .99286E-06   -.12650E-03
  23  Prefactor     27.295        19.689       -.93012E-07   -.12210E-04
  24  Prefactor     .10000E-03    2.7600       -.19775E-07** at limit **
  25  Prefactor     .10000E-03    10.807        .40830E-06** at limit **
  26  Normalizat    .93770        .16367       -.29185E-06   -.11332E-03
  27  Prefactor     .89263        .17433       -.27431E-06   -.78016E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.6657
  norm       = 5.48631
  Prefactor  = 0.0001
  Prefactor  = 0.626159
  Prefactor  = 0.0001
  norm       = 36.0698
  norm       = 11.6031
  Prefactor  = 7.22666
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.43128
  Prefactor  = 15.7766
  Prefactor  = 0.000100001
  norm       = 8.97595
  norm       = 2.79903
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.5336
  Prefactor  = 27.2951
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.937703
  Prefactor  = 0.892631
 **********
 **   18 **HESSE 
 **********

 FCN=   5751.443     FROM HESSE     STATUS=OK           486 CALLS     3768 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.666        20.947        .98116E-04   -1.4891    
   2  norm          5.4863        7.0284        .17155E-03   -1.5239    
   3  Prefactor     .10000E-03    11.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .62616        6.1012        .35220E-03   -1.5550    
   5  Prefactor     .10000E-03    6.3531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          36.070        37.780        .66735E-04   -1.4506    
   7  norm          11.603        5.6625        .11760E-03   -1.5027    
   8  Prefactor     7.2267        7.4735        .14921E-03   -1.5170    
   9  Prefactor     .10000E-03    13.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.3144        .84808E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.4313        1.3437        .62504E-04   -1.5396    
  12  Prefactor     15.777        14.047        .10085E-03   -1.4913    
  13  Prefactor     .10000E-03    15.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.9760        2.6131        .64049E-04   -1.5109    
  15  norm          2.7990        2.4111        .10413E-03   -1.5373    
  16  Prefactor     .10002E-03    37.958        .35121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    19.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .31495        .81940E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    136.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.561        .28287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10.534        10.738        .61715E-03   -1.5059    
  23  Prefactor     27.295        19.683        .76682E-04   -1.4663    
  24  Prefactor     .10000E-03    2.7697        .12299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    10.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .93770        .19156        .22308E-03   -.95148    
  27  Prefactor     .89263        .20379        .25361E-03   -.96399    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.45691e-10
Minuit parameter uncertainties:
  1  20.956
  2  7.02943
  3  6.36735e-06
  4  3.90933
  5  3.03059e-05
  6  37.8051
  7  5.66276
  8  7.47446
  9  3.63613e-05
  10  5.29351e-07
  11  1.34375
  12  14.05
  13  0.000246876
  14  2.61309
  15  2.41121
  16  0.0015701
  17  9.86241e-05
  18  0.000192761
  19  8.72704e-09
  20  0.000375665
  21  1.11523e-05
  22  10.74
  23  19.6873
  24  1.84916e-06
  25  4.95615e-05
  26  0.1917
  27  0.203969
Done.

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

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  1.578e+01  1.405e+01  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.926e-01  2.040e-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.377e-01  1.917e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.89
Ra Dec: 36.405 -45.037
Photon Index (Fixed Index): 2.48 +/- 0.00
Photon Flux (Fixed Index): 3.69e-08 +/- 3.28e-08
Energy Flux (Fixed Index): 1.10e-05 +/- 9.77e-06

TS (Fixed Index): 1.89
Ra Dec: 36.405 -45.037
Photon Flux Upper Limit: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/382761/likelihoodResults_406512001_406771201_4FGL_J0225.6-4502_daily_bin645.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): 0
logL (Free Index) = 5750.79595153
delta logL = 0.646756961827

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5750.76724802
delta logL = 0.675460467495

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1437       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6490       1.0000          .0000       10.000    
     3 'Normalizat'    .89397       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92724       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=   5750.767     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      246 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1437        39.380        .57157E-02   -.13278E-03
   2  Index         3.6491        2.8617        .11624        .12364E-03
   3  Normalizat    .89394        .53130E-01    .44824E-01   -.26462E-04
   4  Prefactor     .92724        .56980E-01    .45351E-01    .51345E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.14372
  Index      = 3.64906
  Normalizat = 0.893937
  Prefactor  = 0.927241
 **********
 **   18 **HESSE 
 **********

 FCN=   5750.767     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      279 TOTAL
                     EDM=   .39E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1437        69.426        .85816E-04   -1.5353    
   2  Index         3.6491        6.7232        .43418E-02   -.27359    
   3  Normalizat    .89394        .18964        .22779E-03   -.96674    
   4  Prefactor     .92724        .20919        .24933E-03   -.95196    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.93371e-07
Minuit parameter uncertainties:
  1  29.5854
  2  4.86964
  3  0.189783
  4  0.209375
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/382761': 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) = 5750.76724796
delta logL = 0.675460532437

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  3.144e+00  2.959e+01  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  3.649e+00  4.870e+00  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.272e-01  2.094e-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.939e-01  1.898e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.34
Ra Dec: 36.405 -45.037
Photon Index (Free Index): 3.65 +/- 4.87
Photon Flux (Free Index): 6.50e-08 +/- 4.70e-08
Energy Flux (Free Index): 1.04e-05 +/- 1.14e-05

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/382761/cmap_HighResolution_406512001_406771201_4FGL_J0225.6-4502_daily_bin645.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.36e-03', comment='SUCCESS', photon_flux='3.69e-08', energy_flux2='1.04e-05', photon_flux_error='3.28e-08', dlogl='6.75e-01', energy_flux='1.10e-05', photon_flux2='6.50e-08', job_status='DONE', time_completed='2021-08-15 21:41:17.770480', photon_index_error2='4.87', photon_index2='3.65', ts='1.89', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.08e-07', energy_flux_error2='1.14e-05', EG='0.94', time_epoch_completed='1629088877.77', return_code='0', job_id='382761', GAL2='0.93', EG2='0.89', return_code2='102', energy_flux_error='9.77e-06', photon_flux_error2='4.70e-08', ts2='3.34', photon_index='2.48' WHERE bin_id='645' 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@bullet0150>
Subject: Job 382761: <4FGL_J0225.6-4502_daily_bin645> in cluster <slac> Done

Job <4FGL_J0225.6-4502_daily_bin645> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Aug 15 21:25:33 2021
Job was executed on host(s) <bullet0150>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 21:26:35 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:26:35 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_bin645 36.4048 -45.0366 406512001 406771201 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 :                                   857.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             271.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            945 sec.

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

