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


Performing analysis on: 4FGL_J1331.2-1325_daily_bin1469
RA = 202.819, Dec = -13.4282
tmin = 620092801, tmax = 620352001
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='733391', job_status='RUN', time_executed='2021-09-08 01:24:05.905635', time_epoch_executed='1631089445.91' WHERE source_name='4FGL J1331.2-1325' and cadence='daily' and bin_id='1469'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/733391

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/733391/ft1_4FGL_J1331.2-1325_daily_bin1469.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/733391/ft2_4FGL_J1331.2-1325_daily_bin1469.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/733391/ft1_4FGL_J1331.2-1325_daily_bin1469.fits outfile=/scratch/kocevski/733391/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1469.fits ra=202.819 dec=-13.4282 rad=12.0 tmin=620092801.0 tmax=620352001.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.76
user 3.26
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/733391/ft2_4FGL_J1331.2-1325_daily_bin1469.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/733391/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1469.fits evtable="EVENTS" outfile="/scratch/kocevski/733391/ft1_filtered_4FGL_J1331.2-1325_daily_bin1469.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 2.06
user 0.38
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/733391/ft1_filtered_4FGL_J1331.2-1325_daily_bin1469.fits" evtable="EVENTS" scfile=/scratch/kocevski/733391/ft2_4FGL_J1331.2-1325_daily_bin1469.fits sctable="SC_DATA" outfile=/scratch/kocevski/733391/ltcube_620092801_620352001_4FGL_J1331.2-1325_daily_bin1469.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/733391/ft2_4FGL_J1331.2-1325_daily_bin1469.fits
.....................!
real 21.86
user 17.10
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/733391/ft1_filtered_4FGL_J1331.2-1325_daily_bin1469.fits evtable="EVENTS" scfile=/scratch/kocevski/733391/ft2_4FGL_J1331.2-1325_daily_bin1469.fits sctable="SC_DATA" expcube=/scratch/kocevski/733391/ltcube_620092801_620352001_4FGL_J1331.2-1325_daily_bin1469.fits outfile=/scratch/kocevski/733391/expmap_620092801_620352001_4FGL_J1331.2-1325_daily_bin1469.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/733391/ltcube_620092801_620352001_4FGL_J1331.2-1325_daily_bin1469.fits
.....................!
real 195.08
user 188.24
sys 4.82

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/733391/ft1_filtered_4FGL_J1331.2-1325_daily_bin1469.fits scfile=/scratch/kocevski/733391/ft2_4FGL_J1331.2-1325_daily_bin1469.fits outfile=/scratch/kocevski/733391/cmap_620092801_620352001_4FGL_J1331.2-1325_daily_bin1469.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.80
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/733391/ft1_filtered_4FGL_J1331.2-1325_daily_bin1469.fits scfile=/scratch/kocevski/733391/ft2_4FGL_J1331.2-1325_daily_bin1469.fits outfile=/scratch/kocevski/733391/cmap_HighResolution_620092801_620352001_4FGL_J1331.2-1325_daily_bin1469.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.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0408       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.5879       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .29404       1.0000         .10000E-03   10000.    
     6 'norm      '    7.5769       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.285       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    29.912       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.6844       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    65.214       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .94179       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0566       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=   6962.758     FROM MIGRAD    STATUS=CONVERGED    537 CALLS     2325 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0408        .44140        .77495E-08    .24851E-03
   2  norm          .10000E-03    2.3908        .80842E-09** at limit **
   3  norm          2.5881        5.5214        .48767E-05   -.32686E-04
   4  Prefactor     .10000E-03    35.207       -.34038E-05** at limit **
   5  norm          .29411        1.9118        .47559E-06    .76692E-05
   6  norm          7.5771        8.0573        .29420E-06    .24440E-04
   7  norm          .10000E-03    3.7572       -.63219E-08** at limit **
   8  Prefactor     13.286        13.433       -.26289E-06   -.20212E-03
   9  Prefactor     .10000E-03    9.2069        .34999E-06** at limit **
  10  Prefactor     .10000E-03    26.397        .19835E-05** at limit **
  11  norm          .10000E-03    .35634       -.43567E-08** at limit **
  12  norm          .10000E-03    3.0901       -.58336E-07** at limit **
  13  norm          29.912        11.661       -.38425E-06   -.65638E-03
  14  Prefactor     .10000E-03    10.098       -.30017E-06** at limit **
  15  Prefactor     .10000E-03    8.4669       -.25608E-06** at limit **
  16  norm          .10000E-03    18.287        .89423E-06** at limit **
  17  Prefactor     .10000E-03    16.491       -.80336E-06** at limit **
  18  norm          .10000E-03    4.8666        .78201E-08** at limit **
  19  Prefactor     6.6846        7.4046        .81239E-07   -.15457E-03
  20  Prefactor     .10000E-03    67.654        .20924E-05** at limit **
  21  norm          .10000E-03    2.1464        .21166E-08** at limit **
  22  norm          65.214        7.8460        .92827E-08   -.68921E-04
  23  Normalizat    .94176        .26377        .26977E-06   -.10550E-03
  24  Prefactor     1.0566        .13485       -.64096E-06   -.10355E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.0408
  norm       = 0.0001
  norm       = 2.58807
  Prefactor  = 0.0001
  norm       = 0.294114
  norm       = 7.57708
  norm       = 0.0001
  Prefactor  = 13.2862
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 29.9122
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.68456
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 65.2138
  Normalizat = 0.94176
  Prefactor  = 1.05659
 **********
 **   18 **HESSE 
 **********

 FCN=   6962.758     FROM HESSE     STATUS=OK           389 CALLS     2714 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0408        .44309        .24713E-04   -1.5422    
   2  norm          .10000E-03    2.3936        .12600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.5881        5.5214        .12683E-02   -1.5386    
   4  Prefactor     .10000E-03    35.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .29411        1.8513        .22307E-03   -1.5600    
   6  norm          7.5771        8.0581        .72845E-03   -1.5157    
   7  norm          .10000E-03    3.7637        .15797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.286        13.460        .10989E-03   -1.4979    
   9  Prefactor     .10000E-03    9.4357        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    26.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .35959        .48623E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.1101        .14275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          29.912        11.676        .73257E-04   -1.4614    
  14  Prefactor     .10000E-03    10.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.4691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    18.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.9722        .17967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.6846        7.3892        .15520E-03   -1.5191    
  20  Prefactor     .10000E-03    67.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.1485        .11936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          65.214        7.8474        .49696E-04   -1.4091    
  23  Normalizat    .94176        .30097        .41238E-03   -.95008    
  24  Prefactor     1.0566        .15417        .20575E-03   -.90866    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.81716e-10
Minuit parameter uncertainties:
  1  0.443091
  2  6.72325e-08
  3  5.52247
  4  0.000148303
  5  1.47563
  6  8.05927
  7  3.30015e-07
  8  13.4627
  9  7.74343e-05
  10  9.53132e-05
  11  1.65669e-07
  12  1.0634e-06
  13  11.6768
  14  2.71292e-05
  15  9.89555e-06
  16  2.71832e-05
  17  0.000110609
  18  2.45661e-06
  19  7.39024
  20  0.000172584
  21  2.49843e-07
  22  7.84756
  23  0.301515
  24  0.154239
Done.

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

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  9.531e-05  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:  1.057e+00  1.542e-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:  9.418e-01  3.015e-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.65e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.29e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/733391/likelihoodResults_620092801_620352001_4FGL_J1331.2-1325_daily_bin1469.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) = 6962.75802234
delta logL = -0.000179565085091

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6962.57534473
delta logL = 0.182498044072

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30355       1.0000         .10000E-03   10000.    
     2 'Index     '    4.6793       1.0000          .0000       10.000    
     3 'Normalizat'    .87648       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0761       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=   6962.575     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      298 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29632        7.6146        .10441E-01    .24141E-02
   2  Index         4.6913        2.9839        .13371        .15515E-03
   3  Normalizat    .87610        .44106E-01    .96089E-01    .28880E-04
   4  Prefactor     1.0764        .23296E-01    .38573E-01    .29426E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.296321
  Index      = 4.69134
  Normalizat = 0.876096
  Prefactor  = 1.07636
 **********
 **   18 **HESSE 
 **********

 FCN=   6962.575     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      331 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .29632        37.434        .70253E-04   -1.5599    
   2  Index         4.6913        7.0021        .81579E-02   -.61771E-01
   3  Normalizat    .87610        .22462        .42575E-03   -.97305    
   4  Prefactor     1.0764        .11596        .20399E-03   -.90226    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.47975e-09
Minuit parameter uncertainties:
  1  6.66425
  2  10.1779
  3  0.224861
  4  0.115983
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/733391': 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) = 6962.57533767
delta logL = 0.182505103874

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  2.963e-01  6.664e+00  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  4.691e+00  1.018e+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:  1.076e+00  1.160e-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:  8.761e-01  2.249e-01  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/733391/cmap_HighResolution_620092801_620352001_4FGL_J1331.2-1325_daily_bin1469.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.29e-02', job_status='DONE', photon_flux_upper_limit='1.65e-07', time_completed='2021-09-08 01:35:50.802162', job_id='733391', GAL2='1.08', fit_tolerance='1e-08', EG2='0.88', EG='0.94', time_epoch_completed='1631090150.8', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='1.83e-01', ts2='0.41', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1469' 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@bullet0124>
Subject: Job 733391: <4FGL_J1331.2-1325_daily_bin1469> in cluster <slac> Done

Job <4FGL_J1331.2-1325_daily_bin1469> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep  8 01:21:14 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:22:48 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:48 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_bin1469 202.819 -13.4282 620092801 620352001 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 :                                   693.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             313.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   783 sec.
    Turnaround time :                            877 sec.

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

