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


Performing analysis on: 4FGL_J1331.2-1325_daily_bin1595
RA = 202.819, Dec = -13.4282
tmin = 652752001, tmax = 653011201
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='52899', job_status='RUN', time_executed='2021-09-11 00:12:31.914388', time_epoch_executed='1631344351.91' WHERE source_name='4FGL J1331.2-1325' and cadence='daily' and bin_id='1595'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/52899

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/52899/ft1_4FGL_J1331.2-1325_daily_bin1595.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/52899/ft2_4FGL_J1331.2-1325_daily_bin1595.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/52899/ft1_4FGL_J1331.2-1325_daily_bin1595.fits outfile=/scratch/kocevski/52899/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1595.fits ra=202.819 dec=-13.4282 rad=12.0 tmin=652752001.0 tmax=653011201.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.13
user 2.94
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/52899/ft1_filtered_4FGL_J1331.2-1325_daily_bin1595.fits" evtable="EVENTS" scfile=/scratch/kocevski/52899/ft2_4FGL_J1331.2-1325_daily_bin1595.fits sctable="SC_DATA" outfile=/scratch/kocevski/52899/ltcube_652752001_653011201_4FGL_J1331.2-1325_daily_bin1595.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/52899/ft2_4FGL_J1331.2-1325_daily_bin1595.fits
.....................!
real 12.29
user 11.96
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/52899/ft1_filtered_4FGL_J1331.2-1325_daily_bin1595.fits evtable="EVENTS" scfile=/scratch/kocevski/52899/ft2_4FGL_J1331.2-1325_daily_bin1595.fits sctable="SC_DATA" expcube=/scratch/kocevski/52899/ltcube_652752001_653011201_4FGL_J1331.2-1325_daily_bin1595.fits outfile=/scratch/kocevski/52899/expmap_652752001_653011201_4FGL_J1331.2-1325_daily_bin1595.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/52899/ltcube_652752001_653011201_4FGL_J1331.2-1325_daily_bin1595.fits
.....................!
real 191.19
user 185.95
sys 4.89

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/52899/ft1_filtered_4FGL_J1331.2-1325_daily_bin1595.fits scfile=/scratch/kocevski/52899/ft2_4FGL_J1331.2-1325_daily_bin1595.fits outfile=/scratch/kocevski/52899/cmap_652752001_653011201_4FGL_J1331.2-1325_daily_bin1595.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.54
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/52899/ft1_filtered_4FGL_J1331.2-1325_daily_bin1595.fits scfile=/scratch/kocevski/52899/ft2_4FGL_J1331.2-1325_daily_bin1595.fits outfile=/scratch/kocevski/52899/cmap_HighResolution_652752001_653011201_4FGL_J1331.2-1325_daily_bin1595.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.53
user 0.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/52899/ft1_filtered_4FGL_J1331.2-1325_daily_bin1595.fits evtable="EVENTS" scfile=/scratch/kocevski/52899/ft2_4FGL_J1331.2-1325_daily_bin1595.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/52899/Model_4FGL_J1331.2-1325_daily_bin1595.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/52899/ft1_filtered_4FGL_J1331.2-1325_daily_bin1595.fits....................!
real 63.87
user 62.51
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4013       1.0000         .10000E-03   10000.    
     2 'norm      '    6.4777       1.0000         .10000E-03   10000.    
     3 'norm      '    1.9688       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12801E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .17340E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    83.328       1.0000         .10000E-03   10000.    
     7 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.7211       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.533       1.0000         .10000E-03   10000.    
    11 'norm      '    2.8229       1.0000         .10000E-03   10000.    
    12 'norm      '    .11287E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .49266       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.470       1.0000         .10000E-03   10000.    
    16 'norm      '    63.440       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.5901       1.0000         .10000E-03   10000.    
    18 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10234E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    22.410       1.0000         .10000E-03   10000.    
    22 'norm      '    6.5952       1.0000         .10000E-03   10000.    
    23 'Normalizat'    2.0048       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .84107       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=   7730.005     FROM MIGRAD    STATUS=CONVERGED    550 CALLS     2727 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4015        .72855       -.68431E-08    .21231E-03
   2  norm          6.4778        6.4663       -.23602E-05   -.11438E-03
   3  norm          1.9693        7.4241        .10797E-04   -.50484E-03
   4  Prefactor     .10000E-03    123.64       -.12041E-04** at limit **
   5  norm          .10000E-03    1.1712       -.20202E-06** at limit **
   6  norm          83.335        27.768        .99354E-06    .36156E-04
   7  norm          .10000E-03    6.3495       -.74931E-07** at limit **
   8  Prefactor     5.7212        10.475       -.14183E-05   -.40114E-04
   9  Prefactor     .10000E-03    14.787        .23028E-06** at limit **
  10  Prefactor     29.537        27.116        .14005E-05    .33652E-03
  11  norm          2.8225        2.2419       -.20348E-06   -.42762E-03
  12  norm          .10000E-03    3.8401       -.10971E-06** at limit **
  13  norm          .48671        7.5174       -.22807E-05    .55637E-04
  14  Prefactor     .10002E-03    40.573        .18978E-04** at limit **
  15  Prefactor     25.467        23.711        .24025E-06   -.23603E-04
  16  norm          63.454        76.894        .14199E-04    .48002E-06
  17  Prefactor     3.5976        8.7228       -.11323E-04   -.51622E-03
  18  norm          .10000E-03    1.9278        .92271E-07** at limit **
  19  Prefactor     .10000E-03    2.2351       -.85907E-08** at limit **
  20  Prefactor     .10000E-03    35.904       -.12562E-04** at limit **
  21  norm          22.406        11.110        .10943E-05    .10816E-03
  22  norm          6.5951        4.2681        .45821E-06   -.34034E-03
  23  Normalizat    2.0045        .28907       -.42678E-06    .53744E-04
  24  Prefactor     .84126        .13342        .30509E-06   -.50758E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.40147
  norm       = 6.47782
  norm       = 1.96926
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 83.3351
  norm       = 0.0001
  Prefactor  = 5.72121
  Prefactor  = 0.0001
  Prefactor  = 29.5365
  norm       = 2.82252
  norm       = 0.0001
  norm       = 0.486714
  Prefactor  = 0.000100015
  Prefactor  = 25.4667
  norm       = 63.4538
  Prefactor  = 3.59756
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 22.4056
  norm       = 6.59511
  Normalizat = 2.00455
  Prefactor  = 0.84126
 **********
 **   18 **HESSE 
 **********

 FCN=   7730.005     FROM HESSE     STATUS=OK           399 CALLS     3126 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4015        .73028        .33421E-04   -1.5339    
   2  norm          6.4778        6.4681        .15769E-03   -1.5199    
   3  norm          1.9693        7.1702        .29554E-03   -1.5427    
   4  Prefactor     .10000E-03    123.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.7511        .18489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          83.335        27.809        .44004E-04   -1.3880    
   7  norm          .10000E-03    6.3555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.7212        10.474        .16793E-03   -1.5230    
   9  Prefactor     .10000E-03    14.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     29.537        27.061        .73725E-04   -1.4620    
  11  norm          2.8225        2.2455        .11147E-03   -1.5372    
  12  norm          .10000E-03    3.8549        .16677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .48671        31.328        .40088E-02   -1.5568    
  14  Prefactor     .10002E-03    42.969        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     25.467        23.716        .79376E-04   -1.4698    
  16  norm          63.454        76.706        .50382E-04   -1.4113    
  17  Prefactor     3.5976        8.9751        .21327E-03   -1.5329    
  18  norm          .10000E-03    1.9382        .11919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.2401        .12827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    35.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          22.406        11.128        .84613E-04   -1.4761    
  22  norm          6.5951        4.2742        .13813E-03   -1.5194    
  23  Normalizat    2.0045        .34375        .34518E-03   -.64437    
  24  Prefactor     .84126        .15707        .24222E-03   -.98225    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11669e-09
Minuit parameter uncertainties:
  1  0.730284
  2  6.46884
  3  7.17328
  4  8.20993e-05
  5  6.2602e-05
  6  27.8134
  7  1.18349e-06
  8  10.4772
  9  1.66963e-05
  10  27.0725
  11  2.24559
  12  1.46398e-05
  13  7.81314
  14  0.00162693
  15  23.7245
  16  76.8257
  17  8.97847
  18  6.39052e-06
  19  3.82057e-06
  20  3.78589e-05
  21  11.1292
  22  4.27442
  23  0.344178
  24  0.157149
Done.

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

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  2.954e+01  2.707e+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.413e-01  1.571e-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:  2.005e+00  3.442e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.10
Ra Dec: 202.819 -13.428
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 9.79e-08 +/- 8.97e-08
Energy Flux (Fixed Index): 2.57e-05 +/- 2.35e-05

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

Saving results to:
/scratch/kocevski/52899/likelihoodResults_652752001_653011201_4FGL_J1331.2-1325_daily_bin1595.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) = 7729.38290585
delta logL = 0.622150838142

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7729.36208117
delta logL = 0.64297552361

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.8349       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4995       1.0000          .0000       10.000    
     3 'Normalizat'    1.9201       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87017       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7729.362     FROM MIGRAD    STATUS=FAILED        80 CALLS      285 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.8322        44.680        .13485E-03   -.30713E-02
   2  Index         3.4997        2.2310        .44010E-02   -.11265E-02
   3  Normalizat    1.9201        .33856        .35079E-03   -.11298E-02
   4  Prefactor     .87016        .16073        .23863E-03   -.13170E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7729.362     FROM SIMPLEX   STATUS=UNCHANGED     79 CALLS      364 TOTAL
                     EDM=   .95E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.8322        44.680        .19881E-03   -1.5114    
   2  Index         3.4997        2.2310        .78045E-03   -.30476    
   3  Normalizat    1.9201        .33856        .20095E-03   -.66570    
   4  Prefactor     .87016        .16073        .14690E-03   -.97192    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7729.362     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      395 TOTAL
                     EDM=   .94E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.8314        15.640        .53940E-05    .88521E-05
   2  Index         3.4997        .90602        .17604E-03    .19374E-05
   3  Normalizat    1.9201        .33327        .70158E-04    .23108E-04
   4  Prefactor     .87016        .15704        .47727E-04    .28013E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.83145
  Index      = 3.49975
  Normalizat = 1.92006
  Prefactor  = 0.870163
 **********
 **   18 **HESSE 
 **********

 FCN=   7729.362     FROM HESSE     STATUS=OK            23 CALLS      418 TOTAL
                     EDM=   .93E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.8314        15.432        .10788E-05   -1.5114    
   2  Index         3.4997        .89389        .70415E-05   -.30475    
   3  Normalizat    1.9201        .33330        .14032E-04   -.66570    
   4  Prefactor     .87016        .15705        .95453E-05   -.97192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.30177e-13
Minuit parameter uncertainties:
  1  15.4391
  2  0.899204
  3  0.333704
  4  0.157127
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/52899': 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) = 7729.36208114
delta logL = 0.64297555248

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  8.831e+00  1.544e+01  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  3.500e+00  8.992e-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.702e-01  1.571e-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.920e+00  3.337e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.53
Ra Dec: 202.819 -13.428
Photon Index (Free Index): 3.50 +/- 0.90
Photon Flux (Free Index): 1.65e-07 +/- 1.09e-07
Energy Flux (Free Index): 2.74e-05 +/- 1.75e-05

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/52899/cmap_HighResolution_652752001_653011201_4FGL_J1331.2-1325_daily_bin1595.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.97e-02', comment='SUCCESS', photon_flux='9.79e-08', energy_flux2='2.74e-05', photon_flux_error='8.97e-08', dlogl='6.43e-01', energy_flux='2.57e-05', photon_flux2='1.65e-07', job_status='DONE', time_completed='2021-09-11 00:25:12.011675', photon_index_error2='0.90', photon_index2='3.50', ts='2.10', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='2.52e-07', energy_flux_error2='1.75e-05', EG='2.00', time_epoch_completed='1631345112.01', return_code='0', job_id='52899', GAL2='0.87', EG2='1.92', return_code2='0', energy_flux_error='2.35e-05', photon_flux_error2='1.09e-07', ts2='3.53', photon_index='2.60' WHERE bin_id='1595' AND source_name='4FGL J1331.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:25:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 52899: <4FGL_J1331.2-1325_daily_bin1595> in cluster <slac> Done

Job <4FGL_J1331.2-1325_daily_bin1595> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep 11 00:11:31 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 00:11:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 00:11:34 2021
Terminated at Sat Sep 11 00:25:12 2021
Results reported at Sat Sep 11 00:25:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1331.2-1325_daily_bin1595 202.819 -13.4282 652752001 653011201 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 :                                   762.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             348.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            821 sec.

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

