/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 26 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 = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1331.2-1325_daily_bin1346
RA = 202.819, Dec = -13.4282
tmin = 588211201, tmax = 588470401
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='733215', job_status='RUN', time_executed='2021-09-08 01:23:27.601213', time_epoch_executed='1631089407.6' WHERE source_name='4FGL J1331.2-1325' and cadence='daily' and bin_id='1346'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/733215

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/733215/ft1_4FGL_J1331.2-1325_daily_bin1346.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/733215/ft2_4FGL_J1331.2-1325_daily_bin1346.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/733215/ft1_4FGL_J1331.2-1325_daily_bin1346.fits outfile=/scratch/kocevski/733215/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1346.fits ra=202.819 dec=-13.4282 rad=12.0 tmin=588211201.0 tmax=588470401.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 4.95
user 3.52
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/733215/ft1_filtered_4FGL_J1331.2-1325_daily_bin1346.fits" evtable="EVENTS" scfile=/scratch/kocevski/733215/ft2_4FGL_J1331.2-1325_daily_bin1346.fits sctable="SC_DATA" outfile=/scratch/kocevski/733215/ltcube_588211201_588470401_4FGL_J1331.2-1325_daily_bin1346.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/733215/ft2_4FGL_J1331.2-1325_daily_bin1346.fits
.....................!
real 14.58
user 13.92
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/733215/ft1_filtered_4FGL_J1331.2-1325_daily_bin1346.fits evtable="EVENTS" scfile=/scratch/kocevski/733215/ft2_4FGL_J1331.2-1325_daily_bin1346.fits sctable="SC_DATA" expcube=/scratch/kocevski/733215/ltcube_588211201_588470401_4FGL_J1331.2-1325_daily_bin1346.fits outfile=/scratch/kocevski/733215/expmap_588211201_588470401_4FGL_J1331.2-1325_daily_bin1346.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/733215/ltcube_588211201_588470401_4FGL_J1331.2-1325_daily_bin1346.fits
.....................!
real 193.42
user 185.62
sys 5.31

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/733215/ft1_filtered_4FGL_J1331.2-1325_daily_bin1346.fits scfile=/scratch/kocevski/733215/ft2_4FGL_J1331.2-1325_daily_bin1346.fits outfile=/scratch/kocevski/733215/cmap_588211201_588470401_4FGL_J1331.2-1325_daily_bin1346.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.58
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/733215/ft1_filtered_4FGL_J1331.2-1325_daily_bin1346.fits scfile=/scratch/kocevski/733215/ft2_4FGL_J1331.2-1325_daily_bin1346.fits outfile=/scratch/kocevski/733215/cmap_HighResolution_588211201_588470401_4FGL_J1331.2-1325_daily_bin1346.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5744       1.0000         .10000E-03   10000.    
     2 'norm      '    13.918       1.0000         .10000E-03   10000.    
     3 'norm      '    .11894E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.5861       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    8.5551       1.0000         .10000E-03   10000.    
     7 'norm      '    1.7386       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10409E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13696E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .11028E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .86731       1.0000         .10000E-03   10000.    
    13 'norm      '    11.166       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    49.840       1.0000         .10000E-03   10000.    
    16 'norm      '    .10136E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10138E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.4802       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    11.074       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5243       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .75226       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=   5680.599     FROM MIGRAD    STATUS=CONVERGED    551 CALLS     2740 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5745        .41495       -.53147E-07   -.99854E-04
   2  norm          13.919        11.900        .17907E-06   -.27097E-04
   3  norm          .10000E-03    4.5736        .10769E-05** at limit **
   4  Prefactor     7.4846        237.35        .31319E-04   -.12729E-04
   5  norm          .10000E-03    1.1720       -.90184E-08** at limit **
   6  norm          8.5562        13.389       -.19821E-05   -.84412E-04
   7  norm          1.7363        17.627        .93226E-05    .17907E-04
   8  Prefactor     .10000E-03    4.8025        .64587E-07** at limit **
   9  Prefactor     .10000E-03    16.184        .10544E-05** at limit **
  10  Prefactor     .10000E-03    56.478        .18317E-05** at limit **
  11  norm          .10000E-03    1.0198        .79345E-07** at limit **
  12  norm          .87854        8.6894       -.67792E-06   -.19633E-03
  13  norm          11.153        13.896        .59126E-06    .10725E-03
  14  Prefactor     .10000E-03    6.1016       -.81407E-07** at limit **
  15  Prefactor     49.823        34.510        .16297E-05    .21921E-04
  16  norm          .10000E-03    55.997       -.21859E-06** at limit **
  17  Prefactor     .10000E-03    34.507       -.16716E-05** at limit **
  18  norm          .10000E-03    1.7751       -.24980E-08** at limit **
  19  Prefactor     7.4792        7.4239        .76298E-07    .12101E-04
  20  Prefactor     .10000E-03    21.500       -.12403E-06** at limit **
  21  norm          .10000E-03    8.3753       -.17332E-08** at limit **
  22  norm          11.075        4.3456        .26085E-06   -.18418E-04
  23  Normalizat    1.5244        .26747       -.26022E-07   -.16287E-05
  24  Prefactor     .75228        .13316       -.63332E-06   -.29926E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.57446
  norm       = 13.9189
  norm       = 0.000100003
  Prefactor  = 7.48465
  norm       = 0.0001
  norm       = 8.55621
  norm       = 1.73628
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.878538
  norm       = 11.1534
  Prefactor  = 0.0001
  Prefactor  = 49.8232
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.47922
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 11.0746
  Normalizat = 1.52442
  Prefactor  = 0.752278
 **********
 **   18 **HESSE 
 **********

 FCN=   5680.599     FROM HESSE     STATUS=OK           401 CALLS     3141 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5745        .41594        .23649E-04   -1.5457    
   2  norm          13.919        11.904        .10736E-03   -1.4962    
   3  norm          .10000E-03    12.299        .30825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.4846        233.62        .14560E-03   -1.5161    
   5  norm          .10000E-03    1.1852        .79662E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          8.5562        13.395        .13705E-03   -1.5123    
   7  norm          1.7363        17.780        .15911E-02   -1.5444    
   8  Prefactor     .10000E-03    4.8125        .16129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    56.699        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.2846        .14683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .87854        6.9377        .30266E-03   -1.5521    
  13  norm          11.153        12.506        .11989E-03   -1.5040    
  14  Prefactor     .10000E-03    6.1094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     49.823        34.534        .28402E-03   -1.4295    
  16  norm          .10000E-03    56.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    36.012        .41507E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.7788        .98060E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.4792        7.4058        .14664E-03   -1.5161    
  20  Prefactor     .10000E-03    21.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    8.4354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          11.075        4.3471        .94570E-04   -1.5042    
  23  Normalizat    1.5244        .31279        .31071E-03   -.77094    
  24  Prefactor     .75228        .15609        .21663E-03   -1.0151    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.53417e-10
Minuit parameter uncertainties:
  1  0.415936
  2  11.906
  3  0.00036245
  4  83.9918
  5  1.29524e-07
  6  13.4
  7  11.1162
  8  3.26599e-06
  9  1.13394e-06
  10  0.000411726
  11  3.03943e-05
  12  4.93812
  13  12.509
  14  1.71496e-06
  15  34.5475
  16  6.85342e-06
  17  7.4899e-05
  18  1.48015e-07
  19  7.40675
  20  6.77689e-08
  21  1.11531e-05
  22  4.34726
  23  0.313194
  24  0.15618
Done.

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

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  4.117e-04  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:  7.523e-01  1.562e-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.524e+00  3.132e-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.55e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.22e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/733215/likelihoodResults_588211201_588470401_4FGL_J1331.2-1325_daily_bin1346.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) = 5680.5989897
delta logL = -8.40443026391e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5680.59890531
delta logL = 3.45382431988e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11550E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7959       1.0000          .0000       10.000    
     3 'Normalizat'    1.5244       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75228       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=   5680.599     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      250 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10009E-03    .19234        .90712E-01** at limit **
   2  Index         2.8970        6.6476        .50000       -.73495E-05
   3  Normalizat    1.5244        .93637E-03    .70231E-01    .11698E-04
   4  Prefactor     .75228        .48063E-03    .43093E-01    .17824E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100089
  Index      = 2.89696
  Normalizat = 1.52442
  Prefactor  = 0.752278
 **********
 **   18 **HESSE 
 **********

 FCN=   5680.599     FROM HESSE     STATUS=NOT POSDEF    43 CALLS      293 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10009E-03    .34510        .68440E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8970        7.2095        .50000       -.43411    
   3  Normalizat    1.5244        .10116E-02    .31071E-03   -.77094    
   4  Prefactor     .75228        .51948E-03    .21663E-03   -1.0151    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.0423e-10
Minuit parameter uncertainties:
  1  0.000350116
  2  14.4663
  3  0.00101156
  4  0.000519483
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/733215': 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) = 5680.59890505
delta logL = 5.99429768045e-07

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  1.001e-04  3.501e-04  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  2.897e+00  1.447e+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:  7.523e-01  5.195e-04  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.524e+00  1.012e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/733215/cmap_HighResolution_588211201_588470401_4FGL_J1331.2-1325_daily_bin1346.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.22e-02', job_status='DONE', photon_flux_upper_limit='1.55e-07', time_completed='2021-09-08 01:34:14.452304', job_id='733215', GAL2='0.75', fit_tolerance='1e-08', EG2='1.52', EG='1.52', time_epoch_completed='1631090054.45', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='5.99e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1346' AND source_name='4FGL J1331.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:34:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 733215: <4FGL_J1331.2-1325_daily_bin1346> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1331.2-1325_daily_bin1346 202.819 -13.4282 588211201 588470401 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 :                                   636.51 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             322.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   704 sec.
    Turnaround time :                            796 sec.

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

