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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin718
RA = 203.02, Dec = -5.1611
tmin = 425433601, tmax = 425692801
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='738770', job_status='RUN', time_executed='2021-09-08 01:44:22.408266', time_epoch_executed='1631090662.41' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='718'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/738770

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

Retrieving the FT1 file...

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

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

Retrieving 38 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/738770/ft1_4FGL_J1332.0-0509_daily_bin718.fits


Retrieving the FT1 file...

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

Retrieving 38 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/738770/ft2_4FGL_J1332.0-0509_daily_bin718.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/738770/ft1_4FGL_J1332.0-0509_daily_bin718.fits outfile=/scratch/kocevski/738770/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin718.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=425433601.0 tmax=425692801.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.18
user 2.96
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/738770/ft1_filtered_4FGL_J1332.0-0509_daily_bin718.fits" evtable="EVENTS" scfile=/scratch/kocevski/738770/ft2_4FGL_J1332.0-0509_daily_bin718.fits sctable="SC_DATA" outfile=/scratch/kocevski/738770/ltcube_425433601_425692801_4FGL_J1332.0-0509_daily_bin718.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/738770/ft2_4FGL_J1332.0-0509_daily_bin718.fits
.....................!
real 13.63
user 12.79
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/738770/ft1_filtered_4FGL_J1332.0-0509_daily_bin718.fits evtable="EVENTS" scfile=/scratch/kocevski/738770/ft2_4FGL_J1332.0-0509_daily_bin718.fits sctable="SC_DATA" expcube=/scratch/kocevski/738770/ltcube_425433601_425692801_4FGL_J1332.0-0509_daily_bin718.fits outfile=/scratch/kocevski/738770/expmap_425433601_425692801_4FGL_J1332.0-0509_daily_bin718.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/738770/ltcube_425433601_425692801_4FGL_J1332.0-0509_daily_bin718.fits
.....................!
real 193.01
user 186.86
sys 5.07

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/738770/ft1_filtered_4FGL_J1332.0-0509_daily_bin718.fits scfile=/scratch/kocevski/738770/ft2_4FGL_J1332.0-0509_daily_bin718.fits outfile=/scratch/kocevski/738770/cmap_425433601_425692801_4FGL_J1332.0-0509_daily_bin718.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.52
user 0.38
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/738770/ft1_filtered_4FGL_J1332.0-0509_daily_bin718.fits scfile=/scratch/kocevski/738770/ft2_4FGL_J1332.0-0509_daily_bin718.fits outfile=/scratch/kocevski/738770/cmap_HighResolution_425433601_425692801_4FGL_J1332.0-0509_daily_bin718.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.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/738770/ft1_filtered_4FGL_J1332.0-0509_daily_bin718.fits evtable="EVENTS" scfile=/scratch/kocevski/738770/ft2_4FGL_J1332.0-0509_daily_bin718.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/738770/Model_4FGL_J1332.0-0509_daily_bin718.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/738770/ft1_filtered_4FGL_J1332.0-0509_daily_bin718.fits.....................!
real 52.36
user 50.41
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10756E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    13.859       1.0000         .10000E-03   10000.    
     3 'norm      '    .27538       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10401E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    51.286       1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.252       1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.759       1.0000         .10000E-03   10000.    
    11 'norm      '    1.5272       1.0000         .10000E-03   10000.    
    12 'norm      '    .74841       1.0000         .10000E-03   10000.    
    13 'norm      '    .12251E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    .10123E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.6310       1.0000         .10000E-03   10000.    
    16 'Prefactor '    60.234       1.0000         .10000E-03   10000.    
    17 'Prefactor '    47.649       1.0000         .10000E-03   10000.    
    18 'norm      '    .25057E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    28.079       1.0000         .10000E-03   10000.    
    20 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.1025       1.0000         .10000E-03   10000.    
    22 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1897       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .97709       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=   6196.934     FROM MIGRAD    STATUS=CONVERGED    564 CALLS     3152 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.538       -.54243E-06** at limit **
   2  norm          13.863        32.299       -.32163E-06    .16679E-04
   3  norm          .27546        .24914        .29242E-07    .19430E-02
   4  Prefactor     .10000E-03    184.71        .75325E-06** at limit **
   5  norm          .10000E-03    4.3090       -.79898E-07** at limit **
   6  norm          .10000E-03    15.291        .71542E-06** at limit **
   7  Prefactor     .10000E-03    2.8980       -.18373E-06** at limit **
   8  Prefactor     51.275        26.347       -.64663E-06   -.10820E-03
   9  Prefactor     24.259        10.576       -.54088E-06   -.96205E-03
  10  Prefactor     26.767        34.599       -.36440E-05   -.87332E-03
  11  norm          1.5272        1.3591        .81533E-07    .47557E-03
  12  norm          .73810        13.719        .47592E-05   -.56459E-03
  13  norm          .10000E-03    9.0801        .71608E-05** at limit **
  14  norm          .10000E-03    9.1371        .78761E-07** at limit **
  15  Prefactor     3.6252        3.9530        .28847E-06    .14678E-03
  16  Prefactor     60.244        33.492       -.55154E-06   -.96117E-04
  17  Prefactor     47.632        36.795        .15686E-05    .18949E-03
  18  norm          .10001E-03    14.522        .13655E-04** at limit **
  19  Prefactor     28.070        19.040       -.11119E-05   -.24039E-03
  20  norm          .10000E-03    1.3218       -.71556E-06** at limit **
  21  Prefactor     8.1121        20.595        .34930E-05    .23672E-03
  22  norm          .10000E-03    4.5508       -.51386E-07** at limit **
  23  Normalizat    1.1896        .24668       -.13484E-05   -.21193E-03
  24  Prefactor     .97707        .15281        .21410E-05    .12416E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 13.8634
  norm       = 0.275462
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.2747
  Prefactor  = 24.2585
  Prefactor  = 26.7671
  norm       = 1.52719
  norm       = 0.738095
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.62518
  Prefactor  = 60.244
  Prefactor  = 47.6323
  norm       = 0.00010001
  Prefactor  = 28.0704
  norm       = 0.000100001
  Prefactor  = 8.11212
  norm       = 0.0001
  Normalizat = 1.18961
  Prefactor  = 0.977071
 **********
 **   18 **HESSE 
 **********

 FCN=   6196.934     FROM HESSE     STATUS=OK           399 CALLS     3551 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          13.863        32.271        .10759E-03   -1.4963    
   3  norm          .27546        .23905        .35083E-03   -1.5603    
   4  Prefactor     .10000E-03    187.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.3257        .15959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    15.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.9031        .13090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     51.275        26.456        .56001E-04   -1.4275    
   9  Prefactor     24.259        10.657        .81340E-04   -1.4723    
  10  Prefactor     26.767        45.331        .77444E-04   -1.4673    
  11  norm          1.5272        1.3476        .82859E-04   -1.5461    
  12  norm          .73810        28.708        .25240E-02   -1.5536    
  13  norm          .10000E-03    19.005        .33311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    9.1381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.6252        3.8251        .15224E-03   -1.5327    
  16  Prefactor     60.244        33.548        .51697E-04   -1.4154    
  17  Prefactor     47.632        36.925        .58089E-04   -1.4327    
  18  norm          .10001E-03    18.608        .28508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     28.070        19.095        .75605E-04   -1.4648    
  20  norm          .10000E-03    2.2926        .17544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.1121        20.833        .14085E-03   -1.5138    
  22  norm          .10000E-03    4.5512        .16402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1896        .29242        .31608E-03   -.86924    
  24  Prefactor     .97707        .18135        .22495E-03   -.93498    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.90397e-09
Minuit parameter uncertainties:
  1  0.000132436
  2  32.3115
  3  0.239052
  4  0.000899761
  5  1.73739e-05
  6  6.08753e-05
  7  2.70673e-05
  8  26.4616
  9  10.6581
  10  45.3891
  11  1.34764
  12  9.21052
  13  3.47573e-05
  14  6.48302e-06
  15  3.82531
  16  33.5587
  17  36.9426
  18  0.00085986
  19  19.0991
  20  9.29365e-05
  21  20.8514
  22  6.69619e-06
  23  0.292818
  24  0.18146
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.527e+00  1.348e+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:  9.771e-01  1.815e-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.190e+00  2.928e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.36
Ra Dec: 203.020 -5.161
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 4.62e-08 +/- 4.07e-08
Energy Flux (Fixed Index): 1.39e-05 +/- 1.23e-05

TS (Fixed Index): 2.36
Ra Dec: 203.020 -5.161
Photon Flux Upper Limit: 1.41e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.25e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/738770/likelihoodResults_425433601_425692801_4FGL_J1332.0-0509_daily_bin718.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) = 6196.92719842
delta logL = 0.00656491826885

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6196.92701456
delta logL = 0.00674878102654

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5415       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3058       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1931       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97566       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=   6196.927     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      201 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5414        57.631        .85843E-02    .34685E-03
   2  alpha         2.3057        3.3761        .41310        .59935E-05
   3  Normalizat    1.1931        .13516        .71342E-01    .12433E-04
   4  Prefactor     .97566        .99461E-01    .45962E-01    .72062E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.54138
  alpha      = 2.3057
  Normalizat = 1.19314
  Prefactor  = 0.975659
 **********
 **   18 **HESSE 
 **********

 FCN=   6196.927     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5414        1.3719        .84071E-04   -1.5460    
   2  alpha         2.3057        .74914        .20699E-01   -.77799E-01
   3  Normalizat    1.1931        .27508        .31569E-03   -.86815    
   4  Prefactor     .97566        .17912        .22510E-03   -.93545    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.36077e-11
Minuit parameter uncertainties:
  1  1.37197
  2  0.760909
  3  0.275409
  4  0.17923
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/738770': 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) = 6196.92701454
delta logL = 0.00674879781491

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.541e+00  1.372e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.306e+00  7.609e-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.757e-01  1.792e-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.193e+00  2.754e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.37
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 2.31 +/- 0.76
Photon Flux (Free Index): 4.32e-08 +/- 4.58e-08
Energy Flux (Free Index): 1.40e-05 +/- 1.25e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/738770/cmap_HighResolution_425433601_425692801_4FGL_J1332.0-0509_daily_bin718.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.25e-05', comment='SUCCESS', photon_flux='4.62e-08', energy_flux2='1.40e-05', photon_flux_error='4.07e-08', dlogl='6.75e-03', energy_flux='1.39e-05', photon_flux2='4.32e-08', job_status='DONE', time_completed='2021-09-08 01:55:55.079938', photon_index_error2='0.76', photon_index2='2.31', ts='2.36', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.41e-07', energy_flux_error2='1.25e-05', EG='1.19', time_epoch_completed='1631091355.08', return_code='0', job_id='738770', GAL2='0.98', EG2='1.19', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='4.58e-08', ts2='2.37', photon_index='2.39' WHERE bin_id='718' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:55:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 738770: <4FGL_J1332.0-0509_daily_bin718> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin718> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep  8 01:40:33 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:41:22 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:41:22 2021
Terminated at Wed Sep  8 01:55:55 2021
Results reported at Wed Sep  8 01:55:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin718 203.02 -5.1611 425433601 425692801 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 :                                   691.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            922 sec.

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

