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


Performing analysis on: 4FGL_J1231.1-1412_daily_bin393
RA = 187.798, Dec = -14.2014
tmin = 341193601, tmax = 341452801
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='763257', job_status='RUN', time_executed='2021-09-05 21:54:14.427255', time_epoch_executed='1630904054.43' WHERE source_name='4FGL J1231.1-1412' and cadence='daily' and bin_id='393'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/763257

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/763257/ft1_4FGL_J1231.1-1412_daily_bin393.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/763257/ft2_4FGL_J1231.1-1412_daily_bin393.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/763257/ft1_4FGL_J1231.1-1412_daily_bin393.fits outfile=/scratch/kocevski/763257/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin393.fits ra=187.798 dec=-14.2014 rad=12.0 tmin=341193601.0 tmax=341452801.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.43
user 3.22
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/763257/ft1_filtered_4FGL_J1231.1-1412_daily_bin393.fits" evtable="EVENTS" scfile=/scratch/kocevski/763257/ft2_4FGL_J1231.1-1412_daily_bin393.fits sctable="SC_DATA" outfile=/scratch/kocevski/763257/ltcube_341193601_341452801_4FGL_J1231.1-1412_daily_bin393.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/763257/ft2_4FGL_J1231.1-1412_daily_bin393.fits
.....................!
real 12.99
user 12.09
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/763257/ft1_filtered_4FGL_J1231.1-1412_daily_bin393.fits evtable="EVENTS" scfile=/scratch/kocevski/763257/ft2_4FGL_J1231.1-1412_daily_bin393.fits sctable="SC_DATA" expcube=/scratch/kocevski/763257/ltcube_341193601_341452801_4FGL_J1231.1-1412_daily_bin393.fits outfile=/scratch/kocevski/763257/expmap_341193601_341452801_4FGL_J1231.1-1412_daily_bin393.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/763257/ltcube_341193601_341452801_4FGL_J1231.1-1412_daily_bin393.fits
.....................!
real 192.72
user 187.20
sys 4.50

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/763257/ft1_filtered_4FGL_J1231.1-1412_daily_bin393.fits scfile=/scratch/kocevski/763257/ft2_4FGL_J1231.1-1412_daily_bin393.fits outfile=/scratch/kocevski/763257/cmap_341193601_341452801_4FGL_J1231.1-1412_daily_bin393.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/763257/ft1_filtered_4FGL_J1231.1-1412_daily_bin393.fits scfile=/scratch/kocevski/763257/ft2_4FGL_J1231.1-1412_daily_bin393.fits outfile=/scratch/kocevski/763257/cmap_HighResolution_341193601_341452801_4FGL_J1231.1-1412_daily_bin393.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/763257/ft1_filtered_4FGL_J1231.1-1412_daily_bin393.fits evtable="EVENTS" scfile=/scratch/kocevski/763257/ft2_4FGL_J1231.1-1412_daily_bin393.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/763257/Model_4FGL_J1231.1-1412_daily_bin393.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/763257/ft1_filtered_4FGL_J1231.1-1412_daily_bin393.fits....................!
real 62.75
user 61.29
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    55.353       1.0000         .10000E-03   10000.    
     4 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.368       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.4023       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.2369       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.8735       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.445       1.0000         .10000E-03   10000.    
    15 'Prefactor '    65.425       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.3170       1.0000         .10000E-03   10000.    
    18 'norm      '    48.381       1.0000         .10000E-03   10000.    
    19 'norm      '    7.7539       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10635E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.5487       1.0000         .10000E-03   10000.    
    22 'Normalizat'    2.1015       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .71305       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=   7374.370     FROM MIGRAD    STATUS=CONVERGED    508 CALLS     2521 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6138        .21718E-07** at limit **
   2  Prefactor     .10000E-03    4.4496        .15443E-07** at limit **
   3  Prefactor     55.350        22.952       -.37213E-08   -.13479E-05
   4  norm          .10000E-03    3.6746        .84455E-08** at limit **
   5  Prefactor     25.373        33.195        .69093E-06    .60779E-04
   6  Prefactor     .10016E-03    8.6148       -.78023E-06** at limit **
   7  Prefactor     7.3920        38.911       -.10967E-05   -.46586E-05
   8  Prefactor     .10000E-03    32.123       -.15264E-05** at limit **
   9  Prefactor     .10000E-03    7.6686        .36885E-07** at limit **
  10  Prefactor     .10000E-03    25.963        .40837E-07** at limit **
  11  Prefactor     .10000E-03    1.3495        .21187E-07** at limit **
  12  Prefactor     5.2371        2.0847       -.18883E-06    .90654E-04
  13  Prefactor     9.8722        14.866        .14830E-06    .85050E-06
  14  Prefactor     12.445        10.515        .81772E-07    .75199E-05
  15  Prefactor     65.443        71.136        .23617E-05    .68839E-04
  16  Prefactor     .10000E-03    37.210        .16074E-05** at limit **
  17  norm          1.3170        .39325       -.44552E-07    .12303E-03
  18  norm          48.381        14.845       -.25536E-07   -.17263E-04
  19  norm          7.7539        7.5603       -.20692E-06   -.11109E-03
  20  Prefactor     .10000E-03    10.328       -.18790E-05** at limit **
  21  Prefactor     7.5505        17.434        .34187E-05   -.33437E-04
  22  Normalizat    2.1015        .27323       -.58529E-06    .83053E-04
  23  Prefactor     .71299        .14239        .21614E-06    .35620E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 55.3505
  norm       = 0.0001
  Prefactor  = 25.3731
  Prefactor  = 0.000100155
  Prefactor  = 7.39204
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.23706
  Prefactor  = 9.87215
  Prefactor  = 12.4452
  Prefactor  = 65.4434
  Prefactor  = 0.000100001
  norm       = 1.31695
  norm       = 48.3808
  norm       = 7.75388
  Prefactor  = 0.0001
  Prefactor  = 7.55053
  Normalizat = 2.10153
  Prefactor  = 0.712989
 **********
 **   18 **HESSE 
 **********

 FCN=   7374.370     FROM HESSE     STATUS=OK           368 CALLS     2889 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.6297        .10651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.4527        .17691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     55.350        22.915        .53915E-04   -1.4219    
   4  norm          .10000E-03    3.6950        .16033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     25.373        33.218        .79534E-04   -1.4700    
   6  Prefactor     .10016E-03    77.455        .47008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.3920        38.417        .14741E-03   -1.5164    
   8  Prefactor     .10000E-03    32.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.6718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    26.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.3507        .97421E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.2371        2.0894        .38175E-03   -1.5250    
  13  Prefactor     9.8722        14.863        .12753E-03   -1.5079    
  14  Prefactor     12.445        10.536        .11355E-03   -1.5002    
  15  Prefactor     65.443        72.673        .49617E-04   -1.4088    
  16  Prefactor     .10000E-03    37.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.3170        .39823        .26299E-04   -1.5478    
  18  norm          48.381        14.845        .57650E-04   -1.4316    
  19  norm          7.7539        7.5925        .14401E-03   -1.5151    
  20  Prefactor     .10000E-03    10.340        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.5505        17.690        .72983E-03   -1.5158    
  22  Normalizat    2.1015        .32266        .31974E-03   -.62030    
  23  Prefactor     .71299        .16778        .26915E-03   -1.0302    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05288e-09
Minuit parameter uncertainties:
  1  7.00618e-07
  2  9.94749e-07
  3  22.9184
  4  1.80708e-06
  5  33.2427
  6  0.00694844
  7  33.7374
  8  0.000259681
  9  3.30208e-06
  10  6.2746e-06
  11  9.27204e-07
  12  2.08948
  13  14.8683
  14  10.5371
  15  72.7722
  16  0.00037758
  17  0.398228
  18  14.8461
  19  7.59344
  20  4.69375e-05
  21  17.7023
  22  0.322998
  23  0.167895
Done.

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

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  5.237e+00  2.089e+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:  7.130e-01  1.679e-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:  2.102e+00  3.230e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 24.18
Ra Dec: 187.798 -14.201
Photon Index (Fixed Index): 0.63 +/- 0.00
Photon Flux (Fixed Index): 5.66e-08 +/- 2.26e-08
Energy Flux (Fixed Index): 4.85e-05 +/- 1.94e-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) = 7371.20837638
delta logL = 3.1616414214

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7371.13725607
delta logL = 3.23276172421

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0617       1.0000         .10000E-03   10000.    
     2 'Index1    '    .85598E-12   1.0000          .0000       10.000    
     3 'Normalizat'    2.1162       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70842       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=   7371.137     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      205 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0617        1.9798        .44680E-02    .15074E-02
   2  Index1        .33307E-14    .12220        .32078    ** at limit **
   3  Normalizat    2.1162        .26275        .72073E-01   -.74379E-05
   4  Prefactor     .70842        .14011        .60983E-01    .14908E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.06165
  Index1     = 3.33067e-15
  Normalizat = 2.11618
  Prefactor  = 0.708422
 **********
 **   18 **HESSE 
 **********

 FCN=   7371.137     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0617        1.9695        .73268E-04   -1.5258    
   2  Index1        .33307E-14    .14691        .18463E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    2.1162        .31023        .31878E-03   -.61670    
   4  Prefactor     .70842        .16533        .26974E-03   -1.0320    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08998e-10
Minuit parameter uncertainties:
  1  1.96952
  2  4.60842e-08
  3  0.310534
  4  0.165446
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/763257': 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) = 7371.13725607
delta logL = 3.23276172757

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  5.062e+00  1.970e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  3.331e-15  4.608e-08  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:  7.084e-01  1.654e-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:  2.116e+00  3.105e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 30.64
Ra Dec: 187.798 -14.201
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 4.20e-08 +/- 1.63e-08
Energy Flux (Free Index): 7.16e-05 +/- 2.79e-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/763257/cmap_HighResolution_341193601_341452801_4FGL_J1231.1-1412_daily_bin393.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.66e-08', energy_flux2='7.16e-05', photon_flux_error='2.26e-08', dlogl='3.23e+00', energy_flux='4.85e-05', photon_flux2='4.20e-08', job_status='DONE', time_completed='2021-09-05 22:05:32.137699', photon_index_error2='0.00', photon_index2='0.00', ts='24.18', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', energy_flux_error2='2.79e-05', EG='2.10', time_epoch_completed='1630904732.14', return_code='0', job_id='763257', GAL2='0.71', EG2='2.12', return_code2='0', energy_flux_error='1.94e-05', photon_flux_error2='1.63e-08', ts2='30.64', photon_index='0.63' WHERE bin_id='393' AND source_name='4FGL J1231.1-1412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:05:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 763257: <4FGL_J1231.1-1412_daily_bin393> in cluster <slac> Done

Job <4FGL_J1231.1-1412_daily_bin393> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 21:50:23 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:51:00 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:51:00 2021
Terminated at Sun Sep  5 22:05:32 2021
Results reported at Sun Sep  5 22:05:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.1-1412_daily_bin393 187.798 -14.2014 341193601 341452801 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 :                                   674.14 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             286.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            909 sec.

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

