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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin1096
RA = 203.02, Dec = -5.1611
tmin = 523411201, tmax = 523670401
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='740466', job_status='RUN', time_executed='2021-09-08 01:46:11.530530', time_epoch_executed='1631090771.53' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='1096'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/740466

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/740466/ft1_4FGL_J1332.0-0509_daily_bin1096.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/740466/ft2_4FGL_J1332.0-0509_daily_bin1096.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/740466/ft1_4FGL_J1332.0-0509_daily_bin1096.fits outfile=/scratch/kocevski/740466/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin1096.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=523411201.0 tmax=523670401.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.58
user 3.35
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/740466/ft2_4FGL_J1332.0-0509_daily_bin1096.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/740466/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin1096.fits evtable="EVENTS" outfile="/scratch/kocevski/740466/ft1_filtered_4FGL_J1332.0-0509_daily_bin1096.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.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/740466/ft1_filtered_4FGL_J1332.0-0509_daily_bin1096.fits" evtable="EVENTS" scfile=/scratch/kocevski/740466/ft2_4FGL_J1332.0-0509_daily_bin1096.fits sctable="SC_DATA" outfile=/scratch/kocevski/740466/ltcube_523411201_523670401_4FGL_J1332.0-0509_daily_bin1096.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/740466/ft2_4FGL_J1332.0-0509_daily_bin1096.fits
.....................!
real 15.12
user 14.76
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/740466/ft1_filtered_4FGL_J1332.0-0509_daily_bin1096.fits evtable="EVENTS" scfile=/scratch/kocevski/740466/ft2_4FGL_J1332.0-0509_daily_bin1096.fits sctable="SC_DATA" expcube=/scratch/kocevski/740466/ltcube_523411201_523670401_4FGL_J1332.0-0509_daily_bin1096.fits outfile=/scratch/kocevski/740466/expmap_523411201_523670401_4FGL_J1332.0-0509_daily_bin1096.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/740466/ltcube_523411201_523670401_4FGL_J1332.0-0509_daily_bin1096.fits
.....................!
real 192.46
user 186.97
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 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/740466/ft1_filtered_4FGL_J1332.0-0509_daily_bin1096.fits scfile=/scratch/kocevski/740466/ft2_4FGL_J1332.0-0509_daily_bin1096.fits outfile=/scratch/kocevski/740466/cmap_523411201_523670401_4FGL_J1332.0-0509_daily_bin1096.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/740466/ft1_filtered_4FGL_J1332.0-0509_daily_bin1096.fits scfile=/scratch/kocevski/740466/ft2_4FGL_J1332.0-0509_daily_bin1096.fits outfile=/scratch/kocevski/740466/cmap_HighResolution_523411201_523670401_4FGL_J1332.0-0509_daily_bin1096.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.76
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/740466/ft1_filtered_4FGL_J1332.0-0509_daily_bin1096.fits evtable="EVENTS" scfile=/scratch/kocevski/740466/ft2_4FGL_J1332.0-0509_daily_bin1096.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/740466/Model_4FGL_J1332.0-0509_daily_bin1096.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/740466/ft1_filtered_4FGL_J1332.0-0509_daily_bin1096.fits.....................!
real 60.83
user 59.17
sys 1.33

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.3213       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    16.734       1.0000         .10000E-03   10000.    
     6 'norm      '    4.3411       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.0408       1.0000         .10000E-03   10000.    
     8 'Prefactor '    31.031       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.0172       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .53088       1.0000         .10000E-03   10000.    
    11 'norm      '    .11746E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    8.2972       1.0000         .10000E-03   10000.    
    13 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    10.623       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.675       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.8325       1.0000         .10000E-03   10000.    
    20 'norm      '    .11436E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .18603E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    9.4569       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3339       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .83122       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=   7461.959     FROM MIGRAD    STATUS=CONVERGED    967 CALLS     3185 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.529        .18142E-02** at limit **
   2  norm          .10000E-03    8.0418        .18142E-02** at limit **
   3  norm          3.3213        .40123        .18053E-04   -.39738E-03
   4  Prefactor     .10000E-03    21.064        .18142E-02** at limit **
   5  norm          16.728        11.905        .97909E-04   -.96492E-04
   6  norm          4.3405        8.1192        .19333E-03   -.10156E-03
   7  Prefactor     4.0426        6.4041        .20060E-03   -.65005E-04
   8  Prefactor     31.031        21.930        .71927E-04    .15332E-04
   9  Prefactor     6.0169        10.869        .16369E-03   -.65982E-04
  10  Prefactor     .44309        1176.4        .56913E-02    .50594E-04
  11  norm          .10000E-03    2.2117        .14475E-02** at limit **
  12  norm          8.3104        10.259        .11335E-03    .38766E-03
  13  norm          .10000E-03    4.0013        .16750E-02** at limit **
  14  norm          10.621        26.347        .12293E-03   -.21918E-04
  15  Prefactor     .10000E-03    1.3752        .98640E-03** at limit **
  16  Prefactor     .10000E-03    15.281        .18142E-02** at limit **
  17  Prefactor     22.679        39.673        .84117E-04   -.28517E-04
  18  norm          .10000E-03    2.6577        .13697E-02** at limit **
  19  Prefactor     5.8149        17.809        .16629E-03    .56606E-04
  20  norm          .10000E-03    2.3403        .16953E-02** at limit **
  21  Prefactor     .10005E-03    175.09        .18142E-02** at limit **
  22  norm          9.4532        18.992        .13032E-03   -.57316E-04
  23  Normalizat    1.3338        .29258        .30807E-03   -.52934E-03
  24  Prefactor     .83131        .17522        .24330E-03    .10649E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.32134
  Prefactor  = 0.0001
  norm       = 16.7276
  norm       = 4.34049
  Prefactor  = 4.04258
  Prefactor  = 31.0312
  Prefactor  = 6.01685
  Prefactor  = 0.443094
  norm       = 0.0001
  norm       = 8.31041
  norm       = 0.0001
  norm       = 10.6208
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 22.6788
  norm       = 0.0001
  Prefactor  = 5.81494
  norm       = 0.000100001
  Prefactor  = 0.000100046
  norm       = 9.45316
  Normalizat = 1.33384
  Prefactor  = 0.831307
 **********
 **   18 **HESSE 
 **********

 FCN=   7461.959     FROM HESSE     STATUS=OK           375 CALLS     3560 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.529        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    8.0419        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.3213        .40077        .72210E-06   -1.5343    
   4  Prefactor     .10000E-03    21.064        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          16.728        11.896        .39163E-05   -1.4890    
   6  norm          4.3405        8.1182        .77332E-05   -1.5291    
   7  Prefactor     4.0426        6.3640        .80239E-05   -1.5306    
   8  Prefactor     31.031        21.875        .28771E-05   -1.4593    
   9  Prefactor     6.0169        10.847        .65474E-05   -1.5217    
  10  Prefactor     .44309        452.56        .22765E-03   -1.5575    
  11  norm          .10000E-03    2.2347        .28951E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.3104        6.2773        .45338E-05   -1.5131    
  13  norm          .10000E-03    4.0027        .33501E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          10.621        26.341        .49172E-05   -1.5056    
  15  Prefactor     .10000E-03    1.3753        .19728E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.284        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     22.679        39.644        .33647E-05   -1.4755    
  18  norm          .10000E-03    2.6581        .27395E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.8149        17.746        .66518E-05   -1.5226    
  20  norm          .10000E-03    2.3547        .33906E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10005E-03    175.17        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          9.4532        18.989        .52127E-05   -1.5093    
  23  Normalizat    1.3338        .28640        .61615E-04   -.82562    
  24  Prefactor     .83131        .17460        .97321E-05   -.98584    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.60076e-09
Minuit parameter uncertainties:
  1  1.78364e-05
  2  1.00781e-05
  3  0.400774
  4  3.41602e-05
  5  11.8977
  6  8.12027
  7  6.36508
  8  21.8806
  9  10.8506
  10  28.537
  11  4.16727e-05
  12  6.27783
  13  4.49477e-06
  14  26.3697
  15  6.30485e-06
  16  0.000204373
  17  39.69
  18  1.64342e-05
  19  17.7616
  20  9.09308e-05
  21  0.00570523
  22  19.0012
  23  0.286745
  24  0.17472
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.000e-04  4.167e-05  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.313e-01  1.747e-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.334e+00  2.867e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 203.020 -5.161
Photon Flux Upper Limit: 8.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.47e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/740466/likelihoodResults_523411201_523670401_4FGL_J1332.0-0509_daily_bin1096.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) = 7461.9608585
delta logL = -0.00217317632541

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7461.95868607
delta logL = -7.39003553463e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3738       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3337       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83148       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=   7461.959     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      256 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    332.34        .14558E-02** at limit **
   2  alpha         2.2405        2.9881        .16487       -.74167E-07
   3  Normalizat    1.3339        .83286E-01    .30807E-03    .51354E-03
   4  Prefactor     .83130        .53628E-01    .24330E-03    .69732E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.24052
  Normalizat = 1.33385
  Prefactor  = 0.831301
 **********
 **   18 **HESSE 
 **********

 FCN=   7461.959     FROM HESSE     STATUS=OK            25 CALLS      281 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.4150        .29116E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2405        3.8674        .32974E-01   -.10398    
   3  Normalizat    1.3339        .25928        .61615E-04   -.82561    
   4  Prefactor     .83130        .16707        .48661E-04   -.98585    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.08518e-10
Minuit parameter uncertainties:
  1  3.47149e-06
  2  89.9243
  3  0.259529
  4  0.16717
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/740466': 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) = 7461.95868388
delta logL = 1.4514562281e-06

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.000e-04  3.471e-06  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.241e+00  8.992e+01  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.313e-01  1.672e-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.334e+00  2.595e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/740466/cmap_HighResolution_523411201_523670401_4FGL_J1332.0-0509_daily_bin1096.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.47e-05', job_status='DONE', photon_flux_upper_limit='8.20e-08', time_completed='2021-09-08 01:59:21.072654', job_id='740466', GAL2='0.83', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1631091561.07', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='1.45e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1096' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:59:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0195>
Subject: Job 740466: <4FGL_J1332.0-0509_daily_bin1096> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin1096> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 01:45:59 2021
Job was executed on host(s) <bullet0195>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:46:01 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:46:01 2021
Terminated at Wed Sep  8 01:59:21 2021
Results reported at Wed Sep  8 01:59:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin1096 203.02 -5.1611 523411201 523670401 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 :                                   782.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             333.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   800 sec.
    Turnaround time :                            802 sec.

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

