/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 51 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 = 7359
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1331.2-1325_daily_bin1403
RA = 202.819, Dec = -13.4282
tmin = 602985601, tmax = 603244801
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='733289', job_status='RUN', time_executed='2021-09-08 01:24:14.690529', time_epoch_executed='1631089454.69' WHERE source_name='4FGL J1331.2-1325' and cadence='daily' and bin_id='1403'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/733289

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/733289/ft1_4FGL_J1331.2-1325_daily_bin1403.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/733289/ft2_4FGL_J1331.2-1325_daily_bin1403.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/733289/ft1_4FGL_J1331.2-1325_daily_bin1403.fits outfile=/scratch/kocevski/733289/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1403.fits ra=202.819 dec=-13.4282 rad=12.0 tmin=602985601.0 tmax=603244801.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.42
user 2.86
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/733289/ft1_filtered_4FGL_J1331.2-1325_daily_bin1403.fits" evtable="EVENTS" scfile=/scratch/kocevski/733289/ft2_4FGL_J1331.2-1325_daily_bin1403.fits sctable="SC_DATA" outfile=/scratch/kocevski/733289/ltcube_602985601_603244801_4FGL_J1331.2-1325_daily_bin1403.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/733289/ft2_4FGL_J1331.2-1325_daily_bin1403.fits
.....................!
real 18.26
user 17.34
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/733289/ft1_filtered_4FGL_J1331.2-1325_daily_bin1403.fits evtable="EVENTS" scfile=/scratch/kocevski/733289/ft2_4FGL_J1331.2-1325_daily_bin1403.fits sctable="SC_DATA" expcube=/scratch/kocevski/733289/ltcube_602985601_603244801_4FGL_J1331.2-1325_daily_bin1403.fits outfile=/scratch/kocevski/733289/expmap_602985601_603244801_4FGL_J1331.2-1325_daily_bin1403.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/733289/ltcube_602985601_603244801_4FGL_J1331.2-1325_daily_bin1403.fits
.....................!
real 193.37
user 187.44
sys 4.84

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/733289/ft1_filtered_4FGL_J1331.2-1325_daily_bin1403.fits scfile=/scratch/kocevski/733289/ft2_4FGL_J1331.2-1325_daily_bin1403.fits outfile=/scratch/kocevski/733289/cmap_602985601_603244801_4FGL_J1331.2-1325_daily_bin1403.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.57
user 0.40
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/733289/ft1_filtered_4FGL_J1331.2-1325_daily_bin1403.fits evtable="EVENTS" scfile=/scratch/kocevski/733289/ft2_4FGL_J1331.2-1325_daily_bin1403.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/733289/Model_4FGL_J1331.2-1325_daily_bin1403.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/733289/ft1_filtered_4FGL_J1331.2-1325_daily_bin1403.fits.....................!
real 62.61
user 60.99
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8782       1.0000         .10000E-03   10000.    
     2 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    27.653       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .57271E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .74990E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.457       1.0000         .10000E-03   10000.    
    11 'norm      '    .70627       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    13.278       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11465E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    50.403       1.0000         .10000E-03   10000.    
    16 'norm      '    22.529       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.539       1.0000         .10000E-03   10000.    
    18 'norm      '    3.1610       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.3344       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.7402       1.0000         .10000E-03   10000.    
    22 'norm      '    1.2963       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4866       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .67345       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=   7541.836     FROM MIGRAD    STATUS=CONVERGED    563 CALLS     2773 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8782        .42514       -.10022E-07    .11162E-02
   2  norm          .10000E-03    14.256        .89255E-05** at limit **
   3  norm          27.649        10.372       -.37950E-06   -.95319E-04
   4  Prefactor     .10000E-03    26.934       -.16184E-04** at limit **
   5  norm          .10000E-03    1.3394       -.26514E-06** at limit **
   6  norm          .10169E-03    5.2143       -.12485E-05** at limit **
   7  norm          .10000E-03    2.7794        .21046E-06** at limit **
   8  Prefactor     .10000E-03    12.750       -.76483E-05** at limit **
   9  Prefactor     .10000E-03    3.6225       -.13154E-06** at limit **
  10  Prefactor     16.475        20.148        .14791E-06    .37567E-04
  11  norm          .70575        1.4374       -.22977E-06   -.13015E-02
  12  norm          .10000E-03    3.8764       -.56746E-07** at limit **
  13  norm          13.279        8.0814       -.32680E-07   -.19469E-05
  14  Prefactor     .10000E-03    32.083        .17524E-04** at limit **
  15  Prefactor     50.391        29.388       -.54623E-05   -.98854E-04
  16  norm          22.501        60.811       -.47822E-04    .45663E-05
  17  Prefactor     12.541        12.057       -.47394E-06   -.66507E-03
  18  norm          3.1607        3.7248       -.66808E-06   -.47946E-03
  19  Prefactor     2.3344        3.0887       -.31765E-06   -.38087E-03
  20  Prefactor     .10000E-03    10.465        .73042E-06** at limit **
  21  norm          4.7404        4.3992       -.18520E-06   -.43392E-04
  22  norm          1.2963        1.7115       -.19008E-06   -.70337E-03
  23  Normalizat    1.4866        .22413        .10599E-05   -.47375E-04
  24  Prefactor     .67343        .10874        .13831E-05   -.18182E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.87819
  norm       = 0.000100001
  norm       = 27.6487
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000101685
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.4745
  norm       = 0.70575
  norm       = 0.0001
  norm       = 13.2788
  Prefactor  = 0.0001
  Prefactor  = 50.3913
  norm       = 22.5007
  Prefactor  = 12.5406
  norm       = 3.16071
  Prefactor  = 2.33435
  Prefactor  = 0.0001
  norm       = 4.74042
  norm       = 1.29629
  Normalizat = 1.48663
  Prefactor  = 0.673434
 **********
 **   18 **HESSE 
 **********

 FCN=   7541.836     FROM HESSE     STATUS=OK           411 CALLS     3184 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8782        .42624        .26107E-04   -1.5434    
   2  norm          .10000E-03    14.762        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          27.649        10.328        .76183E-04   -1.4656    
   4  Prefactor     .10000E-03    26.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.5325        .19254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10169E-03    8.2401        .70468E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.7798        .14140E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.278        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.6372        .16138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     16.475        20.004        .98728E-04   -1.4896    
  11  norm          .70575        1.4204        .13933E-03   -1.5540    
  12  norm          .10000E-03    3.9013        .32805E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          13.279        8.0569        .10993E-03   -1.4979    
  14  Prefactor     .10000E-03    32.543        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     50.391        29.357        .56487E-04   -1.4287    
  16  norm          22.501        60.599        .84388E-04   -1.4759    
  17  Prefactor     12.541        12.001        .11312E-03   -1.5000    
  18  norm          3.1607        3.7203        .17453E-03   -1.5352    
  19  Prefactor     2.3344        3.0718        .16728E-03   -1.5402    
  20  Prefactor     .10000E-03    10.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.7404        4.3935        .16839E-03   -1.5272    
  22  norm          1.2963        1.6853        .12643E-03   -1.5480    
  23  Normalizat    1.4866        .26293        .29620E-03   -.78155    
  24  Prefactor     .67343        .12643        .21313E-03   -1.0458    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20803e-09
Minuit parameter uncertainties:
  1  0.426236
  2  0.000235004
  3  10.3284
  4  2.42757e-06
  5  2.16485e-05
  6  0.00745445
  7  2.70801e-07
  8  6.13341e-05
  9  4.3328e-06
  10  20.0119
  11  1.42046
  12  2.03936e-05
  13  8.05754
  14  0.000105766
  15  29.3659
  16  60.7658
  17  12.0034
  18  3.72054
  19  3.07203
  20  5.22449e-06
  21  4.39379
  22  1.68534
  23  0.263175
  24  0.126486
Done.

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

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  1.647e+01  2.001e+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:  6.734e-01  1.265e-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.487e+00  2.632e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.02
Ra Dec: 202.819 -13.428
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 5.46e-08 +/- 6.63e-08
Energy Flux (Fixed Index): 1.43e-05 +/- 1.74e-05

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

Saving results to:
/scratch/kocevski/733289/likelihoodResults_602985601_603244801_4FGL_J1331.2-1325_daily_bin1403.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) = 7540.71436318
delta logL = 1.12195776238

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7540.69253743
delta logL = 1.14378351334

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9659       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9025       1.0000          .0000       10.000    
     3 'Normalizat'    1.4020       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70159       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=   7540.693     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      261 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9561        28.898        .58945E-02    .13372E-02
   2  Index         3.9040        2.3804        .11165        .33922E-03
   3  Normalizat    1.4023        .69740E-01    .68500E-01    .18503E-03
   4  Prefactor     .70147        .34894E-01    .42422E-01   -.86710E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.95605
  Index      = 3.904
  Normalizat = 1.40225
  Prefactor  = 0.701471
 **********
 **   18 **HESSE 
 **********

 FCN=   7540.693     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      292 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9561        54.263        .86941E-04   -1.5364    
   2  Index         3.9040        3.6471        .41153E-02   -.22099    
   3  Normalizat    1.4023        .24247        .30305E-03   -.80564    
   4  Prefactor     .70147        .12179        .20915E-03   -1.0347    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.30381e-09
Minuit parameter uncertainties:
  1  25.3564
  2  4.1196
  3  0.242667
  4  0.121834
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/733289': 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) = 7540.69253582
delta logL = 1.14378511559

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  2.956e+00  2.536e+01  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  3.904e+00  4.120e+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:  7.015e-01  1.218e-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.402e+00  2.427e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.52
Ra Dec: 202.819 -13.428
Photon Index (Free Index): 3.90 +/- 4.12
Photon Flux (Free Index): 1.26e-07 +/- 7.84e-08
Energy Flux (Free Index): 1.92e-05 +/- 1.91e-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/733289/cmap_HighResolution_602985601_603244801_4FGL_J1331.2-1325_daily_bin1403.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.35e-02', comment='SUCCESS', photon_flux='5.46e-08', energy_flux2='1.92e-05', photon_flux_error='6.63e-08', dlogl='1.14e+00', energy_flux='1.43e-05', photon_flux2='1.26e-07', job_status='DONE', time_completed='2021-09-08 01:37:24.625796', photon_index_error2='4.12', photon_index2='3.90', ts='1.02', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', photon_flux_upper_limit='1.72e-07', energy_flux_error2='1.91e-05', EG='1.49', time_epoch_completed='1631090244.63', return_code='0', job_id='733289', GAL2='0.70', EG2='1.40', return_code2='102', energy_flux_error='1.74e-05', photon_flux_error2='7.84e-08', ts2='3.52', photon_index='2.60' WHERE bin_id='1403' AND source_name='4FGL J1331.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:37:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0146>
Subject: Job 733289: <4FGL_J1331.2-1325_daily_bin1403> in cluster <slac> Done

Job <4FGL_J1331.2-1325_daily_bin1403> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep  8 01:21:06 2021
Job was executed on host(s) <bullet0146>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:22:38 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:22:38 2021
Terminated at Wed Sep  8 01:37:25 2021
Results reported at Wed Sep  8 01:37:25 2021

Your job looked like:

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

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

