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


Performing analysis on: 4FGL_J0947.1-2541_daily_bin219
RA = 146.781, Dec = -25.6839
tmin = 296092801, tmax = 296352001
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='504830', job_status='RUN', time_executed='2021-09-01 02:20:23.762195', time_epoch_executed='1630488023.76' WHERE source_name='4FGL J0947.1-2541' and cadence='daily' and bin_id='219'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/504830

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/504830/ft1_4FGL_J0947.1-2541_daily_bin219.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/504830/ft2_4FGL_J0947.1-2541_daily_bin219.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/504830/ft1_4FGL_J0947.1-2541_daily_bin219.fits outfile=/scratch/kocevski/504830/ft1_filteredMKT_4FGL_J0947.1-2541_daily_bin219.fits ra=146.781 dec=-25.6839 rad=12.0 tmin=296092801.0 tmax=296352001.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.41
user 2.21
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/504830/ft1_filtered_4FGL_J0947.1-2541_daily_bin219.fits" evtable="EVENTS" scfile=/scratch/kocevski/504830/ft2_4FGL_J0947.1-2541_daily_bin219.fits sctable="SC_DATA" outfile=/scratch/kocevski/504830/ltcube_296092801_296352001_4FGL_J0947.1-2541_daily_bin219.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/504830/ft2_4FGL_J0947.1-2541_daily_bin219.fits
.....................!
real 12.45
user 12.04
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/504830/ft1_filtered_4FGL_J0947.1-2541_daily_bin219.fits evtable="EVENTS" scfile=/scratch/kocevski/504830/ft2_4FGL_J0947.1-2541_daily_bin219.fits sctable="SC_DATA" expcube=/scratch/kocevski/504830/ltcube_296092801_296352001_4FGL_J0947.1-2541_daily_bin219.fits outfile=/scratch/kocevski/504830/expmap_296092801_296352001_4FGL_J0947.1-2541_daily_bin219.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/504830/ltcube_296092801_296352001_4FGL_J0947.1-2541_daily_bin219.fits
.....................!
real 191.40
user 185.83
sys 5.04

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/504830/ft1_filtered_4FGL_J0947.1-2541_daily_bin219.fits scfile=/scratch/kocevski/504830/ft2_4FGL_J0947.1-2541_daily_bin219.fits outfile=/scratch/kocevski/504830/cmap_296092801_296352001_4FGL_J0947.1-2541_daily_bin219.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/504830/ft1_filtered_4FGL_J0947.1-2541_daily_bin219.fits scfile=/scratch/kocevski/504830/ft2_4FGL_J0947.1-2541_daily_bin219.fits outfile=/scratch/kocevski/504830/cmap_HighResolution_296092801_296352001_4FGL_J0947.1-2541_daily_bin219.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/504830/ft1_filtered_4FGL_J0947.1-2541_daily_bin219.fits evtable="EVENTS" scfile=/scratch/kocevski/504830/ft2_4FGL_J0947.1-2541_daily_bin219.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/504830/Model_4FGL_J0947.1-2541_daily_bin219.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/504830/ft1_filtered_4FGL_J0947.1-2541_daily_bin219.fits.....................!
real 85.22
user 83.54
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/504830/ft1_filtered_4FGL_J0947.1-2541_daily_bin219.fits', '/scratch/kocevski/504830/ft2_4FGL_J0947.1-2541_daily_bin219.fits', expMap='/scratch/kocevski/504830/expmap_296092801_296352001_4FGL_J0947.1-2541_daily_bin219.fits', expCube='/scratch/kocevski/504830/ltcube_296092801_296352001_4FGL_J0947.1-2541_daily_bin219.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/504830/Model_4FGL_J0947.1-2541_daily_bin219.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/504830/ft1_filtered_4FGL_J0947.1-2541_daily_bin219.fits
Spacecraft file(s): /scratch/kocevski/504830/ft2_4FGL_J0947.1-2541_daily_bin219.fits
Exposure map: /scratch/kocevski/504830/expmap_296092801_296352001_4FGL_J0947.1-2541_daily_bin219.fits
Exposure cube: /scratch/kocevski/504830/ltcube_296092801_296352001_4FGL_J0947.1-2541_daily_bin219.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/504830/Model_4FGL_J0947.1-2541_daily_bin219.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) = 7510.53407169

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2691       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.3031       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .18644E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    3.7593       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.3331       1.0000         .10000E-03   10000.    
    10 'norm      '    3.8182       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.2882       1.0000         .10000E-03   10000.    
    17 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    25.957       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2431       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .97243       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.

 FCN=   7509.535     FROM MIGRAD    STATUS=CONVERGED    726 CALLS     2065 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2761        16.068        .16032E-03   -.71621E-05
   2  Prefactor     .10000E-03    10.828        .18142E-02** at limit **
   3  Prefactor     2.2721        98.897        .27040E-03    .22283E-05
   4  Prefactor     .10000E-03    9.4629        .18142E-02** at limit **
   5  Prefactor     .10000E-03    30.919        .36285E-03** at limit **
   6  norm          .10000E-03    9.6436        .57299E-01** at limit **
   7  norm          3.7590        15.920        .20823E-03   -.43295E-04
   8  norm          .10000E-03    3.7101        .16289E-02** at limit **
   9  norm          3.3330        1.8394        .81680E-04   -.18734E-03
  10  norm          3.8189        12.140        .20656E-03   -.67698E-04
  11  Prefactor     .10000E-03    10.104        .18142E-02** at limit **
  12  Prefactor     .10000E-03    4.7055        .18142E-02** at limit **
  13  norm          .10000E-03    6.8749        .18142E-02** at limit **
  14  norm          .10000E-03    25.005        .38772E-02** at limit **
  15  Prefactor     .10000E-03    9.8231        .18142E-02** at limit **
  16  Prefactor     2.2833        85.520        .27138E-03    .11646E-04
  17  norm          .10000E-03    3.3000        .15258E-02** at limit **
  18  Prefactor     25.952        18.713        .78629E-04    .41063E-04
  19  Normalizat    1.2431        .25697        .34782E-03    .39484E-04
  20  Prefactor     .97244        .11179        .17063E-03    .26938E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.27606
  Prefactor  = 0.0001
  Prefactor  = 2.27213
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 3.75904
  norm       = 0.0001
  norm       = 3.33304
  norm       = 3.81888
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.2833
  norm       = 0.0001
  Prefactor  = 25.9522
  Normalizat = 1.24312
  Prefactor  = 0.972435
 **********
 **   18 **HESSE 
 **********

 FCN=   7509.535     FROM HESSE     STATUS=OK           281 CALLS     2346 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2761        16.066        .64129E-05   -1.5207    
   2  Prefactor     .10000E-03    10.829        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.2721        98.798        .10816E-04   -1.5406    
   4  Prefactor     .10000E-03    9.4629        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    30.920        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    8.1049        .63556E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.7590        15.919        .83292E-05   -1.5320    
   8  norm          .10000E-03    3.7102        .32578E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.3330        1.8394        .32672E-05   -1.5343    
  10  norm          3.8189        12.138        .82623E-05   -1.5317    
  11  Prefactor     .10000E-03    10.104        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.7056        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.8763        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    25.227        .77544E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.8241        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.2833        85.425        .10855E-04   -1.5406    
  17  norm          .10000E-03    3.3005        .30516E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     25.952        18.712        .15726E-04   -1.4689    
  19  Normalizat    1.2431        .25711        .13913E-04   -.85280    
  20  Prefactor     .97244        .11184        .34127E-04   -.93654    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36906e-10
Minuit parameter uncertainties:
  1  16.0767
  2  2.32579e-05
  3  30.0178
  4  3.09713e-05
  5  8.42758e-05
  6  0.000161403
  7  15.4781
  8  7.43142e-08
  9  1.83939
  10  12.1459
  11  1.48028e-05
  12  4.12075e-06
  13  1.9561e-06
  14  1.65582e-05
  15  1.6462e-05
  16  27.9747
  17  1.82734e-05
  18  18.7164
  19  0.257374
  20  0.111866
Done.

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

Extracting fit parameters...

4FGL J0947.1-2541
   Spectrum: LogParabola
268         norm:  1.000e-04  7.431e-08  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:  9.724e-01  1.119e-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.243e+00  2.574e-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: 3.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.77e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/504830/likelihoodResults_296092801_296352001_4FGL_J0947.1-2541_daily_bin219.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) = 7509.53595453
delta logL = -0.00127979376884

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7509.53467472
delta logL = 1.64836819749e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7566       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2431       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97243       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 TERMINATED WITHOUT CONVERGENCE.

 FCN=   7509.535     FROM MIGRAD    STATUS=FAILED        75 CALLS      221 TOTAL
                     EDM=   .26E-01    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    16.680         .0000    ** at limit **
   2  alpha         2.4193        1.6217         .0000       -.16950E-04
   3  Normalizat    1.2431        5.1266         .0000        .16574E-03
   4  Prefactor     .97243        5.1376         .0000        .34588E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7509.535     FROM SIMPLEX   STATUS=UNCHANGED    198 CALLS      419 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    16.680        .39220E-03** at limit **
   2  alpha         2.4193        1.6217        .17340E-06   -.16950E-04
   3  Normalizat    1.2431        5.1266        .51858E-06    .16574E-03
   4  Prefactor     .97243        5.1376        .31104E-06    .34588E-03
                               ERR DEF=  .500    
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7509.535     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      466 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    31.760        .56717E-01** at limit **
   2  alpha         2.4193        2.9385        .50000       -.17046E-04
   3  Normalizat    1.2431        .20978E-01    .34782E-03    .16578E-03
   4  Prefactor     .97243        .92857E-02    .17063E-03    .34587E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.41935
  Normalizat = 1.24312
  Prefactor  = 0.972435
 **********
 **   18 **HESSE 
 **********

 FCN=   7509.535     FROM HESSE     STATUS=OK            31 CALLS      497 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.8690        .27811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4193        3.6574        .50000       -.32266E-01
   3  Normalizat    1.2431        .24152        .13913E-04   -.85280    
   4  Prefactor     .97243        .10712        .34126E-04   -.93654    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.08972e-10
Minuit parameter uncertainties:
  1  7.2028e-07
  2  3.11928
  3  0.241736
  4  0.107143
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/504830': 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) = 7509.53467256
delta logL = 2.17493925447e-06

Extracting fit parameters...

4FGL J0947.1-2541
   Spectrum: LogParabola
268         norm:  1.000e-04  7.203e-07  1.000e-04  1.000e+04 ( 1.000e-13)
269        alpha:  2.419e+00  3.119e+00  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:  9.724e-01  1.071e-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.243e+00  2.417e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/504830/cmap_HighResolution_296092801_296352001_4FGL_J0947.1-2541_daily_bin219.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.77e-05', job_status='DONE', photon_flux_upper_limit='3.53e-08', time_completed='2021-09-01 02:32:02.433779', job_id='504830', GAL2='0.97', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1630488722.43', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.17e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.75' WHERE bin_id='219' AND source_name='4FGL J0947.1-2541' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:32:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0137>
Subject: Job 504830: <4FGL_J0947.1-2541_daily_bin219> in cluster <slac> Done

Job <4FGL_J0947.1-2541_daily_bin219> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 02:16:18 2021
Job was executed on host(s) <bullet0137>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:16:20 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:16:20 2021
Terminated at Wed Sep  1 02:32:03 2021
Results reported at Wed Sep  1 02:32:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0947.1-2541_daily_bin219 146.781 -25.6839 296092801 296352001 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 :                                   683.06 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             266.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            945 sec.

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

