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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin694
RA = 203.02, Dec = -5.1611
tmin = 419212801, tmax = 419472001
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='738730', job_status='RUN', time_executed='2021-09-08 01:43:06.315566', time_epoch_executed='1631090586.32' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='694'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/738730

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/738730/ft1_4FGL_J1332.0-0509_daily_bin694.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/738730/ft2_4FGL_J1332.0-0509_daily_bin694.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/738730/ft1_4FGL_J1332.0-0509_daily_bin694.fits outfile=/scratch/kocevski/738730/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin694.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=419212801.0 tmax=419472001.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 5.52
user 5.24
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/738730/ft1_filtered_4FGL_J1332.0-0509_daily_bin694.fits" evtable="EVENTS" scfile=/scratch/kocevski/738730/ft2_4FGL_J1332.0-0509_daily_bin694.fits sctable="SC_DATA" outfile=/scratch/kocevski/738730/ltcube_419212801_419472001_4FGL_J1332.0-0509_daily_bin694.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/738730/ft2_4FGL_J1332.0-0509_daily_bin694.fits
.....................!
real 16.11
user 15.69
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/738730/ft1_filtered_4FGL_J1332.0-0509_daily_bin694.fits evtable="EVENTS" scfile=/scratch/kocevski/738730/ft2_4FGL_J1332.0-0509_daily_bin694.fits sctable="SC_DATA" expcube=/scratch/kocevski/738730/ltcube_419212801_419472001_4FGL_J1332.0-0509_daily_bin694.fits outfile=/scratch/kocevski/738730/expmap_419212801_419472001_4FGL_J1332.0-0509_daily_bin694.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/738730/ltcube_419212801_419472001_4FGL_J1332.0-0509_daily_bin694.fits
.....................!
real 193.56
user 188.24
sys 4.86

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

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

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/738730/ft1_filtered_4FGL_J1332.0-0509_daily_bin694.fits scfile=/scratch/kocevski/738730/ft2_4FGL_J1332.0-0509_daily_bin694.fits outfile=/scratch/kocevski/738730/cmap_419212801_419472001_4FGL_J1332.0-0509_daily_bin694.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.59
user 0.39
sys 0.17

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/738730/ft1_filtered_4FGL_J1332.0-0509_daily_bin694.fits evtable="EVENTS" scfile=/scratch/kocevski/738730/ft2_4FGL_J1332.0-0509_daily_bin694.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/738730/Model_4FGL_J1332.0-0509_daily_bin694.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/738730/ft1_filtered_4FGL_J1332.0-0509_daily_bin694.fits.....................!
real 64.26
user 62.57
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.5494       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.4906       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    35.809       1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.617       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.3117       1.0000         .10000E-03   10000.    
    11 'norm      '    3.5019       1.0000         .10000E-03   10000.    
    12 'norm      '    .12193E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    12.497       1.0000         .10000E-03   10000.    
    14 'norm      '    8.6465       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.7537       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.1252       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.4456       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12626E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.1125       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.8184       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .61236       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=   7971.365     FROM MIGRAD    STATUS=CONVERGED    957 CALLS     3157 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.061        .18142E-02** at limit **
   2  norm          .10000E-03    12.961        .18142E-02** at limit **
   3  norm          2.5493        .43057        .22889E-04    .14006E-03
   4  Prefactor     .10000E-03    115.71        .18142E-02** at limit **
   5  norm          7.4905        8.4134        .14654E-03    .24827E-05
   6  norm          .10000E-03    3.1518        .15472E-02** at limit **
   7  Prefactor     .10000E-03    2.1386        .12746E-02** at limit **
   8  Prefactor     35.804        24.887        .66971E-04    .43627E-04
   9  Prefactor     22.614        11.065        .84226E-04    .12283E-04
  10  Prefactor     6.3132        18.123        .15977E-03   -.12950E-04
  11  norm          3.5016        1.7849        .80088E-04    .53090E-04
  12  norm          .10000E-03    3.2192        .30683E-03** at limit **
  13  norm          12.496        9.0227        .11331E-03   -.23979E-04
  14  norm          8.6458        26.894        .13632E-03    .97574E-05
  15  Prefactor     8.7511        7.5527        .13548E-03    .20224E-04
  16  Prefactor     5.1215        17.329        .17759E-03    .76180E-05
  17  Prefactor     .10000E-03    31.463        .18142E-02** at limit **
  18  norm          8.4464        7.2730        .13794E-03    .71703E-04
  19  Prefactor     .10000E-03    23.297        .36285E-03** at limit **
  20  norm          .10000E-03    .59020        .66513E-03** at limit **
  21  Prefactor     .99676        225.04        .83313E-02    .37922E-04
  22  norm          .10000E-03    3.8035        .17003E-02** at limit **
  23  Normalizat    1.8186        .27749        .28521E-03    .11673E-03
  24  Prefactor     .61223        .15384        .27980E-03    .59444E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.54934
  Prefactor  = 0.0001
  norm       = 7.49048
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.804
  Prefactor  = 22.6143
  Prefactor  = 6.3132
  norm       = 3.50163
  norm       = 0.0001
  norm       = 12.4965
  norm       = 8.64583
  Prefactor  = 8.75107
  Prefactor  = 5.12152
  Prefactor  = 0.0001
  norm       = 8.44642
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.996757
  norm       = 0.0001
  Normalizat = 1.81864
  Prefactor  = 0.612235
 **********
 **   18 **HESSE 
 **********

 FCN=   7971.365     FROM HESSE     STATUS=OK           375 CALLS     3532 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.062        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    12.962        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.5493        .43031        .91558E-06   -1.5389    
   4  Prefactor     .10000E-03    115.72        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.4905        8.4125        .58614E-05   -1.5161    
   6  norm          .10000E-03    3.1519        .30944E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.1386        .25492E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     35.804        24.866        .26788E-05   -1.4511    
   9  Prefactor     22.614        11.059        .33690E-05   -1.4757    
  10  Prefactor     6.3132        18.110        .63909E-05   -1.5205    
  11  norm          3.5016        1.7837        .32035E-05   -1.5334    
  12  norm          .10000E-03    3.2192        .61365E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          12.496        9.0187        .45325E-05   -1.5001    
  14  norm          8.6458        26.885        .54528E-05   -1.5120    
  15  Prefactor     8.7511        7.5451        .54191E-05   -1.5116    
  16  Prefactor     5.1215        17.327        .71035E-05   -1.5255    
  17  Prefactor     .10000E-03    31.467        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.4464        7.2715        .55177E-05   -1.5127    
  19  Prefactor     .10000E-03    23.298        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .59024        .13303E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .99676        226.91        .33325E-03   -1.5508    
  22  norm          .10000E-03    3.8036        .34006E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.8186        .27554        .57043E-04   -.69178    
  24  Prefactor     .61223        .15384        .11192E-04   -1.0707    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.91522e-11
Minuit parameter uncertainties:
  1  6.38367e-05
  2  3.93334e-06
  3  0.430315
  4  0.000437982
  5  8.41383
  6  1.06668e-06
  7  1.1179e-07
  8  24.8728
  9  11.0601
  10  18.1256
  11  1.78377
  12  3.56726e-05
  13  9.01967
  14  26.9229
  15  7.54596
  16  17.3438
  17  4.25586e-05
  18  7.27225
  19  5.59968e-05
  20  1.12341e-06
  21  30.1932
  22  1.79362e-06
  23  0.275775
  24  0.153943
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  3.502e+00  1.784e+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:  6.122e-01  1.539e-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.819e+00  2.758e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.29
Ra Dec: 203.020 -5.161
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 1.06e-07 +/- 5.39e-08
Energy Flux (Fixed Index): 3.19e-05 +/- 1.62e-05

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) = 7970.83934245
delta logL = 0.525788544217

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7970.82052479
delta logL = 0.544606202105

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9516       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9473       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7615       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63530       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=   7970.821     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      237 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9522        21.531        .59096E-02    .81193E-03
   2  alpha         2.9468        3.9537        .33128        .72140E-04
   3  Normalizat    1.7610        .10327        .65251E-01    .15797E-03
   4  Prefactor     .63566        .60969E-01    .62166E-01    .82511E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.95221
  alpha      = 2.94685
  Normalizat = 1.76097
  Prefactor  = 0.635657
 **********
 **   18 **HESSE 
 **********

 FCN=   7970.821     FROM HESSE     STATUS=OK            31 CALLS      268 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9522        1.7353        .65092E-04   -1.5364    
   2  alpha         2.9468        .55904        .13492E-01    .17971    
   3  Normalizat    1.7610        .25864        .28858E-03   -.70687    
   4  Prefactor     .63566        .15368        .27502E-03   -1.0611    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.82713e-11
Minuit parameter uncertainties:
  1  1.73532
  2  0.563972
  3  0.258841
  4  0.153785
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/738730': 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) = 7970.82052112
delta logL = 0.544609873446

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  2.952e+00  1.735e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.947e+00  5.640e-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:  6.357e-01  1.538e-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.761e+00  2.588e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.44
Ra Dec: 203.020 -5.161
Photon Index (Free Index): 2.95 +/- 0.56
Photon Flux (Free Index): 1.55e-07 +/- 7.92e-08
Energy Flux (Free Index): 3.32e-05 +/- 1.51e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/738730/cmap_HighResolution_419212801_419472001_4FGL_J1332.0-0509_daily_bin694.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.06e-07', energy_flux2='3.32e-05', photon_flux_error='5.39e-08', dlogl='5.45e-01', energy_flux='3.19e-05', photon_flux2='1.55e-07', job_status='DONE', time_completed='2021-09-08 01:55:39.927853', photon_index_error2='0.56', photon_index2='2.95', ts='7.29', fit_tolerance='1e-08', GAL='0.61', photon_index_error='0.00', energy_flux_error2='1.51e-05', EG='1.82', time_epoch_completed='1631091339.93', return_code='0', job_id='738730', GAL2='0.64', EG2='1.76', return_code2='0', energy_flux_error='1.62e-05', photon_flux_error2='7.92e-08', ts2='8.44', photon_index='2.39' WHERE bin_id='694' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:55:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0005>
Subject: Job 738730: <4FGL_J1332.0-0509_daily_bin694> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin694 203.02 -5.1611 419212801 419472001 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 :                                   752.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            910 sec.

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

