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


Performing analysis on: 4FGL_J1231.1-1412_daily_bin552
RA = 187.798, Dec = -14.2014
tmin = 382406401, tmax = 382665601
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='764827', job_status='RUN', time_executed='2021-09-05 21:58:55.927552', time_epoch_executed='1630904335.93' WHERE source_name='4FGL J1231.1-1412' and cadence='daily' and bin_id='552'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/764827

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/764827/ft1_4FGL_J1231.1-1412_daily_bin552.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/764827/ft2_4FGL_J1231.1-1412_daily_bin552.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/764827/ft1_4FGL_J1231.1-1412_daily_bin552.fits outfile=/scratch/kocevski/764827/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin552.fits ra=187.798 dec=-14.2014 rad=12.0 tmin=382406401.0 tmax=382665601.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 4.83
user 4.55
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/764827/ft2_4FGL_J1231.1-1412_daily_bin552.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/764827/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin552.fits evtable="EVENTS" outfile="/scratch/kocevski/764827/ft1_filtered_4FGL_J1231.1-1412_daily_bin552.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.54
user 0.36
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/764827/ft1_filtered_4FGL_J1231.1-1412_daily_bin552.fits" evtable="EVENTS" scfile=/scratch/kocevski/764827/ft2_4FGL_J1231.1-1412_daily_bin552.fits sctable="SC_DATA" outfile=/scratch/kocevski/764827/ltcube_382406401_382665601_4FGL_J1231.1-1412_daily_bin552.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/764827/ft2_4FGL_J1231.1-1412_daily_bin552.fits
.....................!
real 18.16
user 17.71
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/764827/ft1_filtered_4FGL_J1231.1-1412_daily_bin552.fits evtable="EVENTS" scfile=/scratch/kocevski/764827/ft2_4FGL_J1231.1-1412_daily_bin552.fits sctable="SC_DATA" expcube=/scratch/kocevski/764827/ltcube_382406401_382665601_4FGL_J1231.1-1412_daily_bin552.fits outfile=/scratch/kocevski/764827/expmap_382406401_382665601_4FGL_J1231.1-1412_daily_bin552.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/764827/ltcube_382406401_382665601_4FGL_J1231.1-1412_daily_bin552.fits
.....................!
real 195.04
user 189.29
sys 5.00

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/764827/ft1_filtered_4FGL_J1231.1-1412_daily_bin552.fits scfile=/scratch/kocevski/764827/ft2_4FGL_J1231.1-1412_daily_bin552.fits outfile=/scratch/kocevski/764827/cmap_382406401_382665601_4FGL_J1231.1-1412_daily_bin552.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.68
user 0.41
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/764827/ft1_filtered_4FGL_J1231.1-1412_daily_bin552.fits scfile=/scratch/kocevski/764827/ft2_4FGL_J1231.1-1412_daily_bin552.fits outfile=/scratch/kocevski/764827/cmap_HighResolution_382406401_382665601_4FGL_J1231.1-1412_daily_bin552.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.61
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/764827/ft1_filtered_4FGL_J1231.1-1412_daily_bin552.fits evtable="EVENTS" scfile=/scratch/kocevski/764827/ft2_4FGL_J1231.1-1412_daily_bin552.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/764827/Model_4FGL_J1231.1-1412_daily_bin552.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/764827/ft1_filtered_4FGL_J1231.1-1412_daily_bin552.fits.....................!
real 54.88
user 53.16
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .49150E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.7522       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.552       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.0818       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.4128       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .70015E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.8242       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    151.75       1.0000         .10000E-03   10000.    
    17 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.9862       1.0000         .10000E-03   10000.    
    19 'norm      '    5.4937       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.8150       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1479       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1253       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=   6024.306     FROM MIGRAD    STATUS=CONVERGED    524 CALLS     2618 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.4590        .35100E-06** at limit **
   2  Prefactor     .10000E-03    31.971       -.66572E-05** at limit **
   3  Prefactor     .10000E-03    11.425        .63527E-05** at limit **
   4  norm          3.7538        4.3218        .53658E-06   -.26852E-02
   5  Prefactor     .10000E-03    22.529       -.50004E-05** at limit **
   6  Prefactor     .10000E-03    16.181       -.27360E-06** at limit **
   7  Prefactor     11.550        26.222        .13042E-05    .11117E-04
   8  Prefactor     .10000E-03    24.368        .85063E-05** at limit **
   9  Prefactor     .10000E-03    45.439        .32936E-05** at limit **
  10  Prefactor     2.0947        487.52        .37635E-04   -.98629E-06
  11  Prefactor     .10000E-03    2.1965       -.29993E-07** at limit **
  12  Prefactor     5.4129        2.3220        .28024E-07   -.95922E-05
  13  Prefactor     .10010E-03    10.139       -.42470E-06** at limit **
  14  Prefactor     2.8303        14.155        .89314E-06   -.27586E-04
  15  Prefactor     .10000E-03    11.358       -.64091E-05** at limit **
  16  Prefactor     151.77        113.56        .92759E-05    .67585E-04
  17  norm          .10000E-03    .21096        .11016E-07** at limit **
  18  norm          2.9881        7.3439        .14492E-05   -.12662E-02
  19  norm          5.4952        7.7035       -.13607E-05   -.73390E-04
  20  Prefactor     .10000E-03    3.7409        .22311E-07** at limit **
  21  Prefactor     4.8172        15.890        .64038E-06   -.14452E-04
  22  Normalizat    1.1478        .26554       -.10227E-05   -.89223E-04
  23  Prefactor     1.1252        .14825       -.99481E-06   -.11237E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.75379
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.5501
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.09475
  Prefactor  = 0.0001
  Prefactor  = 5.41291
  Prefactor  = 0.000100103
  Prefactor  = 2.83033
  Prefactor  = 0.0001
  Prefactor  = 151.766
  norm       = 0.0001
  norm       = 2.98805
  norm       = 5.49517
  Prefactor  = 0.0001
  Prefactor  = 4.81718
  Normalizat = 1.14779
  Prefactor  = 1.12522
 **********
 **   18 **HESSE 
 **********

 FCN=   6024.306     FROM HESSE     STATUS=OK           376 CALLS     2994 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.620        .23377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    32.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.7538        5.5733        .10422E-02   -1.5320    
   5  Prefactor     .10000E-03    22.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.550        26.194        .11786E-03   -1.5028    
   8  Prefactor     .10000E-03    24.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    45.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.0947        479.57        .28620E-03   -1.5418    
  11  Prefactor     .10000E-03    2.2020        .11231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.4129        2.3221        .75206E-04   -1.5243    
  13  Prefactor     .10010E-03    12.078        .80530E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.8303        14.272        .24201E-03   -1.5371    
  15  Prefactor     .10000E-03    11.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     151.77        113.73        .16360E-03   -1.3238    
  17  norm          .10000E-03    .21588        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.9881        9.2851        .11746E-02   -1.5362    
  19  norm          5.4952        7.6684        .17142E-03   -1.5239    
  20  Prefactor     .10000E-03    3.7553        .14634E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.8172        15.888        .18334E-03   -1.5269    
  22  Normalizat    1.1478        .30891        .34749E-03   -.88232    
  23  Prefactor     1.1252        .17429        .19908E-03   -.88665    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08005e-08
Minuit parameter uncertainties:
  1  3.46127e-05
  2  0.000116689
  3  0.000112746
  4  5.57403
  5  0.000146957
  6  9.34836e-06
  7  26.2197
  8  0.000203392
  9  0.000506454
  10  63.9135
  11  1.43787e-06
  12  2.32216
  13  0.00223552
  14  12.7161
  15  0.000130934
  16  113.89
  17  4.25528e-07
  18  9.28961
  19  7.66974
  20  2.52142e-06
  21  15.9015
  22  0.309404
  23  0.174383
Done.

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

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  5.413e+00  2.322e+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.125e+00  1.744e-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.148e+00  3.094e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 22.68
Ra Dec: 187.798 -14.201
Photon Index (Fixed Index): 0.63 +/- 0.00
Photon Flux (Fixed Index): 5.85e-08 +/- 2.51e-08
Energy Flux (Fixed Index): 5.02e-05 +/- 2.15e-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) = 6024.3050515
delta logL = 0.00061322799047

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6024.30504686
delta logL = 0.000617868422523

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4129       1.0000         .10000E-03   10000.    
     2 'Index1    '    .61130       1.0000          .0000       10.000    
     3 'Normalizat'    1.1483       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1252       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=   6024.305     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      197 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4120        52.732        .43180E-02   -.40553E-04
   2  Index1        .61131        8.1020        .34325        .39373E-04
   3  Normalizat    1.1483        .42469        .78487E-01    .14050E-04
   4  Prefactor     1.1252        .13474        .36700E-01    .15259E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.41197
  Index1     = 0.611311
  Normalizat = 1.14829
  Prefactor  = 1.1252
 **********
 **   18 **HESSE 
 **********

 FCN=   6024.305     FROM HESSE     STATUS=OK            33 CALLS      230 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4120        2.3194        .75310E-04   -1.5243    
   2  Index1        .61131        .47923        .12444E-01   -1.0711    
   3  Normalizat    1.1483        .29770        .34742E-03   -.88216    
   4  Prefactor     1.1252        .17030        .19908E-03   -.88665    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6366e-12
Minuit parameter uncertainties:
  1  2.31944
  2  0.482484
  3  0.298135
  4  0.17038
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/764827': 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) = 6024.30504678
delta logL = 0.000617949369371

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  5.412e+00  2.319e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  6.113e-01  4.825e-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.125e+00  1.704e-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.148e+00  2.981e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 22.67
Ra Dec: 187.798 -14.201
Photon Index (Free Index): 0.61 +/- 0.48
Photon Flux (Free Index): 5.77e-08 +/- 3.24e-08
Energy Flux (Free Index): 5.05e-05 +/- 2.35e-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/764827/cmap_HighResolution_382406401_382665601_4FGL_J1231.1-1412_daily_bin552.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.85e-08', energy_flux2='5.05e-05', photon_flux_error='2.51e-08', dlogl='6.18e-04', energy_flux='5.02e-05', photon_flux2='5.77e-08', job_status='DONE', time_completed='2021-09-05 22:09:31.430503', photon_index_error2='0.48', photon_index2='0.61', ts='22.68', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='2.35e-05', EG='1.15', time_epoch_completed='1630904971.43', return_code='0', job_id='764827', GAL2='1.13', EG2='1.15', return_code2='0', energy_flux_error='2.15e-05', photon_flux_error2='3.24e-08', ts2='22.67', photon_index='0.63' WHERE bin_id='552' AND source_name='4FGL J1231.1-1412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:09:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0016>
Subject: Job 764827: <4FGL_J1231.1-1412_daily_bin552> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.1-1412_daily_bin552 187.798 -14.2014 382406401 382665601 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 :                                   632.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            834 sec.

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

