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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin307
RA = 203.02, Dec = -5.1611
tmin = 318902401, tmax = 319161601
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='735988', job_status='RUN', time_executed='2021-09-08 01:33:59.018013', time_epoch_executed='1631090039.02' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='307'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/735988

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/735988/ft1_4FGL_J1332.0-0509_daily_bin307.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/735988/ft2_4FGL_J1332.0-0509_daily_bin307.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/735988/ft1_4FGL_J1332.0-0509_daily_bin307.fits outfile=/scratch/kocevski/735988/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin307.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=318902401.0 tmax=319161601.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.53
user 3.19
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/735988/ft2_4FGL_J1332.0-0509_daily_bin307.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/735988/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin307.fits evtable="EVENTS" outfile="/scratch/kocevski/735988/ft1_filtered_4FGL_J1332.0-0509_daily_bin307.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.57
user 0.33
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/735988/ft1_filtered_4FGL_J1332.0-0509_daily_bin307.fits" evtable="EVENTS" scfile=/scratch/kocevski/735988/ft2_4FGL_J1332.0-0509_daily_bin307.fits sctable="SC_DATA" outfile=/scratch/kocevski/735988/ltcube_318902401_319161601_4FGL_J1332.0-0509_daily_bin307.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/735988/ft2_4FGL_J1332.0-0509_daily_bin307.fits
.....................!
real 15.50
user 14.94
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/735988/ft1_filtered_4FGL_J1332.0-0509_daily_bin307.fits evtable="EVENTS" scfile=/scratch/kocevski/735988/ft2_4FGL_J1332.0-0509_daily_bin307.fits sctable="SC_DATA" expcube=/scratch/kocevski/735988/ltcube_318902401_319161601_4FGL_J1332.0-0509_daily_bin307.fits outfile=/scratch/kocevski/735988/expmap_318902401_319161601_4FGL_J1332.0-0509_daily_bin307.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/735988/ltcube_318902401_319161601_4FGL_J1332.0-0509_daily_bin307.fits
.....................!
real 195.55
user 189.04
sys 5.86

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/735988/ft1_filtered_4FGL_J1332.0-0509_daily_bin307.fits scfile=/scratch/kocevski/735988/ft2_4FGL_J1332.0-0509_daily_bin307.fits outfile=/scratch/kocevski/735988/cmap_318902401_319161601_4FGL_J1332.0-0509_daily_bin307.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.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/735988/ft1_filtered_4FGL_J1332.0-0509_daily_bin307.fits scfile=/scratch/kocevski/735988/ft2_4FGL_J1332.0-0509_daily_bin307.fits outfile=/scratch/kocevski/735988/cmap_HighResolution_318902401_319161601_4FGL_J1332.0-0509_daily_bin307.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 1.41
user 0.41
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/735988/ft1_filtered_4FGL_J1332.0-0509_daily_bin307.fits evtable="EVENTS" scfile=/scratch/kocevski/735988/ft2_4FGL_J1332.0-0509_daily_bin307.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/735988/Model_4FGL_J1332.0-0509_daily_bin307.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/735988/ft1_filtered_4FGL_J1332.0-0509_daily_bin307.fits.....................!
real 52.56
user 50.95
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    17.871       1.0000         .10000E-03   10000.    
     3 'norm      '    1.2233       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    13.058       1.0000         .10000E-03   10000.    
     6 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.120       1.0000         .10000E-03   10000.    
     9 'Prefactor '    38.594       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .21316E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    27.825       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.1231       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.2535       1.0000         .10000E-03   10000.    
    20 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.107       1.0000         .10000E-03   10000.    
    22 'norm      '    23.496       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2150       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0705       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=   6316.688     FROM MIGRAD    STATUS=CONVERGED    532 CALLS     2344 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    49.424        .39809E-04** at limit **
   2  norm          17.841        30.685       -.38138E-04   -.15553E-04
   3  norm          1.2235        .32434        .59635E-07   -.10827E-02
   4  Prefactor     .10000E-03    54.306        .44068E-06** at limit **
   5  norm          13.058        12.647       -.36628E-06   -.10197E-04
   6  norm          .10000E-03    4.6717        .79267E-07** at limit **
   7  Prefactor     .10000E-03    3.2001        .38695E-07** at limit **
   8  Prefactor     15.123        20.981        .82803E-06    .11169E-05
   9  Prefactor     38.595        13.935       -.43467E-06    .23742E-03
  10  Prefactor     .10000E-03    8.3166        .15795E-06** at limit **
  11  norm          .10000E-03    .71749       -.11081E-06** at limit **
  12  norm          .10000E-03    2.1398       -.43983E-06** at limit **
  13  norm          .10030E-03    5.9253       -.25363E-05** at limit **
  14  norm          27.824        26.454       -.83924E-06    .58456E-05
  15  Prefactor     .10000E-03    2.2317       -.30302E-06** at limit **
  16  Prefactor     5.1207        17.280       -.16565E-05   -.42844E-04
  17  Prefactor     .10000E-03    58.180       -.37636E-04** at limit **
  18  norm          .10000E-03    2.1892        .79410E-06** at limit **
  19  Prefactor     7.2540        15.073       -.79135E-06   -.42555E-04
  20  norm          .10000E-03    1.3267       -.53914E-07** at limit **
  21  Prefactor     22.107        30.494       -.16920E-06    .45485E-05
  22  norm          23.495        17.783       -.32115E-06    .52203E-05
  23  Normalizat    1.2148        .24514        .17844E-05    .24217E-03
  24  Prefactor     1.0706        .15609        .12315E-05    .42606E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 17.8408
  norm       = 1.22349
  Prefactor  = 0.0001
  norm       = 13.0577
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.1235
  Prefactor  = 38.595
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100297
  norm       = 27.8241
  Prefactor  = 0.0001
  Prefactor  = 5.12075
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.254
  norm       = 0.0001
  Prefactor  = 22.1074
  norm       = 23.4951
  Normalizat = 1.21478
  Prefactor  = 1.07063
 **********
 **   18 **HESSE 
 **********

 FCN=   6316.688     FROM HESSE     STATUS=OK           395 CALLS     2739 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    49.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          17.841        30.731        .94742E-04   -1.4863    
   3  norm          1.2235        .32400        .22223E-04   -1.5487    
   4  Prefactor     .10000E-03    54.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          13.058        12.637        .11085E-03   -1.4985    
   6  norm          .10000E-03    4.6753        .16777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.2031        .13884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.123        21.047        .10300E-03   -1.4930    
   9  Prefactor     38.595        13.955        .64518E-04   -1.4465    
  10  Prefactor     .10000E-03    8.3330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.6219        .13042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.1723        .11306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10030E-03    35.943        .36758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          27.824        26.458        .75948E-04   -1.4653    
  15  Prefactor     .10000E-03    2.2480        .11591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.1207        17.244        .17763E-03   -1.5255    
  17  Prefactor     .10000E-03    58.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.1934        .11483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.2540        15.035        .14893E-03   -1.5169    
  20  norm          .10000E-03    1.3462        .89341E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     22.107        30.480        .85190E-04   -1.4767    
  22  norm          23.495        17.785        .82637E-04   -1.4738    
  23  Normalizat    1.2148        .28544        .32416E-03   -.86147    
  24  Prefactor     1.0706        .18122        .22520E-03   -.90411    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.03986e-09
Minuit parameter uncertainties:
  1  3.58284e-05
  2  30.7583
  3  0.324004
  4  8.52511e-05
  5  12.6392
  6  2.26024e-06
  7  1.66045e-06
  8  21.057
  9  13.9563
  10  1.61209e-05
  11  1.52088e-05
  12  1.39085e-05
  13  0.00653875
  14  26.469
  15  2.63776e-06
  16  17.2606
  17  3.55496e-05
  18  2.91198e-06
  19  15.0428
  20  6.45615e-06
  21  30.5019
  22  17.7887
  23  0.285812
  24  0.181329
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.000e-04  1.521e-05  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.071e+00  1.813e-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.215e+00  2.858e-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.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.46e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/735988/likelihoodResults_318902401_319161601_4FGL_J1332.0-0509_daily_bin307.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) = 6316.69078472
delta logL = -0.00295372277105

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6316.68783159
delta logL = -5.97892721999e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4032       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2148       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0707       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=   6316.688     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      261 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    340.85        .13028E-02** at limit **
   2  alpha         2.5710        3.2187        .16476       -.16450E-06
   3  Normalizat    1.2148        .14240        .32416E-03    .46680E-04
   4  Prefactor     1.0706        .93889E-01    .22520E-03    .45839E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.57096
  Normalizat = 1.21478
  Prefactor  = 1.07063
 **********
 **   18 **HESSE 
 **********

 FCN=   6316.688     FROM HESSE     STATUS=OK            23 CALLS      284 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.6895        .26055E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5710        3.6715        .65905E-02    .28386E-01
   3  Normalizat    1.2148        .27261        .12966E-04   -.86147    
   4  Prefactor     1.0706        .18033        .90079E-05   -.90411    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.18866e-11
Minuit parameter uncertainties:
  1  5.93532e-06
  2  122.416
  3  0.272932
  4  0.180431
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/735988': 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) = 6316.68782992
delta logL = 1.07033065433e-06

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.000e-04  5.935e-06  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.571e+00  1.224e+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:  1.071e+00  1.804e-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.215e+00  2.729e-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/735988/cmap_HighResolution_318902401_319161601_4FGL_J1332.0-0509_daily_bin307.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.46e-05', job_status='DONE', photon_flux_upper_limit='8.19e-08', time_completed='2021-09-08 01:44:47.362451', job_id='735988', GAL2='1.07', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1631090687.36', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='1.07e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='307' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:44:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 735988: <4FGL_J1332.0-0509_daily_bin307> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin307> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 01:30:56 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:32:01 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:32:01 2021
Terminated at Wed Sep  8 01:44:48 2021
Results reported at Wed Sep  8 01:44:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin307 203.02 -5.1611 318902401 319161601 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 :                                   645.05 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             319.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            832 sec.

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

