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


Performing analysis on: 4FGL_J1332.6-1256_daily_bin615
RA = 203.154, Dec = -12.9436
tmin = 398736001, tmax = 398995201
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='759160', job_status='RUN', time_executed='2021-09-08 02:44:05.151507', time_epoch_executed='1631094245.15' WHERE source_name='4FGL J1332.6-1256' and cadence='daily' and bin_id='615'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/759160

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/759160/ft1_4FGL_J1332.6-1256_daily_bin615.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/759160/ft2_4FGL_J1332.6-1256_daily_bin615.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/759160/ft1_4FGL_J1332.6-1256_daily_bin615.fits outfile=/scratch/kocevski/759160/ft1_filteredMKT_4FGL_J1332.6-1256_daily_bin615.fits ra=203.154 dec=-12.9436 rad=12.0 tmin=398736001.0 tmax=398995201.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 6.11
user 5.77
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/759160/ft1_filtered_4FGL_J1332.6-1256_daily_bin615.fits" evtable="EVENTS" scfile=/scratch/kocevski/759160/ft2_4FGL_J1332.6-1256_daily_bin615.fits sctable="SC_DATA" outfile=/scratch/kocevski/759160/ltcube_398736001_398995201_4FGL_J1332.6-1256_daily_bin615.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/759160/ft2_4FGL_J1332.6-1256_daily_bin615.fits
.....................!
real 14.02
user 13.30
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/759160/ft1_filtered_4FGL_J1332.6-1256_daily_bin615.fits evtable="EVENTS" scfile=/scratch/kocevski/759160/ft2_4FGL_J1332.6-1256_daily_bin615.fits sctable="SC_DATA" expcube=/scratch/kocevski/759160/ltcube_398736001_398995201_4FGL_J1332.6-1256_daily_bin615.fits outfile=/scratch/kocevski/759160/expmap_398736001_398995201_4FGL_J1332.6-1256_daily_bin615.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/759160/ltcube_398736001_398995201_4FGL_J1332.6-1256_daily_bin615.fits
.....................!
real 193.32
user 187.49
sys 5.20

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/759160/ft1_filtered_4FGL_J1332.6-1256_daily_bin615.fits scfile=/scratch/kocevski/759160/ft2_4FGL_J1332.6-1256_daily_bin615.fits outfile=/scratch/kocevski/759160/cmap_398736001_398995201_4FGL_J1332.6-1256_daily_bin615.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 1.03
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/759160/ft1_filtered_4FGL_J1332.6-1256_daily_bin615.fits scfile=/scratch/kocevski/759160/ft2_4FGL_J1332.6-1256_daily_bin615.fits outfile=/scratch/kocevski/759160/cmap_HighResolution_398736001_398995201_4FGL_J1332.6-1256_daily_bin615.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.82
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/759160/ft1_filtered_4FGL_J1332.6-1256_daily_bin615.fits evtable="EVENTS" scfile=/scratch/kocevski/759160/ft2_4FGL_J1332.6-1256_daily_bin615.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/759160/Model_4FGL_J1332.6-1256_daily_bin615.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/759160/ft1_filtered_4FGL_J1332.6-1256_daily_bin615.fits.....................!
real 61.33
user 52.96
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .81478       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    51.202       1.0000         .10000E-03   10000.    
     4 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .11043E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.494       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13574       1.0000         .10000E-03   10000.    
    10 'norm      '    6.4837       1.0000         .10000E-03   10000.    
    11 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    9.6643       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.7656       1.0000         .10000E-03   10000.    
    17 'norm      '    3.9923       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.8062       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    18.335       1.0000         .10000E-03   10000.    
    21 'norm      '    4.1453       1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.157       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .87286       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99581       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=   6604.134     FROM MIGRAD    STATUS=CONVERGED    551 CALLS     2733 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .81473        .26097        .11233E-06    .23096E-03
   2  norm          .10000E-03    2.4481       -.15620E-07** at limit **
   3  Prefactor     51.183        71.817       -.23478E-04    .12836E-05
   4  norm          .10000E-03    1.5610        .13294E-07** at limit **
   5  norm          .10000E-03    13.984       -.58512E-07** at limit **
   6  norm          .10000E-03    2.9534        .49034E-07** at limit **
   7  Prefactor     14.501        8.5185       -.12312E-05    .19473E-03
   8  Prefactor     .10000E-03    4.2147        .89879E-07** at limit **
   9  Prefactor     .20509E-01    11.892       -.22556E-05   -.39658E-05
  10  norm          6.4831        1.9571        .30392E-07    .60618E-04
  11  norm          .10000E-03    1.7227       -.21148E-06** at limit **
  12  norm          9.6863        7.3477        .22695E-05    .44960E-03
  13  Prefactor     .10000E-03    8.5920        .71712E-06** at limit **
  14  Prefactor     .10000E-03    7.3833       -.35250E-06** at limit **
  15  norm          .10000E-03    15.033        .31018E-05** at limit **
  16  Prefactor     1.7629        7.9296       -.33674E-05   -.53472E-03
  17  norm          3.9929        5.5193        .23066E-05   -.37939E-03
  18  Prefactor     4.8060        4.1678        .88597E-06   -.85911E-04
  19  Prefactor     .10000E-03    14.481       -.21575E-05** at limit **
  20  norm          18.334        7.9385        .58564E-07    .39097E-04
  21  norm          4.1447        2.5619       -.58480E-07   -.11540E-03
  22  Prefactor     21.155        22.984        .16782E-05   -.92758E-06
  23  Normalizat    .87344        .21524        .61334E-06    .14237E-03
  24  Prefactor     .99559        .11582       -.58291E-06    .33800E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.814726
  norm       = 0.0001
  Prefactor  = 51.1828
  norm       = 0.0001
  norm       = 0.000100002
  norm       = 0.0001
  Prefactor  = 14.5009
  Prefactor  = 0.0001
  Prefactor  = 0.0205091
  norm       = 6.48314
  norm       = 0.0001
  norm       = 9.68628
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.76287
  norm       = 3.99287
  Prefactor  = 4.806
  Prefactor  = 0.0001
  norm       = 18.3341
  norm       = 4.14466
  Prefactor  = 21.1552
  Normalizat = 0.873435
  Prefactor  = 0.995591
 **********
 **   18 **HESSE 
 **********

 FCN=   6604.134     FROM HESSE     STATUS=OK           405 CALLS     3138 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .81473        .26148        .22426E-04   -1.5527    
   2  norm          .10000E-03    2.4566        .12416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     51.183        71.481        .56047E-04   -1.4276    
   4  norm          .10000E-03    1.6369        .19815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    14.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.9541        .13640E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.501        8.5078        .10521E-03   -1.4946    
   8  Prefactor     .10000E-03    4.2907        .16288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .20509E-01    19.718        .72007E-01   -1.5679    
  10  norm          6.4831        1.9622        .59645E-04   -1.5199    
  11  norm          .10000E-03    1.7331        .10363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.6863        7.4810        .12891E-03   -1.5085    
  13  Prefactor     .10000E-03    8.6336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.3897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    15.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.7629        8.2885        .31524E-03   -1.5442    
  17  norm          3.9929        5.4565        .20185E-03   -1.5308    
  18  Prefactor     4.8060        4.1526        .14562E-03   -1.5269    
  19  Prefactor     .10000E-03    14.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          18.334        7.9346        .93535E-04   -1.4851    
  21  norm          4.1447        2.5614        .98992E-04   -1.5301    
  22  Prefactor     21.155        22.969        .87079E-04   -1.4788    
  23  Normalizat    .87344        .24872        .34454E-03   -.97400    
  24  Prefactor     .99559        .13415        .18148E-03   -.92877    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48597e-09
Minuit parameter uncertainties:
  1  0.261479
  2  1.12281e-06
  3  71.6008
  4  2.38412e-06
  5  0.000343413
  6  2.1068e-06
  7  8.50852
  8  6.97702e-06
  9  1.26915
  10  1.96218
  11  1.92624e-05
  12  7.48171
  13  3.88142e-05
  14  6.23205e-06
  15  3.89568e-07
  16  7.64653
  17  5.45716
  18  4.15281
  19  2.40796e-05
  20  7.93502
  21  2.56145
  22  22.9788
  23  0.249049
  24  0.134194
Done.

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

Extracting fit parameters...

4FGL J1332.6-1256
   Spectrum: LogParabola
280         norm:  1.000e-04  1.926e-05  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.956e-01  1.342e-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:  8.734e-01  2.490e-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.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.60e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/759160/likelihoodResults_398736001_398995201_4FGL_J1332.6-1256_daily_bin615.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) = 6604.13713918
delta logL = -0.00275064301786

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6604.13438843
delta logL = 1.03258571471e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4121       1.0000          .0000       5.0000    
     3 'Normalizat'    .87342       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99560       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=   6604.134     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      198 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.5827        .90712E-02** at limit **
   2  alpha         2.4218        3.6502        .41184       -.29147E-04
   3  Normalizat    .87344        .20216        .77838E-01   -.23811E-04
   4  Prefactor     .99559        .11368        .46212E-01   -.45815E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.42181
  Normalizat = 0.873435
  Prefactor  = 0.995591
 **********
 **   18 **HESSE 
 **********

 FCN=   6604.134     FROM HESSE     STATUS=OK            31 CALLS      229 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.7792        .10396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4218        3.5396        .50000       -.31280E-01
   3  Normalizat    .87344        .23153        .34454E-03   -.97400    
   4  Prefactor     .99559        .13051        .18148E-03   -.92877    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.72925e-10
Minuit parameter uncertainties:
  1  6.80697e-07
  2  2.52324
  3  0.231788
  4  0.130551
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/759160': 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) = 6604.13438832
delta logL = 2.18826244236e-07

Extracting fit parameters...

4FGL J1332.6-1256
   Spectrum: LogParabola
280         norm:  1.000e-04  6.807e-07  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.422e+00  2.523e+00  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.956e-01  1.306e-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:  8.734e-01  2.318e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/759160/cmap_HighResolution_398736001_398995201_4FGL_J1332.6-1256_daily_bin615.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.60e-05', job_status='DONE', photon_flux_upper_limit='7.46e-08', time_completed='2021-09-08 02:55:54.622084', job_id='759160', GAL2='1.00', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1631094954.62', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='2.19e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='615' AND source_name='4FGL J1332.6-1256' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 02:55:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 759160: <4FGL_J1332.6-1256_daily_bin615> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.6-1256_daily_bin615 203.154 -12.9436 398736001 398995201 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 :                                   695.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            933 sec.

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

