/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 64 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 = 7404
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1332.0-0509_daily_bin371
RA = 203.02, Dec = -5.1611
tmin = 335491201, tmax = 335750401
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='736054', job_status='RUN', time_executed='2021-09-08 01:33:44.190482', time_epoch_executed='1631090024.19' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='371'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/736054

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/736054/ft1_4FGL_J1332.0-0509_daily_bin371.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/736054/ft2_4FGL_J1332.0-0509_daily_bin371.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/736054/ft1_4FGL_J1332.0-0509_daily_bin371.fits outfile=/scratch/kocevski/736054/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin371.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=335491201.0 tmax=335750401.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.47
user 3.22
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/736054/ft1_filtered_4FGL_J1332.0-0509_daily_bin371.fits" evtable="EVENTS" scfile=/scratch/kocevski/736054/ft2_4FGL_J1332.0-0509_daily_bin371.fits sctable="SC_DATA" outfile=/scratch/kocevski/736054/ltcube_335491201_335750401_4FGL_J1332.0-0509_daily_bin371.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/736054/ft2_4FGL_J1332.0-0509_daily_bin371.fits
.....................!
real 17.19
user 16.75
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/736054/ft1_filtered_4FGL_J1332.0-0509_daily_bin371.fits evtable="EVENTS" scfile=/scratch/kocevski/736054/ft2_4FGL_J1332.0-0509_daily_bin371.fits sctable="SC_DATA" expcube=/scratch/kocevski/736054/ltcube_335491201_335750401_4FGL_J1332.0-0509_daily_bin371.fits outfile=/scratch/kocevski/736054/expmap_335491201_335750401_4FGL_J1332.0-0509_daily_bin371.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/736054/ltcube_335491201_335750401_4FGL_J1332.0-0509_daily_bin371.fits
.....................!
real 193.42
user 187.51
sys 4.79

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/736054/ft1_filtered_4FGL_J1332.0-0509_daily_bin371.fits scfile=/scratch/kocevski/736054/ft2_4FGL_J1332.0-0509_daily_bin371.fits outfile=/scratch/kocevski/736054/cmap_335491201_335750401_4FGL_J1332.0-0509_daily_bin371.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.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/736054/ft1_filtered_4FGL_J1332.0-0509_daily_bin371.fits scfile=/scratch/kocevski/736054/ft2_4FGL_J1332.0-0509_daily_bin371.fits outfile=/scratch/kocevski/736054/cmap_HighResolution_335491201_335750401_4FGL_J1332.0-0509_daily_bin371.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.56
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/736054/ft1_filtered_4FGL_J1332.0-0509_daily_bin371.fits evtable="EVENTS" scfile=/scratch/kocevski/736054/ft2_4FGL_J1332.0-0509_daily_bin371.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/736054/Model_4FGL_J1332.0-0509_daily_bin371.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/736054/ft1_filtered_4FGL_J1332.0-0509_daily_bin371.fits.....................!
real 52.86
user 51.17
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/736054/ft1_filtered_4FGL_J1332.0-0509_daily_bin371.fits', '/scratch/kocevski/736054/ft2_4FGL_J1332.0-0509_daily_bin371.fits', expMap='/scratch/kocevski/736054/expmap_335491201_335750401_4FGL_J1332.0-0509_daily_bin371.fits', expCube='/scratch/kocevski/736054/ltcube_335491201_335750401_4FGL_J1332.0-0509_daily_bin371.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/736054/Model_4FGL_J1332.0-0509_daily_bin371.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/736054/ft1_filtered_4FGL_J1332.0-0509_daily_bin371.fits
Spacecraft file(s): /scratch/kocevski/736054/ft2_4FGL_J1332.0-0509_daily_bin371.fits
Exposure map: /scratch/kocevski/736054/expmap_335491201_335750401_4FGL_J1332.0-0509_daily_bin371.fits
Exposure cube: /scratch/kocevski/736054/ltcube_335491201_335750401_4FGL_J1332.0-0509_daily_bin371.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/736054/Model_4FGL_J1332.0-0509_daily_bin371.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) = 6571.53434104

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.4266       1.0000         .10000E-03   10000.    
     3 'norm      '    1.6509       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .64947E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .23831       1.0000         .10000E-03   10000.    
     6 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.8393       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .58320       1.0000         .10000E-03   10000.    
    12 'norm      '    4.7166       1.0000         .10000E-03   10000.    
    13 'norm      '    .17069E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    20.372       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .36245       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10048E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13875E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .83137       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    66.347       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3478       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .86968       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6571.531     FROM MIGRAD    STATUS=CONVERGED   1006 CALLS     3636 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.304        .18142E-02** at limit **
   2  norm          3.4342        43.640        .21852E-03   -.12278E-04
   3  norm          1.6509        .34132        .20244E-04   -.27452E-02
   4  Prefactor     .10002E-03    297.05        .21021E-02** at limit **
   5  norm          .25419        187.88        .47173E-02    .19540E-03
   6  norm          .10000E-03    5.2033        .18032E-02** at limit **
   7  Prefactor     .10000E-03    3.4886        .14767E-02** at limit **
   8  Prefactor     .10000E-03    9.9183        .18142E-02** at limit **
   9  Prefactor     2.8393        4.3020        .20159E-03   -.63502E-04
  10  Prefactor     .10000E-03    7.1066        .18142E-02** at limit **
  11  norm          .58378        1.5138        .14988E-03   -.23719E-03
  12  norm          4.7182        3.3576        .12001E-03   -.44239E-03
  13  norm          .10001E-03    15.660        .31950E-02** at limit **
  14  norm          20.369        31.287        .88739E-04   -.17680E-04
  15  Prefactor     .35941        5.8107        .25429E-02    .11801E-02
  16  Prefactor     .10000E-03    8.5356        .18142E-02** at limit **
  17  Prefactor     .10051E-03    38.893        .15088    ** at limit **
  18  norm          .10000E-03    1.7615        .10497E-02** at limit **
  19  Prefactor     .10007E-03    97.430        .47382E-02** at limit **
  20  norm          .83303        2.3743        .20322E-03   -.18657E-03
  21  Prefactor     .10000E-03    8.4416        .18142E-02** at limit **
  22  norm          66.361        28.146        .24636E-03    .53806E-04
  23  Normalizat    1.3476        .25550        .29156E-03   -.38798E-03
  24  Prefactor     .86957        .16627        .22979E-03   -.45312E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.4342
  norm       = 1.65089
  Prefactor  = 0.000100019
  norm       = 0.254188
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.83926
  Prefactor  = 0.0001
  norm       = 0.583781
  norm       = 4.71824
  norm       = 0.000100009
  norm       = 20.369
  Prefactor  = 0.359409
  Prefactor  = 0.0001
  Prefactor  = 0.000100506
  norm       = 0.0001
  Prefactor  = 0.000100068
  norm       = 0.833031
  Prefactor  = 0.0001
  norm       = 66.3606
  Normalizat = 1.34764
  Prefactor  = 0.869567
 **********
 **   18 **HESSE 
 **********

 FCN=   6571.531     FROM HESSE     STATUS=OK           389 CALLS     4025 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.305        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.4342        43.622        .87408E-05   -1.5337    
   3  norm          1.6509        .34095        .40487E-05   -1.5451    
   4  Prefactor     .10002E-03    297.27        .42043E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .25419        191.03        .18869E-02   -1.5607    
   6  norm          .10000E-03    5.2039        .36065E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.4888        .29534E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.9193        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.8393        4.3019        .80635E-05   -1.5371    
  10  Prefactor     .10000E-03    7.1070        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .58378        1.5130        .59951E-05   -1.5555    
  12  norm          4.7182        3.3538        .48005E-05   -1.5274    
  13  norm          .10001E-03    15.821        .63900E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          20.369        31.281        .35496E-05   -1.4805    
  15  Prefactor     .35941        5.8063        .10172E-03   -1.5588    
  16  Prefactor     .10000E-03    8.5360        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10051E-03    39.209        .14994       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.7615        .20993E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10007E-03    101.26        .18953E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .83303        2.3732        .81287E-05   -1.5525    
  21  Prefactor     .10000E-03    8.4416        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          66.361        28.144        .98546E-05   -1.4077    
  23  Normalizat    1.3476        .25510        .58312E-04   -.82155    
  24  Prefactor     .86957        .16632        .45957E-04   -.97213    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.17943e-09
Minuit parameter uncertainties:
  1  5.35684e-05
  2  24.5008
  3  0.340946
  4  0.00473855
  5  13.979
  6  9.56331e-06
  7  1.09384e-05
  8  2.09012e-05
  9  4.30234
  10  3.24e-05
  11  1.51306
  12  3.35392
  13  0.000764052
  14  31.3058
  15  2.88911
  16  2.76144e-05
  17  0.00891527
  18  1.01593e-05
  19  0.00523921
  20  2.37352
  21  1.24941e-05
  22  28.1494
  23  0.255335
  24  0.166419
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  5.838e-01  1.513e+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.696e-01  1.664e-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.348e+00  2.553e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/736054/likelihoodResults_335491201_335750401_4FGL_J1332.0-0509_daily_bin371.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) = 6571.5149548
delta logL = 0.0159500667378

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6571.51444092
delta logL = 0.0164639434424

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .61984       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1161       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3527       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86695       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6571.514     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      270 TOTAL
                     EDM=   .47E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .62038        1.4892        .14678E-03   -.34855E-05
   2  alpha         2.1166        1.3620        .39778E-01   -.35568E-05
   3  Normalizat    1.3524        .24871        .29111E-03    .55846E-05
   4  Prefactor     .86709        .16190        .23007E-03   -.88947E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.620384
  alpha      = 2.11658
  Normalizat = 1.3524
  Prefactor  = 0.867093
 **********
 **   18 **HESSE 
 **********

 FCN=   6571.514     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .27E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .62038        1.5015        .58710E-05   -1.5550    
   2  alpha         2.1166        1.3730        .15911E-02   -.15398    
   3  Normalizat    1.3524        .24899        .11644E-04   -.82015    
   4  Prefactor     .86709        .16198        .92026E-05   -.97301    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65635e-13
Minuit parameter uncertainties:
  1  1.50159
  2  1.45586
  3  0.249207
  4  0.162068
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/736054': 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) = 6571.51444026
delta logL = 0.0164646040676

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  6.204e-01  1.502e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.117e+00  1.456e+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:  8.671e-01  1.621e-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.352e+00  2.492e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/736054/cmap_HighResolution_335491201_335750401_4FGL_J1332.0-0509_daily_bin371.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.68e-05', job_status='DONE', photon_flux_upper_limit='1.22e-07', time_completed='2021-09-08 01:46:26.841617', job_id='736054', GAL2='0.87', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1631090786.84', return_code2='0', ts='0.18', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.65e-02', ts2='0.21', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='371' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:46:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 736054: <4FGL_J1332.0-0509_daily_bin371> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin371> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 01:31:01 2021
Job was executed on host(s) <bullet0114>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:32:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 01:32:24 2021
Terminated at Wed Sep  8 01:46:28 2021
Results reported at Wed Sep  8 01:46:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin371 203.02 -5.1611 335491201 335750401 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 :                                   758.27 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             317.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            927 sec.

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

