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


Performing analysis on: 4FGL_J0947.1-2541_daily_bin1302
RA = 146.781, Dec = -25.6839
tmin = 576806401, tmax = 577065601
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='511293', job_status='RUN', time_executed='2021-09-01 02:32:21.713746', time_epoch_executed='1630488741.71' WHERE source_name='4FGL J0947.1-2541' and cadence='daily' and bin_id='1302'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/511293

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/511293/ft1_4FGL_J0947.1-2541_daily_bin1302.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/511293/ft2_4FGL_J0947.1-2541_daily_bin1302.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/511293/ft1_4FGL_J0947.1-2541_daily_bin1302.fits outfile=/scratch/kocevski/511293/ft1_filteredMKT_4FGL_J0947.1-2541_daily_bin1302.fits ra=146.781 dec=-25.6839 rad=12.0 tmin=576806401.0 tmax=577065601.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.20
user 2.86
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/511293/ft2_4FGL_J0947.1-2541_daily_bin1302.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/511293/ft2_4FGL_J0947.1-2541_daily_bin1302.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/511293/ft1_filteredMKT_4FGL_J0947.1-2541_daily_bin1302.fits evtable="EVENTS" outfile="/scratch/kocevski/511293/ft1_filtered_4FGL_J0947.1-2541_daily_bin1302.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.65
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/511293/ft1_filtered_4FGL_J0947.1-2541_daily_bin1302.fits" evtable="EVENTS" scfile=/scratch/kocevski/511293/ft2_4FGL_J0947.1-2541_daily_bin1302.fits sctable="SC_DATA" outfile=/scratch/kocevski/511293/ltcube_576806401_577065601_4FGL_J0947.1-2541_daily_bin1302.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/511293/ft2_4FGL_J0947.1-2541_daily_bin1302.fits
.....................!
real 12.27
user 11.93
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/511293/ft1_filtered_4FGL_J0947.1-2541_daily_bin1302.fits evtable="EVENTS" scfile=/scratch/kocevski/511293/ft2_4FGL_J0947.1-2541_daily_bin1302.fits sctable="SC_DATA" expcube=/scratch/kocevski/511293/ltcube_576806401_577065601_4FGL_J0947.1-2541_daily_bin1302.fits outfile=/scratch/kocevski/511293/expmap_576806401_577065601_4FGL_J0947.1-2541_daily_bin1302.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/511293/ltcube_576806401_577065601_4FGL_J0947.1-2541_daily_bin1302.fits
.....................!
real 191.11
user 186.20
sys 3.66

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
Added 174 point sources and 0 extended sources

Setting source of interest to:
4FGL J0947.1-2541 @ 146.781 -25.6839

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/511293/ft1_filtered_4FGL_J0947.1-2541_daily_bin1302.fits scfile=/scratch/kocevski/511293/ft2_4FGL_J0947.1-2541_daily_bin1302.fits outfile=/scratch/kocevski/511293/cmap_576806401_577065601_4FGL_J0947.1-2541_daily_bin1302.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=146.781 yref=-25.6839 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/511293/ft1_filtered_4FGL_J0947.1-2541_daily_bin1302.fits scfile=/scratch/kocevski/511293/ft2_4FGL_J0947.1-2541_daily_bin1302.fits outfile=/scratch/kocevski/511293/cmap_HighResolution_576806401_577065601_4FGL_J0947.1-2541_daily_bin1302.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=146.781 yref=-25.6839 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.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/511293/ft1_filtered_4FGL_J0947.1-2541_daily_bin1302.fits evtable="EVENTS" scfile=/scratch/kocevski/511293/ft2_4FGL_J0947.1-2541_daily_bin1302.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/511293/Model_4FGL_J0947.1-2541_daily_bin1302.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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/511293/ft1_filtered_4FGL_J0947.1-2541_daily_bin1302.fits.....................!
real 59.79
user 58.07
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/511293/ft1_filtered_4FGL_J0947.1-2541_daily_bin1302.fits', '/scratch/kocevski/511293/ft2_4FGL_J0947.1-2541_daily_bin1302.fits', expMap='/scratch/kocevski/511293/expmap_576806401_577065601_4FGL_J0947.1-2541_daily_bin1302.fits', expCube='/scratch/kocevski/511293/ltcube_576806401_577065601_4FGL_J0947.1-2541_daily_bin1302.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/511293/Model_4FGL_J0947.1-2541_daily_bin1302.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0947.1-2541'

4FGL J0947.1-2541
   Spectrum: LogParabola
268         norm:  2.329e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
269        alpha:  1.751e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
270         beta:  8.622e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
271           Eb:  2.074e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/511293/ft1_filtered_4FGL_J0947.1-2541_daily_bin1302.fits
Spacecraft file(s): /scratch/kocevski/511293/ft2_4FGL_J0947.1-2541_daily_bin1302.fits
Exposure map: /scratch/kocevski/511293/expmap_576806401_577065601_4FGL_J0947.1-2541_daily_bin1302.fits
Exposure cube: /scratch/kocevski/511293/ltcube_576806401_577065601_4FGL_J0947.1-2541_daily_bin1302.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/511293/Model_4FGL_J0947.1-2541_daily_bin1302.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) = 4732.86075487

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    43.602       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.2653       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.3841       1.0000         .10000E-03   10000.    
    10 'norm      '    .10398E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    35.252       1.0000         .10000E-03   10000.    
    15 'Prefactor '    41.959       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4024       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .82695       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4732.855     FROM MIGRAD    STATUS=CONVERGED    393 CALLS     1984 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.036        .92346E-05** at limit **
   2  Prefactor     .10000E-03    19.606        .34060E-06** at limit **
   3  Prefactor     43.613        45.802        .11562E-04   -.37839E-04
   4  Prefactor     .10000E-03    64.850        .18518E-04** at limit **
   5  Prefactor     3.2556        38.269       -.90591E-05   -.60303E-04
   6  norm          .10000E-03    2.9983       -.71149E-07** at limit **
   7  norm          .10000E-03    20.279       -.25995E-05** at limit **
   8  norm          .10000E-03    4.6981        .27299E-08** at limit **
   9  norm          5.3846        2.4886       -.14053E-07   -.85782E-04
  10  norm          .10000E-03    68.692       -.17724E-04** at limit **
  11  Prefactor     .10000E-03    12.870        .35139E-05** at limit **
  12  Prefactor     .10000E-03    24.181        .83057E-05** at limit **
  13  norm          .10000E-03    7.2584        .14232E-06** at limit **
  14  norm          35.236        22.020       -.33923E-05    .15518E-03
  15  Prefactor     41.976        31.079        .12307E-04    .15156E-03
  16  Prefactor     .10000E-03    20.905       -.37610E-05** at limit **
  17  norm          .10000E-03    12.211       -.11120E-04** at limit **
  18  Prefactor     .10000E-03    20.842       -.39367E-05** at limit **
  19  Normalizat    1.4021        .29043       -.74337E-06    .58745E-04
  20  Prefactor     .82704        .11365       -.74093E-06    .13960E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.6132
  Prefactor  = 0.0001
  Prefactor  = 3.25561
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.38457
  norm       = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 35.2359
  Prefactor  = 41.9758
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.40206
  Prefactor  = 0.827043
 **********
 **   18 **HESSE 
 **********

 FCN=   4732.855     FROM HESSE     STATUS=OK           277 CALLS     2261 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     43.613        45.665        .60713E-04   -1.4386    
   4  Prefactor     .10000E-03    65.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.2556        39.279        .22411E-03   -1.5347    
   6  norm          .10000E-03    3.0050        .11633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    20.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.7030        .14564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.3846        2.4922        .70960E-04   -1.5244    
  10  norm          .10000E-03    69.703        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    24.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    7.2649        .18099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          35.236        21.997        .67496E-04   -1.4520    
  15  Prefactor     41.976        31.345        .61886E-04   -1.4411    
  16  Prefactor     .10000E-03    20.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    12.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    20.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.4021        .33657        .33475E-03   -.80569    
  20  Prefactor     .82704        .13160        .17404E-03   -.98739    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69032e-10
Minuit parameter uncertainties:
  1  8.10729e-05
  2  2.80619e-05
  3  45.7021
  4  0.000170386
  5  22.6348
  6  1.00909e-05
  7  2.36904e-05
  8  8.34196e-07
  9  2.49224
  10  0.00101592
  11  4.08101e-06
  12  5.48844e-05
  13  3.0074e-05
  14  22.0022
  15  31.3568
  16  2.00372e-05
  17  0.00012401
  18  0.000117068
  19  0.337101
  20  0.131652
Done.

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

Extracting fit parameters...

4FGL J0947.1-2541
   Spectrum: LogParabola
268         norm:  1.000e-04  8.342e-07  1.000e-04  1.000e+04 ( 1.000e-13)
269        alpha:  1.751e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
270         beta:  8.622e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
271           Eb:  2.074e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  8.270e-01  1.317e-01  0.000e+00  1.000e+01 ( 1.000e+00)
578        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
579        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
576   Normalization:  1.402e+00  3.371e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 146.781 -25.684
Photon Flux Upper Limit: 4.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.23e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/511293/likelihoodResults_576806401_577065601_4FGL_J0947.1-2541_daily_bin1302.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): 102
logL (Free Index) = 4732.85641873
delta logL = -0.000997348790406

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4732.85542135
delta logL = 2.96331563732e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7416       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4020       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82705       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4732.855     FROM MIGRAD    STATUS=FAILED        94 CALLS      242 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    343.04        .14611E-02** at limit **
   2  alpha         1.5288        3.1662        .50000       -.13824E-07
   3  Normalizat    1.4021        .70511E-01    .33475E-03    .11547E-04
   4  Prefactor     .82704        .29217E-01    .17404E-03    .24822E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4732.855     FROM SIMPLEX   STATUS=UNCHANGED    184 CALLS      426 TOTAL
                     EDM=   .67E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    343.04        .29338E-03** at limit **
   2  alpha         1.5288        3.1662        .11498E-05   -.13824E-07
   3  Normalizat    1.4021        .70511E-01    .53767E-07    .11547E-04
   4  Prefactor     .82704        .29217E-01    .16999E-07    .24822E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4732.855     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      460 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1063.6        .29221E-03** at limit **
   2  alpha         1.5317        2.7631        .50000        .10239E-06
   3  Normalizat    1.4021        .21246        .13390E-04    .11547E-04
   4  Prefactor     .82704        .88070E-01    .69617E-05    .24822E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.53168
  Normalizat = 1.40206
  Prefactor  = 0.827043
 **********
 **   18 **HESSE 
 **********

 FCN=   4732.855     FROM HESSE     STATUS=OK            29 CALLS      489 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.2166        .58442E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5317        3.4661        .50000       -.39773    
   3  Normalizat    1.4021        .31215        .26780E-05   -.80569    
   4  Prefactor     .82704        .12946        .13923E-05   -.98739    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08606e-10
Minuit parameter uncertainties:
  1  8.09181e-05
  2  195.5
  3  0.312571
  4  0.129505
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/511293': 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) = 4732.85542095
delta logL = 4.24984136771e-07

Extracting fit parameters...

4FGL J0947.1-2541
   Spectrum: LogParabola
268         norm:  1.000e-04  8.092e-05  1.000e-04  1.000e+04 ( 1.000e-13)
269        alpha:  1.532e+00  1.955e+02  0.000e+00  5.000e+00 ( 1.000e+00)
270         beta:  8.622e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
271           Eb:  2.074e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  8.270e-01  1.295e-01  0.000e+00  1.000e+01 ( 1.000e+00)
578        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
579        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
576   Normalization:  1.402e+00  3.126e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 146.781 -25.684

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/511293/cmap_HighResolution_576806401_577065601_4FGL_J0947.1-2541_daily_bin1302.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.23e-05', job_status='DONE', photon_flux_upper_limit='4.62e-08', time_completed='2021-09-01 02:41:22.404461', job_id='511293', GAL2='0.83', fit_tolerance='1e-08', EG2='1.40', EG='1.40', time_epoch_completed='1630489282.4', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='4.25e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.75' WHERE bin_id='1302' AND source_name='4FGL J0947.1-2541' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:41:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 511293: <4FGL_J0947.1-2541_daily_bin1302> in cluster <slac> Done

Job <4FGL_J0947.1-2541_daily_bin1302> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 02:31:06 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:31:07 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 02:31:07 2021
Terminated at Wed Sep  1 02:41:23 2021
Results reported at Wed Sep  1 02:41:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0947.1-2541_daily_bin1302 146.781 -25.6839 576806401 577065601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0947.1-2541 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   534.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             320.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   615 sec.
    Turnaround time :                            617 sec.

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

