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


Performing analysis on: 4FGL_J1246.7-2548_daily_bin144
RA = 191.689, Dec = -25.8018
tmin = 276652801, tmax = 276912001
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='897626', job_status='RUN', time_executed='2021-09-06 04:34:53.652054', time_epoch_executed='1630928093.65' WHERE source_name='4FGL J1246.7-2548' and cadence='daily' and bin_id='144'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/897626

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/897626/ft1_4FGL_J1246.7-2548_daily_bin144.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/897626/ft2_4FGL_J1246.7-2548_daily_bin144.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/897626/ft1_4FGL_J1246.7-2548_daily_bin144.fits outfile=/scratch/kocevski/897626/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin144.fits ra=191.689 dec=-25.8018 rad=12.0 tmin=276652801.0 tmax=276912001.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 4.96
user 4.35
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/897626/ft1_filtered_4FGL_J1246.7-2548_daily_bin144.fits" evtable="EVENTS" scfile=/scratch/kocevski/897626/ft2_4FGL_J1246.7-2548_daily_bin144.fits sctable="SC_DATA" outfile=/scratch/kocevski/897626/ltcube_276652801_276912001_4FGL_J1246.7-2548_daily_bin144.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/897626/ft2_4FGL_J1246.7-2548_daily_bin144.fits
.....................!
real 11.86
user 11.43
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/897626/ft1_filtered_4FGL_J1246.7-2548_daily_bin144.fits evtable="EVENTS" scfile=/scratch/kocevski/897626/ft2_4FGL_J1246.7-2548_daily_bin144.fits sctable="SC_DATA" expcube=/scratch/kocevski/897626/ltcube_276652801_276912001_4FGL_J1246.7-2548_daily_bin144.fits outfile=/scratch/kocevski/897626/expmap_276652801_276912001_4FGL_J1246.7-2548_daily_bin144.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/897626/ltcube_276652801_276912001_4FGL_J1246.7-2548_daily_bin144.fits
.....................!
real 190.70
user 185.73
sys 4.59

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/897626/ft1_filtered_4FGL_J1246.7-2548_daily_bin144.fits scfile=/scratch/kocevski/897626/ft2_4FGL_J1246.7-2548_daily_bin144.fits outfile=/scratch/kocevski/897626/cmap_276652801_276912001_4FGL_J1246.7-2548_daily_bin144.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/897626/ft1_filtered_4FGL_J1246.7-2548_daily_bin144.fits scfile=/scratch/kocevski/897626/ft2_4FGL_J1246.7-2548_daily_bin144.fits outfile=/scratch/kocevski/897626/cmap_HighResolution_276652801_276912001_4FGL_J1246.7-2548_daily_bin144.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/897626/ft1_filtered_4FGL_J1246.7-2548_daily_bin144.fits evtable="EVENTS" scfile=/scratch/kocevski/897626/ft2_4FGL_J1246.7-2548_daily_bin144.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/897626/Model_4FGL_J1246.7-2548_daily_bin144.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/897626/ft1_filtered_4FGL_J1246.7-2548_daily_bin144.fits.....................!
real 98.83
user 97.32
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/897626/ft1_filtered_4FGL_J1246.7-2548_daily_bin144.fits', '/scratch/kocevski/897626/ft2_4FGL_J1246.7-2548_daily_bin144.fits', expMap='/scratch/kocevski/897626/expmap_276652801_276912001_4FGL_J1246.7-2548_daily_bin144.fits', expCube='/scratch/kocevski/897626/ltcube_276652801_276912001_4FGL_J1246.7-2548_daily_bin144.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/897626/Model_4FGL_J1246.7-2548_daily_bin144.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/897626/ft1_filtered_4FGL_J1246.7-2548_daily_bin144.fits
Spacecraft file(s): /scratch/kocevski/897626/ft2_4FGL_J1246.7-2548_daily_bin144.fits
Exposure map: /scratch/kocevski/897626/expmap_276652801_276912001_4FGL_J1246.7-2548_daily_bin144.fits
Exposure cube: /scratch/kocevski/897626/ltcube_276652801_276912001_4FGL_J1246.7-2548_daily_bin144.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/897626/Model_4FGL_J1246.7-2548_daily_bin144.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6076.50957802

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    27.176       1.0000         .10000E-03   10000.    
     3 'norm      '    3.9350       1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.619       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10872E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    64.642       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.4578       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .17855E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.0628       1.0000         .10000E-03   10000.    
    14 'norm      '    1.5890       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    10.800       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0682       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1238       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=   6076.200     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2422 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.834       -.84221E-05** at limit **
   2  Prefactor     27.175        25.320        .19311E-05   -.35227E-04
   3  norm          3.9361        6.4771       -.12107E-05   -.13695E-03
   4  Prefactor     19.620        8.9208        .44994E-06   -.13799E-03
   5  Prefactor     .10000E-03    39.427       -.14092E-04** at limit **
   6  Prefactor     .10000E-03    21.131        .34620E-05** at limit **
   7  Prefactor     .10000E-03    41.633        .15004E-04** at limit **
   8  Prefactor     64.625        63.200       -.11449E-04    .90865E-04
   9  Prefactor     .10000E-03    8.6958        .10824E-06** at limit **
  10  Prefactor     .10000E-03    27.508       -.41067E-06** at limit **
  11  norm          1.4577        1.1162        .20910E-07    .11895E-03
  12  Prefactor     .10003E-03    263.74       -.35086E-05** at limit **
  13  norm          2.0622        8.1938       -.30427E-05   -.20557E-03
  14  norm          1.5842        7.4355       -.90030E-05   -.38679E-03
  15  Prefactor     .10000E-03    3.5321        .42838E-06** at limit **
  16  norm          .10000E-03    5.2691       -.84488E-07** at limit **
  17  norm          .10000E-03    1.2773        .67407E-07** at limit **
  18  norm          10.799        8.1810        .39366E-06   -.13334E-03
  19  Prefactor     .10000E-03    40.494        .24730E-06** at limit **
  20  Prefactor     .10000E-03    17.239        .60779E-05** at limit **
  21  Normalizat    1.0680        .30763        .18712E-05    .56607E-04
  22  Prefactor     1.1238        .13532        .74454E-06    .11775E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 27.1746
  norm       = 3.9361
  Prefactor  = 19.6196
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 64.625
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.45768
  Prefactor  = 0.000100032
  norm       = 2.06224
  norm       = 1.5842
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 10.7991
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.06801
  Prefactor  = 1.12385
 **********
 **   18 **HESSE 
 **********

 FCN=   6076.200     FROM HESSE     STATUS=OK           336 CALLS     2758 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     27.175        25.304        .76848E-04   -1.4665    
   3  norm          3.9361        6.4705        .20336E-03   -1.5311    
   4  Prefactor     19.620        8.9151        .90426E-04   -1.4822    
   5  Prefactor     .10000E-03    38.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    21.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    41.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     64.625        63.049        .49914E-04   -1.4098    
   9  Prefactor     .10000E-03    8.7000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    28.424        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.4577        1.1161        .35650E-04   -1.5466    
  12  Prefactor     .10003E-03    264.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.0622        8.2255        .28770E-03   -1.5421    
  14  norm          1.5842        8.1398        .33667E-03   -1.5456    
  15  Prefactor     .10000E-03    3.5672        .14299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.3137        .17467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.2871        .86023E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          10.799        8.1732        .12192E-03   -1.5051    
  19  Prefactor     .10000E-03    40.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    17.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0680        .35475        .41920E-03   -.90786    
  22  Prefactor     1.1238        .15709        .18229E-03   -.88708    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29649e-09
Minuit parameter uncertainties:
  1  0.000300793
  2  25.3142
  3  6.47161
  4  8.91566
  5  0.00085831
  6  0.000154613
  7  0.00028781
  8  63.1138
  9  7.45846e-06
  10  5.79112e-05
  11  1.11612
  12  0.00579697
  13  8.23003
  14  7.18327
  15  7.8955e-05
  16  1.9613e-05
  17  4.77643e-06
  18  8.17401
  19  5.95356e-05
  20  0.000261677
  21  0.355541
  22  0.157154
Done.

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

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  1.458e+00  1.116e+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:  1.124e+00  1.572e-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.068e+00  3.555e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.33
Ra Dec: 191.689 -25.802
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 6.38e-08 +/- 4.88e-08
Energy Flux (Fixed Index): 2.45e-05 +/- 1.87e-05

TS (Fixed Index): 3.33
Ra Dec: 191.689 -25.802
Photon Flux Upper Limit: 1.77e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.81e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/897626/likelihoodResults_276652801_276912001_4FGL_J1246.7-2548_daily_bin144.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) = 6075.89595152
delta logL = 0.30413283384

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6075.8387938
delta logL = 0.361290557606

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0369       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5002       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1034       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1181       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=   6075.839     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0363        .85766        .12354E-01   -.48574E-04
   2  alpha         1.4998        .49002        .42465       -.37331E-04
   3  Normalizat    1.1035        .30032        .93292E-01    .18714E-04
   4  Prefactor     1.1181        .13413        .36936E-01   -.16479E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.03631
  alpha      = 1.49983
  Normalizat = 1.10354
  Prefactor  = 1.11805
 **********
 **   18 **HESSE 
 **********

 FCN=   6075.839     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0363        1.1485        .63361E-04   -1.5504    
   2  alpha         1.4998        .75976        .16223E-01   -.41159    
   3  Normalizat    1.1035        .34840        .41326E-03   -.89638    
   4  Prefactor     1.1181        .15622        .18269E-03   -.88892    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55117e-09
Minuit parameter uncertainties:
  1  1.14849
  2  0.774419
  3  0.349132
  4  0.156283
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/897626': 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) = 6075.83879355
delta logL = 0.361290807738

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  1.036e+00  1.148e+00  1.000e-04  1.000e+04 ( 1.000e-11)
276        alpha:  1.500e+00  7.744e-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:  1.118e+00  1.563e-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.104e+00  3.491e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.06
Ra Dec: 191.689 -25.802
Photon Index (Free Index): 1.50 +/- 0.77
Photon Flux (Free Index): 2.72e-08 +/- 3.52e-08
Energy Flux (Free Index): 3.54e-05 +/- 3.87e-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/897626/cmap_HighResolution_276652801_276912001_4FGL_J1246.7-2548_daily_bin144.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.81e-05', comment='SUCCESS', photon_flux='6.38e-08', energy_flux2='3.54e-05', photon_flux_error='4.88e-08', dlogl='3.61e-01', energy_flux='2.45e-05', photon_flux2='2.72e-08', job_status='DONE', time_completed='2021-09-06 04:46:30.736966', photon_index_error2='0.77', photon_index2='1.50', ts='3.33', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='1.77e-07', energy_flux_error2='3.87e-05', EG='1.07', time_epoch_completed='1630928790.74', return_code='0', job_id='897626', GAL2='1.12', EG2='1.10', return_code2='0', energy_flux_error='1.87e-05', photon_flux_error2='3.52e-08', ts2='4.06', photon_index='2.21' WHERE bin_id='144' AND source_name='4FGL J1246.7-2548' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 04:46:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0188>
Subject: Job 897626: <4FGL_J1246.7-2548_daily_bin144> in cluster <slac> Done

Job <4FGL_J1246.7-2548_daily_bin144> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 04:30:54 2021
Job was executed on host(s) <bullet0188>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 04:30:56 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:30:56 2021
Terminated at Mon Sep  6 04:46:31 2021
Results reported at Mon Sep  6 04:46:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1246.7-2548_daily_bin144 191.689 -25.8018 276652801 276912001 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 :                                   693.30 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             278.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            937 sec.

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

