/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 48 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 = 7461
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1332.6-1256_daily_bin1003
RA = 203.154, Dec = -12.9436
tmin = 499305601, tmax = 499564801
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='761377', job_status='RUN', time_executed='2021-09-08 02:49:15.192600', time_epoch_executed='1631094555.19' WHERE source_name='4FGL J1332.6-1256' and cadence='daily' and bin_id='1003'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/761377

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/761377/ft1_4FGL_J1332.6-1256_daily_bin1003.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/761377/ft2_4FGL_J1332.6-1256_daily_bin1003.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/761377/ft1_4FGL_J1332.6-1256_daily_bin1003.fits outfile=/scratch/kocevski/761377/ft1_filteredMKT_4FGL_J1332.6-1256_daily_bin1003.fits ra=203.154 dec=-12.9436 rad=12.0 tmin=499305601.0 tmax=499564801.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 9.16
user 5.16
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/761377/ft2_4FGL_J1332.6-1256_daily_bin1003.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/761377/ft1_filteredMKT_4FGL_J1332.6-1256_daily_bin1003.fits evtable="EVENTS" outfile="/scratch/kocevski/761377/ft1_filtered_4FGL_J1332.6-1256_daily_bin1003.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 2.98
user 0.35
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/761377/ft1_filtered_4FGL_J1332.6-1256_daily_bin1003.fits" evtable="EVENTS" scfile=/scratch/kocevski/761377/ft2_4FGL_J1332.6-1256_daily_bin1003.fits sctable="SC_DATA" outfile=/scratch/kocevski/761377/ltcube_499305601_499564801_4FGL_J1332.6-1256_daily_bin1003.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/761377/ft2_4FGL_J1332.6-1256_daily_bin1003.fits
.....................!
real 24.68
user 15.43
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/761377/ft1_filtered_4FGL_J1332.6-1256_daily_bin1003.fits evtable="EVENTS" scfile=/scratch/kocevski/761377/ft2_4FGL_J1332.6-1256_daily_bin1003.fits sctable="SC_DATA" expcube=/scratch/kocevski/761377/ltcube_499305601_499564801_4FGL_J1332.6-1256_daily_bin1003.fits outfile=/scratch/kocevski/761377/expmap_499305601_499564801_4FGL_J1332.6-1256_daily_bin1003.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/761377/ltcube_499305601_499564801_4FGL_J1332.6-1256_daily_bin1003.fits
.....................!
real 209.64
user 187.19
sys 4.96

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/761377/ft1_filtered_4FGL_J1332.6-1256_daily_bin1003.fits scfile=/scratch/kocevski/761377/ft2_4FGL_J1332.6-1256_daily_bin1003.fits outfile=/scratch/kocevski/761377/cmap_499305601_499564801_4FGL_J1332.6-1256_daily_bin1003.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.58
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/761377/ft1_filtered_4FGL_J1332.6-1256_daily_bin1003.fits scfile=/scratch/kocevski/761377/ft2_4FGL_J1332.6-1256_daily_bin1003.fits outfile=/scratch/kocevski/761377/cmap_HighResolution_499305601_499564801_4FGL_J1332.6-1256_daily_bin1003.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.57
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/761377/ft1_filtered_4FGL_J1332.6-1256_daily_bin1003.fits evtable="EVENTS" scfile=/scratch/kocevski/761377/ft2_4FGL_J1332.6-1256_daily_bin1003.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/761377/Model_4FGL_J1332.6-1256_daily_bin1003.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/761377/ft1_filtered_4FGL_J1332.6-1256_daily_bin1003.fits.....................!
real 69.25
user 63.60
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/761377/ft1_filtered_4FGL_J1332.6-1256_daily_bin1003.fits', '/scratch/kocevski/761377/ft2_4FGL_J1332.6-1256_daily_bin1003.fits', expMap='/scratch/kocevski/761377/expmap_499305601_499564801_4FGL_J1332.6-1256_daily_bin1003.fits', expCube='/scratch/kocevski/761377/ltcube_499305601_499564801_4FGL_J1332.6-1256_daily_bin1003.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/761377/Model_4FGL_J1332.6-1256_daily_bin1003.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/761377/ft1_filtered_4FGL_J1332.6-1256_daily_bin1003.fits
Spacecraft file(s): /scratch/kocevski/761377/ft2_4FGL_J1332.6-1256_daily_bin1003.fits
Exposure map: /scratch/kocevski/761377/expmap_499305601_499564801_4FGL_J1332.6-1256_daily_bin1003.fits
Exposure cube: /scratch/kocevski/761377/ltcube_499305601_499564801_4FGL_J1332.6-1256_daily_bin1003.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/761377/Model_4FGL_J1332.6-1256_daily_bin1003.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) = 8290.510411

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .51014       1.0000         .10000E-03   10000.    
     2 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    41.072       1.0000         .10000E-03   10000.    
     4 'norm      '    5.2016       1.0000         .10000E-03   10000.    
     5 'norm      '    .10134E-03   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 '    .10522E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .59081       1.0000         .10000E-03   10000.    
    11 'norm      '    6.9983       1.0000         .10000E-03   10000.    
    12 'norm      '    2.8969       1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.167       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.310       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.8392       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .11623E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .94412       1.0000         .10000E-03   10000.    
    22 'Prefactor '    98.752       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4341       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0912       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=   8290.494     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2784 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .51019        .25350        .66089E-08   -.12199E-03
   2  norm          .10000E-03    4.2559        .12972E-06** at limit **
   3  Prefactor     41.080        69.090        .17180E-05    .84176E-04
   4  norm          5.2015        2.6258        .28739E-07   -.79679E-05
   5  norm          .10000E-03    9.9297        .22977E-06** at limit **
   6  norm          .10000E-03    3.1637       -.73644E-07** at limit **
   7  Prefactor     .10000E-03    3.1012        .11108E-06** at limit **
   8  Prefactor     .10001E-03    5.4778       -.43180E-06** at limit **
   9  Prefactor     .10000E-03    6.5679       -.12085E-06** at limit **
  10  norm          .59079        1.6664        .10409E-05    .49910E-04
  11  norm          6.9989        3.6664       -.88653E-07   -.65200E-04
  12  norm          2.8974        5.3163        .51546E-06    .28133E-05
  13  Prefactor     13.164        10.190        .11107E-06   -.56782E-04
  14  Prefactor     18.308        20.493       -.34178E-06   -.95152E-04
  15  norm          .10000E-03    18.590        .66632E-06** at limit **
  16  Prefactor     1.8396        8.2353        .15693E-05   -.12364E-04
  17  norm          .10000E-03    2.2644        .42951E-07** at limit **
  18  Prefactor     .10000E-03    2.1138        .48528E-08** at limit **
  19  Prefactor     .10000E-03    9.1349        .75806E-06** at limit **
  20  norm          .10002E-03    4.3258       -.14491E-05** at limit **
  21  norm          .94567        2.2947        .89684E-06    .10035E-03
  22  Prefactor     98.739        49.814       -.15469E-05   -.36879E-03
  23  Normalizat    1.4340        .23699       -.13710E-05    .56219E-04
  24  Prefactor     1.0912        .12284        .64867E-07   -.64396E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.510188
  norm       = 0.0001
  Prefactor  = 41.0804
  norm       = 5.20146
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 0.590793
  norm       = 6.99889
  norm       = 2.89736
  Prefactor  = 13.1638
  Prefactor  = 18.3078
  norm       = 0.0001
  Prefactor  = 1.83959
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100017
  norm       = 0.945667
  Prefactor  = 98.7389
  Normalizat = 1.43405
  Prefactor  = 1.09124
 **********
 **   18 **HESSE 
 **********

 FCN=   8290.494     FROM HESSE     STATUS=OK           399 CALLS     3183 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .51019        .25102        .30950E-04   -1.5565    
   2  norm          .10000E-03    4.3161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     41.080        69.699        .62548E-04   -1.4425    
   4  norm          5.2015        2.6280        .10175E-03   -1.5252    
   5  norm          .10000E-03    10.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.1667        .15821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.1109        .15664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    25.029        .39590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.5816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .59079        1.6984        .18512E-03   -1.5554    
  11  norm          6.9989        3.6530        .11620E-03   -1.5179    
  12  norm          2.8974        5.3028        .23875E-03   -1.5368    
  13  Prefactor     13.164        10.077        .55194E-03   -1.4982    
  14  Prefactor     18.308        20.523        .93600E-04   -1.4852    
  15  norm          .10000E-03    18.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.8396        8.1635        .30761E-03   -1.5437    
  17  norm          .10000E-03    2.3032        .13378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.1309        .12915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.2797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10002E-03    10.787        .33039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .94567        2.3153        .20830E-03   -1.5513    
  22  Prefactor     98.739        52.510        .40453E-04   -1.3717    
  23  Normalizat    1.4340        .26422        .33480E-03   -.79649    
  24  Prefactor     1.0912        .14059        .20780E-03   -.89747    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40607e-09
Minuit parameter uncertainties:
  1  0.251019
  2  9.5279e-06
  3  69.8376
  4  2.62807
  5  8.65416e-06
  6  8.8064e-06
  7  1.10319e-05
  8  0.000775707
  9  1.58555e-05
  10  1.69851
  11  3.65314
  12  5.30366
  13  10.0779
  14  20.5312
  15  0.000174763
  16  7.75206
  17  1.56011e-06
  18  8.2435e-06
  19  0.000144357
  20  0.000859361
  21  2.31549
  22  52.5345
  23  0.264477
  24  0.140635
Done.

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

Extracting fit parameters...

4FGL J1332.6-1256
   Spectrum: LogParabola
280         norm:  6.999e+00  3.653e+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:  1.091e+00  1.406e-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:  1.434e+00  2.645e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.71
Ra Dec: 203.154 -12.944
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 8.21e-08 +/- 4.28e-08
Energy Flux (Fixed Index): 2.86e-05 +/- 1.49e-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) = 8290.3036612
delta logL = 0.190312259174

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8290.28504987
delta logL = 0.208923586073

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.7751       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9871       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4664       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0830       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.

 FCN=   8290.285     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      205 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.7776        96.804        .35952E-02   -.59070E-04
   2  alpha         1.9868        2.8573        .42303        .12477E-04
   3  Normalizat    1.4665        .21473        .74980E-01    .44680E-06
   4  Prefactor     1.0829        .63005E-01    .38272E-01   -.27826E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.77762
  alpha      = 1.98678
  Normalizat = 1.46652
  Prefactor  = 1.08293
 **********
 **   18 **HESSE 
 **********

 FCN=   8290.285     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.7776        4.2467        .13452E-03   -1.5150    
   2  alpha         1.9868        .66412        .16283E-01   -.20676    
   3  Normalizat    1.4665        .25301        .33180E-03   -.78723    
   4  Prefactor     1.0829        .13817        .20853E-03   -.90014    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30623e-12
Minuit parameter uncertainties:
  1  4.24682
  2  0.672562
  3  0.253231
  4  0.138218
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/761377': 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) = 8290.28504947
delta logL = 0.208923985838

Extracting fit parameters...

4FGL J1332.6-1256
   Spectrum: LogParabola
280         norm:  7.778e+00  4.247e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  1.987e+00  6.726e-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:  1.083e+00  1.382e-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:  1.467e+00  2.532e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.12
Ra Dec: 203.154 -12.944
Photon Index (Free Index): 1.99 +/- 0.67
Photon Flux (Free Index): 5.30e-08 +/- 5.01e-08
Energy Flux (Free Index): 3.16e-05 +/- 1.95e-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/761377/cmap_HighResolution_499305601_499564801_4FGL_J1332.6-1256_daily_bin1003.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.21e-08', energy_flux2='3.16e-05', photon_flux_error='4.28e-08', dlogl='2.09e-01', energy_flux='2.86e-05', photon_flux2='5.30e-08', job_status='DONE', time_completed='2021-09-08 03:02:01.395986', photon_index_error2='0.67', photon_index2='1.99', ts='13.71', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='1.95e-05', EG='1.43', time_epoch_completed='1631095321.4', return_code='0', job_id='761377', GAL2='1.08', EG2='1.47', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='5.01e-08', ts2='14.12', photon_index='2.40' WHERE bin_id='1003' AND source_name='4FGL J1332.6-1256' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:02:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 761377: <4FGL_J1332.6-1256_daily_bin1003> in cluster <slac> Done

Job <4FGL_J1332.6-1256_daily_bin1003> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 02:46:13 2021
Job was executed on host(s) <bullet0295>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 02:46:19 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:46:19 2021
Terminated at Wed Sep  8 03:02:02 2021
Results reported at Wed Sep  8 03:02:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.6-1256_daily_bin1003 203.154 -12.9436 499305601 499564801 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 :                                   707.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             254.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            949 sec.

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

