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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin537
RA = 203.02, Dec = -5.1611
tmin = 378518401, tmax = 378777601
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='737395', job_status='RUN', time_executed='2021-09-08 01:39:47.051190', time_epoch_executed='1631090387.05' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='537'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/737395

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/737395/ft1_4FGL_J1332.0-0509_daily_bin537.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/737395/ft2_4FGL_J1332.0-0509_daily_bin537.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/737395/ft1_4FGL_J1332.0-0509_daily_bin537.fits outfile=/scratch/kocevski/737395/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin537.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=378518401.0 tmax=378777601.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.49
user 3.24
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/737395/ft2_4FGL_J1332.0-0509_daily_bin537.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/737395/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin537.fits evtable="EVENTS" outfile="/scratch/kocevski/737395/ft1_filtered_4FGL_J1332.0-0509_daily_bin537.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/737395/ft1_filtered_4FGL_J1332.0-0509_daily_bin537.fits" evtable="EVENTS" scfile=/scratch/kocevski/737395/ft2_4FGL_J1332.0-0509_daily_bin537.fits sctable="SC_DATA" outfile=/scratch/kocevski/737395/ltcube_378518401_378777601_4FGL_J1332.0-0509_daily_bin537.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/737395/ft2_4FGL_J1332.0-0509_daily_bin537.fits
.....................!
real 16.61
user 16.17
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/737395/ft1_filtered_4FGL_J1332.0-0509_daily_bin537.fits evtable="EVENTS" scfile=/scratch/kocevski/737395/ft2_4FGL_J1332.0-0509_daily_bin537.fits sctable="SC_DATA" expcube=/scratch/kocevski/737395/ltcube_378518401_378777601_4FGL_J1332.0-0509_daily_bin537.fits outfile=/scratch/kocevski/737395/expmap_378518401_378777601_4FGL_J1332.0-0509_daily_bin537.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/737395/ltcube_378518401_378777601_4FGL_J1332.0-0509_daily_bin537.fits
.....................!
real 192.72
user 186.85
sys 5.00

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/737395/ft1_filtered_4FGL_J1332.0-0509_daily_bin537.fits scfile=/scratch/kocevski/737395/ft2_4FGL_J1332.0-0509_daily_bin537.fits outfile=/scratch/kocevski/737395/cmap_378518401_378777601_4FGL_J1332.0-0509_daily_bin537.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.57
user 0.38
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10438E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .56729       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12432E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    51.516       1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .19953       1.0000         .10000E-03   10000.    
     8 'Prefactor '    36.179       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.5566       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.211       1.0000         .10000E-03   10000.    
    11 'norm      '    15.585       1.0000         .10000E-03   10000.    
    12 'norm      '    .31638E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.5528       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .48942E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.5085       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .83182       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0779       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=   6525.492     FROM MIGRAD    STATUS=CONVERGED    583 CALLS     2815 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.782       -.14944E-05** at limit **
   2  norm          .10000E-03    11.693       -.44012E-06** at limit **
   3  norm          .56724        .24917       -.10826E-07   -.27176E-02
   4  Prefactor     .10007E-03    169.50        .12025E-04** at limit **
   5  norm          51.513        16.142       -.92973E-08   -.76111E-03
   6  norm          .10000E-03    4.1407       -.94956E-07** at limit **
   7  Prefactor     .21211        21.387        .19297E-04   -.32165E-03
   8  Prefactor     36.176        21.752        .19006E-06   -.11472E-03
   9  Prefactor     3.5581        9.9332        .15513E-05    .76029E-04
  10  Prefactor     16.243        17.118        .37828E-05    .38509E-03
  11  norm          15.586        2.7401       -.10382E-07   -.25705E-03
  12  norm          .10000E-03    2.5172        .77441E-06** at limit **
  13  norm          .10000E-03    5.2507       -.37321E-06** at limit **
  14  norm          .10000E-03    12.413       -.92190E-06** at limit **
  15  Prefactor     .10000E-03    3.5467       -.10900E-06** at limit **
  16  Prefactor     .10000E-03    11.336        .67207E-06** at limit **
  17  Prefactor     .10000E-03    15.166        .79196E-06** at limit **
  18  norm          1.5529        3.2456        .55575E-05    .93039E-03
  19  Prefactor     .10001E-03    20.596       -.19930E-04** at limit **
  20  norm          1.5084        2.6198       -.27958E-07    .14272E-04
  21  Prefactor     .10006E-03    103.20       -.85246E-05** at limit **
  22  norm          .10000E-03    5.5471        .79532E-07** at limit **
  23  Normalizat    .83176        .23286       -.18581E-06    .17510E-03
  24  Prefactor     1.0779        .14517       -.37471E-06    .32890E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.567235
  Prefactor  = 0.000100066
  norm       = 51.5134
  norm       = 0.0001
  Prefactor  = 0.212105
  Prefactor  = 36.1761
  Prefactor  = 3.55807
  Prefactor  = 16.2431
  norm       = 15.5856
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.55287
  Prefactor  = 0.000100006
  norm       = 1.50841
  Prefactor  = 0.000100062
  norm       = 0.0001
  Normalizat = 0.831761
  Prefactor  = 1.0779
 **********
 **   18 **HESSE 
 **********

 FCN=   6525.492     FROM HESSE     STATUS=OK           397 CALLS     3212 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    11.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .56724        .24668        .25228E-04   -1.5557    
   4  Prefactor     .10007E-03    170.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          51.513        16.126        .55877E-04   -1.4271    
   6  norm          .10000E-03    4.1437        .16054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .21211        52.657        .37901E-02   -1.5616    
   8  Prefactor     36.176        21.814        .66628E-04   -1.4504    
   9  Prefactor     3.5581        9.8944        .21431E-03   -1.5331    
  10  Prefactor     16.243        17.777        .99475E-04   -1.4902    
  11  norm          15.586        2.7427        .52790E-04   -1.4918    
  12  norm          .10000E-03    8.3509        .21221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.3215        .18058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    12.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.6046        .14852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.5529        4.8609        .15275E-02   -1.5459    
  19  Prefactor     .10001E-03    45.323        .40561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.5084        2.5982        .16290E-03   -1.5462    
  21  Prefactor     .10006E-03    105.62        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    5.5502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .83176        .26536        .35192E-03   -.98901    
  24  Prefactor     1.0779        .16667        .20976E-03   -.90176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.85341e-09
Minuit parameter uncertainties:
  1  7.03647e-05
  2  4.21831e-06
  3  0.246679
  4  0.00674407
  5  16.1277
  6  2.24237e-05
  7  6.68834
  8  21.8189
  9  9.89895
  10  17.783
  11  2.74276
  12  2.95038e-05
  13  2.92887e-06
  14  3.15143e-05
  15  2.68197e-05
  16  6.72987e-05
  17  4.48722e-05
  18  4.8621
  19  0.00100399
  20  2.59843
  21  0.00514328
  22  4.44658e-06
  23  0.265772
  24  0.166747
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.559e+01  2.743e+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

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.078e+00  1.667e-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:  8.318e-01  2.658e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 101.63
Ra Dec: 203.020 -5.161
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 4.71e-07 +/- 8.29e-08
Energy Flux (Fixed Index): 1.42e-04 +/- 2.50e-05

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) = 6523.16060848
delta logL = 2.33091689175

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6523.10918148
delta logL = 2.38234388803

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.647       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9393       1.0000          .0000       5.0000    
     3 'Normalizat'    .96447       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0202       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=   6523.109     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      208 TOTAL
                     EDM=   .38E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.647        3.1119        .24541E-02    .22842E-03
   2  alpha         1.9392        .20145        .14401       -.11968E-05
   3  Normalizat    .96456        .21724        .74730E-01    .17315E-04
   4  Prefactor     1.0202        .14228        .42119E-01    .73249E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 16.6469
  alpha      = 1.93922
  Normalizat = 0.964564
  Prefactor  = 1.02019
 **********
 **   18 **HESSE 
 **********

 FCN=   6523.109     FROM HESSE     STATUS=OK            29 CALLS      237 TOTAL
                     EDM=   .34E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.647        3.1163        .58264E-04   -1.4892    
   2  alpha         1.9392        .20537        .62541E-03   -.22624    
   3  Normalizat    .96456        .25301        .33069E-03   -.94227    
   4  Prefactor     1.0202        .16519        .21499E-03   -.92060    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.36634e-12
Minuit parameter uncertainties:
  1  3.11637
  2  0.205616
  3  0.253327
  4  0.165272
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/737395': 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) = 6523.10918129
delta logL = 2.38234408315

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.665e+01  3.116e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  1.939e+00  2.056e-01  0.000e+00  5.000e+00 ( 1.000e+00)
307         beta:  1.669e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
308           Eb:  5.229e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.020e+00  1.653e-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:  9.646e-01  2.533e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 105.63
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 1.94 +/- 0.21
Photon Flux (Free Index): 3.56e-07 +/- 8.59e-08
Energy Flux (Free Index): 1.70e-04 +/- 3.59e-05

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/737395/cmap_HighResolution_378518401_378777601_4FGL_J1332.0-0509_daily_bin537.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.71e-07', energy_flux2='1.70e-04', photon_flux_error='8.29e-08', dlogl='2.38e+00', energy_flux='1.42e-04', photon_flux2='3.56e-07', job_status='DONE', time_completed='2021-09-08 01:50:14.000162', photon_index_error2='0.21', photon_index2='1.94', ts='101.63', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='3.59e-05', EG='0.83', time_epoch_completed='1631091014.0', return_code='0', job_id='737395', GAL2='1.02', EG2='0.96', return_code2='0', energy_flux_error='2.50e-05', photon_flux_error2='8.59e-08', ts2='105.63', photon_index='2.39' WHERE bin_id='537' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:50:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 737395: <4FGL_J1332.0-0509_daily_bin537> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin537 203.02 -5.1611 378518401 378777601 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 :                                   625.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             254.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   749 sec.
    Turnaround time :                            874 sec.

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

