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


Performing analysis on: 4FGL_J1332.6-1256_daily_bin1243
RA = 203.154, Dec = -12.9436
tmin = 561513601, tmax = 561772801
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='763717', job_status='RUN', time_executed='2021-09-08 02:56:14.526493', time_epoch_executed='1631094974.53' WHERE source_name='4FGL J1332.6-1256' and cadence='daily' and bin_id='1243'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/763717

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/763717/ft1_4FGL_J1332.6-1256_daily_bin1243.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/763717/ft2_4FGL_J1332.6-1256_daily_bin1243.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/763717/ft1_4FGL_J1332.6-1256_daily_bin1243.fits outfile=/scratch/kocevski/763717/ft1_filteredMKT_4FGL_J1332.6-1256_daily_bin1243.fits ra=203.154 dec=-12.9436 rad=12.0 tmin=561513601.0 tmax=561772801.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 3.83
user 3.56
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/763717/ft1_filtered_4FGL_J1332.6-1256_daily_bin1243.fits" evtable="EVENTS" scfile=/scratch/kocevski/763717/ft2_4FGL_J1332.6-1256_daily_bin1243.fits sctable="SC_DATA" outfile=/scratch/kocevski/763717/ltcube_561513601_561772801_4FGL_J1332.6-1256_daily_bin1243.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/763717/ft2_4FGL_J1332.6-1256_daily_bin1243.fits
.....................!
real 15.72
user 15.26
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/763717/ft1_filtered_4FGL_J1332.6-1256_daily_bin1243.fits evtable="EVENTS" scfile=/scratch/kocevski/763717/ft2_4FGL_J1332.6-1256_daily_bin1243.fits sctable="SC_DATA" expcube=/scratch/kocevski/763717/ltcube_561513601_561772801_4FGL_J1332.6-1256_daily_bin1243.fits outfile=/scratch/kocevski/763717/expmap_561513601_561772801_4FGL_J1332.6-1256_daily_bin1243.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/763717/ltcube_561513601_561772801_4FGL_J1332.6-1256_daily_bin1243.fits
.....................!
real 192.33
user 186.34
sys 5.57

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/763717/ft1_filtered_4FGL_J1332.6-1256_daily_bin1243.fits scfile=/scratch/kocevski/763717/ft2_4FGL_J1332.6-1256_daily_bin1243.fits outfile=/scratch/kocevski/763717/cmap_561513601_561772801_4FGL_J1332.6-1256_daily_bin1243.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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/763717/ft1_filtered_4FGL_J1332.6-1256_daily_bin1243.fits scfile=/scratch/kocevski/763717/ft2_4FGL_J1332.6-1256_daily_bin1243.fits outfile=/scratch/kocevski/763717/cmap_HighResolution_561513601_561772801_4FGL_J1332.6-1256_daily_bin1243.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.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/763717/ft1_filtered_4FGL_J1332.6-1256_daily_bin1243.fits evtable="EVENTS" scfile=/scratch/kocevski/763717/ft2_4FGL_J1332.6-1256_daily_bin1243.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/763717/Model_4FGL_J1332.6-1256_daily_bin1243.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/763717/ft1_filtered_4FGL_J1332.6-1256_daily_bin1243.fits....................!
real 38.34
user 36.91
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4244       1.0000         .10000E-03   10000.    
     2 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .18837E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.4257       1.0000         .10000E-03   10000.    
     5 'norm      '    .10494E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .89939E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    63.457       1.0000         .10000E-03   10000.    
     9 'Prefactor '    82.216       1.0000         .10000E-03   10000.    
    10 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    12.068       1.0000         .10000E-03   10000.    
    12 'norm      '    25.011       1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.721       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10266E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10684E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.6491       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    8.2451       1.0000         .10000E-03   10000.    
    22 'Prefactor '    39.944       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .42840       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.4701       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=   3744.752     FROM MIGRAD    STATUS=CONVERGED    567 CALLS     2737 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4242        2.0777       -.21692E-06   -.68652E-04
   2  norm          .10000E-03    20.976        .86652E-08** at limit **
   3  Prefactor     .10001E-03    234.60        .14413E-05** at limit **
   4  norm          2.4258        2.3781       -.23012E-07   -.80411E-04
   5  norm          .10000E-03    54.376       -.13290E-06** at limit **
   6  norm          .10002E-03    783.32       -.11843E-04** at limit **
   7  Prefactor     .10000E-03    8.2623        .53240E-07** at limit **
   8  Prefactor     63.421        42.875       -.75790E-05   -.29875E-05
   9  Prefactor     82.202        70.197        .29087E-06   -.68152E-04
  10  norm          .10000E-03    5.5153        .26589E-06** at limit **
  11  norm          12.076        14.647        .32021E-06   -.71688E-04
  12  norm          25.008        26.561        .10001E-06   -.71763E-04
  13  Prefactor     20.723        24.638       -.22508E-06   -.74759E-04
  14  Prefactor     .10000E-03    36.284       -.41318E-07** at limit **
  15  norm          .10000E-03    177.52        .11747E-05** at limit **
  16  Prefactor     .10000E-03    5.2387        .35056E-08** at limit **
  17  norm          5.6507        9.1026        .13850E-07   -.55477E-04
  18  Prefactor     .10000E-03    4.0060        .32955E-07** at limit **
  19  Prefactor     .10000E-03    125.80       -.13452E-05** at limit **
  20  norm          .10000E-03    7.5435        .26615E-07** at limit **
  21  norm          8.2458        7.3971       -.12324E-06   -.71071E-04
  22  Prefactor     39.963        67.367       -.17932E-06   -.82565E-05
  23  Normalizat    .42814        .51178        .12985E-04    .57211E-04
  24  Prefactor     1.4702        .23690       -.37049E-05   -.54211E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.42423
  norm       = 0.0001
  Prefactor  = 0.000100006
  norm       = 2.42584
  norm       = 0.0001
  norm       = 0.000100017
  Prefactor  = 0.0001
  Prefactor  = 63.4213
  Prefactor  = 82.2024
  norm       = 0.0001
  norm       = 12.0756
  norm       = 25.008
  Prefactor  = 20.7231
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.0001
  norm       = 5.65067
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 8.24578
  Prefactor  = 39.9629
  Normalizat = 0.428138
  Prefactor  = 1.47025
 **********
 **   18 **HESSE 
 **********

 FCN=   3744.752     FROM HESSE     STATUS=OK           395 CALLS     3132 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4242        2.0773        .52699E-04   -1.5242    
   2  norm          .10000E-03    21.564        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    235.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.4258        2.3865        .90761E-04   -1.5396    
   5  norm          .10000E-03    54.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10002E-03    783.16        .36540E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.2673        .17181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     63.421        42.712        .50375E-04   -1.4114    
   9  Prefactor     82.202        69.597        .44298E-04   -1.3892    
  10  norm          .10000E-03    5.5924        .14042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          12.076        14.581        .11532E-03   -1.5013    
  12  norm          25.008        26.485        .80098E-04   -1.4707    
  13  Prefactor     20.723        24.482        .87990E-04   -1.4797    
  14  Prefactor     .10000E-03    36.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    177.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.2442        .13675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.6507        9.0848        .16901E-03   -1.5232    
  18  Prefactor     .10000E-03    4.0102        .11961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    126.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    7.5577        .16415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          8.2458        7.3665        .13962E-03   -1.5134    
  22  Prefactor     39.963        67.159        .63422E-04   -1.4443    
  23  Normalizat    .42814        .47557        .70288E-03   -1.1587    
  24  Prefactor     1.4702        .23019        .19493E-03   -.78376    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.72999e-10
Minuit parameter uncertainties:
  1  2.07735
  2  2.9998e-05
  3  0.00229086
  4  2.38656
  5  0.000192423
  6  0.00748775
  7  2.00472e-05
  8  42.733
  9  69.6663
  10  5.31433e-05
  11  14.585
  12  26.4973
  13  24.4936
  14  5.77794e-06
  15  0.00154974
  16  2.51642e-06
  17  9.08697
  18  3.64759e-06
  19  0.00111761
  20  5.10852e-06
  21  7.36731
  22  67.2869
  23  0.480172
  24  0.230355
Done.

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

Extracting fit parameters...

4FGL J1332.6-1256
   Spectrum: LogParabola
280         norm:  1.208e+01  1.459e+01  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.470e+00  2.304e-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:  4.281e-01  4.802e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.01
Ra Dec: 203.154 -12.944
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 1.42e-07 +/- 1.71e-07
Energy Flux (Fixed Index): 4.94e-05 +/- 5.97e-05

TS (Fixed Index): 2.01
Ra Dec: 203.154 -12.944
Photon Flux Upper Limit: 4.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.47e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/763717/likelihoodResults_561513601_561772801_4FGL_J1332.6-1256_daily_bin1243.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) = 3744.73425286
delta logL = 0.0178713607402

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3744.73099354
delta logL = 0.0211306809947

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.940       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2703       1.0000          .0000       5.0000    
     3 'Normalizat'    .43835       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4677       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=   3744.731     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      241 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.939        12.262        .11135E-03    .76244E-03
   2  alpha         2.2700        .64492        .12500E-01    .10817E-03
   3  Normalizat    .43836        .46091        .69550E-03   -.31916E-04
   4  Prefactor     1.4677        .22725        .19511E-03   -.14176E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.9393
  alpha      = 2.27004
  Normalizat = 0.438363
  Prefactor  = 1.46767
 **********
 **   18 **HESSE 
 **********

 FCN=   3744.731     FROM HESSE     STATUS=OK            23 CALLS      264 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.939        12.143        .22271E-04   -1.4988    
   2  alpha         2.2700        .63847        .49999E-03   -.92113E-01
   3  Normalizat    .43836        .46056        .27820E-04   -1.1536    
   4  Prefactor     1.4677        .22709        .39022E-04   -.78449    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14304e-09
Minuit parameter uncertainties:
  1  12.145
  2  0.64568
  3  0.464629
  4  0.227243
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/763717': 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) = 3744.73099343
delta logL = 0.0211307876161

Extracting fit parameters...

4FGL J1332.6-1256
   Spectrum: LogParabola
280         norm:  1.294e+01  1.214e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.270e+00  6.457e-01  0.000e+00  5.000e+00 ( 1.000e+00)
282         beta:  1.310e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  9.736e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  1.468e+00  2.272e-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:  4.384e-01  4.646e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.17
Ra Dec: 203.154 -12.944
Photon Index (Free Index): 2.27 +/- 0.65
Photon Flux (Free Index): 1.26e-07 +/- 1.41e-07
Energy Flux (Free Index): 5.08e-05 +/- 4.66e-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/763717/cmap_HighResolution_561513601_561772801_4FGL_J1332.6-1256_daily_bin1243.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.47e-04', comment='SUCCESS', photon_flux='1.42e-07', energy_flux2='5.08e-05', photon_flux_error='1.71e-07', dlogl='2.11e-02', energy_flux='4.94e-05', photon_flux2='1.26e-07', job_status='DONE', time_completed='2021-09-08 03:04:55.248062', photon_index_error2='0.65', photon_index2='2.27', ts='2.01', fit_tolerance='1e-08', GAL='1.47', photon_index_error='0.00', photon_flux_upper_limit='4.21e-07', energy_flux_error2='4.66e-05', EG='0.43', time_epoch_completed='1631095495.25', return_code='0', job_id='763717', GAL2='1.47', EG2='0.44', return_code2='0', energy_flux_error='5.97e-05', photon_flux_error2='1.41e-07', ts2='2.17', photon_index='2.40' WHERE bin_id='1243' AND source_name='4FGL J1332.6-1256' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 03:04:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0009>
Subject: Job 763717: <4FGL_J1332.6-1256_daily_bin1243> in cluster <slac> Done

Job <4FGL_J1332.6-1256_daily_bin1243> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 02:52:40 2021
Job was executed on host(s) <bullet0009>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 02:52:56 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:52:56 2021
Terminated at Wed Sep  8 03:04:56 2021
Results reported at Wed Sep  8 03:04:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.6-1256_daily_bin1243 203.154 -12.9436 561513601 561772801 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 :                                   516.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             257.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   719 sec.
    Turnaround time :                            736 sec.

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

