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


Performing analysis on: 4FGL_J1231.1-1412_daily_bin1302
RA = 187.798, Dec = -14.2014
tmin = 576806401, tmax = 577065601
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='768330', job_status='RUN', time_executed='2021-09-05 22:08:05.931637', time_epoch_executed='1630904885.93' WHERE source_name='4FGL J1231.1-1412' and cadence='daily' and bin_id='1302'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/768330

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/768330/ft1_4FGL_J1231.1-1412_daily_bin1302.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/768330/ft2_4FGL_J1231.1-1412_daily_bin1302.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/768330/ft1_4FGL_J1231.1-1412_daily_bin1302.fits outfile=/scratch/kocevski/768330/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin1302.fits ra=187.798 dec=-14.2014 rad=12.0 tmin=576806401.0 tmax=577065601.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.08
user 2.86
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/768330/ft1_filtered_4FGL_J1231.1-1412_daily_bin1302.fits" evtable="EVENTS" scfile=/scratch/kocevski/768330/ft2_4FGL_J1231.1-1412_daily_bin1302.fits sctable="SC_DATA" outfile=/scratch/kocevski/768330/ltcube_576806401_577065601_4FGL_J1231.1-1412_daily_bin1302.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/768330/ft2_4FGL_J1231.1-1412_daily_bin1302.fits
.....................!
real 17.55
user 17.13
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/768330/ft1_filtered_4FGL_J1231.1-1412_daily_bin1302.fits evtable="EVENTS" scfile=/scratch/kocevski/768330/ft2_4FGL_J1231.1-1412_daily_bin1302.fits sctable="SC_DATA" expcube=/scratch/kocevski/768330/ltcube_576806401_577065601_4FGL_J1231.1-1412_daily_bin1302.fits outfile=/scratch/kocevski/768330/expmap_576806401_577065601_4FGL_J1231.1-1412_daily_bin1302.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/768330/ltcube_576806401_577065601_4FGL_J1231.1-1412_daily_bin1302.fits
.....................!
real 191.03
user 186.21
sys 4.22

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/768330/ft1_filtered_4FGL_J1231.1-1412_daily_bin1302.fits scfile=/scratch/kocevski/768330/ft2_4FGL_J1231.1-1412_daily_bin1302.fits outfile=/scratch/kocevski/768330/cmap_576806401_577065601_4FGL_J1231.1-1412_daily_bin1302.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.89
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/768330/ft1_filtered_4FGL_J1231.1-1412_daily_bin1302.fits scfile=/scratch/kocevski/768330/ft2_4FGL_J1231.1-1412_daily_bin1302.fits outfile=/scratch/kocevski/768330/cmap_HighResolution_576806401_577065601_4FGL_J1231.1-1412_daily_bin1302.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.77
user 0.42
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/768330/ft1_filtered_4FGL_J1231.1-1412_daily_bin1302.fits', '/scratch/kocevski/768330/ft2_4FGL_J1231.1-1412_daily_bin1302.fits', expMap='/scratch/kocevski/768330/expmap_576806401_577065601_4FGL_J1231.1-1412_daily_bin1302.fits', expCube='/scratch/kocevski/768330/ltcube_576806401_577065601_4FGL_J1231.1-1412_daily_bin1302.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/768330/Model_4FGL_J1231.1-1412_daily_bin1302.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/768330/ft1_filtered_4FGL_J1231.1-1412_daily_bin1302.fits
Spacecraft file(s): /scratch/kocevski/768330/ft2_4FGL_J1231.1-1412_daily_bin1302.fits
Exposure map: /scratch/kocevski/768330/expmap_576806401_577065601_4FGL_J1231.1-1412_daily_bin1302.fits
Exposure cube: /scratch/kocevski/768330/ltcube_576806401_577065601_4FGL_J1231.1-1412_daily_bin1302.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/768330/Model_4FGL_J1231.1-1412_daily_bin1302.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 342.356044664

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 341.358416959

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.2443       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .32098       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.0692       1.0000         .10000E-03   10000.    
     4 'norm      '    .66147E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.960       1.0000         .10000E-03   10000.    
     6 'Prefactor '    49.976       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .21806       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.3865       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .86031E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.2154       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10648E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11012E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .92304       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .33040       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .47892E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.8029       1.0000         .10000E-03   10000.    
    17 'norm      '    .94763       1.0000         .10000E-03   10000.    
    18 'norm      '    4.0833       1.0000         .10000E-03   10000.    
    19 'norm      '    4.7776       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.1691       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.5088       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .12143       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .78542       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   341.3477     FROM MIGRAD    STATUS=CONVERGED    246 CALLS      625 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1725        8.5550        .37257E-02   -.27622E-02
   2  Prefactor     .10005E-03    89.770        .10517E-01** at limit **
   3  Prefactor     5.2645        321.84        .49968E-02    .55944E-02
   4  norm          .10012E-03    67.326        .93486E-02** at limit **
   5  Prefactor     22.221        124.44        .25064E-02    .61377E-02
   6  Prefactor     48.926        56.823        .14182E-02    .37269E-02
   7  Prefactor     .10000E-03    85.377        .10060E-01** at limit **
   8  Prefactor     .68068E-03    575.95        .66284E-02** at limit **
   9  Prefactor     .10047E-03    255.49        .94444E-02** at limit **
  10  Prefactor     .48090E-03    867.16        .10244E-01** at limit **
  11  Prefactor     .10000E-03    30.540        .90712E-02** at limit **
  12  Prefactor     .10000E-03    18.910        .10349E-01** at limit **
  13  Prefactor     .10168E-03    638.32        .12891E-01** at limit **
  14  Prefactor     .10000E-03    88.442        .10558E-01** at limit **
  15  Prefactor     .10000E-03    120.44        .92598E-02** at limit **
  16  Prefactor     8.8029        1.0016         .0000         .0000    
  17  norm          .94844        1.2639       -.19750E-06    .29052E-03
  18  norm          4.0833        1.0077         .0000         .0000    
  19  norm          4.7776        1.0056         .0000         .0000    
  20  Prefactor     1.1691        1.1478         .0000         .0000    
  21  Prefactor     .78980E-01    .24454        .22252E-03    .30922E-02
  22  Normalizat    .12670        .35705        .94596E-03    .56103E-04
  23  Prefactor     .78072        1.1312       -.25653E-03    .26406E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.17251
  Prefactor  = 0.000100046
  Prefactor  = 5.26448
  norm       = 0.000100122
  Prefactor  = 22.2207
  Prefactor  = 48.9265
  Prefactor  = 0.000100002
  Prefactor  = 0.000680683
  Prefactor  = 0.000100475
  Prefactor  = 0.000480904
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000101679
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 8.80289
  norm       = 0.948443
  norm       = 4.08329
  norm       = 4.77765
  Prefactor  = 1.1691
  Prefactor  = 0.0789804
  Normalizat = 0.126703
  Prefactor  = 0.780724
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   341.3477     FROM HESSE     STATUS=FAILED        41 CALLS      666 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1725        8.5550        .37257E-02   -1.5172    
   2  Prefactor     .10005E-03    89.770        .10517E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.2645        321.84        .49968E-02   -1.5249    
   4  norm          .10012E-03    67.326        .93486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     22.221        124.44        .25064E-02   -1.4765    
   6  Prefactor     48.926        56.823        .14182E-02   -1.4308    
   7  Prefactor     .10000E-03    85.377        .10060E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .68068E-03    575.95        .66284E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10047E-03    255.49        .94444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .48090E-03    867.16        .10244E-01   -1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    30.540        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    18.910        .10349E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10168E-03    638.32        .12891E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    88.442        .10558E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    120.44        .92598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     499.18        490.35         .0000       -1.5114    
  17  norm          .94844        1.2639       -.19750E-06   -1.5513    
  18  norm          4.0833        1.0077         .0000       -1.5304    
  19  norm          4.7776        1.0056         .0000       -1.5271    
  20  Prefactor     1.1691        1.1478         .0000       -1.5492    
  21  Prefactor     .78980E-01    .24454        .22252E-03   -1.5652    
  22  Normalizat    .12670        .35705        .94596E-03   -1.3542    
  23  Prefactor     .78072        1.1312       -.25653E-03   -1.0044    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.88764e-09
Minuit parameter uncertainties:
  1  8.55644
  2  0.00407172
  3  82.7939
  4  0.00573469
  5  105.506
  6  56.8856
  7  0.000805149
  8  1.16803
  9  0.0221183
  10  1.16674
  11  3.19517e-06
  12  1.57673e-05
  13  0.0662019
  14  0.000763518
  15  0.00065418
  16  1.00162
  17  1.2639
  18  1.0077
  19  1.00558
  20  1.14786
  21  0.244543
  22  0.363986
  23  1.16777
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 341.347684009

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  1.000e-04  1.577e-05  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.807e-01  1.168e+00  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.267e-01  3.640e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 187.798 -14.201
Photon Flux Upper Limit: 1.22e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/768330/likelihoodResults_576806401_577065601_4FGL_J1231.1-1412_daily_bin1302.txt

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) = 341.347898336
delta logL = -0.000214327252081

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 341.347684009
delta logL = 3.03941760649e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index1    '    .62571       1.0000          .0000       10.000    
     3 'Normalizat'    .12674       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78070       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   341.3477     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      251 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.557        .78569E-03** at limit **
   2  Index1        .43128        6.9709        .16561       -.35224E-08
   3  Normalizat    .12670        1.6206        .68529E-02    .24157E-04
   4  Prefactor     .78072        .54638        .17217E-03   -.46914E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index1     = 0.431278
  Normalizat = 0.126703
  Prefactor  = 0.780717
 **********
 **   18 **HESSE 
 **********

 FCN=   341.3477     FROM HESSE     STATUS=OK            25 CALLS      276 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.154        .15714E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index1        .43128        5.0991        .66246E-02   -1.1524    
   3  Normalizat    .12670        1.5274        .13706E-02   -1.3542    
   4  Prefactor     .78072        .52966        .34435E-04   -1.0044    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49712e-12
Minuit parameter uncertainties:
  1  1.63608e-05
  2  754.546
  3  0.873306
  4  0.533164
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/768330': 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) = 341.347683975
delta logL = 3.40592691828e-08

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  1.000e-04  1.636e-05  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  4.313e-01  7.545e+02  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.807e-01  5.332e-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.267e-01  8.733e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 187.798 -14.201

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/768330/cmap_HighResolution_576806401_577065601_4FGL_J1231.1-1412_daily_bin1302.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-03', job_status='DONE', photon_flux_upper_limit='1.22e-06', time_completed='2021-09-05 22:15:56.572190', job_id='768330', GAL2='0.78', fit_tolerance='1e-08', EG2='0.13', EG='0.13', time_epoch_completed='1630905356.57', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.78', dlogl='3.41e-08', ts2='-0.00', photon_index_error='0.00', photon_index='0.63' WHERE bin_id='1302' AND source_name='4FGL J1231.1-1412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 22:15:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0172>
Subject: Job 768330: <4FGL_J1231.1-1412_daily_bin1302> in cluster <slac> Done

Job <4FGL_J1231.1-1412_daily_bin1302> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 22:05:36 2021
Job was executed on host(s) <bullet0172>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 22:06:05 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 22:06:05 2021
Terminated at Sun Sep  5 22:15:57 2021
Results reported at Sun Sep  5 22:15:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.1-1412_daily_bin1302 187.798 -14.2014 576806401 577065601 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 :                                   334.42 sec.
    Max Memory :                                 1189 MB
    Average Memory :                             349.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   591 sec.
    Turnaround time :                            621 sec.

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

