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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin818
RA = 203.02, Dec = -5.1611
tmin = 451353601, tmax = 451612801
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='738933', job_status='RUN', time_executed='2021-09-08 01:44:10.499099', time_epoch_executed='1631090650.5' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='818'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/738933

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/738933/ft1_4FGL_J1332.0-0509_daily_bin818.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/738933/ft2_4FGL_J1332.0-0509_daily_bin818.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/738933/ft1_4FGL_J1332.0-0509_daily_bin818.fits outfile=/scratch/kocevski/738933/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin818.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=451353601.0 tmax=451612801.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.87
user 3.61
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/738933/ft1_filtered_4FGL_J1332.0-0509_daily_bin818.fits" evtable="EVENTS" scfile=/scratch/kocevski/738933/ft2_4FGL_J1332.0-0509_daily_bin818.fits sctable="SC_DATA" outfile=/scratch/kocevski/738933/ltcube_451353601_451612801_4FGL_J1332.0-0509_daily_bin818.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/738933/ft2_4FGL_J1332.0-0509_daily_bin818.fits
.....................!
real 15.38
user 14.99
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/738933/ft1_filtered_4FGL_J1332.0-0509_daily_bin818.fits evtable="EVENTS" scfile=/scratch/kocevski/738933/ft2_4FGL_J1332.0-0509_daily_bin818.fits sctable="SC_DATA" expcube=/scratch/kocevski/738933/ltcube_451353601_451612801_4FGL_J1332.0-0509_daily_bin818.fits outfile=/scratch/kocevski/738933/expmap_451353601_451612801_4FGL_J1332.0-0509_daily_bin818.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/738933/ltcube_451353601_451612801_4FGL_J1332.0-0509_daily_bin818.fits
.....................!
real 192.08
user 186.70
sys 4.45

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/738933/ft1_filtered_4FGL_J1332.0-0509_daily_bin818.fits scfile=/scratch/kocevski/738933/ft2_4FGL_J1332.0-0509_daily_bin818.fits outfile=/scratch/kocevski/738933/cmap_451353601_451612801_4FGL_J1332.0-0509_daily_bin818.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/738933/ft1_filtered_4FGL_J1332.0-0509_daily_bin818.fits scfile=/scratch/kocevski/738933/ft2_4FGL_J1332.0-0509_daily_bin818.fits outfile=/scratch/kocevski/738933/cmap_HighResolution_451353601_451612801_4FGL_J1332.0-0509_daily_bin818.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.57
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/738933/ft1_filtered_4FGL_J1332.0-0509_daily_bin818.fits evtable="EVENTS" scfile=/scratch/kocevski/738933/ft2_4FGL_J1332.0-0509_daily_bin818.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/738933/Model_4FGL_J1332.0-0509_daily_bin818.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/738933/ft1_filtered_4FGL_J1332.0-0509_daily_bin818.fits....................!
real 49.45
user 47.77
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.258       1.0000         .10000E-03   10000.    
     2 'norm      '    39.706       1.0000         .10000E-03   10000.    
     3 'norm      '    .65566       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .18914E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.585       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    26.833       1.0000         .10000E-03   10000.    
    13 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.6375       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.7376       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.9529       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.726       1.0000         .10000E-03   10000.    
    22 'norm      '    .16601E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2177       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .86271       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=   5884.053     FROM MIGRAD    STATUS=CONVERGED    537 CALLS     2725 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.276        43.113        .19176E-04   -.56647E-04
   2  norm          39.707        31.096       -.22427E-06   -.12340E-04
   3  norm          .65539        .29443       -.35415E-06    .45682E-03
   4  Prefactor     .10000E-03    31.179        .68572E-05** at limit **
   5  norm          .10000E-03    31.557        .11450E-04** at limit **
   6  norm          .10000E-03    19.648       -.19416E-04** at limit **
   7  Prefactor     .10000E-03    3.7032        .39006E-07** at limit **
   8  Prefactor     .10000E-03    15.980        .11369E-04** at limit **
   9  Prefactor     .10000E-03    7.4115        .11767E-05** at limit **
  10  Prefactor     11.575        37.008       -.19555E-04   -.21320E-04
  11  norm          .10000E-03    .70668       -.72336E-07** at limit **
  12  norm          26.834        9.4561        .25420E-05    .65676E-04
  13  norm          .10000E-03    3.2213        .20714E-07** at limit **
  14  norm          .10000E-03    9.1452       -.20172E-05** at limit **
  15  Prefactor     8.6375        6.6289       -.52771E-07   -.12053E-03
  16  Prefactor     .10000E-03    5.6728       -.17145E-06** at limit **
  17  Prefactor     .10000E-03    51.188       -.17136E-04** at limit **
  18  norm          5.7376        7.4109       -.17200E-06   -.10650E-03
  19  Prefactor     .10000E-03    4.1170        .57827E-07** at limit **
  20  norm          1.9529        2.6332       -.23066E-06   -.57291E-03
  21  Prefactor     16.722        26.387       -.37634E-05   -.11537E-04
  22  norm          .10005E-03    11.082        .13939E-05** at limit **
  23  Normalizat    1.2177        .21900        .45837E-06   -.14762E-03
  24  Prefactor     .86268        .14545        .25360E-06   -.36963E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.2762
  norm       = 39.7067
  norm       = 0.655391
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.5745
  norm       = 0.0001
  norm       = 26.8342
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 8.63752
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.73763
  Prefactor  = 0.0001
  norm       = 1.95285
  Prefactor  = 16.7218
  norm       = 0.000100053
  Normalizat = 1.21772
  Prefactor  = 0.86268
 **********
 **   18 **HESSE 
 **********

 FCN=   5884.053     FROM HESSE     STATUS=OK           395 CALLS     3120 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.276        43.297        .61667E-04   -1.4407    
   2  norm          39.707        31.087        .63610E-04   -1.4447    
   3  norm          .65539        .29418        .25177E-04   -1.5546    
   4  Prefactor     .10000E-03    31.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    32.630        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    19.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.7111        .14415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.5171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.575        36.974        .11770E-03   -1.5027    
  11  norm          .10000E-03    .73626        .12572E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          26.834        9.4394        .77337E-04   -1.4671    
  13  norm          .10000E-03    3.2295        .13434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    9.1468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.6375        6.6129        .13639E-03   -1.5120    
  16  Prefactor     .10000E-03    5.6777        .17843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    51.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.7376        7.3909        .16768E-03   -1.5229    
  19  Prefactor     .10000E-03    4.1281        .15198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.9529        2.6185        .13813E-03   -1.5428    
  21  Prefactor     16.722        26.404        .97932E-04   -1.4890    
  22  norm          .10005E-03    45.735        .49689E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2177        .25624        .28882E-03   -.86057    
  24  Prefactor     .86268        .17027        .22516E-03   -.97458    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38879e-09
Minuit parameter uncertainties:
  1  43.3292
  2  31.0994
  3  0.294176
  4  2.1201e-06
  5  0.000201611
  6  0.000160606
  7  8.489e-06
  8  3.73351e-05
  9  2.08331e-05
  10  37.0469
  11  7.62406e-07
  12  9.43996
  13  3.82103e-06
  14  6.03042e-07
  15  6.6135
  16  5.65391e-07
  17  6.0329e-05
  18  7.39204
  19  6.75703e-06
  20  2.61864
  21  26.4228
  22  0.00311842
  23  0.256507
  24  0.170373
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.000e-04  7.624e-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:  8.627e-01  1.704e-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.218e+00  2.565e-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.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.43e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/738933/likelihoodResults_451353601_451612801_4FGL_J1332.0-0509_daily_bin818.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) = 5884.05906715
delta logL = -0.00642925433567

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5884.04350271
delta logL = 0.00913519365713

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14805E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2036       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86845       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=   5884.044     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      318 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14814E-01    .21553        .35436E-03    .42934E-02
   2  alpha         5.0000        4.8224        .18573    ** at limit **
   3  Normalizat    1.2037        .27406        .29032E-03    .19668E-03
   4  Prefactor     .86845        .17448        .22451E-03    .98794E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0148143
  alpha      = 5
  Normalizat = 1.20368
  Prefactor  = 0.868449
 **********
 **   18 **HESSE 
 **********

 FCN=   5884.044     FROM HESSE     STATUS=OK            25 CALLS      343 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .14814E-01    .21057        .14175E-04   -1.5684    
   2  alpha         5.0000        4.8537        .37146E-01    1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2037        .27097        .58063E-04   -.86489    
   4  Prefactor     .86845        .17375        .89804E-05   -.97252    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56823e-09
Minuit parameter uncertainties:
  1  0.111326
  2  0.000800208
  3  0.271288
  4  0.173864
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/738933': 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) = 5884.04350255
delta logL = 0.00913535425298

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.481e-02  1.113e-01  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  5.000e+00  8.002e-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:  8.684e-01  1.739e-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.204e+00  2.713e-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/738933/cmap_HighResolution_451353601_451612801_4FGL_J1332.0-0509_daily_bin818.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.43e-05', job_status='DONE', photon_flux_upper_limit='8.08e-08', time_completed='2021-09-08 01:55:08.332044', job_id='738933', GAL2='0.87', fit_tolerance='1e-08', EG2='1.20', EG='1.22', time_epoch_completed='1631091308.33', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='9.14e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='818' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:55:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 738933: <4FGL_J1332.0-0509_daily_bin818> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin818> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep  8 01:40:46 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:42:10 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:42:10 2021
Terminated at Wed Sep  8 01:55:09 2021
Results reported at Wed Sep  8 01:55:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin818 203.02 -5.1611 451353601 451612801 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 :                                   655.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             264.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            863 sec.

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

