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


Performing analysis on: 4FGL_J1231.1-1412_daily_bin965
RA = 187.798, Dec = -14.2014
tmin = 489456001, tmax = 489715201
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='766683', job_status='RUN', time_executed='2021-09-05 22:05:33.673698', time_epoch_executed='1630904733.67' WHERE source_name='4FGL J1231.1-1412' and cadence='daily' and bin_id='965'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/766683

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/766683/ft1_4FGL_J1231.1-1412_daily_bin965.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/766683/ft2_4FGL_J1231.1-1412_daily_bin965.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/766683/ft1_4FGL_J1231.1-1412_daily_bin965.fits outfile=/scratch/kocevski/766683/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin965.fits ra=187.798 dec=-14.2014 rad=12.0 tmin=489456001.0 tmax=489715201.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.19
user 4.92
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/766683/ft2_4FGL_J1231.1-1412_daily_bin965.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/766683/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin965.fits evtable="EVENTS" outfile="/scratch/kocevski/766683/ft1_filtered_4FGL_J1231.1-1412_daily_bin965.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.50
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/766683/ft1_filtered_4FGL_J1231.1-1412_daily_bin965.fits" evtable="EVENTS" scfile=/scratch/kocevski/766683/ft2_4FGL_J1231.1-1412_daily_bin965.fits sctable="SC_DATA" outfile=/scratch/kocevski/766683/ltcube_489456001_489715201_4FGL_J1231.1-1412_daily_bin965.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/766683/ft2_4FGL_J1231.1-1412_daily_bin965.fits
.....................!
real 17.13
user 16.69
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/766683/ft1_filtered_4FGL_J1231.1-1412_daily_bin965.fits evtable="EVENTS" scfile=/scratch/kocevski/766683/ft2_4FGL_J1231.1-1412_daily_bin965.fits sctable="SC_DATA" expcube=/scratch/kocevski/766683/ltcube_489456001_489715201_4FGL_J1231.1-1412_daily_bin965.fits outfile=/scratch/kocevski/766683/expmap_489456001_489715201_4FGL_J1231.1-1412_daily_bin965.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/766683/ltcube_489456001_489715201_4FGL_J1231.1-1412_daily_bin965.fits
.....................!
real 192.29
user 187.12
sys 4.53

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/766683/ft1_filtered_4FGL_J1231.1-1412_daily_bin965.fits scfile=/scratch/kocevski/766683/ft2_4FGL_J1231.1-1412_daily_bin965.fits outfile=/scratch/kocevski/766683/cmap_489456001_489715201_4FGL_J1231.1-1412_daily_bin965.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/766683/ft1_filtered_4FGL_J1231.1-1412_daily_bin965.fits scfile=/scratch/kocevski/766683/ft2_4FGL_J1231.1-1412_daily_bin965.fits outfile=/scratch/kocevski/766683/cmap_HighResolution_489456001_489715201_4FGL_J1231.1-1412_daily_bin965.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/766683/ft1_filtered_4FGL_J1231.1-1412_daily_bin965.fits evtable="EVENTS" scfile=/scratch/kocevski/766683/ft2_4FGL_J1231.1-1412_daily_bin965.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/766683/Model_4FGL_J1231.1-1412_daily_bin965.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/766683/ft1_filtered_4FGL_J1231.1-1412_daily_bin965.fits.....................!
real 56.21
user 54.86
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18519E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.4736       1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.626       1.0000         .10000E-03   10000.    
     4 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    62.765       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10249E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    39.234       1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.931       1.0000         .10000E-03   10000.    
     9 'Prefactor '    44.276       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.5620       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.1682       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .57262       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.2969       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .79158       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    55.513       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.5818       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.9591       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3145       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .89497       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=   6439.859     FROM MIGRAD    STATUS=CONVERGED    502 CALLS     2544 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10019E-03    8.4809        .35186E-05** at limit **
   2  Prefactor     4.4911        14.285       -.13712E-05   -.29017E-03
   3  Prefactor     22.616        18.768        .29192E-06   -.28873E-04
   4  norm          .10000E-03    2.8048       -.27477E-06** at limit **
   5  Prefactor     62.827        70.691       -.34348E-05   -.31638E-03
   6  Prefactor     .10000E-03    8.9195        .84584E-06** at limit **
   7  Prefactor     39.257        66.351        .23791E-06   -.13820E-03
   8  Prefactor     22.927        35.770        .36989E-07   -.19842E-04
   9  Prefactor     44.269        26.276       -.73769E-07   -.71408E-04
  10  Prefactor     .10000E-03    28.026       -.51132E-06** at limit **
  11  Prefactor     2.5571        8.9248        .19875E-05    .10998E-03
  12  Prefactor     5.1676        2.9296       -.15777E-06   -.15966E-03
  13  Prefactor     .35939        12.175        .16699E-05   -.17037E-03
  14  Prefactor     .10000E-03    8.1580       -.91479E-07** at limit **
  15  Prefactor     7.2739        81.926       -.14647E-05   -.24361E-04
  16  Prefactor     .10000E-03    32.089        .25742E-06** at limit **
  17  norm          .79132        .31616        .81136E-07    .85293E-03
  18  norm          .10000E-03    6.1261        .65078E-07** at limit **
  19  norm          55.512        12.986        .27306E-07   -.56088E-04
  20  Prefactor     6.5814        9.9215        .43059E-06    .73467E-04
  21  Prefactor     2.9416        23.252        .21491E-05    .28824E-04
  22  Normalizat    1.3154        .26290       -.23693E-05   -.60004E-03
  23  Prefactor     .89483        .14105       -.73566E-07   -.84906E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100187
  Prefactor  = 4.49108
  Prefactor  = 22.6155
  norm       = 0.0001
  Prefactor  = 62.8267
  Prefactor  = 0.0001
  Prefactor  = 39.2573
  Prefactor  = 22.9268
  Prefactor  = 44.2686
  Prefactor  = 0.0001
  Prefactor  = 2.5571
  Prefactor  = 5.16757
  Prefactor  = 0.35939
  Prefactor  = 0.0001
  Prefactor  = 7.27389
  Prefactor  = 0.0001
  norm       = 0.791318
  norm       = 0.0001
  norm       = 55.5117
  Prefactor  = 6.58138
  Prefactor  = 2.94158
  Normalizat = 1.31541
  Prefactor  = 0.894829
 **********
 **   18 **HESSE 
 **********

 FCN=   6439.859     FROM HESSE     STATUS=OK           376 CALLS     2920 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10019E-03    23.281        .30663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.4911        14.289        .19037E-03   -1.5284    
   3  Prefactor     22.616        18.764        .84209E-04   -1.4756    
   4  norm          .10000E-03    2.8137        .13089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     62.827        71.211        .25325E-03   -1.4121    
   6  Prefactor     .10000E-03    8.9486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     39.257        66.322        .63991E-04   -1.4454    
   8  Prefactor     22.927        35.764        .83647E-04   -1.4750    
   9  Prefactor     44.269        26.270        .30126E-03   -1.4376    
  10  Prefactor     .10000E-03    28.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.5571        8.8900        .25505E-03   -1.5388    
  12  Prefactor     5.1676        2.9071        .90348E-04   -1.5253    
  13  Prefactor     .35939        196.00        .50414E-02   -1.5588    
  14  Prefactor     .10000E-03    8.2041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.2739        83.311        .14848E-03   -1.5168    
  16  Prefactor     .10000E-03    32.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .79132        .31850        .25623E-04   -1.5530    
  18  norm          .10000E-03    6.1927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          55.512        12.906        .53838E-04   -1.4216    
  20  Prefactor     6.5814        9.8664        .15642E-03   -1.5195    
  21  Prefactor     2.9416        23.520        .23607E-03   -1.5365    
  22  Normalizat    1.3154        .30925        .33964E-03   -.83107    
  23  Prefactor     .89483        .16661        .22104E-03   -.96322    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00674e-08
Minuit parameter uncertainties:
  1  0.00417022
  2  14.2999
  3  18.7685
  4  1.08781e-05
  5  71.3076
  6  7.72511e-05
  7  66.447
  8  35.7976
  9  26.2772
  10  0.000137464
  11  8.89459
  12  2.90722
  13  16.8393
  14  7.48587e-07
  15  49.3203
  16  8.59125e-05
  17  0.3185
  18  1.26779e-05
  19  12.9062
  20  9.86888
  21  16.6442
  22  0.309684
  23  0.166703
Done.

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

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  5.168e+00  2.907e+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:  8.948e-01  1.667e-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.315e+00  3.097e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.40
Ra Dec: 187.798 -14.201
Photon Index (Fixed Index): 0.63 +/- 0.00
Photon Flux (Fixed Index): 5.58e-08 +/- 3.14e-08
Energy Flux (Fixed Index): 4.79e-05 +/- 2.69e-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) = 6439.72954536
delta logL = 0.129554980411

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6439.72081564
delta logL = 0.138284704104

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4602       1.0000         .10000E-03   10000.    
     2 'Index1    '    .91104       1.0000          .0000       10.000    
     3 'Normalizat'    1.3059       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89174       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=   6439.721     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      210 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4612        61.545        .42989E-02    .11319E-02
   2  Index1        .91152        6.9165        .22133        .87139E-04
   3  Normalizat    1.3062        .51322        .76948E-01    .36473E-04
   4  Prefactor     .89167        .17007        .44900E-01   -.48081E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.46125
  Index1     = 0.911521
  Normalizat = 1.30618
  Prefactor  = 0.891666
 **********
 **   18 **HESSE 
 **********

 FCN=   6439.721     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4612        2.6087        .43170E-03   -1.5241    
   2  Index1        .91152        .50143        .11420E-01   -.95740    
   3  Normalizat    1.3062        .29687        .34057E-03   -.83382    
   4  Prefactor     .89167        .16402        .22125E-03   -.96433    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.88119e-11
Minuit parameter uncertainties:
  1  2.60875
  2  0.503999
  3  0.297259
  4  0.164107
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/766683': 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) = 6439.72081452
delta logL = 0.13828582342

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  5.461e+00  2.609e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  9.115e-01  5.040e-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:  8.917e-01  1.641e-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.306e+00  2.973e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.64
Ra Dec: 187.798 -14.201
Photon Index (Free Index): 0.91 +/- 0.50
Photon Flux (Free Index): 7.62e-08 +/- 5.30e-08
Energy Flux (Free Index): 4.78e-05 +/- 2.29e-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/766683/cmap_HighResolution_489456001_489715201_4FGL_J1231.1-1412_daily_bin965.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.58e-08', energy_flux2='4.78e-05', photon_flux_error='3.14e-08', dlogl='1.38e-01', energy_flux='4.79e-05', photon_flux2='7.62e-08', job_status='DONE', time_completed='2021-09-05 22:16:40.914130', photon_index_error2='0.50', photon_index2='0.91', ts='17.40', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='2.29e-05', EG='1.32', time_epoch_completed='1630905400.91', return_code='0', job_id='766683', GAL2='0.89', EG2='1.31', return_code2='0', energy_flux_error='2.69e-05', photon_flux_error2='5.30e-08', ts2='17.64', photon_index='0.63' WHERE bin_id='965' AND source_name='4FGL J1231.1-1412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:16:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 766683: <4FGL_J1231.1-1412_daily_bin965> in cluster <slac> Done

Job <4FGL_J1231.1-1412_daily_bin965> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Sep  5 22:00:43 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 22:01:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 22:01:41 2021
Terminated at Sun Sep  5 22:16:41 2021
Results reported at Sun Sep  5 22:16:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.1-1412_daily_bin965 187.798 -14.2014 489456001 489715201 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 :                                   651.07 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             272.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            958 sec.

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

