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


Performing analysis on: 4FGL_J1246.7-2548_daily_bin1610
RA = 191.689, Dec = -25.8018
tmin = 656640001, tmax = 656899201
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='335045', job_status='RUN', time_executed='2021-12-07 23:22:19.024915', time_epoch_executed='1638948139.02' WHERE source_name='4FGL J1246.7-2548' and cadence='daily' and bin_id='1610'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/335045

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/335045/ft1_4FGL_J1246.7-2548_daily_bin1610.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/335045/ft2_4FGL_J1246.7-2548_daily_bin1610.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/335045/ft1_4FGL_J1246.7-2548_daily_bin1610.fits outfile=/scratch/kocevski/335045/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin1610.fits ra=191.689 dec=-25.8018 rad=12.0 tmin=656640001.0 tmax=656899201.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.60
user 3.38
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/335045/ft2_4FGL_J1246.7-2548_daily_bin1610.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/335045/ft2_4FGL_J1246.7-2548_daily_bin1610.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/335045/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin1610.fits evtable="EVENTS" outfile="/scratch/kocevski/335045/ft1_filtered_4FGL_J1246.7-2548_daily_bin1610.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.51
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/335045/ft1_filtered_4FGL_J1246.7-2548_daily_bin1610.fits" evtable="EVENTS" scfile=/scratch/kocevski/335045/ft2_4FGL_J1246.7-2548_daily_bin1610.fits sctable="SC_DATA" outfile=/scratch/kocevski/335045/ltcube_656640001_656899201_4FGL_J1246.7-2548_daily_bin1610.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/335045/ft2_4FGL_J1246.7-2548_daily_bin1610.fits
.....................!
real 13.29
user 12.90
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/335045/ft1_filtered_4FGL_J1246.7-2548_daily_bin1610.fits evtable="EVENTS" scfile=/scratch/kocevski/335045/ft2_4FGL_J1246.7-2548_daily_bin1610.fits sctable="SC_DATA" expcube=/scratch/kocevski/335045/ltcube_656640001_656899201_4FGL_J1246.7-2548_daily_bin1610.fits outfile=/scratch/kocevski/335045/expmap_656640001_656899201_4FGL_J1246.7-2548_daily_bin1610.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/335045/ltcube_656640001_656899201_4FGL_J1246.7-2548_daily_bin1610.fits
.....................!
real 191.46
user 186.32
sys 4.70

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
Extended source CenA Lobes in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CenALobes.fits is the correct path to the extended template.
Added 184 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1246.7-2548 @ 191.689 -25.8018

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/335045/ft1_filtered_4FGL_J1246.7-2548_daily_bin1610.fits scfile=/scratch/kocevski/335045/ft2_4FGL_J1246.7-2548_daily_bin1610.fits outfile=/scratch/kocevski/335045/cmap_656640001_656899201_4FGL_J1246.7-2548_daily_bin1610.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=191.689 yref=-25.8018 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/335045/ft1_filtered_4FGL_J1246.7-2548_daily_bin1610.fits scfile=/scratch/kocevski/335045/ft2_4FGL_J1246.7-2548_daily_bin1610.fits outfile=/scratch/kocevski/335045/cmap_HighResolution_656640001_656899201_4FGL_J1246.7-2548_daily_bin1610.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=191.689 yref=-25.8018 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/335045/ft1_filtered_4FGL_J1246.7-2548_daily_bin1610.fits evtable="EVENTS" scfile=/scratch/kocevski/335045/ft2_4FGL_J1246.7-2548_daily_bin1610.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/335045/Model_4FGL_J1246.7-2548_daily_bin1610.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 CenA Lobes
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/335045/ft1_filtered_4FGL_J1246.7-2548_daily_bin1610.fits.....................!
real 122.45
user 120.98
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/335045/ft1_filtered_4FGL_J1246.7-2548_daily_bin1610.fits', '/scratch/kocevski/335045/ft2_4FGL_J1246.7-2548_daily_bin1610.fits', expMap='/scratch/kocevski/335045/expmap_656640001_656899201_4FGL_J1246.7-2548_daily_bin1610.fits', expCube='/scratch/kocevski/335045/ltcube_656640001_656899201_4FGL_J1246.7-2548_daily_bin1610.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/335045/Model_4FGL_J1246.7-2548_daily_bin1610.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1246.7-2548'

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  2.651e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
276        alpha:  2.214e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
277         beta:  1.173e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
278           Eb:  6.582e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/335045/ft1_filtered_4FGL_J1246.7-2548_daily_bin1610.fits
Spacecraft file(s): /scratch/kocevski/335045/ft2_4FGL_J1246.7-2548_daily_bin1610.fits
Exposure map: /scratch/kocevski/335045/expmap_656640001_656899201_4FGL_J1246.7-2548_daily_bin1610.fits
Exposure cube: /scratch/kocevski/335045/ltcube_656640001_656899201_4FGL_J1246.7-2548_daily_bin1610.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/335045/Model_4FGL_J1246.7-2548_daily_bin1610.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) = 7371.14395709

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .27938E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    1.1810       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .22471E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.7130       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    10.299       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .26586E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    6.0807       1.0000         .10000E-03   10000.    
    17 'norm      '    2.5836       1.0000         .10000E-03   10000.    
    18 'norm      '    .11449E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    79.231       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4510       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97439       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7371.135     FROM MIGRAD    STATUS=CONVERGED    534 CALLS     2504 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.265        .14817E-06** at limit **
   2  Prefactor     .10451E-03    16.706       -.31735E-05** at limit **
   3  norm          1.1761        5.6368        .13896E-05    .24914E-03
   4  Prefactor     .10000E-03    5.0914        .54050E-07** at limit **
   5  Prefactor     .10000E-03    32.722        .67659E-09** at limit **
   6  Prefactor     .10000E-03    211.01        .11589E-04** at limit **
   7  Prefactor     .10000E-03    9.7165        .12452E-06** at limit **
   8  Prefactor     .10000E-03    19.533       -.24091E-07** at limit **
   9  Prefactor     .10000E-03    15.608       -.16500E-06** at limit **
  10  Prefactor     7.7148        12.745        .13506E-05    .85158E-04
  11  norm          .10000E-03    .44214        .29026E-07** at limit **
  12  Prefactor     .10000E-03    116.21        .55501E-05** at limit **
  13  norm          .10000E-03    12.321       -.96396E-07** at limit **
  14  norm          10.283        8.9773        .11018E-05    .11891E-02
  15  Prefactor     .10034E-03    8.3056       -.17637E-05** at limit **
  16  norm          6.0792        4.1496       -.45798E-07   -.16432E-02
  17  norm          2.5838        3.0854       -.37633E-07   -.88327E-05
  18  norm          .36813E-01    3.9428        .19521E-06   -.84462E-04
  19  Prefactor     79.230        58.337        .17287E-05    .48925E-04
  20  Prefactor     .10000E-03    9.6122       -.13360E-06** at limit **
  21  Normalizat    1.4509        .26205       -.65758E-06    .22581E-03
  22  Prefactor     .97437        .11506       -.65688E-07    .38755E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000104514
  norm       = 1.17611
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.7148
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.2832
  Prefactor  = 0.00010034
  norm       = 6.07919
  norm       = 2.58381
  norm       = 0.0368132
  Prefactor  = 79.2296
  Prefactor  = 0.0001
  Normalizat = 1.45094
  Prefactor  = 0.974367
 **********
 **   18 **HESSE 
 **********

 FCN=   7371.135     FROM HESSE     STATUS=OK           362 CALLS     2866 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10451E-03    17.743        .86550E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.1761        7.8101        .37156E-03   -1.5491    
   4  Prefactor     .10000E-03    5.2208        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    32.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    208.30        .36539E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.7250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.7148        12.578        .14439E-03   -1.5152    
  11  norm          .10000E-03    .69210        .10984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    113.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    12.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          10.283        10.443        .12485E-03   -1.5067    
  15  Prefactor     .10034E-03    11.043        .56408E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          6.0792        6.1742        .81409E-03   -1.5215    
  17  norm          2.5838        3.0880        .15888E-03   -1.5386    
  18  norm          .36813E-01    9.4004        .51567E-01   -1.5670    
  19  Prefactor     79.230        57.786        .45118E-04   -1.3925    
  20  Prefactor     .10000E-03    9.6329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4509        .31241        .35902E-03   -.79166    
  22  Prefactor     .97437        .13841        .18938E-03   -.93589    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.09089e-09
Minuit parameter uncertainties:
  1  7.71103e-06
  2  0.0179046
  3  6.06243
  4  7.13843e-07
  5  1.5817e-05
  6  0.00128457
  7  7.18602e-06
  8  3.49793e-06
  9  2.98737e-06
  10  12.5821
  11  6.75819e-07
  12  0.000457534
  13  1.10009e-05
  14  10.4453
  15  0.00387883
  16  6.17484
  17  3.08822
  18  1.17512
  19  57.8273
  20  1.09975e-05
  21  0.312827
  22  0.138459
Done.

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

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  1.000e-04  6.758e-07  1.000e-04  1.000e+04 ( 1.000e-11)
276        alpha:  2.214e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
277         beta:  1.173e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
278           Eb:  6.582e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
603    Prefactor:  9.744e-01  1.385e-01  0.000e+00  1.000e+01 ( 1.000e+00)
604        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
605        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
602   Normalization:  1.451e+00  3.128e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 191.689 -25.802
Photon Flux Upper Limit: 9.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.72e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/335045/likelihoodResults_656640001_656899201_4FGL_J1246.7-2548_daily_bin1610.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) = 7371.14178392
delta logL = -0.00687992197254

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7371.13490077
delta logL = 3.22898176819e-06

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.2470       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4509       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97436       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7370.620     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      262 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .39624E-01    .42285E-01   -.69249E-06    .40568E-02
   2  alpha         5.0000        4.9340       -.15911E-03** at limit **
   3  Normalizat    1.3526        .31468        .12435E-04   -.32514E-03
   4  Prefactor     .99908        .13744       -.98642E-05   -.59634E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0396239
  alpha      = 5
  Normalizat = 1.35258
  Prefactor  = 0.999076
 **********
 **   18 **HESSE 
 **********

 FCN=   7370.620     FROM HESSE     STATUS=OK            37 CALLS      299 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .39624E-01    .42620E-01    .38432E-02   -1.5748    
   2  alpha         5.0000        3.5290        .41421        1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.3526        .26823        .83473E-01   -.82010    
   4  Prefactor     .99908        .11536        .45946E-01   -.92760    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.14592e-10
Minuit parameter uncertainties:
  1  0.0426204
  2  0.000254123
  3  0.26851
  4  0.115393
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/335045': 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) = 7370.61964488
delta logL = 0.515259118103

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  3.962e-02  4.262e-02  1.000e-04  1.000e+04 ( 1.000e-11)
276        alpha:  5.000e+00  2.541e-04  0.000e+00  5.000e+00 ( 1.000e+00)
277         beta:  1.173e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
278           Eb:  6.582e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
603    Prefactor:  9.991e-01  1.154e-01  0.000e+00  1.000e+01 ( 1.000e+00)
604        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
605        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
602   Normalization:  1.353e+00  2.685e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.11
Ra Dec: 191.689 -25.802
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 8.96e-08 +/- 9.59e-08
Energy Flux (Free Index): 1.22e-05 +/- 1.31e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/335045/cmap_HighResolution_656640001_656899201_4FGL_J1246.7-2548_daily_bin1610.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.72e-05', comment='SUCCESS', energy_flux2='1.22e-05', dlogl='5.15e-01', photon_flux2='8.96e-08', job_status='DONE', time_completed='2021-12-07 23:35:35.256448', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='9.70e-08', energy_flux_error2='1.31e-05', EG='1.45', time_epoch_completed='1638948935.26', return_code='0', job_id='335045', GAL2='1.00', EG2='1.35', return_code2='0', photon_flux_error2='9.59e-08', ts2='1.11', photon_index='2.21' WHERE bin_id='1610' AND source_name='4FGL J1246.7-2548' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 23:35:35 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 335045: <4FGL_J1246.7-2548_daily_bin1610> in cluster <slac> Done

Job <4FGL_J1246.7-2548_daily_bin1610> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Dec  7 23:20:19 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 23:21:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 23:21:30 2021
Terminated at Tue Dec  7 23:35:36 2021
Results reported at Tue Dec  7 23:35:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1246.7-2548_daily_bin1610 191.689 -25.8018 656640001 656899201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1246.7-2548 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   795.36 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             315.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   845 sec.
    Turnaround time :                            917 sec.

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

