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


Performing analysis on: 4FGL_J0229.5-3644_daily_bin1446
RA = 37.3877, Dec = -36.7388
tmin = 614131201, tmax = 614390401
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='472610', job_status='RUN', time_executed='2021-08-16 02:24:54.007269', time_epoch_executed='1629105894.01' WHERE source_name='4FGL J0229.5-3644' and cadence='daily' and bin_id='1446'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/472610

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

Retrieving the FT1 file...

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

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

Retrieving 43 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/472610/ft1_4FGL_J0229.5-3644_daily_bin1446.fits


Retrieving the FT1 file...

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

Retrieving 43 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/472610/ft2_4FGL_J0229.5-3644_daily_bin1446.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/472610/ft1_4FGL_J0229.5-3644_daily_bin1446.fits outfile=/scratch/kocevski/472610/ft1_filteredMKT_4FGL_J0229.5-3644_daily_bin1446.fits ra=37.3877 dec=-36.7388 rad=12.0 tmin=614131201.0 tmax=614390401.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 5.90
user 4.51
sys 1.31

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/472610/ft2_4FGL_J0229.5-3644_daily_bin1446.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/472610/ft1_filteredMKT_4FGL_J0229.5-3644_daily_bin1446.fits evtable="EVENTS" outfile="/scratch/kocevski/472610/ft1_filtered_4FGL_J0229.5-3644_daily_bin1446.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.76
user 0.34
sys 1.35

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/472610/ft1_filtered_4FGL_J0229.5-3644_daily_bin1446.fits" evtable="EVENTS" scfile=/scratch/kocevski/472610/ft2_4FGL_J0229.5-3644_daily_bin1446.fits sctable="SC_DATA" outfile=/scratch/kocevski/472610/ltcube_614131201_614390401_4FGL_J0229.5-3644_daily_bin1446.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/472610/ft2_4FGL_J0229.5-3644_daily_bin1446.fits
.....................!
real 13.85
user 12.15
sys 1.54

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/472610/ft1_filtered_4FGL_J0229.5-3644_daily_bin1446.fits evtable="EVENTS" scfile=/scratch/kocevski/472610/ft2_4FGL_J0229.5-3644_daily_bin1446.fits sctable="SC_DATA" expcube=/scratch/kocevski/472610/ltcube_614131201_614390401_4FGL_J0229.5-3644_daily_bin1446.fits outfile=/scratch/kocevski/472610/expmap_614131201_614390401_4FGL_J0229.5-3644_daily_bin1446.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/472610/ltcube_614131201_614390401_4FGL_J0229.5-3644_daily_bin1446.fits
.....................!
real 193.52
user 186.41
sys 6.36

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/472610/ft1_filtered_4FGL_J0229.5-3644_daily_bin1446.fits scfile=/scratch/kocevski/472610/ft2_4FGL_J0229.5-3644_daily_bin1446.fits outfile=/scratch/kocevski/472610/cmap_614131201_614390401_4FGL_J0229.5-3644_daily_bin1446.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.78
user 0.38
sys 1.34

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/472610/ft1_filtered_4FGL_J0229.5-3644_daily_bin1446.fits scfile=/scratch/kocevski/472610/ft2_4FGL_J0229.5-3644_daily_bin1446.fits outfile=/scratch/kocevski/472610/cmap_HighResolution_614131201_614390401_4FGL_J0229.5-3644_daily_bin1446.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.69
user 0.41
sys 1.22

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/472610/ft1_filtered_4FGL_J0229.5-3644_daily_bin1446.fits evtable="EVENTS" scfile=/scratch/kocevski/472610/ft2_4FGL_J0229.5-3644_daily_bin1446.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/472610/Model_4FGL_J0229.5-3644_daily_bin1446.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/472610/ft1_filtered_4FGL_J0229.5-3644_daily_bin1446.fits.....................!
real 80.28
user 76.96
sys 2.70

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/472610/ft1_filtered_4FGL_J0229.5-3644_daily_bin1446.fits', '/scratch/kocevski/472610/ft2_4FGL_J0229.5-3644_daily_bin1446.fits', expMap='/scratch/kocevski/472610/expmap_614131201_614390401_4FGL_J0229.5-3644_daily_bin1446.fits', expCube='/scratch/kocevski/472610/ltcube_614131201_614390401_4FGL_J0229.5-3644_daily_bin1446.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/472610/Model_4FGL_J0229.5-3644_daily_bin1446.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/472610/ft1_filtered_4FGL_J0229.5-3644_daily_bin1446.fits
Spacecraft file(s): /scratch/kocevski/472610/ft2_4FGL_J0229.5-3644_daily_bin1446.fits
Exposure map: /scratch/kocevski/472610/expmap_614131201_614390401_4FGL_J0229.5-3644_daily_bin1446.fits
Exposure cube: /scratch/kocevski/472610/ltcube_614131201_614390401_4FGL_J0229.5-3644_daily_bin1446.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/472610/Model_4FGL_J0229.5-3644_daily_bin1446.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) = 3751.45741945

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.763       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.8640       1.0000         .10000E-03   10000.    
     3 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1164       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.1338       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .16404E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    36.427       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11431E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    116.51       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.325       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.6852       1.0000         .10000E-03   10000.    
    16 'norm      '    .63854       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .15059E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    41.342       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1782       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .50397       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=   3751.445     FROM MIGRAD    STATUS=CONVERGED    485 CALLS     2373 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.753        35.534        .11295E-05    .37705E-04
   2  Prefactor     5.8639        4.2473       -.10144E-06    .22113E-04
   3  norm          .10000E-03    3.1259       -.30527E-07** at limit **
   4  Prefactor     3.1186        12.081       -.51139E-06    .15316E-04
   5  Prefactor     9.1231        23.590       -.81513E-06   -.96364E-05
   6  Prefactor     .10001E-03    22.034        .83916E-05** at limit **
   7  Prefactor     36.422        19.410       -.26727E-06   -.21732E-03
   8  Prefactor     .10000E-03    31.052        .47713E-05** at limit **
   9  Prefactor     116.54        78.530       -.36816E-05   -.19477E-03
  10  norm          .10000E-03    1.6158       -.59944E-08** at limit **
  11  Prefactor     25.324        15.132       -.13960E-07   -.98756E-05
  12  Prefactor     .10000E-03    10.574       -.29885E-06** at limit **
  13  Prefactor     .10000E-03    51.488       -.35500E-05** at limit **
  14  Prefactor     .10000E-03    21.254        .34914E-05** at limit **
  15  Prefactor     3.6828        5.0788       -.31418E-06    .72688E-03
  16  norm          .63868        .97488       -.60512E-07    .19234E-04
  17  Prefactor     .10003E-03    242.10        .17141E-04** at limit **
  18  Prefactor     .10000E-03    29.381        .28148E-06** at limit **
  19  Prefactor     .10000E-03    10.435        .53887E-06** at limit **
  20  Prefactor     41.328        29.078        .18577E-07    .37793E-04
  21  Normalizat    1.1787        .20195        .10280E-05   -.12003E-03
  22  Prefactor     .50334        .20960        .46169E-06    .47016E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.7534
  Prefactor  = 5.86394
  norm       = 0.0001
  Prefactor  = 3.11859
  Prefactor  = 9.12306
  Prefactor  = 0.00010001
  Prefactor  = 36.4216
  Prefactor  = 0.000100002
  Prefactor  = 116.539
  norm       = 0.0001
  Prefactor  = 25.3235
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 3.68278
  norm       = 0.63868
  Prefactor  = 0.000100027
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.3278
  Normalizat = 1.17872
  Prefactor  = 0.503337
 **********
 **   18 **HESSE 
 **********

 FCN=   3751.445     FROM HESSE     STATUS=OK           340 CALLS     2713 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.753        35.727        .11680E-03   -1.5022    
   2  Prefactor     5.8639        4.2425        .10211E-03   -1.5224    
   3  norm          .10000E-03    3.1317        .10509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.1186        12.060        .22968E-03   -1.5355    
   5  Prefactor     9.1231        23.427        .13261E-03   -1.5104    
   6  Prefactor     .10001E-03    23.796        .33493E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     36.422        19.402        .66402E-04   -1.4500    
   8  Prefactor     .10000E-03    31.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     116.54        80.516        .18638E-03   -1.3545    
  10  norm          .10000E-03    1.6566        .15191E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     25.324        15.136        .79602E-04   -1.4701    
  12  Prefactor     .10000E-03    10.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    52.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    21.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.6828        5.3921        .81391E-03   -1.5324    
  16  norm          .63868        .97367        .47296E-04   -1.5548    
  17  Prefactor     .10003E-03    247.07        .20468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    29.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     41.328        29.136        .62344E-04   -1.4421    
  21  Normalizat    1.1787        .23028        .19540E-03   -.87263    
  22  Prefactor     .50334        .23860        .31183E-03   -1.1182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54552e-09
Minuit parameter uncertainties:
  1  35.7918
  2  4.24272
  3  7.10511e-06
  4  12.0696
  5  23.4508
  6  0.000991851
  7  19.4052
  8  0.000503371
  9  80.592
  10  3.95778e-06
  11  15.1387
  12  2.30741e-05
  13  0.000510734
  14  0.000309338
  15  5.39282
  16  0.973693
  17  0.00519651
  18  1.87564e-05
  19  2.63862e-05
  20  29.146
  21  0.230481
  22  0.239073
Done.

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

Extracting fit parameters...

4FGL J0229.5-3644
   Spectrum: LogParabola
291         norm:  1.000e-04  3.958e-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:  5.033e-01  2.391e-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.179e+00  2.305e-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: 7.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.98e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/472610/likelihoodResults_614131201_614390401_4FGL_J0229.5-3644_daily_bin1446.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) = 3751.44797138
delta logL = -0.00285991285091

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3751.44509429
delta logL = 1.71765245796e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10174E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.2486       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1787       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .50330       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3751.445     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      412 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    8.9173        .87397E-03** at limit **
   2  alpha         4.2973        3.2610        .20000       -.18201E-06
   3  Normalizat    1.1787        .21810        .19540E-03    .59922E-04
   4  Prefactor     .50334        .23609        .31183E-03    .81539E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100017
  alpha      = 4.29731
  Normalizat = 1.17872
  Prefactor  = 0.50334
 **********
 **   18 **HESSE 
 **********

 FCN=   3751.445     FROM HESSE     STATUS=OK            23 CALLS      435 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    3.9310        .17479E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         4.2973        3.9123        .80000E-02    .80226    
   3  Normalizat    1.1787        .21814        .39079E-04   -.87263    
   4  Prefactor     .50334        .23621        .12473E-04   -1.1182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.844e-09
Minuit parameter uncertainties:
  1  0.000518201
  2  209.58
  3  0.218305
  4  0.236676
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/472610': 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) = 3751.44509399
delta logL = 1.74760548362e-05

Extracting fit parameters...

4FGL J0229.5-3644
   Spectrum: LogParabola
291         norm:  1.000e-04  5.182e-04  1.000e-04  1.000e+04 ( 1.000e-11)
292        alpha:  4.297e+00  2.096e+02  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:  5.033e-01  2.367e-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.179e+00  2.183e-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/472610/cmap_HighResolution_614131201_614390401_4FGL_J0229.5-3644_daily_bin1446.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.98e-05', job_status='DONE', photon_flux_upper_limit='7.52e-08', time_completed='2021-08-16 02:34:57.847781', job_id='472610', GAL2='0.50', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1629106497.85', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.50', dlogl='1.75e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='1446' AND source_name='4FGL J0229.5-3644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 02:34:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 472610: <4FGL_J0229.5-3644_daily_bin1446> in cluster <slac> Done

Job <4FGL_J0229.5-3644_daily_bin1446> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Aug 16 02:20:24 2021
Job was executed on host(s) <bullet0025>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 02:23:43 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:23:43 2021
Terminated at Mon Aug 16 02:34:58 2021
Results reported at Mon Aug 16 02:34:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0229.5-3644_daily_bin1446 37.3877 -36.7388 614131201 614390401 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.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             335.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   675 sec.
    Turnaround time :                            874 sec.

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

