/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 17 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 = 7485
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1332.0-0509_daily_bin381
RA = 203.02, Dec = -5.1611
tmin = 338083201, tmax = 338342401
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='736065', job_status='RUN', time_executed='2021-09-08 01:33:08.858624', time_epoch_executed='1631089988.86' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='381'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/736065

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/736065/ft1_4FGL_J1332.0-0509_daily_bin381.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/736065/ft2_4FGL_J1332.0-0509_daily_bin381.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/736065/ft1_4FGL_J1332.0-0509_daily_bin381.fits outfile=/scratch/kocevski/736065/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin381.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=338083201.0 tmax=338342401.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 6.78
user 6.45
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/736065/ft2_4FGL_J1332.0-0509_daily_bin381.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/736065/ft2_4FGL_J1332.0-0509_daily_bin381.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/736065/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin381.fits evtable="EVENTS" outfile="/scratch/kocevski/736065/ft1_filtered_4FGL_J1332.0-0509_daily_bin381.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.59
user 0.37
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/736065/ft1_filtered_4FGL_J1332.0-0509_daily_bin381.fits" evtable="EVENTS" scfile=/scratch/kocevski/736065/ft2_4FGL_J1332.0-0509_daily_bin381.fits sctable="SC_DATA" outfile=/scratch/kocevski/736065/ltcube_338083201_338342401_4FGL_J1332.0-0509_daily_bin381.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/736065/ft2_4FGL_J1332.0-0509_daily_bin381.fits
.....................!
real 15.10
user 14.65
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/736065/ft1_filtered_4FGL_J1332.0-0509_daily_bin381.fits evtable="EVENTS" scfile=/scratch/kocevski/736065/ft2_4FGL_J1332.0-0509_daily_bin381.fits sctable="SC_DATA" expcube=/scratch/kocevski/736065/ltcube_338083201_338342401_4FGL_J1332.0-0509_daily_bin381.fits outfile=/scratch/kocevski/736065/expmap_338083201_338342401_4FGL_J1332.0-0509_daily_bin381.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/736065/ltcube_338083201_338342401_4FGL_J1332.0-0509_daily_bin381.fits
.....................!
real 192.70
user 187.21
sys 4.95

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 170 point sources and 0 extended sources

Setting source of interest to:
4FGL J1332.0-0509 @ 203.02 -5.1611

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/736065/ft1_filtered_4FGL_J1332.0-0509_daily_bin381.fits scfile=/scratch/kocevski/736065/ft2_4FGL_J1332.0-0509_daily_bin381.fits outfile=/scratch/kocevski/736065/cmap_338083201_338342401_4FGL_J1332.0-0509_daily_bin381.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=203.02 yref=-5.1611 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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/736065/ft1_filtered_4FGL_J1332.0-0509_daily_bin381.fits scfile=/scratch/kocevski/736065/ft2_4FGL_J1332.0-0509_daily_bin381.fits outfile=/scratch/kocevski/736065/cmap_HighResolution_338083201_338342401_4FGL_J1332.0-0509_daily_bin381.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=203.02 yref=-5.1611 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.58
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/736065/ft1_filtered_4FGL_J1332.0-0509_daily_bin381.fits evtable="EVENTS" scfile=/scratch/kocevski/736065/ft2_4FGL_J1332.0-0509_daily_bin381.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/736065/Model_4FGL_J1332.0-0509_daily_bin381.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/736065/ft1_filtered_4FGL_J1332.0-0509_daily_bin381.fits.....................!
real 53.81
user 52.31
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/736065/ft1_filtered_4FGL_J1332.0-0509_daily_bin381.fits', '/scratch/kocevski/736065/ft2_4FGL_J1332.0-0509_daily_bin381.fits', expMap='/scratch/kocevski/736065/expmap_338083201_338342401_4FGL_J1332.0-0509_daily_bin381.fits', expCube='/scratch/kocevski/736065/ltcube_338083201_338342401_4FGL_J1332.0-0509_daily_bin381.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/736065/Model_4FGL_J1332.0-0509_daily_bin381.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1332.0-0509'

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  2.389e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.394e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
307         beta:  1.669e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
308           Eb:  5.229e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/736065/ft1_filtered_4FGL_J1332.0-0509_daily_bin381.fits
Spacecraft file(s): /scratch/kocevski/736065/ft2_4FGL_J1332.0-0509_daily_bin381.fits
Exposure map: /scratch/kocevski/736065/expmap_338083201_338342401_4FGL_J1332.0-0509_daily_bin381.fits
Exposure cube: /scratch/kocevski/736065/ltcube_338083201_338342401_4FGL_J1332.0-0509_daily_bin381.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/736065/Model_4FGL_J1332.0-0509_daily_bin381.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) = 6705.98910269

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12386E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10102E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.5476       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12398E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    6.6808       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.6556       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.1424       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .98971       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10771E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.0153       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10425E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .91003E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    .10222E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.117       1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3859       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .89254       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6705.922     FROM MIGRAD    STATUS=CONVERGED    607 CALLS     2393 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    39.930       -.15953E-06** at limit **
   2  norm          .10000E-03    10.715        .10139E-06** at limit **
   3  norm          1.5474        .31996        .14386E-08   -.94249E-04
   4  Prefactor     .10000E-03    29.283        .17996E-06** at limit **
   5  norm          .10000E-03    3.4616        .11565E-07** at limit **
   6  norm          6.6822        6.2917        .76001E-06    .43232E-03
   7  Prefactor     .10000E-03    2.2212       -.18793E-07** at limit **
   8  Prefactor     3.6403        21.955        .15157E-05    .24350E-04
   9  Prefactor     4.1415        4.0345        .12640E-05   -.14588E-02
  10  Prefactor     .10000E-03    6.3247       -.20531E-07** at limit **
  11  norm          .98910        1.4584        .78235E-07   -.35127E-03
  12  norm          .10000E-03    1.2875       -.12697E-07** at limit **
  13  norm          .10000E-03    2.3583       -.13407E-07** at limit **
  14  norm          .10000E-03    15.403       -.44276E-06** at limit **
  15  Prefactor     5.0172        4.2767        .40410E-07   -.77500E-04
  16  Prefactor     .10000E-03    12.504        .36274E-05** at limit **
  17  Prefactor     .10022E-03    30.949        .36344E-07** at limit **
  18  norm          .10000E-03    2.5884        .23411E-08** at limit **
  19  Prefactor     19.113        15.850       -.33794E-07   -.53560E-04
  20  norm          .10000E-03    1.4091        .38551E-07** at limit **
  21  Prefactor     .10000E-03    12.415       -.33249E-05** at limit **
  22  norm          .10000E-03    5.9318        .98303E-09** at limit **
  23  Normalizat    1.3860        .22690       -.30420E-06   -.34789E-04
  24  Prefactor     .89262        .14341       -.13775E-06   -.51610E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.54741
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.68218
  Prefactor  = 0.0001
  Prefactor  = 3.64035
  Prefactor  = 4.14152
  Prefactor  = 0.0001
  norm       = 0.989099
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.01717
  Prefactor  = 0.000100003
  Prefactor  = 0.000100221
  norm       = 0.0001
  Prefactor  = 19.1126
  norm       = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.0001
  Normalizat = 1.38597
  Prefactor  = 0.892616
 **********
 **   18 **HESSE 
 **********

 FCN=   6705.922     FROM HESSE     STATUS=OK           403 CALLS     2796 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    39.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    10.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.5474        .32055        .20182E-04   -1.5459    
   4  Prefactor     .10000E-03    29.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.4836        .14879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.6822        6.3939        .15525E-03   -1.5191    
   7  Prefactor     .10000E-03    2.2238        .11919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.6403        22.091        .21127E-03   -1.5326    
   9  Prefactor     4.1415        4.8211        .94201E-03   -1.5301    
  10  Prefactor     .10000E-03    6.3595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .98910        1.4190        .11311E-03   -1.5509    
  12  norm          .10000E-03    1.3202        .18139E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.3770        .12278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    15.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.0172        4.2735        .14958E-03   -1.5260    
  16  Prefactor     .10000E-03    13.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10022E-03    32.071        .13680       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.6006        .12861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     19.113        15.876        .91603E-04   -1.4833    
  20  norm          .10000E-03    2.7353        .18794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    5.9350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3860        .27246        .28966E-03   -.81035    
  24  Prefactor     .89262        .17225        .22884E-03   -.96400    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80849e-09
Minuit parameter uncertainties:
  1  3.10664e-05
  2  1.10696e-05
  3  0.320552
  4  3.02279e-05
  5  2.07331e-07
  6  6.39453
  7  7.79802e-07
  8  17.9448
  9  4.82151
  10  7.62688e-07
  11  1.41907
  12  8.12131e-08
  13  1.68427e-07
  14  5.64193e-05
  15  4.27378
  16  0.000431589
  17  0.0053326
  18  5.39339e-07
  19  15.8797
  20  4.16668e-06
  21  0.000389593
  22  4.2331e-07
  23  0.272743
  24  0.172353
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  9.891e-01  1.419e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.394e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
307         beta:  1.669e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
308           Eb:  5.229e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  8.926e-01  1.724e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  1.386e+00  2.727e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.63
Ra Dec: 203.020 -5.161
Photon Flux Upper Limit: 1.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.83e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/736065/likelihoodResults_338083201_338342401_4FGL_J1332.0-0509_daily_bin381.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) = 6705.84992847
delta logL = 0.0717278413695

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6705.84690918
delta logL = 0.0747471337208

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .94927       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8473       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3661       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90083       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6705.847     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      222 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .94815        60.994        .12985E-01    .11519E-02
   2  alpha         2.8463        3.4063        .41665E-01    .10775E-04
   3  Normalizat    1.3656        .11752        .65888E-01    .19971E-06
   4  Prefactor     .90109        .83980E-01    .45016E-01    .11015E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.948154
  alpha      = 2.84629
  Normalizat = 1.36561
  Prefactor  = 0.901086
 **********
 **   18 **HESSE 
 **********

 FCN=   6705.847     FROM HESSE     STATUS=OK            31 CALLS      253 TOTAL
                     EDM=   .14E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .94815        1.3462        .95090E-04   -1.5513    
   2  alpha         2.8463        1.1569        .16666E-02    .13896    
   3  Normalizat    1.3656        .26967        .29146E-03   -.81629    
   4  Prefactor     .90109        .17260        .22788E-03   -.96103    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39451e-13
Minuit parameter uncertainties:
  1  1.34623
  2  1.20374
  3  0.269948
  4  0.172705
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/736065': 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) = 6705.84690443
delta logL = 0.0747518767676

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  9.482e-01  1.346e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.846e+00  1.204e+00  0.000e+00  5.000e+00 ( 1.000e+00)
307         beta:  1.669e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
308           Eb:  5.229e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  9.011e-01  1.727e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  1.366e+00  2.699e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.63
Ra Dec: 203.020 -5.161

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/736065/cmap_HighResolution_338083201_338342401_4FGL_J1332.0-0509_daily_bin381.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.83e-05', job_status='DONE', photon_flux_upper_limit='1.27e-07', time_completed='2021-09-08 01:44:41.537317', job_id='736065', GAL2='0.90', fit_tolerance='1e-08', EG2='1.37', EG='1.39', time_epoch_completed='1631090681.54', return_code2='0', ts='0.63', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='7.48e-02', ts2='0.79', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='381' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:44:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 736065: <4FGL_J1332.0-0509_daily_bin381> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin381> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 01:31:02 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:32: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:32:27 2021
Terminated at Wed Sep  8 01:44:42 2021
Results reported at Wed Sep  8 01:44:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin381 203.02 -5.1611 338083201 338342401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1332.0-0509 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   685.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   734 sec.
    Turnaround time :                            820 sec.

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

