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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin501
RA = 203.02, Dec = -5.1611
tmin = 369187201, tmax = 369446401
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='737341', job_status='RUN', time_executed='2021-09-08 01:40:27.394247', time_epoch_executed='1631090427.39' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='501'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/737341

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/737341/ft1_4FGL_J1332.0-0509_daily_bin501.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/737341/ft2_4FGL_J1332.0-0509_daily_bin501.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/737341/ft1_4FGL_J1332.0-0509_daily_bin501.fits outfile=/scratch/kocevski/737341/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin501.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=369187201.0 tmax=369446401.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.54
user 3.27
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/737341/ft1_filtered_4FGL_J1332.0-0509_daily_bin501.fits" evtable="EVENTS" scfile=/scratch/kocevski/737341/ft2_4FGL_J1332.0-0509_daily_bin501.fits sctable="SC_DATA" outfile=/scratch/kocevski/737341/ltcube_369187201_369446401_4FGL_J1332.0-0509_daily_bin501.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/737341/ft2_4FGL_J1332.0-0509_daily_bin501.fits
.....................!
real 17.78
user 17.16
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/737341/ft1_filtered_4FGL_J1332.0-0509_daily_bin501.fits evtable="EVENTS" scfile=/scratch/kocevski/737341/ft2_4FGL_J1332.0-0509_daily_bin501.fits sctable="SC_DATA" expcube=/scratch/kocevski/737341/ltcube_369187201_369446401_4FGL_J1332.0-0509_daily_bin501.fits outfile=/scratch/kocevski/737341/expmap_369187201_369446401_4FGL_J1332.0-0509_daily_bin501.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/737341/ltcube_369187201_369446401_4FGL_J1332.0-0509_daily_bin501.fits
.....................!
real 192.89
user 187.30
sys 4.94

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 170 point sources and 0 extended sources

Setting source of interest to:
4FGL J1332.0-0509 @ 203.02 -5.1611

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/737341/ft1_filtered_4FGL_J1332.0-0509_daily_bin501.fits scfile=/scratch/kocevski/737341/ft2_4FGL_J1332.0-0509_daily_bin501.fits outfile=/scratch/kocevski/737341/cmap_369187201_369446401_4FGL_J1332.0-0509_daily_bin501.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.39
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/737341/ft1_filtered_4FGL_J1332.0-0509_daily_bin501.fits evtable="EVENTS" scfile=/scratch/kocevski/737341/ft2_4FGL_J1332.0-0509_daily_bin501.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/737341/Model_4FGL_J1332.0-0509_daily_bin501.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/737341/ft1_filtered_4FGL_J1332.0-0509_daily_bin501.fits.....................!
real 47.86
user 46.41
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    70.516       1.0000         .10000E-03   10000.    
     2 'norm      '    .33484E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .17883       1.0000         .10000E-03   10000.    
     4 'Prefactor '    59.885       1.0000         .10000E-03   10000.    
     5 'norm      '    6.1966       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.0809       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    44.773       1.0000         .10000E-03   10000.    
    11 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.9358       1.0000         .10000E-03   10000.    
    13 'norm      '    6.8572       1.0000         .10000E-03   10000.    
    14 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.5488       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.0502       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.5771       1.0000         .10000E-03   10000.    
    20 'norm      '    3.7235       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5048       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .87766       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=   5617.615     FROM MIGRAD    STATUS=CONVERGED    940 CALLS     3195 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     70.508        77.726        .47804E-04    .44710E-05
   2  norm          .10000E-03    253.19        .73090E-02** at limit **
   3  norm          .17882        .32059        .44661E-04    .16877E-03
   4  Prefactor     59.829        86.705        .51846E-04    .14209E-04
   5  norm          6.1946        9.4651        .16127E-03    .20021E-04
   6  norm          .10000E-03    5.1609        .16618E-02** at limit **
   7  Prefactor     .10000E-03    10.600        .18142E-02** at limit **
   8  Prefactor     5.0816        17.105        .17838E-03   -.45889E-05
   9  Prefactor     .10000E-03    15.377        .36285E-03** at limit **
  10  Prefactor     44.765        34.707        .59918E-04   -.14989E-04
  11  norm          .10000E-03    1.0409        .14616E-03** at limit **
  12  norm          4.9411        7.7086        .17005E-03   -.80560E-04
  13  norm          6.8585        12.154        .15322E-03   -.25673E-04
  14  norm          .10000E-03    12.264        .18142E-02** at limit **
  15  Prefactor     1.5505        4.0542        .23611E-03   -.23887E-03
  16  Prefactor     4.0516        12.606        .20036E-03   -.14356E-04
  17  Prefactor     .10000E-03    72.926        .18142E-02** at limit **
  18  norm          .10000E-03    2.2464        .10964E-02** at limit **
  19  Prefactor     6.5793        9.5089        .15648E-03    .27899E-04
  20  norm          3.7239        2.7399        .10267E-03    .50937E-05
  21  Prefactor     .10000E-03    78.057        .18142E-02** at limit **
  22  norm          .10000E-03    8.6808        .18142E-02** at limit **
  23  Normalizat    1.5050        .28702        .28532E-03    .13815E-03
  24  Prefactor     .87749        .18513        .23727E-03   -.39243E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 70.508
  norm       = 0.0001
  norm       = 0.178821
  Prefactor  = 59.8287
  norm       = 6.19458
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.08162
  Prefactor  = 0.0001
  Prefactor  = 44.7652
  norm       = 0.0001
  norm       = 4.94108
  norm       = 6.85853
  norm       = 0.0001
  Prefactor  = 1.55055
  Prefactor  = 4.05156
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.57928
  norm       = 3.72386
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.50495
  Prefactor  = 0.877487
 **********
 **   18 **HESSE 
 **********

 FCN=   5617.615     FROM HESSE     STATUS=OK           373 CALLS     3568 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     70.508        77.685        .95608E-05   -1.4027    
   2  norm          .10000E-03    264.30        .29236E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .17882        .32035        .17864E-05   -1.5623    
   4  Prefactor     59.829        86.686        .10369E-04   -1.4159    
   5  norm          6.1946        9.4646        .64507E-05   -1.5210    
   6  norm          .10000E-03    5.1611        .33236E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.603        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.0816        17.104        .71350E-05   -1.5257    
   9  Prefactor     .10000E-03    15.378        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     44.765        34.696        .23967E-05   -1.4369    
  11  norm          .10000E-03    1.0409        .29233E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.9411        7.7032        .68020E-05   -1.5263    
  13  norm          6.8585        12.147        .61286E-05   -1.5184    
  14  norm          .10000E-03    12.264        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.5505        4.0537        .94445E-05   -1.5459    
  16  Prefactor     4.0516        12.606        .80143E-05   -1.5305    
  17  Prefactor     .10000E-03    72.931        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.2464        .21928E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.5793        9.5086        .62591E-05   -1.5195    
  20  norm          3.7239        2.7399        .41067E-05   -1.5322    
  21  Prefactor     .10000E-03    78.108        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    8.6812        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.5050        .28726        .57063E-04   -.77639    
  24  Prefactor     .87749        .18527        .94906E-05   -.96932    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.45956e-10
Minuit parameter uncertainties:
  1  77.7966
  2  0.000415307
  3  0.320354
  4  86.8697
  5  9.46687
  6  2.58998e-06
  7  3.11708e-05
  8  17.1206
  9  4.21662e-05
  10  34.712
  11  1.84002e-06
  12  7.70472
  13  12.1519
  14  1.08213e-05
  15  4.05441
  16  12.6139
  17  0.000159104
  18  2.39198e-06
  19  9.51079
  20  2.73994
  21  0.000125725
  22  5.07474e-06
  23  0.28757
  24  0.185402
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  8.775e-01  1.854e-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.505e+00  2.876e-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: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.05e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/737341/likelihoodResults_369187201_369446401_4FGL_J1332.0-0509_daily_bin501.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) = 5617.61571366
delta logL = -0.000798107625087

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5617.61491439
delta logL = 1.16338105727e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1017       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5049       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87752       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5617.615     FROM MIGRAD    STATUS=FAILED        90 CALLS      267 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10118E-03    226.34        .11525E-02** at limit **
   2  alpha         2.9024        2.8373        .17108        .13909E-04
   3  Normalizat    1.5049        .14381        .28532E-03   -.10821E-03
   4  Prefactor     .87749        .94695E-01    .23727E-03   -.90895E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5617.615     FROM SIMPLEX   STATUS=PROGRESS     148 CALLS      415 TOTAL
                     EDM=   .50E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10003E-03    226.34        .13262E-03** at limit **
   2  alpha         2.9023        2.8373        .41179E-04    .13909E-04
   3  Normalizat    1.5049        .14381        .22343E-05   -.10821E-03
   4  Prefactor     .87748        .94695E-01    .29065E-05   -.90895E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5617.615     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      451 TOTAL
                     EDM=   .35E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.1278        .23050E-03** at limit **
   2  alpha         2.7843        3.6491        .34216E-01   -.59808E-08
   3  Normalizat    1.5049        .27590        .57063E-04    .41440E-05
   4  Prefactor     .87749        .18227        .94906E-05   -.16770E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.78426
  Normalizat = 1.50495
  Prefactor  = 0.877489
 **********
 **   18 **HESSE 
 **********

 FCN=   5617.615     FROM HESSE     STATUS=OK            23 CALLS      474 TOTAL
                     EDM=   .42E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.1264        .46099E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7843        3.7070        .13686E-02    .11395    
   3  Normalizat    1.5049        .27581        .11413E-04   -.77639    
   4  Prefactor     .87749        .18221        .18981E-05   -.96932    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.17445e-13
Minuit parameter uncertainties:
  1  4.95784e-07
  2  146.008
  3  0.276089
  4  0.182335
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/737341': 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) = 5617.61491191
delta logL = 3.64480365533e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  8.775e-01  1.823e-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.505e+00  2.761e-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/737341/cmap_HighResolution_369187201_369446401_4FGL_J1332.0-0509_daily_bin501.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.05e-05', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2021-09-08 01:51:46.915730', job_id='737341', GAL2='0.88', fit_tolerance='1e-08', EG2='1.50', EG='1.50', time_epoch_completed='1631091106.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='3.64e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='501' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:51:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 737341: <4FGL_J1332.0-0509_daily_bin501> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin501 203.02 -5.1611 369187201 369446401 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 :                                   677.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             258.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            971 sec.

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

