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


Performing analysis on: 4FGL_J0229.5-3644_daily_bin1462
RA = 37.3877, Dec = -36.7388
tmin = 618278401, tmax = 618537601
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='472633', job_status='RUN', time_executed='2021-08-16 02:25:03.313677', time_epoch_executed='1629105903.31' WHERE source_name='4FGL J0229.5-3644' and cadence='daily' and bin_id='1462'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/472633

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/472633/ft1_4FGL_J0229.5-3644_daily_bin1462.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/472633/ft2_4FGL_J0229.5-3644_daily_bin1462.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/472633/ft1_4FGL_J0229.5-3644_daily_bin1462.fits outfile=/scratch/kocevski/472633/ft1_filteredMKT_4FGL_J0229.5-3644_daily_bin1462.fits ra=37.3877 dec=-36.7388 rad=12.0 tmin=618278401.0 tmax=618537601.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.55
user 3.52
sys 1.97

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/472633/ft2_4FGL_J0229.5-3644_daily_bin1462.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/472633/ft1_filteredMKT_4FGL_J0229.5-3644_daily_bin1462.fits evtable="EVENTS" outfile="/scratch/kocevski/472633/ft1_filtered_4FGL_J0229.5-3644_daily_bin1462.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 2.44
user 0.36
sys 2.04

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/472633/ft1_filtered_4FGL_J0229.5-3644_daily_bin1462.fits" evtable="EVENTS" scfile=/scratch/kocevski/472633/ft2_4FGL_J0229.5-3644_daily_bin1462.fits sctable="SC_DATA" outfile=/scratch/kocevski/472633/ltcube_618278401_618537601_4FGL_J0229.5-3644_daily_bin1462.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/472633/ft2_4FGL_J0229.5-3644_daily_bin1462.fits
.....................!
real 15.88
user 13.27
sys 2.50

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/472633/ft1_filtered_4FGL_J0229.5-3644_daily_bin1462.fits evtable="EVENTS" scfile=/scratch/kocevski/472633/ft2_4FGL_J0229.5-3644_daily_bin1462.fits sctable="SC_DATA" expcube=/scratch/kocevski/472633/ltcube_618278401_618537601_4FGL_J0229.5-3644_daily_bin1462.fits outfile=/scratch/kocevski/472633/expmap_618278401_618537601_4FGL_J0229.5-3644_daily_bin1462.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/472633/ltcube_618278401_618537601_4FGL_J0229.5-3644_daily_bin1462.fits
.....................!
real 193.56
user 185.41
sys 7.20

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/472633/ft1_filtered_4FGL_J0229.5-3644_daily_bin1462.fits scfile=/scratch/kocevski/472633/ft2_4FGL_J0229.5-3644_daily_bin1462.fits outfile=/scratch/kocevski/472633/cmap_618278401_618537601_4FGL_J0229.5-3644_daily_bin1462.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 2.28
user 0.38
sys 1.86

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/472633/ft1_filtered_4FGL_J0229.5-3644_daily_bin1462.fits scfile=/scratch/kocevski/472633/ft2_4FGL_J0229.5-3644_daily_bin1462.fits outfile=/scratch/kocevski/472633/cmap_HighResolution_618278401_618537601_4FGL_J0229.5-3644_daily_bin1462.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 2.46
user 0.40
sys 2.01

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/472633/ft1_filtered_4FGL_J0229.5-3644_daily_bin1462.fits evtable="EVENTS" scfile=/scratch/kocevski/472633/ft2_4FGL_J0229.5-3644_daily_bin1462.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/472633/Model_4FGL_J0229.5-3644_daily_bin1462.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/472633/ft1_filtered_4FGL_J0229.5-3644_daily_bin1462.fits.....................!
real 82.67
user 78.28
sys 3.79

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    90.524       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.1455       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0303       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10281E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.350       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.3886       1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.116       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10552E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    43.815       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .18746       1.0000         .10000E-03   10000.    
    13 'Prefactor '    40.554       1.0000         .10000E-03   10000.    
    14 'Prefactor '    85.326       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11545E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.1167       1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.927       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .75566       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0119       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4018.950     FROM MIGRAD    STATUS=FAILED       877 CALLS     2805 TOTAL
                     EDM=   .63E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     90.521        43.859        .42234E-04    .15855E-04
   2  Prefactor     3.1460        4.0242        .13707E-03    .17459E-04
   3  norm          .10000E-03    1.7537        .81898E-03** at limit **
   4  Prefactor     1.0233        64.346        .47892E-02    .57963E-04
   5  Prefactor     .10000E-03    12.771        .18142E-02** at limit **
   6  Prefactor     19.354        10.836        .91051E-04   -.29405E-04
   7  Prefactor     1.2925        634.72        .36889E-02    .49272E-03
   8  Prefactor     24.240        70.408        .81569E-04   -.33938E-04
   9  Prefactor     .10000E-03    149.95        .18142E-02** at limit **
  10  norm          .10000E-03    2.0327        .13672E-02** at limit **
  11  Prefactor     43.826        23.889        .60566E-04    .14887E-03
  12  Prefactor     .94588E-01    21.428        .93495E-01    .96668E-04
  13  Prefactor     40.553        37.632        .62945E-04   -.54184E-06
  14  Prefactor     85.283        54.978        .21745E-03    .58817E-05
  15  Prefactor     .10000E-03    2.5902        .99199E-03** at limit **
  16  norm          .10000E-03    2.0947        .12546E-02** at limit **
  17  Prefactor     .10000E-03    215.48        .18142E-02** at limit **
  18  Prefactor     8.1117        71.288        .14073E-03    .28275E-06
  19  Prefactor     19.925        18.425        .89724E-04    .48149E-05
  20  Prefactor     .10000E-03    11.783        .18142E-02** at limit **
  21  Normalizat    .75560        .23040        .24355E-03    .15432E-03
  22  Prefactor     1.0121        .25115        .24146E-03    .11559E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4018.950     FROM SIMPLEX   STATUS=UNCHANGED   1063 CALLS     3868 TOTAL
                     EDM=   .20E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     90.521        43.859        .34322E-06   -1.3802    
   2  Prefactor     3.1460        4.0242        .37631E-06   -1.5353    
   3  norm          .10000E-03    1.7537        .21006E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0233        64.346        .34817E-06   -1.5506    
   5  Prefactor     .10000E-03    12.771        .67167E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     19.354        10.836        .32414E-06   -1.4828    
   7  Prefactor     1.2925        634.72        .45193E-06   -1.5481    
   8  Prefactor     24.240        70.408        .33034E-06   -1.4723    
   9  Prefactor     .10000E-03    149.95        .11637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.0327        .47768E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     43.826        23.889        .31470E-06   -1.4383    
  12  Prefactor     .94588E-01    21.428        .36964E-06   -1.5646    
  13  Prefactor     40.553        37.632        .32153E-06   -1.4433    
  14  Prefactor     85.283        54.978        .30942E-06   -1.3858    
  15  Prefactor     .10000E-03    2.5902        .22642E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.0947        .75505E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    215.48        .14525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.1117        71.288        .33220E-06   -1.5138    
  19  Prefactor     19.925        18.425        .32458E-06   -1.4815    
  20  Prefactor     .10000E-03    11.783        .61619E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .75560        .23040        .22277E-06   -1.0174    
  22  Prefactor     1.0121        .25115        .20227E-06   -.92328    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4018.950     FROM MIGRAD    STATUS=CONVERGED    337 CALLS     4205 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     90.521        43.825        .84467E-05    .94215E-06
   2  Prefactor     3.1460        4.0228        .54829E-05    .12441E-05
   3  norm          .10000E-03    1.7537        .16380E-03** at limit **
   4  Prefactor     1.0232        63.841        .19157E-03    .89018E-07
   5  Prefactor     .10000E-03    12.772        .36285E-03** at limit **
   6  Prefactor     19.354        10.828        .36420E-05   -.62430E-07
   7  Prefactor     1.2927        323.57        .73778E-03    .48693E-05
   8  Prefactor     24.240        50.310        .32627E-05   -.90594E-05
   9  Prefactor     .10000E-03    149.99        .36285E-03** at limit **
  10  norm          .10000E-03    2.0349        .27343E-03** at limit **
  11  Prefactor     43.826        22.438        .12113E-04    .84468E-05
  12  Prefactor     .94587E-01    21.187        .94372E-01    .96123E-04
  13  Prefactor     40.553        37.622        .25178E-05     .0000    
  14  Prefactor     85.283        54.975        .86979E-05   -.26141E-06
  15  Prefactor     .10000E-03    2.5904        .19840E-03** at limit **
  16  norm          .10000E-03    2.1013        .25091E-03** at limit **
  17  Prefactor     .10000E-03    215.49        .36285E-03** at limit **
  18  Prefactor     8.1118        71.131        .56291E-05   -.20196E-06
  19  Prefactor     19.925        18.420        .35889E-05   -.63354E-07
  20  Prefactor     .10000E-03    11.784        .36285E-03** at limit **
  21  Normalizat    .75559        .22770        .97419E-05    .50181E-05
  22  Prefactor     1.0121        .24989        .96585E-05    .47082E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 90.5212
  Prefactor  = 3.14602
  norm       = 0.0001
  Prefactor  = 1.02322
  Prefactor  = 0.0001
  Prefactor  = 19.3538
  Prefactor  = 1.29265
  Prefactor  = 24.2396
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 43.8264
  Prefactor  = 0.0945875
  Prefactor  = 40.5531
  Prefactor  = 85.2826
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.11179
  Prefactor  = 19.9245
  Prefactor  = 0.0001
  Normalizat = 0.755593
  Prefactor  = 1.01208
 **********
 **   18 **HESSE 
 **********

 FCN=   4018.950     FROM HESSE     STATUS=OK           330 CALLS     4535 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     90.521        43.824        .16893E-05   -1.3802    
   2  Prefactor     3.1460        4.0221        .10966E-05   -1.5353    
   3  norm          .10000E-03    1.7537        .32759E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0232        63.793        .76627E-05   -1.5506    
   5  Prefactor     .10000E-03    12.772        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     19.354        10.826        .36420E-05   -1.4828    
   7  Prefactor     1.2927        288.29        .29511E-04   -1.5481    
   8  Prefactor     24.240        47.522        .65255E-06   -1.4723    
   9  Prefactor     .10000E-03    149.99        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.0350        .54686E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     43.826        22.280        .24227E-05   -1.4383    
  12  Prefactor     .94587E-01    21.223        .94232E-01   -1.5646    
  13  Prefactor     40.553        37.611        .25178E-05   -1.4433    
  14  Prefactor     85.283        54.949        .17396E-05   -1.3858    
  15  Prefactor     .10000E-03    2.5904        .39680E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.1015        .50183E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    215.49        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.1118        69.743        .11258E-05   -1.5138    
  19  Prefactor     19.925        18.409        .35889E-05   -1.4815    
  20  Prefactor     .10000E-03    11.784        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .75559        .22673        .19484E-05   -1.0174    
  22  Prefactor     1.0121        .24921        .19317E-05   -.92328    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.33059e-11
Minuit parameter uncertainties:
  1  43.8396
  2  4.02242
  3  4.89894e-09
  4  16.1757
  5  2.161e-07
  6  10.8272
  7  38.7977
  8  47.5962
  9  4.46543e-06
  10  2.7455e-07
  11  22.2841
  12  2.83323
  13  37.6335
  14  54.9821
  15  6.16868e-09
  16  9.36522e-07
  17  5.46992e-07
  18  47.6453
  19  18.4144
  20  6.37365e-07
  21  0.227016
  22  0.249495
Done.

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

Extracting fit parameters...

4FGL J0229.5-3644
   Spectrum: LogParabola
291         norm:  1.000e-04  2.745e-07  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:  1.012e+00  2.495e-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:  7.556e-01  2.270e-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.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.97e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/472633/likelihoodResults_618278401_618537601_4FGL_J0229.5-3644_daily_bin1462.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) = 4018.95228277
delta logL = -0.00234247893013

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4018.90405047
delta logL = 0.0458898239995

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17963       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.7022       1.0000          .0000       5.0000    
     3 'Normalizat'    .73764       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0237       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=   4018.904     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      334 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .17997        1.6281        .85236E-04   -.66689E-04
   2  alpha         4.7053        3.3798        .17569       -.46421E-05
   3  Normalizat    .73757        .22218        .12315E-02   -.11567E-04
   4  Prefactor     1.0237        .24696        .24025E-03   -.39039E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.179968
  alpha      = 4.70533
  Normalizat = 0.73757
  Prefactor  = 1.02371
 **********
 **   18 **HESSE 
 **********

 FCN=   4018.904     FROM HESSE     STATUS=OK            25 CALLS      359 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .17997        1.1209        .34094E-05   -1.5623    
   2  alpha         4.7053        4.3373        .70277E-02    1.0804    
   3  Normalizat    .73757        .22289        .49262E-04   -1.0243    
   4  Prefactor     1.0237        .24784        .96100E-05   -.91943    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46089e-12
Minuit parameter uncertainties:
  1  0.898069
  2  4.23168
  3  0.223162
  4  0.248114
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/472633': 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) = 4018.90404935
delta logL = 0.045890946391

Extracting fit parameters...

4FGL J0229.5-3644
   Spectrum: LogParabola
291         norm:  1.800e-01  8.981e-01  1.000e-04  1.000e+04 ( 1.000e-11)
292        alpha:  4.705e+00  4.232e+00  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:  1.024e+00  2.481e-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:  7.376e-01  2.232e-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/472633/cmap_HighResolution_618278401_618537601_4FGL_J0229.5-3644_daily_bin1462.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.97e-05', job_status='DONE', photon_flux_upper_limit='7.46e-08', time_completed='2021-08-16 02:37:01.837570', job_id='472633', GAL2='1.02', fit_tolerance='1e-08', EG2='0.74', EG='0.76', time_epoch_completed='1629106621.84', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='4.59e-02', ts2='0.10', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='1462' AND source_name='4FGL J0229.5-3644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 02:37:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 472633: <4FGL_J0229.5-3644_daily_bin1462> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0229.5-3644_daily_bin1462 37.3877 -36.7388 618278401 618537601 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 :                                   710.31 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             308.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            997 sec.

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

