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


Performing analysis on: 4FGL_J0231.2-4745_daily_bin1300
RA = 37.8209, Dec = -47.7654
tmin = 576288001, tmax = 576547201
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='491145', job_status='RUN', time_executed='2021-08-16 03:27:22.762469', time_epoch_executed='1629109642.76' WHERE source_name='4FGL J0231.2-4745' and cadence='daily' and bin_id='1300'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/491145

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/491145/ft1_4FGL_J0231.2-4745_daily_bin1300.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/491145/ft2_4FGL_J0231.2-4745_daily_bin1300.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/491145/ft1_4FGL_J0231.2-4745_daily_bin1300.fits outfile=/scratch/kocevski/491145/ft1_filteredMKT_4FGL_J0231.2-4745_daily_bin1300.fits ra=37.8209 dec=-47.7654 rad=12.0 tmin=576288001.0 tmax=576547201.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.09
user 3.08
sys 0.99

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/491145/ft2_4FGL_J0231.2-4745_daily_bin1300.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/491145/ft2_4FGL_J0231.2-4745_daily_bin1300.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/491145/ft1_filteredMKT_4FGL_J0231.2-4745_daily_bin1300.fits evtable="EVENTS" outfile="/scratch/kocevski/491145/ft1_filtered_4FGL_J0231.2-4745_daily_bin1300.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.29
user 0.33
sys 0.94

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/491145/ft1_filtered_4FGL_J0231.2-4745_daily_bin1300.fits" evtable="EVENTS" scfile=/scratch/kocevski/491145/ft2_4FGL_J0231.2-4745_daily_bin1300.fits sctable="SC_DATA" outfile=/scratch/kocevski/491145/ltcube_576288001_576547201_4FGL_J0231.2-4745_daily_bin1300.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/491145/ft2_4FGL_J0231.2-4745_daily_bin1300.fits
.....................!
real 12.51
user 11.27
sys 1.20

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/491145/ft1_filtered_4FGL_J0231.2-4745_daily_bin1300.fits evtable="EVENTS" scfile=/scratch/kocevski/491145/ft2_4FGL_J0231.2-4745_daily_bin1300.fits sctable="SC_DATA" expcube=/scratch/kocevski/491145/ltcube_576288001_576547201_4FGL_J0231.2-4745_daily_bin1300.fits outfile=/scratch/kocevski/491145/expmap_576288001_576547201_4FGL_J0231.2-4745_daily_bin1300.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/491145/ltcube_576288001_576547201_4FGL_J0231.2-4745_daily_bin1300.fits
.....................!
real 193.16
user 186.06
sys 6.49

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 185 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 J0231.2-4745 @ 37.8209 -47.7654

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/491145/ft1_filtered_4FGL_J0231.2-4745_daily_bin1300.fits scfile=/scratch/kocevski/491145/ft2_4FGL_J0231.2-4745_daily_bin1300.fits outfile=/scratch/kocevski/491145/cmap_576288001_576547201_4FGL_J0231.2-4745_daily_bin1300.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.8209 yref=-47.7654 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.34
user 0.41
sys 0.92

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/491145/ft1_filtered_4FGL_J0231.2-4745_daily_bin1300.fits scfile=/scratch/kocevski/491145/ft2_4FGL_J0231.2-4745_daily_bin1300.fits outfile=/scratch/kocevski/491145/cmap_HighResolution_576288001_576547201_4FGL_J0231.2-4745_daily_bin1300.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.8209 yref=-47.7654 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.35
user 0.40
sys 0.93

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/491145/ft1_filtered_4FGL_J0231.2-4745_daily_bin1300.fits evtable="EVENTS" scfile=/scratch/kocevski/491145/ft2_4FGL_J0231.2-4745_daily_bin1300.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/491145/Model_4FGL_J0231.2-4745_daily_bin1300.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/491145/ft1_filtered_4FGL_J0231.2-4745_daily_bin1300.fits.....................!
real 101.81
user 99.06
sys 2.42

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/491145/ft1_filtered_4FGL_J0231.2-4745_daily_bin1300.fits', '/scratch/kocevski/491145/ft2_4FGL_J0231.2-4745_daily_bin1300.fits', expMap='/scratch/kocevski/491145/expmap_576288001_576547201_4FGL_J0231.2-4745_daily_bin1300.fits', expCube='/scratch/kocevski/491145/ltcube_576288001_576547201_4FGL_J0231.2-4745_daily_bin1300.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/491145/Model_4FGL_J0231.2-4745_daily_bin1300.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0231.2-4745'

4FGL J0231.2-4745
   Spectrum: PowerLaw
300    Prefactor:  5.336e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
301        Index:  2.759e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  4.395e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/491145/ft1_filtered_4FGL_J0231.2-4745_daily_bin1300.fits
Spacecraft file(s): /scratch/kocevski/491145/ft2_4FGL_J0231.2-4745_daily_bin1300.fits
Exposure map: /scratch/kocevski/491145/expmap_576288001_576547201_4FGL_J0231.2-4745_daily_bin1300.fits
Exposure cube: /scratch/kocevski/491145/ltcube_576288001_576547201_4FGL_J0231.2-4745_daily_bin1300.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/491145/Model_4FGL_J0231.2-4745_daily_bin1300.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) = 4956.01230364

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6642       1.0000         .10000E-03   10000.    
     2 'norm      '    11.003       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .11590E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    26.742       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.6384       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10307E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.8281       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13664E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.1464       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    91.794       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2605       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .68356       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4955.806     FROM MIGRAD    STATUS=CONVERGED    727 CALLS     3184 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6616        55.500        .19500E-04   -.14306E-03
   2  norm          11.002        9.0819       -.26169E-06   -.65617E-04
   3  Prefactor     .10000E-03    3.6029       -.54651E-07** at limit **
   4  norm          .10000E-03    49.561       -.15216E-05** at limit **
   5  norm          .10000E-03    2.3401       -.44835E-07** at limit **
   6  Prefactor     .10000E-03    6.5388        .88421E-08** at limit **
   7  Prefactor     .10000E-03    11.385       -.29360E-06** at limit **
   8  Prefactor     .10000E-03    2.5561       -.23075E-08** at limit **
   9  norm          26.743        3.4967       -.52154E-08    .77404E-04
  10  Prefactor     .10000E-03    28.012        .19793E-05** at limit **
  11  Prefactor     .10000E-03    13.645        .27136E-06** at limit **
  12  Prefactor     .10000E-03    15.011       -.76730E-06** at limit **
  13  norm          3.6384        2.5039        .11514E-06   -.62955E-04
  14  norm          .10000E-03    1.3179        .26540E-06** at limit **
  15  Prefactor     .10000E-03    36.660       -.28922E-05** at limit **
  16  Prefactor     3.8922        65.672        .80679E-05    .12567E-03
  17  Prefactor     .10001E-03    60.095        .41439E-05** at limit **
  18  Prefactor     .10000E-03    13.013        .74198E-06** at limit **
  19  norm          .10000E-03    .50335        .16431E-07** at limit **
  20  Prefactor     .10000E-03    129.29        .12285E-06** at limit **
  21  Prefactor     7.1469        5.1245        .33904E-06    .33201E-03
  22  Prefactor     .10000E-03    18.462       -.26557E-06** at limit **
  23  Prefactor     .10000E-03    11.368       -.22431E-07** at limit **
  24  Prefactor     .10000E-03    8.6447        .38950E-07** at limit **
  25  Prefactor     .10000E-03    3.0522        .15747E-07** at limit **
  26  Prefactor     .10000E-03    5.7765        .35707E-07** at limit **
  27  Prefactor     91.820        69.481        .26760E-05    .23060E-03
  28  Normalizat    1.2605        .20111       -.11889E-05   -.20538E-04
  29  Prefactor     .68353        .20770       -.52177E-06   -.68366E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.66161
  norm       = 11.0024
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 26.7429
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.63839
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 3.89215
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.14686
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 91.8201
  Normalizat = 1.26047
  Prefactor  = 0.68353
 **********
 **   18 **HESSE 
 **********

 FCN=   4955.806     FROM HESSE     STATUS=OK           541 CALLS     3725 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6616        58.472        .12485E-02   -1.5382    
   2  norm          11.002        9.0825        .12078E-03   -1.5044    
   3  Prefactor     .10000E-03    3.6175        .13049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    49.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.3586        .10516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.5733        .17581E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.5727        .10988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          26.743        3.5004        .45361E-04   -1.4673    
  10  Prefactor     .10000E-03    28.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.6384        2.4999        .88387E-04   -1.5326    
  14  norm          .10000E-03    1.3229        .78790E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    37.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.8922        68.726        .20628E-03   -1.5313    
  17  Prefactor     .10001E-03    61.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .78970        .96816E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    129.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.1469        5.1360        .13036E-03   -1.5173    
  22  Prefactor     .10000E-03    18.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    11.470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.6477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    3.0639        .12011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    5.7774        .16525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     91.820        70.635        .20972E-03   -1.3789    
  28  Normalizat    1.2605        .24112        .23058E-03   -.84754    
  29  Prefactor     .68353        .24906        .31774E-03   -1.0418    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75951e-09
Minuit parameter uncertainties:
  1  24.9775
  2  9.08359
  3  8.17987e-07
  4  0.00054407
  5  8.88453e-07
  6  7.50918e-06
  7  4.17461e-05
  8  1.45766e-06
  9  3.50044
  10  0.000567462
  11  8.72761e-05
  12  0.000137094
  13  2.49994
  14  7.50275e-06
  15  0.000683599
  16  32.754
  17  0.00152675
  18  0.000143393
  19  1.08211e-05
  20  1.67393e-05
  21  5.13632
  22  6.41628e-05
  23  9.18633e-06
  24  8.3058e-06
  25  2.85984e-06
  26  4.90022e-07
  27  70.6999
  28  0.241336
  29  0.249467
Done.

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

Extracting fit parameters...

4FGL J0231.2-4745
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  6.836e-04  1.000e-04  1.000e+04 ( 1.000e-12)
301        Index:  2.759e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  4.395e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  6.835e-01  2.495e-01  0.000e+00  1.000e+01 ( 1.000e+00)
591        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
592        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  1.260e+00  2.413e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 37.821 -47.765
Photon Flux Upper Limit: 1.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.01e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/491145/likelihoodResults_576288001_576547201_4FGL_J0231.2-4745_daily_bin1300.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) = 4955.8059691
delta logL = -0.000126410370285

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4955.80584184
delta logL = 8.43639099912e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1878       1.0000          .0000       10.000    
     3 'Normalizat'    1.2605       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68354       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5930E+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=   4955.806     FROM MIGRAD    STATUS=CONVERGED    122 CALLS      322 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22649E-03    .51887E-01    .33811E-01** at limit **
   2  Index         5.2672        5.1911        .50000        .81160E-05
   3  Normalizat    1.2605        .14267E-02    .23058E-03    .16474E-02
   4  Prefactor     .68353        .14983E-02    .31775E-03    .67002E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000226492
  Index      = 5.26724
  Normalizat = 1.26047
  Prefactor  = 0.683532
 **********
 **   18 **HESSE 
 **********

 FCN=   4955.806     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      361 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22649E-03    .32406        .16033E-01   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.2672        5.1103        .50000        .53474E-01
   3  Normalizat    1.2605        .18895E-02    .46115E-04   -.84754    
   4  Prefactor     .68353        .19845E-02    .63549E-04   -1.0418    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.09996e-09
Minuit parameter uncertainties:
  1  0.012805
  2  62.5211
  3  0.00188954
  4  0.00198446
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/491145': 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) = 4955.8058384
delta logL = 4.29012834502e-06

Extracting fit parameters...

4FGL J0231.2-4745
   Spectrum: PowerLaw
300    Prefactor:  2.265e-04  1.281e-02  1.000e-04  1.000e+04 ( 1.000e-12)
301        Index:  5.267e+00  6.252e+01  0.000e+00  1.000e+01 (-1.000e+00)
302        Scale:  4.395e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  6.835e-01  1.984e-03  0.000e+00  1.000e+01 ( 1.000e+00)
591        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
592        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  1.260e+00  1.890e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 37.821 -47.765

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/491145/cmap_HighResolution_576288001_576547201_4FGL_J0231.2-4745_daily_bin1300.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', job_status='DONE', photon_flux_upper_limit='1.28e-07', time_completed='2021-08-16 03:40:19.705742', job_id='491145', GAL2='0.68', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1629110419.71', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='4.29e-06', ts2='0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='1300' AND source_name='4FGL J0231.2-4745' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 16 03:40:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 491145: <4FGL_J0231.2-4745_daily_bin1300> in cluster <slac> Done

Job <4FGL_J0231.2-4745_daily_bin1300> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Aug 16 03:25:29 2021
Job was executed on host(s) <bullet0303>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 16 03:26:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 16 03:26:22 2021
Terminated at Mon Aug 16 03:40:20 2021
Results reported at Mon Aug 16 03:40:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0231.2-4745_daily_bin1300 37.8209 -47.7654 576288001 576547201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0231.2-4745 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   786.44 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            891 sec.

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

