/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 49 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 = 7410
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2231.0-4416_daily_bin390
RA = 337.758, Dec = -44.2791
tmin = 340416001, tmax = 340675201
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='332450', job_status='RUN', time_executed='2021-09-28 13:12:00.663087', time_epoch_executed='1632859920.66' WHERE source_name='4FGL J2231.0-4416' and cadence='daily' and bin_id='390'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/332450

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

Retrieving the FT1 file...

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

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

Retrieving 53 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/332450/ft1_4FGL_J2231.0-4416_daily_bin390.fits


Retrieving the FT1 file...

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

Retrieving 53 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/332450/ft2_4FGL_J2231.0-4416_daily_bin390.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/332450/ft1_4FGL_J2231.0-4416_daily_bin390.fits outfile=/scratch/kocevski/332450/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin390.fits ra=337.758 dec=-44.2791 rad=12.0 tmin=340416001.0 tmax=340675201.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 6.72
user 6.46
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/332450/ft1_filtered_4FGL_J2231.0-4416_daily_bin390.fits" evtable="EVENTS" scfile=/scratch/kocevski/332450/ft2_4FGL_J2231.0-4416_daily_bin390.fits sctable="SC_DATA" outfile=/scratch/kocevski/332450/ltcube_340416001_340675201_4FGL_J2231.0-4416_daily_bin390.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/332450/ft2_4FGL_J2231.0-4416_daily_bin390.fits
.....................!
real 11.15
user 10.81
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/332450/ft1_filtered_4FGL_J2231.0-4416_daily_bin390.fits evtable="EVENTS" scfile=/scratch/kocevski/332450/ft2_4FGL_J2231.0-4416_daily_bin390.fits sctable="SC_DATA" expcube=/scratch/kocevski/332450/ltcube_340416001_340675201_4FGL_J2231.0-4416_daily_bin390.fits outfile=/scratch/kocevski/332450/expmap_340416001_340675201_4FGL_J2231.0-4416_daily_bin390.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/332450/ltcube_340416001_340675201_4FGL_J2231.0-4416_daily_bin390.fits
.....................!
real 189.29
user 184.68
sys 4.19

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/332450/ft1_filtered_4FGL_J2231.0-4416_daily_bin390.fits scfile=/scratch/kocevski/332450/ft2_4FGL_J2231.0-4416_daily_bin390.fits outfile=/scratch/kocevski/332450/cmap_340416001_340675201_4FGL_J2231.0-4416_daily_bin390.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/332450/ft1_filtered_4FGL_J2231.0-4416_daily_bin390.fits scfile=/scratch/kocevski/332450/ft2_4FGL_J2231.0-4416_daily_bin390.fits outfile=/scratch/kocevski/332450/cmap_HighResolution_340416001_340675201_4FGL_J2231.0-4416_daily_bin390.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/332450/ft1_filtered_4FGL_J2231.0-4416_daily_bin390.fits evtable="EVENTS" scfile=/scratch/kocevski/332450/ft2_4FGL_J2231.0-4416_daily_bin390.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/332450/Model_4FGL_J2231.0-4416_daily_bin390.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/332450/ft1_filtered_4FGL_J2231.0-4416_daily_bin390.fits.....................!
real 39.75
user 38.50
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.717       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11142E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.8137       1.0000         .10000E-03   10000.    
     4 'norm      '    3.5979       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.0417       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.9759       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.5764       1.0000         .10000E-03   10000.    
    10 'Prefactor '    44.796       1.0000         .10000E-03   10000.    
    11 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    43.686       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .86155       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.878       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    97.113       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12467E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    3.4061       1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.3280       1.0000         .10000E-03   10000.    
    29 'Prefactor '    50.523       1.0000         .10000E-03   10000.    
    30 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    9.2661       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .96188       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .82775       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=   4880.548     FROM MIGRAD    STATUS=CONVERGED    930 CALLS     4824 TOTAL
                     EDM=   .79E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.718        14.328        .37691E-07   -.21788E-04
   2  Prefactor     .10000E-03    135.70        .34981E-06** at limit **
   3  Prefactor     5.8126        6.3778        .77055E-07   -.44085E-04
   4  norm          3.5964        4.4316        .46403E-07   -.37908E-05
   5  Prefactor     7.0397        10.645        .21021E-05   -.15964E-04
   6  Prefactor     .10000E-03    24.277       -.10663E-05** at limit **
   7  Prefactor     3.8988        169.68        .58072E-05   -.15277E-04
   8  Prefactor     .10000E-03    4.0319        .10486E-05** at limit **
   9  Prefactor     1.5760        2.2826        .43773E-06   -.22348E-04
  10  Prefactor     44.969        113.90       -.47254E-05   -.22427E-05
  11  norm          .10000E-03    4.1496        .77202E-06** at limit **
  12  Prefactor     .10000E-03    9.6525        .19022E-06** at limit **
  13  Prefactor     .10000E-03    2.7684       -.56002E-06** at limit **
  14  Prefactor     43.663        61.164        .10177E-05   -.29517E-04
  15  Prefactor     .86028        4.8854        .91952E-06   -.10429E-03
  16  Prefactor     19.876        16.561        .12636E-06   -.10278E-04
  17  Prefactor     .10000E-03    8.0934       -.74576E-07** at limit **
  18  Prefactor     .10000E-03    13.324        .20771E-06** at limit **
  19  Prefactor     .10000E-03    5.1133       -.45729E-07** at limit **
  20  Prefactor     97.091        88.394        .12001E-06   -.14388E-04
  21  Prefactor     .10001E-03    7.7885        .55932E-06** at limit **
  22  Prefactor     .10000E-03    20.501        .25668E-07** at limit **
  23  Prefactor     .10000E-03    15.895       -.91046E-08** at limit **
  24  Prefactor     .10000E-03    4.0612        .33715E-07** at limit **
  25  norm          .10000E-03    16.589        .42280E-08** at limit **
  26  norm          .10000E-03    1.8994        .42787E-08** at limit **
  27  norm          3.4062        3.3798       -.54157E-07    .78500E-05
  28  Prefactor     3.3279        4.1085        .19054E-06   -.22502E-04
  29  Prefactor     50.509        38.182        .45286E-06   -.80619E-05
  30  norm          .10000E-03    2.2214       -.19135E-06** at limit **
  31  Prefactor     .10000E-03    22.533        .44757E-06** at limit **
  32  norm          9.2661        2.0338        .30298E-07   -.85497E-04
  33  Normalizat    .96185        .19993        .29633E-06   -.24325E-03
  34  Prefactor     .82784        .18366       -.26118E-05   -.81615E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.7179
  Prefactor  = 0.0001
  Prefactor  = 5.81263
  norm       = 3.59645
  Prefactor  = 7.03975
  Prefactor  = 0.0001
  Prefactor  = 3.89878
  Prefactor  = 0.0001
  Prefactor  = 1.57596
  Prefactor  = 44.9695
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.6631
  Prefactor  = 0.860284
  Prefactor  = 19.8758
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 97.091
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.40624
  Prefactor  = 3.32787
  Prefactor  = 50.5094
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 9.2661
  Normalizat = 0.961851
  Prefactor  = 0.827845
 **********
 **   18 **HESSE 
 **********

 FCN=   4880.548     FROM HESSE     STATUS=OK           740 CALLS     5564 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.718        14.297        .10440E-03   -1.4940    
   2  Prefactor     .10000E-03    137.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.8126        6.3601        .16657E-03   -1.5226    
   4  norm          3.5964        4.4178        .15638E-03   -1.5329    
   5  Prefactor     7.0397        10.638        .75587E-03   -1.5177    
   6  Prefactor     .10000E-03    24.919        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.8988        170.18        .20228E-03   -1.5313    
   8  Prefactor     .10000E-03    4.0503        .13703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.5760        2.2591        .12300E-03   -1.5457    
  10  Prefactor     44.969        113.34        .29951E-03   -1.4366    
  11  norm          .10000E-03    4.1712        .13912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.8698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.8053        .11292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     43.663        61.161        .60655E-04   -1.4385    
  15  Prefactor     .86028        8.6548        .28193E-02   -1.5522    
  16  Prefactor     19.876        16.572        .89835E-04   -1.4816    
  17  Prefactor     .10000E-03    8.0986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.1547        .15419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     97.091        88.318        .20395E-03   -1.3734    
  21  Prefactor     .10001E-03    10.534        .55312E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    20.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    15.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.0651        .13749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    16.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    1.8995        .94030E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          3.4062        3.3872        .12436E-03   -1.5339    
  28  Prefactor     3.3279        4.0973        .15232E-03   -1.5343    
  29  Prefactor     50.509        38.369        .56420E-04   -1.4285    
  30  norm          .10000E-03    2.2245        .10140E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    22.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          9.2661        2.0361        .45034E-04   -1.5099    
  33  Normalizat    .96185        .23689        .23747E-03   -.94320    
  34  Prefactor     .82784        .21075        .23774E-03   -.98710    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01835e-08
Minuit parameter uncertainties:
  1  14.3006
  2  0.000315501
  3  6.36086
  4  4.41823
  5  10.6407
  6  0.000113657
  7  51.674
  8  9.77447e-07
  9  2.25922
  10  113.892
  11  3.1893e-06
  12  2.46174e-05
  13  5.19623e-06
  14  61.2495
  15  5.45804
  16  16.5763
  17  4.67607e-06
  18  1.39751e-05
  19  5.21955e-06
  20  88.4382
  21  0.00069309
  22  3.67017e-05
  23  9.9957e-06
  24  2.43318e-06
  25  3.25224e-05
  26  1.96346e-07
  27  3.3874
  28  4.09765
  29  38.3881
  30  1.58474e-06
  31  3.46033e-05
  32  2.03607
  33  0.237147
  34  0.210953
Done.

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

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  5.196e-06  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:  8.278e-01  2.110e-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.619e-01  2.371e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 337.758 -44.279
Photon Flux Upper Limit: 7.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/332450/likelihoodResults_340416001_340675201_4FGL_J2231.0-4416_daily_bin390.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4880.54936869
delta logL = -0.00170101459935

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4880.54766987
delta logL = -2.18978129851e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4529       1.0000          .0000       10.000    
     3 'Normalizat'    .96139       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82832       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=   4880.548     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      236 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    3.0789        .23219E-03** at limit **
   2  Index         2.4808        6.2395        .50000       -.86926E-04
   3  Normalizat    .96185        .21760        .23747E-03   -.16971E-03
   4  Prefactor     .82784        .20467        .23774E-03   -.84210E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100023
  Index      = 2.48084
  Normalizat = 0.961852
  Prefactor  = 0.827844
 **********
 **   18 **HESSE 
 **********

 FCN=   4880.548     FROM HESSE     STATUS=OK            29 CALLS      265 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    2.9852        .46439E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4808        6.2382        .50000       -.52803    
   3  Normalizat    .96185        .21781        .47494E-04   -.94320    
   4  Prefactor     .82784        .20486        .95097E-05   -.98710    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5889e-08
Minuit parameter uncertainties:
  1  0.000526803
  2  4.32118
  3  0.218006
  4  0.20505
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/332450': 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) = 4880.54766661
delta logL = 1.06819697976e-06

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  5.268e-04  1.000e-04  1.000e+04 ( 1.000e-12)
306        Index:  2.481e+00  4.321e+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.278e-01  2.050e-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.619e-01  2.180e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 337.758 -44.279

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/332450/cmap_HighResolution_340416001_340675201_4FGL_J2231.0-4416_daily_bin390.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.95e-03', job_status='DONE', photon_flux_upper_limit='7.69e-08', time_completed='2021-09-28 13:25:57.476556', job_id='332450', GAL2='0.83', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1632860757.48', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='1.07e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='390' AND source_name='4FGL J2231.0-4416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 13:25:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 332450: <4FGL_J2231.0-4416_daily_bin390> in cluster <slac> Done

Job <4FGL_J2231.0-4416_daily_bin390> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 13:10:54 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 13:10:56 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:10:56 2021
Terminated at Tue Sep 28 13:25:58 2021
Results reported at Tue Sep 28 13:25:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2231.0-4416_daily_bin390 337.758 -44.2791 340416001 340675201 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 :                                   834.27 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             345.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            904 sec.

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

