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


Performing analysis on: 4FGL_J1331.2-1325_daily_bin1063
RA = 202.819, Dec = -13.4282
tmin = 514857601, tmax = 515116801
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='731652', job_status='RUN', time_executed='2021-09-08 01:19:44.450903', time_epoch_executed='1631089184.45' WHERE source_name='4FGL J1331.2-1325' and cadence='daily' and bin_id='1063'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/731652

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/731652/ft1_4FGL_J1331.2-1325_daily_bin1063.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/731652/ft2_4FGL_J1331.2-1325_daily_bin1063.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/731652/ft1_4FGL_J1331.2-1325_daily_bin1063.fits outfile=/scratch/kocevski/731652/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1063.fits ra=202.819 dec=-13.4282 rad=12.0 tmin=514857601.0 tmax=515116801.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.31
user 2.69
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/731652/ft2_4FGL_J1331.2-1325_daily_bin1063.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/731652/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1063.fits evtable="EVENTS" outfile="/scratch/kocevski/731652/ft1_filtered_4FGL_J1331.2-1325_daily_bin1063.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.49
user 0.29
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/731652/ft1_filtered_4FGL_J1331.2-1325_daily_bin1063.fits" evtable="EVENTS" scfile=/scratch/kocevski/731652/ft2_4FGL_J1331.2-1325_daily_bin1063.fits sctable="SC_DATA" outfile=/scratch/kocevski/731652/ltcube_514857601_515116801_4FGL_J1331.2-1325_daily_bin1063.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/731652/ft2_4FGL_J1331.2-1325_daily_bin1063.fits
.....................!
real 10.88
user 10.54
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/731652/ft1_filtered_4FGL_J1331.2-1325_daily_bin1063.fits evtable="EVENTS" scfile=/scratch/kocevski/731652/ft2_4FGL_J1331.2-1325_daily_bin1063.fits sctable="SC_DATA" expcube=/scratch/kocevski/731652/ltcube_514857601_515116801_4FGL_J1331.2-1325_daily_bin1063.fits outfile=/scratch/kocevski/731652/expmap_514857601_515116801_4FGL_J1331.2-1325_daily_bin1063.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/731652/ltcube_514857601_515116801_4FGL_J1331.2-1325_daily_bin1063.fits
.....................!
real 156.42
user 151.86
sys 4.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/731652/ft1_filtered_4FGL_J1331.2-1325_daily_bin1063.fits scfile=/scratch/kocevski/731652/ft2_4FGL_J1331.2-1325_daily_bin1063.fits outfile=/scratch/kocevski/731652/cmap_514857601_515116801_4FGL_J1331.2-1325_daily_bin1063.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 1.08
user 0.34
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/731652/ft1_filtered_4FGL_J1331.2-1325_daily_bin1063.fits scfile=/scratch/kocevski/731652/ft2_4FGL_J1331.2-1325_daily_bin1063.fits outfile=/scratch/kocevski/731652/cmap_HighResolution_514857601_515116801_4FGL_J1331.2-1325_daily_bin1063.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.65
user 0.33
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/731652/ft1_filtered_4FGL_J1331.2-1325_daily_bin1063.fits evtable="EVENTS" scfile=/scratch/kocevski/731652/ft2_4FGL_J1331.2-1325_daily_bin1063.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/731652/Model_4FGL_J1331.2-1325_daily_bin1063.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/731652/ft1_filtered_4FGL_J1331.2-1325_daily_bin1063.fits.....................!
real 50.28
user 46.66
sys 1.03

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0662       1.0000         .10000E-03   10000.    
     2 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.9009       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.5586       1.0000         .10000E-03   10000.    
     6 'norm      '    .11332E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10088E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    14.123       1.0000         .10000E-03   10000.    
    13 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.056       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.7473       1.0000         .10000E-03   10000.    
    18 'norm      '    .11065E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .68082E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    31.515       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.5769       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4153       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .96537       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=   6864.261     FROM MIGRAD    STATUS=CONVERGED    598 CALLS     2781 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0660        .51680        .67294E-08   -.19378E-04
   2  norm          .10000E-03    8.1497       -.63955E-07** at limit **
   3  norm          2.8991        7.0702        .66521E-06   -.68804E-04
   4  Prefactor     .10000E-03    23.134        .26746E-06** at limit **
   5  norm          2.5590        2.2259        .31823E-07   -.33505E-04
   6  norm          .10000E-03    21.022       -.93319E-06** at limit **
   7  norm          .10000E-03    4.3615       -.13134E-07** at limit **
   8  Prefactor     .10000E-03    4.4020        .37752E-08** at limit **
   9  Prefactor     .10000E-03    6.2005        .38751E-11** at limit **
  10  Prefactor     .10008E-03    19.142        .25828E-05** at limit **
  11  norm          .10000E-03    .87382       -.39676E-07** at limit **
  12  norm          14.123        5.5213       -.48265E-06   -.89380E-03
  13  norm          .10000E-03    4.0121        .17783E-06** at limit **
  14  Prefactor     .10000E-03    17.780        .13102E-06** at limit **
  15  Prefactor     20.047        36.705        .12312E-06   -.27951E-04
  16  norm          .10000E-03    29.138       -.98497E-07** at limit **
  17  Prefactor     1.7538        24.008        .22181E-05   -.61366E-04
  18  norm          .10000E-03    6.7183        .62941E-06** at limit **
  19  Prefactor     .10591E-03    6.0870        .57130E-06** at limit **
  20  Prefactor     31.590        57.539        .17973E-06    .11036E-04
  21  norm          .10000E-03    3.4344       -.10514E-07** at limit **
  22  norm          1.5772        1.8508        .68943E-07   -.81169E-04
  23  Normalizat    1.4157        .25044       -.92197E-06   -.17604E-03
  24  Prefactor     .96517        .12862       -.39422E-06   -.21314E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.06602
  norm       = 0.0001
  norm       = 2.89905
  Prefactor  = 0.0001
  norm       = 2.55895
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100082
  norm       = 0.0001
  norm       = 14.1229
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.047
  norm       = 0.0001
  Prefactor  = 1.75378
  norm       = 0.0001
  Prefactor  = 0.000105907
  Prefactor  = 31.5899
  norm       = 0.0001
  norm       = 1.57718
  Normalizat = 1.41566
  Prefactor  = 0.965174
 **********
 **   18 **HESSE 
 **********

 FCN=   6864.261     FROM HESSE     STATUS=OK           403 CALLS     3184 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0660        .51949        .23471E-04   -1.5358    
   2  norm          .10000E-03    8.2417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.8991        7.0211        .23857E-03   -1.5367    
   4  Prefactor     .10000E-03    23.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.5590        2.2237        .11188E-03   -1.5388    
   6  norm          .10000E-03    21.393        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.3653        .16899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.4125        .16976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.2399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10008E-03    93.582        .60335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .90015        .15088E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          14.123        5.4540        .10658E-03   -1.4956    
  13  norm          .10000E-03    4.0376        .16208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    17.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     20.047        36.439        .89436E-04   -1.4812    
  16  norm          .10000E-03    29.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.7538        22.972        .31725E-03   -1.5443    
  18  norm          .10000E-03    6.8935        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10591E-03    9.2275        .50885E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     31.590        57.721        .71374E-04   -1.4583    
  21  norm          .10000E-03    3.4452        .14981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.5772        1.8304        .11872E-03   -1.5457    
  23  Normalizat    1.4157        .29535        .34318E-03   -.80177    
  24  Prefactor     .96517        .14962        .21108E-03   -.93900    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03356e-09
Minuit parameter uncertainties:
  1  0.519487
  2  1.7706e-05
  3  7.02309
  4  0.000139906
  5  2.2238
  6  5.12315e-05
  7  3.28398e-06
  8  3.88901e-06
  9  1.01265e-05
  10  0.00555077
  11  5.26008e-06
  12  5.45416
  13  2.40028e-06
  14  7.03152e-05
  15  36.4799
  16  3.34979e-05
  17  12.7001
  18  4.1091e-05
  19  0.0147677
  20  57.8231
  21  5.15496e-07
  22  1.83043
  23  0.295704
  24  0.149687
Done.

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

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  1.001e-04  5.551e-03  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.652e-01  1.497e-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.416e+00  2.957e-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.59e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.24e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/731652/likelihoodResults_514857601_515116801_4FGL_J1331.2-1325_daily_bin1063.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) = 6864.26071731
delta logL = -5.01670556332e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6864.26071731
delta logL = -5.01619597344e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96357E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5996       1.0000          .0000       10.000    
     3 'Normalizat'    1.4157       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96518       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6864.249     FROM MIGRAD    STATUS=CONVERGED    175 CALLS      340 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8962        59.156        .18143E-02    .32466E-04
   2  Index         1.9135        2.0334        .13883E-01   -.44858E-05
   3  Normalizat    1.4141        .27977        .34330E-03    .40980E-03
   4  Prefactor     .96421        .14650        .21112E-03    .66757E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.89623
  Index      = 1.91348
  Normalizat = 1.41414
  Prefactor  = 0.964214
 **********
 **   18 **HESSE 
 **********

 FCN=   6864.249     FROM HESSE     STATUS=OK            27 CALLS      367 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8962        57.424        .72570E-04   -1.6151    
   2  Index         1.9135        2.0070        .55534E-03   -.66531    
   3  Normalizat    1.4141        .27997        .68659E-04   -.80221    
   4  Prefactor     .96421        .14660        .42225E-04   -.93932    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.93306e-10
Minuit parameter uncertainties:
  1  33.5759
  2  2.10622
  3  0.280276
  4  0.14666
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/731652': 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): 0
logL (Free Index) = 6864.24914287
delta logL = 0.0115242766678

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  4.896e+00  3.358e+01  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  1.913e+00  2.106e+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:  9.642e-01  1.467e-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.414e+00  2.803e-01  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/731652/cmap_HighResolution_514857601_515116801_4FGL_J1331.2-1325_daily_bin1063.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.24e-02', job_status='DONE', photon_flux_upper_limit='1.59e-07', time_completed='2021-09-08 01:29:45.473964', job_id='731652', GAL2='0.96', fit_tolerance='1e-08', EG2='1.41', EG='1.42', time_epoch_completed='1631089785.47', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.15e-02', ts2='0.02', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1063' AND source_name='4FGL J1331.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:29:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 731652: <4FGL_J1331.2-1325_daily_bin1063> in cluster <slac> Done

Job <4FGL_J1331.2-1325_daily_bin1063> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  8 01:15:35 2021
Job was executed on host(s) <bullet0071>, 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:29:46 2021
Results reported at Wed Sep  8 01:29:46 2021

Your job looked like:

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

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

