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


Performing analysis on: 4FGL_J1331.2-1325_daily_bin1559
RA = 202.819, Dec = -13.4282
tmin = 643420801, tmax = 643680001
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='734523', job_status='RUN', time_executed='2021-09-08 01:27:04.767196', time_epoch_executed='1631089624.77' WHERE source_name='4FGL J1331.2-1325' and cadence='daily' and bin_id='1559'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/734523

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/734523/ft1_4FGL_J1331.2-1325_daily_bin1559.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/734523/ft2_4FGL_J1331.2-1325_daily_bin1559.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/734523/ft1_4FGL_J1331.2-1325_daily_bin1559.fits outfile=/scratch/kocevski/734523/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1559.fits ra=202.819 dec=-13.4282 rad=12.0 tmin=643420801.0 tmax=643680001.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.51
user 3.24
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/734523/ft2_4FGL_J1331.2-1325_daily_bin1559.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/734523/ft2_4FGL_J1331.2-1325_daily_bin1559.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/734523/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1559.fits evtable="EVENTS" outfile="/scratch/kocevski/734523/ft1_filtered_4FGL_J1331.2-1325_daily_bin1559.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.52
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/734523/ft1_filtered_4FGL_J1331.2-1325_daily_bin1559.fits" evtable="EVENTS" scfile=/scratch/kocevski/734523/ft2_4FGL_J1331.2-1325_daily_bin1559.fits sctable="SC_DATA" outfile=/scratch/kocevski/734523/ltcube_643420801_643680001_4FGL_J1331.2-1325_daily_bin1559.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/734523/ft2_4FGL_J1331.2-1325_daily_bin1559.fits
.....................!
real 15.77
user 15.30
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/734523/ft1_filtered_4FGL_J1331.2-1325_daily_bin1559.fits evtable="EVENTS" scfile=/scratch/kocevski/734523/ft2_4FGL_J1331.2-1325_daily_bin1559.fits sctable="SC_DATA" expcube=/scratch/kocevski/734523/ltcube_643420801_643680001_4FGL_J1331.2-1325_daily_bin1559.fits outfile=/scratch/kocevski/734523/expmap_643420801_643680001_4FGL_J1331.2-1325_daily_bin1559.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/734523/ltcube_643420801_643680001_4FGL_J1331.2-1325_daily_bin1559.fits
.....................!
real 191.60
user 185.87
sys 4.58

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 171 point sources and 0 extended sources

Setting source of interest to:
4FGL J1331.2-1325 @ 202.819 -13.4282

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/734523/ft1_filtered_4FGL_J1331.2-1325_daily_bin1559.fits scfile=/scratch/kocevski/734523/ft2_4FGL_J1331.2-1325_daily_bin1559.fits outfile=/scratch/kocevski/734523/cmap_643420801_643680001_4FGL_J1331.2-1325_daily_bin1559.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=202.819 yref=-13.4282 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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/734523/ft1_filtered_4FGL_J1331.2-1325_daily_bin1559.fits scfile=/scratch/kocevski/734523/ft2_4FGL_J1331.2-1325_daily_bin1559.fits outfile=/scratch/kocevski/734523/cmap_HighResolution_643420801_643680001_4FGL_J1331.2-1325_daily_bin1559.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=202.819 yref=-13.4282 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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/734523/ft1_filtered_4FGL_J1331.2-1325_daily_bin1559.fits evtable="EVENTS" scfile=/scratch/kocevski/734523/ft2_4FGL_J1331.2-1325_daily_bin1559.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/734523/Model_4FGL_J1331.2-1325_daily_bin1559.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/734523/ft1_filtered_4FGL_J1331.2-1325_daily_bin1559.fits.....................!
real 55.23
user 53.70
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/734523/ft1_filtered_4FGL_J1331.2-1325_daily_bin1559.fits', '/scratch/kocevski/734523/ft2_4FGL_J1331.2-1325_daily_bin1559.fits', expMap='/scratch/kocevski/734523/expmap_643420801_643680001_4FGL_J1331.2-1325_daily_bin1559.fits', expCube='/scratch/kocevski/734523/ltcube_643420801_643680001_4FGL_J1331.2-1325_daily_bin1559.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/734523/Model_4FGL_J1331.2-1325_daily_bin1559.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1331.2-1325'

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  5.475e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  2.600e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  1.117e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/734523/ft1_filtered_4FGL_J1331.2-1325_daily_bin1559.fits
Spacecraft file(s): /scratch/kocevski/734523/ft2_4FGL_J1331.2-1325_daily_bin1559.fits
Exposure map: /scratch/kocevski/734523/expmap_643420801_643680001_4FGL_J1331.2-1325_daily_bin1559.fits
Exposure cube: /scratch/kocevski/734523/ltcube_643420801_643680001_4FGL_J1331.2-1325_daily_bin1559.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/734523/Model_4FGL_J1331.2-1325_daily_bin1559.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) = 6675.83018518

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6693       1.0000         .10000E-03   10000.    
     2 'norm      '    .10157E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.9665       1.0000         .10000E-03   10000.    
     4 'Prefactor '    71.830       1.0000         .10000E-03   10000.    
     5 'norm      '    .20543       1.0000         .10000E-03   10000.    
     6 'norm      '    50.842       1.0000         .10000E-03   10000.    
     7 'norm      '    .10634E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10744E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .26662E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.1241       1.0000         .10000E-03   10000.    
    12 'norm      '    3.4764       1.0000         .10000E-03   10000.    
    13 'norm      '    27.576       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.2307       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.480       1.0000         .10000E-03   10000.    
    16 'norm      '    20.820       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.2139       1.0000         .10000E-03   10000.    
    18 'norm      '    19.839       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10505E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.0998       1.0000         .10000E-03   10000.    
    22 'norm      '    8.2964       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5323       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .81211       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5700E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6675.823     FROM MIGRAD    STATUS=CONVERGED    551 CALLS     2758 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6696        .57597        .78085E-08   -.53852E-04
   2  norm          .10000E-03    9.5108        .11471E-06** at limit **
   3  norm          3.9643        5.6038       -.15699E-07    .31459E-04
   4  Prefactor     71.873        75.784        .20508E-06   -.81240E-04
   5  norm          .20554        1.5999        .16351E-06   -.11929E-03
   6  norm          50.848        20.072        .12891E-08   -.18605E-04
   7  norm          .10001E-03    12.110        .10888E-05** at limit **
   8  Prefactor     .10000E-03    4.2569        .98515E-08** at limit **
   9  Prefactor     .10000E-03    12.190        .13799E-08** at limit **
  10  Prefactor     .10092E-03    34.407       -.64711E-05** at limit **
  11  norm          5.1246        2.2462        .32573E-08    .12079E-03
  12  norm          3.4743        4.8260        .13430E-05    .15446E-02
  13  norm          27.579        11.142        .83479E-07    .10470E-02
  14  Prefactor     2.2359        18.323        .24535E-06    .29662E-04
  15  Prefactor     14.498        27.218        .10558E-06   -.41795E-04
  16  norm          20.842        36.344        .14844E-06   -.64892E-04
  17  Prefactor     2.2095        12.832       -.12912E-06    .40727E-04
  18  norm          19.845        8.0283        .32692E-07    .16470E-03
  19  Prefactor     .10000E-03    2.7638       -.29444E-07** at limit **
  20  Prefactor     .10000E-03    36.584        .13472E-07** at limit **
  21  norm          2.1044        7.8600        .13479E-05    .43017E-03
  22  norm          8.3006        4.4433       -.28460E-07    .51602E-05
  23  Normalizat    1.5315        .29091       -.24481E-06    .26166E-03
  24  Prefactor     .81224        .14142        .14460E-06    .31406E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.66956
  norm       = 0.0001
  norm       = 3.96432
  Prefactor  = 71.8731
  norm       = 0.205537
  norm       = 50.8478
  norm       = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100917
  norm       = 5.12464
  norm       = 3.47433
  norm       = 27.5794
  Prefactor  = 2.23591
  Prefactor  = 14.4984
  norm       = 20.8423
  Prefactor  = 2.20951
  norm       = 19.8447
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.10442
  norm       = 8.30056
  Normalizat = 1.53149
  Prefactor  = 0.812244
 **********
 **   18 **HESSE 
 **********

 FCN=   6675.823     FROM HESSE     STATUS=OK           407 CALLS     3165 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6696        .57798        .23438E-04   -1.5325    
   2  norm          .10000E-03    9.7010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.9643        5.5906        .20253E-03   -1.5310    
   4  Prefactor     71.873        75.375        .23684E-03   -1.4010    
   5  norm          .20554        6.7495        .19689E-02   -1.5617    
   6  norm          50.848        20.066        .56244E-04   -1.4281    
   7  norm          .10001E-03    51.341        .52169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.2687        .16463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.532        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10092E-03    127.77        .60169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.1246        2.2577        .76242E-04   -1.5255    
  12  norm          3.4743        5.0153        .18832E-03   -1.5335    
  13  norm          27.579        11.081        .76290E-04   -1.4657    
  14  Prefactor     2.2359        17.642        .27526E-03   -1.5409    
  15  Prefactor     14.498        27.178        .10526E-03   -1.4946    
  16  norm          20.842        36.230        .87780E-04   -1.4795    
  17  Prefactor     2.2095        12.351        .27642E-03   -1.5411    
  18  norm          19.845        8.0249        .89923E-04   -1.4817    
  19  Prefactor     .10000E-03    2.7997        .13269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    36.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.1044        8.1108        .14240E-02   -1.5418    
  22  norm          8.3006        4.4635        .11930E-03   -1.5132    
  23  Normalizat    1.5315        .34299        .35367E-03   -.76897    
  24  Prefactor     .81224        .16793        .11838E-02   -.99279    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.16128e-08
Minuit parameter uncertainties:
  1  0.577978
  2  1.47946e-05
  3  5.59129
  4  75.4757
  5  2.35537
  6  20.0683
  7  0.00158241
  8  1.20828e-06
  9  1.32802e-05
  10  0.021692
  11  2.2577
  12  5.01586
  13  11.0818
  14  12.5659
  15  27.2011
  16  36.2686
  17  10.4509
  18  8.02535
  19  1.65335e-06
  20  2.05432e-05
  21  8.11499
  22  4.46368
  23  0.343519
  24  0.168032
Done.

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

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  1.009e-04  2.169e-02  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  2.600e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  1.117e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
567    Prefactor:  8.122e-01  1.680e-01  0.000e+00  1.000e+01 ( 1.000e+00)
568        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
569        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
566   Normalization:  1.531e+00  3.435e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 202.819 -13.428
Photon Flux Upper Limit: 1.50e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.18e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/734523/likelihoodResults_643420801_643680001_4FGL_J1331.2-1325_daily_bin1559.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) = 6675.82284475
delta logL = -3.67277407349e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6675.82284475
delta logL = -3.67228094547e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96349E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5996       1.0000          .0000       10.000    
     3 'Normalizat'    1.5315       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81225       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5700E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6675.823     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      232 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .24485        .10588    ** at limit **
   2  Index         2.6320        8.6254        .50000       -.14019E-05
   3  Normalizat    1.5315        .96100E-03    .79910E-01   -.67567E-04
   4  Prefactor     .81224        .48957E-03    .43876E-01   -.64041E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.63195
  Normalizat = 1.53149
  Prefactor  = 0.812244
 **********
 **   18 **HESSE 
 **********

 FCN=   6675.823     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      269 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    77.165        .58426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6320        8.5968        .50000       -.49338    
   3  Normalizat    1.5315        .54696E-02    .35368E-03   -.76897    
   4  Prefactor     .81224        .27891E-02    .23675E-03   -.99279    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.04304e-09
Minuit parameter uncertainties:
  1  8.84112e-05
  2  100.42
  3  0.0054696
  4  0.00278914
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/734523': 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) = 6675.82280801
delta logL = 1.74723027158e-08

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  8.841e-05  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  2.632e+00  1.004e+02  0.000e+00  1.000e+01 (-1.000e+00)
289        Scale:  1.117e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
567    Prefactor:  8.122e-01  2.789e-03  0.000e+00  1.000e+01 ( 1.000e+00)
568        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
569        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
566   Normalization:  1.531e+00  5.470e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 202.819 -13.428

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/734523/cmap_HighResolution_643420801_643680001_4FGL_J1331.2-1325_daily_bin1559.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.18e-02', job_status='DONE', photon_flux_upper_limit='1.50e-07', time_completed='2021-09-08 01:38:54.427525', job_id='734523', GAL2='0.81', fit_tolerance='1e-08', EG2='1.53', EG='1.53', time_epoch_completed='1631090334.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='1.75e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1559' AND source_name='4FGL J1331.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:38:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 734523: <4FGL_J1331.2-1325_daily_bin1559> in cluster <slac> Done

Job <4FGL_J1331.2-1325_daily_bin1559> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  8 01:25:31 2021
Job was executed on host(s) <bullet0196>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:25:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 01:25:39 2021
Terminated at Wed Sep  8 01:38:55 2021
Results reported at Wed Sep  8 01:38:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1331.2-1325_daily_bin1559 202.819 -13.4282 643420801 643680001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1331.2-1325 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   705.18 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             301.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            804 sec.

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

