/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 105 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 = 7398
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1231.1-1412_daily_bin324
RA = 187.798, Dec = -14.2014
tmin = 323308801, tmax = 323568001
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='763157', job_status='RUN', time_executed='2021-09-05 21:52:13.920212', time_epoch_executed='1630903933.92' WHERE source_name='4FGL J1231.1-1412' and cadence='daily' and bin_id='324'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/763157

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/763157/ft1_4FGL_J1231.1-1412_daily_bin324.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/763157/ft2_4FGL_J1231.1-1412_daily_bin324.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/763157/ft1_4FGL_J1231.1-1412_daily_bin324.fits outfile=/scratch/kocevski/763157/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin324.fits ra=187.798 dec=-14.2014 rad=12.0 tmin=323308801.0 tmax=323568001.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.34
user 3.12
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/763157/ft2_4FGL_J1231.1-1412_daily_bin324.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/763157/ft2_4FGL_J1231.1-1412_daily_bin324.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/763157/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin324.fits evtable="EVENTS" outfile="/scratch/kocevski/763157/ft1_filtered_4FGL_J1231.1-1412_daily_bin324.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.57
user 0.38
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/763157/ft1_filtered_4FGL_J1231.1-1412_daily_bin324.fits" evtable="EVENTS" scfile=/scratch/kocevski/763157/ft2_4FGL_J1231.1-1412_daily_bin324.fits sctable="SC_DATA" outfile=/scratch/kocevski/763157/ltcube_323308801_323568001_4FGL_J1231.1-1412_daily_bin324.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/763157/ft2_4FGL_J1231.1-1412_daily_bin324.fits
.....................!
real 15.37
user 14.80
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/763157/ft1_filtered_4FGL_J1231.1-1412_daily_bin324.fits evtable="EVENTS" scfile=/scratch/kocevski/763157/ft2_4FGL_J1231.1-1412_daily_bin324.fits sctable="SC_DATA" expcube=/scratch/kocevski/763157/ltcube_323308801_323568001_4FGL_J1231.1-1412_daily_bin324.fits outfile=/scratch/kocevski/763157/expmap_323308801_323568001_4FGL_J1231.1-1412_daily_bin324.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/763157/ltcube_323308801_323568001_4FGL_J1231.1-1412_daily_bin324.fits
.....................!
real 192.49
user 185.94
sys 4.23

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

Setting source of interest to:
4FGL J1231.1-1412 @ 187.798 -14.2014

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/763157/ft1_filtered_4FGL_J1231.1-1412_daily_bin324.fits scfile=/scratch/kocevski/763157/ft2_4FGL_J1231.1-1412_daily_bin324.fits outfile=/scratch/kocevski/763157/cmap_323308801_323568001_4FGL_J1231.1-1412_daily_bin324.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=187.798 yref=-14.2014 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.58
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/763157/ft1_filtered_4FGL_J1231.1-1412_daily_bin324.fits scfile=/scratch/kocevski/763157/ft2_4FGL_J1231.1-1412_daily_bin324.fits outfile=/scratch/kocevski/763157/cmap_HighResolution_323308801_323568001_4FGL_J1231.1-1412_daily_bin324.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=187.798 yref=-14.2014 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.58
user 0.42
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/763157/ft1_filtered_4FGL_J1231.1-1412_daily_bin324.fits evtable="EVENTS" scfile=/scratch/kocevski/763157/ft2_4FGL_J1231.1-1412_daily_bin324.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/763157/Model_4FGL_J1231.1-1412_daily_bin324.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/763157/ft1_filtered_4FGL_J1231.1-1412_daily_bin324.fits.....................!
real 54.35
user 51.94
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/763157/ft1_filtered_4FGL_J1231.1-1412_daily_bin324.fits', '/scratch/kocevski/763157/ft2_4FGL_J1231.1-1412_daily_bin324.fits', expMap='/scratch/kocevski/763157/expmap_323308801_323568001_4FGL_J1231.1-1412_daily_bin324.fits', expCube='/scratch/kocevski/763157/ltcube_323308801_323568001_4FGL_J1231.1-1412_daily_bin324.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/763157/Model_4FGL_J1231.1-1412_daily_bin324.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1231.1-1412'

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  6.774e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  6.283e-01  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
337        Scale:  1.057e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
338    Expfactor:  1.283e+01  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
339       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/763157/ft1_filtered_4FGL_J1231.1-1412_daily_bin324.fits
Spacecraft file(s): /scratch/kocevski/763157/ft2_4FGL_J1231.1-1412_daily_bin324.fits
Exposure map: /scratch/kocevski/763157/expmap_323308801_323568001_4FGL_J1231.1-1412_daily_bin324.fits
Exposure cube: /scratch/kocevski/763157/ltcube_323308801_323568001_4FGL_J1231.1-1412_daily_bin324.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/763157/Model_4FGL_J1231.1-1412_daily_bin324.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) = 5990.66534159

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3024       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    43.706       1.0000         .10000E-03   10000.    
     4 'norm      '    .41442       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.730       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .81420       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.475       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.0191       1.0000         .10000E-03   10000.    
    18 'norm      '    14.140       1.0000         .10000E-03   10000.    
    19 'norm      '    20.995       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .86402       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0987       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6210E+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=   5990.625     FROM MIGRAD    STATUS=CONVERGED    871 CALLS     3267 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3023        2.8936        .19299E-03    .11216E-03
   2  Prefactor     .10000E-03    10.681        .18142E-02** at limit **
   3  Prefactor     43.795        59.323        .60642E-04    .11931E-03
   4  norm          .40536        160.54        .29123E-02    .66588E-04
   5  Prefactor     .10000E-03    22.252        .18142E-02** at limit **
   6  Prefactor     .10000E-03    5.3057        .17404E-02** at limit **
   7  Prefactor     .10000E-03    14.222        .18142E-02** at limit **
   8  Prefactor     .10000E-03    20.202        .18142E-02** at limit **
   9  Prefactor     .10000E-03    8.7425        .18142E-02** at limit **
  10  Prefactor     .10000E-03    45.665        .18142E-02** at limit **
  11  Prefactor     14.728        8.4222        .10436E-03   -.13955E-03
  12  Prefactor     .81459        1.9550        .15586E-03    .22633E-03
  13  Prefactor     .10000E-03    12.100        .18142E-02** at limit **
  14  Prefactor     22.473        15.234        .84491E-04   -.11975E-03
  15  Prefactor     .10000E-03    25.288        .18142E-02** at limit **
  16  Prefactor     .10000E-03    36.432        .18142E-02** at limit **
  17  norm          2.0190        .39124        .20301E-04   -.15815E-02
  18  norm          14.141        11.070        .10651E-03   -.95847E-04
  19  norm          20.994        8.6766        .87415E-04   -.23878E-03
  20  Prefactor     .10000E-03    1.9320        .10501E-02** at limit **
  21  Prefactor     .10000E-03    4.1365        .15361E-02** at limit **
  22  Normalizat    .86418        .31385        .39723E-03   -.13572E-03
  23  Prefactor     1.0986        .17094        .19968E-03   -.40833E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.30225
  Prefactor  = 0.000100001
  Prefactor  = 43.795
  norm       = 0.405365
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 14.728
  Prefactor  = 0.814587
  Prefactor  = 0.0001
  Prefactor  = 22.4727
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.01901
  norm       = 14.1409
  norm       = 20.9942
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.864184
  Prefactor  = 1.09857
 **********
 **   18 **HESSE 
 **********

 FCN=   5990.625     FROM HESSE     STATUS=OK           348 CALLS     3615 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3023        2.8934        .77197E-05   -1.5480    
   2  Prefactor     .10000E-03    10.683        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     43.795        45.249        .12128E-04   -1.4383    
   4  norm          .40536        93.477        .11649E-03   -1.5581    
   5  Prefactor     .10000E-03    22.253        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.3058        .34807E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.223        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    20.202        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.7427        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    45.671        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.728        8.4209        .41744E-05   -1.4940    
  12  Prefactor     .81459        1.9546        .62345E-05   -1.5527    
  13  Prefactor     .10000E-03    12.102        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     22.473        15.234        .33796E-05   -1.4760    
  15  Prefactor     .10000E-03    25.289        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    36.433        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.0190        .39124        .40601E-05   -1.5424    
  18  norm          14.141        11.070        .42606E-05   -1.4956    
  19  norm          20.994        8.6760        .34966E-05   -1.4791    
  20  Prefactor     .10000E-03    1.9320        .21001E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.1367        .30722E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .86418        .31401        .15889E-04   -.97730    
  23  Prefactor     1.0986        .17083        .39936E-04   -.89512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.03149e-10
Minuit parameter uncertainties:
  1  2.89374
  2  0.000148515
  3  45.2847
  4  12.3293
  5  0.000136199
  6  2.15533e-05
  7  3.4224e-05
  8  0.00011169
  9  6.8844e-06
  10  0.000381892
  11  8.42154
  12  1.95478
  13  8.8129e-05
  14  15.2366
  15  3.16355e-05
  16  0.000256587
  17  0.391237
  18  11.0712
  19  8.67656
  20  4.7639e-06
  21  1.74844e-05
  22  0.314676
  23  0.170913
Done.

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

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  8.146e-01  1.955e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  6.283e-01  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
337        Scale:  1.057e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
338    Expfactor:  1.283e+01  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
339       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
618    Prefactor:  1.099e+00  1.709e-01  0.000e+00  1.000e+01 ( 1.000e+00)
619        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
620        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
617   Normalization:  8.642e-01  3.147e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.24
Ra Dec: 187.798 -14.201
Photon Flux Upper Limit: 6.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.48e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/763157/likelihoodResults_323308801_323568001_4FGL_J1231.1-1412_daily_bin324.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) = 5989.90281572
delta logL = 0.722456190431

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5989.87765844
delta logL = 0.747613469481

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0360       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.9313       1.0000          .0000       10.000    
     3 'Normalizat'    .83034       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1014       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6210E+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=   5989.878     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      260 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0361        1.6590        .73335E-03    .59593E-03
   2  Index1        1.9314        1.1380        .10063E-01    .36060E-04
   3  Normalizat    .83034        .30212        .40412E-03    .21802E-04
   4  Prefactor     1.1014        .16847        .19913E-03    .65634E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.03609
  Index1     = 1.93138
  Normalizat = 0.830337
  Prefactor  = 1.10142
 **********
 **   18 **HESSE 
 **********

 FCN=   5989.878     FROM HESSE     STATUS=OK            27 CALLS      287 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0361        1.3788        .29334E-04   -1.5504    
   2  Index1        1.9314        .94917        .40254E-03   -.66077    
   3  Normalizat    .83034        .30124        .16165E-04   -.98953    
   4  Prefactor     1.1014        .16819        .39825E-04   -.89421    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48244e-11
Minuit parameter uncertainties:
  1  1.37885
  2  0.958562
  3  0.301848
  4  0.168267
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/763157': 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) = 5989.87765843
delta logL = 0.747613481846

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  1.036e+00  1.379e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  1.931e+00  9.586e-01  0.000e+00  1.000e+01 (-1.000e+00)
337        Scale:  1.057e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
338    Expfactor:  1.283e+01  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
339       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
618    Prefactor:  1.101e+00  1.683e-01  0.000e+00  1.000e+01 ( 1.000e+00)
619        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
620        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
617   Normalization:  8.303e-01  3.018e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.76
Ra Dec: 187.798 -14.201
Photon Index (Free Index): 1.93 +/- 0.96
Photon Flux (Free Index): 5.94e-08 +/- 6.76e-08
Energy Flux (Free Index): 1.56e-05 +/- 1.47e-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/763157/cmap_HighResolution_323308801_323568001_4FGL_J1231.1-1412_daily_bin324.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.48e-05', comment='SUCCESS', energy_flux2='1.56e-05', dlogl='7.48e-01', photon_flux2='5.94e-08', job_status='DONE', time_completed='2021-09-05 22:05:08.422693', photon_index_error2='0.96', photon_index2='1.93', ts='0.24', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='6.38e-08', energy_flux_error2='1.47e-05', EG='0.86', time_epoch_completed='1630904708.42', return_code='0', job_id='763157', GAL2='1.10', EG2='0.83', return_code2='0', photon_flux_error2='6.76e-08', ts2='1.76', photon_index='0.63' WHERE bin_id='324' AND source_name='4FGL J1231.1-1412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:05:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0158>
Subject: Job 763157: <4FGL_J1231.1-1412_daily_bin324> in cluster <slac> Done

Job <4FGL_J1231.1-1412_daily_bin324> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 21:50:16 2021
Job was executed on host(s) <bullet0158>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:50:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 21:50:18 2021
Terminated at Sun Sep  5 22:05:09 2021
Results reported at Sun Sep  5 22:05:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.1-1412_daily_bin324 187.798 -14.2014 323308801 323568001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1231.1-1412 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   761.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             273.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            893 sec.

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

