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


Performing analysis on: 4FGL_J1331.2-1325_daily_bin1047
RA = 202.819, Dec = -13.4282
tmin = 510710401, tmax = 510969601
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='731631', job_status='RUN', time_executed='2021-09-08 01:18:48.358554', time_epoch_executed='1631089128.36' WHERE source_name='4FGL J1331.2-1325' and cadence='daily' and bin_id='1047'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/731631

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/731631/ft1_4FGL_J1331.2-1325_daily_bin1047.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/731631/ft2_4FGL_J1331.2-1325_daily_bin1047.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/731631/ft1_4FGL_J1331.2-1325_daily_bin1047.fits outfile=/scratch/kocevski/731631/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1047.fits ra=202.819 dec=-13.4282 rad=12.0 tmin=510710401.0 tmax=510969601.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.57
user 3.25
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/731631/ft1_filtered_4FGL_J1331.2-1325_daily_bin1047.fits" evtable="EVENTS" scfile=/scratch/kocevski/731631/ft2_4FGL_J1331.2-1325_daily_bin1047.fits sctable="SC_DATA" outfile=/scratch/kocevski/731631/ltcube_510710401_510969601_4FGL_J1331.2-1325_daily_bin1047.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/731631/ft2_4FGL_J1331.2-1325_daily_bin1047.fits
.....................!
real 14.55
user 14.10
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/731631/ft1_filtered_4FGL_J1331.2-1325_daily_bin1047.fits evtable="EVENTS" scfile=/scratch/kocevski/731631/ft2_4FGL_J1331.2-1325_daily_bin1047.fits sctable="SC_DATA" expcube=/scratch/kocevski/731631/ltcube_510710401_510969601_4FGL_J1331.2-1325_daily_bin1047.fits outfile=/scratch/kocevski/731631/expmap_510710401_510969601_4FGL_J1331.2-1325_daily_bin1047.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/731631/ltcube_510710401_510969601_4FGL_J1331.2-1325_daily_bin1047.fits
.....................!
real 192.36
user 186.95
sys 4.55

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/731631/ft1_filtered_4FGL_J1331.2-1325_daily_bin1047.fits scfile=/scratch/kocevski/731631/ft2_4FGL_J1331.2-1325_daily_bin1047.fits outfile=/scratch/kocevski/731631/cmap_510710401_510969601_4FGL_J1331.2-1325_daily_bin1047.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.93
user 0.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/731631/ft1_filtered_4FGL_J1331.2-1325_daily_bin1047.fits scfile=/scratch/kocevski/731631/ft2_4FGL_J1331.2-1325_daily_bin1047.fits outfile=/scratch/kocevski/731631/cmap_HighResolution_510710401_510969601_4FGL_J1331.2-1325_daily_bin1047.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 1.04
user 0.41
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0186       1.0000         .10000E-03   10000.    
     2 'norm      '    .21316       1.0000         .10000E-03   10000.    
     3 'norm      '    6.5720       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.9260       1.0000         .10000E-03   10000.    
     6 'norm      '    19.075       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.286       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11439E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.0907       1.0000         .10000E-03   10000.    
    12 'norm      '    12.446       1.0000         .10000E-03   10000.    
    13 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.5461       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12122E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10180E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.989       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4544       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .86001       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=   6437.074     FROM MIGRAD    STATUS=CONVERGED    545 CALLS     2335 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0187        .57177        .49884E-02   -.78085E-04
   2  norm          .22090        6.9782        .10038       -.12563E-03
   3  norm          6.5702        8.7551        .39135E-02    .24566E-02
   4  Prefactor     .10010E-03    35.518        .90712E-02** at limit **
   5  norm          1.9256        2.2637        .74837E-02    .19467E-03
   6  norm          19.076        14.910        .22926E-02   -.30968E-04
   7  norm          .10000E-03    4.2256        .90712E-02** at limit **
   8  Prefactor     .10000E-03    3.2000        .90712E-02** at limit **
   9  Prefactor     10.288        10.097        .31233E-02    .99399E-04
  10  Prefactor     .10018E-03    42.221        .90712E-02** at limit **
  11  norm          2.0911        1.8238        .71377E-02    .33990E-03
  12  norm          12.458        5.2132        .28387E-02    .15777E-02
  13  norm          .10000E-03    9.1573        .90712E-02** at limit **
  14  Prefactor     9.5341        18.115        .32426E-02    .55963E-04
  15  Prefactor     .10000E-03    10.152        .90712E-02** at limit **
  16  norm          .10001E-03    59.118        .90712E-02** at limit **
  17  Prefactor     .10000E-03    10.341        .90712E-02** at limit **
  18  norm          .10000E-03    6.5608        .90712E-02** at limit **
  19  Prefactor     12.988        8.3669        .27786E-02    .11100E-03
  20  Prefactor     .10000E-03    25.169        .90712E-02** at limit **
  21  norm          .10000E-03    3.4674        .90712E-02** at limit **
  22  norm          .10000E-03    1.6452        .90712E-02** at limit **
  23  Normalizat    1.4541        .27882        .77746E-01   -.50407E-04
  24  Prefactor     .86017        .13611        .44493E-01   -.87151E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.01866
  norm       = 0.220897
  norm       = 6.5702
  Prefactor  = 0.000100103
  norm       = 1.92559
  norm       = 19.0759
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2877
  Prefactor  = 0.000100183
  norm       = 2.09111
  norm       = 12.4578
  norm       = 0.0001
  Prefactor  = 9.5341
  Prefactor  = 0.000100002
  norm       = 0.000100015
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 12.9884
  Prefactor  = 0.000100003
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.45408
  Prefactor  = 0.860173
 **********
 **   18 **HESSE 
 **********

 FCN=   6437.074     FROM HESSE     STATUS=OK           401 CALLS     2736 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0187        .57356        .22037E-04   -1.5307    
   2  norm          .22090        108.62        .39878E-02   -1.5614    
   3  norm          6.5702        8.7516        .78270E-03   -1.5195    
   4  Prefactor     .10010E-03    35.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.9256        2.2544        .12685E-03   -1.5430    
   6  norm          19.076        14.919        .91704E-04   -1.4834    
   7  norm          .10000E-03    4.2274        .16107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.2053        .14016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.288        10.121        .12493E-03   -1.5066    
  10  Prefactor     .10018E-03    42.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.0911        1.8278        .94935E-04   -1.5419    
  12  norm          12.458        5.1833        .56003E-03   -1.5002    
  13  norm          .10000E-03    9.2843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.5341        18.119        .12970E-03   -1.5090    
  15  Prefactor     .10000E-03    10.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10001E-03    59.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    6.7313        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.988        8.4154        .11114E-03   -1.4987    
  20  Prefactor     .10000E-03    25.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.4765        .14581E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.7252        .20089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.4541        .33186        .34408E-03   -.79077    
  24  Prefactor     .86017        .16086        .22226E-03   -.97547    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16381e-08
Minuit parameter uncertainties:
  1  0.573566
  2  9.81242
  3  8.75334
  4  0.00382511
  5  2.25452
  6  14.9217
  7  1.21455e-05
  8  8.42824e-06
  9  10.1226
  10  0.00557681
  11  1.82787
  12  5.18348
  13  6.69311e-05
  14  18.1296
  15  0.000302844
  16  0.00188126
  17  0.000277073
  18  3.42867e-05
  19  8.41614
  20  0.000517445
  21  1.06601e-05
  22  2.57821e-06
  23  0.332359
  24  0.160952
Done.

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

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  1.002e-04  5.577e-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:  8.602e-01  1.610e-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.454e+00  3.324e-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.60e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.25e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/731631/likelihoodResults_510710401_510969601_4FGL_J1331.2-1325_daily_bin1047.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) = 6437.07438276
delta logL = -0.000112109878501

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6437.07427067
delta logL = -2.72821125691e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8605       1.0000          .0000       10.000    
     3 'Normalizat'    1.4541       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86017       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=   6437.074     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      236 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.212        .90712E-02** at limit **
   2  Index         2.8521        5.3467        .50000        .17492E-05
   3  Normalizat    1.4541        .45894E-02    .77746E-01    .25256E-04
   4  Prefactor     .86017        .23661E-02    .44495E-01    .24872E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.85215
  Normalizat = 1.45408
  Prefactor  = 0.860173
 **********
 **   18 **HESSE 
 **********

 FCN=   6437.074     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      269 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    946.28        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8521        6.1454        .50000       -.44402    
   3  Normalizat    1.4541        .33794E-01    .34408E-03   -.79077    
   4  Prefactor     .86017        .17439E-01    .22226E-03   -.97547    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.05073e-08
Minuit parameter uncertainties:
  1  0.000923075
  2  608.071
  3  0.0337943
  4  0.0174393
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/731631': 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) = 6437.07427064
delta logL = 2.62934918283e-09

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  9.231e-04  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  2.852e+00  6.081e+02  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:  8.602e-01  1.744e-02  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.454e+00  3.379e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/731631/cmap_HighResolution_510710401_510969601_4FGL_J1331.2-1325_daily_bin1047.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.25e-02', job_status='DONE', photon_flux_upper_limit='1.60e-07', time_completed='2021-09-08 01:30:04.580259', job_id='731631', GAL2='0.86', fit_tolerance='1e-08', EG2='1.45', EG='1.45', time_epoch_completed='1631089804.58', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='2.63e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1047' AND source_name='4FGL J1331.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:30:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0022>
Subject: Job 731631: <4FGL_J1331.2-1325_daily_bin1047> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1331.2-1325_daily_bin1047 202.819 -13.4282 510710401 510969601 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 :                                   661.39 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             270.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            872 sec.

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

