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


Performing analysis on: 4FGL_J2231.0-4416_daily_bin732
RA = 337.758, Dec = -44.2791
tmin = 429062401, tmax = 429321601
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='335160', job_status='RUN', time_executed='2021-09-28 13:21:27.415054', time_epoch_executed='1632860487.42' WHERE source_name='4FGL J2231.0-4416' and cadence='daily' and bin_id='732'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/335160

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/335160/ft1_4FGL_J2231.0-4416_daily_bin732.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/335160/ft2_4FGL_J2231.0-4416_daily_bin732.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/335160/ft1_4FGL_J2231.0-4416_daily_bin732.fits outfile=/scratch/kocevski/335160/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin732.fits ra=337.758 dec=-44.2791 rad=12.0 tmin=429062401.0 tmax=429321601.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.41
user 6.13
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/335160/ft2_4FGL_J2231.0-4416_daily_bin732.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/335160/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin732.fits evtable="EVENTS" outfile="/scratch/kocevski/335160/ft1_filtered_4FGL_J2231.0-4416_daily_bin732.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/335160/ft1_filtered_4FGL_J2231.0-4416_daily_bin732.fits" evtable="EVENTS" scfile=/scratch/kocevski/335160/ft2_4FGL_J2231.0-4416_daily_bin732.fits sctable="SC_DATA" outfile=/scratch/kocevski/335160/ltcube_429062401_429321601_4FGL_J2231.0-4416_daily_bin732.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/335160/ft2_4FGL_J2231.0-4416_daily_bin732.fits
.....................!
real 11.95
user 11.59
sys 0.33

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

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/335160/ft1_filtered_4FGL_J2231.0-4416_daily_bin732.fits scfile=/scratch/kocevski/335160/ft2_4FGL_J2231.0-4416_daily_bin732.fits outfile=/scratch/kocevski/335160/cmap_429062401_429321601_4FGL_J2231.0-4416_daily_bin732.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.54
user 0.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/335160/ft1_filtered_4FGL_J2231.0-4416_daily_bin732.fits evtable="EVENTS" scfile=/scratch/kocevski/335160/ft2_4FGL_J2231.0-4416_daily_bin732.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/335160/Model_4FGL_J2231.0-4416_daily_bin732.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/335160/ft1_filtered_4FGL_J2231.0-4416_daily_bin732.fits.....................!
real 33.19
user 31.97
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.843       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.2180       1.0000         .10000E-03   10000.    
     4 'norm      '    13.271       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.489       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.870       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.697       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    60.131       1.0000         .10000E-03   10000.    
    11 'norm      '    10.629       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.3290       1.0000         .10000E-03   10000.    
    14 'Prefactor '    62.555       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.9055       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .17864E-02   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10785E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    10.685       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    10.060       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.0691       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .79763       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=   3720.948     FROM MIGRAD    STATUS=CONVERGED   1644 CALLS     5499 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.840        17.763        .11641E-03    .50296E-05
   2  Prefactor     .10000E-03    31.970        .18142E-02** at limit **
   3  Prefactor     1.2219        18.897        .40900E-03   -.13203E-04
   4  norm          13.272        8.0393        .10995E-03   -.18560E-04
   5  Prefactor     11.489        13.733        .11819E-03    .26933E-05
   6  Prefactor     12.871        11.090        .11165E-03   -.91638E-06
   7  Prefactor     .10000E-03    26.371        .18142E-02** at limit **
   8  Prefactor     13.702        17.865        .10823E-03    .47533E-04
   9  Prefactor     .10000E-03    4.7987        .12973E-02** at limit **
  10  Prefactor     59.933        145.66        .25871E-03   -.67235E-05
  11  norm          10.630        9.6841        .12289E-03    .49956E-05
  12  Prefactor     .10000E-03    4.1591        .12132E-02** at limit **
  13  Prefactor     1.3264        4.3662        .21952E-03   -.87963E-04
  14  Prefactor     62.561        49.322        .25367E-03    .13759E-04
  15  Prefactor     4.9055        7.5647        .90801E-03    .94480E-04
  16  Prefactor     .10000E-03    34.190        .18142E-02** at limit **
  17  Prefactor     .10000E-03    13.406        .18142E-02** at limit **
  18  Prefactor     .10000E-03    8.0506        .16903E-02** at limit **
  19  Prefactor     .10000E-03    3.7016        .11456E-02** at limit **
  20  Prefactor     .10000E-03    38.467        .18142E-02** at limit **
  21  Prefactor     .10000E-03    3.2145        .10661E-02** at limit **
  22  Prefactor     .10000E-03    48.766        .18142E-02** at limit **
  23  Prefactor     .10000E-03    40.489        .18142E-02** at limit **
  24  Prefactor     .10000E-03    9.9424        .18142E-02** at limit **
  25  norm          .10000E-03    5.4145        .13861E-02** at limit **
  26  norm          .10000E-03    2.7308        .98428E-03** at limit **
  27  norm          .10000E-03    4.9302        .13118E-02** at limit **
  28  Prefactor     .10000E-03    11.598        .46268E-01** at limit **
  29  Prefactor     .10000E-03    105.73        .18142E-02** at limit **
  30  norm          10.680        5.4434        .98103E-04    .31407E-03
  31  Prefactor     .10000E-03    10.705        .18142E-02** at limit **
  32  norm          10.060        2.4985        .44929E-04    .55501E-03
  33  Normalizat    1.0692        .27099        .24107E-03    .17751E-03
  34  Prefactor     .79750        .25343        .26139E-03    .23536E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.8399
  Prefactor  = 0.0001
  Prefactor  = 1.2219
  norm       = 13.2715
  Prefactor  = 11.4889
  Prefactor  = 12.8706
  Prefactor  = 0.0001
  Prefactor  = 13.702
  Prefactor  = 0.0001
  Prefactor  = 59.9333
  norm       = 10.6305
  Prefactor  = 0.0001
  Prefactor  = 1.32641
  Prefactor  = 62.5607
  Prefactor  = 4.9055
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 10.6804
  Prefactor  = 0.0001
  norm       = 10.0596
  Normalizat = 1.06921
  Prefactor  = 0.797496
 **********
 **   18 **HESSE 
 **********

 FCN=   3720.948     FROM HESSE     STATUS=OK           710 CALLS     6209 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.840        17.761        .46563E-05   -1.5020    
   2  Prefactor     .10000E-03    31.972        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.2219        18.865        .16360E-04   -1.5487    
   4  norm          13.272        8.0392        .43981E-05   -1.4979    
   5  Prefactor     11.489        13.732        .47276E-05   -1.5030    
   6  Prefactor     12.871        11.090        .44662E-05   -1.4990    
   7  Prefactor     .10000E-03    26.371        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.702        17.857        .43291E-05   -1.4967    
   9  Prefactor     .10000E-03    4.7997        .25946E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     59.933        145.64        .10348E-04   -1.4158    
  11  norm          10.630        9.6840        .49156E-05   -1.5056    
  12  Prefactor     .10000E-03    4.1593        .24263E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.3264        4.3652        .87809E-05   -1.5478    
  14  Prefactor     62.561        49.320        .10147E-04   -1.4124    
  15  Prefactor     4.9055        7.5622        .36320E-04   -1.5265    
  16  Prefactor     .10000E-03    34.201        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.407        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.0507        .33806E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.7016        .22912E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    38.467        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.2146        .21321E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    48.774        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    40.491        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    9.9432        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    5.4145        .27722E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    2.7308        .19686E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    4.9313        .26237E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    9.3687        .53513E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    105.78        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          10.680        5.4427        .19621E-04   -1.5054    
  31  Prefactor     .10000E-03    10.706        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          10.060        2.4986        .89857E-05   -1.5074    
  33  Normalizat    1.0692        .27126        .48213E-04   -.90746    
  34  Prefactor     .79750        .25364        .52277E-04   -.99821    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.96425e-10
Minuit parameter uncertainties:
  1  17.7687
  2  9.47854e-05
  3  9.60563
  4  8.03982
  5  13.736
  6  11.0918
  7  6.05087e-05
  8  17.8635
  9  6.34299e-05
  10  146.516
  11  9.6854
  12  1.01962e-05
  13  4.36623
  14  49.3524
  15  7.56372
  16  0.00015352
  17  2.4386e-05
  18  3.23496e-05
  19  1.18754e-05
  20  3.16615e-05
  21  6.56555e-06
  22  0.000125679
  23  5.04836e-05
  24  3.04593e-05
  25  4.59229e-06
  26  1.25569e-06
  27  2.36029e-05
  28  0.000140745
  29  0.000631634
  30  5.44298
  31  3.29358e-05
  32  2.49865
  33  0.27161
  34  0.254011
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  7.975e-01  2.540e-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.069e+00  2.716e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/335160/likelihoodResults_429062401_429321601_4FGL_J2231.0-4416_daily_bin732.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) = 3720.94259263
delta logL = 0.00501596553158

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3720.94147346
delta logL = 0.00613514043152

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5531       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2857       1.0000          .0000       10.000    
     3 'Normalizat'    1.0699       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79673       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3720.941     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      240 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5530        5.1999        .11325E-02   -.47824E-03
   2  Index         2.2843        1.2654        .13463E-01    .63369E-05
   3  Normalizat    1.0699        .26188        .24099E-03    .21229E-06
   4  Prefactor     .79667        .24954        .26150E-03    .33041E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.55298
  Index      = 2.28426
  Normalizat = 1.06995
  Prefactor  = 0.796665
 **********
 **   18 **HESSE 
 **********

 FCN=   3720.941     FROM HESSE     STATUS=OK            25 CALLS      265 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5530        4.9943        .45302E-04   -1.5459    
   2  Index         2.2843        1.2181        .53854E-03   -.57418    
   3  Normalizat    1.0699        .26214        .96396E-05   -.90723    
   4  Prefactor     .79667        .24974        .10460E-04   -.99851    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.09476e-10
Minuit parameter uncertainties:
  1  4.99566
  2  1.2359
  3  0.262461
  4  0.250099
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/335160': 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) = 3720.94147262
delta logL = 0.00613597875463

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  1.553e+00  4.996e+00  1.000e-04  1.000e+04 ( 1.000e-12)
306        Index:  2.284e+00  1.236e+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:  7.967e-01  2.501e-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.070e+00  2.625e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.11
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/335160/cmap_HighResolution_429062401_429321601_4FGL_J2231.0-4416_daily_bin732.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.28e-03', job_status='DONE', photon_flux_upper_limit='1.20e-07', time_completed='2021-09-28 13:33:56.923181', job_id='335160', GAL2='0.80', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1632861236.92', return_code2='0', ts='0.11', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='6.14e-03', ts2='0.12', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='732' AND source_name='4FGL J2231.0-4416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 13:33:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 335160: <4FGL_J2231.0-4416_daily_bin732> in cluster <slac> Done

Job <4FGL_J2231.0-4416_daily_bin732> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep 28 13:20:23 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 13:20:25 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:20:25 2021
Terminated at Tue Sep 28 13:33:57 2021
Results reported at Tue Sep 28 13:33:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2231.0-4416_daily_bin732 337.758 -44.2791 429062401 429321601 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 :                                   749.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             257.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            814 sec.

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

