/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 227 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 = 7390
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0225.1-2604_daily_bin401
RA = 36.2829, Dec = -26.0774
tmin = 343267201, tmax = 343526401
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='374760', job_status='RUN', time_executed='2021-08-15 21:05:59.525660', time_epoch_executed='1629086759.53' WHERE source_name='4FGL J0225.1-2604' and cadence='daily' and bin_id='401'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/374760

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/374760/ft1_4FGL_J0225.1-2604_daily_bin401.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/374760/ft2_4FGL_J0225.1-2604_daily_bin401.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/374760/ft1_4FGL_J0225.1-2604_daily_bin401.fits outfile=/scratch/kocevski/374760/ft1_filteredMKT_4FGL_J0225.1-2604_daily_bin401.fits ra=36.2829 dec=-26.0774 rad=12.0 tmin=343267201.0 tmax=343526401.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.10
user 3.25
sys 0.80

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/374760/ft2_4FGL_J0225.1-2604_daily_bin401.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/374760/ft2_4FGL_J0225.1-2604_daily_bin401.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/374760/ft1_filteredMKT_4FGL_J0225.1-2604_daily_bin401.fits evtable="EVENTS" outfile="/scratch/kocevski/374760/ft1_filtered_4FGL_J0225.1-2604_daily_bin401.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.13
user 0.32
sys 0.74

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/374760/ft1_filtered_4FGL_J0225.1-2604_daily_bin401.fits" evtable="EVENTS" scfile=/scratch/kocevski/374760/ft2_4FGL_J0225.1-2604_daily_bin401.fits sctable="SC_DATA" outfile=/scratch/kocevski/374760/ltcube_343267201_343526401_4FGL_J0225.1-2604_daily_bin401.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/374760/ft2_4FGL_J0225.1-2604_daily_bin401.fits
.....................!
real 13.96
user 12.84
sys 1.03

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/374760/ft1_filtered_4FGL_J0225.1-2604_daily_bin401.fits evtable="EVENTS" scfile=/scratch/kocevski/374760/ft2_4FGL_J0225.1-2604_daily_bin401.fits sctable="SC_DATA" expcube=/scratch/kocevski/374760/ltcube_343267201_343526401_4FGL_J0225.1-2604_daily_bin401.fits outfile=/scratch/kocevski/374760/expmap_343267201_343526401_4FGL_J0225.1-2604_daily_bin401.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/374760/ltcube_343267201_343526401_4FGL_J0225.1-2604_daily_bin401.fits
.....................!
real 192.87
user 186.30
sys 5.77

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.1-2604 @ 36.2829 -26.0774

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/374760/ft1_filtered_4FGL_J0225.1-2604_daily_bin401.fits scfile=/scratch/kocevski/374760/ft2_4FGL_J0225.1-2604_daily_bin401.fits outfile=/scratch/kocevski/374760/cmap_343267201_343526401_4FGL_J0225.1-2604_daily_bin401.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.2829 yref=-26.0774 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.12
user 0.36
sys 0.73

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/374760/ft1_filtered_4FGL_J0225.1-2604_daily_bin401.fits scfile=/scratch/kocevski/374760/ft2_4FGL_J0225.1-2604_daily_bin401.fits outfile=/scratch/kocevski/374760/cmap_HighResolution_343267201_343526401_4FGL_J0225.1-2604_daily_bin401.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.2829 yref=-26.0774 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.13
user 0.39
sys 0.72

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/374760/ft1_filtered_4FGL_J0225.1-2604_daily_bin401.fits evtable="EVENTS" scfile=/scratch/kocevski/374760/ft2_4FGL_J0225.1-2604_daily_bin401.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/374760/Model_4FGL_J0225.1-2604_daily_bin401.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/374760/ft1_filtered_4FGL_J0225.1-2604_daily_bin401.fits.....................!
real 70.98
user 68.55
sys 2.01

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/374760/ft1_filtered_4FGL_J0225.1-2604_daily_bin401.fits', '/scratch/kocevski/374760/ft2_4FGL_J0225.1-2604_daily_bin401.fits', expMap='/scratch/kocevski/374760/expmap_343267201_343526401_4FGL_J0225.1-2604_daily_bin401.fits', expCube='/scratch/kocevski/374760/ltcube_343267201_343526401_4FGL_J0225.1-2604_daily_bin401.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/374760/Model_4FGL_J0225.1-2604_daily_bin401.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0225.1-2604'

4FGL J0225.1-2604
   Spectrum: PowerLaw
281    Prefactor:  3.561e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.518e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  5.724e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/374760/ft1_filtered_4FGL_J0225.1-2604_daily_bin401.fits
Spacecraft file(s): /scratch/kocevski/374760/ft2_4FGL_J0225.1-2604_daily_bin401.fits
Exposure map: /scratch/kocevski/374760/expmap_343267201_343526401_4FGL_J0225.1-2604_daily_bin401.fits
Exposure cube: /scratch/kocevski/374760/ltcube_343267201_343526401_4FGL_J0225.1-2604_daily_bin401.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/374760/Model_4FGL_J0225.1-2604_daily_bin401.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) = 3263.0746753

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0667       1.0000         .10000E-03   10000.    
     2 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.8103       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .45642E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.3867       1.0000         .10000E-03   10000.    
    10 'Prefactor '    117.51       1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.931       1.0000         .10000E-03   10000.    
    12 'norm      '    .47269E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10415E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    27.175       1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10390E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    9.7187       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4159       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .36814       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5730E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3263.073     FROM MIGRAD    STATUS=CONVERGED    455 CALLS     2258 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0679        3.4670        .11590E-05    .24309E-03
   2  norm          .10000E-03    2.4921       -.58530E-07** at limit **
   3  Prefactor     .10000E-03    16.034        .66142E-07** at limit **
   4  norm          3.8114        3.1118        .54428E-07    .80062E-05
   5  Prefactor     .10000E-03    9.8845       -.58872E-06** at limit **
   6  Prefactor     .10000E-03    6.3136        .38884E-06** at limit **
   7  Prefactor     .10000E-03    5.0708        .34803E-06** at limit **
   8  norm          .10000E-03    26.722        .47013E-06** at limit **
   9  Prefactor     5.3906        8.1297        .16538E-06    .74824E-05
  10  Prefactor     117.54        71.039        .35351E-06    .81340E-04
  11  Prefactor     22.931        35.002        .32825E-07   -.42031E-05
  12  norm          .10036E-03    2.3844        .60673E-06** at limit **
  13  Prefactor     .10000E-03    49.540       -.61563E-07** at limit **
  14  Prefactor     .10000E-03    17.464       -.39709E-06** at limit **
  15  Prefactor     .10000E-03    1.6304       -.50680E-07** at limit **
  16  Prefactor     27.145        57.141       -.56514E-06   -.57920E-04
  17  norm          .10000E-03    1.8673       -.11989E-06** at limit **
  18  Prefactor     .10000E-03    12.426       -.84707E-06** at limit **
  19  norm          9.7182        4.9607        .10660E-07   -.66806E-05
  20  Normalizat    1.4153        .25429        .10174E-07   -.56130E-04
  21  Prefactor     .36868        .25197       -.10738E-05   -.40530E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.06791
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.81144
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.39063
  Prefactor  = 117.542
  Prefactor  = 22.931
  norm       = 0.000100356
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.1446
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 9.71818
  Normalizat = 1.41526
  Prefactor  = 0.368683
 **********
 **   18 **HESSE 
 **********

 FCN=   3263.073     FROM HESSE     STATUS=OK           315 CALLS     2573 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0679        3.4952        .47232E-03   -1.5305    
   2  norm          .10000E-03    2.5216        .88032E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.8114        3.1099        .86877E-04   -1.5317    
   5  Prefactor     .10000E-03    29.697        .34389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.3970        .14005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.0796        .12560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    26.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.3906        8.1485        .17315E-03   -1.5244    
  10  Prefactor     117.54        71.196        .18559E-03   -1.3535    
  11  Prefactor     22.931        34.994        .83647E-04   -1.4750    
  12  norm          .10036E-03    48.711        .15848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    49.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    17.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.6323        .71225E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     27.145        57.570        .76850E-04   -1.4665    
  17  norm          .10000E-03    1.9070        .15205E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          9.7182        4.9571        .87726E-04   -1.5084    
  20  Normalizat    1.4153        .27969        .19198E-03   -.80188    
  21  Prefactor     .36868        .27220        .36745E-03   -1.1844    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.87994e-09
Minuit parameter uncertainties:
  1  3.49533
  2  9.09569e-06
  3  2.69343e-05
  4  3.11005
  5  0.000621381
  6  6.9059e-06
  7  5.11491e-06
  8  1.37936e-05
  9  8.15015
  10  71.2476
  11  35.0252
  12  0.00833199
  13  9.5742e-05
  14  3.46518e-05
  15  1.1318e-07
  16  57.688
  17  2.1437e-06
  18  1.53522e-05
  19  4.95736
  20  0.279993
  21  0.273159
Done.

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

Extracting fit parameters...

4FGL J0225.1-2604
   Spectrum: PowerLaw
281    Prefactor:  5.391e+00  8.150e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.518e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  5.724e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
570    Prefactor:  3.687e-01  2.732e-01  0.000e+00  1.000e+01 ( 1.000e+00)
571        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
572        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
566   Normalization:  1.415e+00  2.800e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.57
Ra Dec: 36.283 -26.077
Photon Flux Upper Limit: 1.34e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.05e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/374760/likelihoodResults_343267201_343526401_4FGL_J0225.1-2604_daily_bin401.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) = 3262.73453058
delta logL = 0.338334572172

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3262.67686532
delta logL = 0.395999835688

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3262.677     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      216 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2852        3.0875        .67894E-02    .35966E-02
   2  Index         1.1922        .42214        .17144       -.25744E-04
   3  Normalizat    1.4318        .24285        .30786E-01    .20162E-04
   4  Prefactor     .36210        .25180        .83664E-01   -.41876E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.28519
  Index      = 1.1922
  Normalizat = 1.43177
  Prefactor  = 0.362098
 **********
 **   18 **HESSE 
 **********

 FCN=   3262.677     FROM HESSE     STATUS=OK            31 CALLS      247 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2852        5.9550        .10790E-03   -1.5406    
   2  Index         1.1922        .89024        .69091E-02   -.86572    
   3  Normalizat    1.4318        .25995        .19090E-03   -.79714    
   4  Prefactor     .36210        .26850        .37068E-03   -1.1879    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14153e-08
Minuit parameter uncertainties:
  1  5.95655
  2  0.901833
  3  0.260191
  4  0.269436
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/374760': 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) = 3262.6768653
delta logL = 0.39599985221

Extracting fit parameters...

4FGL J0225.1-2604
   Spectrum: PowerLaw
281    Prefactor:  2.285e+00  5.957e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  1.192e+00  9.018e-01  0.000e+00  1.000e+01 (-1.000e+00)
283        Scale:  5.724e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
570    Prefactor:  3.621e-01  2.694e-01  0.000e+00  1.000e+01 ( 1.000e+00)
571        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
572        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
566   Normalization:  1.432e+00  2.602e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.36
Ra Dec: 36.283 -26.077
Photon Index (Free Index): 1.19 +/- 0.90
Photon Flux (Free Index): 6.99e-09 +/- 1.33e-08
Energy Flux (Free Index): 5.98e-05 +/- 1.09e-04

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/374760/cmap_HighResolution_343267201_343526401_4FGL_J0225.1-2604_daily_bin401.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', comment='SUCCESS', energy_flux2='5.98e-05', dlogl='3.96e-01', photon_flux2='6.99e-09', job_status='DONE', time_completed='2021-08-15 21:14:51.464521', photon_index_error2='0.90', photon_index2='1.19', ts='0.57', fit_tolerance='1e-08', GAL='0.37', photon_index_error='0.00', photon_flux_upper_limit='1.34e-07', energy_flux_error2='1.09e-04', EG='1.42', time_epoch_completed='1629087291.46', return_code='0', job_id='374760', GAL2='0.36', EG2='1.43', return_code2='0', photon_flux_error2='1.33e-08', ts2='1.36', photon_index='2.52' WHERE bin_id='401' AND source_name='4FGL J0225.1-2604' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 21:14:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 374760: <4FGL_J0225.1-2604_daily_bin401> in cluster <slac> Done

Job <4FGL_J0225.1-2604_daily_bin401> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Aug 15 21:00:49 2021
Job was executed on host(s) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 21:01:53 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:01:53 2021
Terminated at Sun Aug 15 21:14:52 2021
Results reported at Sun Aug 15 21:14:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0225.1-2604_daily_bin401 36.2829 -26.0774 343267201 343526401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0225.1-2604 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   531.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            843 sec.

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

