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


Performing analysis on: 4FGL_J1331.2-1325_daily_bin1018
RA = 202.819, Dec = -13.4282
tmin = 503193601, tmax = 503452801
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='731584', job_status='RUN', time_executed='2021-09-08 01:17:18.630055', time_epoch_executed='1631089038.63' WHERE source_name='4FGL J1331.2-1325' and cadence='daily' and bin_id='1018'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/731584

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/731584/ft1_4FGL_J1331.2-1325_daily_bin1018.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/731584/ft2_4FGL_J1331.2-1325_daily_bin1018.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/731584/ft1_4FGL_J1331.2-1325_daily_bin1018.fits outfile=/scratch/kocevski/731584/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1018.fits ra=202.819 dec=-13.4282 rad=12.0 tmin=503193601.0 tmax=503452801.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.21
user 4.83
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/731584/ft1_filtered_4FGL_J1331.2-1325_daily_bin1018.fits" evtable="EVENTS" scfile=/scratch/kocevski/731584/ft2_4FGL_J1331.2-1325_daily_bin1018.fits sctable="SC_DATA" outfile=/scratch/kocevski/731584/ltcube_503193601_503452801_4FGL_J1331.2-1325_daily_bin1018.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/731584/ft2_4FGL_J1331.2-1325_daily_bin1018.fits
.....................!
real 13.96
user 13.51
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/731584/ft1_filtered_4FGL_J1331.2-1325_daily_bin1018.fits evtable="EVENTS" scfile=/scratch/kocevski/731584/ft2_4FGL_J1331.2-1325_daily_bin1018.fits sctable="SC_DATA" expcube=/scratch/kocevski/731584/ltcube_503193601_503452801_4FGL_J1331.2-1325_daily_bin1018.fits outfile=/scratch/kocevski/731584/expmap_503193601_503452801_4FGL_J1331.2-1325_daily_bin1018.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/731584/ltcube_503193601_503452801_4FGL_J1331.2-1325_daily_bin1018.fits
.....................!
real 194.04
user 186.90
sys 4.14

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/731584/ft1_filtered_4FGL_J1331.2-1325_daily_bin1018.fits scfile=/scratch/kocevski/731584/ft2_4FGL_J1331.2-1325_daily_bin1018.fits outfile=/scratch/kocevski/731584/cmap_503193601_503452801_4FGL_J1331.2-1325_daily_bin1018.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/731584/ft1_filtered_4FGL_J1331.2-1325_daily_bin1018.fits scfile=/scratch/kocevski/731584/ft2_4FGL_J1331.2-1325_daily_bin1018.fits outfile=/scratch/kocevski/731584/cmap_HighResolution_503193601_503452801_4FGL_J1331.2-1325_daily_bin1018.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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/731584/ft1_filtered_4FGL_J1331.2-1325_daily_bin1018.fits evtable="EVENTS" scfile=/scratch/kocevski/731584/ft2_4FGL_J1331.2-1325_daily_bin1018.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/731584/Model_4FGL_J1331.2-1325_daily_bin1018.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/731584/ft1_filtered_4FGL_J1331.2-1325_daily_bin1018.fits.....................!
real 68.13
user 66.52
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2853       1.0000         .10000E-03   10000.    
     2 'norm      '    3.9248       1.0000         .10000E-03   10000.    
     3 'norm      '    3.9660       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .22360E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    9.4913       1.0000         .10000E-03   10000.    
     6 'norm      '    69.894       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.3347       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.9586       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.449       1.0000         .10000E-03   10000.    
    11 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10431       1.0000         .10000E-03   10000.    
    13 'norm      '    9.1811       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10367E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.827       1.0000         .10000E-03   10000.    
    16 'norm      '    .10984E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.483       1.0000         .10000E-03   10000.    
    18 'norm      '    .78674       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    45.903       1.0000         .10000E-03   10000.    
    21 'norm      '    5.6730       1.0000         .10000E-03   10000.    
    22 'norm      '    1.0220       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4179       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .82611       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=   8432.063     FROM MIGRAD    STATUS=CONVERGED    998 CALLS     3305 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2854        .36317        .28055E-04   -.12068E-02
   2  norm          3.9243        6.8563        .20364E-03   -.18982E-05
   3  norm          3.9666        4.6286        .20254E-03   -.26606E-04
   4  Prefactor     .10001E-03    137.65        .18142E-02** at limit **
   5  norm          9.4913        2.9344        .42645E-03    .11629E-03
   6  norm          69.881        19.436        .48015E-04   -.41388E-03
   7  norm          .10000E-03    4.0192        .18061E-02** at limit **
   8  Prefactor     6.3289        10.639        .15948E-03   -.12974E-04
   9  Prefactor     9.9550        9.5009        .12698E-03   -.10153E-03
  10  Prefactor     14.628        764.50        .10537E-03    .25247E-03
  11  norm          .10000E-03    1.0097        .13990E-02** at limit **
  12  norm          .69091E-01    7419.1        .22086E-02    .15157E-03
  13  norm          9.1878        14.840        .13227E-03    .12841E-03
  14  Prefactor     .10000E-03    4.9549        .18142E-02** at limit **
  15  Prefactor     10.822        24.364        .12176E-03   -.26143E-05
  16  norm          .10000E-03    89.048        .18142E-02** at limit **
  17  Prefactor     15.484        10.483        .10179E-03   -.14877E-03
  18  norm          .78471        4.4857        .36340E-03   -.67387E-04
  19  Prefactor     .10000E-03    2.3935        .13866E-02** at limit **
  20  Prefactor     45.879        40.746        .59179E-04   -.95592E-04
  21  norm          5.6730        5.7300        .16865E-03   -.30604E-04
  22  norm          1.0217        2.3888        .20828E-03   -.94976E-04
  23  Normalizat    1.4179        .35322        .32608E-03   -.47913E-03
  24  Prefactor     .82613        .15209        .21473E-03   -.39681E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.28536
  norm       = 3.92429
  norm       = 3.96662
  Prefactor  = 0.000100006
  norm       = 9.4913
  norm       = 69.8805
  norm       = 0.0001
  Prefactor  = 6.3289
  Prefactor  = 9.95496
  Prefactor  = 14.6276
  norm       = 0.000100001
  norm       = 0.0690914
  norm       = 9.18777
  Prefactor  = 0.0001
  Prefactor  = 10.822
  norm       = 0.000100001
  Prefactor  = 15.4844
  norm       = 0.784707
  Prefactor  = 0.0001
  Prefactor  = 45.8787
  norm       = 5.673
  norm       = 1.02174
  Normalizat = 1.4179
  Prefactor  = 0.826134
 **********
 **   18 **HESSE 
 **********

 FCN=   8432.063     FROM HESSE     STATUS=OK           375 CALLS     3680 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2854        .36274        .11222E-05   -1.5481    
   2  norm          3.9243        6.8899        .81454E-05   -1.5312    
   3  norm          3.9666        4.6531        .81016E-05   -1.5310    
   4  Prefactor     .10001E-03    139.06        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          9.4913        2.9498        .17058E-04   -1.5092    
   6  norm          69.881        19.345        .96029E-05   -1.4034    
   7  norm          .10000E-03    4.0603        .36122E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.3289        9.9498        .63792E-05   -1.5205    
   9  Prefactor     9.9550        9.5540        .50791E-05   -1.5077    
  10  Prefactor     14.628        35.543        .42148E-05   -1.4943    
  11  norm          .10000E-03    1.0219        .27979E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .69091E-01    144.22        .88343E-04   -1.5655    
  13  norm          9.1878        8.8471        .52908E-05   -1.5102    
  14  Prefactor     .10000E-03    5.0060        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.822        24.401        .48705E-05   -1.5050    
  16  norm          .10000E-03    89.965        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.484        10.540        .40715E-05   -1.4921    
  18  norm          .78471        4.4371        .14536E-04   -1.5531    
  19  Prefactor     .10000E-03    2.4183        .27731E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     45.879        40.374        .11836E-04   -1.4352    
  21  norm          5.6730        5.7599        .67460E-05   -1.5232    
  22  norm          1.0217        2.3903        .83311E-05   -1.5506    
  23  Normalizat    1.4179        .27498        .65216E-04   -.80112    
  24  Prefactor     .82613        .13587        .42946E-04   -.98772    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02741e-09
Minuit parameter uncertainties:
  1  0.362739
  2  6.89126
  3  4.65354
  4  0.00179338
  5  2.94983
  6  19.3465
  7  1.39261e-06
  8  9.95238
  9  9.55542
  10  35.5946
  11  6.89981e-05
  12  6.32397
  13  8.8484
  14  1.17251e-05
  15  24.4237
  16  0.000441754
  17  10.541
  18  3.73213
  19  8.6984e-06
  20  40.398
  21  5.76047
  22  2.39049
  23  0.275268
  24  0.135928
Done.

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

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  1.463e+01  3.559e+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.261e-01  1.359e-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.418e+00  2.753e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/731584/likelihoodResults_503193601_503452801_4FGL_J1331.2-1325_daily_bin1018.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) = 8431.17886331
delta logL = 0.884396992182

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8431.16665083
delta logL = 0.896609470297

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0423       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8554       1.0000          .0000       10.000    
     3 'Normalizat'    1.3345       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85379       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=   8431.167     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      256 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0260        36.874        .58155E-02   -.16991E-03
   2  Index         3.8579        2.6748        .10030        .83431E-04
   3  Normalizat    1.3345        .73199E-01    .75513E-01   -.14035E-04
   4  Prefactor     .85377        .37293E-01    .44413E-01   -.48404E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.02599
  Index      = 3.85789
  Normalizat = 1.33454
  Prefactor  = 0.853765
 **********
 **   18 **HESSE 
 **********

 FCN=   8431.167     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      289 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0260        66.377        .10268E-03   -1.5360    
   2  Index         3.8579        3.8958        .49083E-02   -.23046    
   3  Normalizat    1.3345        .24258        .33419E-03   -.82541    
   4  Prefactor     .85377        .12492        .21151E-03   -.97776    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.31098e-09
Minuit parameter uncertainties:
  1  28.3801
  2  4.51646
  3  0.242784
  4  0.124966
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/731584': 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) = 8431.1666481
delta logL = 0.896612195236

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  3.026e+00  2.838e+01  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  3.858e+00  4.516e+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:  8.538e-01  1.250e-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.335e+00  2.428e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.73
Ra Dec: 202.819 -13.428
Photon Index (Free Index): 3.86 +/- 4.52
Photon Flux (Free Index): 1.17e-07 +/- 8.06e-08
Energy Flux (Free Index): 1.80e-05 +/- 2.02e-05

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/731584/cmap_HighResolution_503193601_503452801_4FGL_J1331.2-1325_daily_bin1018.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.34e-02', comment='SUCCESS', energy_flux2='1.80e-05', dlogl='8.97e-01', photon_flux2='1.17e-07', job_status='DONE', time_completed='2021-09-08 01:31:57.769630', photon_index_error2='4.52', photon_index2='3.86', ts='0.76', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='1.71e-07', energy_flux_error2='2.02e-05', EG='1.42', time_epoch_completed='1631089917.77', return_code='0', job_id='731584', GAL2='0.85', EG2='1.33', return_code2='102', photon_flux_error2='8.06e-08', ts2='2.73', photon_index='2.60' WHERE bin_id='1018' AND source_name='4FGL J1331.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:31:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 731584: <4FGL_J1331.2-1325_daily_bin1018> in cluster <slac> Done

Job <4FGL_J1331.2-1325_daily_bin1018> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  8 01:15:30 2021
Job was executed on host(s) <bullet0128>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:16:58 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:16:58 2021
Terminated at Wed Sep  8 01:31:58 2021
Results reported at Wed Sep  8 01:31:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1331.2-1325_daily_bin1018 202.819 -13.4282 503193601 503452801 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 :                                   869.05 sec.
    Max Memory :                                 1195 MB
    Average Memory :                             307.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            988 sec.

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

