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


Performing analysis on: 4FGL_J1331.2-1325_daily_bin1592
RA = 202.819, Dec = -13.4282
tmin = 651974401, tmax = 652233601
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='734571', job_status='RUN', time_executed='2021-09-08 01:29:32.750118', time_epoch_executed='1631089772.75' WHERE source_name='4FGL J1331.2-1325' and cadence='daily' and bin_id='1592'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/734571

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/734571/ft1_4FGL_J1331.2-1325_daily_bin1592.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/734571/ft2_4FGL_J1331.2-1325_daily_bin1592.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/734571/ft1_4FGL_J1331.2-1325_daily_bin1592.fits outfile=/scratch/kocevski/734571/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1592.fits ra=202.819 dec=-13.4282 rad=12.0 tmin=651974401.0 tmax=652233601.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.92
user 2.70
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/734571/ft1_filtered_4FGL_J1331.2-1325_daily_bin1592.fits" evtable="EVENTS" scfile=/scratch/kocevski/734571/ft2_4FGL_J1331.2-1325_daily_bin1592.fits sctable="SC_DATA" outfile=/scratch/kocevski/734571/ltcube_651974401_652233601_4FGL_J1331.2-1325_daily_bin1592.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/734571/ft2_4FGL_J1331.2-1325_daily_bin1592.fits
.....................!
real 13.03
user 12.70
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/734571/ft1_filtered_4FGL_J1331.2-1325_daily_bin1592.fits evtable="EVENTS" scfile=/scratch/kocevski/734571/ft2_4FGL_J1331.2-1325_daily_bin1592.fits sctable="SC_DATA" expcube=/scratch/kocevski/734571/ltcube_651974401_652233601_4FGL_J1331.2-1325_daily_bin1592.fits outfile=/scratch/kocevski/734571/expmap_651974401_652233601_4FGL_J1331.2-1325_daily_bin1592.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/734571/ltcube_651974401_652233601_4FGL_J1331.2-1325_daily_bin1592.fits
.....................!
real 155.84
user 152.11
sys 3.29

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/734571/ft1_filtered_4FGL_J1331.2-1325_daily_bin1592.fits scfile=/scratch/kocevski/734571/ft2_4FGL_J1331.2-1325_daily_bin1592.fits outfile=/scratch/kocevski/734571/cmap_651974401_652233601_4FGL_J1331.2-1325_daily_bin1592.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.59
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/734571/ft1_filtered_4FGL_J1331.2-1325_daily_bin1592.fits scfile=/scratch/kocevski/734571/ft2_4FGL_J1331.2-1325_daily_bin1592.fits outfile=/scratch/kocevski/734571/cmap_HighResolution_651974401_652233601_4FGL_J1331.2-1325_daily_bin1592.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.49
user 0.33
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4164       1.0000         .10000E-03   10000.    
     2 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.6608       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .18100E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    132.72       1.0000         .10000E-03   10000.    
     7 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.182       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10667E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .58968       1.0000         .10000E-03   10000.    
    12 'norm      '    8.0961       1.0000         .10000E-03   10000.    
    13 'norm      '    20.117       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    21.056       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.3379       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    5.9442       1.0000         .10000E-03   10000.    
    22 'norm      '    4.6377       1.0000         .10000E-03   10000.    
    23 'Normalizat'    2.1493       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .63593       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5700E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7643.757     FROM MIGRAD    STATUS=CONVERGED    120 CALLS     2244 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4165        .60581       -.21694E-06   -.20314E-03
   2  norm          .10013E-03    6.1449       -.11426E-05** at limit **
   3  norm          6.6615        1.2131        .24044E-05    .25607E-02
   4  Prefactor     .10000E-03    49.808       -.84891E-05** at limit **
   5  norm          .10000E-03    .77493        .14105E-06** at limit **
   6  norm          132.64        25.670        .13092E-04   -.22957E-02
   7  norm          .10000E-03    6.2285        .62541E-06** at limit **
   8  Prefactor     12.182        1.0273        .16702E-06   -.15177E-03
   9  Prefactor     .10000E-03    11.787       -.81539E-05** at limit **
  10  Prefactor     .10001E-03    17.253        .19546E-04** at limit **
  11  norm          .59057        1.7322        .34226E-06    .11128E-03
  12  norm          8.0939        4.6022        .10058E-05   -.59845E-03
  13  norm          20.119        1.6472        .42518E-06    .31228E-02
  14  Prefactor     .10000E-03    5.0730        .53166E-06** at limit **
  15  Prefactor     .10013E-03    12.566       -.21593E-04** at limit **
  16  norm          20.865        48.141       -.68614E-04    .45838E-03
  17  Prefactor     .10000E-03    2.8118        .42128E-07** at limit **
  18  norm          4.3401        4.7940       -.40222E-05    .58680E-02
  19  Prefactor     .10000E-03    3.2118        .39658E-06** at limit **
  20  Prefactor     .10000E-03    9.4445        .22321E-04** at limit **
  21  norm          5.9424        4.4081       -.13128E-04   -.79473E-02
  22  norm          4.6362        2.9302        .33374E-06    .18100E-03
  23  Normalizat    2.1500        .32151       -.41726E-05   -.58508E-05
  24  Prefactor     .63567        .15290        .33571E-05    .35826E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.41646
  norm       = 0.000100127
  norm       = 6.66154
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 132.642
  norm       = 0.0001
  Prefactor  = 12.1819
  Prefactor  = 0.000100002
  Prefactor  = 0.000100011
  norm       = 0.590572
  norm       = 8.09385
  norm       = 20.1187
  Prefactor  = 0.0001
  Prefactor  = 0.000100132
  norm       = 20.865
  Prefactor  = 0.0001
  norm       = 4.34015
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 5.9424
  norm       = 4.63619
  Normalizat = 2.14996
  Prefactor  = 0.635672
 **********
 **   18 **HESSE 
 **********

 FCN=   7643.757     FROM HESSE     STATUS=OK           445 CALLS     2689 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4165        .60434        .47908E-02   -1.5288    
   2  norm          .10013E-03    13.650        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.6615        6.6600        .38870E-02   -1.5192    
   4  Prefactor     .10000E-03    49.806        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .77352        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          132.64        25.966        .87386E-03   -1.3399    
   7  norm          .10000E-03    6.2071        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.182        8.9804        .28693E-02   -1.5010    
   9  Prefactor     .10000E-03    11.703        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    17.403        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .59057        1.7388        .11632E-01   -1.5554    
  12  norm          8.0939        5.0670        .35227E-02   -1.5139    
  13  norm          20.119        10.433        .22325E-02   -1.4811    
  14  Prefactor     .10000E-03    5.0613        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10013E-03    15.208        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          20.865        48.780        .21822E-02   -1.4794    
  17  Prefactor     .10000E-03    2.8111        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.3401        6.4770        .48351E-02   -1.5291    
  19  Prefactor     .10000E-03    3.1938        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    13.185        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.9424        5.8506        .41175E-02   -1.5220    
  22  norm          4.6362        2.9318        .46722E-02   -1.5277    
  23  Normalizat    2.1500        .27517        .75329E-01   -.60843    
  24  Prefactor     .63567        .13125        .62053E-01   -1.0610    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09971e-07
Minuit parameter uncertainties:
  1  0.604343
  2  0.00263193
  3  6.66077
  4  0.000629154
  5  9.09874e-07
  6  25.9681
  7  1.46307e-06
  8  8.98141
  9  0.000331448
  10  0.000870409
  11  1.73894
  12  5.06727
  13  10.4343
  14  1.15497e-05
  15  0.00283471
  16  48.8734
  17  5.15374e-07
  18  6.47806
  19  3.43042e-06
  20  0.000493385
  21  5.8512
  22  2.93186
  23  0.275376
  24  0.131309
Done.

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

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  8.704e-04  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:  6.357e-01  1.313e-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.150e+00  2.754e-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.41e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.11e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/734571/likelihoodResults_651974401_652233601_4FGL_J1331.2-1325_daily_bin1592.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) = 7643.75759605
delta logL = -0.000272883600701

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7643.75732422
delta logL = -1.05474191514e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8638       1.0000          .0000       10.000    
     3 'Normalizat'    2.1500       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63567       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=   7643.757     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      285 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10230E-03    3.7511        .18142E-01** at limit **
   2  Index         2.7926        8.4941        .50000        .21888E-04
   3  Normalizat    2.1500        .37486E-02    .33320E-03    .60419E-04
   4  Prefactor     .63567        .18369E-02    .13726E-02   -.28541E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102296
  Index      = 2.79261
  Normalizat = 2.14996
  Prefactor  = 0.635671
 **********
 **   18 **HESSE 
 **********

 FCN=   7643.757     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      314 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10230E-03    212.38        .63021E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7926        5.9984        .50000       -.45724    
   3  Normalizat    2.1500        .28229E-01    .66640E-04   -.60843    
   4  Prefactor     .63567        .13832E-01    .54905E-04   -1.0610    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.40359e-08
Minuit parameter uncertainties:
  1  0.0443227
  2  340.694
  3  0.0282292
  4  0.0138325
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/734571': 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) = 7643.75732393
delta logL = -7.59328941058e-07

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  1.023e-04  4.432e-02  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  2.793e+00  3.407e+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:  6.357e-01  1.383e-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:  2.150e+00  2.823e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/734571/cmap_HighResolution_651974401_652233601_4FGL_J1331.2-1325_daily_bin1592.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.11e-02', job_status='DONE', photon_flux_upper_limit='1.41e-07', time_completed='2021-09-08 01:39:39.385342', job_id='734571', GAL2='0.64', fit_tolerance='1e-08', EG2='2.15', EG='2.15', time_epoch_completed='1631090379.39', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.64', dlogl='-7.59e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.60' WHERE bin_id='1592' AND source_name='4FGL J1331.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:39:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 734571: <4FGL_J1331.2-1325_daily_bin1592> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1331.2-1325_daily_bin1592 202.819 -13.4282 651974401 652233601 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 :                                   598.43 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             266.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            846 sec.

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

