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


Performing analysis on: 4FGL_J1246.7-2548_daily_bin1481
RA = 191.689, Dec = -25.8018
tmin = 623203201, tmax = 623462401
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='905567', job_status='RUN', time_executed='2021-09-06 04:59:15.009972', time_epoch_executed='1630929555.01' WHERE source_name='4FGL J1246.7-2548' and cadence='daily' and bin_id='1481'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/905567

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/905567/ft1_4FGL_J1246.7-2548_daily_bin1481.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/905567/ft2_4FGL_J1246.7-2548_daily_bin1481.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/905567/ft1_4FGL_J1246.7-2548_daily_bin1481.fits outfile=/scratch/kocevski/905567/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin1481.fits ra=191.689 dec=-25.8018 rad=12.0 tmin=623203201.0 tmax=623462401.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 2.91
user 2.68
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/905567/ft1_filtered_4FGL_J1246.7-2548_daily_bin1481.fits" evtable="EVENTS" scfile=/scratch/kocevski/905567/ft2_4FGL_J1246.7-2548_daily_bin1481.fits sctable="SC_DATA" outfile=/scratch/kocevski/905567/ltcube_623203201_623462401_4FGL_J1246.7-2548_daily_bin1481.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/905567/ft2_4FGL_J1246.7-2548_daily_bin1481.fits
.....................!
real 12.50
user 12.09
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/905567/ft1_filtered_4FGL_J1246.7-2548_daily_bin1481.fits evtable="EVENTS" scfile=/scratch/kocevski/905567/ft2_4FGL_J1246.7-2548_daily_bin1481.fits sctable="SC_DATA" expcube=/scratch/kocevski/905567/ltcube_623203201_623462401_4FGL_J1246.7-2548_daily_bin1481.fits outfile=/scratch/kocevski/905567/expmap_623203201_623462401_4FGL_J1246.7-2548_daily_bin1481.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/905567/ltcube_623203201_623462401_4FGL_J1246.7-2548_daily_bin1481.fits
.....................!
real 191.93
user 186.18
sys 5.29

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/905567/ft1_filtered_4FGL_J1246.7-2548_daily_bin1481.fits scfile=/scratch/kocevski/905567/ft2_4FGL_J1246.7-2548_daily_bin1481.fits outfile=/scratch/kocevski/905567/cmap_623203201_623462401_4FGL_J1246.7-2548_daily_bin1481.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.53
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/905567/ft1_filtered_4FGL_J1246.7-2548_daily_bin1481.fits scfile=/scratch/kocevski/905567/ft2_4FGL_J1246.7-2548_daily_bin1481.fits outfile=/scratch/kocevski/905567/cmap_HighResolution_623203201_623462401_4FGL_J1246.7-2548_daily_bin1481.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/905567/ft1_filtered_4FGL_J1246.7-2548_daily_bin1481.fits evtable="EVENTS" scfile=/scratch/kocevski/905567/ft2_4FGL_J1246.7-2548_daily_bin1481.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/905567/Model_4FGL_J1246.7-2548_daily_bin1481.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/905567/ft1_filtered_4FGL_J1246.7-2548_daily_bin1481.fits..............................!
real 19.50
user 17.59
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10024E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10304E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .25143E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .18234E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7759.1       1.0000         .10000E-03   10000.    
     7 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9892.6       1.0000         .10000E-03   10000.    
     9 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    10 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    11 'norm      '    177.49       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .23453E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    15.253       1.0000         .10000E-03   10000.    
    17 'norm      '    .12576E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    .80167       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    45.040       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    22 'Prefactor '    .81311       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=   338.7691     FROM MIGRAD    STATUS=CONVERGED    454 CALLS     3680 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    219.06        .15851E-05** at limit **
   2  Prefactor     .10000E-03    185.28       -.62360E-06** at limit **
   3  norm          .10000E-03    65.175       -.19050E-06** at limit **
   4  Prefactor     .10000E-03    464.82       -.35600E-05** at limit **
   5  Prefactor     .10184E-03    6714.6       -.36073E-04** at limit **
   6  Prefactor     7749.2        8562.8       -.19791E-04   -.38413E-05
   7  Prefactor    10000.0        9958.5        .68741E-04** at limit **
   8  Prefactor    10000.0        5226.4       -.95210E-03    .11232E-05
   9  Prefactor    10000.0        6367.3        .12439E-04** at limit **
  10  Prefactor    10000.0        6377.8        .11238E-04** at limit **
  11  norm          177.83        221.92        .15219E-05    .29880E-04
  12  Prefactor     .10057E-03    9530.1       -.16385E-04** at limit **
  13  norm          .10001E-03    278.65        .29412E-05** at limit **
  14  norm          .10001E-03    161.01       -.19147E-05** at limit **
  15  Prefactor     .10000E-03    99.677        .68128E-06** at limit **
  16  norm          14.987        141.98       -.22011E-05   -.11998E-04
  17  norm          .12628E-01    59.260        .27509E-05   -.10791E-04
  18  norm          .82011        260.98        .42494E-04   -.74915E-04
  19  Prefactor     .10001E-03    202.84        .24158E-05** at limit **
  20  Prefactor     45.028        42.049       -.81239E-06   -.24569E-03
  21  Normalizat    .10000E-01    .42681        .24008E-04** at limit **
  22  Prefactor     .81327        .30726       -.76533E-05   -.21301E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000101844
  Prefactor  = 7749.22
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 177.827
  Prefactor  = 0.000100568
  norm       = 0.000100012
  norm       = 0.00010001
  Prefactor  = 0.0001
  norm       = 14.9866
  norm       = 0.0126283
  norm       = 0.820115
  Prefactor  = 0.000100006
  Prefactor  = 45.0282
  Normalizat = 0.01
  Prefactor  = 0.813275
 **********
 **   18 **HESSE 
 **********

 FCN=   338.7691     FROM HESSE     STATUS=OK           340 CALLS     4020 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    219.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    185.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    65.162        .14537E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    464.93        .21463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10184E-03    6740.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7749.2        8480.1        .47964E-04    .58218    
   7  Prefactor    10000.0        9969.5        .18280E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor    10000.0        5566.7        .19403E-02    1.5720    
   9  Prefactor    10000.0        6371.0        .20391E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor    10000.0        6381.2        .20515E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          177.83        222.90        .15147E-03   -1.3033    
  12  Prefactor     .10057E-03    9525.2        .20081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10001E-03    279.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10001E-03    161.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    99.616        .17988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          14.987        155.58        .10255E-03   -1.4934    
  17  norm          .12628E-01    257.19        .37862E-01   -1.5686    
  18  norm          .82011        293.12        .23019E-02   -1.5527    
  19  Prefactor     .10001E-03    203.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     45.028        42.353        .59740E-04   -1.4365    
  21  Normalizat    .10000E-01    .46015        .75419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .81327        .34706        .17317E-03   -.99241    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15829e-08
Minuit parameter uncertainties:
  1  0.0019821
  2  0.000569789
  3  8.65854e-05
  4  0.000240122
  5  0.171382
  6  6613.29
  7  0.751479
  8  185.818
  9  0.0521559
  10  0.0477869
  11  223.97
  12  0.189482
  13  0.00360127
  14  0.00251818
  15  0.000142864
  16  96.9001
  17  3.60567
  18  31.1621
  19  0.00216571
  20  42.3811
  21  1.30108e-05
  22  0.347997
Done.

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

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  1.778e+02  2.240e+02  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:  8.133e-01  3.480e-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.000e-02  1.301e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.05
Ra Dec: 191.689 -25.802
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 7.78e-06 +/- 9.79e-06
Energy Flux (Fixed Index): 2.99e-03 +/- 3.76e-03

TS (Fixed Index): 1.05
Ra Dec: 191.689 -25.802
Photon Flux Upper Limit: 2.84e-05 ph cm-2 s-1
Energy Flux Upper Limit: 1.09e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/905567/likelihoodResults_623203201_623462401_4FGL_J1246.7-2548_daily_bin1481.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) = 334.252318123
delta logL = 4.51679329464

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 332.748759258
delta logL = 6.02035216009

Fit tolerance = 1e-08

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

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

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          28.022        16.982        .18933E-02    .95605E-05
   2  alpha         5.0000        3.1127        .24885    ** at limit **
   3  Normalizat    .10000E-01    .23200        .12352    ** at limit **
   4  Prefactor     .65462        .23474        .41798E-01   -.51536E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 28.0215
  alpha      = 5
  Normalizat = 0.01
  Prefactor  = 0.654619
 **********
 **   18 **HESSE 
 **********

 FCN=   332.7488     FROM HESSE     STATUS=OK            25 CALLS      290 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          28.022        11.927        .39646E-04   -1.4649    
   2  alpha         5.0000        3.2292        .12863E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .10000E-01    .23256        .27132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .65462        .23380        .16664E-03   -1.0533    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.22417e-10
Minuit parameter uncertainties:
  1  11.928
  2  9.59621e-05
  3  2.49361e-06
  4  0.234154
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/905567': 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) = 332.748753458
delta logL = 6.02035795978

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  2.802e+01  1.193e+01  1.000e-04  1.000e+04 ( 1.000e-11)
276        alpha:  5.000e+00  9.596e-05  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:  6.546e-01  2.342e-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.000e-02  2.494e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.98
Ra Dec: 191.689 -25.802
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 6.34e-05 +/- 2.68e-05
Energy Flux (Free Index): 8.66e-03 +/- 3.67e-03

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/905567/cmap_HighResolution_623203201_623462401_4FGL_J1246.7-2548_daily_bin1481.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', comment='SUCCESS', photon_flux='7.78e-06', energy_flux2='8.66e-03', photon_flux_error='9.79e-06', dlogl='6.02e+00', energy_flux='2.99e-03', photon_flux2='6.34e-05', job_status='DONE', time_completed='2021-09-06 05:08:22.856099', photon_index_error2='0.00', photon_index2='5.00', ts='1.05', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='2.84e-05', energy_flux_error2='3.67e-03', EG='0.01', time_epoch_completed='1630930102.86', return_code='0', job_id='905567', GAL2='0.65', EG2='0.01', return_code2='0', energy_flux_error='3.76e-03', photon_flux_error2='2.68e-05', ts2='13.98', photon_index='2.21' WHERE bin_id='1481' AND source_name='4FGL J1246.7-2548' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:08:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0134>
Subject: Job 905567: <4FGL_J1246.7-2548_daily_bin1481> in cluster <slac> Done

Job <4FGL_J1246.7-2548_daily_bin1481> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 04:56:08 2021
Job was executed on host(s) <bullet0134>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 04:56:09 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:09 2021
Terminated at Mon Sep  6 05:08:23 2021
Results reported at Mon Sep  6 05:08:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1246.7-2548_daily_bin1481 191.689 -25.8018 623203201 623462401 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 :                                   352.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             214.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   734 sec.
    Turnaround time :                            735 sec.

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

