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


Performing analysis on: 4FGL_J2231.0-4416_daily_bin1006
RA = 337.758, Dec = -44.2791
tmin = 500083201, tmax = 500342401
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='337997', job_status='RUN', time_executed='2021-09-28 13:31:05.882671', time_epoch_executed='1632861065.88' WHERE source_name='4FGL J2231.0-4416' and cadence='daily' and bin_id='1006'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/337997

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/337997/ft1_4FGL_J2231.0-4416_daily_bin1006.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/337997/ft2_4FGL_J2231.0-4416_daily_bin1006.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/337997/ft1_4FGL_J2231.0-4416_daily_bin1006.fits outfile=/scratch/kocevski/337997/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin1006.fits ra=337.758 dec=-44.2791 rad=12.0 tmin=500083201.0 tmax=500342401.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.79
user 5.38
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/337997/ft2_4FGL_J2231.0-4416_daily_bin1006.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/337997/ft2_4FGL_J2231.0-4416_daily_bin1006.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/337997/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin1006.fits evtable="EVENTS" outfile="/scratch/kocevski/337997/ft1_filtered_4FGL_J2231.0-4416_daily_bin1006.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 0.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/337997/ft1_filtered_4FGL_J2231.0-4416_daily_bin1006.fits" evtable="EVENTS" scfile=/scratch/kocevski/337997/ft2_4FGL_J2231.0-4416_daily_bin1006.fits sctable="SC_DATA" outfile=/scratch/kocevski/337997/ltcube_500083201_500342401_4FGL_J2231.0-4416_daily_bin1006.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/337997/ft2_4FGL_J2231.0-4416_daily_bin1006.fits
.....................!
real 11.82
user 11.47
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/337997/ft1_filtered_4FGL_J2231.0-4416_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/337997/ft2_4FGL_J2231.0-4416_daily_bin1006.fits sctable="SC_DATA" expcube=/scratch/kocevski/337997/ltcube_500083201_500342401_4FGL_J2231.0-4416_daily_bin1006.fits outfile=/scratch/kocevski/337997/expmap_500083201_500342401_4FGL_J2231.0-4416_daily_bin1006.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/337997/ltcube_500083201_500342401_4FGL_J2231.0-4416_daily_bin1006.fits
.....................!
real 191.09
user 185.62
sys 4.99

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
Added 182 point sources and 0 extended sources

Setting source of interest to:
4FGL J2231.0-4416 @ 337.758 -44.2791

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/337997/ft1_filtered_4FGL_J2231.0-4416_daily_bin1006.fits scfile=/scratch/kocevski/337997/ft2_4FGL_J2231.0-4416_daily_bin1006.fits outfile=/scratch/kocevski/337997/cmap_500083201_500342401_4FGL_J2231.0-4416_daily_bin1006.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=337.758 yref=-44.2791 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 0.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/337997/ft1_filtered_4FGL_J2231.0-4416_daily_bin1006.fits scfile=/scratch/kocevski/337997/ft2_4FGL_J2231.0-4416_daily_bin1006.fits outfile=/scratch/kocevski/337997/cmap_HighResolution_500083201_500342401_4FGL_J2231.0-4416_daily_bin1006.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=337.758 yref=-44.2791 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 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/337997/ft1_filtered_4FGL_J2231.0-4416_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/337997/ft2_4FGL_J2231.0-4416_daily_bin1006.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/337997/Model_4FGL_J2231.0-4416_daily_bin1006.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 GAL_V02
Working on...
/scratch/kocevski/337997/ft1_filtered_4FGL_J2231.0-4416_daily_bin1006.fits......................!
real 33.92
user 32.59
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/337997/ft1_filtered_4FGL_J2231.0-4416_daily_bin1006.fits', '/scratch/kocevski/337997/ft2_4FGL_J2231.0-4416_daily_bin1006.fits', expMap='/scratch/kocevski/337997/expmap_500083201_500342401_4FGL_J2231.0-4416_daily_bin1006.fits', expCube='/scratch/kocevski/337997/ltcube_500083201_500342401_4FGL_J2231.0-4416_daily_bin1006.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/337997/Model_4FGL_J2231.0-4416_daily_bin1006.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2231.0-4416'

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  1.304e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
306        Index:  2.427e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
307        Scale:  7.453e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/337997/ft1_filtered_4FGL_J2231.0-4416_daily_bin1006.fits
Spacecraft file(s): /scratch/kocevski/337997/ft2_4FGL_J2231.0-4416_daily_bin1006.fits
Exposure map: /scratch/kocevski/337997/expmap_500083201_500342401_4FGL_J2231.0-4416_daily_bin1006.fits
Exposure cube: /scratch/kocevski/337997/ltcube_500083201_500342401_4FGL_J2231.0-4416_daily_bin1006.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/337997/Model_4FGL_J2231.0-4416_daily_bin1006.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) = 3216.00313612

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.7760       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.611       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    15.093       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.970       1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.188       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .56684E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11489E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.580       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.5865       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.6282       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.438       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10653E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.1729       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    34.858       1.0000         .10000E-03   10000.    
    24 'Prefactor '    113.80       1.0000         .10000E-03   10000.    
    25 'norm      '    30.000       1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    4.9321       1.0000         .10000E-03   10000.    
    31 'Prefactor '    27.379       1.0000         .10000E-03   10000.    
    32 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .91837       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .76818       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3215.751     FROM MIGRAD    STATUS=CONVERGED    909 CALLS     4850 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.7763        10.705        .49809E-07    .75086E-04
   2  Prefactor     13.617        47.026       -.59807E-06    .13082E-04
   3  Prefactor     .10000E-03    6.7333       -.25515E-06** at limit **
   4  norm          15.091        8.4771       -.10917E-06    .62659E-04
   5  Prefactor     .10000E-03    5.3344       -.73376E-07** at limit **
   6  Prefactor     13.970        9.9713       -.39028E-07    .23826E-04
   7  Prefactor     25.207        36.425       -.64395E-06    .92060E-04
   8  Prefactor     .10007E-03    14.294       -.23875E-05** at limit **
   9  Prefactor     .10001E-03    3.9129       -.53066E-06** at limit **
  10  Prefactor     .10000E-03    130.70        .87344E-06** at limit **
  11  norm          .10000E-03    4.2149       -.32893E-07** at limit **
  12  Prefactor     27.582        17.194       -.80570E-07    .32109E-04
  13  Prefactor     7.5869        7.6305       -.46311E-07    .11914E-03
  14  Prefactor     .10000E-03    31.417       -.79820E-06** at limit **
  15  Prefactor     4.6314        10.572        .21044E-06    .99861E-04
  16  Prefactor     15.414        38.146        .26741E-05    .24378E-04
  17  Prefactor     .10000E-03    89.118       -.48092E-05** at limit **
  18  Prefactor     .10000E-03    79.597       -.43851E-05** at limit **
  19  Prefactor     .10000E-03    18.691       -.21644E-07** at limit **
  20  Prefactor     .10000E-03    133.37        .17024E-05** at limit **
  21  Prefactor     2.1710        13.127        .62138E-05    .98436E-04
  22  Prefactor     .10000E-03    56.927        .40182E-05** at limit **
  23  Prefactor     34.969        125.12       -.15925E-04    .23187E-06
  24  Prefactor     113.80        51.370        .19693E-06    .22759E-04
  25  norm          30.001        27.483       -.43402E-07    .16072E-05
  26  norm          .10000E-03    6.3672        .11879E-07** at limit **
  27  norm          .10000E-03    7.9639       -.67862E-07** at limit **
  28  Prefactor     .10000E-03    17.694       -.29988E-06** at limit **
  29  Prefactor     .10000E-03    140.71        .40167E-05** at limit **
  30  norm          4.9324        8.3123        .71922E-07   -.94768E-05
  31  Prefactor     27.382        37.956       -.67991E-07    .12987E-04
  32  norm          .10000E-03    1.2660       -.55937E-07** at limit **
  33  Normalizat    .91807        .29447       -.85156E-06    .24639E-03
  34  Prefactor     .76845        .21613        .12911E-05    .25395E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.77634
  Prefactor  = 13.6165
  Prefactor  = 0.0001
  norm       = 15.0915
  Prefactor  = 0.0001
  Prefactor  = 13.9695
  Prefactor  = 25.2066
  Prefactor  = 0.000100072
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 27.5824
  Prefactor  = 7.5869
  Prefactor  = 0.0001
  Prefactor  = 4.63135
  Prefactor  = 15.4143
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.17105
  Prefactor  = 0.0001
  Prefactor  = 34.9687
  Prefactor  = 113.802
  norm       = 30.0005
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.9324
  Prefactor  = 27.3817
  norm       = 0.0001
  Normalizat = 0.918066
  Prefactor  = 0.76845
 **********
 **   18 **HESSE 
 **********

 FCN=   3215.751     FROM HESSE     STATUS=OK           726 CALLS     5576 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.7763        10.683        .13530E-03   -1.5115    
   2  Prefactor     13.617        46.830        .10857E-03   -1.4970    
   3  Prefactor     .10000E-03    6.8760        .14346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          15.091        8.4547        .10061E-03   -1.4931    
   5  Prefactor     .10000E-03    5.3767        .12788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.970        9.9609        .10716E-03   -1.4960    
   7  Prefactor     25.207        36.042        .79818E-04   -1.4703    
   8  Prefactor     .10007E-03    50.721        .38214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    18.833        .21261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    130.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.2163        .11371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     27.582        17.240        .76284E-04   -1.4657    
  13  Prefactor     7.5869        7.6525        .14531E-03   -1.5157    
  14  Prefactor     .10000E-03    31.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.6314        10.558        .18708E-03   -1.5278    
  16  Prefactor     15.414        38.166        .10194E-03   -1.4923    
  17  Prefactor     .10000E-03    90.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    79.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    133.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.1710        13.242        .13967E-02   -1.5413    
  22  Prefactor     .10000E-03    56.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     34.969        125.51        .67875E-04   -1.4525    
  24  Prefactor     113.80        51.460        .37711E-04   -1.3570    
  25  norm          30.001        27.480        .73149E-04   -1.4612    
  26  norm          .10000E-03    6.3687        .13976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    7.9684        .15608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    17.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    140.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          4.9324        8.2858        .18110E-03   -1.5264    
  31  Prefactor     27.382        37.850        .76563E-04   -1.4661    
  32  norm          .10000E-03    1.2695        .62219E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .91807        .34033        .27391E-03   -.95828    
  34  Prefactor     .76845        .25119        .24037E-03   -1.0090    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92893e-09
Minuit parameter uncertainties:
  1  10.6856
  2  46.9568
  3  5.89694e-06
  4  8.45536
  5  6.38102e-06
  6  9.96211
  7  36.0731
  8  0.0038169
  9  0.00073882
  10  0.000107074
  11  2.1186e-07
  12  17.2428
  13  7.65349
  14  5.13945e-06
  15  10.5627
  16  38.2263
  17  1.26313e-05
  18  5.63538e-05
  19  1.99699e-05
  20  2.9505e-05
  21  10.727
  22  1.84718e-05
  23  126.472
  24  51.4805
  25  27.4914
  26  2.50667e-07
  27  5.82228e-06
  28  3.75803e-06
  29  9.49457e-05
  30  8.28777
  31  37.883
  32  5.47995e-07
  33  0.34113
  34  0.251559
Done.

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

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  7.587e+00  7.653e+00  1.000e-04  1.000e+04 ( 1.000e-12)
306        Index:  2.427e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
307        Scale:  7.453e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  7.685e-01  2.516e-01  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  9.181e-01  3.411e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.48
Ra Dec: 337.758 -44.279
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 6.96e-08 +/- 7.02e-08
Energy Flux (Fixed Index): 2.20e-05 +/- 2.22e-05

TS (Fixed Index): 1.48
Ra Dec: 337.758 -44.279
Photon Flux Upper Limit: 2.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.72e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/337997/likelihoodResults_500083201_500342401_4FGL_J2231.0-4416_daily_bin1006.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) = 3215.35166706
delta logL = 0.399733325027

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3215.35122121
delta logL = 0.400179176313

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0645       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3152       1.0000          .0000       10.000    
     3 'Normalizat'    .83985       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81345       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5880E+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=   3215.351     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      299 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0648        7.2530        .82265E-04    .41459E-06
   2  Index         3.3151        1.2502        .51494E-02    .11880E-04
   3  Normalizat    .83986        .32459        .28543E-03    .46003E-04
   4  Prefactor     .81340        .25478        .23431E-03    .58733E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.06476
  Index      = 3.31511
  Normalizat = 0.839857
  Prefactor  = 0.813403
 **********
 **   18 **HESSE 
 **********

 FCN=   3215.351     FROM HESSE     STATUS=OK            25 CALLS      324 TOTAL
                     EDM=   .69E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0648        6.1065        .32906E-05   -1.5305    
   2  Index         3.3151        1.0541        .20597E-03   -.34370    
   3  Normalizat    .83986        .32416        .11417E-04   -.98607    
   4  Prefactor     .81340        .25427        .93724E-05   -.99236    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.90197e-12
Minuit parameter uncertainties:
  1  6.10748
  2  1.06316
  3  0.324914
  4  0.254643
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/337997': 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) = 3215.35122114
delta logL = 0.400179242562

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  4.065e+00  6.107e+00  1.000e-04  1.000e+04 ( 1.000e-12)
306        Index:  3.315e+00  1.063e+00  0.000e+00  1.000e+01 (-1.000e+00)
307        Scale:  7.453e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  8.134e-01  2.546e-01  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  8.399e-01  3.249e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.40
Ra Dec: 337.758 -44.279
Photon Index (Free Index): 3.32 +/- 1.06
Photon Flux (Free Index): 1.37e-07 +/- 1.22e-07
Energy Flux (Free Index): 2.41e-05 +/- 1.91e-05

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/337997/cmap_HighResolution_500083201_500342401_4FGL_J2231.0-4416_daily_bin1006.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.72e-02', comment='SUCCESS', photon_flux='6.96e-08', energy_flux2='2.41e-05', photon_flux_error='7.02e-08', dlogl='4.00e-01', energy_flux='2.20e-05', photon_flux2='1.37e-07', job_status='DONE', time_completed='2021-09-28 13:41:57.073334', photon_index_error2='1.06', photon_index2='3.32', ts='1.48', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='2.22e-07', energy_flux_error2='1.91e-05', EG='0.92', time_epoch_completed='1632861717.07', return_code='0', job_id='337997', GAL2='0.81', EG2='0.84', return_code2='0', energy_flux_error='2.22e-05', photon_flux_error2='1.22e-07', ts2='2.40', photon_index='2.43' WHERE bin_id='1006' AND source_name='4FGL J2231.0-4416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 13:41:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 337997: <4FGL_J2231.0-4416_daily_bin1006> in cluster <slac> Done

Job <4FGL_J2231.0-4416_daily_bin1006> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 13:30:23 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 13:30:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 13:30:24 2021
Terminated at Tue Sep 28 13:41:57 2021
Results reported at Tue Sep 28 13:41:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2231.0-4416_daily_bin1006 337.758 -44.2791 500083201 500342401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2231.0-4416 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   649.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             330.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   693 sec.
    Turnaround time :                            694 sec.

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

