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


Performing analysis on: 4FGL_J1331.2-1325_daily_bin1320
RA = 202.819, Dec = -13.4282
tmin = 581472001, tmax = 581731201
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='733189', job_status='RUN', time_executed='2021-09-08 01:22:42.142798', time_epoch_executed='1631089362.14' WHERE source_name='4FGL J1331.2-1325' and cadence='daily' and bin_id='1320'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/733189

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/733189/ft1_4FGL_J1331.2-1325_daily_bin1320.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/733189/ft2_4FGL_J1331.2-1325_daily_bin1320.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/733189/ft1_4FGL_J1331.2-1325_daily_bin1320.fits outfile=/scratch/kocevski/733189/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1320.fits ra=202.819 dec=-13.4282 rad=12.0 tmin=581472001.0 tmax=581731201.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.94
user 2.57
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/733189/ft1_filtered_4FGL_J1331.2-1325_daily_bin1320.fits" evtable="EVENTS" scfile=/scratch/kocevski/733189/ft2_4FGL_J1331.2-1325_daily_bin1320.fits sctable="SC_DATA" outfile=/scratch/kocevski/733189/ltcube_581472001_581731201_4FGL_J1331.2-1325_daily_bin1320.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/733189/ft2_4FGL_J1331.2-1325_daily_bin1320.fits
.....................!
real 17.85
user 16.99
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/733189/ft1_filtered_4FGL_J1331.2-1325_daily_bin1320.fits evtable="EVENTS" scfile=/scratch/kocevski/733189/ft2_4FGL_J1331.2-1325_daily_bin1320.fits sctable="SC_DATA" expcube=/scratch/kocevski/733189/ltcube_581472001_581731201_4FGL_J1331.2-1325_daily_bin1320.fits outfile=/scratch/kocevski/733189/expmap_581472001_581731201_4FGL_J1331.2-1325_daily_bin1320.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/733189/ltcube_581472001_581731201_4FGL_J1331.2-1325_daily_bin1320.fits
.....................!
real 196.27
user 189.62
sys 5.72

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/733189/ft1_filtered_4FGL_J1331.2-1325_daily_bin1320.fits scfile=/scratch/kocevski/733189/ft2_4FGL_J1331.2-1325_daily_bin1320.fits outfile=/scratch/kocevski/733189/cmap_581472001_581731201_4FGL_J1331.2-1325_daily_bin1320.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.72
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/733189/ft1_filtered_4FGL_J1331.2-1325_daily_bin1320.fits scfile=/scratch/kocevski/733189/ft2_4FGL_J1331.2-1325_daily_bin1320.fits outfile=/scratch/kocevski/733189/cmap_HighResolution_581472001_581731201_4FGL_J1331.2-1325_daily_bin1320.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.56
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/733189/ft1_filtered_4FGL_J1331.2-1325_daily_bin1320.fits evtable="EVENTS" scfile=/scratch/kocevski/733189/ft2_4FGL_J1331.2-1325_daily_bin1320.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/733189/Model_4FGL_J1331.2-1325_daily_bin1320.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/733189/ft1_filtered_4FGL_J1331.2-1325_daily_bin1320.fits.....................!
real 52.53
user 50.85
sys 1.35

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1814       1.0000         .10000E-03   10000.    
     2 'norm      '    2.7241       1.0000         .10000E-03   10000.    
     3 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .12357E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    25.011       1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.720       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.8133       1.0000         .10000E-03   10000.    
    12 'norm      '    3.0559       1.0000         .10000E-03   10000.    
    13 'norm      '    10.060       1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.696       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.5296       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.8635       1.0000         .10000E-03   10000.    
    18 'norm      '    8.5079       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.3964       1.0000         .10000E-03   10000.    
    20 'Prefactor '    31.496       1.0000         .10000E-03   10000.    
    21 'norm      '    6.1741       1.0000         .10000E-03   10000.    
    22 'norm      '    13.491       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4521       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .90423       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=   6137.254     FROM MIGRAD    STATUS=CONVERGED    523 CALLS     2755 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1814        .32056        .15849E-07   -.14598E-03
   2  norm          2.7238        5.5162        .25084E-06    .19143E-04
   3  norm          .10000E-03    6.1021       -.11023E-06** at limit **
   4  Prefactor     .10000E-03    16.412       -.46750E-07** at limit **
   5  norm          .10002E-03    1.5026       -.74668E-06** at limit **
   6  norm          25.011        11.874        .81149E-07   -.64753E-05
   7  norm          .10000E-03    4.3948       -.31210E-08** at limit **
   8  Prefactor     10.720        8.5464        .81982E-07   -.65171E-05
   9  Prefactor     .10000E-03    5.7390        .34306E-06** at limit **
  10  Prefactor     .10000E-03    6.3748       -.30863E-06** at limit **
  11  norm          2.8134        1.9305        .82805E-07   -.14240E-04
  12  norm          3.0558        2.9717        .11193E-07   -.45182E-06
  13  norm          10.061        8.4536       -.20126E-06    .28253E-06
  14  Prefactor     20.696        22.975       -.20863E-06   -.71293E-05
  15  Prefactor     8.5240        35.953        .92360E-06    .16194E-05
  16  norm          .10000E-03    21.065       -.31981E-08** at limit **
  17  Prefactor     4.8582        19.227        .64155E-06    .25486E-05
  18  norm          8.5078        6.5551       -.38258E-06   -.36321E-04
  19  Prefactor     2.3936        5.9550        .30500E-05    .12200E-03
  20  Prefactor     31.354        71.545        .12979E-04    .27317E-04
  21  norm          6.1763        9.2186       -.70863E-06    .11352E-04
  22  norm          13.491        6.2473        .52420E-07   -.22098E-05
  23  Normalizat    1.4518        .27353       -.20231E-05    .52417E-04
  24  Prefactor     .90438        .14280        .25025E-06    .11905E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.18139
  norm       = 2.72377
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100016
  norm       = 25.0108
  norm       = 0.0001
  Prefactor  = 10.7196
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.81335
  norm       = 3.05577
  norm       = 10.0611
  Prefactor  = 20.6965
  Prefactor  = 8.52399
  norm       = 0.0001
  Prefactor  = 4.85823
  norm       = 8.50785
  Prefactor  = 2.39362
  Prefactor  = 31.3539
  norm       = 6.1763
  norm       = 13.4912
  Normalizat = 1.45184
  Prefactor  = 0.904385
 **********
 **   18 **HESSE 
 **********

 FCN=   6137.254     FROM HESSE     STATUS=OK           407 CALLS     3162 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1814        .32153        .22191E-04   -1.5491    
   2  norm          2.7238        5.4989        .24674E-03   -1.5378    
   3  norm          .10000E-03    6.2264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10002E-03    6.9914        .17661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          25.011        11.878        .80099E-04   -1.4707    
   7  norm          .10000E-03    4.4010        .16040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.720        8.5450        .12237E-03   -1.5053    
   9  Prefactor     .10000E-03    5.7748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.3802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.8134        1.9296        .85724E-04   -1.5372    
  12  norm          3.0558        2.9627        .12651E-03   -1.5358    
  13  norm          10.061        8.4405        .12633E-03   -1.5073    
  14  Prefactor     20.696        22.582        .88042E-04   -1.4798    
  15  Prefactor     8.5240        35.746        .13726E-03   -1.5124    
  16  norm          .10000E-03    21.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.8582        18.823        .18240E-03   -1.5267    
  18  norm          8.5078        6.5530        .13743E-03   -1.5125    
  19  Prefactor     2.3936        5.9875        .13226E-02   -1.5399    
  20  Prefactor     31.354        71.712        .35698E-03   -1.4587    
  21  norm          6.1763        9.2237        .16156E-03   -1.5211    
  22  norm          13.491        6.2555        .10905E-03   -1.4973    
  23  Normalizat    1.4518        .31759        .33639E-03   -.79141    
  24  Prefactor     .90438        .16486        .21937E-03   -.95988    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26121e-09
Minuit parameter uncertainties:
  1  0.321533
  2  5.49996
  3  1.81716e-05
  4  8.42372e-08
  5  0.000663683
  6  11.879
  7  1.45868e-06
  8  8.54596
  9  9.87853e-06
  10  5.33505e-06
  11  1.92968
  12  2.96281
  13  8.44145
  14  22.5912
  15  34.9468
  16  7.81513e-07
  17  18.8455
  18  6.55356
  19  5.98904
  20  71.9097
  21  9.22579
  22  6.25583
  23  0.318024
  24  0.164955
Done.

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

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  5.335e-06  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.044e-01  1.650e-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.452e+00  3.180e-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.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/733189/likelihoodResults_581472001_581731201_4FGL_J1331.2-1325_daily_bin1320.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) = 6137.25479737
delta logL = -0.000744896920878

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6137.25405356
delta logL = -1.08620770334e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5643       1.0000          .0000       10.000    
     3 'Normalizat'    1.4518       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90441       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=   6137.254     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      238 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10639E-03    5.5795        .18142E-01** at limit **
   2  Index         2.4404        5.5443        .50000        .39984E-04
   3  Normalizat    1.4518        .57450E-02    .33639E-03    .17621E-03
   4  Prefactor     .90438        .30635E-02    .21937E-03    .26537E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106387
  Index      = 2.44038
  Normalizat = 1.45185
  Prefactor  = 0.904385
 **********
 **   18 **HESSE 
 **********

 FCN=   6137.254     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      267 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10639E-03    60.039        .21681E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4404        8.7102        .50000       -.53742    
   3  Normalizat    1.4518        .18948E-01    .67278E-04   -.79141    
   4  Prefactor     .90438        .10104E-01    .43874E-04   -.95988    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.20776e-08
Minuit parameter uncertainties:
  1  0.0392049
  2  261.833
  3  0.0189481
  4  0.0101041
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/733189': 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) = 6137.25405123
delta logL = 1.24274993141e-06

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  1.064e-04  3.920e-02  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  2.440e+00  2.618e+02  0.000e+00  1.000e+01 (-1.000e+00)
289        Scale:  1.117e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
567    Prefactor:  9.044e-01  1.010e-02  0.000e+00  1.000e+01 ( 1.000e+00)
568        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
569        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
566   Normalization:  1.452e+00  1.895e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/733189/cmap_HighResolution_581472001_581731201_4FGL_J1331.2-1325_daily_bin1320.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.86e-03', job_status='DONE', photon_flux_upper_limit='1.00e-07', time_completed='2021-09-08 01:34:07.371123', job_id='733189', GAL2='0.90', fit_tolerance='1e-08', EG2='1.45', EG='1.45', time_epoch_completed='1631090047.37', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.24e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1320' AND source_name='4FGL J1331.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:34:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 733189: <4FGL_J1331.2-1325_daily_bin1320> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1331.2-1325_daily_bin1320 202.819 -13.4282 581472001 581731201 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 :                                   679.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             357.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            793 sec.

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

