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


Performing analysis on: 4FGL_J0225.1-2604_daily_bin346
RA = 36.2829, Dec = -26.0774
tmin = 329011201, tmax = 329270401
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='374678', job_status='RUN', time_executed='2021-08-15 21:03:09.758899', time_epoch_executed='1629086589.76' WHERE source_name='4FGL J0225.1-2604' and cadence='daily' and bin_id='346'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/374678

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/374678/ft1_4FGL_J0225.1-2604_daily_bin346.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/374678/ft2_4FGL_J0225.1-2604_daily_bin346.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/374678/ft1_4FGL_J0225.1-2604_daily_bin346.fits outfile=/scratch/kocevski/374678/ft1_filteredMKT_4FGL_J0225.1-2604_daily_bin346.fits ra=36.2829 dec=-26.0774 rad=12.0 tmin=329011201.0 tmax=329270401.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 8.79
user 3.34
sys 5.39

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/374678/ft2_4FGL_J0225.1-2604_daily_bin346.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/374678/ft1_filteredMKT_4FGL_J0225.1-2604_daily_bin346.fits evtable="EVENTS" outfile="/scratch/kocevski/374678/ft1_filtered_4FGL_J0225.1-2604_daily_bin346.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 5.76
user 0.35
sys 5.37

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/374678/ft1_filtered_4FGL_J0225.1-2604_daily_bin346.fits" evtable="EVENTS" scfile=/scratch/kocevski/374678/ft2_4FGL_J0225.1-2604_daily_bin346.fits sctable="SC_DATA" outfile=/scratch/kocevski/374678/ltcube_329011201_329270401_4FGL_J0225.1-2604_daily_bin346.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/374678/ft2_4FGL_J0225.1-2604_daily_bin346.fits
.....................!
real 20.73
user 14.43
sys 6.16

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/374678/ft1_filtered_4FGL_J0225.1-2604_daily_bin346.fits evtable="EVENTS" scfile=/scratch/kocevski/374678/ft2_4FGL_J0225.1-2604_daily_bin346.fits sctable="SC_DATA" expcube=/scratch/kocevski/374678/ltcube_329011201_329270401_4FGL_J0225.1-2604_daily_bin346.fits outfile=/scratch/kocevski/374678/expmap_329011201_329270401_4FGL_J0225.1-2604_daily_bin346.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/374678/ltcube_329011201_329270401_4FGL_J0225.1-2604_daily_bin346.fits
.....................!
real 198.68
user 186.39
sys 11.54

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/374678/ft1_filtered_4FGL_J0225.1-2604_daily_bin346.fits scfile=/scratch/kocevski/374678/ft2_4FGL_J0225.1-2604_daily_bin346.fits outfile=/scratch/kocevski/374678/cmap_329011201_329270401_4FGL_J0225.1-2604_daily_bin346.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 5.49
user 0.38
sys 5.07

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/374678/ft1_filtered_4FGL_J0225.1-2604_daily_bin346.fits scfile=/scratch/kocevski/374678/ft2_4FGL_J0225.1-2604_daily_bin346.fits outfile=/scratch/kocevski/374678/cmap_HighResolution_329011201_329270401_4FGL_J0225.1-2604_daily_bin346.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 5.76
user 0.39
sys 5.23

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/374678/ft1_filtered_4FGL_J0225.1-2604_daily_bin346.fits evtable="EVENTS" scfile=/scratch/kocevski/374678/ft2_4FGL_J0225.1-2604_daily_bin346.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/374678/Model_4FGL_J0225.1-2604_daily_bin346.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/374678/ft1_filtered_4FGL_J0225.1-2604_daily_bin346.fits.....................!
real 102.21
user 94.11
sys 7.43

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9712       1.0000         .10000E-03   10000.    
     2 'norm      '    1.0526       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.255       1.0000         .10000E-03   10000.    
     4 'norm      '    9.8301       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.3392       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10459E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .37493E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.0417       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.999       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10412E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.5032       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.5448       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .57921       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4729.386     FROM MIGRAD    STATUS=CONVERGED    807 CALLS     2853 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9705        2.4202        .11457E-03   -.12741E-03
   2  norm          1.0576        1.8487        .14539E-02    .34026E-03
   3  Prefactor     16.239        40.198        .99340E-04    .52071E-04
   4  norm          9.8302        3.2191        .67995E-04   -.19462E-03
   5  Prefactor     7.3394        11.049        .74026E-03   -.22898E-03
   6  Prefactor     .10000E-03    1.8749        .91858E-03** at limit **
   7  Prefactor     .10000E-03    4.3487        .13989E-02** at limit **
   8  norm          .10000E-03    48.917        .18142E-02** at limit **
   9  Prefactor     .10000E-03    5.5915        .15752E-02** at limit **
  10  Prefactor     .10002E-03    52.009        .13725    ** at limit **
  11  Prefactor     .10000E-03    25.367        .18142E-02** at limit **
  12  norm          4.0421        3.0764        .10084E-03   -.52423E-04
  13  Prefactor     10.996        28.298        .60401E-03   -.42444E-04
  14  Prefactor     .10000E-03    16.717        .18142E-02** at limit **
  15  Prefactor     .10000E-03    1.9046        .92339E-03** at limit **
  16  Prefactor     .10007E-03    176.78        .18142E-02** at limit **
  17  norm          7.5033        3.1424        .74989E-04   -.21922E-03
  18  Prefactor     .10000E-03    6.3636        .16936E-02** at limit **
  19  norm          .10000E-03    1.1010        .70384E-03** at limit **
  20  Normalizat    1.5447        .25343        .21371E-03    .28734E-03
  21  Prefactor     .57922        .26300        .35104E-03   -.76495E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.97045
  norm       = 1.05755
  Prefactor  = 16.2393
  norm       = 9.8302
  Prefactor  = 7.3394
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100024
  Prefactor  = 0.0001
  norm       = 4.04211
  Prefactor  = 10.9962
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100071
  norm       = 7.5033
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.54468
  Prefactor  = 0.579216
 **********
 **   18 **HESSE 
 **********

 FCN=   4729.386     FROM HESSE     STATUS=OK           307 CALLS     3160 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9705        2.4199        .45827E-05   -1.5427    
   2  norm          1.0576        1.8472        .58155E-04   -1.5502    
   3  Prefactor     16.239        40.204        .39736E-05   -1.4902    
   4  norm          9.8302        3.2191        .27198E-05   -1.5081    
   5  Prefactor     7.3394        11.048        .29610E-04   -1.5166    
   6  Prefactor     .10000E-03    1.8749        .18372E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.3489        .27979E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    48.920        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.5941        .31505E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10002E-03    52.302        .13671       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    25.368        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.0421        3.0762        .40337E-05   -1.5306    
  13  Prefactor     10.996        28.294        .24160E-04   -1.5045    
  14  Prefactor     .10000E-03    16.717        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.9047        .18468E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10007E-03    176.88        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.5033        3.1423        .29996E-05   -1.5160    
  18  Prefactor     .10000E-03    6.3638        .33871E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.1010        .14077E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.5447        .25357        .42742E-04   -.76530    
  21  Prefactor     .57922        .26318        .14042E-04   -1.0847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42232e-09
Minuit parameter uncertainties:
  1  2.42004
  2  1.84735
  3  40.2707
  4  3.2192
  5  11.0511
  6  9.72221e-06
  7  1.34851e-05
  8  0.000129457
  9  2.04498e-05
  10  0.00222373
  11  7.15586e-05
  12  3.07628
  13  28.3289
  14  1.01092e-05
  15  4.89414e-06
  16  0.00710849
  17  3.14241
  18  1.02437e-05
  19  2.15135e-07
  20  0.25378
  21  0.263742
Done.

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

Extracting fit parameters...

4FGL J0225.1-2604
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  2.045e-05  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:  5.792e-01  2.637e-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.545e+00  2.538e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/374678/likelihoodResults_329011201_329270401_4FGL_J0225.1-2604_daily_bin346.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4729.38703611
delta logL = -0.000850960604112

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4729.38618525
delta logL = -1.01450496004e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5257       1.0000          .0000       10.000    
     3 'Normalizat'    1.5446       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57929       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4729.386     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      246 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10042E-03    146.87        .15785E-02** at limit **
   2  Index         2.5673        7.2817        .50000       -.93574E-05
   3  Normalizat    1.5447        .26861E-01    .21371E-03    .12342E-04
   4  Prefactor     .57922        .28541E-01    .35104E-03    .37891E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100418
  Index      = 2.5673
  Normalizat = 1.54467
  Prefactor  = 0.579222
 **********
 **   18 **HESSE 
 **********

 FCN=   4729.386     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10042E-03    633.97        .31570E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5673        7.1754        .50000       -.50812    
   3  Normalizat    1.5447        .64507E-01    .85483E-05   -.76531    
   4  Prefactor     .57922        .68534E-01    .14042E-04   -1.0847    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.89443e-08
Minuit parameter uncertainties:
  1  0.0329308
  2  1313.51
  3  0.0645106
  4  0.0685442
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/374678': 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) = 4729.38618506
delta logL = 8.70149960974e-08

Extracting fit parameters...

4FGL J0225.1-2604
   Spectrum: PowerLaw
281    Prefactor:  1.004e-04  3.293e-02  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.567e+00  1.314e+03  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:  5.792e-01  6.854e-02  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.545e+00  6.451e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 36.283 -26.077

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/374678/cmap_HighResolution_329011201_329270401_4FGL_J0225.1-2604_daily_bin346.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.50e-03', job_status='DONE', photon_flux_upper_limit='8.35e-08', time_completed='2021-08-15 21:15:18.031601', job_id='374678', GAL2='0.58', fit_tolerance='1e-08', EG2='1.54', EG='1.54', time_epoch_completed='1629087318.03', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.58', dlogl='8.70e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.52' WHERE bin_id='346' AND source_name='4FGL J0225.1-2604' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 21:15:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 374678: <4FGL_J0225.1-2604_daily_bin346> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0225.1-2604_daily_bin346 36.2829 -26.0774 329011201 329270401 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 :                                   797.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             283.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   833 sec.
    Turnaround time :                            877 sec.

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

