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


Performing analysis on: 4FGL_J0229.5-3644_daily_bin1585
RA = 37.3877, Dec = -36.7388
tmin = 650160001, tmax = 650419201
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='473909', job_status='RUN', time_executed='2021-08-16 02:27:14.732262', time_epoch_executed='1629106034.73' WHERE source_name='4FGL J0229.5-3644' and cadence='daily' and bin_id='1585'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/473909

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/473909/ft1_4FGL_J0229.5-3644_daily_bin1585.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/473909/ft2_4FGL_J0229.5-3644_daily_bin1585.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/473909/ft1_4FGL_J0229.5-3644_daily_bin1585.fits outfile=/scratch/kocevski/473909/ft1_filteredMKT_4FGL_J0229.5-3644_daily_bin1585.fits ra=37.3877 dec=-36.7388 rad=12.0 tmin=650160001.0 tmax=650419201.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.96
user 4.12
sys 0.81

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/473909/ft2_4FGL_J0229.5-3644_daily_bin1585.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/473909/ft2_4FGL_J0229.5-3644_daily_bin1585.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/473909/ft1_filteredMKT_4FGL_J0229.5-3644_daily_bin1585.fits evtable="EVENTS" outfile="/scratch/kocevski/473909/ft1_filtered_4FGL_J0229.5-3644_daily_bin1585.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.12
user 0.33
sys 0.75

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/473909/ft1_filtered_4FGL_J0229.5-3644_daily_bin1585.fits" evtable="EVENTS" scfile=/scratch/kocevski/473909/ft2_4FGL_J0229.5-3644_daily_bin1585.fits sctable="SC_DATA" outfile=/scratch/kocevski/473909/ltcube_650160001_650419201_4FGL_J0229.5-3644_daily_bin1585.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/473909/ft2_4FGL_J0229.5-3644_daily_bin1585.fits
.....................!
real 13.28
user 12.11
sys 1.03

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/473909/ft1_filtered_4FGL_J0229.5-3644_daily_bin1585.fits evtable="EVENTS" scfile=/scratch/kocevski/473909/ft2_4FGL_J0229.5-3644_daily_bin1585.fits sctable="SC_DATA" expcube=/scratch/kocevski/473909/ltcube_650160001_650419201_4FGL_J0229.5-3644_daily_bin1585.fits outfile=/scratch/kocevski/473909/expmap_650160001_650419201_4FGL_J0229.5-3644_daily_bin1585.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/473909/ltcube_650160001_650419201_4FGL_J0229.5-3644_daily_bin1585.fits
.....................!
real 191.43
user 185.11
sys 5.76

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 178 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 J0229.5-3644 @ 37.3877 -36.7388

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/473909/ft1_filtered_4FGL_J0229.5-3644_daily_bin1585.fits scfile=/scratch/kocevski/473909/ft2_4FGL_J0229.5-3644_daily_bin1585.fits outfile=/scratch/kocevski/473909/cmap_650160001_650419201_4FGL_J0229.5-3644_daily_bin1585.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=37.3877 yref=-36.7388 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.15
user 0.38
sys 0.75

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/473909/ft1_filtered_4FGL_J0229.5-3644_daily_bin1585.fits scfile=/scratch/kocevski/473909/ft2_4FGL_J0229.5-3644_daily_bin1585.fits outfile=/scratch/kocevski/473909/cmap_HighResolution_650160001_650419201_4FGL_J0229.5-3644_daily_bin1585.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=37.3877 yref=-36.7388 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.14
user 0.38
sys 0.75

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/473909/ft1_filtered_4FGL_J0229.5-3644_daily_bin1585.fits evtable="EVENTS" scfile=/scratch/kocevski/473909/ft2_4FGL_J0229.5-3644_daily_bin1585.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/473909/Model_4FGL_J0229.5-3644_daily_bin1585.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/473909/ft1_filtered_4FGL_J0229.5-3644_daily_bin1585.fits.....................!
real 86.40
user 83.97
sys 2.02

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/473909/ft1_filtered_4FGL_J0229.5-3644_daily_bin1585.fits', '/scratch/kocevski/473909/ft2_4FGL_J0229.5-3644_daily_bin1585.fits', expMap='/scratch/kocevski/473909/expmap_650160001_650419201_4FGL_J0229.5-3644_daily_bin1585.fits', expCube='/scratch/kocevski/473909/ltcube_650160001_650419201_4FGL_J0229.5-3644_daily_bin1585.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/473909/Model_4FGL_J0229.5-3644_daily_bin1585.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0229.5-3644'

4FGL J0229.5-3644
   Spectrum: LogParabola
291         norm:  2.041e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
292        alpha:  2.463e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
293         beta:  1.286e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
294           Eb:  3.475e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/473909/ft1_filtered_4FGL_J0229.5-3644_daily_bin1585.fits
Spacecraft file(s): /scratch/kocevski/473909/ft2_4FGL_J0229.5-3644_daily_bin1585.fits
Exposure map: /scratch/kocevski/473909/expmap_650160001_650419201_4FGL_J0229.5-3644_daily_bin1585.fits
Exposure cube: /scratch/kocevski/473909/ltcube_650160001_650419201_4FGL_J0229.5-3644_daily_bin1585.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/473909/Model_4FGL_J0229.5-3644_daily_bin1585.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) = 4142.23890202

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15241E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.320       1.0000         .10000E-03   10000.    
     3 'norm      '    4.4105       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.7304       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .23813E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.9254       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0464       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .92282       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4142.196     FROM MIGRAD    STATUS=CONVERGED    479 CALLS     2302 TOTAL
                     EDM=   .72E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    117.47        .21908E-04** at limit **
   2  Prefactor     19.307        6.9891       -.30274E-06   -.24603E-03
   3  norm          4.4114        6.0934        .43621E-05   -.18893E-03
   4  Prefactor     .10000E-03    26.562       -.57280E-05** at limit **
   5  Prefactor     .10000E-03    15.874       -.14375E-05** at limit **
   6  Prefactor     .10000E-03    4.6006       -.73110E-08** at limit **
   7  Prefactor     .10000E-03    10.448       -.44581E-05** at limit **
   8  Prefactor     .10000E-03    9.1179        .43959E-06** at limit **
   9  Prefactor     .10000E-03    22.782        .97369E-05** at limit **
  10  norm          .10000E-03    2.3267        .24012E-07** at limit **
  11  Prefactor     .10000E-03    3.2804        .22321E-08** at limit **
  12  Prefactor     .10000E-03    20.418       -.14395E-05** at limit **
  13  Prefactor     5.6855        26.442        .33850E-05   -.14324E-04
  14  Prefactor     .10000E-03    20.321       -.25190E-05** at limit **
  15  Prefactor     .10000E-03    1.7066        .45218E-07** at limit **
  16  norm          .10000E-03    .39571       -.16659E-09** at limit **
  17  Prefactor     .10000E-03    74.516        .52002E-05** at limit **
  18  Prefactor     .10000E-03    141.80       -.15523E-04** at limit **
  19  Prefactor     6.9001        15.536       -.62330E-05   -.10693E-04
  20  Prefactor     .10000E-03    10.898        .46048E-05** at limit **
  21  Normalizat    1.0461        .19248        .88414E-06   -.43855E-04
  22  Prefactor     .92297        .21702       -.13755E-05    .63603E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 19.3069
  norm       = 4.41137
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.68552
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 6.90007
  Prefactor  = 0.0001
  Normalizat = 1.04611
  Prefactor  = 0.922971
 **********
 **   18 **HESSE 
 **********

 FCN=   4142.196     FROM HESSE     STATUS=OK           332 CALLS     2634 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    120.60        .40916E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.307        7.0001        .91122E-04   -1.4829    
   3  norm          4.4114        6.0326        .17837E-03   -1.5288    
   4  Prefactor     .10000E-03    27.466        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.6439        .13479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.1319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    22.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.4147        .19145E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.2820        .11385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    20.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.6855        26.376        .16779E-03   -1.5231    
  14  Prefactor     .10000E-03    20.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.7102        .82105E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .40265        .39517E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    74.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    142.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.9001        15.572        .15245E-03   -1.5183    
  20  Prefactor     .10000E-03    10.929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0461        .22850        .21596E-03   -.91501    
  22  Prefactor     .92297        .25734        .25703E-03   -.95343    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70438e-10
Minuit parameter uncertainties:
  1  0.000600316
  2  7.00037
  3  6.03344
  4  0.000113686
  5  0.000140809
  6  1.86261e-06
  7  2.56804e-06
  8  1.8698e-06
  9  2.07166e-06
  10  1.01003e-06
  11  1.1439e-06
  12  7.06943e-06
  13  24.5093
  14  9.65385e-07
  15  4.43531e-07
  16  4.51461e-09
  17  1.90649e-06
  18  0.000980831
  19  15.5816
  20  1.94836e-06
  21  0.228716
  22  0.257683
Done.

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

Extracting fit parameters...

4FGL J0229.5-3644
   Spectrum: LogParabola
291         norm:  1.000e-04  1.010e-06  1.000e-04  1.000e+04 ( 1.000e-11)
292        alpha:  2.463e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
293         beta:  1.286e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
294           Eb:  3.475e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
565    Prefactor:  9.230e-01  2.577e-01  0.000e+00  1.000e+01 ( 1.000e+00)
566        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
567        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  1.046e+00  2.287e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 37.388 -36.739
Photon Flux Upper Limit: 8.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.27e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/473909/likelihoodResults_650160001_650419201_4FGL_J0229.5-3644_daily_bin1585.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) = 4142.19793716
delta logL = -0.00197723393376

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4141.91526446
delta logL = 0.280695470264

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .42826       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .98282       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96806       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4141.915     FROM MIGRAD    STATUS=CONVERGED    115 CALLS      340 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .42749        .62485        .56516E-04   -.35605E-04
   2  alpha         5.0000        3.8736        .93780E-01** at limit **
   3  Normalizat    .98336        .24057        .22198E-03    .13316E-05
   4  Prefactor     .96760        .26285        .25173E-03    .94389E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.42749
  alpha      = 5
  Normalizat = 0.983362
  Prefactor  = 0.967602
 **********
 **   18 **HESSE 
 **********

 FCN=   4141.915     FROM HESSE     STATUS=OK            23 CALLS      363 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .42749        .62180        .22606E-05   -1.5577    
   2  alpha         5.0000        3.8751        .18756E-01    1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .98336        .24084        .88793E-05   -.93590    
   4  Prefactor     .96760        .26317        .10069E-04   -.93817    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11167e-08
Minuit parameter uncertainties:
  1  0.621813
  2  0.000735885
  3  0.241107
  4  0.263519
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/473909': 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) = 4141.91526165
delta logL = 0.280698281415

Extracting fit parameters...

4FGL J0229.5-3644
   Spectrum: LogParabola
291         norm:  4.275e-01  6.218e-01  1.000e-04  1.000e+04 ( 1.000e-11)
292        alpha:  5.000e+00  7.359e-04  0.000e+00  5.000e+00 ( 1.000e+00)
293         beta:  1.286e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
294           Eb:  3.475e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
565    Prefactor:  9.676e-01  2.635e-01  0.000e+00  1.000e+01 ( 1.000e+00)
566        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
567        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  9.834e-01  2.411e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 37.388 -36.739

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/473909/cmap_HighResolution_650160001_650419201_4FGL_J0229.5-3644_daily_bin1585.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.27e-05', job_status='DONE', photon_flux_upper_limit='8.62e-08', time_completed='2021-08-16 02:37:14.421020', job_id='473909', GAL2='0.97', fit_tolerance='1e-08', EG2='0.98', EG='1.05', time_epoch_completed='1629106634.42', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='2.81e-01', ts2='0.61', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='1585' AND source_name='4FGL J0229.5-3644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 02:37:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 473909: <4FGL_J0229.5-3644_daily_bin1585> in cluster <slac> Done

Job <4FGL_J0229.5-3644_daily_bin1585> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Aug 16 02:25:22 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 02:26:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 16 02:26:18 2021
Terminated at Mon Aug 16 02:37:15 2021
Results reported at Mon Aug 16 02:37:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0229.5-3644_daily_bin1585 37.3877 -36.7388 650160001 650419201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0229.5-3644 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   597.33 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             314.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   656 sec.
    Turnaround time :                            713 sec.

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

