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


Performing analysis on: 4FGL_J0947.1-2541_daily_bin211
RA = 146.781, Dec = -25.6839
tmin = 294019201, tmax = 294278401
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='504818', job_status='RUN', time_executed='2021-09-01 02:16:33.518506', time_epoch_executed='1630487793.52' WHERE source_name='4FGL J0947.1-2541' and cadence='daily' and bin_id='211'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/504818

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/504818/ft1_4FGL_J0947.1-2541_daily_bin211.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/504818/ft2_4FGL_J0947.1-2541_daily_bin211.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/504818/ft1_4FGL_J0947.1-2541_daily_bin211.fits outfile=/scratch/kocevski/504818/ft1_filteredMKT_4FGL_J0947.1-2541_daily_bin211.fits ra=146.781 dec=-25.6839 rad=12.0 tmin=294019201.0 tmax=294278401.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.31
user 2.94
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/504818/ft2_4FGL_J0947.1-2541_daily_bin211.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/504818/ft1_filteredMKT_4FGL_J0947.1-2541_daily_bin211.fits evtable="EVENTS" outfile="/scratch/kocevski/504818/ft1_filtered_4FGL_J0947.1-2541_daily_bin211.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.83
user 0.32
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/504818/ft1_filtered_4FGL_J0947.1-2541_daily_bin211.fits" evtable="EVENTS" scfile=/scratch/kocevski/504818/ft2_4FGL_J0947.1-2541_daily_bin211.fits sctable="SC_DATA" outfile=/scratch/kocevski/504818/ltcube_294019201_294278401_4FGL_J0947.1-2541_daily_bin211.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/504818/ft2_4FGL_J0947.1-2541_daily_bin211.fits
.....................!
real 12.46
user 11.90
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/504818/ft1_filtered_4FGL_J0947.1-2541_daily_bin211.fits evtable="EVENTS" scfile=/scratch/kocevski/504818/ft2_4FGL_J0947.1-2541_daily_bin211.fits sctable="SC_DATA" expcube=/scratch/kocevski/504818/ltcube_294019201_294278401_4FGL_J0947.1-2541_daily_bin211.fits outfile=/scratch/kocevski/504818/expmap_294019201_294278401_4FGL_J0947.1-2541_daily_bin211.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/504818/ltcube_294019201_294278401_4FGL_J0947.1-2541_daily_bin211.fits
.....................!
real 191.71
user 186.23
sys 4.45

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/504818/ft1_filtered_4FGL_J0947.1-2541_daily_bin211.fits scfile=/scratch/kocevski/504818/ft2_4FGL_J0947.1-2541_daily_bin211.fits outfile=/scratch/kocevski/504818/cmap_294019201_294278401_4FGL_J0947.1-2541_daily_bin211.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.57
user 0.39
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/504818/ft1_filtered_4FGL_J0947.1-2541_daily_bin211.fits evtable="EVENTS" scfile=/scratch/kocevski/504818/ft2_4FGL_J0947.1-2541_daily_bin211.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/504818/Model_4FGL_J0947.1-2541_daily_bin211.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/504818/ft1_filtered_4FGL_J0947.1-2541_daily_bin211.fits.....................!
real 111.97
user 110.16
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    56.962       1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.625       1.0000         .10000E-03   10000.    
     4 'Prefactor '    42.812       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.1009       1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    16.900       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .56238       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    13.285       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.0191       1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.816       1.0000         .10000E-03   10000.    
    17 'norm      '    1.5072       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .98522       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .96935       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=   11085.51     FROM MIGRAD    STATUS=CONVERGED    402 CALLS     2030 TOTAL
                     EDM=   .30E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.9109       -.23853E-06** at limit **
   2  Prefactor     56.960        29.324       -.17002E-05    .89488E-05
   3  Prefactor     19.622        21.839       -.36085E-05   -.35948E-05
   4  Prefactor     42.812        24.085       -.10619E-08    .42535E-05
   5  Prefactor     3.1011        4.9623       -.12204E-06   -.26881E-03
   6  norm          .10000E-03    2.1676        .78843E-06** at limit **
   7  norm          16.900        13.077       -.76117E-07    .20767E-05
   8  norm          .10000E-03    2.3426       -.48347E-07** at limit **
   9  norm          .56195        .85094       -.25537E-06   -.56073E-03
  10  norm          .10000E-03    3.0653        .76092E-07** at limit **
  11  Prefactor     .10000E-03    8.8504       -.75975E-06** at limit **
  12  Prefactor     .10000E-03    5.2734       -.13059E-06** at limit **
  13  norm          13.284        8.4966       -.18135E-06   -.12278E-04
  14  norm          .10000E-03    2.3592        .55916E-06** at limit **
  15  Prefactor     2.0216        4.1008        .25217E-06   -.29346E-03
  16  Prefactor     24.818        17.116        .14853E-05    .50183E-05
  17  norm          1.5067        2.3717        .53441E-07   -.83640E-04
  18  Prefactor     .10000E-03    22.025       -.89201E-06** at limit **
  19  Normalizat    .98527        .17083        .13366E-05    .33862E-04
  20  Prefactor     .96934        .76507E-01    .17466E-06    .10488E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 56.9603
  Prefactor  = 19.6221
  Prefactor  = 42.8123
  Prefactor  = 3.10107
  norm       = 0.0001
  norm       = 16.9003
  norm       = 0.0001
  norm       = 0.561948
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.2837
  norm       = 0.0001
  Prefactor  = 2.02159
  Prefactor  = 24.8185
  norm       = 1.50675
  Prefactor  = 0.0001
  Normalizat = 0.98527
  Prefactor  = 0.969343
 **********
 **   18 **HESSE 
 **********

 FCN=   11085.51     FROM HESSE     STATUS=OK           291 CALLS     2321 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.9157        .17538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     56.960        29.369        .53153E-04   -1.4197    
   3  Prefactor     19.622        21.867        .90411E-04   -1.4822    
   4  Prefactor     42.812        24.086        .61269E-04   -1.4398    
   5  Prefactor     3.1011        5.3148        .11514E-02   -1.5356    
   6  norm          .10000E-03    2.1844        .15116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          16.900        13.122        .97425E-04   -1.4886    
   8  norm          .10000E-03    2.3455        .15738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .56195        .79972        .11456E-02   -1.5558    
  10  norm          .10000E-03    3.0763        .17998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.8827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.2874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          13.284        8.4977        .10989E-03   -1.4979    
  14  norm          .10000E-03    2.3597        .15760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.0216        13.517        .14563E-02   -1.5424    
  16  Prefactor     24.818        17.057        .80412E-04   -1.4711    
  17  norm          1.5067        2.3314        .19112E-03   -1.5462    
  18  Prefactor     .10000E-03    22.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .98527        .19775        .35011E-03   -.93526    
  20  Prefactor     .96934        .88836E-01    .16167E-03   -.93759    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01104e-08
Minuit parameter uncertainties:
  1  1.81294e-06
  2  29.3765
  3  21.8756
  4  24.0919
  5  5.31565
  6  9.32177e-07
  7  13.1239
  8  1.1967e-06
  9  0.799736
  10  3.66889e-06
  11  1.04374e-05
  12  3.50522e-06
  13  8.49846
  14  4.1735e-06
  15  10.4579
  16  17.0607
  17  2.33149
  18  6.44768e-05
  19  0.1979
  20  0.0888494
Done.

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

Extracting fit parameters...

4FGL J0947.1-2541
   Spectrum: LogParabola
268         norm:  1.000e-04  1.197e-06  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.693e-01  8.885e-02  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:  9.853e-01  1.979e-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: 2.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.20e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/504818/likelihoodResults_294019201_294278401_4FGL_J0947.1-2541_daily_bin211.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) = 11085.508619
delta logL = -0.00202555620672

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11085.5065936
delta logL = -2.15770342038e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7538       1.0000          .0000       5.0000    
     3 'Normalizat'    .98515       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96940       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=   11085.42     FROM MIGRAD    STATUS=CONVERGED    205 CALLS      348 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .31969E-02    .74429E-02    .31337E-02   -.27508E-01
   2  alpha         5.0000        4.8066        .50000    ** at limit **
   3  Normalizat    .96251        .19733        .35011E-03    .30374E-03
   4  Prefactor     .97529        .88454E-01    .16167E-03    .43171E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00319686
  alpha      = 5
  Normalizat = 0.962506
  Prefactor  = 0.975286
 **********
 **   18 **HESSE 
 **********

 FCN=   11085.42     FROM HESSE     STATUS=OK            33 CALLS      381 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .31969E-02    .84731E-02    .11597E-03   -1.5719    
   2  alpha         5.0000        4.5240        .50000        1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .96251        .20107        .14004E-04   -.94297    
   4  Prefactor     .97529        .89039E-01    .32334E-04   -.93558    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3238e-10
Minuit parameter uncertainties:
  1  0.00847315
  2  0.00060222
  3  0.201226
  4  0.089052
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/504818': 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) = 11085.4248109
delta logL = 0.0817824934929

Extracting fit parameters...

4FGL J0947.1-2541
   Spectrum: LogParabola
268         norm:  3.197e-03  8.473e-03  1.000e-04  1.000e+04 ( 1.000e-13)
269        alpha:  5.000e+00  6.022e-04  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.753e-01  8.905e-02  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:  9.625e-01  2.012e-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/504818/cmap_HighResolution_294019201_294278401_4FGL_J0947.1-2541_daily_bin211.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.20e-05', job_status='DONE', photon_flux_upper_limit='2.37e-08', time_completed='2021-09-01 02:31:07.702836', job_id='504818', GAL2='0.98', fit_tolerance='1e-08', EG2='0.96', EG='0.99', time_epoch_completed='1630488667.7', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='8.18e-02', ts2='0.18', photon_index_error='0.00', photon_index='1.75' WHERE bin_id='211' AND source_name='4FGL J0947.1-2541' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:31:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 504818: <4FGL_J0947.1-2541_daily_bin211> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0947.1-2541_daily_bin211 146.781 -25.6839 294019201 294278401 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 :                                   858.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             375.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            891 sec.

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

