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


Performing analysis on: 4FGL_J2231.0-4416_daily_bin1268
RA = 337.758, Dec = -44.2791
tmin = 567993601, tmax = 568252801
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='339456', job_status='RUN', time_executed='2021-09-28 13:36:08.347379', time_epoch_executed='1632861368.35' WHERE source_name='4FGL J2231.0-4416' and cadence='daily' and bin_id='1268'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/339456

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/339456/ft1_4FGL_J2231.0-4416_daily_bin1268.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/339456/ft2_4FGL_J2231.0-4416_daily_bin1268.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/339456/ft1_4FGL_J2231.0-4416_daily_bin1268.fits outfile=/scratch/kocevski/339456/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin1268.fits ra=337.758 dec=-44.2791 rad=12.0 tmin=567993601.0 tmax=568252801.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 2.33
user 2.13
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/339456/ft1_filtered_4FGL_J2231.0-4416_daily_bin1268.fits" evtable="EVENTS" scfile=/scratch/kocevski/339456/ft2_4FGL_J2231.0-4416_daily_bin1268.fits sctable="SC_DATA" outfile=/scratch/kocevski/339456/ltcube_567993601_568252801_4FGL_J2231.0-4416_daily_bin1268.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/339456/ft2_4FGL_J2231.0-4416_daily_bin1268.fits
.....................!
real 12.28
user 11.94
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/339456/ft1_filtered_4FGL_J2231.0-4416_daily_bin1268.fits evtable="EVENTS" scfile=/scratch/kocevski/339456/ft2_4FGL_J2231.0-4416_daily_bin1268.fits sctable="SC_DATA" expcube=/scratch/kocevski/339456/ltcube_567993601_568252801_4FGL_J2231.0-4416_daily_bin1268.fits outfile=/scratch/kocevski/339456/expmap_567993601_568252801_4FGL_J2231.0-4416_daily_bin1268.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/339456/ltcube_567993601_568252801_4FGL_J2231.0-4416_daily_bin1268.fits
.....................!
real 190.55
user 185.10
sys 5.06

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/339456/ft1_filtered_4FGL_J2231.0-4416_daily_bin1268.fits scfile=/scratch/kocevski/339456/ft2_4FGL_J2231.0-4416_daily_bin1268.fits outfile=/scratch/kocevski/339456/cmap_567993601_568252801_4FGL_J2231.0-4416_daily_bin1268.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/339456/ft1_filtered_4FGL_J2231.0-4416_daily_bin1268.fits scfile=/scratch/kocevski/339456/ft2_4FGL_J2231.0-4416_daily_bin1268.fits outfile=/scratch/kocevski/339456/cmap_HighResolution_567993601_568252801_4FGL_J2231.0-4416_daily_bin1268.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.53
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/339456/ft1_filtered_4FGL_J2231.0-4416_daily_bin1268.fits evtable="EVENTS" scfile=/scratch/kocevski/339456/ft2_4FGL_J2231.0-4416_daily_bin1268.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/339456/Model_4FGL_J2231.0-4416_daily_bin1268.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/339456/ft1_filtered_4FGL_J2231.0-4416_daily_bin1268.fits.....................!
real 40.19
user 38.88
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/339456/ft1_filtered_4FGL_J2231.0-4416_daily_bin1268.fits', '/scratch/kocevski/339456/ft2_4FGL_J2231.0-4416_daily_bin1268.fits', expMap='/scratch/kocevski/339456/expmap_567993601_568252801_4FGL_J2231.0-4416_daily_bin1268.fits', expCube='/scratch/kocevski/339456/ltcube_567993601_568252801_4FGL_J2231.0-4416_daily_bin1268.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/339456/Model_4FGL_J2231.0-4416_daily_bin1268.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/339456/ft1_filtered_4FGL_J2231.0-4416_daily_bin1268.fits
Spacecraft file(s): /scratch/kocevski/339456/ft2_4FGL_J2231.0-4416_daily_bin1268.fits
Exposure map: /scratch/kocevski/339456/expmap_567993601_568252801_4FGL_J2231.0-4416_daily_bin1268.fits
Exposure cube: /scratch/kocevski/339456/ltcube_567993601_568252801_4FGL_J2231.0-4416_daily_bin1268.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/339456/Model_4FGL_J2231.0-4416_daily_bin1268.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) = 4945.89749332

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.207       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.8481       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.049       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11027E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.3781       1.0000         .10000E-03   10000.    
    10 'Prefactor '    60.013       1.0000         .10000E-03   10000.    
    11 'norm      '    5.8732       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.8130       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.2576       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .85136E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.2518       1.0000         .10000E-03   10000.    
    18 'Prefactor '    79.565       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10742E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.2003       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.5499       1.0000         .10000E-03   10000.    
    24 'Prefactor '    29.223       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    14.746       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    .37913       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.0537       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.0918       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=   4945.822     FROM MIGRAD    STATUS=CONVERGED    928 CALLS     4895 TOTAL
                     EDM=   .55E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.209        19.960       -.13327E-06    .21977E-05
   2  Prefactor     .10000E-03    12.407        .27283E-06** at limit **
   3  Prefactor     4.8489        8.4448       -.30712E-06    .45470E-05
   4  norm          .10000E-03    1.9215        .35796E-07** at limit **
   5  Prefactor     12.049        13.597       -.19001E-06   -.50746E-05
   6  Prefactor     .10000E-03    4.8586       -.11890E-06** at limit **
   7  Prefactor     .10000E-03    191.64       -.29343E-06** at limit **
   8  Prefactor     .10000E-03    8.1025       -.68688E-06** at limit **
   9  Prefactor     7.3782        6.4055       -.24243E-06    .84215E-05
  10  Prefactor     60.255        103.15        .62156E-05   -.62863E-05
  11  norm          5.8729        8.4934       -.42627E-06   -.10431E-04
  12  Prefactor     5.8065        10.112       -.20771E-06   -.29631E-04
  13  Prefactor     3.2577        4.0926       -.49211E-07   -.12948E-04
  14  Prefactor     .10000E-03    16.129        .79480E-07** at limit **
  15  Prefactor     .10000E-03    6.7592        .11698E-06** at limit **
  16  Prefactor     .10000E-03    94.874       -.58224E-05** at limit **
  17  Prefactor     8.2388        22.537        .67118E-06   -.60530E-05
  18  Prefactor     79.567        44.558       -.17599E-06   -.75800E-05
  19  Prefactor     .10000E-03    12.897        .12440E-06** at limit **
  20  Prefactor     .10000E-03    237.27       -.11510E-05** at limit **
  21  Prefactor     .10000E-03    12.605        .37808E-06** at limit **
  22  Prefactor     9.2056        41.999       -.74964E-07   -.36248E-06
  23  Prefactor     2.5459        294.36        .10149E-05   -.29750E-06
  24  Prefactor     29.232        24.769       -.99690E-06   -.56016E-04
  25  norm          .10000E-03    6.3043        .37436E-07** at limit **
  26  norm          .10000E-03    5.8511       -.62536E-07** at limit **
  27  norm          14.746        7.6866       -.67562E-07   -.26607E-04
  28  Prefactor     .10000E-03    4.1548        .91534E-08** at limit **
  29  Prefactor     .10000E-03    101.69        .14142E-05** at limit **
  30  norm          .10000E-03    1.7673        .80953E-08** at limit **
  31  Prefactor     .10000E-03    5.9649       -.26731E-07** at limit **
  32  norm          .37875        1.2109        .45695E-06    .21442E-03
  33  Normalizat    1.0537        .24119       -.13119E-05    .19577E-04
  34  Prefactor     1.0916        .21404        .92008E-06   -.95053E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.2095
  Prefactor  = 0.0001
  Prefactor  = 4.84891
  norm       = 0.0001
  Prefactor  = 12.0493
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.37823
  Prefactor  = 60.2554
  norm       = 5.87292
  Prefactor  = 5.80651
  Prefactor  = 3.25766
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.2388
  Prefactor  = 79.5672
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.20562
  Prefactor  = 2.5459
  Prefactor  = 29.2315
  norm       = 0.0001
  norm       = 0.0001
  norm       = 14.7464
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.378747
  Normalizat = 1.05372
  Prefactor  = 1.09163
 **********
 **   18 **HESSE 
 **********

 FCN=   4945.822     FROM HESSE     STATUS=OK           734 CALLS     5629 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.209        19.928        .83148E-04   -1.4744    
   2  Prefactor     .10000E-03    12.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.8489        8.4112        .18270E-03   -1.5268    
   4  norm          .10000E-03    1.9277        .95197E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.049        13.588        .57703E-03   -1.5014    
   6  Prefactor     .10000E-03    4.8705        .15133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    193.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.1386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.3782        6.3899        .14766E-03   -1.5165    
  10  Prefactor     60.255        102.63        .25896E-03   -1.4154    
  11  norm          5.8729        8.4788        .82854E-03   -1.5223    
  12  Prefactor     5.8065        10.159        .83288E-03   -1.5226    
  13  Prefactor     3.2577        4.0890        .15227E-03   -1.5347    
  14  Prefactor     .10000E-03    16.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.8351        .17839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    93.421        .49827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.2388        22.414        .13956E-03   -1.5134    
  18  Prefactor     79.567        44.938        .45024E-04   -1.3922    
  19  Prefactor     .10000E-03    12.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    237.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.121        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.2056        41.989        .13213E-03   -1.5101    
  23  Prefactor     2.5459        295.35        .25570E-03   -1.5389    
  24  Prefactor     29.232        24.553        .74113E-04   -1.4626    
  25  norm          .10000E-03    6.3117        .17246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    5.8836        .16597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          14.746        7.6766        .10430E-03   -1.4940    
  28  Prefactor     .10000E-03    4.1874        .13992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    104.20        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    1.7723        .91262E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    5.9769        .16773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          .37875        1.1751        .12720E-03   -1.5585    
  33  Normalizat    1.0537        .29014        .27398E-03   -.91252    
  34  Prefactor     1.0916        .25737        .25159E-03   -.89735    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33525e-10
Minuit parameter uncertainties:
  1  19.9338
  2  1.06147e-07
  3  8.41326
  4  1.22594e-07
  5  13.5913
  6  2.41866e-06
  7  0.000331408
  8  2.03291e-05
  9  6.39053
  10  102.936
  11  8.48049
  12  10.1619
  13  4.08939
  14  7.7194e-07
  15  5.63639e-06
  16  0.000159755
  17  22.4365
  18  44.9569
  19  1.65348e-05
  20  0.000155333
  21  3.4904e-06
  22  39.3664
  23  55.1226
  24  24.5618
  25  1.04762e-06
  26  8.43337e-07
  27  7.67709
  28  1.74842e-06
  29  3.55821e-05
  30  9.40609e-07
  31  2.1105e-06
  32  1.17517
  33  0.290573
  34  0.257666
Done.

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

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  3.258e+00  4.089e+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:  1.092e+00  2.577e-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:  1.054e+00  2.906e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.09
Ra Dec: 337.758 -44.279
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 2.99e-08 +/- 3.75e-08
Energy Flux (Fixed Index): 9.47e-06 +/- 1.19e-05

TS (Fixed Index): 1.09
Ra Dec: 337.758 -44.279
Photon Flux Upper Limit: 1.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/339456/likelihoodResults_567993601_568252801_4FGL_J2231.0-4416_daily_bin1268.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) = 4945.71546796
delta logL = 0.106418570395

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4945.71151527
delta logL = 0.110371264203

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9938       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8728       1.0000          .0000       10.000    
     3 'Normalizat'    1.0767       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0784       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.

 FCN=   4945.712     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      211 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9938        4.3725        .58653E-02    .30436E-03
   2  Index         1.8727        .79908        .26577       -.43508E-04
   3  Normalizat    1.0767        .22048        .61340E-01    .92492E-05
   4  Prefactor     1.0784        .20532        .57182E-01    .65230E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.99382
  Index      = 1.87267
  Normalizat = 1.07666
  Prefactor  = 1.07836
 **********
 **   18 **HESSE 
 **********

 FCN=   4945.712     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9938        4.2751        .15175E-03   -1.5362    
   2  Index         1.8727        1.0067        .12280E-01   -.67573    
   3  Normalizat    1.0767        .26936        .27130E-03   -.90505    
   4  Prefactor     1.0784        .25120        .25286E-03   -.90161    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89264e-09
Minuit parameter uncertainties:
  1  4.2755
  2  1.01823
  3  0.269701
  4  0.251478
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/339456': 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) = 4945.71151526
delta logL = 0.110371271227

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  2.994e+00  4.275e+00  1.000e-04  1.000e+04 ( 1.000e-12)
306        Index:  1.873e+00  1.018e+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:  1.078e+00  2.515e-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:  1.077e+00  2.697e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.31
Ra Dec: 337.758 -44.279
Photon Index (Free Index): 1.87 +/- 1.02
Photon Flux (Free Index): 1.47e-08 +/- 2.93e-08
Energy Flux (Free Index): 1.43e-05 +/- 2.65e-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/339456/cmap_HighResolution_567993601_568252801_4FGL_J2231.0-4416_daily_bin1268.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.79e-03', comment='SUCCESS', photon_flux='2.99e-08', energy_flux2='1.43e-05', photon_flux_error='3.75e-08', dlogl='1.10e-01', energy_flux='9.47e-06', photon_flux2='1.47e-08', job_status='DONE', time_completed='2021-09-28 13:49:47.248238', photon_index_error2='1.02', photon_index2='1.87', ts='1.09', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='1.26e-07', energy_flux_error2='2.65e-05', EG='1.05', time_epoch_completed='1632862187.25', return_code='0', job_id='339456', GAL2='1.08', EG2='1.08', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='2.93e-08', ts2='1.31', photon_index='2.43' WHERE bin_id='1268' AND source_name='4FGL J2231.0-4416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 13:49:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 339456: <4FGL_J2231.0-4416_daily_bin1268> in cluster <slac> Done

Job <4FGL_J2231.0-4416_daily_bin1268> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Tue Sep 28 13:35:27 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 13:35:28 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:35:28 2021
Terminated at Tue Sep 28 13:49:47 2021
Results reported at Tue Sep 28 13:49:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2231.0-4416_daily_bin1268 337.758 -44.2791 567993601 568252801 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 :                                   817.10 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             326.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            860 sec.

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

