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


Performing analysis on: 4FGL_J1331.2-1325_daily_bin1034
RA = 202.819, Dec = -13.4282
tmin = 507340801, tmax = 507600001
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='731612', job_status='RUN', time_executed='2021-09-08 01:18:49.270056', time_epoch_executed='1631089129.27' WHERE source_name='4FGL J1331.2-1325' and cadence='daily' and bin_id='1034'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/731612

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/731612/ft1_4FGL_J1331.2-1325_daily_bin1034.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/731612/ft2_4FGL_J1331.2-1325_daily_bin1034.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/731612/ft1_4FGL_J1331.2-1325_daily_bin1034.fits outfile=/scratch/kocevski/731612/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1034.fits ra=202.819 dec=-13.4282 rad=12.0 tmin=507340801.0 tmax=507600001.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.62
user 3.33
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/731612/ft1_filtered_4FGL_J1331.2-1325_daily_bin1034.fits" evtable="EVENTS" scfile=/scratch/kocevski/731612/ft2_4FGL_J1331.2-1325_daily_bin1034.fits sctable="SC_DATA" outfile=/scratch/kocevski/731612/ltcube_507340801_507600001_4FGL_J1331.2-1325_daily_bin1034.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/731612/ft2_4FGL_J1331.2-1325_daily_bin1034.fits
.....................!
real 16.06
user 15.62
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/731612/ft1_filtered_4FGL_J1331.2-1325_daily_bin1034.fits evtable="EVENTS" scfile=/scratch/kocevski/731612/ft2_4FGL_J1331.2-1325_daily_bin1034.fits sctable="SC_DATA" expcube=/scratch/kocevski/731612/ltcube_507340801_507600001_4FGL_J1331.2-1325_daily_bin1034.fits outfile=/scratch/kocevski/731612/expmap_507340801_507600001_4FGL_J1331.2-1325_daily_bin1034.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/731612/ltcube_507340801_507600001_4FGL_J1331.2-1325_daily_bin1034.fits
.....................!
real 191.97
user 186.03
sys 5.04

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/731612/ft1_filtered_4FGL_J1331.2-1325_daily_bin1034.fits scfile=/scratch/kocevski/731612/ft2_4FGL_J1331.2-1325_daily_bin1034.fits outfile=/scratch/kocevski/731612/cmap_507340801_507600001_4FGL_J1331.2-1325_daily_bin1034.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.88
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/731612/ft1_filtered_4FGL_J1331.2-1325_daily_bin1034.fits scfile=/scratch/kocevski/731612/ft2_4FGL_J1331.2-1325_daily_bin1034.fits outfile=/scratch/kocevski/731612/cmap_HighResolution_507340801_507600001_4FGL_J1331.2-1325_daily_bin1034.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.63
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/731612/ft1_filtered_4FGL_J1331.2-1325_daily_bin1034.fits evtable="EVENTS" scfile=/scratch/kocevski/731612/ft2_4FGL_J1331.2-1325_daily_bin1034.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/731612/Model_4FGL_J1331.2-1325_daily_bin1034.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/731612/ft1_filtered_4FGL_J1331.2-1325_daily_bin1034.fits.....................!
real 61.38
user 56.14
sys 1.34

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5480       1.0000         .10000E-03   10000.    
     2 'norm      '    .30925E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    15.291       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10543E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .61216       1.0000         .10000E-03   10000.    
     6 'norm      '    23.627       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.771       1.0000         .10000E-03   10000.    
    11 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10155E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.8699       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    12.758       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    31.674       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2949       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0337       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=   7166.786     FROM MIGRAD    STATUS=CONVERGED    556 CALLS     2734 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5481        .55413        .81386E-07   -.16341E-03
   2  norm          .10000E-03    5.6017        .37349E-06** at limit **
   3  norm          15.291        10.802       -.15274E-06   -.43598E-04
   4  Prefactor     .10000E-03    265.87       -.15619E-04** at limit **
   5  norm          .61114        .73018        .40011E-06   -.43378E-02
   6  norm          23.631        14.735       -.26483E-05   -.92575E-05
   7  norm          .10000E-03    4.3090        .46810E-05** at limit **
   8  Prefactor     .10000E-03    4.2255       -.28728E-05** at limit **
   9  Prefactor     .10000E-03    6.4650        .26327E-07** at limit **
  10  Prefactor     14.759        18.562        .19748E-04    .21212E-03
  11  norm          .10000E-03    .85641       -.53386E-07** at limit **
  12  norm          .10000E-03    2.7572       -.14474E-05** at limit **
  13  norm          6.8693        6.4198       -.42139E-05   -.42510E-04
  14  Prefactor     .10000E-03    4.2583       -.15408E-05** at limit **
  15  Prefactor     .10000E-03    34.475       -.50260E-06** at limit **
  16  norm          12.794        64.735        .50669E-04    .13626E-04
  17  Prefactor     .10000E-03    4.9760       -.49520E-06** at limit **
  18  norm          .10000E-03    1.6160       -.77830E-08** at limit **
  19  Prefactor     .10000E-03    1.7111        .92973E-08** at limit **
  20  Prefactor     31.673        33.380        .56339E-06   -.16719E-06
  21  norm          .10000E-03    2.9156        .17232E-06** at limit **
  22  norm          .10000E-03    2.0033        .10105E-06** at limit **
  23  Normalizat    1.2949        .25518       -.41306E-05    .11673E-03
  24  Prefactor     1.0336        .12990       -.11073E-06   -.79055E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.54813
  norm       = 0.000100001
  norm       = 15.291
  Prefactor  = 0.000100001
  norm       = 0.61114
  norm       = 23.6314
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.7593
  norm       = 0.0001
  norm       = 0.000100005
  norm       = 6.86932
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.7936
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.6727
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.29491
  Prefactor  = 1.03364
 **********
 **   18 **HESSE 
 **********

 FCN=   7166.786     FROM HESSE     STATUS=OK           393 CALLS     3127 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5481        .55576        .23880E-04   -1.5331    
   2  norm          .10000E-03    19.519        .38671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          15.291        10.826        .10243E-03   -1.4926    
   4  Prefactor     .10000E-03    266.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .61114        3.9172        .15620E-02   -1.5552    
   6  norm          23.631        14.737        .82408E-04   -1.4735    
   7  norm          .10000E-03    4.3100        .17159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.2526        .17001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.5257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.759        18.618        .10421E-03   -1.4939    
  11  norm          .10000E-03    1.4479        .15065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.8187        .13728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.8693        6.4009        .15307E-03   -1.5184    
  14  Prefactor     .10000E-03    4.2618        .17059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    34.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          12.794        64.100        .11215E-03   -1.4992    
  17  Prefactor     .10000E-03    4.9933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.6202        .10509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.7217        .10812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     31.673        33.382        .71196E-04   -1.4582    
  21  norm          .10000E-03    2.9454        .14116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.0984        .23386E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2949        .29803        .35731E-03   -.83718    
  24  Prefactor     1.0336        .15465        .20635E-03   -.91616    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99314e-08
Minuit parameter uncertainties:
  1  0.555759
  2  0.000285408
  3  10.8277
  4  0.00118947
  5  3.09454
  6  14.7391
  7  1.1237e-05
  8  2.5174e-05
  9  1.92249e-05
  10  18.625
  11  8.28516e-06
  12  0.000227382
  13  6.40158
  14  3.01364e-07
  15  9.05359e-05
  16  57.3718
  17  9.12607e-06
  18  1.43579e-06
  19  1.05289e-06
  20  33.4014
  21  5.43973e-06
  22  1.25276e-05
  23  0.298429
  24  0.154712
Done.

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

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  1.476e+01  1.862e+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.034e+00  1.547e-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.295e+00  2.984e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/731612/likelihoodResults_507340801_507600001_4FGL_J1331.2-1325_daily_bin1034.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) = 7166.33513446
delta logL = 0.450743124579

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7166.30481811
delta logL = 0.481059475928

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9814       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6197       1.0000          .0000       10.000    
     3 'Normalizat'    1.2417       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0518       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=   7166.305     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      259 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9601        74.873        .50534E-02    .49625E-03
   2  Index         3.6221        3.2652        .11293        .18320E-03
   3  Normalizat    1.2420        .85778E-01    .82129E-01    .16266E-04
   4  Prefactor     1.0517        .43744E-01    .39807E-01    .30362E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.96009
  Index      = 3.62213
  Normalizat = 1.24199
  Prefactor  = 1.05166
 **********
 **   18 **HESSE 
 **********

 FCN=   7166.305     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      292 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9601        134.75        .13311E-03   -1.5310    
   2  Index         3.6221        6.8028        .57285E-02   -.27919    
   3  Normalizat    1.2420        .28888        .36360E-03   -.85315    
   4  Prefactor     1.0517        .15179        .20474E-03   -.91027    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.73682e-10
Minuit parameter uncertainties:
  1  46.313
  2  5.81611
  3  0.289254
  4  0.151855
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/731612': 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) = 7166.3048152
delta logL = 0.481062382308

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  3.960e+00  4.631e+01  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  3.622e+00  5.816e+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.052e+00  1.519e-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.242e+00  2.893e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.89
Ra Dec: 202.819 -13.428
Photon Index (Free Index): 3.62 +/- 5.82
Photon Flux (Free Index): 9.46e-08 +/- 8.04e-08
Energy Flux (Free Index): 1.53e-05 +/- 2.25e-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/731612/cmap_HighResolution_507340801_507600001_4FGL_J1331.2-1325_daily_bin1034.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.35e-02', comment='SUCCESS', energy_flux2='1.53e-05', dlogl='4.81e-01', photon_flux2='9.46e-08', job_status='DONE', time_completed='2021-09-08 01:31:10.072426', photon_index_error2='5.82', photon_index2='3.62', ts='0.86', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.73e-07', energy_flux_error2='2.25e-05', EG='1.29', time_epoch_completed='1631089870.07', return_code='0', job_id='731612', GAL2='1.05', EG2='1.24', return_code2='102', photon_flux_error2='8.04e-08', ts2='1.89', photon_index='2.60' WHERE bin_id='1034' AND source_name='4FGL J1331.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:31:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 731612: <4FGL_J1331.2-1325_daily_bin1034> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1331.2-1325_daily_bin1034 202.819 -13.4282 507340801 507600001 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 :                                   724.48 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             325.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            938 sec.

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

