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


Performing analysis on: 4FGL_J1331.2-1325_daily_bin1588
RA = 202.819, Dec = -13.4282
tmin = 650937601, tmax = 651196801
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='734566', job_status='RUN', time_executed='2021-09-08 01:28:41.751139', time_epoch_executed='1631089721.75' WHERE source_name='4FGL J1331.2-1325' and cadence='daily' and bin_id='1588'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/734566

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/734566/ft1_4FGL_J1331.2-1325_daily_bin1588.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/734566/ft2_4FGL_J1331.2-1325_daily_bin1588.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/734566/ft1_4FGL_J1331.2-1325_daily_bin1588.fits outfile=/scratch/kocevski/734566/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1588.fits ra=202.819 dec=-13.4282 rad=12.0 tmin=650937601.0 tmax=651196801.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.65
user 3.42
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/734566/ft1_filtered_4FGL_J1331.2-1325_daily_bin1588.fits" evtable="EVENTS" scfile=/scratch/kocevski/734566/ft2_4FGL_J1331.2-1325_daily_bin1588.fits sctable="SC_DATA" outfile=/scratch/kocevski/734566/ltcube_650937601_651196801_4FGL_J1331.2-1325_daily_bin1588.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/734566/ft2_4FGL_J1331.2-1325_daily_bin1588.fits
.....................!
real 16.19
user 15.70
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/734566/ft1_filtered_4FGL_J1331.2-1325_daily_bin1588.fits evtable="EVENTS" scfile=/scratch/kocevski/734566/ft2_4FGL_J1331.2-1325_daily_bin1588.fits sctable="SC_DATA" expcube=/scratch/kocevski/734566/ltcube_650937601_651196801_4FGL_J1331.2-1325_daily_bin1588.fits outfile=/scratch/kocevski/734566/expmap_650937601_651196801_4FGL_J1331.2-1325_daily_bin1588.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/734566/ltcube_650937601_651196801_4FGL_J1331.2-1325_daily_bin1588.fits
.....................!
real 194.55
user 188.21
sys 4.79

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 171 point sources and 0 extended sources

Setting source of interest to:
4FGL J1331.2-1325 @ 202.819 -13.4282

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/734566/ft1_filtered_4FGL_J1331.2-1325_daily_bin1588.fits scfile=/scratch/kocevski/734566/ft2_4FGL_J1331.2-1325_daily_bin1588.fits outfile=/scratch/kocevski/734566/cmap_650937601_651196801_4FGL_J1331.2-1325_daily_bin1588.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.87
user 0.40
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/734566/ft1_filtered_4FGL_J1331.2-1325_daily_bin1588.fits scfile=/scratch/kocevski/734566/ft2_4FGL_J1331.2-1325_daily_bin1588.fits outfile=/scratch/kocevski/734566/cmap_HighResolution_650937601_651196801_4FGL_J1331.2-1325_daily_bin1588.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.74
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/734566/ft1_filtered_4FGL_J1331.2-1325_daily_bin1588.fits evtable="EVENTS" scfile=/scratch/kocevski/734566/ft2_4FGL_J1331.2-1325_daily_bin1588.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/734566/Model_4FGL_J1331.2-1325_daily_bin1588.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/734566/ft1_filtered_4FGL_J1331.2-1325_daily_bin1588.fits.....................!
real 78.60
user 76.41
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.7246       1.0000         .10000E-03   10000.    
     2 'norm      '    2.6985       1.0000         .10000E-03   10000.    
     3 'norm      '    3.2725       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10722E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .95475       1.0000         .10000E-03   10000.    
     6 'norm      '    35.479       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.9128       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.333       1.0000         .10000E-03   10000.    
    11 'norm      '    5.1206       1.0000         .10000E-03   10000.    
    12 'norm      '    4.7237       1.0000         .10000E-03   10000.    
    13 'norm      '    11.310       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.6487       1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.171       1.0000         .10000E-03   10000.    
    16 'norm      '    14.272       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .45448E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.7264       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .18652       1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.344       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.6597       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1488       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .91494       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5700E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9980.243     FROM MIGRAD    STATUS=CONVERGED     77 CALLS     2275 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.7245        .50109       -.38532E-07    .96779E-04
   2  norm          2.6968        1.5770       -.40078E-05   -.15450E-02
   3  norm          3.2716        3.3409       -.68997E-05   -.83790E-03
   4  Prefactor     .10029E-03    72.176       -.19252E-04** at limit **
   5  norm          .95679        1.4400        .14751E-06    .34907E-04
   6  norm          35.481        1.0479        .16529E-07    .11174E-02
   7  norm          .10000E-03    3.4703       -.26544E-06** at limit **
   8  Prefactor     .10000E-03    3.3223        .11886E-05** at limit **
   9  Prefactor     6.9119        1.2922       -.19337E-05   -.51904E-03
  10  Prefactor     12.331        1.1171        .84939E-06   -.16572E-03
  11  norm          5.1202        1.7405       -.17382E-06   -.35095E-04
  12  norm          4.7239        2.8629        .64586E-06    .90769E-03
  13  norm          11.311        1.8240        .22502E-05    .17146E-02
  14  Prefactor     1.6963        15.800       -.32934E-04   -.20620E-03
  15  Prefactor     21.192        2.0085        .81286E-06   -.22241E-02
  16  norm          14.290        2.8519        .39412E-05   -.84711E-02
  17  Prefactor     .10000E-03    14.204       -.37325E-04** at limit **
  18  norm          3.7251        1.1236        .12060E-05   -.10497E-03
  19  Prefactor     .17813        8.5728        .16317E-04    .44324E-03
  20  Prefactor     20.354        1.7922        .16973E-05   -.44196E-02
  21  norm          .10000E-03    1.3916        .53022E-06** at limit **
  22  norm          5.6593        2.4664        .29251E-06   -.20270E-03
  23  Normalizat    1.1488        .23611        .40501E-06    .35977E-05
  24  Prefactor     .91501        .12193        .30618E-05    .15745E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.72451
  norm       = 2.69682
  norm       = 3.27163
  Prefactor  = 0.000100292
  norm       = 0.956794
  norm       = 35.4809
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.91188
  Prefactor  = 12.3312
  norm       = 5.12022
  norm       = 4.72392
  norm       = 11.3105
  Prefactor  = 1.69628
  Prefactor  = 21.1919
  norm       = 14.29
  Prefactor  = 0.000100001
  norm       = 3.72508
  Prefactor  = 0.17813
  Prefactor  = 20.3544
  norm       = 0.0001
  norm       = 5.65931
  Normalizat = 1.1488
  Prefactor  = 0.91501
 **********
 **   18 **HESSE 
 **********

 FCN=   9980.243     FROM HESSE     STATUS=OK           471 CALLS     2746 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.7245        .50126        .46280E-02   -1.5273    
   2  norm          2.6968        6.2644        .61997E-02   -1.5380    
   3  norm          3.2716        3.3533        .55962E-02   -1.5346    
   4  Prefactor     .10029E-03    72.668        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .95679        1.7425        .33548E-01   -1.5512    
   6  norm          35.481        13.343        .16820E-02   -1.4516    
   7  norm          .10000E-03    3.4676        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.2966        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.9119        6.7036        .38148E-02   -1.5182    
  10  Prefactor     12.331        11.758        .28516E-02   -1.5006    
  11  norm          5.1202        1.7402        .44418E-02   -1.5255    
  12  norm          4.7239        3.2250        .46285E-02   -1.5273    
  13  norm          11.311        6.8074        .29781E-02   -1.5035    
  14  Prefactor     1.6963        19.435        .82216E-02   -1.5447    
  15  Prefactor     21.192        21.045        .21762E-02   -1.4787    
  16  norm          14.290        43.051        .26505E-02   -1.4952    
  17  Prefactor     .10000E-03    5.2409        .74662E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.7251        4.2607        .52295E-02   -1.5322    
  19  Prefactor     .17813        1.5561        .65031E-01   -1.5624    
  20  Prefactor     20.354        29.037        .22200E-02   -1.4805    
  21  norm          .10000E-03    1.3881        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.6593        2.4688        .42213E-02   -1.5232    
  23  Normalizat    1.1488        .20896        .79728E-01   -.88200    
  24  Prefactor     .91501        .10601        .45195E-01   -.95619    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60884e-06
Minuit parameter uncertainties:
  1  0.501257
  2  6.26589
  3  3.35347
  4  0.00922079
  5  1.74262
  6  13.3445
  7  2.97113e-05
  8  1.00453e-05
  9  6.70435
  10  11.7604
  11  1.74019
  12  3.22508
  13  6.8079
  14  11.4877
  15  21.0524
  16  43.1443
  17  0.000122459
  18  4.26104
  19  1.05273
  20  29.0576
  21  6.19799e-06
  22  2.46886
  23  0.209111
  24  0.106029
Done.

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

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  1.233e+01  1.176e+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.150e-01  1.060e-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.149e+00  2.091e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.59
Ra Dec: 202.819 -13.428
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 4.09e-08 +/- 3.90e-08
Energy Flux (Fixed Index): 1.07e-05 +/- 1.02e-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) = 9978.91784714
delta logL = 1.32497170033

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9978.88601049
delta logL = 1.35680835045

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.928       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5185       1.0000          .0000       10.000    
     3 'Normalizat'    1.1798       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90670       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=   9978.886     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      244 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.925        18.307        .10036E-03   -.26228E-03
   2  Index         1.5182        .60578        .11169E-01    .10344E-03
   3  Normalizat    1.1798        .22441        .34896E-03    .73067E-03
   4  Prefactor     .90670        .11925        .20717E-03    .10369E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.9247
  Index      = 1.51817
  Normalizat = 1.17979
  Prefactor  = 0.906699
 **********
 **   18 **HESSE 
 **********

 FCN=   9978.886     FROM HESSE     STATUS=OK            25 CALLS      269 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.925        18.825        .20071E-04   -1.4910    
   2  Index         1.5182        .62296        .44675E-03   -.77032    
   3  Normalizat    1.1798        .22458        .69793E-04   -.87230    
   4  Prefactor     .90670        .11934        .41434E-04   -.95907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.23893e-10
Minuit parameter uncertainties:
  1  18.8321
  2  0.626129
  3  0.22476
  4  0.119373
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/734566': 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) = 9978.88601037
delta logL = 1.35680846909

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  1.592e+01  1.883e+01  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  1.518e+00  6.261e-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:  9.067e-01  1.194e-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.180e+00  2.248e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.30
Ra Dec: 202.819 -13.428
Photon Index (Free Index): 1.52 +/- 0.63
Photon Flux (Free Index): 1.16e-08 +/- 1.71e-08
Energy Flux (Free Index): 3.47e-05 +/- 4.79e-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/734566/cmap_HighResolution_650937601_651196801_4FGL_J1331.2-1325_daily_bin1588.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.09e-08', energy_flux2='3.47e-05', photon_flux_error='3.90e-08', dlogl='1.36e+00', energy_flux='1.07e-05', photon_flux2='1.16e-08', job_status='DONE', time_completed='2021-09-08 01:41:36.393906', photon_index_error2='0.63', photon_index2='1.52', ts='4.59', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='4.79e-05', EG='1.15', time_epoch_completed='1631090496.39', return_code='0', job_id='734566', GAL2='0.91', EG2='1.18', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='1.71e-08', ts2='7.30', photon_index='2.60' WHERE bin_id='1588' AND source_name='4FGL J1331.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:41:36 PDT 2021


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

Job <4FGL_J1331.2-1325_daily_bin1588> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  8 01:25:34 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:25:45 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:45 2021
Terminated at Wed Sep  8 01:41:36 2021
Results reported at Wed Sep  8 01:41:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1331.2-1325_daily_bin1588 202.819 -13.4282 650937601 651196801 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 :                                   766.58 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             293.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            962 sec.

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

