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


Performing analysis on: 4FGL_J1332.6-1256_daily_bin1376
RA = 203.154, Dec = -12.9436
tmin = 595987201, tmax = 596246401
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='763904', job_status='RUN', time_executed='2021-09-08 02:55:25.912739', time_epoch_executed='1631094925.91' WHERE source_name='4FGL J1332.6-1256' and cadence='daily' and bin_id='1376'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/763904

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/763904/ft1_4FGL_J1332.6-1256_daily_bin1376.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/763904/ft2_4FGL_J1332.6-1256_daily_bin1376.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/763904/ft1_4FGL_J1332.6-1256_daily_bin1376.fits outfile=/scratch/kocevski/763904/ft1_filteredMKT_4FGL_J1332.6-1256_daily_bin1376.fits ra=203.154 dec=-12.9436 rad=12.0 tmin=595987201.0 tmax=596246401.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.23
user 3.00
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/763904/ft2_4FGL_J1332.6-1256_daily_bin1376.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/763904/ft2_4FGL_J1332.6-1256_daily_bin1376.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/763904/ft1_filteredMKT_4FGL_J1332.6-1256_daily_bin1376.fits evtable="EVENTS" outfile="/scratch/kocevski/763904/ft1_filtered_4FGL_J1332.6-1256_daily_bin1376.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.54
user 0.36
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/763904/ft1_filtered_4FGL_J1332.6-1256_daily_bin1376.fits" evtable="EVENTS" scfile=/scratch/kocevski/763904/ft2_4FGL_J1332.6-1256_daily_bin1376.fits sctable="SC_DATA" outfile=/scratch/kocevski/763904/ltcube_595987201_596246401_4FGL_J1332.6-1256_daily_bin1376.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/763904/ft2_4FGL_J1332.6-1256_daily_bin1376.fits
.....................!
real 19.25
user 18.89
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/763904/ft1_filtered_4FGL_J1332.6-1256_daily_bin1376.fits evtable="EVENTS" scfile=/scratch/kocevski/763904/ft2_4FGL_J1332.6-1256_daily_bin1376.fits sctable="SC_DATA" expcube=/scratch/kocevski/763904/ltcube_595987201_596246401_4FGL_J1332.6-1256_daily_bin1376.fits outfile=/scratch/kocevski/763904/expmap_595987201_596246401_4FGL_J1332.6-1256_daily_bin1376.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/763904/ltcube_595987201_596246401_4FGL_J1332.6-1256_daily_bin1376.fits
.....................!
real 194.35
user 188.43
sys 5.48

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 165 point sources and 0 extended sources

Setting source of interest to:
4FGL J1332.6-1256 @ 203.154 -12.9436

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/763904/ft1_filtered_4FGL_J1332.6-1256_daily_bin1376.fits scfile=/scratch/kocevski/763904/ft2_4FGL_J1332.6-1256_daily_bin1376.fits outfile=/scratch/kocevski/763904/cmap_595987201_596246401_4FGL_J1332.6-1256_daily_bin1376.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.154 yref=-12.9436 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.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/763904/ft1_filtered_4FGL_J1332.6-1256_daily_bin1376.fits scfile=/scratch/kocevski/763904/ft2_4FGL_J1332.6-1256_daily_bin1376.fits outfile=/scratch/kocevski/763904/cmap_HighResolution_595987201_596246401_4FGL_J1332.6-1256_daily_bin1376.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.154 yref=-12.9436 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.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/763904/ft1_filtered_4FGL_J1332.6-1256_daily_bin1376.fits evtable="EVENTS" scfile=/scratch/kocevski/763904/ft2_4FGL_J1332.6-1256_daily_bin1376.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/763904/Model_4FGL_J1332.6-1256_daily_bin1376.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/763904/ft1_filtered_4FGL_J1332.6-1256_daily_bin1376.fits.....................!
real 58.80
user 57.07
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/763904/ft1_filtered_4FGL_J1332.6-1256_daily_bin1376.fits', '/scratch/kocevski/763904/ft2_4FGL_J1332.6-1256_daily_bin1376.fits', expMap='/scratch/kocevski/763904/expmap_595987201_596246401_4FGL_J1332.6-1256_daily_bin1376.fits', expCube='/scratch/kocevski/763904/ltcube_595987201_596246401_4FGL_J1332.6-1256_daily_bin1376.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/763904/Model_4FGL_J1332.6-1256_daily_bin1376.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1332.6-1256'

4FGL J1332.6-1256
   Spectrum: LogParabola
280         norm:  5.331e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.403e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
282         beta:  1.310e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  9.736e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/763904/ft1_filtered_4FGL_J1332.6-1256_daily_bin1376.fits
Spacecraft file(s): /scratch/kocevski/763904/ft2_4FGL_J1332.6-1256_daily_bin1376.fits
Exposure map: /scratch/kocevski/763904/expmap_595987201_596246401_4FGL_J1332.6-1256_daily_bin1376.fits
Exposure cube: /scratch/kocevski/763904/ltcube_595987201_596246401_4FGL_J1332.6-1256_daily_bin1376.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/763904/Model_4FGL_J1332.6-1256_daily_bin1376.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) = 6877.46076779

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6647       1.0000         .10000E-03   10000.    
     2 'norm      '    4.8326       1.0000         .10000E-03   10000.    
     3 'Prefactor '    36.940       1.0000         .10000E-03   10000.    
     4 'norm      '    1.2687       1.0000         .10000E-03   10000.    
     5 'norm      '    .10503E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.9158       1.0000         .10000E-03   10000.    
    11 'norm      '    6.5413       1.0000         .10000E-03   10000.    
    12 'norm      '    23.046       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.501       1.0000         .10000E-03   10000.    
    15 'norm      '    .63099       1.0000         .10000E-03   10000.    
    16 'Prefactor '    20.019       1.0000         .10000E-03   10000.    
    17 'norm      '    5.5099       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.4848       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    6.7992       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    2.1497       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .46153       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6877.454     FROM MIGRAD    STATUS=CONVERGED    551 CALLS     2718 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6647        .33873        .16505E-07   -.48614E-05
   2  norm          4.8314        5.2616       -.18078E-07   -.10199E-03
   3  Prefactor     36.918        59.682       -.48536E-05   -.19555E-03
   4  norm          1.2685        1.4312       -.15718E-08    .56013E-04
   5  norm          .10000E-03    8.7342       -.15192E-05** at limit **
   6  norm          .10000E-03    4.0358        .30134E-07** at limit **
   7  Prefactor     .10000E-03    3.2634        .58102E-07** at limit **
   8  Prefactor     .10000E-03    8.7353        .91648E-06** at limit **
   9  Prefactor     .10000E-03    22.351        .19710E-06** at limit **
  10  norm          1.9157        1.6251        .63878E-07   -.91168E-04
  11  norm          6.5370        4.4354        .53160E-07    .94709E-04
  12  norm          23.042        10.953       -.80442E-07    .10586E-03
  13  Prefactor     .10000E-03    7.9286       -.19406E-06** at limit **
  14  Prefactor     23.483        46.655       -.54222E-05   -.30602E-03
  15  norm          .21522        16.643       -.25045E-06    .32371E-04
  16  Prefactor     20.021        16.413       -.13009E-05   -.47618E-03
  17  norm          5.5074        6.3038        .34803E-05   -.10791E-02
  18  Prefactor     3.4836        6.1751        .50091E-06    .26062E-04
  19  Prefactor     .10000E-03    15.938       -.12432E-05** at limit **
  20  norm          .10000E-03    8.9043        .64382E-06** at limit **
  21  norm          6.7979        3.9826        .30329E-07   -.54105E-04
  22  Prefactor     .10000E-03    15.630        .11026E-05** at limit **
  23  Normalizat    2.1498        .25728        .30882E-06   -.37064E-04
  24  Prefactor     .46164        .12704       -.51501E-06    .33641E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.66466
  norm       = 4.8314
  Prefactor  = 36.9183
  norm       = 1.26855
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.91565
  norm       = 6.53702
  norm       = 23.0418
  Prefactor  = 0.0001
  Prefactor  = 23.4832
  norm       = 0.215224
  Prefactor  = 20.0205
  norm       = 5.5074
  Prefactor  = 3.48364
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 6.79793
  Prefactor  = 0.000100001
  Normalizat = 2.14976
  Prefactor  = 0.46164
 **********
 **   18 **HESSE 
 **********

 FCN=   6877.454     FROM HESSE     STATUS=OK           405 CALLS     3123 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6647        .33988        .20783E-04   -1.5450    
   2  norm          4.8314        5.2615        .18300E-03   -1.5268    
   3  Prefactor     36.918        61.080        .65941E-04   -1.4492    
   4  norm          1.2685        1.4318        .10269E-03   -1.5483    
   5  norm          .10000E-03    8.8107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.0407        .16271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.2730        .14629E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.0225        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    22.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.9157        1.6282        .91575E-04   -1.5431    
  11  norm          6.5370        4.4290        .13006E-03   -1.5197    
  12  norm          23.042        10.942        .83438E-04   -1.4748    
  13  Prefactor     .10000E-03    7.9386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     23.483        48.655        .82628E-04   -1.4738    
  15  norm          .21522        23.219        .13066       -1.5615    
  16  Prefactor     20.021        16.439        .89517E-04   -1.4813    
  17  norm          5.5074        6.6343        .85584E-03   -1.5239    
  18  Prefactor     3.4836        6.1535        .21660E-03   -1.5335    
  19  Prefactor     .10000E-03    16.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    8.9935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.7979        3.9902        .12142E-03   -1.5186    
  22  Prefactor     .10000E-03    15.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    2.1498        .29959        .28375E-03   -.60848    
  24  Prefactor     .46164        .14626        .28285E-03   -1.1377    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73569e-09
Minuit parameter uncertainties:
  1  0.339881
  2  5.26199
  3  61.1841
  4  1.43179
  5  0.000125779
  6  8.35189e-07
  7  9.45985e-07
  8  7.19929e-05
  9  3.34076e-05
  10  1.62823
  11  4.42917
  12  10.9432
  13  3.95051e-05
  14  48.7377
  15  4.47162
  16  16.4423
  17  6.63514
  18  6.15458
  19  0.000227876
  20  3.01698e-05
  21  3.99033
  22  0.000188922
  23  0.299857
  24  0.146375
Done.

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

Extracting fit parameters...

4FGL J1332.6-1256
   Spectrum: LogParabola
280         norm:  6.537e+00  4.429e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.403e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
282         beta:  1.310e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  9.736e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  4.616e-01  1.464e-01  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
547   Normalization:  2.150e+00  2.999e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.65
Ra Dec: 203.154 -12.944
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 7.67e-08 +/- 5.19e-08
Energy Flux (Fixed Index): 2.67e-05 +/- 1.81e-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) = 6877.38575879
delta logL = 0.0685722048111

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6877.38165814
delta logL = 0.0726728495947

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.7319       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0953       1.0000          .0000       5.0000    
     3 'Normalizat'    2.1728       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .45619       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5510E+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=   6877.382     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      243 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.7319        4.6708        .14371E-03    .36144E-03
   2  alpha         2.0952        .81579        .19143E-01    .24647E-04
   3  Normalizat    2.1729        .28249        .28276E-03   -.30074E-04
   4  Prefactor     .45620        .14134        .28455E-03   -.33601E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.73188
  alpha      = 2.09523
  Normalizat = 2.17286
  Prefactor  = 0.456198
 **********
 **   18 **HESSE 
 **********

 FCN=   6877.382     FROM HESSE     STATUS=OK            23 CALLS      266 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.7319        4.6956        .57485E-05   -1.5189    
   2  alpha         2.0952        .81889        .76571E-03   -.16262    
   3  Normalizat    2.1729        .28247        .11311E-04   -.60285    
   4  Prefactor     .45620        .14139        .11382E-04   -1.1403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29904e-10
Minuit parameter uncertainties:
  1  4.69584
  2  0.834724
  3  0.282689
  4  0.141496
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/763904': 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) = 6877.38165813
delta logL = 0.0726728644058

Extracting fit parameters...

4FGL J1332.6-1256
   Spectrum: LogParabola
280         norm:  6.732e+00  4.696e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.095e+00  8.347e-01  0.000e+00  5.000e+00 ( 1.000e+00)
282         beta:  1.310e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  9.736e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  4.562e-01  1.415e-01  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
547   Normalization:  2.173e+00  2.827e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.82
Ra Dec: 203.154 -12.944
Photon Index (Free Index): 2.10 +/- 0.83
Photon Flux (Free Index): 5.22e-08 +/- 6.95e-08
Energy Flux (Free Index): 2.64e-05 +/- 1.83e-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/763904/cmap_HighResolution_595987201_596246401_4FGL_J1332.6-1256_daily_bin1376.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.67e-08', energy_flux2='2.64e-05', photon_flux_error='5.19e-08', dlogl='7.27e-02', energy_flux='2.67e-05', photon_flux2='5.22e-08', job_status='DONE', time_completed='2021-09-08 03:08:07.658287', photon_index_error2='0.83', photon_index2='2.10', ts='6.65', fit_tolerance='1e-08', GAL='0.46', photon_index_error='0.00', energy_flux_error2='1.83e-05', EG='2.15', time_epoch_completed='1631095687.66', return_code='0', job_id='763904', GAL2='0.46', EG2='2.17', return_code2='0', energy_flux_error='1.81e-05', photon_flux_error2='6.95e-08', ts2='6.82', photon_index='2.40' WHERE bin_id='1376' AND source_name='4FGL J1332.6-1256' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:08:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 763904: <4FGL_J1332.6-1256_daily_bin1376> in cluster <slac> Done

Job <4FGL_J1332.6-1256_daily_bin1376> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 02:52:54 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 02:53:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 02:53:48 2021
Terminated at Wed Sep  8 03:08:08 2021
Results reported at Wed Sep  8 03:08:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.6-1256_daily_bin1376 203.154 -12.9436 595987201 596246401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1332.6-1256 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   641.02 sec.
    Max Memory :                                 1145 MB
    Average Memory :                             278.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            914 sec.

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

