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


Performing analysis on: 4FGL_J1332.6-1256_daily_bin616
RA = 203.154, Dec = -12.9436
tmin = 398995201, tmax = 399254401
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='759161', job_status='RUN', time_executed='2021-09-08 02:44:04.890645', time_epoch_executed='1631094244.89' WHERE source_name='4FGL J1332.6-1256' and cadence='daily' and bin_id='616'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/759161

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/759161/ft1_4FGL_J1332.6-1256_daily_bin616.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/759161/ft2_4FGL_J1332.6-1256_daily_bin616.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/759161/ft1_4FGL_J1332.6-1256_daily_bin616.fits outfile=/scratch/kocevski/759161/ft1_filteredMKT_4FGL_J1332.6-1256_daily_bin616.fits ra=203.154 dec=-12.9436 rad=12.0 tmin=398995201.0 tmax=399254401.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.48
user 5.22
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/759161/ft2_4FGL_J1332.6-1256_daily_bin616.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/759161/ft1_filteredMKT_4FGL_J1332.6-1256_daily_bin616.fits evtable="EVENTS" outfile="/scratch/kocevski/759161/ft1_filtered_4FGL_J1332.6-1256_daily_bin616.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.54
user 0.33
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/759161/ft1_filtered_4FGL_J1332.6-1256_daily_bin616.fits" evtable="EVENTS" scfile=/scratch/kocevski/759161/ft2_4FGL_J1332.6-1256_daily_bin616.fits sctable="SC_DATA" outfile=/scratch/kocevski/759161/ltcube_398995201_399254401_4FGL_J1332.6-1256_daily_bin616.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/759161/ft2_4FGL_J1332.6-1256_daily_bin616.fits
.....................!
real 15.29
user 14.90
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/759161/ft1_filtered_4FGL_J1332.6-1256_daily_bin616.fits evtable="EVENTS" scfile=/scratch/kocevski/759161/ft2_4FGL_J1332.6-1256_daily_bin616.fits sctable="SC_DATA" expcube=/scratch/kocevski/759161/ltcube_398995201_399254401_4FGL_J1332.6-1256_daily_bin616.fits outfile=/scratch/kocevski/759161/expmap_398995201_399254401_4FGL_J1332.6-1256_daily_bin616.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/759161/ltcube_398995201_399254401_4FGL_J1332.6-1256_daily_bin616.fits
.....................!
real 190.66
user 186.22
sys 3.78

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/759161/ft1_filtered_4FGL_J1332.6-1256_daily_bin616.fits scfile=/scratch/kocevski/759161/ft2_4FGL_J1332.6-1256_daily_bin616.fits outfile=/scratch/kocevski/759161/cmap_398995201_399254401_4FGL_J1332.6-1256_daily_bin616.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.20
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/759161/ft1_filtered_4FGL_J1332.6-1256_daily_bin616.fits scfile=/scratch/kocevski/759161/ft2_4FGL_J1332.6-1256_daily_bin616.fits outfile=/scratch/kocevski/759161/cmap_HighResolution_398995201_399254401_4FGL_J1332.6-1256_daily_bin616.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.67
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/759161/ft1_filtered_4FGL_J1332.6-1256_daily_bin616.fits evtable="EVENTS" scfile=/scratch/kocevski/759161/ft2_4FGL_J1332.6-1256_daily_bin616.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/759161/Model_4FGL_J1332.6-1256_daily_bin616.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/759161/ft1_filtered_4FGL_J1332.6-1256_daily_bin616.fits....................!
real 51.65
user 50.07
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3904       1.0000         .10000E-03   10000.    
     2 'norm      '    .49659       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .33569       1.0000         .10000E-03   10000.    
     5 'norm      '    12.832       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.9010       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11910E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.0236       1.0000         .10000E-03   10000.    
    11 'norm      '    3.2261       1.0000         .10000E-03   10000.    
    12 'norm      '    1.1102       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.667       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.9767       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.7040       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .96143       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .94266       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=   6368.197     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2336 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3904        .32328        .78236E-08   -.16806E-03
   2  norm          .46219        6.9772       -.30533E-05    .59086E-03
   3  Prefactor     .10001E-03    41.954       -.19006E-05** at limit **
   4  norm          .33532        2.1309        .19585E-05    .94706E-04
   5  norm          12.833        12.249        .20572E-06    .44676E-05
   6  norm          .10000E-03    3.8662        .67552E-07** at limit **
   7  Prefactor     .10000E-03    2.7500        .46779E-07** at limit **
   8  Prefactor     8.9018        7.1068        .18454E-06    .33673E-04
   9  Prefactor     .10001E-03    35.251        .17025E-05** at limit **
  10  norm          2.0238        1.3991        .83168E-07   -.45252E-04
  11  norm          3.2291        3.8526       -.48461E-06   -.50761E-03
  12  norm          1.1087        9.1836        .50163E-05    .33312E-04
  13  Prefactor     .10000E-03    16.657       -.12172E-05** at limit **
  14  Prefactor     16.650        21.488       -.94732E-06   -.41865E-03
  15  norm          .10000E-03    11.361        .54842E-06** at limit **
  16  Prefactor     .10000E-03    4.7116        .18942E-07** at limit **
  17  norm          .10000E-03    1.4671        .22340E-07** at limit **
  18  Prefactor     1.9795        4.7669        .48122E-06   -.13804E-03
  19  Prefactor     .10000E-03    13.917        .12740E-06** at limit **
  20  norm          .10000E-03    4.1841       -.15380E-06** at limit **
  21  norm          1.7042        2.5021        .33471E-06    .23772E-04
  22  Prefactor     .10000E-03    24.167        .90542E-06** at limit **
  23  Normalizat    .96111        .21604       -.14013E-05   -.61292E-04
  24  Prefactor     .94289        .11514       -.34453E-06   -.14050E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.39045
  norm       = 0.462193
  Prefactor  = 0.000100009
  norm       = 0.335323
  norm       = 12.8326
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.90175
  Prefactor  = 0.000100005
  norm       = 2.02378
  norm       = 3.22908
  norm       = 1.10873
  Prefactor  = 0.000100003
  Prefactor  = 16.6502
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.97948
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.7042
  Prefactor  = 0.000100002
  Normalizat = 0.961107
  Prefactor  = 0.942894
 **********
 **   18 **HESSE 
 **********

 FCN=   6368.197     FROM HESSE     STATUS=OK           395 CALLS     2731 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3904        .32382        .21037E-04   -1.5472    
   2  norm          .46219        13.548        .34095E-02   -1.5572    
   3  Prefactor     .10001E-03    42.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .33532        2.2089        .22677E-03   -1.5592    
   5  norm          12.833        12.260        .11182E-03   -1.4991    
   6  norm          .10000E-03    3.8715        .15325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.7560        .12922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.9018        7.1225        .13435E-03   -1.5111    
   9  Prefactor     .10001E-03    35.771        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.0238        1.3933        .75022E-04   -1.5423    
  11  norm          3.2291        3.6754        .14025E-03   -1.5349    
  12  norm          1.1087        9.1575        .40728E-03   -1.5497    
  13  Prefactor     .10000E-03    17.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.650        21.641        .98104E-04   -1.4892    
  15  norm          .10000E-03    11.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.7428        .16912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.4729        .94383E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.9795        4.6961        .24843E-03   -1.5427    
  19  Prefactor     .10000E-03    13.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.2112        .15906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.7042        2.4859        .14724E-03   -1.5447    
  22  Prefactor     .10000E-03    24.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .96111        .25378        .31975E-03   -.94345    
  24  Prefactor     .94289        .13633        .17988E-03   -.94658    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.02271e-09
Minuit parameter uncertainties:
  1  0.323819
  2  5.00537
  3  0.00124379
  4  1.72111
  5  12.2624
  6  9.53081e-06
  7  2.92355e-06
  8  7.12314
  9  0.000870965
  10  1.39329
  11  3.67564
  12  6.37385
  13  0.000429943
  14  21.6512
  15  0.000182853
  16  2.24304e-05
  17  1.59201e-06
  18  4.69696
  19  4.19053e-05
  20  2.47779e-05
  21  2.48607
  22  0.000409679
  23  0.2541
  24  0.13638
Done.

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

Extracting fit parameters...

4FGL J1332.6-1256
   Spectrum: LogParabola
280         norm:  3.229e+00  3.676e+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.429e-01  1.364e-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.611e-01  2.541e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.27
Ra Dec: 203.154 -12.944
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 3.79e-08 +/- 4.31e-08
Energy Flux (Fixed Index): 1.32e-05 +/- 1.50e-05

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

Saving results to:
/scratch/kocevski/759161/likelihoodResults_398995201_399254401_4FGL_J1332.6-1256_daily_bin616.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) = 6368.12249564
delta logL = 0.0742222421713

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6368.11998019
delta logL = 0.0767376942586

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4784       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7137       1.0000          .0000       5.0000    
     3 'Normalizat'    .94941       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94677       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=   6368.120     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      269 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4778        63.570        .64925E-02    .53749E-03
   2  alpha         2.7135        3.7506        .30483        .55309E-04
   3  Normalizat    .94944        .73869E-01    .72659E-01    .22208E-04
   4  Prefactor     .94680        .38894E-01    .45598E-01    .69347E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.47779
  alpha      = 2.71347
  Normalizat = 0.949438
  Prefactor  = 0.946804
 **********
 **   18 **HESSE 
 **********

 FCN=   6368.120     FROM HESSE     STATUS=OK            33 CALLS      302 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4778        3.7313        .11551E-03   -1.5393    
   2  alpha         2.7135        .89444        .14963E-01    .85494E-01
   3  Normalizat    .94944        .24011        .32150E-03   -.94744    
   4  Prefactor     .94680        .13347        .17955E-03   -.94524    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1478e-11
Minuit parameter uncertainties:
  1  3.73169
  2  0.914869
  3  0.240379
  4  0.133519
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/759161': 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) = 6368.11997983
delta logL = 0.0767380478837

Extracting fit parameters...

4FGL J1332.6-1256
   Spectrum: LogParabola
280         norm:  2.478e+00  3.732e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.713e+00  9.149e-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:  9.468e-01  1.335e-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.494e-01  2.404e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.42
Ra Dec: 203.154 -12.944
Photon Index (Free Index): 2.71 +/- 0.91
Photon Flux (Free Index): 4.66e-08 +/- 4.70e-08
Energy Flux (Free Index): 1.24e-05 +/- 1.28e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/759161/cmap_HighResolution_398995201_399254401_4FGL_J1332.6-1256_daily_bin616.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.28e-05', comment='SUCCESS', photon_flux='3.79e-08', energy_flux2='1.24e-05', photon_flux_error='4.31e-08', dlogl='7.67e-02', energy_flux='1.32e-05', photon_flux2='4.66e-08', job_status='DONE', time_completed='2021-09-08 02:55:01.637730', photon_index_error2='0.91', photon_index2='2.71', ts='1.27', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='1.28e-05', EG='0.96', time_epoch_completed='1631094901.64', return_code='0', job_id='759161', GAL2='0.95', EG2='0.95', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='4.70e-08', ts2='1.42', photon_index='2.40' WHERE bin_id='616' AND source_name='4FGL J1332.6-1256' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 02:55:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 759161: <4FGL_J1332.6-1256_daily_bin616> in cluster <slac> Done

Job <4FGL_J1332.6-1256_daily_bin616> 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) <bullet0228>, 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:02 2021
Results reported at Wed Sep  8 02:55:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.6-1256_daily_bin616 203.154 -12.9436 398995201 399254401 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 :                                   651.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            880 sec.

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

