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


Performing analysis on: 4FGL_J1246.7-2548_daily_bin360
RA = 191.689, Dec = -25.8018
tmin = 332640001, tmax = 332899201
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='899297', job_status='RUN', time_executed='2021-09-06 04:36:28.642980', time_epoch_executed='1630928188.64' WHERE source_name='4FGL J1246.7-2548' and cadence='daily' and bin_id='360'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/899297

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/899297/ft1_4FGL_J1246.7-2548_daily_bin360.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/899297/ft2_4FGL_J1246.7-2548_daily_bin360.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/899297/ft1_4FGL_J1246.7-2548_daily_bin360.fits outfile=/scratch/kocevski/899297/ft1_filteredMKT_4FGL_J1246.7-2548_daily_bin360.fits ra=191.689 dec=-25.8018 rad=12.0 tmin=332640001.0 tmax=332899201.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.72
user 3.13
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/899297/ft1_filtered_4FGL_J1246.7-2548_daily_bin360.fits" evtable="EVENTS" scfile=/scratch/kocevski/899297/ft2_4FGL_J1246.7-2548_daily_bin360.fits sctable="SC_DATA" outfile=/scratch/kocevski/899297/ltcube_332640001_332899201_4FGL_J1246.7-2548_daily_bin360.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/899297/ft2_4FGL_J1246.7-2548_daily_bin360.fits
.....................!
real 11.85
user 11.51
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/899297/ft1_filtered_4FGL_J1246.7-2548_daily_bin360.fits evtable="EVENTS" scfile=/scratch/kocevski/899297/ft2_4FGL_J1246.7-2548_daily_bin360.fits sctable="SC_DATA" expcube=/scratch/kocevski/899297/ltcube_332640001_332899201_4FGL_J1246.7-2548_daily_bin360.fits outfile=/scratch/kocevski/899297/expmap_332640001_332899201_4FGL_J1246.7-2548_daily_bin360.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/899297/ltcube_332640001_332899201_4FGL_J1246.7-2548_daily_bin360.fits
.....................!
real 189.75
user 185.13
sys 4.26

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/899297/ft1_filtered_4FGL_J1246.7-2548_daily_bin360.fits scfile=/scratch/kocevski/899297/ft2_4FGL_J1246.7-2548_daily_bin360.fits outfile=/scratch/kocevski/899297/cmap_332640001_332899201_4FGL_J1246.7-2548_daily_bin360.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/899297/ft1_filtered_4FGL_J1246.7-2548_daily_bin360.fits scfile=/scratch/kocevski/899297/ft2_4FGL_J1246.7-2548_daily_bin360.fits outfile=/scratch/kocevski/899297/cmap_HighResolution_332640001_332899201_4FGL_J1246.7-2548_daily_bin360.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.57
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/899297/ft1_filtered_4FGL_J1246.7-2548_daily_bin360.fits evtable="EVENTS" scfile=/scratch/kocevski/899297/ft2_4FGL_J1246.7-2548_daily_bin360.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/899297/Model_4FGL_J1246.7-2548_daily_bin360.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/899297/ft1_filtered_4FGL_J1246.7-2548_daily_bin360.fits.....................!
real 112.30
user 110.73
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.9625       1.0000         .10000E-03   10000.    
     3 'norm      '    .10590E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.187       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11673E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    75.940       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.557       1.0000         .10000E-03   10000.    
    11 'norm      '    .65848       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .19695E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    2.8284       1.0000         .10000E-03   10000.    
    14 'norm      '    .10302E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.1382       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.7176       1.0000         .10000E-03   10000.    
    18 'norm      '    8.2956       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11068E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5198       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .87746       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=   6583.008     FROM MIGRAD    STATUS=CONVERGED    494 CALLS     2400 TOTAL
                     EDM=   .87E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.012       -.32450E-06** at limit **
   2  Prefactor     6.0069        20.923       -.46351E-07   -.91090E-04
   3  norm          .10000E-03    3.9695       -.16937E-05** at limit **
   4  Prefactor     14.185        9.1641       -.73009E-07   -.18044E-07
   5  Prefactor     .10000E-03    56.571       -.14539E-05** at limit **
   6  Prefactor     .10000E-03    40.150       -.23429E-06** at limit **
   7  Prefactor     .10000E-03    20.536       -.54545E-06** at limit **
   8  Prefactor     75.924        58.370       -.20520E-06   -.32321E-04
   9  Prefactor     .10000E-03    17.248        .11067E-06** at limit **
  10  Prefactor     19.569        18.128       -.44256E-07   -.47632E-04
  11  norm          .65894        1.1411        .34665E-06    .28382E-03
  12  Prefactor     .10000E-03    465.82       -.37713E-05** at limit **
  13  norm          2.8281        5.4388        .44747E-06   -.74066E-05
  14  norm          .10000E-03    5.7149       -.35748E-06** at limit **
  15  Prefactor     8.1383        6.6354       -.15410E-06   -.15202E-03
  16  norm          .10000E-03    1.8370        .26859E-07** at limit **
  17  norm          3.7174        3.2381        .13501E-06   -.11613E-04
  18  norm          8.2964        7.4010        .20090E-05   -.43151E-04
  19  Prefactor     .10000E-03    35.293        .75166E-06** at limit **
  20  Prefactor     .10000E-03    10.255        .15074E-06** at limit **
  21  Normalizat    1.5198        .29130        .70528E-06   -.67568E-04
  22  Prefactor     .87745        .12506       -.10697E-05    .37616E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.00693
  norm       = 0.0001
  Prefactor  = 14.1854
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 75.9239
  Prefactor  = 0.0001
  Prefactor  = 19.5688
  norm       = 0.658938
  Prefactor  = 0.000100001
  norm       = 2.82813
  norm       = 0.0001
  Prefactor  = 8.13827
  norm       = 0.0001
  norm       = 3.71742
  norm       = 8.29644
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.51976
  Prefactor  = 0.87745
 **********
 **   18 **HESSE 
 **********

 FCN=   6583.008     FROM HESSE     STATUS=OK           342 CALLS     2742 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.0069        20.842        .16445E-03   -1.5218    
   3  norm          .10000E-03    3.9596        .15686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.185        9.1687        .10634E-03   -1.4955    
   5  Prefactor     .10000E-03    56.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    40.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     75.924        58.330        .46077E-04   -1.3963    
   9  Prefactor     .10000E-03    17.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     19.569        18.155        .90568E-04   -1.4823    
  11  norm          .65894        1.0743        .10802E-02   -1.5546    
  12  Prefactor     .10000E-03    474.64        .18242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.8281        5.4220        .24182E-03   -1.5372    
  14  norm          .10000E-03    5.7542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.1383        6.6014        .14054E-03   -1.5137    
  16  norm          .10000E-03    1.8429        .10738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.7174        3.2369        .13105E-03   -1.5322    
  18  norm          8.2964        7.4011        .69595E-03   -1.5132    
  19  Prefactor     .10000E-03    35.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.5198        .34900        .35414E-03   -.77224    
  22  Prefactor     .87745        .14942        .19534E-03   -.96934    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1661e-10
Minuit parameter uncertainties:
  1  9.26632e-05
  2  20.8673
  3  3.42766e-06
  4  9.16962
  5  0.000222668
  6  0.000170294
  7  3.40549e-05
  8  58.3738
  9  3.08435e-06
  10  18.1598
  11  1.07437
  12  0.00168766
  13  5.42289
  14  7.11849e-06
  15  6.60197
  16  1.1464e-06
  17  3.23706
  18  7.40194
  19  0.000325099
  20  4.01441e-06
  21  0.349557
  22  0.149487
Done.

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

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  6.589e-01  1.074e+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:  8.775e-01  1.495e-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.520e+00  3.496e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/899297/likelihoodResults_332640001_332899201_4FGL_J1246.7-2548_daily_bin360.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) = 6582.33097323
delta logL = 0.67696196731

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6582.30549053
delta logL = 0.702444657494

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .58291       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3884       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4337       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89677       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=   6582.305     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      216 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .58243        7.0080        .10889E-01    .12221E-02
   2  alpha         3.3892        4.1780        .43734        .48752E-04
   3  Normalizat    1.4335        .66268E-01    .81889E-01    .96646E-05
   4  Prefactor     .89688        .29033E-01    .44964E-01    .30374E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.582427
  alpha      = 3.38921
  Normalizat = 1.43351
  Prefactor  = 0.896878
 **********
 **   18 **HESSE 
 **********

 FCN=   6582.305     FROM HESSE     STATUS=OK            35 CALLS      251 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .58243        1.2395        .49646E-03   -1.5555    
   2  alpha         3.3892        1.4254        .16610E-01    .36364    
   3  Normalizat    1.4335        .34956        .36250E-03   -.79664    
   4  Prefactor     .89688        .14998        .19328E-03   -.96250    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.09e-09
Minuit parameter uncertainties:
  1  1.23952
  2  1.53305
  3  0.350151
  4  0.150044
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/899297': 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) = 6582.30548994
delta logL = 0.702445251793

Extracting fit parameters...

4FGL J1246.7-2548
   Spectrum: LogParabola
275         norm:  5.824e-01  1.240e+00  1.000e-04  1.000e+04 ( 1.000e-11)
276        alpha:  3.389e+00  1.533e+00  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:  8.969e-01  1.500e-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.434e+00  3.502e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.94
Ra Dec: 191.689 -25.802
Photon Index (Free Index): 3.39 +/- 1.53
Photon Flux (Free Index): 1.11e-07 +/- 9.58e-08
Energy Flux (Free Index): 2.02e-05 +/- 1.77e-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/899297/cmap_HighResolution_332640001_332899201_4FGL_J1246.7-2548_daily_bin360.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.43e-05', comment='SUCCESS', energy_flux2='2.02e-05', dlogl='7.02e-01', photon_flux2='1.11e-07', job_status='DONE', time_completed='2021-09-06 04:48:37.706894', photon_index_error2='1.53', photon_index2='3.39', ts='0.48', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.41e-07', energy_flux_error2='1.77e-05', EG='1.52', time_epoch_completed='1630928917.71', return_code='0', job_id='899297', GAL2='0.90', EG2='1.43', return_code2='0', photon_flux_error2='9.58e-08', ts2='1.94', photon_index='2.21' WHERE bin_id='360' AND source_name='4FGL J1246.7-2548' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 04:48:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 899297: <4FGL_J1246.7-2548_daily_bin360> in cluster <slac> Done

Job <4FGL_J1246.7-2548_daily_bin360> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 04:36:14 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 04:36:16 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:36:16 2021
Terminated at Mon Sep  6 04:48:38 2021
Results reported at Mon Sep  6 04:48:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1246.7-2548_daily_bin360 191.689 -25.8018 332640001 332899201 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 :                                   724.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             326.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   741 sec.
    Turnaround time :                            744 sec.

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

