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


Performing analysis on: 4FGL_J1331.2-1325_daily_bin1575
RA = 202.819, Dec = -13.4282
tmin = 647568001, tmax = 647827201
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='734547', job_status='RUN', time_executed='2021-09-08 01:29:35.133980', time_epoch_executed='1631089775.13' WHERE source_name='4FGL J1331.2-1325' and cadence='daily' and bin_id='1575'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/734547

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/734547/ft1_4FGL_J1331.2-1325_daily_bin1575.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/734547/ft2_4FGL_J1331.2-1325_daily_bin1575.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/734547/ft1_4FGL_J1331.2-1325_daily_bin1575.fits outfile=/scratch/kocevski/734547/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1575.fits ra=202.819 dec=-13.4282 rad=12.0 tmin=647568001.0 tmax=647827201.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 2.86
user 2.63
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/734547/ft1_filtered_4FGL_J1331.2-1325_daily_bin1575.fits" evtable="EVENTS" scfile=/scratch/kocevski/734547/ft2_4FGL_J1331.2-1325_daily_bin1575.fits sctable="SC_DATA" outfile=/scratch/kocevski/734547/ltcube_647568001_647827201_4FGL_J1331.2-1325_daily_bin1575.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/734547/ft2_4FGL_J1331.2-1325_daily_bin1575.fits
.....................!
real 14.03
user 13.67
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/734547/ft1_filtered_4FGL_J1331.2-1325_daily_bin1575.fits evtable="EVENTS" scfile=/scratch/kocevski/734547/ft2_4FGL_J1331.2-1325_daily_bin1575.fits sctable="SC_DATA" expcube=/scratch/kocevski/734547/ltcube_647568001_647827201_4FGL_J1331.2-1325_daily_bin1575.fits outfile=/scratch/kocevski/734547/expmap_647568001_647827201_4FGL_J1331.2-1325_daily_bin1575.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/734547/ltcube_647568001_647827201_4FGL_J1331.2-1325_daily_bin1575.fits
.....................!
real 156.91
user 151.84
sys 4.53

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/734547/ft1_filtered_4FGL_J1331.2-1325_daily_bin1575.fits scfile=/scratch/kocevski/734547/ft2_4FGL_J1331.2-1325_daily_bin1575.fits outfile=/scratch/kocevski/734547/cmap_647568001_647827201_4FGL_J1331.2-1325_daily_bin1575.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.49
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/734547/ft1_filtered_4FGL_J1331.2-1325_daily_bin1575.fits scfile=/scratch/kocevski/734547/ft2_4FGL_J1331.2-1325_daily_bin1575.fits outfile=/scratch/kocevski/734547/cmap_HighResolution_647568001_647827201_4FGL_J1331.2-1325_daily_bin1575.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.72
user 0.34
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/734547/ft1_filtered_4FGL_J1331.2-1325_daily_bin1575.fits evtable="EVENTS" scfile=/scratch/kocevski/734547/ft2_4FGL_J1331.2-1325_daily_bin1575.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/734547/Model_4FGL_J1331.2-1325_daily_bin1575.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/734547/ft1_filtered_4FGL_J1331.2-1325_daily_bin1575.fits.....................!
real 49.75
user 47.84
sys 1.06

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9368       1.0000         .10000E-03   10000.    
     2 'norm      '    3.7442       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    100.17       1.0000         .10000E-03   10000.    
     5 'norm      '    1.4001       1.0000         .10000E-03   10000.    
     6 'norm      '    19.942       1.0000         .10000E-03   10000.    
     7 'norm      '    4.7073       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .28593       1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    28.732       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.1041       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.066       1.0000         .10000E-03   10000.    
    16 'norm      '    19.473       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.1618       1.0000         .10000E-03   10000.    
    18 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    9.3930       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.6365       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0294       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=   7056.661     FROM MIGRAD    STATUS=CONVERGED    545 CALLS     2789 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9367        .45975        .61572E-08    .28510E-03
   2  norm          3.7436        8.8325        .32734E-05    .41168E-03
   3  norm          .10000E-03    2.3937       -.91154E-08** at limit **
   4  Prefactor     100.17        95.450        .41235E-07    .42131E-05
   5  norm          1.3989        3.2207        .28319E-06    .98257E-04
   6  norm          19.942        15.600        .37300E-07    .25819E-04
   7  norm          4.7052        12.358        .13130E-06    .21657E-04
   8  Prefactor     .10000E-03    4.0927       -.56588E-07** at limit **
   9  Prefactor     .10000E-03    9.3119       -.45602E-06** at limit **
  10  Prefactor     .10000E-03    17.326       -.24085E-05** at limit **
  11  norm          .28567        1.1318        .31019E-06    .11814E-05
  12  norm          .10000E-03    3.0775       -.39905E-07** at limit **
  13  norm          28.740        11.955        .20174E-06    .54850E-03
  14  Prefactor     7.1228        16.497       -.37710E-05   -.79624E-04
  15  Prefactor     17.077        37.426       -.34049E-05    .53455E-06
  16  norm          19.464        46.758        .30099E-05   -.11649E-04
  17  Prefactor     1.1347        30.912        .74202E-05    .17715E-03
  18  norm          .10000E-03    2.2940        .26172E-07** at limit **
  19  Prefactor     .10003E-03    8.1339       -.47996E-05** at limit **
  20  Prefactor     .10000E-03    34.605        .15541E-06** at limit **
  21  norm          .10000E-03    5.1419       -.87971E-07** at limit **
  22  norm          9.3926        3.8936        .24683E-09    .18141E-03
  23  Normalizat    1.6365        .28183        .49858E-06    .21584E-03
  24  Prefactor     1.0295        .14511       -.78704E-06    .20417E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.93673
  norm       = 3.74355
  norm       = 0.0001
  Prefactor  = 100.171
  norm       = 1.39893
  norm       = 19.942
  norm       = 4.70516
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.285673
  norm       = 0.0001
  norm       = 28.74
  Prefactor  = 7.12282
  Prefactor  = 17.0769
  norm       = 19.4644
  Prefactor  = 1.13465
  norm       = 0.0001
  Prefactor  = 0.000100034
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.39257
  Normalizat = 1.63648
  Prefactor  = 1.02948
 **********
 **   18 **HESSE 
 **********

 FCN=   7056.661     FROM HESSE     STATUS=OK           399 CALLS     3188 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9367        .46112        .26323E-04   -1.5430    
   2  norm          3.7436        9.4388        .10433E-02   -1.5321    
   3  norm          .10000E-03    2.3969        .12692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     100.17        95.606        .40168E-04   -1.3703    
   5  norm          1.3989        3.2069        .21807E-03   -1.5471    
   6  norm          19.942        15.585        .89690E-04   -1.4815    
   7  norm          4.7052        12.345        .18547E-03   -1.5274    
   8  Prefactor     .10000E-03    4.1052        .16597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.4923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .28567        2.0112        .16477E-02   -1.5601    
  12  norm          .10000E-03    3.1005        .14336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          28.740        11.895        .74743E-04   -1.4635    
  14  Prefactor     7.1228        16.519        .15050E-03   -1.5174    
  15  Prefactor     17.077        37.444        .96952E-04   -1.4881    
  16  norm          19.464        46.652        .90762E-04   -1.4825    
  17  Prefactor     1.1347        32.058        .42727E-03   -1.5495    
  18  norm          .10000E-03    2.3025        .12424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10003E-03    14.690        .32215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    34.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    5.1877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          9.3926        3.8958        .10302E-03   -1.5095    
  23  Normalizat    1.6365        .32512        .35669E-03   -.74012    
  24  Prefactor     1.0295        .16800        .22591E-03   -.91753    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35821e-09
Minuit parameter uncertainties:
  1  0.461118
  2  9.44259
  3  5.14489e-07
  4  95.7538
  5  3.20728
  6  15.588
  7  12.3515
  8  1.14515e-06
  9  3.83027e-06
  10  6.51702e-05
  11  1.51578
  12  1.24414e-06
  13  11.8962
  14  16.5294
  15  37.4955
  16  46.7394
  17  12.0689
  18  3.38603e-06
  19  0.00140739
  20  1.38257e-05
  21  6.79224e-06
  22  3.89593
  23  0.325545
  24  0.168082
Done.

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

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  6.517e-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.029e+00  1.681e-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.636e+00  3.255e-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.48e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.16e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/734547/likelihoodResults_647568001_647827201_4FGL_J1331.2-1325_daily_bin1575.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) = 7056.66100824
delta logL = -0.000275666727248

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7056.66073231
delta logL = 2.59225998889e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7037       1.0000          .0000       10.000    
     3 'Normalizat'    1.6365       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0295       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=   7056.661     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      275 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    363.14        .18142E-02** at limit **
   2  Index         2.7287        8.6188        .50000       -.12699E-04
   3  Normalizat    1.6365        .30486        .35669E-03    .54981E-04
   4  Prefactor     1.0295        .15944        .22591E-03    .56615E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.72874
  Normalizat = 1.63647
  Prefactor  = 1.02948
 **********
 **   18 **HESSE 
 **********

 FCN=   7056.661     FROM HESSE     STATUS=OK            29 CALLS      304 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.319        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7287        6.3574        .50000       -.47153    
   3  Normalizat    1.6365        .30506        .14267E-04   -.74012    
   4  Prefactor     1.0295        .15957        .90362E-05   -.91753    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.18729e-10
Minuit parameter uncertainties:
  1  0.000507906
  2  4.56361
  3  0.30541
  4  0.159646
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/734547': 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) = 7056.66073224
delta logL = 3.29135218635e-07

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  5.079e-04  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  2.729e+00  4.564e+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:  1.029e+00  1.596e-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.636e+00  3.054e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/734547/cmap_HighResolution_647568001_647827201_4FGL_J1331.2-1325_daily_bin1575.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-02', job_status='DONE', photon_flux_upper_limit='1.48e-07', time_completed='2021-09-08 01:39:49.322657', job_id='734547', GAL2='1.03', fit_tolerance='1e-08', EG2='1.64', EG='1.64', time_epoch_completed='1631090389.32', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='3.29e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1575' AND source_name='4FGL J1331.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:39:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 734547: <4FGL_J1331.2-1325_daily_bin1575> in cluster <slac> Done

Job <4FGL_J1331.2-1325_daily_bin1575> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  8 01:25:33 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:25:42 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:25:42 2021
Terminated at Wed Sep  8 01:39:49 2021
Results reported at Wed Sep  8 01:39:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1331.2-1325_daily_bin1575 202.819 -13.4282 647568001 647827201 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 :                                   608.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            856 sec.

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

