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


Performing analysis on: 4FGL_J1331.2-1325_daily_bin1029
RA = 202.819, Dec = -13.4282
tmin = 506044801, tmax = 506304001
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='731602', job_status='RUN', time_executed='2021-09-08 01:19:08.903526', time_epoch_executed='1631089148.9' WHERE source_name='4FGL J1331.2-1325' and cadence='daily' and bin_id='1029'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/731602

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/731602/ft1_4FGL_J1331.2-1325_daily_bin1029.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/731602/ft2_4FGL_J1331.2-1325_daily_bin1029.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/731602/ft1_4FGL_J1331.2-1325_daily_bin1029.fits outfile=/scratch/kocevski/731602/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1029.fits ra=202.819 dec=-13.4282 rad=12.0 tmin=506044801.0 tmax=506304001.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.38
user 4.12
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/731602/ft1_filtered_4FGL_J1331.2-1325_daily_bin1029.fits" evtable="EVENTS" scfile=/scratch/kocevski/731602/ft2_4FGL_J1331.2-1325_daily_bin1029.fits sctable="SC_DATA" outfile=/scratch/kocevski/731602/ltcube_506044801_506304001_4FGL_J1331.2-1325_daily_bin1029.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/731602/ft2_4FGL_J1331.2-1325_daily_bin1029.fits
.....................!
real 18.46
user 17.97
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/731602/ft1_filtered_4FGL_J1331.2-1325_daily_bin1029.fits evtable="EVENTS" scfile=/scratch/kocevski/731602/ft2_4FGL_J1331.2-1325_daily_bin1029.fits sctable="SC_DATA" expcube=/scratch/kocevski/731602/ltcube_506044801_506304001_4FGL_J1331.2-1325_daily_bin1029.fits outfile=/scratch/kocevski/731602/expmap_506044801_506304001_4FGL_J1331.2-1325_daily_bin1029.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/731602/ltcube_506044801_506304001_4FGL_J1331.2-1325_daily_bin1029.fits
.....................!
real 193.80
user 188.07
sys 4.92

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/731602/ft1_filtered_4FGL_J1331.2-1325_daily_bin1029.fits scfile=/scratch/kocevski/731602/ft2_4FGL_J1331.2-1325_daily_bin1029.fits outfile=/scratch/kocevski/731602/cmap_506044801_506304001_4FGL_J1331.2-1325_daily_bin1029.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.26
user 0.40
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/731602/ft1_filtered_4FGL_J1331.2-1325_daily_bin1029.fits scfile=/scratch/kocevski/731602/ft2_4FGL_J1331.2-1325_daily_bin1029.fits outfile=/scratch/kocevski/731602/cmap_HighResolution_506044801_506304001_4FGL_J1331.2-1325_daily_bin1029.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.79
user 0.38
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/731602/ft1_filtered_4FGL_J1331.2-1325_daily_bin1029.fits evtable="EVENTS" scfile=/scratch/kocevski/731602/ft2_4FGL_J1331.2-1325_daily_bin1029.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/731602/Model_4FGL_J1331.2-1325_daily_bin1029.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/731602/ft1_filtered_4FGL_J1331.2-1325_daily_bin1029.fits.....................!
real 58.48
user 55.90
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5891       1.0000         .10000E-03   10000.    
     2 'norm      '    2.4762       1.0000         .10000E-03   10000.    
     3 'norm      '    9.1800       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10309E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .38347E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    19.910       1.0000         .10000E-03   10000.    
     7 'norm      '    .10011E-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 '    72.038       1.0000         .10000E-03   10000.    
    11 'norm      '    1.0783       1.0000         .10000E-03   10000.    
    12 'norm      '    .53294       1.0000         .10000E-03   10000.    
    13 'norm      '    .79399       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10975E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.857       1.0000         .10000E-03   10000.    
    18 'norm      '    3.7026       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11276E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10153E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3971       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .98456       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=   6679.574     FROM MIGRAD    STATUS=CONVERGED    568 CALLS     2822 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5891        .55151       -.85356E-09   -.37493E-03
   2  norm          2.4769        6.2552        .20143E-05   -.23734E-03
   3  norm          9.1744        9.9127       -.29810E-06   -.28352E-04
   4  Prefactor     .10000E-03    61.417        .44077E-05** at limit **
   5  norm          .10002E-03    1.5873       -.26099E-06** at limit **
   6  norm          19.917        13.835        .11252E-06   -.26421E-04
   7  norm          .10000E-03    6.3281       -.40994E-07** at limit **
   8  Prefactor     .10000E-03    3.1064        .16525E-06** at limit **
   9  Prefactor     .10000E-03    3.3421        .86815E-07** at limit **
  10  Prefactor     72.024        37.794       -.19541E-05   -.33328E-03
  11  norm          1.0780        1.7417        .44997E-07   -.52694E-04
  12  norm          .53079        16.531        .54292E-05   -.37740E-03
  13  norm          .82077        12.649       -.32261E-05   -.47730E-03
  14  Prefactor     .10000E-03    7.0879       -.16221E-07** at limit **
  15  Prefactor     .10000E-03    32.101        .26681E-05** at limit **
  16  norm          .10000E-03    35.927       -.10646E-05** at limit **
  17  Prefactor     10.851        15.798        .18642E-06   -.46748E-04
  18  norm          3.7037        4.0678        .47435E-06    .21231E-04
  19  Prefactor     .10000E-03    1.7774        .83234E-07** at limit **
  20  Prefactor     .10000E-03    41.364       -.65675E-05** at limit **
  21  norm          .10000E-03    10.619        .54031E-06** at limit **
  22  norm          .10000E-03    .94187        .10007E-06** at limit **
  23  Normalizat    1.3972        .27608       -.76398E-06   -.14007E-03
  24  Prefactor     .98454        .13703       -.37607E-06   -.26640E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.58909
  norm       = 2.47688
  norm       = 9.17444
  Prefactor  = 0.0001
  norm       = 0.000100019
  norm       = 19.917
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 72.0244
  norm       = 1.07804
  norm       = 0.530791
  norm       = 0.820768
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.8505
  norm       = 3.70374
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.39724
  Prefactor  = 0.984535
 **********
 **   18 **HESSE 
 **********

 FCN=   6679.574     FROM HESSE     STATUS=OK           399 CALLS     3221 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5891        .55332        .22917E-04   -1.5329    
   2  norm          2.4769        9.6421        .12991E-02   -1.5393    
   3  norm          9.1744        9.8711        .13228E-03   -1.5102    
   4  Prefactor     .10000E-03    61.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10002E-03    30.600        .19441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          19.917        13.858        .89762E-04   -1.4815    
   7  norm          .10000E-03    6.3519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.1098        .14070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.3478        .14592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     72.024        48.457        .47300E-04   -1.4009    
  11  norm          1.0780        1.7120        .12915E-03   -1.5500    
  12  norm          .53079        35.040        .24905E-02   -1.5562    
  13  norm          .82077        24.677        .33357E-02   -1.5527    
  14  Prefactor     .10000E-03    7.0928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    32.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    35.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.851        15.844        .12159E-03   -1.5049    
  18  norm          3.7037        4.0722        .16730E-03   -1.5323    
  19  Prefactor     .10000E-03    1.7832        .10640E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    41.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    11.040        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .94766        .77471E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3972        .32574        .35774E-03   -.80709    
  24  Prefactor     .98454        .16196        .21643E-03   -.93247    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19277e-09
Minuit parameter uncertainties:
  1  0.553318
  2  9.64813
  3  9.87281
  4  0.000148867
  5  0.00150906
  6  13.8598
  7  2.91076e-06
  8  1.89594e-06
  9  2.54183e-06
  10  48.4839
  11  1.7121
  12  8.62976
  13  9.00439
  14  8.40686e-08
  15  8.05397e-05
  16  1.75811e-05
  17  15.8503
  18  4.07255
  19  7.51655e-07
  20  0.000162032
  21  1.73926e-05
  22  1.60704e-06
  23  0.32622
  24  0.162038
Done.

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

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  7.202e+01  4.848e+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.845e-01  1.620e-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.397e+00  3.262e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.22
Ra Dec: 202.819 -13.428
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 2.39e-07 +/- 1.61e-07
Energy Flux (Fixed Index): 6.27e-05 +/- 4.22e-05

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) = 6679.39868908
delta logL = 0.175187118207

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6679.38444657
delta logL = 0.189429629033

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.839       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9587       1.0000          .0000       10.000    
     3 'Normalizat'    1.3470       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0059       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5700E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6679.384     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      304 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.853        64.854        .61250E-04   -.45104E-04
   2  Index         2.9581        .87925        .32966E-02    .57753E-04
   3  Normalizat    1.3467        .32638        .36321E-03   -.21857E-03
   4  Prefactor     1.0061        .16597        .21446E-03    .23467E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.8532
  Index      = 2.95813
  Normalizat = 1.3467
  Prefactor  = 1.00611
 **********
 **   18 **HESSE 
 **********

 FCN=   6679.384     FROM HESSE     STATUS=OK            25 CALLS      329 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.853        45.959        .24500E-05   -1.4398    
   2  Index         2.9581        .62392        .13186E-03   -.42067    
   3  Normalizat    1.3467        .31990        .14528E-04   -.82183    
   4  Prefactor     1.0061        .16269        .42891E-04   -.92526    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1739e-09
Minuit parameter uncertainties:
  1  45.997
  2  0.625875
  3  0.320375
  4  0.162772
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/731602': 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) = 6679.3844436
delta logL = 0.189432603049

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  4.285e+01  4.600e+01  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  2.958e+00  6.259e-01  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.006e+00  1.628e-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.347e+00  3.204e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.68
Ra Dec: 202.819 -13.428
Photon Index (Free Index): 2.96 +/- 0.63
Photon Flux (Free Index): 2.76e-07 +/- 1.15e-07
Energy Flux (Free Index): 5.62e-05 +/- 2.25e-05

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/731602/cmap_HighResolution_506044801_506304001_4FGL_J1331.2-1325_daily_bin1029.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.39e-07', energy_flux2='5.62e-05', photon_flux_error='1.61e-07', dlogl='1.89e-01', energy_flux='6.27e-05', photon_flux2='2.76e-07', job_status='DONE', time_completed='2021-09-08 01:30:14.057445', photon_index_error2='0.63', photon_index2='2.96', ts='11.22', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='2.25e-05', EG='1.40', time_epoch_completed='1631089814.06', return_code='0', job_id='731602', GAL2='1.01', EG2='1.35', return_code2='0', energy_flux_error='4.22e-05', photon_flux_error2='1.15e-07', ts2='11.68', photon_index='2.60' WHERE bin_id='1029' AND source_name='4FGL J1331.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:30:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 731602: <4FGL_J1331.2-1325_daily_bin1029> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1331.2-1325_daily_bin1029 202.819 -13.4282 506044801 506304001 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 :                                   655.20 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             252.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            883 sec.

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

