/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 2 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 = 7394
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0225.1-2604_daily_bin108
RA = 36.2829, Dec = -26.0774
tmin = 267321601, tmax = 267580801
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='372949', job_status='RUN', time_executed='2021-08-15 20:58:12.645932', time_epoch_executed='1629086292.65' WHERE source_name='4FGL J0225.1-2604' and cadence='daily' and bin_id='108'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/372949

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/372949/ft1_4FGL_J0225.1-2604_daily_bin108.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/372949/ft2_4FGL_J0225.1-2604_daily_bin108.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/372949/ft1_4FGL_J0225.1-2604_daily_bin108.fits outfile=/scratch/kocevski/372949/ft1_filteredMKT_4FGL_J0225.1-2604_daily_bin108.fits ra=36.2829 dec=-26.0774 rad=12.0 tmin=267321601.0 tmax=267580801.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 2.21
user 1.23
sys 0.89

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/372949/ft2_4FGL_J0225.1-2604_daily_bin108.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/372949/ft1_filteredMKT_4FGL_J0225.1-2604_daily_bin108.fits evtable="EVENTS" outfile="/scratch/kocevski/372949/ft1_filtered_4FGL_J0225.1-2604_daily_bin108.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.24
user 0.34
sys 0.87

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/372949/ft1_filtered_4FGL_J0225.1-2604_daily_bin108.fits" evtable="EVENTS" scfile=/scratch/kocevski/372949/ft2_4FGL_J0225.1-2604_daily_bin108.fits sctable="SC_DATA" outfile=/scratch/kocevski/372949/ltcube_267321601_267580801_4FGL_J0225.1-2604_daily_bin108.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/372949/ft2_4FGL_J0225.1-2604_daily_bin108.fits
.....................!
real 15.92
user 14.67
sys 1.16

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/372949/ft1_filtered_4FGL_J0225.1-2604_daily_bin108.fits evtable="EVENTS" scfile=/scratch/kocevski/372949/ft2_4FGL_J0225.1-2604_daily_bin108.fits sctable="SC_DATA" expcube=/scratch/kocevski/372949/ltcube_267321601_267580801_4FGL_J0225.1-2604_daily_bin108.fits outfile=/scratch/kocevski/372949/expmap_267321601_267580801_4FGL_J0225.1-2604_daily_bin108.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/372949/ltcube_267321601_267580801_4FGL_J0225.1-2604_daily_bin108.fits
.....................!
real 193.67
user 186.66
sys 6.18

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/372949/ft1_filtered_4FGL_J0225.1-2604_daily_bin108.fits scfile=/scratch/kocevski/372949/ft2_4FGL_J0225.1-2604_daily_bin108.fits outfile=/scratch/kocevski/372949/cmap_267321601_267580801_4FGL_J0225.1-2604_daily_bin108.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.25
user 0.37
sys 0.85

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/372949/ft1_filtered_4FGL_J0225.1-2604_daily_bin108.fits scfile=/scratch/kocevski/372949/ft2_4FGL_J0225.1-2604_daily_bin108.fits outfile=/scratch/kocevski/372949/cmap_HighResolution_267321601_267580801_4FGL_J0225.1-2604_daily_bin108.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.30
user 0.38
sys 0.87

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/372949/ft1_filtered_4FGL_J0225.1-2604_daily_bin108.fits evtable="EVENTS" scfile=/scratch/kocevski/372949/ft2_4FGL_J0225.1-2604_daily_bin108.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/372949/Model_4FGL_J0225.1-2604_daily_bin108.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/372949/ft1_filtered_4FGL_J0225.1-2604_daily_bin108.fits.....................!
real 122.58
user 119.90
sys 2.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/372949/ft1_filtered_4FGL_J0225.1-2604_daily_bin108.fits', '/scratch/kocevski/372949/ft2_4FGL_J0225.1-2604_daily_bin108.fits', expMap='/scratch/kocevski/372949/expmap_267321601_267580801_4FGL_J0225.1-2604_daily_bin108.fits', expCube='/scratch/kocevski/372949/ltcube_267321601_267580801_4FGL_J0225.1-2604_daily_bin108.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/372949/Model_4FGL_J0225.1-2604_daily_bin108.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/372949/ft1_filtered_4FGL_J0225.1-2604_daily_bin108.fits
Spacecraft file(s): /scratch/kocevski/372949/ft2_4FGL_J0225.1-2604_daily_bin108.fits
Exposure map: /scratch/kocevski/372949/expmap_267321601_267580801_4FGL_J0225.1-2604_daily_bin108.fits
Exposure cube: /scratch/kocevski/372949/ltcube_267321601_267580801_4FGL_J0225.1-2604_daily_bin108.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/372949/Model_4FGL_J0225.1-2604_daily_bin108.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) = 6219.90060747

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5322       1.0000         .10000E-03   10000.    
     2 'norm      '    5.9024       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .16482       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11841       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3963       1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.579       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.6078       1.0000         .10000E-03   10000.    
    13 'Prefactor '    32.313       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.1786       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.0612       1.0000         .10000E-03   10000.    
    16 'Prefactor '    74.761       1.0000         .10000E-03   10000.    
    17 'norm      '    2.3098       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.8976       1.0000         .10000E-03   10000.    
    19 'norm      '    3.7062       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .79238       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .94911       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=   6219.886     FROM MIGRAD    STATUS=CONVERGED    454 CALLS     2224 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5325        1.9087       -.71432E-07   -.42103E-04
   2  norm          5.9039        3.1210        .84298E-06   -.10541E-02
   3  Prefactor     .10000E-03    26.694       -.21903E-06** at limit **
   4  norm          .16456        1.1388        .10643E-05   -.33085E-03
   5  Prefactor     .10000E-03    9.4438        .27553E-07** at limit **
   6  Prefactor     .10000E-03    2.2409        .77982E-07** at limit **
   7  Prefactor     .14427        4.9702       -.16100E-05    .74742E-03
   8  norm          .10000E-03    16.518        .93935E-07** at limit **
   9  Prefactor     2.3965        2.6903        .43692E-07   -.67727E-04
  10  Prefactor     17.581        22.090       -.44698E-06    .54428E-05
  11  Prefactor     .10000E-03    16.584       -.30658E-07** at limit **
  12  norm          2.6081        2.2251        .87634E-07   -.54898E-04
  13  Prefactor     32.313        20.265        .20016E-06    .34646E-04
  14  Prefactor     1.1948        91.512        .10058E-04    .48594E-04
  15  Prefactor     2.0614        2.5734        .14521E-06   -.68183E-04
  16  Prefactor     74.720        40.475       -.61855E-05   -.87186E-03
  17  norm          2.3102        1.6414       -.12152E-06   -.23494E-03
  18  Prefactor     4.9099        13.443        .18246E-05    .10970E-04
  19  norm          3.7070        3.3891        .23953E-05   -.13492E-02
  20  Normalizat    .79201        .14815        .79291E-06   -.13688E-03
  21  Prefactor     .94946        .16255       -.17148E-05    .79707E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.53253
  norm       = 5.90387
  Prefactor  = 0.0001
  norm       = 0.164564
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.144272
  norm       = 0.0001
  Prefactor  = 2.39652
  Prefactor  = 17.5807
  Prefactor  = 0.0001
  norm       = 2.60815
  Prefactor  = 32.3133
  Prefactor  = 1.1948
  Prefactor  = 2.06138
  Prefactor  = 74.7201
  norm       = 2.31022
  Prefactor  = 4.90989
  norm       = 3.70701
  Normalizat = 0.79201
  Prefactor  = 0.949464
 **********
 **   18 **HESSE 
 **********

 FCN=   6219.886     FROM HESSE     STATUS=OK           325 CALLS     2549 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5325        1.9080        .68204E-04   -1.5282    
   2  norm          5.9039        3.1856        .48285E-03   -1.5222    
   3  Prefactor     .10000E-03    26.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .16456        1.1614        .16250E-03   -1.5627    
   5  Prefactor     .10000E-03    9.6295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.2740        .11521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .14427        40.244        .32830E-02   -1.5632    
   8  norm          .10000E-03    16.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.3965        2.6847        .13271E-03   -1.5398    
  10  Prefactor     17.581        22.102        .95527E-04   -1.4869    
  11  Prefactor     .10000E-03    16.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.6081        2.2186        .10343E-03   -1.5385    
  13  Prefactor     32.313        20.253        .70490E-04   -1.4570    
  14  Prefactor     1.1948        94.883        .42143E-03   -1.5489    
  15  Prefactor     2.0614        2.5603        .13708E-03   -1.5421    
  16  Prefactor     74.720        43.750        .46437E-04   -1.3977    
  17  norm          2.3102        1.6379        .80292E-04   -1.5404    
  18  Prefactor     4.9099        13.524        .18175E-03   -1.5265    
  19  norm          3.7070        3.4951        .67501E-03   -1.5323    
  20  Normalizat    .79201        .17390        .22333E-03   -1.0037    
  21  Prefactor     .94946        .19015        .23761E-03   -.94434    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3368e-08
Minuit parameter uncertainties:
  1  1.90807
  2  3.18565
  3  5.77571e-05
  4  0.874126
  5  2.18301e-05
  6  2.45277e-06
  7  4.82076
  8  5.53362e-05
  9  2.68484
  10  22.1125
  11  8.8218e-06
  12  2.21865
  13  20.2572
  14  21.3289
  15  2.56039
  16  43.7693
  17  1.63796
  18  13.532
  19  3.49525
  20  0.174025
  21  0.190281
Done.

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

Extracting fit parameters...

4FGL J0225.1-2604
   Spectrum: PowerLaw
281    Prefactor:  2.397e+00  2.685e+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:  9.495e-01  1.903e-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:  7.920e-01  1.740e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.03
Ra Dec: 36.283 -26.077
Photon Index (Fixed Index): 2.52 +/- 0.00
Photon Flux (Fixed Index): 1.28e-08 +/- 1.43e-08
Energy Flux (Fixed Index): 3.64e-06 +/- 4.07e-06

TS (Fixed Index): 2.03
Ra Dec: 36.283 -26.077
Photon Flux Upper Limit: 5.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/372949/likelihoodResults_267321601_267580801_4FGL_J0225.1-2604_daily_bin108.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) = 6218.80703045
delta logL = 1.07926454046

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6218.77361607
delta logL = 1.11267892083

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7076       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3812       1.0000          .0000       10.000    
     3 'Normalizat'    .80308       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94159       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=   6218.774     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      206 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7066        1.8005        .80438E-02   -.27276E-03
   2  Index         1.3808        .40416        .23765       -.65330E-04
   3  Normalizat    .80305        .13834        .43650E-01    .16585E-04
   4  Prefactor     .94162        .16071        .45533E-01    .13402E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.70658
  Index      = 1.38082
  Normalizat = 0.803049
  Prefactor  = 0.941622
 **********
 **   18 **HESSE 
 **********

 FCN=   6218.774     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .45E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7066        2.3818        .10414E-03   -1.5447    
   2  Index         1.3808        .62785        .88733E-02   -.80934    
   3  Normalizat    .80305        .16206        .22185E-03   -.99956    
   4  Prefactor     .94162        .18827        .23837E-03   -.94701    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.5283e-12
Minuit parameter uncertainties:
  1  2.38197
  2  0.631367
  3  0.162153
  4  0.1884
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/372949': 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) = 6218.77361592
delta logL = 1.11267906836

Extracting fit parameters...

4FGL J0225.1-2604
   Spectrum: PowerLaw
281    Prefactor:  1.707e+00  2.382e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  1.381e+00  6.314e-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:  9.416e-01  1.884e-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:  8.030e-01  1.622e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.25
Ra Dec: 36.283 -26.077
Photon Index (Free Index): 1.38 +/- 0.63
Photon Flux (Free Index): 4.63e-09 +/- 5.84e-09
Energy Flux (Free Index): 2.18e-05 +/- 3.76e-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/372949/cmap_HighResolution_267321601_267580801_4FGL_J0225.1-2604_daily_bin108.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.42e-03', comment='SUCCESS', photon_flux='1.28e-08', energy_flux2='2.18e-05', photon_flux_error='1.43e-08', dlogl='1.11e+00', energy_flux='3.64e-06', photon_flux2='4.63e-09', job_status='DONE', time_completed='2021-08-15 21:09:58.065945', photon_index_error2='0.63', photon_index2='1.38', ts='2.03', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='5.67e-08', energy_flux_error2='3.76e-05', EG='0.79', time_epoch_completed='1629086998.07', return_code='0', job_id='372949', GAL2='0.94', EG2='0.80', return_code2='0', energy_flux_error='4.07e-06', photon_flux_error2='5.84e-09', ts2='4.25', photon_index='2.52' WHERE bin_id='108' AND source_name='4FGL J0225.1-2604' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 21:09:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 372949: <4FGL_J0225.1-2604_daily_bin108> in cluster <slac> Done

Job <4FGL_J0225.1-2604_daily_bin108> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Aug 15 20:55:37 2021
Job was executed on host(s) <bullet0156>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 20:57:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 20:57:48 2021
Terminated at Sun Aug 15 21:09:58 2021
Results reported at Sun Aug 15 21:09:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0225.1-2604_daily_bin108 36.2829 -26.0774 267321601 267580801 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 :                                   712.31 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             351.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   730 sec.
    Turnaround time :                            861 sec.

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

