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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin467
RA = 203.02, Dec = -5.1611
tmin = 360374401, tmax = 360633601
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='737291', job_status='RUN', time_executed='2021-09-08 01:39:48.408684', time_epoch_executed='1631090388.41' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='467'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/737291

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/737291/ft1_4FGL_J1332.0-0509_daily_bin467.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/737291/ft2_4FGL_J1332.0-0509_daily_bin467.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/737291/ft1_4FGL_J1332.0-0509_daily_bin467.fits outfile=/scratch/kocevski/737291/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin467.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=360374401.0 tmax=360633601.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.38
user 3.15
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/737291/ft1_filtered_4FGL_J1332.0-0509_daily_bin467.fits" evtable="EVENTS" scfile=/scratch/kocevski/737291/ft2_4FGL_J1332.0-0509_daily_bin467.fits sctable="SC_DATA" outfile=/scratch/kocevski/737291/ltcube_360374401_360633601_4FGL_J1332.0-0509_daily_bin467.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/737291/ft2_4FGL_J1332.0-0509_daily_bin467.fits
.....................!
real 17.16
user 16.72
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/737291/ft1_filtered_4FGL_J1332.0-0509_daily_bin467.fits evtable="EVENTS" scfile=/scratch/kocevski/737291/ft2_4FGL_J1332.0-0509_daily_bin467.fits sctable="SC_DATA" expcube=/scratch/kocevski/737291/ltcube_360374401_360633601_4FGL_J1332.0-0509_daily_bin467.fits outfile=/scratch/kocevski/737291/expmap_360374401_360633601_4FGL_J1332.0-0509_daily_bin467.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/737291/ltcube_360374401_360633601_4FGL_J1332.0-0509_daily_bin467.fits
.....................!
real 192.08
user 187.04
sys 4.16

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/737291/ft1_filtered_4FGL_J1332.0-0509_daily_bin467.fits scfile=/scratch/kocevski/737291/ft2_4FGL_J1332.0-0509_daily_bin467.fits outfile=/scratch/kocevski/737291/cmap_360374401_360633601_4FGL_J1332.0-0509_daily_bin467.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.57
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/737291/ft1_filtered_4FGL_J1332.0-0509_daily_bin467.fits scfile=/scratch/kocevski/737291/ft2_4FGL_J1332.0-0509_daily_bin467.fits outfile=/scratch/kocevski/737291/cmap_HighResolution_360374401_360633601_4FGL_J1332.0-0509_daily_bin467.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.58
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/737291/ft1_filtered_4FGL_J1332.0-0509_daily_bin467.fits evtable="EVENTS" scfile=/scratch/kocevski/737291/ft2_4FGL_J1332.0-0509_daily_bin467.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/737291/Model_4FGL_J1332.0-0509_daily_bin467.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/737291/ft1_filtered_4FGL_J1332.0-0509_daily_bin467.fits.....................!
real 49.89
user 48.50
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    17.375       1.0000         .10000E-03   10000.    
     3 'norm      '    .19439       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.519       1.0000         .10000E-03   10000.    
     5 'norm      '    22.164       1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.589       1.0000         .10000E-03   10000.    
     8 'Prefactor '    33.088       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.3525       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.8248       1.0000         .10000E-03   10000.    
    12 'norm      '    12.920       1.0000         .10000E-03   10000.    
    13 'norm      '    4.5206       1.0000         .10000E-03   10000.    
    14 'norm      '    13.979       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.6373       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.619       1.0000         .10000E-03   10000.    
    18 'norm      '    .23562E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10325E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3189       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .89530       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=   5870.638     FROM MIGRAD    STATUS=CONVERGED    524 CALLS     2689 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    35.207        .64067E-06** at limit **
   2  norm          17.375        19.251        .84313E-07   -.10849E-04
   3  norm          .19438        .14767        .94817E-08   -.15288E-03
   4  Prefactor     11.522        45.342        .84640E-06   -.58689E-05
   5  norm          22.164        13.540        .37171E-07   -.99537E-04
   6  norm          .10000E-03    4.7058        .82477E-07** at limit **
   7  Prefactor     13.588        11.732       -.55030E-06   -.14831E-03
   8  Prefactor     33.091        22.400        .56754E-06   -.50414E-04
   9  Prefactor     1.3571        18.681        .64234E-05    .17822E-03
  10  Prefactor     .10000E-03    12.743       -.23625E-06** at limit **
  11  norm          1.8248        1.6332        .80412E-07   -.15835E-03
  12  norm          12.921        5.9842       -.10672E-06   -.35860E-03
  13  norm          4.5185        10.169       -.17879E-06   -.10144E-03
  14  norm          13.953        27.880       -.11193E-05   -.49142E-04
  15  Prefactor     9.6434        9.5320        .34279E-06   -.92754E-03
  16  Prefactor     .10000E-03    36.123        .81887E-06** at limit **
  17  Prefactor     16.496        53.928       -.59219E-05   -.13245E-03
  18  norm          .10018E-03    8.0311        .23889E-05** at limit **
  19  Prefactor     .10000E-03    5.4780        .20608E-06** at limit **
  20  norm          .10000E-03    1.5647        .75231E-06** at limit **
  21  Prefactor     .10000E-03    12.252        .13866E-06** at limit **
  22  norm          .10000E-03    9.2957        .25126E-06** at limit **
  23  Normalizat    1.3181        .28496       -.12365E-04   -.45777E-03
  24  Prefactor     .89581        .18840        .83957E-05   -.69423E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 17.3754
  norm       = 0.194377
  Prefactor  = 11.5217
  norm       = 22.1637
  norm       = 0.0001
  Prefactor  = 13.5876
  Prefactor  = 33.091
  Prefactor  = 1.35707
  Prefactor  = 0.0001
  norm       = 1.82478
  norm       = 12.9211
  norm       = 4.51852
  norm       = 13.9529
  Prefactor  = 9.64337
  Prefactor  = 0.000100001
  Prefactor  = 16.4963
  norm       = 0.000100175
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.31809
  Prefactor  = 0.895811
 **********
 **   18 **HESSE 
 **********

 FCN=   5870.638     FROM HESSE     STATUS=OK           401 CALLS     3090 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    35.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          17.375        19.250        .96084E-04   -1.4874    
   3  norm          .19438        .15015        .24796E-04   -1.5620    
   4  Prefactor     11.522        45.287        .11803E-03   -1.5029    
   5  norm          22.164        13.527        .85081E-04   -1.4766    
   6  norm          .10000E-03    4.7125        .16232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.588        11.697        .10866E-03   -1.4971    
   8  Prefactor     33.091        22.410        .69662E-04   -1.4557    
   9  Prefactor     1.3571        19.480        .37608E-03   -1.5475    
  10  Prefactor     .10000E-03    12.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.8248        1.6160        .87988E-04   -1.5438    
  12  norm          12.921        5.9442        .10754E-03   -1.4989    
  13  norm          4.5185        10.054        .18935E-03   -1.5283    
  14  norm          13.953        27.895        .10713E-03   -1.4961    
  15  Prefactor     9.6434        8.3468        .12909E-03   -1.5087    
  16  Prefactor     .10000E-03    36.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     16.496        54.387        .98246E-04   -1.4895    
  18  norm          .10018E-03    34.890        .34820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.4906        .17518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.7507        .18332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    9.3079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3181        .28867        .29796E-03   -.83028    
  24  Prefactor     .89581        .18766        .23108E-03   -.96288    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.18081e-09
Minuit parameter uncertainties:
  1  0.000105342
  2  19.2572
  3  0.150153
  4  45.4224
  5  13.5285
  6  6.71749e-07
  7  11.6993
  8  22.4155
  9  10.2867
  10  1.61354e-05
  11  1.61599
  12  5.94447
  13  10.0574
  14  27.921
  15  8.34777
  16  0.000288168
  17  54.5509
  18  0.00494548
  19  2.58052e-05
  20  5.27833e-05
  21  1.39113e-05
  22  2.42423e-05
  23  0.289025
  24  0.187791
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.825e+00  1.616e+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:  8.958e-01  1.878e-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.318e+00  2.890e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.82
Ra Dec: 203.020 -5.161
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 5.52e-08 +/- 4.89e-08
Energy Flux (Fixed Index): 1.66e-05 +/- 1.47e-05

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

Saving results to:
/scratch/kocevski/737291/likelihoodResults_360374401_360633601_4FGL_J1332.0-0509_daily_bin467.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) = 5870.43033501
delta logL = 0.207226352685

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5870.41790245
delta logL = 0.219658915682

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0323       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8593       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3447       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88090       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=   5870.418     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      206 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0324        2.3791        .72542E-02    .36197E-03
   2  alpha         1.8593        .82240        .43005       -.20720E-04
   3  Normalizat    1.3447        .23524        .66790E-01    .69382E-05
   4  Prefactor     .88090        .15528        .44761E-01    .10472E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.03241
  alpha      = 1.8593
  Normalizat = 1.34465
  Prefactor  = 0.880904
 **********
 **   18 **HESSE 
 **********

 FCN=   5870.418     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0324        1.7218        .88299E-04   -1.5423    
   2  alpha         1.8593        .71687        .18464E-01   -.25917    
   3  Normalizat    1.3447        .27747        .29546E-03   -.82243    
   4  Prefactor     .88090        .18195        .23272E-03   -.96812    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.28124e-10
Minuit parameter uncertainties:
  1  1.72182
  2  0.72782
  3  0.277779
  4  0.182077
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/737291': 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) = 5870.41790245
delta logL = 0.219658919969

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  2.032e+00  1.722e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  1.859e+00  7.278e-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:  8.809e-01  1.821e-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.345e+00  2.778e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.26
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 1.86 +/- 0.73
Photon Flux (Free Index): 4.15e-08 +/- 4.15e-08
Energy Flux (Free Index): 2.19e-05 +/- 2.05e-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/737291/cmap_HighResolution_360374401_360633601_4FGL_J1332.0-0509_daily_bin467.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.86e-05', comment='SUCCESS', photon_flux='5.52e-08', energy_flux2='2.19e-05', photon_flux_error='4.89e-08', dlogl='2.20e-01', energy_flux='1.66e-05', photon_flux2='4.15e-08', job_status='DONE', time_completed='2021-09-08 01:50:32.854844', photon_index_error2='0.73', photon_index2='1.86', ts='1.82', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.62e-07', energy_flux_error2='2.05e-05', EG='1.32', time_epoch_completed='1631091032.85', return_code='0', job_id='737291', GAL2='0.88', EG2='1.34', return_code2='0', energy_flux_error='1.47e-05', photon_flux_error2='4.15e-08', ts2='2.26', photon_index='2.39' WHERE bin_id='467' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:50:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 737291: <4FGL_J1332.0-0509_daily_bin467> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin467 203.02 -5.1611 360374401 360633601 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 :                                   642.13 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             261.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            900 sec.

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

