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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin447
RA = 203.02, Dec = -5.1611
tmin = 355190401, tmax = 355449601
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='737261', job_status='RUN', time_executed='2021-09-08 01:38:53.380273', time_epoch_executed='1631090333.38' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='447'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/737261

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/737261/ft1_4FGL_J1332.0-0509_daily_bin447.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/737261/ft2_4FGL_J1332.0-0509_daily_bin447.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/737261/ft1_4FGL_J1332.0-0509_daily_bin447.fits outfile=/scratch/kocevski/737261/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin447.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=355190401.0 tmax=355449601.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.40
user 3.16
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/737261/ft2_4FGL_J1332.0-0509_daily_bin447.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/737261/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin447.fits evtable="EVENTS" outfile="/scratch/kocevski/737261/ft1_filtered_4FGL_J1332.0-0509_daily_bin447.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.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/737261/ft1_filtered_4FGL_J1332.0-0509_daily_bin447.fits" evtable="EVENTS" scfile=/scratch/kocevski/737261/ft2_4FGL_J1332.0-0509_daily_bin447.fits sctable="SC_DATA" outfile=/scratch/kocevski/737261/ltcube_355190401_355449601_4FGL_J1332.0-0509_daily_bin447.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/737261/ft2_4FGL_J1332.0-0509_daily_bin447.fits
.....................!
real 16.26
user 15.45
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/737261/ft1_filtered_4FGL_J1332.0-0509_daily_bin447.fits evtable="EVENTS" scfile=/scratch/kocevski/737261/ft2_4FGL_J1332.0-0509_daily_bin447.fits sctable="SC_DATA" expcube=/scratch/kocevski/737261/ltcube_355190401_355449601_4FGL_J1332.0-0509_daily_bin447.fits outfile=/scratch/kocevski/737261/expmap_355190401_355449601_4FGL_J1332.0-0509_daily_bin447.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/737261/ltcube_355190401_355449601_4FGL_J1332.0-0509_daily_bin447.fits
.....................!
real 192.71
user 186.34
sys 5.65

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/737261/ft1_filtered_4FGL_J1332.0-0509_daily_bin447.fits scfile=/scratch/kocevski/737261/ft2_4FGL_J1332.0-0509_daily_bin447.fits outfile=/scratch/kocevski/737261/cmap_355190401_355449601_4FGL_J1332.0-0509_daily_bin447.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.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/737261/ft1_filtered_4FGL_J1332.0-0509_daily_bin447.fits scfile=/scratch/kocevski/737261/ft2_4FGL_J1332.0-0509_daily_bin447.fits outfile=/scratch/kocevski/737261/cmap_HighResolution_355190401_355449601_4FGL_J1332.0-0509_daily_bin447.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/737261/ft1_filtered_4FGL_J1332.0-0509_daily_bin447.fits evtable="EVENTS" scfile=/scratch/kocevski/737261/ft2_4FGL_J1332.0-0509_daily_bin447.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/737261/Model_4FGL_J1332.0-0509_daily_bin447.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/737261/ft1_filtered_4FGL_J1332.0-0509_daily_bin447.fits.....................!
real 44.69
user 43.27
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    56.116       1.0000         .10000E-03   10000.    
     2 'norm      '    .10102E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .51859       1.0000         .10000E-03   10000.    
     4 'Prefactor '    35.890       1.0000         .10000E-03   10000.    
     5 'norm      '    16.782       1.0000         .10000E-03   10000.    
     6 'norm      '    9.8483       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10213E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.296       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10234E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.005       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .11275E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10166E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .21079E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.526       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10454E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    32.439       1.0000         .10000E-03   10000.    
    18 'norm      '    .10289E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.3086       1.0000         .10000E-03   10000.    
    20 'norm      '    4.7494       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.4677       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1397       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .87254       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=   5062.378     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2718 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     56.171        51.511        .44424E-06    .98045E-05
   2  norm          .10000E-03    13.028        .37255E-06** at limit **
   3  norm          .51844        .26628        .15479E-07    .60728E-05
   4  Prefactor     36.038        96.347       -.58533E-06    .15848E-04
   5  norm          16.747        15.204        .15078E-06   -.10285E-04
   6  norm          9.8488        9.4843       -.25729E-07    .10158E-04
   7  Prefactor     .10000E-03    4.7421       -.14976E-06** at limit **
   8  Prefactor     13.309        15.923        .19285E-06   -.61012E-05
   9  Prefactor     .10000E-03    3.4153       -.12488E-06** at limit **
  10  Prefactor     12.072        19.028        .27687E-05    .33644E-03
  11  norm          .10000E-03    .46927       -.13266E-06** at limit **
  12  norm          .10000E-03    2.6945       -.11082E-05** at limit **
  13  norm          .10000E-03    3.1781       -.12543E-06** at limit **
  14  norm          .10000E-03    104.60       -.45032E-06** at limit **
  15  Prefactor     14.533        7.6028       -.69439E-07    .20111E-03
  16  Prefactor     .10000E-03    12.459       -.16322E-06** at limit **
  17  Prefactor     32.442        41.232       -.16012E-06    .15669E-04
  18  norm          .10000E-03    20.585       -.77595E-07** at limit **
  19  Prefactor     7.3078        10.324        .17331E-06   -.92956E-05
  20  norm          4.7487        2.9818        .16363E-07    .17872E-04
  21  Prefactor     .10000E-03    20.491       -.12014E-06** at limit **
  22  norm          5.4649        11.792        .12297E-07   -.15140E-05
  23  Normalizat    1.1396        .25821       -.27854E-05    .25726E-03
  24  Prefactor     .87261        .16774        .20479E-05    .30704E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 56.1713
  norm       = 0.0001
  norm       = 0.518439
  Prefactor  = 36.0376
  norm       = 16.7475
  norm       = 9.84879
  Prefactor  = 0.0001
  Prefactor  = 13.3087
  Prefactor  = 0.0001
  Prefactor  = 12.0717
  norm       = 0.0001
  norm       = 0.000100002
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 14.5331
  Prefactor  = 0.0001
  Prefactor  = 32.4423
  norm       = 0.0001
  Prefactor  = 7.30778
  norm       = 4.74875
  Prefactor  = 0.0001
  norm       = 5.4649
  Normalizat = 1.1396
  Prefactor  = 0.872612
 **********
 **   18 **HESSE 
 **********

 FCN=   5062.378     FROM HESSE     STATUS=OK           397 CALLS     3115 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     56.171        51.534        .26775E-03   -1.4208    
   2  norm          .10000E-03    13.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .51844        .26600        .23794E-04   -1.5564    
   4  Prefactor     36.038        96.148        .66895E-04   -1.4507    
   5  norm          16.747        15.182        .97769E-04   -1.4889    
   6  norm          9.8488        9.4835        .12769E-03   -1.5080    
   7  Prefactor     .10000E-03    4.7556        .15134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.309        15.923        .10985E-03   -1.4978    
   9  Prefactor     .10000E-03    3.4285        .12841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.072        20.055        .11562E-03   -1.5013    
  11  norm          .10000E-03    .47338        .47423E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    9.9748        .19798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.1950        .12391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    106.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.533        7.5371        .10509E-03   -1.4945    
  16  Prefactor     .10000E-03    12.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     32.442        41.263        .70353E-04   -1.4568    
  18  norm          .10000E-03    21.172        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.3078        10.312        .14836E-03   -1.5167    
  20  norm          4.7487        2.9809        .93747E-04   -1.5272    
  21  Prefactor     .10000E-03    20.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.4649        11.792        .17184E-03   -1.5240    
  23  Normalizat    1.1396        .27462        .28872E-03   -.88490    
  24  Prefactor     .87261        .17900        .21677E-03   -.97105    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.59673e-10
Minuit parameter uncertainties:
  1  51.5751
  2  1.57169e-05
  3  0.265997
  4  96.5658
  5  15.1852
  6  9.48499
  7  1.34638e-06
  8  15.9282
  9  6.42598e-07
  10  20.0661
  11  1.56904e-06
  12  0.000267101
  13  4.48821e-06
  14  2.0952e-05
  15  7.53758
  16  1.11663e-05
  17  41.2989
  18  1.36661e-07
  19  10.3147
  20  2.98097
  21  1.23397e-05
  22  11.797
  23  0.274967
  24  0.179123
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.000e-04  1.569e-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.726e-01  1.791e-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.140e+00  2.750e-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: 6.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.09e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/737261/likelihoodResults_355190401_355449601_4FGL_J1332.0-0509_daily_bin447.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) = 5062.37865903
delta logL = -0.000376335538022

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5062.37828093
delta logL = 1.76639241545e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10084E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5762       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1396       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87262       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=   5062.378     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      259 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .51357        .47846E-03** at limit **
   2  alpha         2.7918        3.2377        .16470       -.76480E-07
   3  Normalizat    1.1396        .26295        .28872E-03   -.76137E-03
   4  Prefactor     .87261        .17632        .21677E-03   -.10276E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.79184
  Normalizat = 1.13959
  Prefactor  = 0.872614
 **********
 **   18 **HESSE 
 **********

 FCN=   5062.378     FROM HESSE     STATUS=OK            23 CALLS      282 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .49046        .95691E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7918        3.6039        .65881E-02    .11700    
   3  Normalizat    1.1396        .26315        .57744E-04   -.88491    
   4  Prefactor     .87261        .17646        .43354E-04   -.97105    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12596e-09
Minuit parameter uncertainties:
  1  4.46272e-06
  2  152.36
  3  0.263452
  4  0.17657
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/737261': 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) = 5062.37827902
delta logL = 3.67371103493e-06

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.000e-04  4.463e-06  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.792e+00  1.524e+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.726e-01  1.766e-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.140e+00  2.635e-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/737261/cmap_HighResolution_355190401_355449601_4FGL_J1332.0-0509_daily_bin447.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.09e-05', job_status='DONE', photon_flux_upper_limit='6.94e-08', time_completed='2021-09-08 01:49:04.156362', job_id='737261', GAL2='0.87', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1631090944.16', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='3.67e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='447' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:49:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 737261: <4FGL_J1332.0-0509_daily_bin447> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin447 203.02 -5.1611 355190401 355449601 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 :                                   607.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   741 sec.
    Turnaround time :                            813 sec.

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

