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


Performing analysis on: 4FGL_J0225.6-4502_daily_bin1640
RA = 36.4048, Dec = -45.0366
tmin = 664416001, tmax = 664675201
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='274035', job_status='RUN', time_executed='2022-01-24 00:07:38.931391', time_epoch_executed='1643011658.93' WHERE source_name='4FGL J0225.6-4502' and cadence='daily' and bin_id='1640'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/274035

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/274035/ft1_4FGL_J0225.6-4502_daily_bin1640.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/274035/ft2_4FGL_J0225.6-4502_daily_bin1640.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/274035/ft1_4FGL_J0225.6-4502_daily_bin1640.fits outfile=/scratch/kocevski/274035/ft1_filteredMKT_4FGL_J0225.6-4502_daily_bin1640.fits ra=36.4048 dec=-45.0366 rad=12.0 tmin=664416001.0 tmax=664675201.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 3.67
user 3.40
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/274035/ft2_4FGL_J0225.6-4502_daily_bin1640.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/274035/ft1_filteredMKT_4FGL_J0225.6-4502_daily_bin1640.fits evtable="EVENTS" outfile="/scratch/kocevski/274035/ft1_filtered_4FGL_J0225.6-4502_daily_bin1640.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/274035/ft1_filtered_4FGL_J0225.6-4502_daily_bin1640.fits" evtable="EVENTS" scfile=/scratch/kocevski/274035/ft2_4FGL_J0225.6-4502_daily_bin1640.fits sctable="SC_DATA" outfile=/scratch/kocevski/274035/ltcube_664416001_664675201_4FGL_J0225.6-4502_daily_bin1640.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/274035/ft2_4FGL_J0225.6-4502_daily_bin1640.fits
.....................!
real 11.99
user 11.62
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/274035/ft1_filtered_4FGL_J0225.6-4502_daily_bin1640.fits evtable="EVENTS" scfile=/scratch/kocevski/274035/ft2_4FGL_J0225.6-4502_daily_bin1640.fits sctable="SC_DATA" expcube=/scratch/kocevski/274035/ltcube_664416001_664675201_4FGL_J0225.6-4502_daily_bin1640.fits outfile=/scratch/kocevski/274035/expmap_664416001_664675201_4FGL_J0225.6-4502_daily_bin1640.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/274035/ltcube_664416001_664675201_4FGL_J0225.6-4502_daily_bin1640.fits
.....................!
real 191.60
user 185.52
sys 5.48

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/274035/ft1_filtered_4FGL_J0225.6-4502_daily_bin1640.fits scfile=/scratch/kocevski/274035/ft2_4FGL_J0225.6-4502_daily_bin1640.fits outfile=/scratch/kocevski/274035/cmap_664416001_664675201_4FGL_J0225.6-4502_daily_bin1640.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.73
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/274035/ft1_filtered_4FGL_J0225.6-4502_daily_bin1640.fits scfile=/scratch/kocevski/274035/ft2_4FGL_J0225.6-4502_daily_bin1640.fits outfile=/scratch/kocevski/274035/cmap_HighResolution_664416001_664675201_4FGL_J0225.6-4502_daily_bin1640.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.94
user 0.37
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/274035/ft1_filtered_4FGL_J0225.6-4502_daily_bin1640.fits evtable="EVENTS" scfile=/scratch/kocevski/274035/ft2_4FGL_J0225.6-4502_daily_bin1640.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/274035/Model_4FGL_J0225.6-4502_daily_bin1640.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/274035/ft1_filtered_4FGL_J0225.6-4502_daily_bin1640.fits.....................!
real 102.76
user 90.07
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    11.366       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.368       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    22.373       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .74606       1.0000         .10000E-03   10000.    
    11 'norm      '    2.9075       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.8126       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .53706       1.0000         .10000E-03   10000.    
    15 'norm      '    3.6901       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.7233       1.0000         .10000E-03   10000.    
    17 'Prefactor '    46.523       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10267E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .58073E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.3923       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.0817       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0611       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .92658       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=   4357.097     FROM MIGRAD    STATUS=CONVERGED   1124 CALLS     3829 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.910        .18142E-02** at limit **
   2  norm          11.365        9.9700        .11883E-03   -.50705E-05
   3  Prefactor     .10000E-03    22.963        .18142E-02** at limit **
   4  Prefactor     15.367        8.1440        .10217E-03    .23812E-04
   5  Prefactor     .10000E-03    1.9213        .89330E-03** at limit **
   6  norm          22.380        64.866        .84683E-04   -.29535E-05
   7  norm          .10000E-03    1.8677        .87907E-03** at limit **
   8  Prefactor     .10000E-03    5.4691        .15067E-02** at limit **
   9  Prefactor     .10000E-03    17.826        .18142E-02** at limit **
  10  Prefactor     .74486        7.5049        .16291E-02   -.16131E-03
  11  norm          2.9073        1.8712        .65254E-04    .16569E-03
  12  Prefactor     9.8137        16.558        .12792E-03    .60432E-05
  13  Prefactor     .10000E-03    19.256        .18142E-02** at limit **
  14  norm          .53839        2.8903        .16922E-02   -.18569E-03
  15  norm          3.6890        3.9795        .12408E-03   -.31693E-03
  16  Prefactor     6.7398        14.594        .15475E-03   -.21158E-04
  17  Prefactor     46.534        37.154        .58785E-04   -.25296E-03
  18  Prefactor     .10000E-03    28.016        .18142E-02** at limit **
  19  norm          .10000E-03    .98706        .97864E-03** at limit **
  20  Prefactor     .10019E-03    1657.8        .18142E-02** at limit **
  21  Prefactor     .10001E-03    21.688        .22003E-02** at limit **
  22  Prefactor     .10000E-03    7.5590        .17679E-02** at limit **
  23  Prefactor     .10000E-03    6.9399        .16982E-02** at limit **
  24  Prefactor     2.3927        5.0463        .10479E-02    .15254E-04
  25  Prefactor     4.0818        16.033        .99778E-03    .56626E-04
  26  Normalizat    1.0613        .24005        .22471E-03   -.33590E-03
  27  Prefactor     .92652        .25556        .25831E-03   -.30843E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 11.365
  Prefactor  = 0.0001
  Prefactor  = 15.3666
  Prefactor  = 0.0001
  norm       = 22.3801
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.744864
  norm       = 2.90728
  Prefactor  = 9.81369
  Prefactor  = 0.0001
  norm       = 0.538392
  norm       = 3.68903
  Prefactor  = 6.73975
  Prefactor  = 46.534
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100193
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.39269
  Prefactor  = 4.08176
  Normalizat = 1.06128
  Prefactor  = 0.926525
 **********
 **   18 **HESSE 
 **********

 FCN=   4357.097     FROM HESSE     STATUS=OK           468 CALLS     4297 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.911        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          11.365        9.9693        .47533E-05   -1.5034    
   3  Prefactor     .10000E-03    22.964        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.367        8.1435        .40868E-05   -1.4924    
   5  Prefactor     .10000E-03    1.9213        .17866E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          22.380        64.831        .33873E-05   -1.4761    
   7  norm          .10000E-03    1.8678        .17581E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.4692        .30133E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.830        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .74486        7.4350        .65166E-04   -1.5535    
  11  norm          2.9073        1.8646        .26101E-05   -1.5367    
  12  Prefactor     9.8137        16.554        .51169E-05   -1.5081    
  13  Prefactor     .10000E-03    19.256        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .53839        2.8751        .67689E-04   -1.5561    
  15  norm          3.6890        3.9788        .49631E-05   -1.5324    
  16  Prefactor     6.7398        14.590        .61899E-05   -1.5189    
  17  Prefactor     46.534        37.151        .11757E-04   -1.4343    
  18  Prefactor     .10000E-03    28.017        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .98798        .19573E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10019E-03    1658.0        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    21.902        .44006E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.5603        .35358E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.9399        .33964E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.3927        5.0450        .41917E-04   -1.5399    
  25  Prefactor     4.0818        16.029        .19956E-03   -1.5304    
  26  Normalizat    1.0613        .24021        .44942E-04   -.91005    
  27  Prefactor     .92652        .25560        .51663E-04   -.95220    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05826e-09
Minuit parameter uncertainties:
  1  4.82816e-06
  2  9.9708
  3  3.56622e-05
  4  8.14408
  5  2.45255e-06
  6  65.0362
  7  2.34553e-06
  8  3.95949e-06
  9  7.70507e-06
  10  4.70706
  11  1.86467
  12  16.562
  13  3.53058e-05
  14  2.48828
  15  3.97909
  16  14.5976
  17  37.1694
  18  3.88228e-06
  19  2.64613e-06
  20  0.0368083
  21  0.000929973
  22  1.48889e-05
  23  7.71925e-06
  24  5.04591
  25  16.0462
  26  0.240457
  27  0.25593DoDone.

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

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  9.814e+00  1.656e+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:  9.265e-01  2.559e-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.061e+00  2.405e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/274035/likelihoodResults_664416001_664675201_4FGL_J0225.6-4502_daily_bin1640.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) = 4357.07420301
delta logL = 0.0228144699649

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4357.0631951
delta logL = 0.033822374754

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.2749       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7635       1.0000          .0000       10.000    
     3 'Normalizat'    1.0547       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93130       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=   4357.063     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      243 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2681        19.282        .14871E-03    .37261E-03
   2  Index         2.7637        1.3414        .85953E-02    .11074E-03
   3  Normalizat    1.0546        .23305        .22533E-03   -.15511E-02
   4  Prefactor     .93137        .25042        .25772E-03   -.13099E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.26806
  Index      = 2.76372
  Normalizat = 1.05462
  Prefactor  = 0.93137
 **********
 **   18 **HESSE 
 **********

 FCN=   4357.063     FROM HESSE     STATUS=OK            25 CALLS      268 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2681        16.374        .59484E-05   -1.5169    
   2  Index         2.7637        1.1431        .34381E-03   -.46369    
   3  Normalizat    1.0546        .23323        .45066E-04   -.91222    
   4  Prefactor     .93137        .25043        .51544E-04   -.95053    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.9408e-09
Minuit parameter uncertainties:
  1  16.3843
  2  1.15595
  3  0.233452
  4  0.250745
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/274035': 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): 0
logL (Free Index) = 4357.06319492
delta logL = 0.0338225588494

Extracting fit parameters...

4FGL J0225.6-4502
   Spectrum: PowerLaw
284    Prefactor:  7.268e+00  1.638e+01  1.000e-04  1.000e+04 ( 1.000e-13)
285        Index:  2.764e+00  1.156e+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.314e-01  2.507e-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.055e+00  2.335e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.45
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/274035/cmap_HighResolution_664416001_664675201_4FGL_J0225.6-4502_daily_bin1640.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.79e-03', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2022-01-24 00:19:33.199980', job_id='274035', GAL2='0.93', fit_tolerance='1e-08', EG2='1.05', EG='1.06', time_epoch_completed='1643012373.2', return_code2='0', ts='0.45', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='3.38e-02', ts2='0.52', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='1640' AND source_name='4FGL J0225.6-4502' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jan 24 00:19:33 PST 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0008>
Subject: Job 274055: <4FGL_J0225.6-4502_daily_bin1640> in cluster <slac> Done

Job <4FGL_J0225.6-4502_daily_bin1640> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Jan 24 00:05:46 2022
Job was executed on host(s) <bullet0008>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jan 24 00:06:14 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jan 24 00:06:14 2022
Terminated at Mon Jan 24 00:19:00 2022
Results reported at Mon Jan 24 00:19:00 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0225.6-4502_daily_bin1640 36.4048 -45.0366 664416001 664675201 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 :                                   702.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             359.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   765 sec.
    Turnaround time :                            794 sec.

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


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 274035: <4FGL_J0225.6-4502_daily_bin1640> in cluster <slac> Done

Job <4FGL_J0225.6-4502_daily_bin1640> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Jan 24 00:05:45 2022
Job was executed on host(s) <bullet0160>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jan 24 00:06:14 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jan 24 00:06:14 2022
Terminated at Mon Jan 24 00:19:33 2022
Results reported at Mon Jan 24 00:19:33 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0225.6-4502_daily_bin1640 36.4048 -45.0366 664416001 664675201 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 :                                   700.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             353.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            828 sec.

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

