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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin266
RA = 203.02, Dec = -5.1611
tmin = 308275201, tmax = 308534401
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='735931', job_status='RUN', time_executed='2021-09-08 01:34:06.419599', time_epoch_executed='1631090046.42' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='266'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/735931

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/735931/ft1_4FGL_J1332.0-0509_daily_bin266.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/735931/ft2_4FGL_J1332.0-0509_daily_bin266.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/735931/ft1_4FGL_J1332.0-0509_daily_bin266.fits outfile=/scratch/kocevski/735931/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin266.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=308275201.0 tmax=308534401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.45
user 3.18
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/735931/ft2_4FGL_J1332.0-0509_daily_bin266.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/735931/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin266.fits evtable="EVENTS" outfile="/scratch/kocevski/735931/ft1_filtered_4FGL_J1332.0-0509_daily_bin266.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.54
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/735931/ft1_filtered_4FGL_J1332.0-0509_daily_bin266.fits" evtable="EVENTS" scfile=/scratch/kocevski/735931/ft2_4FGL_J1332.0-0509_daily_bin266.fits sctable="SC_DATA" outfile=/scratch/kocevski/735931/ltcube_308275201_308534401_4FGL_J1332.0-0509_daily_bin266.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/735931/ft2_4FGL_J1332.0-0509_daily_bin266.fits
.....................!
real 15.33
user 14.84
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/735931/ft1_filtered_4FGL_J1332.0-0509_daily_bin266.fits evtable="EVENTS" scfile=/scratch/kocevski/735931/ft2_4FGL_J1332.0-0509_daily_bin266.fits sctable="SC_DATA" expcube=/scratch/kocevski/735931/ltcube_308275201_308534401_4FGL_J1332.0-0509_daily_bin266.fits outfile=/scratch/kocevski/735931/expmap_308275201_308534401_4FGL_J1332.0-0509_daily_bin266.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/735931/ltcube_308275201_308534401_4FGL_J1332.0-0509_daily_bin266.fits
.....................!
real 193.98
user 187.44
sys 5.72

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/735931/ft1_filtered_4FGL_J1332.0-0509_daily_bin266.fits scfile=/scratch/kocevski/735931/ft2_4FGL_J1332.0-0509_daily_bin266.fits outfile=/scratch/kocevski/735931/cmap_308275201_308534401_4FGL_J1332.0-0509_daily_bin266.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.58
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/735931/ft1_filtered_4FGL_J1332.0-0509_daily_bin266.fits scfile=/scratch/kocevski/735931/ft2_4FGL_J1332.0-0509_daily_bin266.fits outfile=/scratch/kocevski/735931/cmap_HighResolution_308275201_308534401_4FGL_J1332.0-0509_daily_bin266.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.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/735931/ft1_filtered_4FGL_J1332.0-0509_daily_bin266.fits evtable="EVENTS" scfile=/scratch/kocevski/735931/ft2_4FGL_J1332.0-0509_daily_bin266.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/735931/Model_4FGL_J1332.0-0509_daily_bin266.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/735931/ft1_filtered_4FGL_J1332.0-0509_daily_bin266.fits.....................!
real 63.92
user 62.22
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.7630       1.0000         .10000E-03   10000.    
     4 'Prefactor '    100.93       1.0000         .10000E-03   10000.    
     5 'norm      '    .10102E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    16.421       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.8858       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.568       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.828       1.0000         .10000E-03   10000.    
    11 'norm      '    30.488       1.0000         .10000E-03   10000.    
    12 'norm      '    .11876E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.810       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.142       1.0000         .10000E-03   10000.    
    20 'norm      '    2.2602       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .66342E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    15.765       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1759       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0119       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=   7741.220     FROM MIGRAD    STATUS=CONVERGED    955 CALLS     3156 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    48.752        .18142E-02** at limit **
   2  norm          .10000E-03    9.6637        .18142E-02** at limit **
   3  norm          3.7630        .51080        .21367E-04    .19101E-03
   4  Prefactor     100.94        87.024        .40017E-04    .16534E-04
   5  norm          .10000E-03    29.466        .36285E-03** at limit **
   6  norm          16.425        16.009        .98836E-04    .16679E-04
   7  Prefactor     .10000E-03    8.1074        .18142E-02** at limit **
   8  Prefactor     8.8943        18.701        .13446E-03    .61721E-05
   9  Prefactor     10.569        10.611        .12325E-03   -.74715E-05
  10  Prefactor     13.788        22.458        .10771E-03    .48551E-05
  11  norm          30.489        3.7247        .56013E-04    .13335E-03
  12  norm          .10000E-03    5.0399        .36285E-03** at limit **
  13  norm          .10000E-03    7.3554        .18142E-02** at limit **
  14  norm          .10000E-03    23.386        .18142E-02** at limit **
  15  Prefactor     13.811        7.5101        .10778E-03   -.43247E-05
  16  Prefactor     .10000E-03    9.7041        .18142E-02** at limit **
  17  Prefactor     .10000E-03    20.983        .18142E-02** at limit **
  18  norm          .10000E-03    3.4113        .15834E-02** at limit **
  19  Prefactor     17.141        15.116        .96737E-04    .43718E-04
  20  norm          2.2604        2.5368        .14341E-03   -.97746E-04
  21  Prefactor     .10000E-03    234.83        .84437E-02** at limit **
  22  norm          15.767        16.602        .10087E-03    .50716E-05
  23  Normalizat    1.1758        .31770        .39043E-03    .65284E-04
  24  Prefactor     1.0119        .19361        .26595E-03    .50613E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.76301
  Prefactor  = 100.938
  norm       = 0.0001
  norm       = 16.425
  Prefactor  = 0.0001
  Prefactor  = 8.89427
  Prefactor  = 10.5692
  Prefactor  = 13.788
  norm       = 30.4888
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 13.8109
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.1412
  norm       = 2.26042
  Prefactor  = 0.0001
  norm       = 15.7669
  Normalizat = 1.17579
  Prefactor  = 1.01193
 **********
 **   18 **HESSE 
 **********

 FCN=   7741.220     FROM HESSE     STATUS=OK           375 CALLS     3531 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    48.755        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    9.6639        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.7630        .51079        .85469E-06   -1.5320    
   4  Prefactor     100.94        87.022        .80035E-05   -1.3695    
   5  norm          .10000E-03    29.467        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          16.425        16.009        .39534E-05   -1.4897    
   7  Prefactor     .10000E-03    8.1097        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.8943        18.700        .53785E-05   -1.5111    
   9  Prefactor     10.569        10.610        .49300E-05   -1.5058    
  10  Prefactor     13.788        22.452        .43086E-05   -1.4965    
  11  norm          30.489        3.7247        .22405E-05   -1.4603    
  12  norm          .10000E-03    5.0400        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    7.3578        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    23.392        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.811        7.5097        .43112E-05   -1.4965    
  16  Prefactor     .10000E-03    9.7045        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    20.984        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.4117        .31669E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.141        15.107        .38695E-05   -1.4880    
  20  norm          2.2604        2.5368        .57363E-05   -1.5407    
  21  Prefactor     .10000E-03    243.92        .33775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          15.767        16.603        .40350E-05   -1.4914    
  23  Normalizat    1.1758        .31794        .15617E-04   -.87354    
  24  Prefactor     1.0119        .19381        .10638E-04   -.92333    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71671e-11
Minuit parameter uncertainties:
  1  0.000141298
  2  3.1389e-07
  3  0.510787
  4  87.1327
  5  1.12988e-05
  6  16.0127
  7  1.69686e-05
  8  18.7126
  9  10.6119
  10  22.466
  11  3.72477
  12  6.51753e-06
  13  1.16063e-05
  14  2.89723e-05
  15  7.51025
  16  8.62263e-06
  17  4.5107e-05
  18  4.5666e-06
  19  15.1103
  20  2.53689
  21  7.25514e-05
  22  16.6074
  23  0.318467
  24  0.19394
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  3.049e+01  3.725e+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.012e+00  1.939e-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.176e+00  3.185e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 250.05
Ra Dec: 203.020 -5.161
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 9.22e-07 +/- 1.13e-07
Energy Flux (Fixed Index): 2.77e-04 +/- 3.39e-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) = 7738.91504763
delta logL = 2.30532815285

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7738.7863442
delta logL = 2.43403158472

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    32.669       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0671       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3483       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93689       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=   7738.786     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      209 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          32.672        4.2880        .17527E-02   -.25225E-04
   2  alpha         2.0670        .14960        .11044        .13575E-04
   3  Normalizat    1.3483        .26326        .83691E-01    .15346E-04
   4  Prefactor     .93693        .16317        .45473E-01    .14618E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 32.6715
  alpha      = 2.067
  Normalizat = 1.34832
  Prefactor  = 0.936934
 **********
 **   18 **HESSE 
 **********

 FCN=   7738.786     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .11E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          32.672        4.1485        .60699E-04   -1.4564    
   2  alpha         2.0670        .14683        .48374E-03   -.17408    
   3  Normalizat    1.3483        .31129        .37051E-03   -.82135    
   4  Prefactor     .93693        .19217        .27525E-03   -.94862    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1049e-14
Minuit parameter uncertainties:
  1  4.14853
  2  0.146917
  3  0.311727
  4  0.19231
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/735931': 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) = 7738.78634369
delta logL = 2.43403208816

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  3.267e+01  4.149e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.067e+00  1.469e-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:  9.369e-01  1.923e-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.348e+00  3.117e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 249.25
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 2.07 +/- 0.15
Photon Flux (Free Index): 7.61e-07 +/- 1.22e-07
Energy Flux (Free Index): 3.12e-04 +/- 4.43e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/735931/cmap_HighResolution_308275201_308534401_4FGL_J1332.0-0509_daily_bin266.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.22e-07', energy_flux2='3.12e-04', photon_flux_error='1.13e-07', dlogl='2.43e+00', energy_flux='2.77e-04', photon_flux2='7.61e-07', job_status='DONE', time_completed='2021-09-08 01:46:12.952325', photon_index_error2='0.15', photon_index2='2.07', ts='250.05', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='4.43e-05', EG='1.18', time_epoch_completed='1631090772.95', return_code='0', job_id='735931', GAL2='0.94', EG2='1.35', return_code2='0', energy_flux_error='3.39e-05', photon_flux_error2='1.22e-07', ts2='249.25', photon_index='2.39' WHERE bin_id='266' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:46:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0133>
Subject: Job 735931: <4FGL_J1332.0-0509_daily_bin266> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin266> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 01:30:51 2021
Job was executed on host(s) <bullet0133>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:31:49 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:31:49 2021
Terminated at Wed Sep  8 01:46:13 2021
Results reported at Wed Sep  8 01:46:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin266 203.02 -5.1611 308275201 308534401 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 :                                   723.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             261.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            922 sec.

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

