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


Performing analysis on: 4FGL_J1332.6-1256_daily_bin1029
RA = 203.154, Dec = -12.9436
tmin = 506044801, tmax = 506304001
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='761419', job_status='RUN', time_executed='2021-09-08 02:48:08.078820', time_epoch_executed='1631094488.08' WHERE source_name='4FGL J1332.6-1256' and cadence='daily' and bin_id='1029'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/761419

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/761419/ft1_4FGL_J1332.6-1256_daily_bin1029.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/761419/ft2_4FGL_J1332.6-1256_daily_bin1029.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/761419/ft1_4FGL_J1332.6-1256_daily_bin1029.fits outfile=/scratch/kocevski/761419/ft1_filteredMKT_4FGL_J1332.6-1256_daily_bin1029.fits ra=203.154 dec=-12.9436 rad=12.0 tmin=506044801.0 tmax=506304001.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 4.56
user 4.08
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/761419/ft1_filtered_4FGL_J1332.6-1256_daily_bin1029.fits" evtable="EVENTS" scfile=/scratch/kocevski/761419/ft2_4FGL_J1332.6-1256_daily_bin1029.fits sctable="SC_DATA" outfile=/scratch/kocevski/761419/ltcube_506044801_506304001_4FGL_J1332.6-1256_daily_bin1029.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/761419/ft2_4FGL_J1332.6-1256_daily_bin1029.fits
.....................!
real 14.78
user 14.22
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/761419/ft1_filtered_4FGL_J1332.6-1256_daily_bin1029.fits evtable="EVENTS" scfile=/scratch/kocevski/761419/ft2_4FGL_J1332.6-1256_daily_bin1029.fits sctable="SC_DATA" expcube=/scratch/kocevski/761419/ltcube_506044801_506304001_4FGL_J1332.6-1256_daily_bin1029.fits outfile=/scratch/kocevski/761419/expmap_506044801_506304001_4FGL_J1332.6-1256_daily_bin1029.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/761419/ltcube_506044801_506304001_4FGL_J1332.6-1256_daily_bin1029.fits
.....................!
real 193.27
user 187.76
sys 4.92

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/761419/ft1_filtered_4FGL_J1332.6-1256_daily_bin1029.fits scfile=/scratch/kocevski/761419/ft2_4FGL_J1332.6-1256_daily_bin1029.fits outfile=/scratch/kocevski/761419/cmap_506044801_506304001_4FGL_J1332.6-1256_daily_bin1029.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.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/761419/ft1_filtered_4FGL_J1332.6-1256_daily_bin1029.fits scfile=/scratch/kocevski/761419/ft2_4FGL_J1332.6-1256_daily_bin1029.fits outfile=/scratch/kocevski/761419/cmap_HighResolution_506044801_506304001_4FGL_J1332.6-1256_daily_bin1029.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.56
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/761419/ft1_filtered_4FGL_J1332.6-1256_daily_bin1029.fits evtable="EVENTS" scfile=/scratch/kocevski/761419/ft2_4FGL_J1332.6-1256_daily_bin1029.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/761419/Model_4FGL_J1332.6-1256_daily_bin1029.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/761419/ft1_filtered_4FGL_J1332.6-1256_daily_bin1029.fits.....................!
real 57.40
user 56.08
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5854       1.0000         .10000E-03   10000.    
     2 'norm      '    3.3115       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .97989E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    20.241       1.0000         .10000E-03   10000.    
     6 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    70.081       1.0000         .10000E-03   10000.    
    10 'norm      '    1.1500       1.0000         .10000E-03   10000.    
    11 'norm      '    .63978       1.0000         .10000E-03   10000.    
    12 'norm      '    .80540       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.269       1.0000         .10000E-03   10000.    
    17 'norm      '    3.6847       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .33046E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4671       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .96075       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=   6669.427     FROM MIGRAD    STATUS=CONVERGED    560 CALLS     2824 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5854        .54585        .85749E-08    .41462E-03
   2  norm          3.3107        9.8601       -.74814E-06   -.44757E-04
   3  Prefactor     .10000E-03    56.079       -.20743E-05** at limit **
   4  norm          .90697E-01    1.6029        .81372E-07   -.10057E-03
   5  norm          20.241        13.993        .49550E-07    .11169E-04
   6  norm          .10000E-03    6.2529       -.16866E-06** at limit **
   7  Prefactor     .10000E-03    3.0778       -.33622E-07** at limit **
   8  Prefactor     .10000E-03    3.2537       -.13166E-06** at limit **
   9  Prefactor     70.028        43.291       -.43124E-06    .54029E-04
  10  norm          1.1500        1.7388       -.39366E-06   -.69750E-03
  11  norm          .64669        21.242        .14411E-06    .73413E-04
  12  norm          .80933        14.243        .42482E-05   -.38528E-03
  13  Prefactor     .10000E-03    7.0247       -.21060E-06** at limit **
  14  Prefactor     .10000E-03    41.411       -.88457E-06** at limit **
  15  norm          .10000E-03    16.168       -.16677E-06** at limit **
  16  Prefactor     10.270        15.771       -.11896E-07    .35304E-04
  17  norm          3.6845        4.0529       -.42490E-07    .49950E-04
  18  Prefactor     .10000E-03    1.7402       -.18241E-06** at limit **
  19  Prefactor     .10000E-03    40.114        .18441E-06** at limit **
  20  norm          .10000E-03    9.4997       -.99763E-06** at limit **
  21  norm          .10000E-03    .82397       -.11742E-06** at limit **
  22  Prefactor     .10003E-03    161.89        .47307E-05** at limit **
  23  Normalizat    1.4669        .29090       -.25926E-05    .15624E-03
  24  Prefactor     .96085        .14249        .26696E-05    .45605E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.58539
  norm       = 3.3107
  Prefactor  = 0.000100005
  norm       = 0.0906968
  norm       = 20.2413
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 70.0276
  norm       = 1.14999
  norm       = 0.646689
  norm       = 0.809328
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.2698
  norm       = 3.68451
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100026
  Normalizat = 1.46693
  Prefactor  = 0.96085
 **********
 **   18 **HESSE 
 **********

 FCN=   6669.427     FROM HESSE     STATUS=OK           397 CALLS     3221 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5854        .54724        .22664E-04   -1.5329    
   2  norm          3.3107        9.9043        .22246E-03   -1.5344    
   3  Prefactor     .10000E-03    56.809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .90697E-01    17.286        .19793E-02   -1.5648    
   5  norm          20.241        14.015        .89026E-04   -1.4808    
   6  norm          .10000E-03    6.2803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.0810        .13994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.2601        .14389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     70.028        47.537        .47951E-04   -1.4032    
  10  norm          1.1500        1.7496        .12733E-03   -1.5493    
  11  norm          .64669        27.898        .25319E-02   -1.5547    
  12  norm          .80933        24.732        .33256E-02   -1.5528    
  13  Prefactor     .10000E-03    7.0365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    41.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    16.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.270        15.802        .12504E-03   -1.5067    
  17  norm          3.6845        4.0511        .16674E-03   -1.5324    
  18  Prefactor     .10000E-03    1.7501        .10533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    40.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    9.9525        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .82991        .72471E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10003E-03    170.15        .42697E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.4669        .32448        .35036E-03   -.78712    
  24  Prefactor     .96085        .16424        .22004E-03   -.94046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30697e-08
Minuit parameter uncertainties:
  1  0.547244
  2  9.90924
  3  0.00102287
  4  2.50357
  5  14.0168
  6  1.78088e-05
  7  3.22428e-07
  8  7.26439e-06
  9  47.563
  10  1.74973
  11  8.49852
  12  8.95141
  13  2.77268e-05
  14  0.000280113
  15  3.54677e-05
  16  15.808
  17  4.05137
  18  1.2169e-05
  19  0.000135716
  20  0.000142022
  21  3.68301e-06
  22  0.00420043
  23  0.324937
  24  0.16433
Done.

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

Extracting fit parameters...

4FGL J1332.6-1256
   Spectrum: LogParabola
280         norm:  6.467e-01  8.499e+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:  9.609e-01  1.643e-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  3.249e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.02
Ra Dec: 203.154 -12.944
Photon Flux Upper Limit: 1.49e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.21e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/761419/likelihoodResults_506044801_506304001_4FGL_J1332.6-1256_daily_bin1029.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): 102
logL (Free Index) = 6669.33884133
delta logL = 0.0879499158136

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6669.29010829
delta logL = 0.136682956802

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .45315E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.9999       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4174       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97733       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=   6669.290     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      343 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .45212E-01    .10418        .28561E-03    .20863E-01
   2  alpha         5.0000        4.5218        .50000    ** at limit **
   3  Normalizat    1.4165        .31919        .35519E-03   -.13891E-04
   4  Prefactor     .97770        .16138        .21833E-03   -.19006E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0452115
  alpha      = 5
  Normalizat = 1.41646
  Prefactor  = 0.977704
 **********
 **   18 **HESSE 
 **********

 FCN=   6669.290     FROM HESSE     STATUS=OK            31 CALLS      374 TOTAL
                     EDM=   .91E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .45212E-01    .97490E-01    .57123E-04   -1.5665    
   2  alpha         5.0000        4.3791        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.4165        .32031        .14208E-04   -.80154    
   4  Prefactor     .97770        .16170        .87331E-05   -.93476    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.07767e-12
Minuit parameter uncertainties:
  1  0.09749
  2  3.78181e-05
  3  0.320762
  4  0.161782
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/761419': 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) = 6669.29009679
delta logL = 0.136694455483

Extracting fit parameters...

4FGL J1332.6-1256
   Spectrum: LogParabola
280         norm:  4.521e-02  9.749e-02  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  5.000e+00  3.782e-05  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:  9.777e-01  1.618e-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.416e+00  3.208e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
Ra Dec: 203.154 -12.944

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/761419/cmap_HighResolution_506044801_506304001_4FGL_J1332.6-1256_daily_bin1029.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.21e-05', job_status='DONE', photon_flux_upper_limit='1.49e-07', time_completed='2021-09-08 02:59:55.473738', job_id='761419', GAL2='0.98', fit_tolerance='1e-08', EG2='1.42', EG='1.47', time_epoch_completed='1631095195.47', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.37e-01', ts2='0.33', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1029' AND source_name='4FGL J1332.6-1256' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 02:59:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 761419: <4FGL_J1332.6-1256_daily_bin1029> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.6-1256_daily_bin1029 203.154 -12.9436 506044801 506304001 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 :                                   701.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            819 sec.

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

