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


Performing analysis on: 4FGL_J1231.1-1412_daily_bin788
RA = 187.798, Dec = -14.2014
tmin = 443577601, tmax = 443836801
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='765176', job_status='RUN', time_executed='2021-09-05 21:59:03.837424', time_epoch_executed='1630904343.84' WHERE source_name='4FGL J1231.1-1412' and cadence='daily' and bin_id='788'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/765176

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/765176/ft1_4FGL_J1231.1-1412_daily_bin788.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/765176/ft2_4FGL_J1231.1-1412_daily_bin788.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/765176/ft1_4FGL_J1231.1-1412_daily_bin788.fits outfile=/scratch/kocevski/765176/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin788.fits ra=187.798 dec=-14.2014 rad=12.0 tmin=443577601.0 tmax=443836801.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.67
user 3.40
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/765176/ft2_4FGL_J1231.1-1412_daily_bin788.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/765176/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin788.fits evtable="EVENTS" outfile="/scratch/kocevski/765176/ft1_filtered_4FGL_J1231.1-1412_daily_bin788.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.53
user 0.37
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/765176/ft1_filtered_4FGL_J1231.1-1412_daily_bin788.fits" evtable="EVENTS" scfile=/scratch/kocevski/765176/ft2_4FGL_J1231.1-1412_daily_bin788.fits sctable="SC_DATA" outfile=/scratch/kocevski/765176/ltcube_443577601_443836801_4FGL_J1231.1-1412_daily_bin788.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/765176/ft2_4FGL_J1231.1-1412_daily_bin788.fits
.....................!
real 17.45
user 16.94
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/765176/ft1_filtered_4FGL_J1231.1-1412_daily_bin788.fits evtable="EVENTS" scfile=/scratch/kocevski/765176/ft2_4FGL_J1231.1-1412_daily_bin788.fits sctable="SC_DATA" expcube=/scratch/kocevski/765176/ltcube_443577601_443836801_4FGL_J1231.1-1412_daily_bin788.fits outfile=/scratch/kocevski/765176/expmap_443577601_443836801_4FGL_J1231.1-1412_daily_bin788.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/765176/ltcube_443577601_443836801_4FGL_J1231.1-1412_daily_bin788.fits
.....................!
real 194.03
user 187.19
sys 5.46

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/765176/ft1_filtered_4FGL_J1231.1-1412_daily_bin788.fits scfile=/scratch/kocevski/765176/ft2_4FGL_J1231.1-1412_daily_bin788.fits outfile=/scratch/kocevski/765176/cmap_443577601_443836801_4FGL_J1231.1-1412_daily_bin788.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.66
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/765176/ft1_filtered_4FGL_J1231.1-1412_daily_bin788.fits scfile=/scratch/kocevski/765176/ft2_4FGL_J1231.1-1412_daily_bin788.fits outfile=/scratch/kocevski/765176/cmap_HighResolution_443577601_443836801_4FGL_J1231.1-1412_daily_bin788.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.90
user 0.40
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/765176/ft1_filtered_4FGL_J1231.1-1412_daily_bin788.fits evtable="EVENTS" scfile=/scratch/kocevski/765176/ft2_4FGL_J1231.1-1412_daily_bin788.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/765176/Model_4FGL_J1231.1-1412_daily_bin788.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/765176/ft1_filtered_4FGL_J1231.1-1412_daily_bin788.fits.....................!
real 67.65
user 64.58
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4780       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.2862       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    33.685       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .34393       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.9941       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.980       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.3215       1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.717       1.0000         .10000E-03   10000.    
    16 'Prefactor '    36.236       1.0000         .10000E-03   10000.    
    17 'norm      '    .58145       1.0000         .10000E-03   10000.    
    18 'norm      '    .14942E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .11550E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10822E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.3627       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0901       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0573       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8062.570     FROM MIGRAD    STATUS=CONVERGED    120 CALLS     2122 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4777        3.5027        .28483E-06   -.78454E-04
   2  Prefactor     .10000E-03    6.5418        .34336E-06** at limit **
   3  Prefactor     .10000E-03    6.8359       -.36175E-06** at limit **
   4  norm          2.2866        3.3244        .11715E-06    .19967E-03
   5  Prefactor     .10000E-03    14.978       -.39464E-06** at limit **
   6  Prefactor     .10000E-03    10.496        .97821E-07** at limit **
   7  Prefactor     .10001E-03    23.459       -.21294E-05** at limit **
   8  Prefactor     33.754        25.135        .53512E-06    .13421E-01
   9  Prefactor     .19987        162.08        .10237E-04   -.70649E-04
  10  Prefactor     .10003E-03    12.408        .32228E-08** at limit **
  11  Prefactor     4.9948        5.4596        .80574E-05    .43772E-02
  12  Prefactor     10.981        3.0110       -.10523E-05   -.10110E-02
  13  Prefactor     .10000E-03    4.3534        .42019E-09** at limit **
  14  Prefactor     4.3225        1.1750        .26609E-06    .54074E-03
  15  Prefactor     21.724        1.2174       -.48236E-07    .10855E-03
  16  Prefactor     36.354        37.257        .45887E-05   -.94993E-02
  17  norm          .58146        .20945        .19322E-07   -.29612E-03
  18  norm          .10000E-03    9.5518        .22378E-05** at limit **
  19  norm          .10000E-03    1.8759        .67337E-08** at limit **
  20  Prefactor     .10000E-03    1.9081        .62066E-08** at limit **
  21  Prefactor     7.3627        1.0242       -.12053E-06   -.32378E-04
  22  Normalizat    1.0900        .25439       -.23498E-05   -.50525E-04
  23  Prefactor     1.0573        .14435        .15577E-06   -.20298E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.47769
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.28656
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100014
  Prefactor  = 33.7541
  Prefactor  = 0.199869
  Prefactor  = 0.00010003
  Prefactor  = 4.99483
  Prefactor  = 10.9805
  Prefactor  = 0.0001
  Prefactor  = 4.32253
  Prefactor  = 21.7244
  Prefactor  = 36.3543
  norm       = 0.581456
  norm       = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.36273
  Normalizat = 1.09004
  Prefactor  = 1.05731
 **********
 **   18 **HESSE 
 **********

 FCN=   8062.570     FROM HESSE     STATUS=OK           420 CALLS     2542 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4777        3.5282        .88290E-02   -1.5465    
   2  Prefactor     .10000E-03    6.5344        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.8279        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.2866        3.3559        .67877E-02   -1.5406    
   5  Prefactor     .10000E-03    14.976        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.418        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    23.723        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     33.754        31.865        .17261E-02   -1.4545    
   9  Prefactor     .19987        10.715        .10616       -1.5619    
  10  Prefactor     .10003E-03    21.260        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.9948        5.5538        .44988E-02   -1.5261    
  12  Prefactor     10.981        3.0239        .30226E-02   -1.5045    
  13  Prefactor     .10000E-03    4.3422        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.3225        12.222        .48445E-02   -1.5292    
  15  Prefactor     21.724        23.009        .21487E-02   -1.4775    
  16  Prefactor     36.354        59.057        .16644E-02   -1.4501    
  17  norm          .58146        .21221        .53759E-02   -1.5555    
  18  norm          .10000E-03    3.7571        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.8668        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.8978        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.3627        8.3068        .36953E-02   -1.5165    
  22  Normalizat    1.0900        .22376        .77233E-01   -.90072    
  23  Prefactor     1.0573        .12301        .39502E-01   -.90843    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41045e-06
Minuit parameter uncertainties:
  1  3.52867
  2  5.82015e-05
  3  0.000141362
  4  3.35615
  5  0.000252479
  6  0.000162223
  7  0.0011349
  8  31.881
  9  2.92671
  10  0.00158707
  11  5.55435
  12  3.02391
  13  8.21824e-06
  14  12.2293
  15  23.0188
  16  59.1523
  17  0.212212
  18  0.000170863
  19  1.17853e-05
  20  5.15253e-06
  21  8.30814
  22  0.223956
  23  0.123045
Done.

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

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  1.098e+01  3.024e+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.057e+00  1.230e-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.090e+00  2.240e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 52.22
Ra Dec: 187.798 -14.201
Photon Index (Fixed Index): 0.63 +/- 0.00
Photon Flux (Fixed Index): 1.19e-07 +/- 3.27e-08
Energy Flux (Fixed Index): 1.02e-04 +/- 2.80e-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) = 8061.14479277
delta logL = 1.42507758289

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8061.13365535
delta logL = 1.43621500698

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.263       1.0000         .10000E-03   10000.    
     2 'Index1    '    1.1492       1.0000          .0000       10.000    
     3 'Normalizat'    1.0258       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0704       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=   8061.134     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      239 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.263        33.735        .31268E-02    .57325E-03
   2  Index1        1.1492        2.6407        .15536        .11775E-03
   3  Normalizat    1.0258        .31795        .79179E-01    .33358E-04
   4  Prefactor     1.0704        .87148E-01    .38838E-01   -.48819E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.2635
  Index1     = 1.14917
  Normalizat = 1.0258
  Prefactor  = 1.07043
 **********
 **   18 **HESSE 
 **********

 FCN=   8061.134     FROM HESSE     STATUS=OK            31 CALLS      270 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.263        2.8322        .67327E-04   -1.5067    
   2  Index1        1.1492        .29689        .60486E-02   -.87910    
   3  Normalizat    1.0258        .25387        .35048E-03   -.92171    
   4  Prefactor     1.0704        .14317        .19543E-03   -.90417    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98196e-11
Minuit parameter uncertainties:
  1  2.83228
  2  0.297325
  3  0.254175
  4  0.14322
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/765176': 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) = 8061.13365535
delta logL = 1.4362150071

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  1.026e+01  2.832e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  1.149e+00  2.973e-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.070e+00  1.432e-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.026e+00  2.542e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 54.98
Ra Dec: 187.798 -14.201
Photon Index (Free Index): 1.15 +/- 0.30
Photon Flux (Free Index): 1.87e-07 +/- 6.31e-08
Energy Flux (Free Index): 9.20e-05 +/- 2.30e-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/765176/cmap_HighResolution_443577601_443836801_4FGL_J1231.1-1412_daily_bin788.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.19e-07', energy_flux2='9.20e-05', photon_flux_error='3.27e-08', dlogl='1.44e+00', energy_flux='1.02e-04', photon_flux2='1.87e-07', job_status='DONE', time_completed='2021-09-05 22:10:33.466472', photon_index_error2='0.30', photon_index2='1.15', ts='52.22', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='2.30e-05', EG='1.09', time_epoch_completed='1630905033.47', return_code='0', job_id='765176', GAL2='1.07', EG2='1.03', return_code2='0', energy_flux_error='2.80e-05', photon_flux_error2='6.31e-08', ts2='54.98', photon_index='0.63' WHERE bin_id='788' AND source_name='4FGL J1231.1-1412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:10:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 765176: <4FGL_J1231.1-1412_daily_bin788> in cluster <slac> Done

Job <4FGL_J1231.1-1412_daily_bin788> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 21:56:09 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:56:45 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:56:45 2021
Terminated at Sun Sep  5 22:10:34 2021
Results reported at Sun Sep  5 22:10:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.1-1412_daily_bin788 187.798 -14.2014 443577601 443836801 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 :                                   682.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            865 sec.

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

