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


Performing analysis on: 4FGL_J1332.6-1256_daily_bin1602
RA = 203.154, Dec = -12.9436
tmin = 654566401, tmax = 654825601
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='856484', job_status='RUN', time_executed='2021-10-02 00:04:49.061334', time_epoch_executed='1633158289.06' WHERE source_name='4FGL J1332.6-1256' and cadence='daily' and bin_id='1602'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/856484

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/856484/ft1_4FGL_J1332.6-1256_daily_bin1602.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/856484/ft2_4FGL_J1332.6-1256_daily_bin1602.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/856484/ft1_4FGL_J1332.6-1256_daily_bin1602.fits outfile=/scratch/kocevski/856484/ft1_filteredMKT_4FGL_J1332.6-1256_daily_bin1602.fits ra=203.154 dec=-12.9436 rad=12.0 tmin=654566401.0 tmax=654825601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.05
user 4.74
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/856484/ft1_filtered_4FGL_J1332.6-1256_daily_bin1602.fits" evtable="EVENTS" scfile=/scratch/kocevski/856484/ft2_4FGL_J1332.6-1256_daily_bin1602.fits sctable="SC_DATA" outfile=/scratch/kocevski/856484/ltcube_654566401_654825601_4FGL_J1332.6-1256_daily_bin1602.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/856484/ft2_4FGL_J1332.6-1256_daily_bin1602.fits
.....................!
real 14.31
user 13.58
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/856484/ft1_filtered_4FGL_J1332.6-1256_daily_bin1602.fits evtable="EVENTS" scfile=/scratch/kocevski/856484/ft2_4FGL_J1332.6-1256_daily_bin1602.fits sctable="SC_DATA" expcube=/scratch/kocevski/856484/ltcube_654566401_654825601_4FGL_J1332.6-1256_daily_bin1602.fits outfile=/scratch/kocevski/856484/expmap_654566401_654825601_4FGL_J1332.6-1256_daily_bin1602.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/856484/ltcube_654566401_654825601_4FGL_J1332.6-1256_daily_bin1602.fits
.....................!
real 189.38
user 184.82
sys 4.23

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/856484/ft1_filtered_4FGL_J1332.6-1256_daily_bin1602.fits scfile=/scratch/kocevski/856484/ft2_4FGL_J1332.6-1256_daily_bin1602.fits outfile=/scratch/kocevski/856484/cmap_654566401_654825601_4FGL_J1332.6-1256_daily_bin1602.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.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/856484/ft1_filtered_4FGL_J1332.6-1256_daily_bin1602.fits scfile=/scratch/kocevski/856484/ft2_4FGL_J1332.6-1256_daily_bin1602.fits outfile=/scratch/kocevski/856484/cmap_HighResolution_654566401_654825601_4FGL_J1332.6-1256_daily_bin1602.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.59
user 0.42
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3464       1.0000         .10000E-03   10000.    
     2 'norm      '    1.0801       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10958E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    103.48       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .26563E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.481       1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.582       1.0000         .10000E-03   10000.    
    10 'norm      '    1.5484       1.0000         .10000E-03   10000.    
    11 'norm      '    .10089E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.8320       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    22.643       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.226       1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    6.9006       1.0000         .10000E-03   10000.    
    22 'Prefactor '    28.095       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .97765       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0047       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=   9167.287     FROM MIGRAD    STATUS=CONVERGED    554 CALLS     2754 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3463        .54911        .48302E-02   -.83885E-03
   2  norm          1.0807        3.0692        .57357E-01    .12649E-02
   3  Prefactor     .10000E-03    25.723        .90712E-02** at limit **
   4  norm          .10000E-03    1.2231        .37805E-01** at limit **
   5  norm          103.47        20.824        .98820E-03    .12439E-02
   6  norm          .10000E-03    3.1986        .90712E-02** at limit **
   7  Prefactor     .10001E-03    4.4341        .91551E-01** at limit **
   8  Prefactor     15.489        9.1425        .25449E-02   -.99458E-03
   9  Prefactor     18.596        14.406        .23228E-02    .13914E-02
  10  norm          1.5480        1.2693        .85593E-02    .86147E-03
  11  norm          .10000E-03    1.5611        .90712E-02** at limit **
  12  norm          6.8312        5.9086        .38375E-02   -.68897E-03
  13  Prefactor     .10000E-03    4.5374        .90712E-02** at limit **
  14  Prefactor     .10000E-03    10.878        .90712E-02** at limit **
  15  norm          .10000E-03    8.4521        .90712E-02** at limit **
  16  Prefactor     .10000E-03    4.4106        .90712E-02** at limit **
  17  norm          22.642        6.7363        .21044E-02   -.10605E-03
  18  Prefactor     .10000E-03    2.2034        .90712E-02** at limit **
  19  Prefactor     11.225        30.862        .29893E-02    .42910E-03
  20  norm          .10000E-03    2.7517        .90712E-02** at limit **
  21  norm          6.8996        2.8517        .38182E-02    .15616E-03
  22  Prefactor     28.090        23.527        .18896E-02    .13595E-02
  23  Normalizat    .97815        .21899        .85681E-01    .11863E-04
  24  Prefactor     1.0045        .11348        .44263E-01    .46628E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.3463
  norm       = 1.08072
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 103.472
  norm       = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 15.4886
  Prefactor  = 18.5963
  norm       = 1.54797
  norm       = 0.0001
  norm       = 6.8312
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 22.6424
  Prefactor  = 0.0001
  Prefactor  = 11.2253
  norm       = 0.0001
  norm       = 6.89959
  Prefactor  = 28.0904
  Normalizat = 0.978145
  Prefactor  = 1.0045
 **********
 **   18 **HESSE 
 **********

 FCN=   9167.287     FROM HESSE     STATUS=OK           397 CALLS     3151 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3463        .55038        .24258E-04   -1.5291    
   2  norm          1.0807        2.7391        .27454E-02   -1.5500    
   3  Prefactor     .10000E-03    25.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.4428        .20503E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          103.47        20.831        .39528E-04   -1.3670    
   6  norm          .10000E-03    3.1997        .16724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    65.311        .38481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.489        9.1214        .10180E-03   -1.4921    
   9  Prefactor     18.596        14.315        .92912E-04   -1.4845    
  10  norm          1.5480        1.2555        .93556E-04   -1.5459    
  11  norm          .10000E-03    1.5695        .11625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.8312        5.8925        .15350E-03   -1.5185    
  13  Prefactor     .10000E-03    4.5545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    8.4523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.4415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          22.642        6.7354        .84177E-04   -1.4756    
  18  Prefactor     .10000E-03    2.2434        .13868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.225        30.846        .11957E-03   -1.5038    
  20  norm          .10000E-03    2.7908        .15506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.8996        2.8531        .99495E-04   -1.5183    
  22  Prefactor     28.090        23.527        .75584E-04   -1.4647    
  23  Normalizat    .97815        .25364        .37936E-03   -.93766    
  24  Prefactor     1.0045        .13194        .20207E-03   -.92580    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84025e-08
Minuit parameter uncertainties:
  1  0.550376
  2  2.73944
  3  1.46381e-05
  4  1.60872e-06
  5  20.8322
  6  1.57853e-05
  7  0.0019531
  8  9.12223
  9  14.3174
  10  1.25556
  11  6.01468e-06
  12  5.89301
  13  2.4069e-05
  14  5.3746e-05
  15  6.86444e-05
  16  5.67101e-05
  17  6.73558
  18  1.3142e-05
  19  30.89
  20  2.62665e-05
  21  2.85312
  22  23.5351
  23  0.253957
  24  0.131982
Done.

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

Extracting fit parameters...

4FGL J1332.6-1256
   Spectrum: LogParabola
280         norm:  1.000e-04  6.015e-06  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.004e+00  1.320e-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:  9.781e-01  2.540e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 203.154 -12.944
Photon Flux Upper Limit: 7.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.47e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/856484/likelihoodResults_654566401_654825601_4FGL_J1332.6-1256_daily_bin1602.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) = 9167.28957019
delta logL = -0.00303606155649

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9167.28653407
delta logL = 4.96293068863e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3961       1.0000          .0000       5.0000    
     3 'Normalizat'    .97815       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0045       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=   9167.287     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      233 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    79.213        .11647E-01** at limit **
   2  alpha         2.0788        3.2707        .16479       -.13067E-06
   3  Normalizat    .97815        .39638E-01    .37936E-03    .15164E-03
   4  Prefactor     1.0045        .21518E-01    .20207E-03    .32651E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.07882
  Normalizat = 0.978146
  Prefactor  = 1.0045
 **********
 **   18 **HESSE 
 **********

 FCN=   9167.287     FROM HESSE     STATUS=OK            23 CALLS      256 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.6423        .11897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0788        3.3447        .65915E-02   -.16928    
   3  Normalizat    .97815        .23846        .15174E-04   -.93766    
   4  Prefactor     1.0045        .12957        .40415E-04   -.92580    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43761e-10
Minuit parameter uncertainties:
  1  5.61379e-06
  2  184.073
  3  0.23872
  4  0.129607
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/856484': 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) = 9167.28653273
delta logL = 1.39077019412e-06

Extracting fit parameters...

4FGL J1332.6-1256
   Spectrum: LogParabola
280         norm:  1.000e-04  5.614e-06  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.079e+00  1.841e+02  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.004e+00  1.296e-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:  9.781e-01  2.387e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/856484/cmap_HighResolution_654566401_654825601_4FGL_J1332.6-1256_daily_bin1602.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.47e-05', job_status='DONE', photon_flux_upper_limit='7.07e-08', time_completed='2021-10-02 00:18:41.353866', job_id='856484', GAL2='1.00', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1633159121.35', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.39e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1602' AND source_name='4FGL J1332.6-1256' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Oct  2 00:18:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 856484: <4FGL_J1332.6-1256_daily_bin1602> in cluster <slac> Done

Job <4FGL_J1332.6-1256_daily_bin1602> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Oct  2 00:02:49 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Oct  2 00:02:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Oct  2 00:02:50 2021
Terminated at Sat Oct  2 00:18:42 2021
Results reported at Sat Oct  2 00:18:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.6-1256_daily_bin1602 203.154 -12.9436 654566401 654825601 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 :                                   824.44 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            953 sec.

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

