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


Performing analysis on: 4FGL_J1331.2-1325_daily_bin1382
RA = 202.819, Dec = -13.4282
tmin = 597542401, tmax = 597801601
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='733257', job_status='RUN', time_executed='2021-09-08 01:24:10.714195', time_epoch_executed='1631089450.71' WHERE source_name='4FGL J1331.2-1325' and cadence='daily' and bin_id='1382'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/733257

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/733257/ft1_4FGL_J1331.2-1325_daily_bin1382.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/733257/ft2_4FGL_J1331.2-1325_daily_bin1382.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/733257/ft1_4FGL_J1331.2-1325_daily_bin1382.fits outfile=/scratch/kocevski/733257/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1382.fits ra=202.819 dec=-13.4282 rad=12.0 tmin=597542401.0 tmax=597801601.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.59
user 3.33
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/733257/ft1_filtered_4FGL_J1331.2-1325_daily_bin1382.fits" evtable="EVENTS" scfile=/scratch/kocevski/733257/ft2_4FGL_J1331.2-1325_daily_bin1382.fits sctable="SC_DATA" outfile=/scratch/kocevski/733257/ltcube_597542401_597801601_4FGL_J1331.2-1325_daily_bin1382.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/733257/ft2_4FGL_J1331.2-1325_daily_bin1382.fits
.....................!
real 17.07
user 16.50
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/733257/ft1_filtered_4FGL_J1331.2-1325_daily_bin1382.fits evtable="EVENTS" scfile=/scratch/kocevski/733257/ft2_4FGL_J1331.2-1325_daily_bin1382.fits sctable="SC_DATA" expcube=/scratch/kocevski/733257/ltcube_597542401_597801601_4FGL_J1331.2-1325_daily_bin1382.fits outfile=/scratch/kocevski/733257/expmap_597542401_597801601_4FGL_J1331.2-1325_daily_bin1382.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/733257/ltcube_597542401_597801601_4FGL_J1331.2-1325_daily_bin1382.fits
.....................!
real 192.05
user 186.14
sys 4.69

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/733257/ft1_filtered_4FGL_J1331.2-1325_daily_bin1382.fits scfile=/scratch/kocevski/733257/ft2_4FGL_J1331.2-1325_daily_bin1382.fits outfile=/scratch/kocevski/733257/cmap_597542401_597801601_4FGL_J1331.2-1325_daily_bin1382.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/733257/ft1_filtered_4FGL_J1331.2-1325_daily_bin1382.fits scfile=/scratch/kocevski/733257/ft2_4FGL_J1331.2-1325_daily_bin1382.fits outfile=/scratch/kocevski/733257/cmap_HighResolution_597542401_597801601_4FGL_J1331.2-1325_daily_bin1382.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.64
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/733257/ft1_filtered_4FGL_J1331.2-1325_daily_bin1382.fits evtable="EVENTS" scfile=/scratch/kocevski/733257/ft2_4FGL_J1331.2-1325_daily_bin1382.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/733257/Model_4FGL_J1331.2-1325_daily_bin1382.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/733257/ft1_filtered_4FGL_J1331.2-1325_daily_bin1382.fits.....................!
real 59.81
user 58.07
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .65789       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10469E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .54503E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.014       1.0000         .10000E-03   10000.    
    11 'norm      '    .52205       1.0000         .10000E-03   10000.    
    12 'norm      '    2.6388       1.0000         .10000E-03   10000.    
    13 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    45.692       1.0000         .10000E-03   10000.    
    16 'norm      '    10.072       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.262       1.0000         .10000E-03   10000.    
    18 'norm      '    4.3367       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.7655       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11930E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.8252       1.0000         .10000E-03   10000.    
    22 'norm      '    2.2242       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1834       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1299       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=   7151.955     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     2809 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .65796        .28364        .13817E-07    .38076E-03
   2  norm          .10000E-03    2.1702       -.67185E-08** at limit **
   3  norm          .10000E-03    3.0033       -.65596E-08** at limit **
   4  Prefactor     .10000E-03    55.352        .63013E-07** at limit **
   5  norm          .10000E-03    1.1133       -.20687E-07** at limit **
   6  norm          .10041E-03    5.9052       -.12250E-05** at limit **
   7  norm          .10000E-03    4.3401       -.19434E-07** at limit **
   8  Prefactor     .10000E-03    2.7704        .13594E-07** at limit **
   9  Prefactor     .10000E-03    4.2072       -.32898E-07** at limit **
  10  Prefactor     11.011        30.230       -.11879E-05   -.26787E-04
  11  norm          .52110        1.0215        .11470E-05    .68888E-03
  12  norm          2.6388        5.2473        .61845E-06   -.78982E-04
  13  norm          .10000E-03    5.0166       -.13372E-06** at limit **
  14  Prefactor     .10000E-03    14.851       -.66132E-06** at limit **
  15  Prefactor     45.698        31.203        .12224E-06   -.71038E-05
  16  norm          10.188        92.789       -.63214E-06    .27014E-04
  17  Prefactor     10.265        11.487        .18763E-06   -.43727E-04
  18  norm          4.3360        6.1057        .45236E-06   -.40060E-04
  19  Prefactor     1.7653        4.7796        .97199E-06   -.11716E-03
  20  Prefactor     .10000E-03    246.89        .31575E-06** at limit **
  21  norm          4.8251        7.4191       -.13543E-06   -.86836E-04
  22  norm          2.2241        1.7871       -.19615E-08   -.15314E-04
  23  Normalizat    1.1836        .24861       -.77376E-06   -.49392E-04
  24  Prefactor     1.1298        .13073       -.23447E-06   -.39706E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.657956
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100412
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.0114
  norm       = 0.521103
  norm       = 2.63875
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.6977
  norm       = 10.1878
  Prefactor  = 10.2652
  norm       = 4.33602
  Prefactor  = 1.76526
  Prefactor  = 0.0001
  norm       = 4.82508
  norm       = 2.22414
  Normalizat = 1.18359
  Prefactor  = 1.12982
 **********
 **   18 **HESSE 
 **********

 FCN=   7151.955     FROM HESSE     STATUS=OK           405 CALLS     3214 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .65796        .28178        .28294E-04   -1.5546    
   2  norm          .10000E-03    2.1726        .12167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.8778        .28538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    55.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.1295        .87113E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10041E-03    56.712        .38018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.3459        .17207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.7731        .13745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.2351        .16935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.011        29.466        .12072E-03   -1.5044    
  11  norm          .52110        1.0202        .12585E-02   -1.5564    
  12  norm          2.6388        5.0624        .18265E-03   -1.5383    
  13  norm          .10000E-03    5.0367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     45.698        31.200        .59314E-04   -1.4355    
  16  norm          10.188        91.585        .12626E-03   -1.5069    
  17  Prefactor     10.265        11.467        .12508E-03   -1.5067    
  18  norm          4.3360        6.0921        .19343E-03   -1.5291    
  19  Prefactor     1.7653        4.6657        .27296E-03   -1.5442    
  20  Prefactor     .10000E-03    250.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.8251        7.3174        .18314E-03   -1.5269    
  22  norm          2.2241        1.7871        .98624E-04   -1.5410    
  23  Normalizat    1.1836        .28617        .35174E-03   -.87111    
  24  Prefactor     1.1298        .15113        .19585E-03   -.88519    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.11454e-09
Minuit parameter uncertainties:
  1  0.28178
  2  1.26312e-06
  3  4.42274e-05
  4  8.56788e-05
  5  1.46698e-06
  6  0.00968245
  7  1.09698e-06
  8  9.64575e-07
  9  1.94995e-08
  10  29.5045
  11  1.02021
  12  5.06324
  13  9.77625e-06
  14  3.01931e-05
  15  31.2107
  16  61.2164
  17  11.4696
  18  6.09292
  19  4.66662
  20  0.000343546
  21  7.31877
  22  1.78711
  23  0.286548
  24  0.151183
Done.

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

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  1.101e+01  2.950e+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:  1.130e+00  1.512e-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.184e+00  2.865e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/733257/likelihoodResults_597542401_597801601_4FGL_J1331.2-1325_daily_bin1382.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) = 7150.95779577
delta logL = 0.997054075924

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7150.20461029
delta logL = 1.75023955063

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 'Index     '    8.6571       1.0000          .0000       10.000    
     3 'Normalizat'    1.0275       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1912       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7152.101     FROM MIGRAD    STATUS=CONVERGED    149 CALLS      503 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    41.327        .18142E-02** at limit **
   2  Index         1.9941        7.8593        .50000        .23441E-04
   3  Normalizat    1.2184        .26751        .34741E-03   -.12664E-04
   4  Prefactor     1.1239        .14704        .19636E-03    .61949E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100016
  Index      = 1.99413
  Normalizat = 1.21839
  Prefactor  = 1.12392
 **********
 **   18 **HESSE 
 **********

 FCN=   7152.101     FROM HESSE     STATUS=OK            29 CALLS      532 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    28.229        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9941        7.3878        .50000       -2.4966    
   3  Normalizat    1.2184        .26774        .13896E-04   -.86036    
   4  Prefactor     1.1239        .14717        .78545E-05   -.88706    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.90211e-10
Minuit parameter uncertainties:
  1  0.00133523
  2  4.02253
  3  0.268041
  4  0.147225
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/733257': 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) = 7152.10120958
delta logL = -0.146359741346

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  1.335e-03  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  1.994e+00  4.023e+00  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:  1.124e+00  1.472e-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.218e+00  2.680e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/733257/cmap_HighResolution_597542401_597801601_4FGL_J1331.2-1325_daily_bin1382.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.41e-02', job_status='DONE', photon_flux_upper_limit='1.80e-07', time_completed='2021-09-08 01:37:10.489367', job_id='733257', GAL2='1.12', fit_tolerance='1e-08', EG2='1.22', EG='1.18', time_epoch_completed='1631090230.49', return_code2='0', ts='0.32', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='-1.46e-01', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1382' AND source_name='4FGL J1331.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:37:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 733257: <4FGL_J1331.2-1325_daily_bin1382> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1331.2-1325_daily_bin1382 202.819 -13.4282 597542401 597801601 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 :                                   765.44 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             320.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            967 sec.

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

