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


Performing analysis on: 4FGL_J1231.1-1412_daily_bin330
RA = 187.798, Dec = -14.2014
tmin = 324864001, tmax = 325123201
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='763165', job_status='RUN', time_executed='2021-09-05 21:52:49.144326', time_epoch_executed='1630903969.14' WHERE source_name='4FGL J1231.1-1412' and cadence='daily' and bin_id='330'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/763165

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/763165/ft1_4FGL_J1231.1-1412_daily_bin330.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/763165/ft2_4FGL_J1231.1-1412_daily_bin330.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/763165/ft1_4FGL_J1231.1-1412_daily_bin330.fits outfile=/scratch/kocevski/763165/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin330.fits ra=187.798 dec=-14.2014 rad=12.0 tmin=324864001.0 tmax=325123201.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 5.73
user 5.43
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/763165/ft2_4FGL_J1231.1-1412_daily_bin330.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/763165/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin330.fits evtable="EVENTS" outfile="/scratch/kocevski/763165/ft1_filtered_4FGL_J1231.1-1412_daily_bin330.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.51
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/763165/ft1_filtered_4FGL_J1231.1-1412_daily_bin330.fits" evtable="EVENTS" scfile=/scratch/kocevski/763165/ft2_4FGL_J1231.1-1412_daily_bin330.fits sctable="SC_DATA" outfile=/scratch/kocevski/763165/ltcube_324864001_325123201_4FGL_J1231.1-1412_daily_bin330.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/763165/ft2_4FGL_J1231.1-1412_daily_bin330.fits
.....................!
real 14.80
user 14.44
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/763165/ft1_filtered_4FGL_J1231.1-1412_daily_bin330.fits evtable="EVENTS" scfile=/scratch/kocevski/763165/ft2_4FGL_J1231.1-1412_daily_bin330.fits sctable="SC_DATA" expcube=/scratch/kocevski/763165/ltcube_324864001_325123201_4FGL_J1231.1-1412_daily_bin330.fits outfile=/scratch/kocevski/763165/expmap_324864001_325123201_4FGL_J1231.1-1412_daily_bin330.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/763165/ltcube_324864001_325123201_4FGL_J1231.1-1412_daily_bin330.fits
.....................!
real 191.42
user 186.58
sys 4.10

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/763165/ft1_filtered_4FGL_J1231.1-1412_daily_bin330.fits scfile=/scratch/kocevski/763165/ft2_4FGL_J1231.1-1412_daily_bin330.fits outfile=/scratch/kocevski/763165/cmap_324864001_325123201_4FGL_J1231.1-1412_daily_bin330.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.56
user 0.42
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/763165/ft1_filtered_4FGL_J1231.1-1412_daily_bin330.fits scfile=/scratch/kocevski/763165/ft2_4FGL_J1231.1-1412_daily_bin330.fits outfile=/scratch/kocevski/763165/cmap_HighResolution_324864001_325123201_4FGL_J1231.1-1412_daily_bin330.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.57
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/763165/ft1_filtered_4FGL_J1231.1-1412_daily_bin330.fits evtable="EVENTS" scfile=/scratch/kocevski/763165/ft2_4FGL_J1231.1-1412_daily_bin330.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/763165/Model_4FGL_J1231.1-1412_daily_bin330.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/763165/ft1_filtered_4FGL_J1231.1-1412_daily_bin330.fits.....................!
real 63.90
user 62.52
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/763165/ft1_filtered_4FGL_J1231.1-1412_daily_bin330.fits', '/scratch/kocevski/763165/ft2_4FGL_J1231.1-1412_daily_bin330.fits', expMap='/scratch/kocevski/763165/expmap_324864001_325123201_4FGL_J1231.1-1412_daily_bin330.fits', expCube='/scratch/kocevski/763165/ltcube_324864001_325123201_4FGL_J1231.1-1412_daily_bin330.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/763165/Model_4FGL_J1231.1-1412_daily_bin330.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/763165/ft1_filtered_4FGL_J1231.1-1412_daily_bin330.fits
Spacecraft file(s): /scratch/kocevski/763165/ft2_4FGL_J1231.1-1412_daily_bin330.fits
Exposure map: /scratch/kocevski/763165/expmap_324864001_325123201_4FGL_J1231.1-1412_daily_bin330.fits
Exposure cube: /scratch/kocevski/763165/ltcube_324864001_325123201_4FGL_J1231.1-1412_daily_bin330.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/763165/Model_4FGL_J1231.1-1412_daily_bin330.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) = 8100.69232042

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13794E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.2387       1.0000         .10000E-03   10000.    
     4 'norm      '    1.9491       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.721       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7766       1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.183       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.4702       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.7671       1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.900       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.5708       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10315E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.6793       1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    13.540       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.8143       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12048E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1964       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .94192       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.

 FCN=   8100.640     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2531 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.3375       -.26860E-07** at limit **
   2  Prefactor     .10000E-03    4.9801       -.68071E-08** at limit **
   3  Prefactor     7.2382        8.0167        .10114E-06   -.14250E-04
   4  norm          1.9489        2.2627        .64390E-07   -.73387E-06
   5  Prefactor     14.732        32.487       -.25780E-05    .78797E-04
   6  Prefactor     1.7970        27.180        .51273E-05   -.40876E-03
   7  Prefactor     21.100        47.005        .13870E-04   -.91885E-04
   8  Prefactor     .10000E-03    36.915        .53343E-06** at limit **
   9  Prefactor     .10000E-03    6.5326        .21849E-06** at limit **
  10  Prefactor     .10000E-03    12.432       -.18445E-06** at limit **
  11  Prefactor     .10000E-03    1.6419        .49909E-07** at limit **
  12  Prefactor     8.4699        2.4812       -.26915E-07   -.62586E-04
  13  Prefactor     3.7660        7.9951        .43359E-06   -.78632E-05
  14  Prefactor     20.899        13.201        .24539E-06   -.64694E-04
  15  Prefactor     3.5419        241.52        .92888E-05   -.39798E-04
  16  Prefactor     .10000E-03    33.996       -.13444E-05** at limit **
  17  norm          2.6794        .42335       -.41733E-08    .10470E-02
  18  norm          .10000E-03    3.8229        .18684E-06** at limit **
  19  norm          13.541        6.3934       -.35317E-05   -.20920E-03
  20  Prefactor     1.8111        5.3394        .17785E-04    .19415E-03
  21  Prefactor     .10000E-03    18.415        .79886E-06** at limit **
  22  Normalizat    1.1961        .21831       -.25420E-06   -.19855E-04
  23  Prefactor     .94214        .11985       -.12983E-05    .68428E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.23821
  norm       = 1.94894
  Prefactor  = 14.7321
  Prefactor  = 1.79696
  Prefactor  = 21.0997
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.46987
  Prefactor  = 3.76597
  Prefactor  = 20.8994
  Prefactor  = 3.54191
  Prefactor  = 0.0001
  norm       = 2.67944
  norm       = 0.0001
  norm       = 13.5412
  Prefactor  = 1.81108
  Prefactor  = 0.0001
  Normalizat = 1.19609
  Prefactor  = 0.942143
 **********
 **   18 **HESSE 
 **********

 FCN=   8100.640     FROM HESSE     STATUS=OK           372 CALLS     2903 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.0217        .26497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.9879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.2382        8.0092        .14908E-03   -1.5170    
   4  norm          1.9489        2.2533        .13969E-03   -1.5429    
   5  Prefactor     14.732        32.275        .10439E-03   -1.4940    
   6  Prefactor     1.7970        27.521        .15703E-02   -1.5440    
   7  Prefactor     21.100        47.158        .87025E-04   -1.4789    
   8  Prefactor     .10000E-03    37.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.5405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.6466        .11259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.4699        2.4813        .37157E-03   -1.5126    
  13  Prefactor     3.7660        7.9837        .20801E-03   -1.5320    
  14  Prefactor     20.899        13.276        .87613E-04   -1.4793    
  15  Prefactor     3.5419        246.96        .21387E-03   -1.5332    
  16  Prefactor     .10000E-03    34.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.6794        .42761        .20412E-04   -1.5381    
  18  norm          .10000E-03    3.8881        .17182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          13.541        6.4155        .10886E-03   -1.4972    
  20  Prefactor     1.8111        5.3664        .15350E-02   -1.5439    
  21  Prefactor     .10000E-03    19.076        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1961        .25815        .33063E-03   -.86724    
  23  Prefactor     .94214        .14192        .20810E-03   -.94684    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09595e-09
Minuit parameter uncertainties:
  1  2.28445e-05
  2  4.52158e-06
  3  8.01038
  4  2.2534
  5  32.3132
  6  14.072
  7  47.241
  8  3.52339e-05
  9  1.6822e-06
  10  3.43261e-05
  11  1.29963e-06
  12  2.48135
  13  7.98591
  14  13.278
  15  59.4066
  16  0.000183161
  17  0.427609
  18  1.81524e-05
  19  6.41587
  20  5.36778
  21  4.01958e-06
  22  0.258422
  23  0.14198
Done.

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

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  8.470e+00  2.481e+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:  9.421e-01  1.420e-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:  1.196e+00  2.584e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 57.42
Ra Dec: 187.798 -14.201
Photon Index (Fixed Index): 0.63 +/- 0.00
Photon Flux (Fixed Index): 9.15e-08 +/- 2.68e-08
Energy Flux (Fixed Index): 7.85e-05 +/- 2.30e-05

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) = 8100.15717397
delta logL = 0.482474242021

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8100.14261804
delta logL = 0.497030171418

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.0337       1.0000         .10000E-03   10000.    
     2 'Index1    '    .24228       1.0000          .0000       10.000    
     3 'Normalizat'    1.2109       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94178       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.

 FCN=   8100.143     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      214 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0360        2.4951        .35364E-02   -.54730E-03
   2  Index1        .24322        .33667        .35922        .11878E-03
   3  Normalizat    1.2106        .20957        .74358E-01    .92658E-04
   4  Prefactor     .94187        .11864        .45535E-01   -.96303E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.03601
  Index1     = 0.243223
  Normalizat = 1.21061
  Prefactor  = 0.941867
 **********
 **   18 **HESSE 
 **********

 FCN=   8100.143     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.0360        2.6351        .75017E-04   -1.5141    
   2  Index1        .24322        .39605        .18503E-01   -1.2576    
   3  Normalizat    1.2106        .24522        .32908E-03   -.86276    
   4  Prefactor     .94187        .13981        .20828E-03   -.94693    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53497e-10
Minuit parameter uncertainties:
  1  2.63515
  2  0.400553
  3  0.245449
  4  0.139859
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/763165': 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) = 8100.14261459
delta logL = 0.497033615879

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  8.036e+00  2.635e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  2.432e-01  4.006e-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:  9.419e-01  1.399e-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:  1.211e+00  2.454e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 58.36
Ra Dec: 187.798 -14.201
Photon Index (Free Index): 0.24 +/- 0.40
Photon Flux (Free Index): 7.00e-08 +/- 2.82e-08
Energy Flux (Free Index): 9.23e-05 +/- 3.20e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/763165/cmap_HighResolution_324864001_325123201_4FGL_J1231.1-1412_daily_bin330.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.15e-08', energy_flux2='9.23e-05', photon_flux_error='2.68e-08', dlogl='4.97e-01', energy_flux='7.85e-05', photon_flux2='7.00e-08', job_status='DONE', time_completed='2021-09-05 22:05:06.675199', photon_index_error2='0.40', photon_index2='0.24', ts='57.42', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='3.20e-05', EG='1.20', time_epoch_completed='1630904706.68', return_code='0', job_id='763165', GAL2='0.94', EG2='1.21', return_code2='0', energy_flux_error='2.30e-05', photon_flux_error2='2.82e-08', ts2='58.36', photon_index='0.63' WHERE bin_id='330' AND source_name='4FGL J1231.1-1412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:05:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 763165: <4FGL_J1231.1-1412_daily_bin330> in cluster <slac> Done

Job <4FGL_J1231.1-1412_daily_bin330> 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) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:50:26 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:26 2021
Terminated at Sun Sep  5 22:05:07 2021
Results reported at Sun Sep  5 22:05:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.1-1412_daily_bin330 187.798 -14.2014 324864001 325123201 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 :                                   733.10 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             319.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            891 sec.

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

