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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin446
RA = 203.02, Dec = -5.1611
tmin = 354931201, tmax = 355190401
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='737259', job_status='RUN', time_executed='2021-09-08 01:38:38.968967', time_epoch_executed='1631090318.97' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='446'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/737259

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/737259/ft1_4FGL_J1332.0-0509_daily_bin446.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/737259/ft2_4FGL_J1332.0-0509_daily_bin446.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/737259/ft1_4FGL_J1332.0-0509_daily_bin446.fits outfile=/scratch/kocevski/737259/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin446.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=354931201.0 tmax=355190401.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.36
user 3.13
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/737259/ft2_4FGL_J1332.0-0509_daily_bin446.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/737259/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin446.fits evtable="EVENTS" outfile="/scratch/kocevski/737259/ft1_filtered_4FGL_J1332.0-0509_daily_bin446.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/737259/ft1_filtered_4FGL_J1332.0-0509_daily_bin446.fits" evtable="EVENTS" scfile=/scratch/kocevski/737259/ft2_4FGL_J1332.0-0509_daily_bin446.fits sctable="SC_DATA" outfile=/scratch/kocevski/737259/ltcube_354931201_355190401_4FGL_J1332.0-0509_daily_bin446.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/737259/ft2_4FGL_J1332.0-0509_daily_bin446.fits
.....................!
real 15.59
user 15.20
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/737259/ft1_filtered_4FGL_J1332.0-0509_daily_bin446.fits evtable="EVENTS" scfile=/scratch/kocevski/737259/ft2_4FGL_J1332.0-0509_daily_bin446.fits sctable="SC_DATA" expcube=/scratch/kocevski/737259/ltcube_354931201_355190401_4FGL_J1332.0-0509_daily_bin446.fits outfile=/scratch/kocevski/737259/expmap_354931201_355190401_4FGL_J1332.0-0509_daily_bin446.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/737259/ltcube_354931201_355190401_4FGL_J1332.0-0509_daily_bin446.fits
.....................!
real 194.42
user 188.72
sys 4.94

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/737259/ft1_filtered_4FGL_J1332.0-0509_daily_bin446.fits scfile=/scratch/kocevski/737259/ft2_4FGL_J1332.0-0509_daily_bin446.fits outfile=/scratch/kocevski/737259/cmap_354931201_355190401_4FGL_J1332.0-0509_daily_bin446.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.54
user 0.38
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/737259/ft1_filtered_4FGL_J1332.0-0509_daily_bin446.fits evtable="EVENTS" scfile=/scratch/kocevski/737259/ft2_4FGL_J1332.0-0509_daily_bin446.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/737259/Model_4FGL_J1332.0-0509_daily_bin446.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/737259/ft1_filtered_4FGL_J1332.0-0509_daily_bin446.fits.....................!
real 42.99
user 41.55
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    44.757       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .16106       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .77159       1.0000         .10000E-03   10000.    
     6 'norm      '    17.995       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.8533       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12341E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .12810E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    19.830       1.0000         .10000E-03   10000.    
    14 'norm      '    16.556       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.725       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.0652       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2733       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .84682       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=   4738.982     FROM MIGRAD    STATUS=CONVERGED    557 CALLS     2739 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.681        33.827        .50675E-05    .38875E-05
   2  norm          .10000E-03    15.590        .50505E-05** at limit **
   3  norm          .16093        .18052       -.66939E-07   -.14847E-02
   4  Prefactor     .10000E-03    49.303        .39365E-04** at limit **
   5  norm          .76649        9.2804       -.27058E-05   -.26049E-04
   6  norm          17.997        14.029        .15415E-06    .73920E-04
   7  Prefactor     3.8535        7.7812       -.41076E-06   -.40085E-04
   8  Prefactor     .10000E-03    7.2424        .11915E-06** at limit **
   9  Prefactor     .10000E-03    14.477       -.32972E-05** at limit **
  10  Prefactor     .10000E-03    39.146       -.48901E-04** at limit **
  11  norm          .10000E-03    .64649        .34208E-07** at limit **
  12  norm          .10000E-03    3.4508        .75058E-06** at limit **
  13  norm          19.839        11.656       -.68798E-06    .78363E-03
  14  norm          16.412        37.219       -.22724E-04    .10682E-05
  15  Prefactor     11.727        8.5597        .23712E-05    .15190E-03
  16  Prefactor     .10000E-03    14.311       -.70125E-05** at limit **
  17  Prefactor     .10000E-03    30.891        .17166E-04** at limit **
  18  norm          6.0690        7.6864        .40355E-05   -.88371E-04
  19  Prefactor     .10000E-03    4.2883       -.11820E-07** at limit **
  20  norm          .10000E-03    1.6650       -.67140E-07** at limit **
  21  Prefactor     .10000E-03    13.173        .51305E-05** at limit **
  22  norm          .10000E-03    4.9001        .51617E-07** at limit **
  23  Normalizat    1.2740        .24159       -.51367E-07    .33826E-03
  24  Prefactor     .84645        .16309        .28111E-06    .30558E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 44.6805
  norm       = 0.0001
  norm       = 0.160929
  Prefactor  = 0.0001
  norm       = 0.766491
  norm       = 17.9973
  Prefactor  = 3.85355
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100002
  norm       = 19.8387
  norm       = 16.4116
  Prefactor  = 11.7265
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.06896
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.27404
  Prefactor  = 0.846448
 **********
 **   18 **HESSE 
 **********

 FCN=   4738.982     FROM HESSE     STATUS=OK           393 CALLS     3132 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.681        33.791        .59928E-04   -1.4370    
   2  norm          .10000E-03    15.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .16093        .16980        .29567E-03   -1.5628    
   4  Prefactor     .10000E-03    49.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .76649        25.273        .39921E-02   -1.5533    
   6  norm          17.997        14.030        .94417E-04   -1.4859    
   7  Prefactor     3.8535        7.7639        .20558E-03   -1.5315    
   8  Prefactor     .10000E-03    7.2499        .18094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.065        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    39.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .66307        .10800E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    6.3917        .23085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          19.839        10.882        .89944E-04   -1.4817    
  14  norm          16.412        37.294        .98432E-04   -1.4898    
  15  Prefactor     11.727        8.5362        .11699E-03   -1.5023    
  16  Prefactor     .10000E-03    14.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    30.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.0690        7.6624        .16303E-03   -1.5215    
  19  Prefactor     .10000E-03    4.2936        .13922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.7161        .17339E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.9002        .14883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2740        .28902        .27297E-03   -.84345    
  24  Prefactor     .84645        .19633        .21937E-03   -.98038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92554e-08
Minuit parameter uncertainties:
  1  33.8055
  2  9.23923e-06
  3  0.169799
  4  2.6581e-05
  5  8.80609
  6  14.0322
  7  7.76596
  8  4.8248e-06
  9  6.71762e-05
  10  0.00023632
  11  3.38885e-06
  12  0.00020329
  13  10.8828
  14  37.3466
  15  8.53707
  16  3.10924e-05
  17  4.56113e-05
  18  7.66364
  19  1.22756e-06
  20  8.33167e-06
  21  1.12605e-06
  22  1.59603e-07
  23  0.289387
  24  0.196498
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.000e-04  3.389e-06  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.464e-01  1.965e-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.274e+00  2.894e-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.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.49e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/737259/likelihoodResults_354931201_355190401_4FGL_J1332.0-0509_daily_bin446.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) = 4738.98913019
delta logL = -0.00704736348052

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4738.98208334
delta logL = -5.16897671332e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3902       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2741       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84651       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=   4738.982     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      235 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .67502        .10807E-03** at limit **
   2  alpha         2.2751        3.2867        .16481        .18487E-07
   3  Normalizat    1.2740        .28639        .27297E-03   -.25319E-03
   4  Prefactor     .84645        .19305        .21937E-03   -.28300E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.27505
  Normalizat = 1.27403
  Prefactor  = 0.846449
 **********
 **   18 **HESSE 
 **********

 FCN=   4738.982     FROM HESSE     STATUS=OK            23 CALLS      258 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .66932        .21615E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2751        2.9460        .65923E-02   -.90101E-01
   3  Normalizat    1.2740        .28665        .54594E-04   -.84345    
   4  Prefactor     .84645        .19323        .43874E-04   -.98038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08058e-10
Minuit parameter uncertainties:
  1  1.79307e-06
  2  100.31
  3  0.287012
  4  0.193384
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/737259': 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) = 4738.98208212
delta logL = 7.03252226231e-07

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.000e-04  1.793e-06  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.275e+00  1.003e+02  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.464e-01  1.934e-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.274e+00  2.870e-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/737259/cmap_HighResolution_354931201_355190401_4FGL_J1332.0-0509_daily_bin446.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.49e-05', job_status='DONE', photon_flux_upper_limit='8.29e-08', time_completed='2021-09-08 01:48:28.591740', job_id='737259', GAL2='0.85', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1631090908.59', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='7.03e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='446' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:48:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 737259: <4FGL_J1332.0-0509_daily_bin446> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin446 203.02 -5.1611 354931201 355190401 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 :                                   586.48 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   705 sec.
    Turnaround time :                            778 sec.

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

