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


Performing analysis on: 4FGL_J1331.2-1325_daily_bin1062
RA = 202.819, Dec = -13.4282
tmin = 514598401, tmax = 514857601
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='731651', job_status='RUN', time_executed='2021-09-08 01:19:23.725158', time_epoch_executed='1631089163.73' WHERE source_name='4FGL J1331.2-1325' and cadence='daily' and bin_id='1062'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/731651

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/731651/ft1_4FGL_J1331.2-1325_daily_bin1062.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/731651/ft2_4FGL_J1331.2-1325_daily_bin1062.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/731651/ft1_4FGL_J1331.2-1325_daily_bin1062.fits outfile=/scratch/kocevski/731651/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1062.fits ra=202.819 dec=-13.4282 rad=12.0 tmin=514598401.0 tmax=514857601.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.13
user 3.81
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/731651/ft2_4FGL_J1331.2-1325_daily_bin1062.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/731651/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1062.fits evtable="EVENTS" outfile="/scratch/kocevski/731651/ft1_filtered_4FGL_J1331.2-1325_daily_bin1062.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/731651/ft1_filtered_4FGL_J1331.2-1325_daily_bin1062.fits" evtable="EVENTS" scfile=/scratch/kocevski/731651/ft2_4FGL_J1331.2-1325_daily_bin1062.fits sctable="SC_DATA" outfile=/scratch/kocevski/731651/ltcube_514598401_514857601_4FGL_J1331.2-1325_daily_bin1062.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/731651/ft2_4FGL_J1331.2-1325_daily_bin1062.fits
.....................!
real 16.45
user 16.00
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/731651/ft1_filtered_4FGL_J1331.2-1325_daily_bin1062.fits evtable="EVENTS" scfile=/scratch/kocevski/731651/ft2_4FGL_J1331.2-1325_daily_bin1062.fits sctable="SC_DATA" expcube=/scratch/kocevski/731651/ltcube_514598401_514857601_4FGL_J1331.2-1325_daily_bin1062.fits outfile=/scratch/kocevski/731651/expmap_514598401_514857601_4FGL_J1331.2-1325_daily_bin1062.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/731651/ltcube_514598401_514857601_4FGL_J1331.2-1325_daily_bin1062.fits
.....................!
real 193.14
user 187.56
sys 4.79

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/731651/ft1_filtered_4FGL_J1331.2-1325_daily_bin1062.fits scfile=/scratch/kocevski/731651/ft2_4FGL_J1331.2-1325_daily_bin1062.fits outfile=/scratch/kocevski/731651/cmap_514598401_514857601_4FGL_J1331.2-1325_daily_bin1062.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.94
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/731651/ft1_filtered_4FGL_J1331.2-1325_daily_bin1062.fits scfile=/scratch/kocevski/731651/ft2_4FGL_J1331.2-1325_daily_bin1062.fits outfile=/scratch/kocevski/731651/cmap_HighResolution_514598401_514857601_4FGL_J1331.2-1325_daily_bin1062.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 1.09
user 0.40
sys 0.19

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6299       1.0000         .10000E-03   10000.    
     2 'norm      '    20.992       1.0000         .10000E-03   10000.    
     3 'norm      '    8.1836       1.0000         .10000E-03   10000.    
     4 'Prefactor '    36.888       1.0000         .10000E-03   10000.    
     5 'norm      '    .12460E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    12.270       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.864       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.4310       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.7005       1.0000         .10000E-03   10000.    
    12 'norm      '    10.427       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.7169       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    46.637       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.6499       1.0000         .10000E-03   10000.    
    22 'norm      '    4.9759       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5688       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .85119       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=   7110.712     FROM MIGRAD    STATUS=CONVERGED    540 CALLS     2709 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6299        .41026        .54746E-08   -.13315E-03
   2  norm          20.992        10.683        .58378E-07    .18514E-04
   3  norm          8.1820        8.4126        .10376E-06   -.48295E-03
   4  Prefactor     36.884        53.526       -.49381E-05   -.28324E-04
   5  norm          .10000E-03    1.4736       -.15474E-06** at limit **
   6  norm          12.269        14.349        .62920E-06   -.59329E-05
   7  norm          .10000E-03    9.8180        .35942E-05** at limit **
   8  Prefactor     10.864        11.709        .17947E-06   -.10016E-05
   9  Prefactor     3.4310        7.4605       -.72449E-07   -.61586E-04
  10  Prefactor     .10000E-03    60.604       -.10214E-06** at limit **
  11  norm          1.7004        1.5365        .25190E-07   -.12461E-03
  12  norm          10.428        4.8717       -.25074E-06   -.66586E-04
  13  norm          .10000E-03    5.7794        .79127E-07** at limit **
  14  Prefactor     4.7175        10.132       -.15629E-06   -.15221E-04
  15  Prefactor     .10000E-03    10.415       -.34554E-05** at limit **
  16  norm          46.631        48.174       -.45911E-05   -.40312E-04
  17  Prefactor     .10000E-03    4.1297        .36540E-07** at limit **
  18  norm          .10000E-03    1.8513       -.63856E-07** at limit **
  19  Prefactor     .10000E-03    3.2354       -.34417E-07** at limit **
  20  Prefactor     .10000E-03    17.219        .32796E-06** at limit **
  21  norm          3.6494        3.5480        .42390E-06   -.13379E-02
  22  norm          4.9759        3.3807       -.30693E-07   -.37472E-04
  23  Normalizat    1.5689        .24775        .34635E-06    .20837E-04
  24  Prefactor     .85113        .12331        .12773E-06    .55575E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.62995
  norm       = 20.9918
  norm       = 8.18202
  Prefactor  = 36.8835
  norm       = 0.0001
  norm       = 12.2692
  norm       = 0.0001
  Prefactor  = 10.8639
  Prefactor  = 3.43097
  Prefactor  = 0.0001
  norm       = 1.70042
  norm       = 10.4282
  norm       = 0.0001
  Prefactor  = 4.71751
  Prefactor  = 0.0001
  norm       = 46.6314
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.64944
  norm       = 4.97585
  Normalizat = 1.56889
  Prefactor  = 0.851133
 **********
 **   18 **HESSE 
 **********

 FCN=   7110.712     FROM HESSE     STATUS=OK           401 CALLS     3110 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6299        .41149        .25878E-04   -1.5453    
   2  norm          20.992        10.686        .87421E-04   -1.4791    
   3  norm          8.1820        8.8097        .70074E-03   -1.5136    
   4  Prefactor     36.884        53.624        .65987E-04   -1.4493    
   5  norm          .10000E-03    7.5635        .19606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          12.269        14.352        .11436E-03   -1.5007    
   7  norm          .10000E-03    9.8556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.864        11.705        .12155E-03   -1.5049    
   9  Prefactor     3.4310        7.4525        .21837E-03   -1.5337    
  10  Prefactor     .10000E-03    61.289        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.7004        1.5252        .95058E-04   -1.5447    
  12  norm          10.428        4.8265        .11951E-03   -1.5062    
  13  norm          .10000E-03    5.8376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.7175        10.130        .18528E-03   -1.5274    
  15  Prefactor     .10000E-03    10.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          46.631        48.281        .58713E-04   -1.4341    
  17  Prefactor     .10000E-03    4.1424        .16730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.8590        .11203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.2702        .14805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    17.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.6494        6.5839        .10572E-02   -1.5326    
  22  norm          4.9759        3.3840        .12264E-03   -1.5262    
  23  Normalizat    1.5689        .28697        .33014E-03   -.75860    
  24  Prefactor     .85113        .14087        .22067E-03   -.97870    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49329e-09
Minuit parameter uncertainties:
  1  0.411493
  2  10.6871
  3  8.81109
  4  53.6945
  5  0.000118603
  6  14.3556
  7  3.85759e-05
  8  11.708
  9  7.45447
  10  0.00020585
  11  1.5252
  12  4.82663
  13  9.89244e-06
  14  10.134
  15  5.00939e-05
  16  48.3215
  17  3.98932e-07
  18  8.98632e-07
  19  1.66432e-06
  20  3.89004e-06
  21  6.58525
  22  3.38418
  23  0.287269
  24  0.140933
Done.

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

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  2.059e-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:  8.511e-01  1.409e-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.569e+00  2.873e-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.52e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.19e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/731651/likelihoodResults_514598401_514857601_4FGL_J1331.2-1325_daily_bin1062.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) = 7110.7121512
delta logL = -7.77438581281e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7110.71207674
delta logL = -3.28263467964e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29185E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8716       1.0000          .0000       10.000    
     3 'Normalizat'    1.5689       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85114       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7110.712     FROM MIGRAD    STATUS=FAILED        96 CALLS      284 TOTAL
                     EDM=   .53E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12323E-03    114.46        .42803E-02** at limit **
   2  Index         2.6641        6.2807        .50000        .93300E-05
   3  Normalizat    1.5689        .94407E-02    .33014E-03    .49450E-04
   4  Prefactor     .85113        .48608E-02    .22067E-03    .57494E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7110.712     FROM SIMPLEX   STATUS=UNCHANGED    102 CALLS      386 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12323E-03    114.46        .13472E-02** at limit **
   2  Index         2.6641        6.2807        .44167E-03    .93300E-05
   3  Normalizat    1.5689        .94407E-02    .23491E-05    .49450E-04
   4  Prefactor     .85113        .48608E-02    .13639E-05    .57494E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7110.712     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      423 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11256E-03    19.441        .85605E-02** at limit **
   2  Index         2.7043        6.8241        .50000        .97951E-05
   3  Normalizat    1.5689        .40744E-02    .13206E-04    .48555E-04
   4  Prefactor     .85113        .20978E-02    .88270E-05    .55897E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000112561
  Index      = 2.7043
  Normalizat = 1.56889
  Prefactor  = 0.851133
 **********
 **   18 **HESSE 
 **********

 FCN=   7110.712     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      452 TOTAL
                     EDM=   .83E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11256E-03    1908.4        .34242E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7043        6.0645        .50000       -.47703    
   3  Normalizat    1.5689        .43062E-01    .26411E-05   -.75860    
   4  Prefactor     .85113        .22157E-01    .17654E-05   -.97870    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.27141e-08
Minuit parameter uncertainties:
  1  0.320455
  2  1541.99
  3  0.0430633
  4  0.0221577
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/731651': 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) = 7110.71207375
delta logL = -2.94646270049e-07

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  1.126e-04  3.205e-01  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  2.704e+00  1.542e+03  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.511e-01  2.216e-02  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.569e+00  4.306e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/731651/cmap_HighResolution_514598401_514857601_4FGL_J1331.2-1325_daily_bin1062.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', job_status='DONE', photon_flux_upper_limit='1.52e-07', time_completed='2021-09-08 01:31:42.933426', job_id='731651', GAL2='0.85', fit_tolerance='1e-08', EG2='1.57', EG='1.57', time_epoch_completed='1631089902.93', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='-2.95e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1062' AND source_name='4FGL J1331.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:31:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 731651: <4FGL_J1331.2-1325_daily_bin1062> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1331.2-1325_daily_bin1062 202.819 -13.4282 514598401 514857601 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 :                                   729.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             263.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            969 sec.

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

