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


Performing analysis on: 4FGL_J1246.7-2548_daily_bin1495
RA = 191.689, Dec = -25.8018
tmin = 626832001, tmax = 627091201
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='905588', job_status='RUN', time_executed='2021-09-06 04:57:28.248129', time_epoch_executed='1630929448.25' WHERE source_name='4FGL J1246.7-2548' and cadence='daily' and bin_id='1495'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/905588

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/905588/ft1_4FGL_J1246.7-2548_daily_bin1495.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/905588/ft2_4FGL_J1246.7-2548_daily_bin1495.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/905588/ft1_4FGL_J1246.7-2548_daily_bin1495.fits outfile=/scratch/kocevski/905588/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin1495.fits ra=191.689 dec=-25.8018 rad=12.0 tmin=626832001.0 tmax=627091201.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.82
user 2.78
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/905588/ft2_4FGL_J1246.7-2548_daily_bin1495.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/905588/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin1495.fits evtable="EVENTS" outfile="/scratch/kocevski/905588/ft1_filtered_4FGL_J1246.7-2548_daily_bin1495.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 1.77
user 0.33
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/905588/ft1_filtered_4FGL_J1246.7-2548_daily_bin1495.fits" evtable="EVENTS" scfile=/scratch/kocevski/905588/ft2_4FGL_J1246.7-2548_daily_bin1495.fits sctable="SC_DATA" outfile=/scratch/kocevski/905588/ltcube_626832001_627091201_4FGL_J1246.7-2548_daily_bin1495.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/905588/ft2_4FGL_J1246.7-2548_daily_bin1495.fits
.....................!
real 13.05
user 12.16
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/905588/ft1_filtered_4FGL_J1246.7-2548_daily_bin1495.fits evtable="EVENTS" scfile=/scratch/kocevski/905588/ft2_4FGL_J1246.7-2548_daily_bin1495.fits sctable="SC_DATA" expcube=/scratch/kocevski/905588/ltcube_626832001_627091201_4FGL_J1246.7-2548_daily_bin1495.fits outfile=/scratch/kocevski/905588/expmap_626832001_627091201_4FGL_J1246.7-2548_daily_bin1495.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/905588/ltcube_626832001_627091201_4FGL_J1246.7-2548_daily_bin1495.fits
.....................!
real 195.10
user 185.71
sys 5.09

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/905588/ft1_filtered_4FGL_J1246.7-2548_daily_bin1495.fits scfile=/scratch/kocevski/905588/ft2_4FGL_J1246.7-2548_daily_bin1495.fits outfile=/scratch/kocevski/905588/cmap_626832001_627091201_4FGL_J1246.7-2548_daily_bin1495.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.82
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/905588/ft1_filtered_4FGL_J1246.7-2548_daily_bin1495.fits scfile=/scratch/kocevski/905588/ft2_4FGL_J1246.7-2548_daily_bin1495.fits outfile=/scratch/kocevski/905588/cmap_HighResolution_626832001_627091201_4FGL_J1246.7-2548_daily_bin1495.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.54
user 0.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/905588/ft1_filtered_4FGL_J1246.7-2548_daily_bin1495.fits evtable="EVENTS" scfile=/scratch/kocevski/905588/ft2_4FGL_J1246.7-2548_daily_bin1495.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/905588/Model_4FGL_J1246.7-2548_daily_bin1495.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/905588/ft1_filtered_4FGL_J1246.7-2548_daily_bin1495.fits.....................!
real 97.41
user 96.01
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/905588/ft1_filtered_4FGL_J1246.7-2548_daily_bin1495.fits', '/scratch/kocevski/905588/ft2_4FGL_J1246.7-2548_daily_bin1495.fits', expMap='/scratch/kocevski/905588/expmap_626832001_627091201_4FGL_J1246.7-2548_daily_bin1495.fits', expCube='/scratch/kocevski/905588/ltcube_626832001_627091201_4FGL_J1246.7-2548_daily_bin1495.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/905588/Model_4FGL_J1246.7-2548_daily_bin1495.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/905588/ft1_filtered_4FGL_J1246.7-2548_daily_bin1495.fits
Spacecraft file(s): /scratch/kocevski/905588/ft2_4FGL_J1246.7-2548_daily_bin1495.fits
Exposure map: /scratch/kocevski/905588/expmap_626832001_627091201_4FGL_J1246.7-2548_daily_bin1495.fits
Exposure cube: /scratch/kocevski/905588/ltcube_626832001_627091201_4FGL_J1246.7-2548_daily_bin1495.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/905588/Model_4FGL_J1246.7-2548_daily_bin1495.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) = 5636.85619569

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    41.227       1.0000         .10000E-03   10000.    
     3 'norm      '    .17624E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.2970       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.395       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.278       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10368E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    45.112       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.874       1.0000         .10000E-03   10000.    
    11 'norm      '    3.8224       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11129E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .79058E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    1.9827       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    20.600       1.0000         .10000E-03   10000.    
    17 'norm      '    .70006E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    10.616       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.6643       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .77905       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=   5636.800     FROM MIGRAD    STATUS=CONVERGED    543 CALLS     2469 TOTAL
                     EDM=   .88E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.185        .87999E-06** at limit **
   2  Prefactor     41.211        21.172        .10519E-06    .27211E-04
   3  norm          .10000E-03    5.1869       -.90867E-07** at limit **
   4  Prefactor     7.3095        7.4028        .12293E-05    .20469E-03
   5  Prefactor     .10000E-03    16.747       -.52883E-07** at limit **
   6  Prefactor     11.319        31.480       -.62670E-05    .23184E-04
   7  Prefactor     11.290        15.350        .97266E-06    .10195E-03
   8  Prefactor     .10000E-03    31.344       -.20413E-05** at limit **
   9  Prefactor     45.134        30.976        .52535E-06    .48326E-04
  10  Prefactor     11.872        17.844        .16188E-06   -.48300E-05
  11  norm          3.8233        1.7673       -.74331E-07   -.12623E-04
  12  Prefactor     .10000E-03    131.94        .44916E-05** at limit **
  13  norm          .18074        9.7277        .38811E-06   -.14107E-03
  14  norm          1.9695        7.9410        .11417E-04   -.15911E-04
  15  Prefactor     .10000E-03    3.9802        .11832E-06** at limit **
  16  norm          20.607        10.657       -.75855E-07    .63089E-04
  17  norm          .10000E-03    2.6615       -.12717E-05** at limit **
  18  norm          10.623        12.953        .21810E-06    .25252E-04
  19  Prefactor     .10000E-03    79.208       -.65914E-06** at limit **
  20  Prefactor     .10000E-03    14.434       -.31918E-07** at limit **
  21  Normalizat    1.6642        .32477       -.33833E-05    .19336E-04
  22  Prefactor     .77878        .13631        .64960E-06    .73172E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 41.2109
  norm       = 0.0001
  Prefactor  = 7.30947
  Prefactor  = 0.0001
  Prefactor  = 11.3188
  Prefactor  = 11.2901
  Prefactor  = 0.000100001
  Prefactor  = 45.1341
  Prefactor  = 11.8722
  norm       = 3.82327
  Prefactor  = 0.000100001
  norm       = 0.180745
  norm       = 1.96948
  Prefactor  = 0.0001
  norm       = 20.6069
  norm       = 0.0001
  norm       = 10.6226
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.66423
  Prefactor  = 0.778777
 **********
 **   18 **HESSE 
 **********

 FCN=   5636.800     FROM HESSE     STATUS=OK           356 CALLS     2825 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     41.211        19.369        .62431E-04   -1.4423    
   3  norm          .10000E-03    19.566        .30189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.3095        7.3948        .14848E-03   -1.5167    
   5  Prefactor     .10000E-03    16.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.319        31.458        .11868E-03   -1.5035    
   7  Prefactor     11.290        15.348        .11930E-03   -1.5036    
   8  Prefactor     .10000E-03    31.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     45.134        30.995        .59693E-04   -1.4363    
  10  Prefactor     11.872        17.897        .11625E-03   -1.5019    
  11  norm          3.8233        1.7665        .64281E-04   -1.5317    
  12  Prefactor     .10000E-03    132.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .18074        14.628        .69654E-01   -1.5623    
  14  norm          1.9695        8.0509        .14716E-02   -1.5427    
  15  Prefactor     .10000E-03    4.0033        .14636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          20.607        10.653        .88247E-04   -1.4800    
  17  norm          .10000E-03    12.758        .23278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          10.623        12.942        .12297E-03   -1.5056    
  19  Prefactor     .10000E-03    79.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    14.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.6642        .38509        .34961E-03   -.73262    
  22  Prefactor     .77878        .16136        .21124E-03   -1.0052    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.18445e-10
Minuit parameter uncertainties:
  1  0.000136469
  2  19.3717
  3  0.000100746
  4  7.39574
  5  1.92145e-05
  6  31.5042
  7  15.3536
  8  0.000258061
  9  31.0065
  10  17.9055
  11  1.76654
  12  0.000709199
  13  3.25198
  14  7.96559
  15  1.00823e-05
  16  10.6543
  17  6.22188e-05
  18  12.9455
  19  1.16052e-05
  20  4.2705e-06
  21  0.385787
  22  0.161462
Done.

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

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  3.823e+00  1.767e+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

GAL_V02
   Spectrum: PowerLaw
603    Prefactor:  7.788e-01  1.615e-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.664e+00  3.858e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.46
Ra Dec: 191.689 -25.802
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 1.67e-07 +/- 7.73e-08
Energy Flux (Fixed Index): 6.42e-05 +/- 2.97e-05

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) = 5636.52874789
delta logL = 0.27102716576

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5636.52788659
delta logL = 0.271888468465

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4281       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5668       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6031       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79534       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.

 FCN=   5636.528     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      238 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4273        25.318        .54617E-02    .71685E-03
   2  alpha         2.5669        3.7398        .26121        .40885E-04
   3  Normalizat    1.6026        .20488        .80145E-01   -.32288E-03
   4  Prefactor     .79556        .74811E-01    .43657E-01   -.44901E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.42728
  alpha      = 2.56688
  Normalizat = 1.60256
  Prefactor  = 0.795556
 **********
 **   18 **HESSE 
 **********

 FCN=   5636.528     FROM HESSE     STATUS=OK            29 CALLS      267 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4273        1.8117        .57161E-04   -1.5338    
   2  alpha         2.5669        .50070        .10512E-01    .26755E-01
   3  Normalizat    1.6026        .37872        .35471E-03   -.74936    
   4  Prefactor     .79556        .16236        .20918E-03   -.99892    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30516e-10
Minuit parameter uncertainties:
  1  1.81176
  2  0.504116
  3  0.379398
  4  0.162455
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/905588': 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) = 5636.52788542
delta logL = 0.271889635606

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  3.427e+00  1.812e+00  1.000e-04  1.000e+04 ( 1.000e-11)
276        alpha:  2.567e+00  5.041e-01  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:  7.956e-01  1.625e-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.603e+00  3.794e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.93
Ra Dec: 191.689 -25.802
Photon Index (Free Index): 2.57 +/- 0.50
Photon Flux (Free Index): 2.21e-07 +/- 1.17e-07
Energy Flux (Free Index): 6.07e-05 +/- 2.70e-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/905588/cmap_HighResolution_626832001_627091201_4FGL_J1246.7-2548_daily_bin1495.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.67e-07', energy_flux2='6.07e-05', photon_flux_error='7.73e-08', dlogl='2.72e-01', energy_flux='6.42e-05', photon_flux2='2.21e-07', job_status='DONE', time_completed='2021-09-06 05:09:32.692874', photon_index_error2='0.50', photon_index2='2.57', ts='9.46', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='2.70e-05', EG='1.66', time_epoch_completed='1630930172.69', return_code='0', job_id='905588', GAL2='0.80', EG2='1.60', return_code2='0', energy_flux_error='2.97e-05', photon_flux_error2='1.17e-07', ts2='9.93', photon_index='2.21' WHERE bin_id='1495' AND source_name='4FGL J1246.7-2548' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:09:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 905588: <4FGL_J1246.7-2548_daily_bin1495> in cluster <slac> Done

Job <4FGL_J1246.7-2548_daily_bin1495> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 04:56:10 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 04:56:11 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 04:56:11 2021
Terminated at Mon Sep  6 05:09:33 2021
Results reported at Mon Sep  6 05:09:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1246.7-2548_daily_bin1495 191.689 -25.8018 626832001 627091201 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 :                                   622.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             342.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            803 sec.

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

