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


Performing analysis on: 4FGL_J1332.0-0509_daily_bin976
RA = 203.02, Dec = -5.1611
tmin = 492307201, tmax = 492566401
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='740278', job_status='RUN', time_executed='2021-09-08 01:48:58.876486', time_epoch_executed='1631090938.88' WHERE source_name='4FGL J1332.0-0509' and cadence='daily' and bin_id='976'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/740278

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/740278/ft1_4FGL_J1332.0-0509_daily_bin976.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/740278/ft2_4FGL_J1332.0-0509_daily_bin976.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/740278/ft1_4FGL_J1332.0-0509_daily_bin976.fits outfile=/scratch/kocevski/740278/ft1_filteredMKT_4FGL_J1332.0-0509_daily_bin976.fits ra=203.02 dec=-5.1611 rad=12.0 tmin=492307201.0 tmax=492566401.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.72
user 3.51
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/740278/ft1_filtered_4FGL_J1332.0-0509_daily_bin976.fits" evtable="EVENTS" scfile=/scratch/kocevski/740278/ft2_4FGL_J1332.0-0509_daily_bin976.fits sctable="SC_DATA" outfile=/scratch/kocevski/740278/ltcube_492307201_492566401_4FGL_J1332.0-0509_daily_bin976.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/740278/ft2_4FGL_J1332.0-0509_daily_bin976.fits
.....................!
real 16.08
user 15.67
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/740278/ft1_filtered_4FGL_J1332.0-0509_daily_bin976.fits evtable="EVENTS" scfile=/scratch/kocevski/740278/ft2_4FGL_J1332.0-0509_daily_bin976.fits sctable="SC_DATA" expcube=/scratch/kocevski/740278/ltcube_492307201_492566401_4FGL_J1332.0-0509_daily_bin976.fits outfile=/scratch/kocevski/740278/expmap_492307201_492566401_4FGL_J1332.0-0509_daily_bin976.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/740278/ltcube_492307201_492566401_4FGL_J1332.0-0509_daily_bin976.fits
.....................!
real 191.71
user 186.76
sys 4.25

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/740278/ft1_filtered_4FGL_J1332.0-0509_daily_bin976.fits scfile=/scratch/kocevski/740278/ft2_4FGL_J1332.0-0509_daily_bin976.fits outfile=/scratch/kocevski/740278/cmap_492307201_492566401_4FGL_J1332.0-0509_daily_bin976.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.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/740278/ft1_filtered_4FGL_J1332.0-0509_daily_bin976.fits scfile=/scratch/kocevski/740278/ft2_4FGL_J1332.0-0509_daily_bin976.fits outfile=/scratch/kocevski/740278/cmap_HighResolution_492307201_492566401_4FGL_J1332.0-0509_daily_bin976.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.60
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    16.092       1.0000         .10000E-03   10000.    
     3 'norm      '    1.3607       1.0000         .10000E-03   10000.    
     4 'Prefactor '    79.889       1.0000         .10000E-03   10000.    
     5 'norm      '    11.052       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.108       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .16195       1.0000         .10000E-03   10000.    
    12 'norm      '    12.635       1.0000         .10000E-03   10000.    
    13 'norm      '    10.255       1.0000         .10000E-03   10000.    
    14 'norm      '    .13894E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.282       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.910       1.0000         .10000E-03   10000.    
    17 'Prefactor '    74.445       1.0000         .10000E-03   10000.    
    18 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10755E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4623       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .81241       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=   4726.658     FROM MIGRAD    STATUS=CONVERGED    553 CALLS     2780 TOTAL
                     EDM=   .65E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.967        .82519E-07** at limit **
   2  norm          16.089        25.076        .66333E-07   -.70384E-06
   3  norm          1.3606        .38883        .19685E-07   -.12085E-03
   4  Prefactor     79.791        117.06       -.66218E-06   -.51044E-04
   5  norm          11.054        18.136       -.20082E-06   -.14862E-04
   6  norm          .10000E-03    5.9707        .51414E-07** at limit **
   7  Prefactor     18.105        12.975        .52163E-07   -.73022E-05
   8  Prefactor     .10000E-03    8.8171       -.18082E-07** at limit **
   9  Prefactor     .10000E-03    8.1488        .80686E-07** at limit **
  10  Prefactor     .10000E-03    89.102        .33911E-06** at limit **
  11  norm          .15911        1.1960        .31326E-06   -.29386E-03
  12  norm          12.628        8.0382       -.91657E-06   -.18520E-04
  13  norm          10.252        15.078        .32122E-05   -.50944E-04
  14  norm          .10000E-03    137.07        .73905E-06** at limit **
  15  Prefactor     14.281        9.7762       -.38012E-06   -.63339E-04
  16  Prefactor     11.857        31.417       -.13271E-07   -.19404E-04
  17  Prefactor     74.440        77.639       -.94014E-07   -.88007E-05
  18  norm          .10000E-03    7.3743        .78742E-07** at limit **
  19  Prefactor     .10000E-03    4.2596       -.53666E-07** at limit **
  20  norm          .10000E-03    1.8817        .34613E-06** at limit **
  21  Prefactor     .10000E-03    17.957        .43196E-07** at limit **
  22  norm          .10000E-03    8.4176        .75626E-07** at limit **
  23  Normalizat    1.4625        .28673        .74271E-06   -.11625E-03
  24  Prefactor     .81233        .18164       -.13743E-05   -.41090E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 16.0887
  norm       = 1.36063
  Prefactor  = 79.7908
  norm       = 11.054
  norm       = 0.0001
  Prefactor  = 18.105
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.159113
  norm       = 12.6278
  norm       = 10.2521
  norm       = 0.0001
  Prefactor  = 14.2812
  Prefactor  = 11.857
  Prefactor  = 74.4404
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.46252
  Prefactor  = 0.812334
 **********
 **   18 **HESSE 
 **********

 FCN=   4726.658     FROM HESSE     STATUS=OK           399 CALLS     3179 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          16.089        25.071        .99844E-04   -1.4906    
   3  norm          1.3606        .38921        .21481E-04   -1.5475    
   4  Prefactor     79.791        117.00        .22467E-03   -1.3919    
   5  norm          11.054        18.093        .12051E-03   -1.5043    
   6  norm          .10000E-03    5.9799        .16408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.105        12.970        .94122E-04   -1.4857    
   8  Prefactor     .10000E-03    8.8356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.2121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    89.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .15911        2.1211        .14103E-02   -1.5628    
  12  norm          12.628        8.0298        .11269E-03   -1.4997    
  13  norm          10.252        15.181        .62562E-03   -1.5067    
  14  norm          .10000E-03    139.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.281        9.7722        .10598E-03   -1.4952    
  16  Prefactor     11.857        31.516        .11608E-03   -1.5019    
  17  Prefactor     74.440        77.826        .46534E-04   -1.3980    
  18  norm          .10000E-03    7.4150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.2607        .13857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.2027        .18128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    17.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    8.4198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.4625        .33107        .30082E-03   -.78837    
  24  Prefactor     .81233        .20827        .25021E-03   -.99275    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05348e-08
Minuit parameter uncertainties:
  1  4.88283e-07
  2  25.0875
  3  0.389207
  4  117.335
  5  18.1022
  6  1.33912e-06
  7  12.9723
  8  2.39561e-06
  9  8.38495e-06
  10  6.42752e-05
  11  1.16157
  12  8.03049
  13  15.1862
  14  0.000229988
  15  9.77324
  16  31.5605
  17  77.9331
  18  1.05598e-05
  19  8.53648e-07
  20  3.3568e-05
  21  3.66581e-06
  22  1.29337e-05
  23  0.33156
  24  0.208472
Done.

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

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  1.591e-01  1.162e+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.123e-01  2.085e-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.463e+00  3.316e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/740278/likelihoodResults_492307201_492566401_4FGL_J1332.0-0509_daily_bin976.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) = 4726.65062979
delta logL = 0.00696144717131

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4726.64964755
delta logL = 0.00794368984589

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .20852       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0768       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4639       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81114       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4726.650     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      275 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .21014        1.6391        .16797E-03   -.89471E-03
   2  alpha         2.0794        1.9959        .56932E-01   -.43864E-05
   3  Normalizat    1.4634        .31609        .30074E-03    .15922E-03
   4  Prefactor     .81141        .20425        .25034E-03   -.63261E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.210139
  alpha      = 2.07945
  Normalizat = 1.46339
  Prefactor  = 0.811411
 **********
 **   18 **HESSE 
 **********

 FCN=   4726.650     FROM HESSE     STATUS=OK            25 CALLS      300 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .21014        1.6232        .67187E-05   -1.5616    
   2  alpha         2.0794        1.9920        .22773E-02   -.16903    
   3  Normalizat    1.4634        .31639        .60149E-04   -.78812    
   4  Prefactor     .81141        .20439        .10013E-04   -.99309    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.98916e-10
Minuit parameter uncertainties:
  1  1.16784
  2  2.31971
  3  0.316813
  4  0.204584
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/740278': 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) = 4726.64964469
delta logL = 0.00794654616311

Extracting fit parameters...

4FGL J1332.0-0509
   Spectrum: LogParabola
305         norm:  2.101e-01  1.168e+00  1.000e-04  1.000e+04 ( 1.000e-11)
306        alpha:  2.079e+00  2.320e+00  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.114e-01  2.046e-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.463e+00  3.168e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/740278/cmap_HighResolution_492307201_492566401_4FGL_J1332.0-0509_daily_bin976.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.50e-05', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2021-09-08 01:58:51.471193', job_id='740278', GAL2='0.81', fit_tolerance='1e-08', EG2='1.46', EG='1.46', time_epoch_completed='1631091531.47', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='7.95e-03', ts2='0.04', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='976' AND source_name='4FGL J1332.0-0509' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 01:58:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 740278: <4FGL_J1332.0-0509_daily_bin976> in cluster <slac> Done

Job <4FGL_J1332.0-0509_daily_bin976> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 01:45:42 2021
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 01:45:47 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:45:47 2021
Terminated at Wed Sep  8 01:58:52 2021
Results reported at Wed Sep  8 01:58:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.0-0509_daily_bin976 203.02 -5.1611 492307201 492566401 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 :                                   589.42 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             265.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            790 sec.

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

