/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 84 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 = 7383
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1331.2-1325_daily_bin1297
RA = 202.819, Dec = -13.4282
tmin = 575510401, tmax = 575769601
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='733161', job_status='RUN', time_executed='2021-09-08 01:24:19.296390', time_epoch_executed='1631089459.3' WHERE source_name='4FGL J1331.2-1325' and cadence='daily' and bin_id='1297'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/733161

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/733161/ft1_4FGL_J1331.2-1325_daily_bin1297.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/733161/ft2_4FGL_J1331.2-1325_daily_bin1297.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/733161/ft1_4FGL_J1331.2-1325_daily_bin1297.fits outfile=/scratch/kocevski/733161/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1297.fits ra=202.819 dec=-13.4282 rad=12.0 tmin=575510401.0 tmax=575769601.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 5.35
user 4.96
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/733161/ft1_filtered_4FGL_J1331.2-1325_daily_bin1297.fits" evtable="EVENTS" scfile=/scratch/kocevski/733161/ft2_4FGL_J1331.2-1325_daily_bin1297.fits sctable="SC_DATA" outfile=/scratch/kocevski/733161/ltcube_575510401_575769601_4FGL_J1331.2-1325_daily_bin1297.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/733161/ft2_4FGL_J1331.2-1325_daily_bin1297.fits
.....................!
real 14.77
user 14.28
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/733161/ft1_filtered_4FGL_J1331.2-1325_daily_bin1297.fits evtable="EVENTS" scfile=/scratch/kocevski/733161/ft2_4FGL_J1331.2-1325_daily_bin1297.fits sctable="SC_DATA" expcube=/scratch/kocevski/733161/ltcube_575510401_575769601_4FGL_J1331.2-1325_daily_bin1297.fits outfile=/scratch/kocevski/733161/expmap_575510401_575769601_4FGL_J1331.2-1325_daily_bin1297.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/733161/ltcube_575510401_575769601_4FGL_J1331.2-1325_daily_bin1297.fits
.....................!
real 193.15
user 186.60
sys 5.62

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/733161/ft1_filtered_4FGL_J1331.2-1325_daily_bin1297.fits scfile=/scratch/kocevski/733161/ft2_4FGL_J1331.2-1325_daily_bin1297.fits outfile=/scratch/kocevski/733161/cmap_575510401_575769601_4FGL_J1331.2-1325_daily_bin1297.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/733161/ft1_filtered_4FGL_J1331.2-1325_daily_bin1297.fits scfile=/scratch/kocevski/733161/ft2_4FGL_J1331.2-1325_daily_bin1297.fits outfile=/scratch/kocevski/733161/cmap_HighResolution_575510401_575769601_4FGL_J1331.2-1325_daily_bin1297.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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/733161/ft1_filtered_4FGL_J1331.2-1325_daily_bin1297.fits evtable="EVENTS" scfile=/scratch/kocevski/733161/ft2_4FGL_J1331.2-1325_daily_bin1297.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/733161/Model_4FGL_J1331.2-1325_daily_bin1297.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/733161/ft1_filtered_4FGL_J1331.2-1325_daily_bin1297.fits.....................!
real 53.22
user 51.40
sys 1.37

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/733161/ft1_filtered_4FGL_J1331.2-1325_daily_bin1297.fits', '/scratch/kocevski/733161/ft2_4FGL_J1331.2-1325_daily_bin1297.fits', expMap='/scratch/kocevski/733161/expmap_575510401_575769601_4FGL_J1331.2-1325_daily_bin1297.fits', expCube='/scratch/kocevski/733161/ltcube_575510401_575769601_4FGL_J1331.2-1325_daily_bin1297.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/733161/Model_4FGL_J1331.2-1325_daily_bin1297.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/733161/ft1_filtered_4FGL_J1331.2-1325_daily_bin1297.fits
Spacecraft file(s): /scratch/kocevski/733161/ft2_4FGL_J1331.2-1325_daily_bin1297.fits
Exposure map: /scratch/kocevski/733161/expmap_575510401_575769601_4FGL_J1331.2-1325_daily_bin1297.fits
Exposure cube: /scratch/kocevski/733161/ltcube_575510401_575769601_4FGL_J1331.2-1325_daily_bin1297.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/733161/Model_4FGL_J1331.2-1325_daily_bin1297.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) = 5836.9545629

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7612       1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.8123       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.963       1.0000         .10000E-03   10000.    
    11 'norm      '    .12619E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.8153       1.0000         .10000E-03   10000.    
    13 'norm      '    13.632       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14042E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.124       1.0000         .10000E-03   10000.    
    18 'norm      '    .14476E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.3444       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5916       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .87591       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=   5836.850     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2755 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7613        .59855       -.11735E-07    .22883E-03
   2  norm          .10000E-03    4.7416        .35667E-06** at limit **
   3  norm          .10000E-03    3.7964       -.28616E-06** at limit **
   4  Prefactor     .10000E-03    44.677       -.71227E-05** at limit **
   5  norm          .10000E-03    1.6628        .16967E-06** at limit **
   6  norm          5.8117        13.526       -.41538E-06   -.52046E-04
   7  norm          .10000E-03    5.6813        .90581E-06** at limit **
   8  Prefactor     .10000E-03    11.962        .42897E-05** at limit **
   9  Prefactor     .10000E-03    5.1576       -.12834E-05** at limit **
  10  Prefactor     29.970        39.819        .81223E-05   -.50897E-04
  11  norm          .10002E-03    .74379       -.24716E-06** at limit **
  12  norm          6.8147        9.0490       -.28898E-05   -.26273E-03
  13  norm          13.632        10.515       -.60260E-06   -.66550E-03
  14  Prefactor     .10000E-03    20.136       -.49627E-05** at limit **
  15  Prefactor     .10000E-03    17.387       -.35968E-05** at limit **
  16  norm          .10000E-03    25.141        .67621E-05** at limit **
  17  Prefactor     14.106        16.940       -.25217E-05   -.13105E-04
  18  norm          .10001E-03    5.3163        .10110E-05** at limit **
  19  Prefactor     .10000E-03    2.2946       -.10185E-06** at limit **
  20  Prefactor     .10000E-03    41.942        .56774E-05** at limit **
  21  norm          .10000E-03    2.6940       -.47934E-07** at limit **
  22  norm          4.3446        3.2815       -.56563E-07   -.14911E-03
  23  Normalizat    1.5915        .28707        .27322E-06   -.11231E-04
  24  Prefactor     .87598        .14203        .11832E-06   -.82806E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.76133
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.81174
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.9699
  norm       = 0.000100024
  norm       = 6.81467
  norm       = 13.6317
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.1056
  norm       = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.34465
  Normalizat = 1.5915
  Prefactor  = 0.875978
 **********
 **   18 **HESSE 
 **********

 FCN=   5836.850     FROM HESSE     STATUS=OK           397 CALLS     3152 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7613        .60084        .22623E-04   -1.5320    
   2  norm          .10000E-03    4.7543        .16245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.8059        .14538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    44.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.6832        .96175E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.8117        13.547        .16659E-03   -1.5226    
   7  norm          .10000E-03    5.6864        .17784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.1820        .16945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     29.970        40.518        .73194E-04   -1.4613    
  11  norm          .10002E-03    10.550        .12649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.8147        9.1221        .15369E-03   -1.5186    
  13  norm          13.632        10.628        .54243E-03   -1.4969    
  14  Prefactor     .10000E-03    20.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    25.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     14.106        16.837        .10658E-03   -1.4957    
  18  norm          .10001E-03    14.982        .33396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.3007        .11299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    41.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.7003        .12246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.3446        3.2853        .11583E-03   -1.5291    
  23  Normalizat    1.5915        .33426        .34055E-03   -.75239    
  24  Prefactor     .87598        .16465        .22415E-03   -.96986    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86222e-09
Minuit parameter uncertainties:
  1  0.600839
  2  1.90301e-06
  3  6.59645e-07
  4  7.3746e-06
  5  5.37368e-07
  6  13.5541
  7  1.04222e-07
  8  4.64234e-05
  9  5.23245e-06
  10  40.5552
  11  0.00100197
  12  9.12393
  13  10.6294
  14  0.000109985
  15  1.72011e-05
  16  4.38563e-07
  17  16.8424
  18  0.000586558
  19  1.22511e-06
  20  1.78661e-05
  21  6.10592e-07
  22  3.28545
  23  0.334727
  24  0.164739
Done.

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

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  2.997e+01  4.056e+01  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.760e-01  1.647e-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.592e+00  3.347e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.84
Ra Dec: 202.819 -13.428
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 9.94e-08 +/- 1.34e-07
Energy Flux (Fixed Index): 2.61e-05 +/- 3.53e-05

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

Saving results to:
/scratch/kocevski/733161/likelihoodResults_575510401_575769601_4FGL_J1331.2-1325_daily_bin1297.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) = 5836.46223881
delta logL = 0.388009857579

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5836.46084824
delta logL = 0.389400426026

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    47.633       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0105       1.0000          .0000       10.000    
     3 'Normalizat'    1.6305       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86423       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=   5836.461     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      270 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     47.787        1654.5        .14525E-02   -.41053E-04
   2  Index         2.0130        5.1132        .16685       -.32359E-04
   3  Normalizat    1.6302        .33088        .76259E-01   -.63438E-04
   4  Prefactor     .86423        .10663        .44547E-01   -.87417E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 47.7866
  Index      = 2.01298
  Normalizat = 1.63018
  Prefactor  = 0.864233
 **********
 **   18 **HESSE 
 **********

 FCN=   5836.461     FROM HESSE     STATUS=OK            31 CALLS      301 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     47.787        41.588        .58099E-04   -1.4324    
   2  Index         2.0130        .61703        .93898E-02   -.64026    
   3  Normalizat    1.6302        .32278        .33744E-03   -.74183    
   4  Prefactor     .86423        .16308        .22550E-03   -.97402    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.80112e-11
Minuit parameter uncertainties:
  1  41.6134
  2  0.619492
  3  0.323197
  4  0.163176
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/733161': 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) = 5836.46083366
delta logL = 0.389415009193

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  4.779e+01  4.161e+01  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  2.013e+00  6.195e-01  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.642e-01  1.632e-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.630e+00  3.232e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.66
Ra Dec: 202.819 -13.428
Photon Index (Free Index): 2.01 +/- 0.62
Photon Flux (Free Index): 6.07e-08 +/- 7.46e-08
Energy Flux (Free Index): 4.06e-05 +/- 4.37e-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/733161/cmap_HighResolution_575510401_575769601_4FGL_J1331.2-1325_daily_bin1297.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.19e-02', comment='SUCCESS', photon_flux='9.94e-08', energy_flux2='4.06e-05', photon_flux_error='1.34e-07', dlogl='3.89e-01', energy_flux='2.61e-05', photon_flux2='6.07e-08', job_status='DONE', time_completed='2021-09-08 01:35:36.547307', photon_index_error2='0.62', photon_index2='2.01', ts='1.84', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='2.80e-07', energy_flux_error2='4.37e-05', EG='1.59', time_epoch_completed='1631090136.55', return_code='0', job_id='733161', GAL2='0.86', EG2='1.63', return_code2='0', energy_flux_error='3.53e-05', photon_flux_error2='7.46e-08', ts2='2.66', photon_index='2.60' WHERE bin_id='1297' AND source_name='4FGL J1331.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:35:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 733161: <4FGL_J1331.2-1325_daily_bin1297> in cluster <slac> Done

Job <4FGL_J1331.2-1325_daily_bin1297> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep  8 01:20:53 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:22:21 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:22:21 2021
Terminated at Wed Sep  8 01:35:37 2021
Results reported at Wed Sep  8 01:35:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1331.2-1325_daily_bin1297 202.819 -13.4282 575510401 575769601 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 :                                   660.38 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             312.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            884 sec.

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

