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


Performing analysis on: 4FGL_J1231.1-1412_daily_bin505
RA = 187.798, Dec = -14.2014
tmin = 370224001, tmax = 370483201
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='763416', job_status='RUN', time_executed='2021-09-05 21:54:07.838118', time_epoch_executed='1630904047.84' WHERE source_name='4FGL J1231.1-1412' and cadence='daily' and bin_id='505'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/763416

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/763416/ft1_4FGL_J1231.1-1412_daily_bin505.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/763416/ft2_4FGL_J1231.1-1412_daily_bin505.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/763416/ft1_4FGL_J1231.1-1412_daily_bin505.fits outfile=/scratch/kocevski/763416/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin505.fits ra=187.798 dec=-14.2014 rad=12.0 tmin=370224001.0 tmax=370483201.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 13.35
user 12.89
sys 0.41

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/763416/ft2_4FGL_J1231.1-1412_daily_bin505.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/763416/ft1_filteredMKT_4FGL_J1231.1-1412_daily_bin505.fits evtable="EVENTS" outfile="/scratch/kocevski/763416/ft1_filtered_4FGL_J1231.1-1412_daily_bin505.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.46
user 0.30
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/763416/ft1_filtered_4FGL_J1231.1-1412_daily_bin505.fits" evtable="EVENTS" scfile=/scratch/kocevski/763416/ft2_4FGL_J1231.1-1412_daily_bin505.fits sctable="SC_DATA" outfile=/scratch/kocevski/763416/ltcube_370224001_370483201_4FGL_J1231.1-1412_daily_bin505.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/763416/ft2_4FGL_J1231.1-1412_daily_bin505.fits
.....................!
real 11.22
user 10.87
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/763416/ft1_filtered_4FGL_J1231.1-1412_daily_bin505.fits evtable="EVENTS" scfile=/scratch/kocevski/763416/ft2_4FGL_J1231.1-1412_daily_bin505.fits sctable="SC_DATA" expcube=/scratch/kocevski/763416/ltcube_370224001_370483201_4FGL_J1231.1-1412_daily_bin505.fits outfile=/scratch/kocevski/763416/expmap_370224001_370483201_4FGL_J1231.1-1412_daily_bin505.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/763416/ltcube_370224001_370483201_4FGL_J1231.1-1412_daily_bin505.fits
.....................!
real 155.72
user 151.74
sys 3.49

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/763416/ft1_filtered_4FGL_J1231.1-1412_daily_bin505.fits scfile=/scratch/kocevski/763416/ft2_4FGL_J1231.1-1412_daily_bin505.fits outfile=/scratch/kocevski/763416/cmap_370224001_370483201_4FGL_J1231.1-1412_daily_bin505.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.50
user 0.34
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/763416/ft1_filtered_4FGL_J1231.1-1412_daily_bin505.fits scfile=/scratch/kocevski/763416/ft2_4FGL_J1231.1-1412_daily_bin505.fits outfile=/scratch/kocevski/763416/cmap_HighResolution_370224001_370483201_4FGL_J1231.1-1412_daily_bin505.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.48
user 0.35
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/763416/ft1_filtered_4FGL_J1231.1-1412_daily_bin505.fits evtable="EVENTS" scfile=/scratch/kocevski/763416/ft2_4FGL_J1231.1-1412_daily_bin505.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/763416/Model_4FGL_J1231.1-1412_daily_bin505.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/763416/ft1_filtered_4FGL_J1231.1-1412_daily_bin505.fits..................!
real 12.65
user 11.58
sys 0.97

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    63.895       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.2026       1.0000         .10000E-03   10000.    
     4 'norm      '    .12395       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .19013       1.0000         .10000E-03   10000.    
     6 'Prefactor '    118.42       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.096       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.7691       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.5732       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.9987       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11101E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .17222E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.3581       1.0000         .10000E-03   10000.    
    14 'Prefactor '    106.60       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .48753E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.8029       1.0000         .10000E-03   10000.    
    17 'norm      '    1.5755       1.0000         .10000E-03   10000.    
    18 'norm      '    3.4775       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.3014       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    23 'Prefactor '    .79447       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=   227.2680     FROM MIGRAD    STATUS=CONVERGED    203 CALLS      569 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.8466        .90712E-02** at limit **
   2  Prefactor     64.664        89.809        .12551E-02    .76412E-02
   3  Prefactor     .23386E-02    1249.5        .44059E-02** at limit **
   4  norm          .10003E-03    147.87        .96248E-02** at limit **
   5  Prefactor     .10000E-03    93.588        .99325E-02** at limit **
   6  Prefactor     120.39        78.256        .92444E-03    .26495E-02
   7  Prefactor     .13306E-01    1304.2        .31527E-02   -.42036E-02
   8  Prefactor     .10696        6756.7        .46059E-02    .40189E-02
   9  Prefactor     .24781E-03    8504.6        .84712E-02** at limit **
  10  Prefactor     1.0582        9734.9        .58601E-02    .28269E-02
  11  Prefactor     .10000E-03    29.327        .90712E-02** at limit **
  12  Prefactor     .10000E-03    18.347        .91089E-02** at limit **
  13  Prefactor     .73997E-02    6270.2        .66723E-02    .15259E-02
  14  Prefactor     107.81        151.87        .97378E-03   -.68709E-02
  15  Prefactor     .10000E-03    102.80        .96185E-02** at limit **
  16  Prefactor     8.8029        1.0016         .0000         .0000    
  17  norm          1.5727        1.0612        .16147E-04   -.16891E-02
  18  norm          .54922E-02    .73469E-01   -.85613E-04   -.10849E-02
  19  norm          4.7776        1.0056         .0000         .0000    
  20  Prefactor     1.1691        1.1478         .0000         .0000    
  21  Prefactor     .13727E-03    .23432        .27295E-03** at limit **
  22  Normalizat    .10000E-01    .25505        .33026E-03** at limit **
  23  Prefactor     .79649        1.1445        .58029E-04   -.14721E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 64.6643
  Prefactor  = 0.00233861
  norm       = 0.000100026
  Prefactor  = 0.000100005
  Prefactor  = 120.388
  Prefactor  = 0.0133055
  Prefactor  = 0.106961
  Prefactor  = 0.00024781
  Prefactor  = 1.05824
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00739966
  Prefactor  = 107.807
  Prefactor  = 0.000100003
  Prefactor  = 8.80289
  norm       = 1.57271
  norm       = 0.00549222
  norm       = 4.77765
  Prefactor  = 1.1691
  Prefactor  = 0.000137271
  Normalizat = 0.01
  Prefactor  = 0.796493
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   227.2680     FROM HESSE     STATUS=FAILED        41 CALLS      610 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     .10000E-03    6.8466        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     64.664        89.809        .12551E-02   -1.4098    
   3  Prefactor     .23386E-02    1249.5        .44059E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10003E-03    147.87        .96248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    93.588        .99325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     120.39        78.256        .92444E-03   -1.3509    
   7  Prefactor     .13306E-01    1304.2        .31527E-02   -1.5731    
   8  Prefactor     .10696        6756.7        .46059E-02   -1.5643    
   9  Prefactor     .24781E-03    8504.6        .84712E-02   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.0582        9734.9        .58601E-02   -1.5502    
  11  Prefactor     .10000E-03    29.327        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    18.347        .91089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .73997E-02    6270.2        .66723E-02   -1.5691    
  14  Prefactor     107.81        151.87        .97378E-03   -1.3628    
  15  Prefactor     .10000E-03    102.80        .96185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     499.18        490.35         .0000       -1.5114    
  17  norm          1.5727        1.0612        .16147E-04   -1.5457    
  18  norm          .54922E-02    .73469E-01   -.85613E-04   -1.5723    
  19  norm          4.7776        1.0056         .0000       -1.5271    
  20  Prefactor     1.1691        1.1478         .0000       -1.5492    
  21  Prefactor     .13727E-03    .23432        .27295E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .10000E-01    .25505        .33026E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .79649        1.1445        .58029E-04   -.99858    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.90672e-09
Minuit parameter uncertainties:
  1  2.16404e-05
  2  89.9979
  3  3.41889
  4  0.00393376
  5  0.00132126
  6  78.3236
  7  8.49208
  8  41.6941
  9  2.41277
  10  277.51
  11  0.000157684
  12  0.000117933
  13  9.04133
  14  152.425
  15  0.00116232
  16  1.00162
  17  1.06125
  18  0.0398078
  19  1.00558
  20  1.14786
  21  0.00591043
  22  3.26168e-06
  23  1.18169
Done.

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

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  1.000e-04  1.179e-04  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.965e-01  1.182e+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.000e-02  3.262e-06  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.09e-06 ph cm-2 s-1
Energy Flux Upper Limit: 9.35e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/763416/likelihoodResults_370224001_370483201_4FGL_J1231.1-1412_daily_bin505.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): 102
logL (Free Index) = 227.268214696
delta logL = -0.000236566268285

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 227.267981345
delta logL = -3.21503554801e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     2 'Index1    '    2.0824       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79642       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=   227.2680     FROM MIGRAD    STATUS=CONVERGED    111 CALLS      302 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    334.17        .43804E-02** at limit **
   2  Index1        .76317        5.1902        .50000        .40967E-07
   3  Normalizat    .10000E-01    .28122E-01    .75283E-02** at limit **
   4  Prefactor     .79647        .68471E-01    .19149E-03   -.55338E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index1     = 0.763172
  Normalizat = 0.01
  Prefactor  = 0.796468
 **********
 **   18 **HESSE 
 **********

 FCN=   227.2680     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      331 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1801.8        .63345E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index1        .76317        6.1430        .50000       -1.0110    
   3  Normalizat    .10000E-01    .19340        .15057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .79647        .17993        .38299E-04   -.99859    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.06971e-09
Minuit parameter uncertainties:
  1  0.000889076
  2  4535.93
  3  3.62675e-05
  4  0.180058
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/763416': 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): 102
logL (Free Index) = 227.267978117
delta logL = 1.27762689317e-08

Extracting fit parameters...

4FGL J1231.1-1412
   Spectrum: PLSuperExpCutoff2
335    Prefactor:  1.000e-04  8.891e-04  1.000e-04  1.000e+04 ( 1.000e-11)
336       Index1:  7.632e-01  4.536e+03  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.965e-01  1.801e-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.000e-02  3.627e-05  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/763416/cmap_HighResolution_370224001_370483201_4FGL_J1231.1-1412_daily_bin505.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.35e-04', job_status='DONE', photon_flux_upper_limit='1.09e-06', time_completed='2021-09-05 21:59:32.490704', job_id='763416', GAL2='0.80', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630904372.49', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.80', dlogl='1.28e-08', ts2='-0.00', photon_index_error='0.00', photon_index='0.63' WHERE bin_id='505' AND source_name='4FGL J1231.1-1412' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 21:59:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 763416: <4FGL_J1231.1-1412_daily_bin505> in cluster <slac> Done

Job <4FGL_J1231.1-1412_daily_bin505> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 21:50:34 2021
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 21:52:11 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:52:11 2021
Terminated at Sun Sep  5 21:59:33 2021
Results reported at Sun Sep  5 21:59:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1231.1-1412_daily_bin505 187.798 -14.2014 370224001 370483201 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 :                                   317.25 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             197.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   444 sec.
    Turnaround time :                            539 sec.

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

