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


Performing analysis on: 4FGL_J1331.2-1325_daily_bin1217
RA = 202.819, Dec = -13.4282
tmin = 554774401, tmax = 555033601
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='733037', job_status='RUN', time_executed='2021-09-08 01:23:27.956151', time_epoch_executed='1631089407.96' WHERE source_name='4FGL J1331.2-1325' and cadence='daily' and bin_id='1217'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/733037

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/733037/ft1_4FGL_J1331.2-1325_daily_bin1217.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/733037/ft2_4FGL_J1331.2-1325_daily_bin1217.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/733037/ft1_4FGL_J1331.2-1325_daily_bin1217.fits outfile=/scratch/kocevski/733037/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1217.fits ra=202.819 dec=-13.4282 rad=12.0 tmin=554774401.0 tmax=555033601.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 7.52
user 3.59
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/733037/ft1_filtered_4FGL_J1331.2-1325_daily_bin1217.fits" evtable="EVENTS" scfile=/scratch/kocevski/733037/ft2_4FGL_J1331.2-1325_daily_bin1217.fits sctable="SC_DATA" outfile=/scratch/kocevski/733037/ltcube_554774401_555033601_4FGL_J1331.2-1325_daily_bin1217.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/733037/ft2_4FGL_J1331.2-1325_daily_bin1217.fits
.....................!
real 17.84
user 16.87
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/733037/ft1_filtered_4FGL_J1331.2-1325_daily_bin1217.fits evtable="EVENTS" scfile=/scratch/kocevski/733037/ft2_4FGL_J1331.2-1325_daily_bin1217.fits sctable="SC_DATA" expcube=/scratch/kocevski/733037/ltcube_554774401_555033601_4FGL_J1331.2-1325_daily_bin1217.fits outfile=/scratch/kocevski/733037/expmap_554774401_555033601_4FGL_J1331.2-1325_daily_bin1217.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/733037/ltcube_554774401_555033601_4FGL_J1331.2-1325_daily_bin1217.fits
.....................!
real 197.07
user 188.15
sys 4.17

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/733037/ft1_filtered_4FGL_J1331.2-1325_daily_bin1217.fits scfile=/scratch/kocevski/733037/ft2_4FGL_J1331.2-1325_daily_bin1217.fits outfile=/scratch/kocevski/733037/cmap_554774401_555033601_4FGL_J1331.2-1325_daily_bin1217.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.61
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/733037/ft1_filtered_4FGL_J1331.2-1325_daily_bin1217.fits scfile=/scratch/kocevski/733037/ft2_4FGL_J1331.2-1325_daily_bin1217.fits outfile=/scratch/kocevski/733037/cmap_HighResolution_554774401_555033601_4FGL_J1331.2-1325_daily_bin1217.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.57
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/733037/ft1_filtered_4FGL_J1331.2-1325_daily_bin1217.fits evtable="EVENTS" scfile=/scratch/kocevski/733037/ft2_4FGL_J1331.2-1325_daily_bin1217.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/733037/Model_4FGL_J1331.2-1325_daily_bin1217.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/733037/ft1_filtered_4FGL_J1331.2-1325_daily_bin1217.fits.....................!
real 54.88
user 53.11
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.4129       1.0000         .10000E-03   10000.    
     2 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    12.847       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.6297       1.0000         .10000E-03   10000.    
     6 'norm      '    14.460       1.0000         .10000E-03   10000.    
     7 'norm      '    12.579       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.0212       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.2284       1.0000         .10000E-03   10000.    
    11 'norm      '    .53327       1.0000         .10000E-03   10000.    
    12 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.0146       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    26.363       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .14196E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    36.809       1.0000         .10000E-03   10000.    
    21 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.5247       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3936       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .84467       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.

 FCN=   6652.778     FROM MIGRAD    STATUS=CONVERGED    548 CALLS     2732 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4128        .70035         .0000        .47168E-04
   2  norm          .10006E-03    6.1091         .0000    ** at limit **
   3  norm          12.847        8.0780         .0000        .49962E-03
   4  Prefactor     .10001E-03    55.929         .0000    ** at limit **
   5  norm          4.6296        2.9518         .0000        .16429E-03
   6  norm          14.460        12.202         .0000        .24044E-03
   7  norm          12.577        16.223         .0000        .89380E-04
   8  Prefactor     .10000E-03    9.7298         .0000    ** at limit **
   9  Prefactor     1.0231        8.6991         .0000        .56622E-03
  10  Prefactor     9.2235        13.529         .0000       -.81034E-03
  11  norm          .53341        .82109         .0000       -.10897E-02
  12  norm          .10000E-03    1.4279         .0000    ** at limit **
  13  norm          1.0189        10.698         .0000        .32107E-01
  14  Prefactor     .10001E-03    10.666         .0000    ** at limit **
  15  Prefactor     .10002E-03    36.935         .0000    ** at limit **
  16  norm          26.362        40.210         .0000        .91387E-03
  17  Prefactor     .10005E-03    6.3551         .0000    ** at limit **
  18  norm          .10000E-03    2.9618         .0000    ** at limit **
  19  Prefactor     .10000E-03    3.9586         .0000    ** at limit **
  20  Prefactor     36.808        44.070         .0000        .16699E-03
  21  norm          .10000E-03    5.7073         .0000    ** at limit **
  22  norm          1.5250        2.4237         .0000        .18248E-02
  23  Normalizat    1.3936        .24435         .0000        .19391E-03
  24  Prefactor     .84467        .12438         .0000        .14657E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.41282
  norm       = 0.000100056
  norm       = 12.8472
  Prefactor  = 0.000100014
  norm       = 4.62962
  norm       = 14.4596
  norm       = 12.5768
  Prefactor  = 0.000100005
  Prefactor  = 1.02314
  Prefactor  = 9.22348
  norm       = 0.533408
  norm       = 0.0001
  norm       = 1.01886
  Prefactor  = 0.00010001
  Prefactor  = 0.00010002
  norm       = 26.3615
  Prefactor  = 0.000100051
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 36.8083
  norm       = 0.0001
  norm       = 1.52496
  Normalizat = 1.39361
  Prefactor  = 0.844673
 **********
 **   18 **HESSE 
 **********

 FCN=   6652.778     FROM HESSE     STATUS=OK           405 CALLS     3137 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4128        .70201        .21731E-04   -1.5201    
   2  norm          .10006E-03    6.2939        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          12.847        8.0733        .11176E-03   -1.4991    
   4  Prefactor     .10001E-03    55.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.6296        2.9521        .10790E-03   -1.5278    
   6  norm          14.460        12.203        .10533E-03   -1.4947    
   7  norm          12.577        16.171        .11294E-03   -1.4999    
   8  Prefactor     .10000E-03    9.8411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.0231        23.325        .43345E-02   -1.5506    
  10  Prefactor     9.2235        13.400        .13193E-03   -1.5100    
  11  norm          .53341        .67196        .89082E-03   -1.5562    
  12  norm          .10000E-03    1.4285        .94801E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.0189        5.4039        .58556E-01   -1.5506    
  14  Prefactor     .10001E-03    10.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10002E-03    37.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          26.362        40.208        .78022E-04   -1.4681    
  17  Prefactor     .10005E-03    6.4166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.9888        .13702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.7645        .30598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     36.808        44.092        .66058E-04   -1.4494    
  21  norm          .10000E-03    5.7649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.5250        2.4032        .15448E-03   -1.5461    
  23  Normalizat    1.3936        .28378        .31917E-03   -.80814    
  24  Prefactor     .84467        .14611        .21261E-03   -.98102    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8742e-08
Minuit parameter uncertainties:
  1  0.702012
  2  0.0011907
  3  8.074
  4  0.00174582
  5  2.95221
  6  12.2048
  7  16.1765
  8  0.000423999
  9  9.77409
  10  13.4042
  11  0.671965
  12  4.01253e-06
  13  4.69336
  14  0.000655586
  15  0.00171477
  16  40.2497
  17  0.00114862
  18  1.61865e-05
  19  0.000346548
  20  44.131
  21  1.04756e-05
  22  2.40332
  23  0.284102
  24  0.146178
Done.

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

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  9.223e+00  1.340e+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:  8.447e-01  1.462e-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.394e+00  2.841e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/733037/likelihoodResults_554774401_555033601_4FGL_J1331.2-1325_daily_bin1217.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) = 6652.77702639
delta logL = 0.000540352418284

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6652.77665169
delta logL = 0.000915052467462

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.6525       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5587       1.0000          .0000       10.000    
     3 'Normalizat'    1.3950       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84441       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=   6652.777     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      249 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.6608        17.716        .12898E-03   -.15513E-04
   2  Index         2.5574        1.0367        .86836E-02    .24731E-03
   3  Normalizat    1.3947        .26738        .31907E-03    .16671E-02
   4  Prefactor     .84435        .14228        .21264E-03    .23076E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.66084
  Index      = 2.55741
  Normalizat = 1.39466
  Prefactor  = 0.844353
 **********
 **   18 **HESSE 
 **********

 FCN=   6652.777     FROM HESSE     STATUS=OK            25 CALLS      274 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.6608        16.760        .51594E-05   -1.5086    
   2  Index         2.5574        .98133        .17367E-02   -.51039    
   3  Normalizat    1.3947        .26750        .63813E-04   -.80783    
   4  Prefactor     .84435        .14236        .42529E-04   -.98114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.71162e-09
Minuit parameter uncertainties:
  1  16.7686
  2  0.989795
  3  0.26777
  4  0.142418
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/733037': 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) = 6652.77664453
delta logL = 0.000922210033423

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  9.661e+00  1.677e+01  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  2.557e+00  9.898e-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:  8.444e-01  1.424e-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.395e+00  2.678e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.75
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/733037/cmap_HighResolution_554774401_555033601_4FGL_J1331.2-1325_daily_bin1217.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', job_status='DONE', photon_flux_upper_limit='1.35e-07', time_completed='2021-09-08 01:35:50.301830', job_id='733037', GAL2='0.84', fit_tolerance='1e-08', EG2='1.39', EG='1.39', time_epoch_completed='1631090150.3', return_code2='0', ts='0.75', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='9.22e-04', ts2='0.75', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1217' AND source_name='4FGL J1331.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:35:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 733037: <4FGL_J1331.2-1325_daily_bin1217> in cluster <slac> Done

Job <4FGL_J1331.2-1325_daily_bin1217> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep  8 01:20:43 2021
Job was executed on host(s) <bullet0291>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:21:56 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:21:56 2021
Terminated at Wed Sep  8 01:35:51 2021
Results reported at Wed Sep  8 01:35:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1331.2-1325_daily_bin1217 202.819 -13.4282 554774401 555033601 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 :                                   729.16 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             308.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            908 sec.

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

