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


Performing analysis on: 4FGL_J1231.1-1412_daily_bin447
RA = 187.798, Dec = -14.2014
tmin = 355190401, tmax = 355449601
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='763334', job_status='RUN', time_executed='2021-09-05 21:51:50.637945', time_epoch_executed='1630903910.64' WHERE source_name='4FGL J1231.1-1412' and cadence='daily' and bin_id='447'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/763334

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/763334/ft1_4FGL_J1231.1-1412_daily_bin447.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/763334/ft2_4FGL_J1231.1-1412_daily_bin447.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/763334/ft1_4FGL_J1231.1-1412_daily_bin447.fits outfile=/scratch/kocevski/763334/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin447.fits ra=187.798 dec=-14.2014 rad=12.0 tmin=355190401.0 tmax=355449601.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.35
user 3.15
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/763334/ft2_4FGL_J1231.1-1412_daily_bin447.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/763334/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin447.fits evtable="EVENTS" outfile="/scratch/kocevski/763334/ft1_filtered_4FGL_J1231.1-1412_daily_bin447.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/763334/ft1_filtered_4FGL_J1231.1-1412_daily_bin447.fits" evtable="EVENTS" scfile=/scratch/kocevski/763334/ft2_4FGL_J1231.1-1412_daily_bin447.fits sctable="SC_DATA" outfile=/scratch/kocevski/763334/ltcube_355190401_355449601_4FGL_J1231.1-1412_daily_bin447.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/763334/ft2_4FGL_J1231.1-1412_daily_bin447.fits
.....................!
real 15.16
user 14.78
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/763334/ft1_filtered_4FGL_J1231.1-1412_daily_bin447.fits evtable="EVENTS" scfile=/scratch/kocevski/763334/ft2_4FGL_J1231.1-1412_daily_bin447.fits sctable="SC_DATA" expcube=/scratch/kocevski/763334/ltcube_355190401_355449601_4FGL_J1231.1-1412_daily_bin447.fits outfile=/scratch/kocevski/763334/expmap_355190401_355449601_4FGL_J1231.1-1412_daily_bin447.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/763334/ltcube_355190401_355449601_4FGL_J1231.1-1412_daily_bin447.fits
.....................!
real 191.71
user 186.19
sys 4.84

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/763334/ft1_filtered_4FGL_J1231.1-1412_daily_bin447.fits scfile=/scratch/kocevski/763334/ft2_4FGL_J1231.1-1412_daily_bin447.fits outfile=/scratch/kocevski/763334/cmap_355190401_355449601_4FGL_J1231.1-1412_daily_bin447.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/763334/ft1_filtered_4FGL_J1231.1-1412_daily_bin447.fits scfile=/scratch/kocevski/763334/ft2_4FGL_J1231.1-1412_daily_bin447.fits outfile=/scratch/kocevski/763334/cmap_HighResolution_355190401_355449601_4FGL_J1231.1-1412_daily_bin447.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/763334/ft1_filtered_4FGL_J1231.1-1412_daily_bin447.fits evtable="EVENTS" scfile=/scratch/kocevski/763334/ft2_4FGL_J1231.1-1412_daily_bin447.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/763334/Model_4FGL_J1231.1-1412_daily_bin447.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/763334/ft1_filtered_4FGL_J1231.1-1412_daily_bin447.fits.....................!
real 55.27
user 53.98
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7192       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.559       1.0000         .10000E-03   10000.    
     4 'norm      '    6.4425       1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.271       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11234E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    53.549       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.9375       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.7987       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.5870       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.225       1.0000         .10000E-03   10000.    
    15 'Prefactor '    54.388       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .44206       1.0000         .10000E-03   10000.    
    18 'norm      '    25.529       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.9845       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.6840       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .86606       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=   6201.035     FROM MIGRAD    STATUS=CONVERGED    501 CALLS     2198 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7196        2.6814       -.34707E-06   -.26697E-03
   2  Prefactor     .10000E-03    6.3932       -.64342E-07** at limit **
   3  Prefactor     10.560        12.487        .44377E-05    .63288E-03
   4  norm          6.4427        5.2687        .37888E-05    .16333E-02
   5  Prefactor     20.272        27.472        .12250E-06    .58481E-05
   6  Prefactor     .10000E-03    31.869       -.25061E-05** at limit **
   7  Prefactor     53.554        39.467        .29894E-05    .12002E-04
   8  Prefactor     1.8448        261.60       -.41612E-03    .10044E-03
   9  Prefactor     4.7973        11.934        .49708E-05    .28228E-03
  10  Prefactor     .10000E-03    13.180        .49612E-06** at limit **
  11  Prefactor     .10000E-03    2.6558       -.40266E-07** at limit **
  12  Prefactor     8.5870        3.0471       -.42154E-07    .10496E-02
  13  Prefactor     .10000E-03    4.8380        .26089E-07** at limit **
  14  Prefactor     20.222        18.806       -.95561E-06   -.67424E-05
  15  Prefactor     54.384        51.022       -.42624E-05   -.73405E-06
  16  Prefactor     .10000E-03    93.286        .24452E-04** at limit **
  17  norm          .44204        .24548        .10667E-08   -.26779E-03
  18  norm          25.527        13.139       -.65745E-06    .21851E-05
  19  norm          .10000E-03    4.0995       -.19538E-06** at limit **
  20  Prefactor     4.9834        4.8334       -.63024E-07    .81395E-04
  21  Prefactor     .10000E-03    3.3592       -.20553E-07** at limit **
  22  Normalizat    1.6842        .28319       -.18852E-05    .57937E-03
  23  Prefactor     .86599        .15069        .65725E-05    .43621E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.71956
  Prefactor  = 0.0001
  Prefactor  = 10.5599
  norm       = 6.4427
  Prefactor  = 20.2722
  Prefactor  = 0.0001
  Prefactor  = 53.5538
  Prefactor  = 1.84479
  Prefactor  = 4.79731
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.587
  Prefactor  = 0.0001
  Prefactor  = 20.222
  Prefactor  = 54.3844
  Prefactor  = 0.0001
  norm       = 0.442044
  norm       = 25.5265
  norm       = 0.0001
  Prefactor  = 4.98343
  Prefactor  = 0.0001
  Normalizat = 1.68419
  Prefactor  = 0.86599
 **********
 **   18 **HESSE 
 **********

 FCN=   6201.035     FROM HESSE     STATUS=OK           368 CALLS     2566 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7196        2.6560        .15636E-03   -1.5446    
   2  Prefactor     .10000E-03    6.3984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.560        12.498        .12330E-03   -1.5058    
   4  norm          6.4427        5.2757        .15260E-03   -1.5200    
   5  Prefactor     20.272        27.469        .88961E-04   -1.4807    
   6  Prefactor     .10000E-03    32.683        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     53.554        39.469        .54811E-04   -1.4243    
   8  Prefactor     1.8448        269.32        .29830E-02   -1.5436    
   9  Prefactor     4.7973        11.928        .18365E-03   -1.5270    
  10  Prefactor     .10000E-03    13.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.6605        .12529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.5870        3.0476        .39625E-03   -1.5122    
  13  Prefactor     .10000E-03    4.8421        .16916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     20.222        19.042        .89061E-04   -1.4808    
  15  Prefactor     54.384        51.154        .54389E-04   -1.4232    
  16  Prefactor     .10000E-03    93.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .44204        .24520        .27236E-04   -1.5575    
  18  norm          25.527        13.145        .79284E-04   -1.4697    
  19  norm          .10000E-03    4.1361        .15563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.9834        4.8360        .16584E-03   -1.5261    
  21  Prefactor     .10000E-03    3.3606        .14096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.6842        .33884        .32390E-03   -.72726    
  23  Prefactor     .86599        .17926        .23550E-03   -.97340    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35719e-09
Minuit parameter uncertainties:
  1  2.65613
  2  1.04533e-05
  3  12.5008
  4  5.27613
  5  27.4858
  6  0.000161013
  7  39.4879
  8  44.7857
  9  11.9342
  10  0.000114702
  11  6.61565e-06
  12  3.04763
  13  6.41061e-06
  14  19.048
  15  51.1951
  16  0.00027184
  17  0.245204
  18  13.1461
  19  2.87067e-05
  20  4.83637
  21  2.87289e-06
  22  0.339309
  23  0.179381
Done.

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

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  8.587e+00  3.048e+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.660e-01  1.794e-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.684e+00  3.393e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 31.92
Ra Dec: 187.798 -14.201
Photon Index (Fixed Index): 0.63 +/- 0.00
Photon Flux (Fixed Index): 9.28e-08 +/- 3.29e-08
Energy Flux (Fixed Index): 7.96e-05 +/- 2.83e-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) = 6200.45859456
delta logL = 0.576055553549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6200.41814112
delta logL = 0.61650899291

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7229       1.0000         .10000E-03   10000.    
     2 'Index1    '    .87742E-01   1.0000          .0000       10.000    
     3 'Normalizat'    1.7073       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86276       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=   6200.418     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      216 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7206        2.7553        .36074E-02    .47103E-03
   2  Index1        .86024E-01    .30860        .50000        .62857E-04
   3  Normalizat    1.7070        .27182        .72826E-01   -.15492E-04
   4  Prefactor     .86289        .14809        .44529E-01    .98160E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.72062
  Index1     = 0.0860243
  Normalizat = 1.70701
  Prefactor  = 0.862892
 **********
 **   18 **HESSE 
 **********

 FCN=   6200.418     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7206        3.2284        .75689E-04   -1.5152    
   2  Index1        .86024E-01    .66791        .25678E-01   -1.3850    
   3  Normalizat    1.7070        .31799        .32219E-03   -.72116    
   4  Prefactor     .86289        .17462        .23590E-03   -.97450    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61844e-08
Minuit parameter uncertainties:
  1  3.22846
  2  0.487121
  3  0.318375
  4  0.174731
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/763334': 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) = 6200.41813353
delta logL = 0.616516583062

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  7.721e+00  3.228e+00  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  8.602e-02  4.871e-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.629e-01  1.747e-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.707e+00  3.184e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 33.15
Ra Dec: 187.798 -14.201
Photon Index (Free Index): 0.09 +/- 0.49
Photon Flux (Free Index): 6.47e-08 +/- 3.01e-08
Energy Flux (Free Index): 1.01e-04 +/- 4.18e-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/763334/cmap_HighResolution_355190401_355449601_4FGL_J1231.1-1412_daily_bin447.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.28e-08', energy_flux2='1.01e-04', photon_flux_error='3.29e-08', dlogl='6.17e-01', energy_flux='7.96e-05', photon_flux2='6.47e-08', job_status='DONE', time_completed='2021-09-05 22:01:53.246253', photon_index_error2='0.49', photon_index2='0.09', ts='31.92', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='4.18e-05', EG='1.68', time_epoch_completed='1630904513.25', return_code='0', job_id='763334', GAL2='0.86', EG2='1.71', return_code2='0', energy_flux_error='2.83e-05', photon_flux_error2='3.01e-08', ts2='33.15', photon_index='0.63' WHERE bin_id='447' AND source_name='4FGL J1231.1-1412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:01:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0136>
Subject: Job 763334: <4FGL_J1231.1-1412_daily_bin447> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.1-1412_daily_bin447 187.798 -14.2014 355190401 355449601 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 :                                   598.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   619 sec.
    Turnaround time :                            685 sec.

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

