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


Performing analysis on: 4FGL_J1331.2-1325_daily_bin1011
RA = 202.819, Dec = -13.4282
tmin = 501379201, tmax = 501638401
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='734454', job_status='RUN', time_executed='2021-09-08 01:28:53.258327', time_epoch_executed='1631089733.26' WHERE source_name='4FGL J1331.2-1325' and cadence='daily' and bin_id='1011'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/734454

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/734454/ft1_4FGL_J1331.2-1325_daily_bin1011.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/734454/ft2_4FGL_J1331.2-1325_daily_bin1011.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/734454/ft1_4FGL_J1331.2-1325_daily_bin1011.fits outfile=/scratch/kocevski/734454/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1011.fits ra=202.819 dec=-13.4282 rad=12.0 tmin=501379201.0 tmax=501638401.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.64
user 3.39
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/734454/ft2_4FGL_J1331.2-1325_daily_bin1011.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/734454/ft1_filteredMKT_4FGL_J1331.2-1325_daily_bin1011.fits evtable="EVENTS" outfile="/scratch/kocevski/734454/ft1_filtered_4FGL_J1331.2-1325_daily_bin1011.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.68
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/734454/ft1_filtered_4FGL_J1331.2-1325_daily_bin1011.fits" evtable="EVENTS" scfile=/scratch/kocevski/734454/ft2_4FGL_J1331.2-1325_daily_bin1011.fits sctable="SC_DATA" outfile=/scratch/kocevski/734454/ltcube_501379201_501638401_4FGL_J1331.2-1325_daily_bin1011.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/734454/ft2_4FGL_J1331.2-1325_daily_bin1011.fits
.....................!
real 15.20
user 14.79
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/734454/ft1_filtered_4FGL_J1331.2-1325_daily_bin1011.fits evtable="EVENTS" scfile=/scratch/kocevski/734454/ft2_4FGL_J1331.2-1325_daily_bin1011.fits sctable="SC_DATA" expcube=/scratch/kocevski/734454/ltcube_501379201_501638401_4FGL_J1331.2-1325_daily_bin1011.fits outfile=/scratch/kocevski/734454/expmap_501379201_501638401_4FGL_J1331.2-1325_daily_bin1011.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/734454/ltcube_501379201_501638401_4FGL_J1331.2-1325_daily_bin1011.fits
.....................!
real 191.62
user 186.13
sys 4.97

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/734454/ft1_filtered_4FGL_J1331.2-1325_daily_bin1011.fits scfile=/scratch/kocevski/734454/ft2_4FGL_J1331.2-1325_daily_bin1011.fits outfile=/scratch/kocevski/734454/cmap_501379201_501638401_4FGL_J1331.2-1325_daily_bin1011.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/734454/ft1_filtered_4FGL_J1331.2-1325_daily_bin1011.fits scfile=/scratch/kocevski/734454/ft2_4FGL_J1331.2-1325_daily_bin1011.fits outfile=/scratch/kocevski/734454/cmap_HighResolution_501379201_501638401_4FGL_J1331.2-1325_daily_bin1011.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/734454/ft1_filtered_4FGL_J1331.2-1325_daily_bin1011.fits evtable="EVENTS" scfile=/scratch/kocevski/734454/ft2_4FGL_J1331.2-1325_daily_bin1011.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/734454/Model_4FGL_J1331.2-1325_daily_bin1011.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/734454/ft1_filtered_4FGL_J1331.2-1325_daily_bin1011.fits.....................!
real 58.13
user 56.75
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2155       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.7412       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    44.661       1.0000         .10000E-03   10000.    
     7 'norm      '    14.292       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.880       1.0000         .10000E-03   10000.    
    11 'norm      '    .60072       1.0000         .10000E-03   10000.    
    12 'norm      '    .22016E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    12.104       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .47820E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.708       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    56.699       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.9664       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2623       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99903       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=   7091.594     FROM MIGRAD    STATUS=CONVERGED    599 CALLS     2849 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2154        .32581        .38875E-07    .15468E-03
   2  norm          .10000E-03    4.1040        .18954E-07** at limit **
   3  norm          8.7408        6.8963       -.11375E-06   -.72161E-04
   4  Prefactor     .10000E-03    28.295       -.47297E-06** at limit **
   5  norm          .10000E-03    1.6631        .15793E-07** at limit **
   6  norm          44.659        15.595       -.19573E-05    .20965E-04
   7  norm          14.292        13.212       -.16706E-05   -.26620E-05
   8  Prefactor     .10000E-03    5.1223        .70927E-07** at limit **
   9  Prefactor     .10000E-03    4.8729        .27815E-07** at limit **
  10  Prefactor     22.886        27.659        .33036E-05    .43501E-03
  11  norm          .60063        1.2760       -.14747E-06   -.11663E-02
  12  norm          .10002E-03    3.6550       -.75834E-06** at limit **
  13  norm          12.106        9.8496       -.57292E-06    .47466E-03
  14  Prefactor     .10035E-03    8.2639       -.16651E-05** at limit **
  15  Prefactor     20.707        36.502        .21790E-04    .45860E-04
  16  norm          .10000E-03    15.830        .38288E-08** at limit **
  17  Prefactor     .10000E-03    7.3743       -.13258E-06** at limit **
  18  norm          .10000E-03    2.0605        .55528E-08** at limit **
  19  Prefactor     .10000E-03    5.6920        .86175E-07** at limit **
  20  Prefactor     56.701        44.357       -.17691E-05    .41147E-04
  21  norm          .10000E-03    1.6283        .26968E-07** at limit **
  22  norm          1.9663        1.9489       -.10031E-07   -.27745E-03
  23  Normalizat    1.2624        .24578       -.42001E-06    .27723E-03
  24  Prefactor     .99903        .12403       -.82205E-06    .52202E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.21544
  norm       = 0.0001
  norm       = 8.74083
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 44.6592
  norm       = 14.2919
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.8859
  norm       = 0.600633
  norm       = 0.000100017
  norm       = 12.1056
  Prefactor  = 0.000100346
  Prefactor  = 20.7066
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 56.7014
  norm       = 0.0001
  norm       = 1.96631
  Normalizat = 1.26236
  Prefactor  = 0.999026
 **********
 **   18 **HESSE 
 **********

 FCN=   7091.594     FROM HESSE     STATUS=OK           405 CALLS     3254 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2154        .32642        .23966E-04   -1.5487    
   2  norm          .10000E-03    4.1259        .16658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.7408        6.8961        .13558E-03   -1.5117    
   4  Prefactor     .10000E-03    28.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.7422        .21198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          44.659        15.584        .59992E-04   -1.4370    
   7  norm          14.292        13.210        .10595E-03   -1.4952    
   8  Prefactor     .10000E-03    5.1496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.8990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     22.886        23.945        .83741E-04   -1.4751    
  11  norm          .60063        1.2200        .13057E-02   -1.5553    
  12  norm          .10002E-03    35.492        .23688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          12.106        9.6529        .11514E-03   -1.5012    
  14  Prefactor     .10035E-03    19.402        .74906E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     20.707        36.024        .88017E-04   -1.4798    
  16  norm          .10000E-03    15.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.4114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.0690        .11802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.9100        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     56.701        44.357        .53275E-04   -1.4201    
  21  norm          .10000E-03    1.6300        .10494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.9663        1.9377        .11378E-03   -1.5428    
  23  Normalizat    1.2624        .28333        .34704E-03   -.84697    
  24  Prefactor     .99903        .14469        .20274E-03   -.92762    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34927e-09
Minuit parameter uncertainties:
  1  0.326422
  2  4.31873e-06
  3  6.89674
  4  3.88159e-05
  5  9.34134e-07
  6  15.585
  7  13.2129
  8  6.75681e-07
  9  1.10322e-05
  10  23.9553
  11  1.22001
  12  0.0015604
  13  9.65411
  14  0.00518465
  15  36.0614
  16  1.86435e-06
  17  5.37782e-05
  18  2.31715e-06
  19  2.36843e-05
  20  44.3827
  21  1.28051e-06
  22  1.93772
  23  0.283681
  24  0.144743
Done.

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

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  2.289e+01  2.396e+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:  9.990e-01  1.447e-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.262e+00  2.837e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.58
Ra Dec: 202.819 -13.428
Photon Index (Fixed Index): 2.60 +/- 0.00
Photon Flux (Fixed Index): 7.59e-08 +/- 7.94e-08
Energy Flux (Fixed Index): 1.99e-05 +/- 2.08e-05

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

Saving results to:
/scratch/kocevski/734454/likelihoodResults_501379201_501638401_4FGL_J1331.2-1325_daily_bin1011.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) = 7091.36280402
delta logL = 0.230907726637

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7091.34256253
delta logL = 0.251149218087

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.252       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2533       1.0000          .0000       10.000    
     3 'Normalizat'    1.2157       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0147       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=   7091.343     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      286 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.244        33.977        .12514E-03   -.81246E-03
   2  Index         3.2536        1.7432        .56663E-02   -.20657E-03
   3  Normalizat    1.2157        .28547        .35259E-03    .29769E-03
   4  Prefactor     1.0146        .14627        .20135E-03    .50234E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.2441
  Index      = 3.25358
  Normalizat = 1.21575
  Prefactor  = 1.01463
 **********
 **   18 **HESSE 
 **********

 FCN=   7091.343     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.244        18.482        .50056E-05   -1.5068    
   2  Index         3.2536        .96100        .22665E-03   -.35681    
   3  Normalizat    1.2157        .28237        .70519E-04   -.86118    
   4  Prefactor     1.0146        .14465        .40270E-04   -.92244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.24322e-10
Minuit parameter uncertainties:
  1  18.4922
  2  0.967867
  3  0.282729
  4  0.144703
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/734454': 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) = 7091.34256238
delta logL = 0.251149370251

Extracting fit parameters...

4FGL J1331.2-1325
   Spectrum: PowerLaw
287    Prefactor:  1.024e+01  1.849e+01  1.000e-04  1.000e+04 ( 1.000e-13)
288        Index:  3.254e+00  9.679e-01  0.000e+00  1.000e+01 (-1.000e+00)
289        Scale:  1.117e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
567    Prefactor:  1.015e+00  1.447e-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.216e+00  2.827e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.17
Ra Dec: 202.819 -13.428
Photon Index (Free Index): 3.25 +/- 0.97
Photon Flux (Free Index): 1.17e-07 +/- 9.72e-08
Energy Flux (Free Index): 2.10e-05 +/- 1.65e-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/734454/cmap_HighResolution_501379201_501638401_4FGL_J1331.2-1325_daily_bin1011.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.69e-02', comment='SUCCESS', photon_flux='7.59e-08', energy_flux2='2.10e-05', photon_flux_error='7.94e-08', dlogl='2.51e-01', energy_flux='1.99e-05', photon_flux2='1.17e-07', job_status='DONE', time_completed='2021-09-08 01:41:15.324734', photon_index_error2='0.97', photon_index2='3.25', ts='1.58', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='2.16e-07', energy_flux_error2='1.65e-05', EG='1.26', time_epoch_completed='1631090475.32', return_code='0', job_id='734454', GAL2='1.01', EG2='1.22', return_code2='0', energy_flux_error='2.08e-05', photon_flux_error2='9.72e-08', ts2='2.17', photon_index='2.60' WHERE bin_id='1011' AND source_name='4FGL J1331.2-1325' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:41:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 734454: <4FGL_J1331.2-1325_daily_bin1011> in cluster <slac> Done

Job <4FGL_J1331.2-1325_daily_bin1011> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  8 01:25:26 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:25:27 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:27 2021
Terminated at Wed Sep  8 01:41:16 2021
Results reported at Wed Sep  8 01:41:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1331.2-1325_daily_bin1011 202.819 -13.4282 501379201 501638401 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 :                                   737.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             263.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            950 sec.

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

