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


Performing analysis on: 4FGL_J2231.0-4416_daily_bin1260
RA = 337.758, Dec = -44.2791
tmin = 565920001, tmax = 566179201
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='339444', job_status='RUN', time_executed='2021-09-28 13:36:35.012031', time_epoch_executed='1632861395.01' WHERE source_name='4FGL J2231.0-4416' and cadence='daily' and bin_id='1260'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/339444

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/339444/ft1_4FGL_J2231.0-4416_daily_bin1260.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/339444/ft2_4FGL_J2231.0-4416_daily_bin1260.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/339444/ft1_4FGL_J2231.0-4416_daily_bin1260.fits outfile=/scratch/kocevski/339444/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin1260.fits ra=337.758 dec=-44.2791 rad=12.0 tmin=565920001.0 tmax=566179201.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 3.65
user 3.44
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/339444/ft2_4FGL_J2231.0-4416_daily_bin1260.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/339444/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin1260.fits evtable="EVENTS" outfile="/scratch/kocevski/339444/ft1_filtered_4FGL_J2231.0-4416_daily_bin1260.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/339444/ft1_filtered_4FGL_J2231.0-4416_daily_bin1260.fits" evtable="EVENTS" scfile=/scratch/kocevski/339444/ft2_4FGL_J2231.0-4416_daily_bin1260.fits sctable="SC_DATA" outfile=/scratch/kocevski/339444/ltcube_565920001_566179201_4FGL_J2231.0-4416_daily_bin1260.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/339444/ft2_4FGL_J2231.0-4416_daily_bin1260.fits
.....................!
real 11.84
user 11.51
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/339444/ft1_filtered_4FGL_J2231.0-4416_daily_bin1260.fits evtable="EVENTS" scfile=/scratch/kocevski/339444/ft2_4FGL_J2231.0-4416_daily_bin1260.fits sctable="SC_DATA" expcube=/scratch/kocevski/339444/ltcube_565920001_566179201_4FGL_J2231.0-4416_daily_bin1260.fits outfile=/scratch/kocevski/339444/expmap_565920001_566179201_4FGL_J2231.0-4416_daily_bin1260.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/339444/ltcube_565920001_566179201_4FGL_J2231.0-4416_daily_bin1260.fits
.....................!
real 189.74
user 185.15
sys 4.29

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/339444/ft1_filtered_4FGL_J2231.0-4416_daily_bin1260.fits scfile=/scratch/kocevski/339444/ft2_4FGL_J2231.0-4416_daily_bin1260.fits outfile=/scratch/kocevski/339444/cmap_565920001_566179201_4FGL_J2231.0-4416_daily_bin1260.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/339444/ft1_filtered_4FGL_J2231.0-4416_daily_bin1260.fits scfile=/scratch/kocevski/339444/ft2_4FGL_J2231.0-4416_daily_bin1260.fits outfile=/scratch/kocevski/339444/cmap_HighResolution_565920001_566179201_4FGL_J2231.0-4416_daily_bin1260.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/339444/ft1_filtered_4FGL_J2231.0-4416_daily_bin1260.fits evtable="EVENTS" scfile=/scratch/kocevski/339444/ft2_4FGL_J2231.0-4416_daily_bin1260.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/339444/Model_4FGL_J2231.0-4416_daily_bin1260.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/339444/ft1_filtered_4FGL_J2231.0-4416_daily_bin1260.fits.....................!
real 34.57
user 33.33
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8564       1.0000         .10000E-03   10000.    
     4 'norm      '    6.9023       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14799E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.9786       1.0000         .10000E-03   10000.    
    10 'Prefactor '    101.59       1.0000         .10000E-03   10000.    
    11 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.6815       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11727E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11109E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    34.919       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.540       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    43.099       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    10.728       1.0000         .10000E-03   10000.    
    26 'norm      '    .95352       1.0000         .10000E-03   10000.    
    27 'norm      '    4.7096       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .12385E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    9.7165       1.0000         .10000E-03   10000.    
    31 'Prefactor '    16.298       1.0000         .10000E-03   10000.    
    32 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.0739       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .92791       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=   3864.514     FROM MIGRAD    STATUS=CONVERGED    937 CALLS     5732 TOTAL
                     EDM=   .80E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.9719        .10500E-06** at limit **
   2  Prefactor     .10000E-03    59.138       -.51715E-06** at limit **
   3  Prefactor     1.8562        3.5920        .17854E-06    .39193E-04
   4  norm          6.9014        5.9930       -.51838E-07   -.80708E-05
   5  Prefactor     .10000E-03    6.9869        .14127E-06** at limit **
   6  Prefactor     .10000E-03    3.4787        .26822E-07** at limit **
   7  Prefactor     .10000E-03    33.146       -.59605E-06** at limit **
   8  Prefactor     .10000E-03    16.794       -.51696E-05** at limit **
   9  Prefactor     1.9782        5.0351        .42265E-06    .96846E-04
  10  Prefactor     101.51        133.23        .27067E-06    .38411E-05
  11  norm          .10000E-03    6.8240       -.23032E-06** at limit **
  12  Prefactor     .10000E-03    5.4418        .65904E-07** at limit **
  13  Prefactor     5.6807        5.0121        .63157E-07    .88548E-04
  14  Prefactor     .10000E-03    196.69       -.24170E-07** at limit **
  15  Prefactor     .10000E-03    3.8694       -.73887E-06** at limit **
  16  Prefactor     34.924        34.155       -.62456E-07   -.74941E-06
  17  Prefactor     .10000E-03    14.362        .86445E-07** at limit **
  18  Prefactor     16.542        28.491       -.30639E-07    .40929E-04
  19  Prefactor     .10000E-03    7.5231       -.33673E-07** at limit **
  20  Prefactor     .10000E-03    37.061        .16413E-06** at limit **
  21  Prefactor     .10000E-03    7.0773        .23148E-06** at limit **
  22  Prefactor     43.077        48.063       -.16220E-06   -.22467E-04
  23  Prefactor     .10000E-03    90.079        .74908E-06** at limit **
  24  Prefactor     .10000E-03    43.452        .13968E-06** at limit **
  25  norm          10.727        10.662       -.41187E-07   -.29304E-05
  26  norm          .94888        8.6479        .28210E-05    .21081E-04
  27  norm          4.7097        5.2237        .29035E-09    .62431E-04
  28  Prefactor     .10000E-03    16.416       -.24217E-06** at limit **
  29  Prefactor     .10000E-03    10.774       -.28409E-07** at limit **
  30  norm          9.7168        6.1384        .11754E-07    .39249E-04
  31  Prefactor     16.271        21.234       -.11069E-06    .58501E-05
  32  norm          .10000E-03    .42007       -.39775E-07** at limit **
  33  Normalizat    1.0739        .23687        .87765E-06    .83711E-04
  34  Prefactor     .92780        .21476       -.84346E-06    .11464E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.85625
  norm       = 6.90139
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.97824
  Prefactor  = 101.515
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.6807
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 34.924
  Prefactor  = 0.0001
  Prefactor  = 16.5416
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.0774
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 10.7274
  norm       = 0.948881
  norm       = 4.70966
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.71682
  Prefactor  = 16.2714
  norm       = 0.0001
  Normalizat = 1.0739
  Prefactor  = 0.927801
 **********
 **   18 **HESSE 
 **********

 FCN=   3864.514     FROM HESSE     STATUS=OK           728 CALLS     6460 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    59.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.8562        3.5611        .15895E-03   -1.5435    
   4  norm          6.9014        5.9925        .13583E-03   -1.5182    
   5  Prefactor     .10000E-03    7.0722        .16047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.4856        .11323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    33.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.056        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.9782        5.0068        .20942E-03   -1.5427    
  10  Prefactor     101.51        132.75        .19945E-03   -1.3689    
  11  norm          .10000E-03    6.8510        .15861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.4578        .14158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.6807        5.0137        .12408E-03   -1.5231    
  14  Prefactor     .10000E-03    202.09        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.5501        .23069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     34.924        34.285        .67816E-04   -1.4525    
  17  Prefactor     .10000E-03    14.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.542        28.492        .98480E-04   -1.4894    
  19  Prefactor     .10000E-03    7.5616        .16643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    37.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.2401        .16144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     43.077        48.043        .61065E-04   -1.4394    
  23  Prefactor     .10000E-03    90.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    44.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          10.727        10.664        .12232E-03   -1.5053    
  26  norm          .94888        8.6203        .35499E-03   -1.5513    
  27  norm          4.7097        5.2272        .14340E-03   -1.5274    
  28  Prefactor     .10000E-03    16.648        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    10.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          9.7168        6.1432        .11632E-03   -1.5084    
  31  Prefactor     16.271        21.067        .99209E-04   -1.4901    
  32  norm          .10000E-03    .42168        .39329E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.0739        .27855        .23839E-03   -.90594    
  34  Prefactor     .92780        .25152        .24095E-03   -.95176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52788e-10
Minuit parameter uncertainties:
  1  1.90124e-05
  2  0.000346512
  3  3.56152
  4  5.99306
  5  1.21344e-05
  6  3.63062e-07
  7  7.53882e-05
  8  1.5485e-05
  9  5.00784
  10  133.145
  11  1.21176e-05
  12  5.1771e-07
  13  5.01403
  14  0.000412042
  15  0.000198613
  16  34.3048
  17  8.73504e-06
  18  28.5149
  19  8.05497e-06
  20  0.000107588
  21  1.06866e-05
  22  48.0859
  23  0.00044133
  24  3.208e-05
  25  10.6659
  26  5.72082
  27  5.22772
  28  8.64898e-05
  29  2.39544e-05
  30  6.14357
  31  21.0768
  32  1.90157e-06
  33  0.27893
  34  0.251839
Done.

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

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  5.681e+00  5.014e+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:  9.278e-01  2.518e-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.074e+00  2.789e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.83
Ra Dec: 337.758 -44.279
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 5.21e-08 +/- 4.60e-08
Energy Flux (Fixed Index): 1.65e-05 +/- 1.46e-05

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

Saving results to:
/scratch/kocevski/339444/likelihoodResults_565920001_566179201_4FGL_J2231.0-4416_daily_bin1260.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) = 3864.47957289
delta logL = 0.0346622191855

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3864.46412214
delta logL = 0.0501129669633

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.7085       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1954       1.0000          .0000       10.000    
     3 'Normalizat'    1.0874       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91720       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=   3864.464     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      195 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7098        188.07        .38730E-02    .18400E-03
   2  Index         2.1952        5.7920        .20786        .25861E-04
   3  Normalizat    1.0873        .10428        .38537E-01    .34076E-05
   4  Prefactor     .91732        .92552E-01    .45224E-01   -.24249E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.70979
  Index      = 2.1952
  Normalizat = 1.08732
  Prefactor  = 0.917322
 **********
 **   18 **HESSE 
 **********

 FCN=   3864.464     FROM HESSE     STATUS=OK            33 CALLS      228 TOTAL
                     EDM=   .79E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7098        6.3388        .13474E-03   -1.5190    
   2  Index         2.1952        .69202        .72050E-02   -.59555    
   3  Normalizat    1.0873        .26457        .23707E-03   -.90160    
   4  Prefactor     .91732        .24927        .24208E-03   -.95538    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.88104e-12
Minuit parameter uncertainties:
  1  6.33943
  2  0.695286
  3  0.264897
  4  0.249584
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/339444': 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) = 3864.4641219
delta logL = 0.0501132058016

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  6.710e+00  6.339e+00  1.000e-04  1.000e+04 ( 1.000e-12)
306        Index:  2.195e+00  6.953e-01  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:  9.173e-01  2.496e-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.087e+00  2.649e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.92
Ra Dec: 337.758 -44.279
Photon Index (Free Index): 2.20 +/- 0.70
Photon Flux (Free Index): 4.62e-08 +/- 4.55e-08
Energy Flux (Free Index): 2.09e-05 +/- 2.54e-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/339444/cmap_HighResolution_565920001_566179201_4FGL_J2231.0-4416_daily_bin1260.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.17e-02', comment='SUCCESS', photon_flux='5.21e-08', energy_flux2='2.09e-05', photon_flux_error='4.60e-08', dlogl='5.01e-02', energy_flux='1.65e-05', photon_flux2='4.62e-08', job_status='DONE', time_completed='2021-09-28 13:49:26.765935', photon_index_error2='0.70', photon_index2='2.20', ts='1.83', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.52e-07', energy_flux_error2='2.54e-05', EG='1.07', time_epoch_completed='1632862166.77', return_code='0', job_id='339444', GAL2='0.92', EG2='1.09', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='4.55e-08', ts2='1.92', photon_index='2.43' WHERE bin_id='1260' AND source_name='4FGL J2231.0-4416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 13:49:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 339444: <4FGL_J2231.0-4416_daily_bin1260> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2231.0-4416_daily_bin1260 337.758 -44.2791 565920001 566179201 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 :                                   770.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             325.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            841 sec.

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

