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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin373
RA = 203.02, Dec = -5.1611
tmin = 336009601, tmax = 336268801
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='736056', job_status='RUN', time_executed='2021-09-08 01:36:35.835338', time_epoch_executed='1631090195.84' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='373'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/736056

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/736056/ft1_4FGL_J1332.0-0509_daily_bin373.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/736056/ft2_4FGL_J1332.0-0509_daily_bin373.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/736056/ft1_4FGL_J1332.0-0509_daily_bin373.fits outfile=/scratch/kocevski/736056/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin373.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=336009601.0 tmax=336268801.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.45
user 3.14
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/736056/ft1_filtered_4FGL_J1332.0-0509_daily_bin373.fits" evtable="EVENTS" scfile=/scratch/kocevski/736056/ft2_4FGL_J1332.0-0509_daily_bin373.fits sctable="SC_DATA" outfile=/scratch/kocevski/736056/ltcube_336009601_336268801_4FGL_J1332.0-0509_daily_bin373.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/736056/ft2_4FGL_J1332.0-0509_daily_bin373.fits
.....................!
real 16.69
user 16.24
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/736056/ft1_filtered_4FGL_J1332.0-0509_daily_bin373.fits evtable="EVENTS" scfile=/scratch/kocevski/736056/ft2_4FGL_J1332.0-0509_daily_bin373.fits sctable="SC_DATA" expcube=/scratch/kocevski/736056/ltcube_336009601_336268801_4FGL_J1332.0-0509_daily_bin373.fits outfile=/scratch/kocevski/736056/expmap_336009601_336268801_4FGL_J1332.0-0509_daily_bin373.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/736056/ltcube_336009601_336268801_4FGL_J1332.0-0509_daily_bin373.fits
.....................!
real 192.44
user 186.32
sys 5.43

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/736056/ft1_filtered_4FGL_J1332.0-0509_daily_bin373.fits scfile=/scratch/kocevski/736056/ft2_4FGL_J1332.0-0509_daily_bin373.fits outfile=/scratch/kocevski/736056/cmap_336009601_336268801_4FGL_J1332.0-0509_daily_bin373.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.61
user 0.39
sys 0.17

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/736056/ft1_filtered_4FGL_J1332.0-0509_daily_bin373.fits evtable="EVENTS" scfile=/scratch/kocevski/736056/ft2_4FGL_J1332.0-0509_daily_bin373.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/736056/Model_4FGL_J1332.0-0509_daily_bin373.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/736056/ft1_filtered_4FGL_J1332.0-0509_daily_bin373.fits.....................!
real 49.36
user 47.84
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    108.91       1.0000         .10000E-03   10000.    
     2 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.2685       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.7096       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.0632       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.876       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.1844       1.0000         .10000E-03   10000.    
    14 'norm      '    24.319       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .31363E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    26.416       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.4501       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    17.574       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5960       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .71546       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=   5730.460     FROM MIGRAD    STATUS=CONVERGED    538 CALLS     2689 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     108.92        75.472       -.21442E-06    .16349E-04
   2  norm          .10000E-03    35.335       -.14121E-05** at limit **
   3  norm          1.2685        .38730        .13272E-07    .20077E-03
   4  Prefactor     .10000E-03    40.919        .22695E-05** at limit **
   5  norm          .10000E-03    10.688       -.12577E-05** at limit **
   6  norm          .10000E-03    4.0171       -.75481E-08** at limit **
   7  Prefactor     2.7084        11.846        .74183E-05    .10801E-03
   8  Prefactor     .10000E-03    7.4695       -.21659E-06** at limit **
   9  Prefactor     8.0635        8.8194        .14943E-06    .34410E-04
  10  Prefactor     13.874        24.531       -.28646E-05   -.42238E-04
  11  norm          .10000E-03    .50775        .10145E-07** at limit **
  12  norm          .10000E-03    1.9134        .20033E-07** at limit **
  13  norm          4.1846        7.5623        .28471E-05    .59036E-04
  14  norm          24.319        25.491        .13727E-06   -.13179E-05
  15  Prefactor     .10018E-03    3.8498        .15584E-05** at limit **
  16  Prefactor     .10000E-03    7.0734        .61046E-06** at limit **
  17  Prefactor     26.395        41.813        .38453E-05   -.10510E-04
  18  norm          .10000E-03    6.2695       -.20157E-06** at limit **
  19  Prefactor     .10000E-03    3.1154       -.87236E-08** at limit **
  20  norm          4.4502        2.8772        .53040E-07   -.16097E-04
  21  Prefactor     .10000E-03    11.993        .14964E-05** at limit **
  22  norm          17.574        16.837        .62242E-07   -.51860E-05
  23  Normalizat    1.5959        .23567       -.19646E-06   -.45946E-05
  24  Prefactor     .71553        .14837       -.53673E-06    .54722E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 108.917
  norm       = 0.0001
  norm       = 1.26848
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.70844
  Prefactor  = 0.0001
  Prefactor  = 8.06347
  Prefactor  = 13.8745
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.18462
  norm       = 24.3186
  Prefactor  = 0.000100176
  Prefactor  = 0.0001
  Prefactor  = 26.3948
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.45019
  Prefactor  = 0.0001
  norm       = 17.5739
  Normalizat = 1.59591
  Prefactor  = 0.715535
 **********
 **   18 **HESSE 
 **********

 FCN=   5730.460     FROM HESSE     STATUS=OK           397 CALLS     3086 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     108.92        76.375        .38539E-04   -1.3617    
   2  norm          .10000E-03    35.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.2685        .39175        .22753E-04   -1.5483    
   4  Prefactor     .10000E-03    40.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    10.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.0185        .14818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.7084        11.845        .12372E-02   -1.5379    
   8  Prefactor     .10000E-03    7.4767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.0635        8.8147        .70598E-03   -1.5140    
  10  Prefactor     13.874        24.486        .10753E-03   -1.4963    
  11  norm          .10000E-03    .51826        .52632E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.9153        .10191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.1846        7.5153        .98510E-03   -1.5299    
  14  norm          24.319        25.494        .81228E-04   -1.4721    
  15  Prefactor     .10018E-03    33.008        .25952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.0785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     26.395        41.842        .77943E-04   -1.4680    
  18  norm          .10000E-03    6.3734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.1171        .13049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.4502        2.8751        .99550E-04   -1.5286    
  21  Prefactor     .10000E-03    12.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          17.574        16.842        .95539E-04   -1.4869    
  23  Normalizat    1.5959        .27298        .27423E-03   -.75118    
  24  Prefactor     .71553        .17167        .24825E-03   -1.0292    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.29472e-09
Minuit parameter uncertainties:
  1  76.4441
  2  0.000117066
  3  0.391746
  4  2.89231e-07
  5  2.34292e-05
  6  6.10577e-07
  7  11.3317
  8  2.25658e-06
  9  8.81609
  10  24.5039
  11  1.07172e-07
  12  6.96779e-06
  13  7.51702
  14  25.5053
  15  0.00482693
  16  6.04682e-07
  17  41.8883
  18  9.46044e-06
  19  3.47347e-08
  20  2.87518
  21  2.83817e-06
  22  16.8462
  23  0.273231
  24  0.1718
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.000e-04  1.072e-07  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:  7.155e-01  1.718e-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.596e+00  2.732e-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: 7.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.15e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/736056/likelihoodResults_336009601_336268801_4FGL_J1332.0-0509_daily_bin373.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) = 5730.46009716
delta logL = -0.000350783758222

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5730.45975152
delta logL = -5.1464921853e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5730.146     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      236 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .92116E-01    .12634       -.43518E-06   -.32377E-02
   2  alpha         5.0000        3.5384       -.50667E-03** at limit **
   3  Normalizat    1.5159        .28927        .10565E-04    .17040E-03
   4  Prefactor     .74740        .17844        .95599E-05    .61020E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.092116
  alpha      = 5
  Normalizat = 1.51589
  Prefactor  = 0.7474
 **********
 **   18 **HESSE 
 **********

 FCN=   5730.146     FROM HESSE     STATUS=OK            37 CALLS      273 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .92116E-01    .12301        .64453E-02   -1.5769    
   2  alpha         5.0000        3.3361        .41181        1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.5159        .23627        .63319E-01   -.77333    
   4  Prefactor     .74740        .14774        .42609E-01   -1.0170    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.55906e-09
Minuit parameter uncertainties:
  1  0.123012
  2  0.000184073
  3  0.236445
  4  0.147817
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/736056': 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) = 5730.14622003
delta logL = 0.313526349512

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  9.212e-02  1.230e-01  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  5.000e+00  1.841e-04  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:  7.474e-01  1.478e-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.516e+00  2.364e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/736056/cmap_HighResolution_336009601_336268801_4FGL_J1332.0-0509_daily_bin373.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.15e-05', job_status='DONE', photon_flux_upper_limit='7.16e-08', time_completed='2021-09-08 01:47:17.762312', job_id='736056', GAL2='0.75', fit_tolerance='1e-08', EG2='1.52', EG='1.60', time_epoch_completed='1631090837.76', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='3.14e-01', ts2='0.69', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='373' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:47:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 736056: <4FGL_J1332.0-0509_daily_bin373> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin373> 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) <bullet0160>, 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:47:18 2021
Results reported at Wed Sep  8 01:47:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin373 203.02 -5.1611 336009601 336268801 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 :                                   640.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            976 sec.

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

