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


Performing analysis on: 4FGL_J1331.2-1325_daily_bin1258
RA = 202.819, Dec = -13.4282
tmin = 565401601, tmax = 565660801
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='733101', job_status='RUN', time_executed='2021-09-08 01:23:45.261804', time_epoch_executed='1631089425.26' WHERE source_name='4FGL J1331.2-1325' and cadence='daily' and bin_id='1258'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/733101

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/733101/ft1_4FGL_J1331.2-1325_daily_bin1258.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/733101/ft2_4FGL_J1331.2-1325_daily_bin1258.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/733101/ft1_4FGL_J1331.2-1325_daily_bin1258.fits outfile=/scratch/kocevski/733101/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1258.fits ra=202.819 dec=-13.4282 rad=12.0 tmin=565401601.0 tmax=565660801.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.89
user 3.41
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/733101/ft1_filtered_4FGL_J1331.2-1325_daily_bin1258.fits" evtable="EVENTS" scfile=/scratch/kocevski/733101/ft2_4FGL_J1331.2-1325_daily_bin1258.fits sctable="SC_DATA" outfile=/scratch/kocevski/733101/ltcube_565401601_565660801_4FGL_J1331.2-1325_daily_bin1258.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/733101/ft2_4FGL_J1331.2-1325_daily_bin1258.fits
.....................!
real 16.72
user 15.55
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/733101/ft1_filtered_4FGL_J1331.2-1325_daily_bin1258.fits evtable="EVENTS" scfile=/scratch/kocevski/733101/ft2_4FGL_J1331.2-1325_daily_bin1258.fits sctable="SC_DATA" expcube=/scratch/kocevski/733101/ltcube_565401601_565660801_4FGL_J1331.2-1325_daily_bin1258.fits outfile=/scratch/kocevski/733101/expmap_565401601_565660801_4FGL_J1331.2-1325_daily_bin1258.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/733101/ltcube_565401601_565660801_4FGL_J1331.2-1325_daily_bin1258.fits
.....................!
real 193.85
user 186.95
sys 4.87

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/733101/ft1_filtered_4FGL_J1331.2-1325_daily_bin1258.fits scfile=/scratch/kocevski/733101/ft2_4FGL_J1331.2-1325_daily_bin1258.fits outfile=/scratch/kocevski/733101/cmap_565401601_565660801_4FGL_J1331.2-1325_daily_bin1258.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.62
user 0.40
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5150       1.0000         .10000E-03   10000.    
     2 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10354E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.6395       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.9899       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.6559       1.0000         .10000E-03   10000.    
    11 'norm      '    .10114E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    19.433       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.5292       1.0000         .10000E-03   10000.    
    16 'norm      '    47.670       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.4474       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .56042E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    1.4261       1.0000         .10000E-03   10000.    
    22 'norm      '    7.3001       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5909       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .91340       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=   7800.794     FROM MIGRAD    STATUS=CONVERGED    552 CALLS     2730 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5152        .54299       -.12711E-07   -.25853E-03
   2  norm          .10000E-03    6.7093       -.37413E-05** at limit **
   3  norm          .10000E-03    2.3189       -.74663E-07** at limit **
   4  Prefactor     .10000E-03    109.81        .25491E-05** at limit **
   5  norm          .10000E-03    .76902        .12244E-07** at limit **
   6  norm          .10000E-03    6.9499        .41403E-05** at limit **
   7  norm          .10000E-03    4.8387        .98385E-07** at limit **
   8  Prefactor     6.6392        11.862       -.54528E-05   -.80645E-04
   9  Prefactor     2.9940        7.9500       -.69533E-05   -.33532E-03
  10  Prefactor     2.6538        12.088        .84522E-05   -.14152E-03
  11  norm          .10000E-03    .93350        .42531E-06** at limit **
  12  norm          .10000E-03    1.9747       -.61108E-06** at limit **
  13  norm          19.427        8.7897        .35499E-05   -.89527E-04
  14  Prefactor     .10000E-03    19.198       -.45013E-06** at limit **
  15  Prefactor     6.5343        26.501       -.34512E-05   -.17238E-04
  16  norm          47.599        56.522       -.50487E-04   -.19702E-04
  17  Prefactor     .10000E-03    8.7196       -.65373E-06** at limit **
  18  norm          .10000E-03    1.6086       -.81300E-07** at limit **
  19  Prefactor     2.4435        6.1800        .18877E-05   -.87818E-03
  20  Prefactor     .10001E-03    243.50        .10094E-04** at limit **
  21  norm          1.4262        8.8542        .24203E-05   -.85621E-03
  22  norm          7.3003        3.7403       -.29952E-06   -.25084E-03
  23  Normalizat    1.5911        .25211        .34996E-06   -.12671E-03
  24  Prefactor     .91321        .12501        .44406E-06   -.12152E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.51518
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.63916
  Prefactor  = 2.99396
  Prefactor  = 2.65376
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 19.4267
  Prefactor  = 0.0001
  Prefactor  = 6.53434
  norm       = 47.5988
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.44355
  Prefactor  = 0.000100006
  norm       = 1.42619
  norm       = 7.30029
  Normalizat = 1.59107
  Prefactor  = 0.913212
 **********
 **   18 **HESSE 
 **********

 FCN=   7800.794     FROM HESSE     STATUS=OK           399 CALLS     3129 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5152        .54500        .21791E-04   -1.5283    
   2  norm          .10000E-03    6.8376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.3330        .13134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    110.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .77192        .75631E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    7.0063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.8480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.6392        11.832        .15573E-03   -1.5193    
   9  Prefactor     2.9940        7.9590        .23477E-03   -1.5362    
  10  Prefactor     2.6538        11.802        .25012E-03   -1.5382    
  11  norm          .10000E-03    1.9320        .16347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.9834        .12066E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          19.427        8.7631        .90857E-04   -1.4826    
  14  Prefactor     .10000E-03    19.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.5343        26.496        .15706E-03   -1.5197    
  16  norm          47.599        56.599        .29038E-03   -1.4327    
  17  Prefactor     .10000E-03    8.7892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.6139        .10939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.4435        6.0007        .26149E-03   -1.5395    
  20  Prefactor     .10001E-03    248.83        .19041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.4262        8.3175        .36197E-03   -1.5469    
  22  norm          7.3003        3.7474        .11703E-03   -1.5168    
  23  Normalizat    1.5911        .29409        .33856E-03   -.75250    
  24  Prefactor     .91321        .14696        .22272E-03   -.95681    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.47952e-09
Minuit parameter uncertainties:
  1  0.544997
  2  1.23593e-05
  3  8.59081e-07
  4  2.0949e-05
  5  4.8837e-07
  6  4.70857e-06
  7  1.16759e-05
  8  11.8363
  9  7.96185
  10  11.1961
  11  5.92733e-05
  12  7.95524e-05
  13  8.76365
  14  4.63606e-05
  15  26.3362
  16  56.6632
  17  8.56605e-06
  18  5.70866e-06
  19  6.00221
  20  0.00251565
  21  6.88955
  22  3.74756
  23  0.294411
  24  0.147021
Done.

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

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  2.654e+00  1.120e+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.132e-01  1.470e-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.591e+00  2.944e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.07
Ra Dec: 202.819 -13.428
Photon Flux Upper Limit: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/733101/likelihoodResults_565401601_565660801_4FGL_J1331.2-1325_daily_bin1258.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) = 7800.76594681
delta logL = 0.0278978289662

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7800.74495369
delta logL = 0.0488909426658

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7800.745     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      275 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7827        16.682        .83389E-03    .37205E-04
   2  Index         2.1336        1.2769        .91107E-02    .30377E-04
   3  Normalizat    1.5936        .28007        .33833E-03   -.87367E-06
   4  Prefactor     .91145        .14567        .22288E-03   -.45908E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.78268
  Index      = 2.13361
  Normalizat = 1.59363
  Prefactor  = 0.911451
 **********
 **   18 **HESSE 
 **********

 FCN=   7800.745     FROM HESSE     STATUS=OK            27 CALLS      302 TOTAL
                     EDM=   .33E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7827        16.489        .16678E-03   -1.5227    
   2  Index         2.1336        1.2629        .18221E-02   -.61050    
   3  Normalizat    1.5936        .28031        .13533E-04   -.75180    
   4  Prefactor     .91145        .14580        .89151E-05   -.95742    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.32649e-14
Minuit parameter uncertainties:
  1  16.5017
  2  1.28379
  3  0.28059
  4  0.145865
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/733101': 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) = 7800.7449529
delta logL = 0.0488917395487

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  5.783e+00  1.650e+01  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  2.134e+00  1.284e+00  0.000e+00  1.000e+01 (-1.000e+00)
289        Scale:  1.117e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
567    Prefactor:  9.115e-01  1.459e-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.594e+00  2.806e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.07
Ra Dec: 202.819 -13.428

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/733101/cmap_HighResolution_565401601_565660801_4FGL_J1331.2-1325_daily_bin1258.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.42e-03', job_status='DONE', photon_flux_upper_limit='1.20e-07', time_completed='2021-09-08 01:36:49.506818', job_id='733101', GAL2='0.91', fit_tolerance='1e-08', EG2='1.59', EG='1.59', time_epoch_completed='1631090209.51', return_code2='0', ts='0.07', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='4.89e-02', ts2='0.17', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1258' AND source_name='4FGL J1331.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:36:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 733101: <4FGL_J1331.2-1325_daily_bin1258> in cluster <slac> Done

Job <4FGL_J1331.2-1325_daily_bin1258> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep  8 01:20:48 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:22:13 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:13 2021
Terminated at Wed Sep  8 01:36:50 2021
Results reported at Wed Sep  8 01:36:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1331.2-1325_daily_bin1258 202.819 -13.4282 565401601 565660801 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.27 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             317.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            962 sec.

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

