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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin499
RA = 203.02, Dec = -5.1611
tmin = 368668801, tmax = 368928001
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='737338', job_status='RUN', time_executed='2021-09-08 01:41:04.362103', time_epoch_executed='1631090464.36' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='499'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/737338

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/737338/ft1_4FGL_J1332.0-0509_daily_bin499.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/737338/ft2_4FGL_J1332.0-0509_daily_bin499.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/737338/ft1_4FGL_J1332.0-0509_daily_bin499.fits outfile=/scratch/kocevski/737338/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin499.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=368668801.0 tmax=368928001.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.34
user 3.11
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/737338/ft2_4FGL_J1332.0-0509_daily_bin499.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/737338/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin499.fits evtable="EVENTS" outfile="/scratch/kocevski/737338/ft1_filtered_4FGL_J1332.0-0509_daily_bin499.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.51
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/737338/ft1_filtered_4FGL_J1332.0-0509_daily_bin499.fits" evtable="EVENTS" scfile=/scratch/kocevski/737338/ft2_4FGL_J1332.0-0509_daily_bin499.fits sctable="SC_DATA" outfile=/scratch/kocevski/737338/ltcube_368668801_368928001_4FGL_J1332.0-0509_daily_bin499.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/737338/ft2_4FGL_J1332.0-0509_daily_bin499.fits
.....................!
real 15.76
user 15.28
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/737338/ft1_filtered_4FGL_J1332.0-0509_daily_bin499.fits evtable="EVENTS" scfile=/scratch/kocevski/737338/ft2_4FGL_J1332.0-0509_daily_bin499.fits sctable="SC_DATA" expcube=/scratch/kocevski/737338/ltcube_368668801_368928001_4FGL_J1332.0-0509_daily_bin499.fits outfile=/scratch/kocevski/737338/expmap_368668801_368928001_4FGL_J1332.0-0509_daily_bin499.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/737338/ltcube_368668801_368928001_4FGL_J1332.0-0509_daily_bin499.fits
.....................!
real 193.17
user 187.23
sys 5.46

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/737338/ft1_filtered_4FGL_J1332.0-0509_daily_bin499.fits scfile=/scratch/kocevski/737338/ft2_4FGL_J1332.0-0509_daily_bin499.fits outfile=/scratch/kocevski/737338/cmap_368668801_368928001_4FGL_J1332.0-0509_daily_bin499.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/737338/ft1_filtered_4FGL_J1332.0-0509_daily_bin499.fits scfile=/scratch/kocevski/737338/ft2_4FGL_J1332.0-0509_daily_bin499.fits outfile=/scratch/kocevski/737338/cmap_HighResolution_368668801_368928001_4FGL_J1332.0-0509_daily_bin499.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.68
user 0.39
sys 0.19

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10252E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    18.848       1.0000         .10000E-03   10000.    
     3 'norm      '    .66355       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3504       1.0000         .10000E-03   10000.    
     5 'norm      '    41.262       1.0000         .10000E-03   10000.    
     6 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.0841       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.473       1.0000         .10000E-03   10000.    
    11 'norm      '    .11008       1.0000         .10000E-03   10000.    
    12 'norm      '    .98337E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .11906E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    22.008       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.508       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.4394       1.0000         .10000E-03   10000.    
    20 'norm      '    3.4119       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0505       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0951       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=   5586.967     FROM MIGRAD    STATUS=CONVERGED    550 CALLS     2770 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.144        .19494E-05** at limit **
   2  norm          18.852        24.937        .24094E-05    .17575E-04
   3  norm          .66356        .28064        .79287E-07    .14010E-02
   4  Prefactor     1.3427        985.02       -.60734E-04   -.60264E-05
   5  norm          41.262        16.839        .66280E-06    .30856E-03
   6  norm          .10000E-03    6.1050        .89041E-06** at limit **
   7  Prefactor     3.0826        10.238       -.72240E-06   -.14878E-03
   8  Prefactor     .10000E-03    9.5691       -.29897E-05** at limit **
   9  Prefactor     .10000E-03    4.2963        .11363E-07** at limit **
  10  Prefactor     14.439        20.349       -.67312E-06    .14509E-03
  11  norm          .11013        .87391       -.51578E-06   -.74651E-03
  12  norm          .10004E-03    2.9402       -.72937E-06** at limit **
  13  norm          .10000E-03    11.351        .59958E-05** at limit **
  14  norm          22.009        37.913        .11126E-05    .20093E-05
  15  Prefactor     .10000E-03    2.3666       -.22623E-08** at limit **
  16  Prefactor     .10000E-03    58.993       -.13646E-05** at limit **
  17  Prefactor     20.524        58.035        .29027E-04    .16597E-04
  18  norm          .10007E-03    4.8083       -.31203E-05** at limit **
  19  Prefactor     5.4391        9.9510       -.38540E-06   -.10730E-03
  20  norm          3.4116        2.6567       -.17060E-07   -.34276E-06
  21  Prefactor     .10000E-03    11.742        .48479E-05** at limit **
  22  norm          .10000E-03    5.8967       -.70745E-06** at limit **
  23  Normalizat    1.0503        .24222        .16071E-05    .31810E-03
  24  Prefactor     1.0951        .16522       -.12651E-05    .67346E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 18.8518
  norm       = 0.663558
  Prefactor  = 1.34269
  norm       = 41.2622
  norm       = 0.0001
  Prefactor  = 3.08259
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.4394
  norm       = 0.110125
  norm       = 0.000100041
  norm       = 0.0001
  norm       = 22.0093
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.5241
  norm       = 0.000100066
  Prefactor  = 5.43908
  norm       = 3.41165
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.05028
  Prefactor  = 1.09513
 **********
 **   18 **HESSE 
 **********

 FCN=   5586.967     FROM HESSE     STATUS=OK           399 CALLS     3169 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          18.852        24.919        .92256E-04   -1.4839    
   3  norm          .66356        .27744        .23745E-04   -1.5545    
   4  Prefactor     1.3427        985.99        .37650E-03   -1.5476    
   5  norm          41.262        16.635        .62404E-04   -1.4422    
   6  norm          .10000E-03    6.1268        .18037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.0826        10.251        .23095E-03   -1.5357    
   8  Prefactor     .10000E-03    9.6219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.3149        .15127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.439        17.441        .10528E-03   -1.4948    
  11  norm          .11013        1.8876        .13428E-02   -1.5642    
  12  norm          .10004E-03    17.584        .20840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    11.599        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          22.009        37.966        .85381E-04   -1.4769    
  15  Prefactor     .10000E-03    2.3843        .11224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    60.908        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     20.524        57.595        .88445E-04   -1.4802    
  18  norm          .10007E-03    12.764        .30921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.4391        9.9481        .17229E-03   -1.5241    
  20  norm          3.4116        2.6509        .10362E-03   -1.5339    
  21  Prefactor     .10000E-03    11.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    5.8986        .17728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0503        .28435        .31423E-03   -.91365    
  24  Prefactor     1.0951        .19509        .20977E-03   -.89622    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.34502e-09
Minuit parameter uncertainties:
  1  9.17457e-07
  2  24.9332
  3  0.277444
  4  74.0252
  5  16.6369
  6  2.55981e-06
  7  10.2573
  8  1.18755e-05
  9  4.96333e-06
  10  17.4475
  11  0.911484
  12  0.0017013
  13  6.20947e-05
  14  38.0074
  15  2.10591e-06
  16  5.44664e-05
  17  57.752
  18  0.00183959
  19  9.9511
  20  2.65097
  21  1.20568e-06
  22  8.67037e-07
  23  0.284759
  24  0.195217
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.101e-01  9.115e-01  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:  1.095e+00  1.952e-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.050e+00  2.848e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/737338/likelihoodResults_368668801_368928001_4FGL_J1332.0-0509_daily_bin499.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) = 5586.92290018
delta logL = 0.0445520016037

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5586.90646472
delta logL = 0.0609874554375

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .22808       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4567       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0554       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0906       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=   5586.906     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      225 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .22702        .72235        .25658E-01    .12695E-02
   2  alpha         1.4570        1.3473        .46971       -.25988E-04
   3  Normalizat    1.0555        .23432        .70855E-01    .18929E-04
   4  Prefactor     1.0905        .16022        .37955E-01   -.11325E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.227018
  alpha      = 1.45698
  Normalizat = 1.05554
  Prefactor  = 1.09051
 **********
 **   18 **HESSE 
 **********

 FCN=   5586.906     FROM HESSE     STATUS=OK            35 CALLS      260 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .22702        .74145        .11003E-02   -1.5613    
   2  alpha         1.4570        1.6810        .46296E-01   -.43037    
   3  Normalizat    1.0555        .27644        .31352E-03   -.91192    
   4  Prefactor     1.0905        .18947        .21013E-03   -.89770    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.361e-08
Minuit parameter uncertainties:
  1  0.741477
  2  1.89228
  3  0.276818
  4  0.189588
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/737338': 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) = 5586.90646327
delta logL = 0.0609889068455

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  2.270e-01  7.415e-01  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  1.457e+00  1.892e+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:  1.091e+00  1.896e-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.056e+00  2.768e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/737338/cmap_HighResolution_368668801_368928001_4FGL_J1332.0-0509_daily_bin499.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.68e-05', job_status='DONE', photon_flux_upper_limit='8.91e-08', time_completed='2021-09-08 01:51:38.427245', job_id='737338', GAL2='1.09', fit_tolerance='1e-08', EG2='1.06', EG='1.05', time_epoch_completed='1631091098.43', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='6.10e-02', ts2='0.14', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='499' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:51:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 737338: <4FGL_J1332.0-0509_daily_bin499> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin499> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 01:35:36 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:37:30 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:37:30 2021
Terminated at Wed Sep  8 01:51:39 2021
Results reported at Wed Sep  8 01:51:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin499 203.02 -5.1611 368668801 368928001 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 :                                   633.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             238.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            963 sec.

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

