/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 177 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 = 7398
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1332.6-1256_daily_bin373
RA = 203.154, Dec = -12.9436
tmin = 336009601, tmax = 336268801
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='757591', job_status='RUN', time_executed='2021-09-08 02:38:36.542788', time_epoch_executed='1631093916.54' WHERE source_name='4FGL J1332.6-1256' and cadence='daily' and bin_id='373'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/757591

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/757591/ft1_4FGL_J1332.6-1256_daily_bin373.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/757591/ft2_4FGL_J1332.6-1256_daily_bin373.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/757591/ft1_4FGL_J1332.6-1256_daily_bin373.fits outfile=/scratch/kocevski/757591/ft1_filteredMKT_4FGL_J1332.6-1256_daily_bin373.fits ra=203.154 dec=-12.9436 rad=12.0 tmin=336009601.0 tmax=336268801.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.38
user 3.13
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/757591/ft2_4FGL_J1332.6-1256_daily_bin373.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/757591/ft1_filteredMKT_4FGL_J1332.6-1256_daily_bin373.fits evtable="EVENTS" outfile="/scratch/kocevski/757591/ft1_filtered_4FGL_J1332.6-1256_daily_bin373.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.58
user 0.36
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/757591/ft1_filtered_4FGL_J1332.6-1256_daily_bin373.fits" evtable="EVENTS" scfile=/scratch/kocevski/757591/ft2_4FGL_J1332.6-1256_daily_bin373.fits sctable="SC_DATA" outfile=/scratch/kocevski/757591/ltcube_336009601_336268801_4FGL_J1332.6-1256_daily_bin373.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/757591/ft2_4FGL_J1332.6-1256_daily_bin373.fits
.....................!
real 16.97
user 16.56
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/757591/ft1_filtered_4FGL_J1332.6-1256_daily_bin373.fits evtable="EVENTS" scfile=/scratch/kocevski/757591/ft2_4FGL_J1332.6-1256_daily_bin373.fits sctable="SC_DATA" expcube=/scratch/kocevski/757591/ltcube_336009601_336268801_4FGL_J1332.6-1256_daily_bin373.fits outfile=/scratch/kocevski/757591/expmap_336009601_336268801_4FGL_J1332.6-1256_daily_bin373.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/757591/ltcube_336009601_336268801_4FGL_J1332.6-1256_daily_bin373.fits
.....................!
real 191.95
user 187.24
sys 4.17

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/757591/ft1_filtered_4FGL_J1332.6-1256_daily_bin373.fits scfile=/scratch/kocevski/757591/ft2_4FGL_J1332.6-1256_daily_bin373.fits outfile=/scratch/kocevski/757591/cmap_336009601_336268801_4FGL_J1332.6-1256_daily_bin373.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/757591/ft1_filtered_4FGL_J1332.6-1256_daily_bin373.fits scfile=/scratch/kocevski/757591/ft2_4FGL_J1332.6-1256_daily_bin373.fits outfile=/scratch/kocevski/757591/cmap_HighResolution_336009601_336268801_4FGL_J1332.6-1256_daily_bin373.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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/757591/ft1_filtered_4FGL_J1332.6-1256_daily_bin373.fits evtable="EVENTS" scfile=/scratch/kocevski/757591/ft2_4FGL_J1332.6-1256_daily_bin373.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/757591/Model_4FGL_J1332.6-1256_daily_bin373.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/757591/ft1_filtered_4FGL_J1332.6-1256_daily_bin373.fits.....................!
real 53.71
user 52.29
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1611       1.0000         .10000E-03   10000.    
     2 'norm      '    25.260       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.0845       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.2757       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.3626       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.5403       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    29.619       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.9180       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.137       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.2465       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12525E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.9688       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .61003       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6186.417     FROM MIGRAD    STATUS=CONVERGED    552 CALLS     2741 TOTAL
                     EDM=   .77E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1611        .38463         .0000        .39390E-03
   2  norm          25.261        13.297         .0000        .66697E-04
   3  Prefactor     .10000E-03    45.779         .0000    ** at limit **
   4  norm          .10000E-03    1.5248         .0000    ** at limit **
   5  norm          .10003E-03    7.4643         .0000    ** at limit **
   6  norm          .10000E-03    3.8531         .0000    ** at limit **
   7  Prefactor     1.0594        27.138         .0000        .11348E-01
   8  Prefactor     6.2767        7.8745         .0000        .21400E-02
   9  Prefactor     4.3728        31.477         .0000       -.35249E-03
  10  norm          .10000E-03    .42505         .0000    ** at limit **
  11  norm          .10000E-03    1.9000         .0000    ** at limit **
  12  norm          3.5342        7.0768         .0000        .73994E-02
  13  Prefactor     .10000E-03    20.404         .0000    ** at limit **
  14  Prefactor     .10001E-03    21.194         .0000    ** at limit **
  15  norm          29.619        30.004         .0000       -.24603E-04
  16  Prefactor     .10000E-03    5.4193         .0000    ** at limit **
  17  norm          4.9177        4.3290         .0000       -.10859E-02
  18  Prefactor     .10003E-03    7.2085         .0000    ** at limit **
  19  Prefactor     14.135        31.925         .0000        .47477E-03
  20  norm          .10000E-03    4.7194         .0000    ** at limit **
  21  norm          4.2467        2.8468         .0000        .10636E-03
  22  Prefactor     .10001E-03    89.523         .0000    ** at limit **
  23  Normalizat    1.9686        .25645         .0000       -.21048E-05
  24  Prefactor     .61011        .12493         .0000        .27332E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.16114
  norm       = 25.2608
  Prefactor  = 0.000100004
  norm       = 0.0001
  norm       = 0.000100033
  norm       = 0.0001
  Prefactor  = 1.05941
  Prefactor  = 6.27673
  Prefactor  = 4.37276
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.53418
  Prefactor  = 0.000100003
  Prefactor  = 0.000100013
  norm       = 29.6188
  Prefactor  = 0.0001
  norm       = 4.91771
  Prefactor  = 0.000100035
  Prefactor  = 14.135
  norm       = 0.0001
  norm       = 4.24668
  Prefactor  = 0.000100008
  Normalizat = 1.96858
  Prefactor  = 0.610112
 **********
 **   18 **HESSE 
 **********

 FCN=   6186.417     FROM HESSE     STATUS=OK           393 CALLS     3134 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1611        .38486        .26889E-04   -1.5492    
   2  norm          25.261        13.308        .79704E-04   -1.4702    
   3  Prefactor     .10000E-03    45.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.2966        .18849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10003E-03    7.4984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.8544        .15079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.0594        27.349        .23065E-02   -1.5502    
   8  Prefactor     6.2767        7.8647        .16024E-03   -1.5207    
   9  Prefactor     4.3728        30.258        .19284E-03   -1.5290    
  10  norm          .10000E-03    .43105        .50049E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.9009        .10545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.5342        6.9750        .10741E-02   -1.5332    
  13  Prefactor     .10000E-03    21.127        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    21.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          29.619        30.004        .73618E-04   -1.4619    
  16  Prefactor     .10000E-03    5.4469        .17880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.9177        4.3266        .14829E-03   -1.5264    
  18  Prefactor     .10003E-03    7.4738        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.135        31.916        .10653E-03   -1.4956    
  20  norm          .10000E-03    4.7791        .16683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.2467        2.8469        .10505E-03   -1.5296    
  22  Prefactor     .10001E-03    91.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.9686        .29720        .28670E-03   -.65340    
  24  Prefactor     .61011        .14298        .23941E-03   -1.0716    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35318e-08
Minuit parameter uncertainties:
  1  0.384864
  2  13.3098
  3  0.000870148
  4  1.81873e-06
  5  0.000997312
  6  2.63408e-06
  7  10.7705
  8  7.866
  9  23.0218
  10  1.70224e-06
  11  5.43307e-06
  12  6.97665
  13  0.000497953
  14  0.00106295
  15  30.0192
  16  6.32525e-06
  17  4.32688
  18  0.00102062
  19  31.9545
  20  1.94665e-06
  21  2.84704
  22  0.00173686
  23  0.297476
  24  0.143065
Done.

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

Extracting fit parameters...

4FGL J1332.6-1256
   Spectrum: LogParabola
280         norm:  1.000e-04  5.433e-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:  6.101e-01  1.431e-01  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
547   Normalization:  1.969e+00  2.975e-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: 9.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.24e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/757591/likelihoodResults_336009601_336268801_4FGL_J1332.6-1256_daily_bin373.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) = 6186.41913889
delta logL = -0.00248662627564

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6186.41665227
delta logL = -9.84164216788e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4115       1.0000          .0000       5.0000    
     3 'Normalizat'    1.9686       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61013       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=   6186.417     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      196 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.5727        .90712E-02** at limit **
   2  alpha         2.4206        3.6238        .41184       -.24513E-04
   3  Normalizat    1.9686        .24330        .64833E-01   -.87206E-05
   4  Prefactor     .61011        .12263        .41192E-01    .17327E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.42061
  Normalizat = 1.96858
  Prefactor  = 0.610112
 **********
 **   18 **HESSE 
 **********

 FCN=   6186.417     FROM HESSE     STATUS=OK            33 CALLS      229 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.9327        .10577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4206        3.5365        .50000       -.31763E-01
   3  Normalizat    1.9686        .27803        .28670E-03   -.65340    
   4  Prefactor     .61011        .14016        .23941E-03   -1.0716    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.05845e-10
Minuit parameter uncertainties:
  1  2.57696e-06
  2  2.51223
  3  0.278262
  4  0.140238
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/757591': 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) = 6186.41665209
delta logL = 1.74455635715e-07

Extracting fit parameters...

4FGL J1332.6-1256
   Spectrum: LogParabola
280         norm:  1.000e-04  2.577e-06  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.421e+00  2.512e+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:  6.101e-01  1.402e-01  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
547   Normalization:  1.969e+00  2.783e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/757591/cmap_HighResolution_336009601_336268801_4FGL_J1332.6-1256_daily_bin373.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.24e-05', job_status='DONE', photon_flux_upper_limit='9.28e-08', time_completed='2021-09-08 02:49:27.917553', job_id='757591', GAL2='0.61', fit_tolerance='1e-08', EG2='1.97', EG='1.97', time_epoch_completed='1631094567.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='1.74e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='373' AND source_name='4FGL J1332.6-1256' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 02:49:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0138>
Subject: Job 757591: <4FGL_J1332.6-1256_daily_bin373> in cluster <slac> Done

Job <4FGL_J1332.6-1256_daily_bin373> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 02:35:16 2021
Job was executed on host(s) <bullet0138>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 02:35:30 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:35:30 2021
Terminated at Wed Sep  8 02:49:28 2021
Results reported at Wed Sep  8 02:49:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1332.6-1256_daily_bin373 203.154 -12.9436 336009601 336268801 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 :                                   646.50 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            852 sec.

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

