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


Performing analysis on: 4FGL_J1331.2-1325_daily_bin1547
RA = 202.819, Dec = -13.4282
tmin = 640310401, tmax = 640569601
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='734506', job_status='RUN', time_executed='2021-09-08 01:29:12.404461', time_epoch_executed='1631089752.4' WHERE source_name='4FGL J1331.2-1325' and cadence='daily' and bin_id='1547'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/734506

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/734506/ft1_4FGL_J1331.2-1325_daily_bin1547.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/734506/ft2_4FGL_J1331.2-1325_daily_bin1547.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/734506/ft1_4FGL_J1331.2-1325_daily_bin1547.fits outfile=/scratch/kocevski/734506/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1547.fits ra=202.819 dec=-13.4282 rad=12.0 tmin=640310401.0 tmax=640569601.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.06
user 4.75
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/734506/ft1_filtered_4FGL_J1331.2-1325_daily_bin1547.fits" evtable="EVENTS" scfile=/scratch/kocevski/734506/ft2_4FGL_J1331.2-1325_daily_bin1547.fits sctable="SC_DATA" outfile=/scratch/kocevski/734506/ltcube_640310401_640569601_4FGL_J1331.2-1325_daily_bin1547.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/734506/ft2_4FGL_J1331.2-1325_daily_bin1547.fits
.....................!
real 17.04
user 16.55
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/734506/ft1_filtered_4FGL_J1331.2-1325_daily_bin1547.fits evtable="EVENTS" scfile=/scratch/kocevski/734506/ft2_4FGL_J1331.2-1325_daily_bin1547.fits sctable="SC_DATA" expcube=/scratch/kocevski/734506/ltcube_640310401_640569601_4FGL_J1331.2-1325_daily_bin1547.fits outfile=/scratch/kocevski/734506/expmap_640310401_640569601_4FGL_J1331.2-1325_daily_bin1547.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/734506/ltcube_640310401_640569601_4FGL_J1331.2-1325_daily_bin1547.fits
.....................!
real 194.25
user 188.19
sys 5.37

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/734506/ft1_filtered_4FGL_J1331.2-1325_daily_bin1547.fits scfile=/scratch/kocevski/734506/ft2_4FGL_J1331.2-1325_daily_bin1547.fits outfile=/scratch/kocevski/734506/cmap_640310401_640569601_4FGL_J1331.2-1325_daily_bin1547.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/734506/ft1_filtered_4FGL_J1331.2-1325_daily_bin1547.fits scfile=/scratch/kocevski/734506/ft2_4FGL_J1331.2-1325_daily_bin1547.fits outfile=/scratch/kocevski/734506/cmap_HighResolution_640310401_640569601_4FGL_J1331.2-1325_daily_bin1547.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.61
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/734506/ft1_filtered_4FGL_J1331.2-1325_daily_bin1547.fits evtable="EVENTS" scfile=/scratch/kocevski/734506/ft2_4FGL_J1331.2-1325_daily_bin1547.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/734506/Model_4FGL_J1331.2-1325_daily_bin1547.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/734506/ft1_filtered_4FGL_J1331.2-1325_daily_bin1547.fits.....................!
real 59.42
user 56.70
sys 1.38

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5871       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10099E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.5430       1.0000         .10000E-03   10000.    
     6 'norm      '    12.761       1.0000         .10000E-03   10000.    
     7 'norm      '    13.728       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.5142       1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.927       1.0000         .10000E-03   10000.    
    11 'norm      '    2.1219       1.0000         .10000E-03   10000.    
    12 'norm      '    .10312E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    46.618       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    35.619       1.0000         .10000E-03   10000.    
    16 'norm      '    .24179       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    18.204       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.8282       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.9525       1.0000         .10000E-03   10000.    
    21 'norm      '    1.4515       1.0000         .10000E-03   10000.    
    22 'norm      '    10.714       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .88257       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .96476       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=   7088.029     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2408 TOTAL
                     EDM=   .29E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5871        .50242        .33561E-08   -.10746E-04
   2  norm          .10000E-03    2.5103        .10020E-07** at limit **
   3  norm          .10000E-03    18.130        .37549E-06** at limit **
   4  Prefactor     .10000E-03    56.460        .86640E-07** at limit **
   5  norm          1.5429        1.5080       -.16123E-07    .49476E-04
   6  norm          12.762        11.197        .10237E-06    .12755E-05
   7  norm          13.729        12.292        .84899E-07    .98801E-06
   8  Prefactor     .10000E-03    6.1956        .12071E-06** at limit **
   9  Prefactor     4.5144        7.1494        .64521E-06   -.74490E-05
  10  Prefactor     22.927        23.899       -.13014E-06   -.32341E-04
  11  norm          2.1219        1.7980        .94996E-07   -.86370E-04
  12  norm          .10000E-03    5.3508        .59605E-06** at limit **
  13  norm          46.620        12.977        .44641E-06    .16066E-04
  14  Prefactor     .10000E-03    5.7952        .34746E-07** at limit **
  15  Prefactor     35.621        23.882       -.78635E-06   -.25999E-04
  16  norm          .10019E-03    63.346       -.46690E-06** at limit **
  17  Prefactor     .10000E-03    3.0942       -.35283E-07** at limit **
  18  norm          18.205        6.6659       -.13171E-06    .17285E-04
  19  Prefactor     5.8175        7.3327       -.13133E-05   -.15554E-03
  20  Prefactor     1.9571        221.01       -.47840E-05   -.38360E-05
  21  norm          1.4631        17.056        .38103E-05   -.44015E-04
  22  norm          10.713        3.9181       -.35183E-07   -.43920E-04
  23  Normalizat    .88254        .25263       -.82393E-06   -.13761E-05
  24  Prefactor     .96474        .12411        .13974E-06   -.38830E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.58714
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.54295
  norm       = 12.7618
  norm       = 13.7285
  Prefactor  = 0.0001
  Prefactor  = 4.51438
  Prefactor  = 22.9268
  norm       = 2.12192
  norm       = 0.0001
  norm       = 46.6198
  Prefactor  = 0.0001
  Prefactor  = 35.6211
  norm       = 0.000100194
  Prefactor  = 0.0001
  norm       = 18.2048
  Prefactor  = 5.81746
  Prefactor  = 1.95705
  norm       = 1.46312
  norm       = 10.7132
  Normalizat = 0.882537
  Prefactor  = 0.96474
 **********
 **   18 **HESSE 
 **********

 FCN=   7088.029     FROM HESSE     STATUS=OK           417 CALLS     2825 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5871        .50406        .25219E-04   -1.5386    
   2  norm          .10000E-03    2.5153        .13026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    18.875        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    56.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.5429        1.5262        .99475E-04   -1.5460    
   6  norm          12.762        11.202        .11213E-03   -1.4993    
   7  norm          13.729        12.289        .10810E-03   -1.4967    
   8  Prefactor     .10000E-03    6.2865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.5144        7.1240        .18949E-03   -1.5283    
  10  Prefactor     22.927        23.757        .83654E-04   -1.4750    
  11  norm          2.1219        1.7932        .97563E-04   -1.5417    
  12  norm          .10000E-03    5.3752        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          46.620        13.063        .58725E-04   -1.4341    
  14  Prefactor     .10000E-03    5.8523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     35.621        24.032        .67148E-04   -1.4514    
  16  norm          .10019E-03    58.349        .20621       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.1039        .14459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          18.205        6.6498        .93872E-04   -1.4854    
  19  Prefactor     5.8175        7.3450        .16636E-03   -1.5226    
  20  Prefactor     1.9571        225.40        .29697E-03   -1.5428    
  21  norm          1.4631        18.017        .35756E-03   -1.5466    
  22  norm          10.713        3.9205        .96028E-04   -1.5053    
  23  Normalizat    .88254        .29087        .38903E-03   -.97076    
  24  Prefactor     .96474        .14397        .19732E-03   -.93914    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.0975e-11
Minuit parameter uncertainties:
  1  0.504062
  2  9.997e-08
  3  2.14163e-06
  4  6.10577e-06
  5  1.52629
  6  11.2038
  7  12.2913
  8  8.25053e-06
  9  7.12535
  10  23.7671
  11  1.79323
  12  4.75685e-05
  13  13.0638
  14  6.86742e-06
  15  24.0381
  16  0.00673125
  17  5.16998e-06
  18  6.65011
  19  7.34611
  20  42.1681
  21  10.2721
  22  3.92059
  23  0.291386
  24  0.144029
Done.

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

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  2.293e+01  2.377e+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:  9.647e-01  1.440e-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:  8.825e-01  2.914e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.39
Ra Dec: 202.819 -13.428
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 7.60e-08 +/- 7.87e-08
Energy Flux (Fixed Index): 1.99e-05 +/- 2.07e-05

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

Saving results to:
/scratch/kocevski/734506/likelihoodResults_640310401_640569601_4FGL_J1331.2-1325_daily_bin1547.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) = 7086.53267175
delta logL = 1.49676981742

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7086.42921968
delta logL = 1.60022189092

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24384       1.0000         .10000E-03   10000.    
     2 'Index     '    5.1868       1.0000          .0000       10.000    
     3 'Normalizat'    .78038       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0049       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=   7086.429     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      296 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .24234        1.7671        .48687E-02   -.58236E-02
   2  Index         5.1901        2.0670        .89019E-01   -.19252E-03
   3  Normalizat    .78029        .68519E-01    .92652E-01   -.11904E-04
   4  Prefactor     1.0050        .36287E-01    .44211E-01   -.52853E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.24234
  Index      = 5.19009
  Normalizat = 0.780287
  Prefactor  = 1.00501
 **********
 **   18 **HESSE 
 **********

 FCN=   7086.429     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      329 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .24234        3.6218        .21950E-04   -1.5610    
   2  Index         5.1901        3.2202        .35199E-02    .38026E-01
   3  Normalizat    .78029        .23802        .41046E-03   -1.0080    
   4  Prefactor     1.0050        .12474        .19376E-03   -.92563    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.12729e-10
Minuit parameter uncertainties:
  1  1.87346
  2  3.49937
  3  0.238339
  4  0.124772
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/734506': 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) = 7086.42921705
delta logL = 1.60022451978

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  2.423e-01  1.873e+00  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  5.190e+00  3.499e+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.005e+00  1.248e-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:  7.803e-01  2.383e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.96
Ra Dec: 202.819 -13.428
Photon Index (Free Index): 5.19 +/- 3.50
Photon Flux (Free Index): 1.60e-07 +/- 8.74e-08
Energy Flux (Free Index): 2.10e-05 +/- 1.36e-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/734506/cmap_HighResolution_640310401_640569601_4FGL_J1331.2-1325_daily_bin1547.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.67e-02', comment='SUCCESS', photon_flux='7.60e-08', energy_flux2='2.10e-05', photon_flux_error='7.87e-08', dlogl='1.60e+00', energy_flux='1.99e-05', photon_flux2='1.60e-07', job_status='DONE', time_completed='2021-09-08 01:41:47.573671', photon_index_error2='3.50', photon_index2='5.19', ts='1.39', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='2.14e-07', energy_flux_error2='1.36e-05', EG='0.88', time_epoch_completed='1631090507.57', return_code='0', job_id='734506', GAL2='1.01', EG2='0.78', return_code2='102', energy_flux_error='2.07e-05', photon_flux_error2='8.74e-08', ts2='4.96', photon_index='2.60' WHERE bin_id='1547' AND source_name='4FGL J1331.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:41:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0155>
Subject: Job 734506: <4FGL_J1331.2-1325_daily_bin1547> in cluster <slac> Done

Job <4FGL_J1331.2-1325_daily_bin1547> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  8 01:25:29 2021
Job was executed on host(s) <bullet0155>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:25:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 01:25:35 2021
Terminated at Wed Sep  8 01:41:48 2021
Results reported at Wed Sep  8 01:41:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1331.2-1325_daily_bin1547 202.819 -13.4282 640310401 640569601 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 :                                   731.54 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            979 sec.

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

