/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 228 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 = 7474
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0947.1-2541_daily_bin54
RA = 146.781, Dec = -25.6839
tmin = 253324801, tmax = 253584001
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='504528', job_status='RUN', time_executed='2021-09-01 02:19:59.702546', time_epoch_executed='1630487999.7' WHERE source_name='4FGL J0947.1-2541' and cadence='daily' and bin_id='54'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/504528

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/504528/ft1_4FGL_J0947.1-2541_daily_bin54.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/504528/ft2_4FGL_J0947.1-2541_daily_bin54.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/504528/ft1_4FGL_J0947.1-2541_daily_bin54.fits outfile=/scratch/kocevski/504528/ft1_filteredMKT_4FGL_J0947.1-2541_daily_bin54.fits ra=146.781 dec=-25.6839 rad=12.0 tmin=253324801.0 tmax=253584001.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 1.44
user 1.26
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/504528/ft1_filtered_4FGL_J0947.1-2541_daily_bin54.fits" evtable="EVENTS" scfile=/scratch/kocevski/504528/ft2_4FGL_J0947.1-2541_daily_bin54.fits sctable="SC_DATA" outfile=/scratch/kocevski/504528/ltcube_253324801_253584001_4FGL_J0947.1-2541_daily_bin54.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/504528/ft2_4FGL_J0947.1-2541_daily_bin54.fits
.....................!
real 16.86
user 16.45
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/504528/ft1_filtered_4FGL_J0947.1-2541_daily_bin54.fits evtable="EVENTS" scfile=/scratch/kocevski/504528/ft2_4FGL_J0947.1-2541_daily_bin54.fits sctable="SC_DATA" expcube=/scratch/kocevski/504528/ltcube_253324801_253584001_4FGL_J0947.1-2541_daily_bin54.fits outfile=/scratch/kocevski/504528/expmap_253324801_253584001_4FGL_J0947.1-2541_daily_bin54.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/504528/ltcube_253324801_253584001_4FGL_J0947.1-2541_daily_bin54.fits
.....................!
real 190.20
user 185.91
sys 3.94

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/504528/ft1_filtered_4FGL_J0947.1-2541_daily_bin54.fits scfile=/scratch/kocevski/504528/ft2_4FGL_J0947.1-2541_daily_bin54.fits outfile=/scratch/kocevski/504528/cmap_253324801_253584001_4FGL_J0947.1-2541_daily_bin54.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/504528/ft1_filtered_4FGL_J0947.1-2541_daily_bin54.fits scfile=/scratch/kocevski/504528/ft2_4FGL_J0947.1-2541_daily_bin54.fits outfile=/scratch/kocevski/504528/cmap_HighResolution_253324801_253584001_4FGL_J0947.1-2541_daily_bin54.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/504528/ft1_filtered_4FGL_J0947.1-2541_daily_bin54.fits evtable="EVENTS" scfile=/scratch/kocevski/504528/ft2_4FGL_J0947.1-2541_daily_bin54.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/504528/Model_4FGL_J0947.1-2541_daily_bin54.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/504528/ft1_filtered_4FGL_J0947.1-2541_daily_bin54.fits.....................!
real 104.50
user 103.17
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31964E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.6994       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    23.163       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.8368       1.0000         .10000E-03   10000.    
    10 'norm      '    .13819E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    19.653       1.0000         .10000E-03   10000.    
    14 'norm      '    12.710       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.8588       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.454       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1956       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .95884       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10104.23     FROM MIGRAD    STATUS=CONVERGED     72 CALLS     1409 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.3083       -.67182E-06** at limit **
   2  Prefactor     .10000E-03    6.3973        .11939E-04** at limit **
   3  Prefactor     .10000E-03    45.521       -.67528E-05** at limit **
   4  Prefactor     .10000E-03    4.1558       -.81798E-05** at limit **
   5  Prefactor     2.6990        1.0215        .13952E-06   -.17779E-04
   6  norm          .10000E-03    2.5694       -.14400E-06** at limit **
   7  norm          23.159        1.0480       -.12642E-06    .29828E-03
   8  norm          .10000E-03    5.9270       -.88464E-06** at limit **
   9  norm          1.8367        1.2863        .53169E-07   -.16708E-03
  10  norm          .10000E-03    18.051        .14404E-04** at limit **
  11  Prefactor     .10000E-03    4.7220        .75065E-05** at limit **
  12  Prefactor     .10000E-03    3.2992       -.27185E-07** at limit **
  13  norm          19.649        1.0092        .79874E-07   -.15512E-03
  14  norm          12.708        1.0058       -.30724E-07    .42181E-04
  15  Prefactor     .10000E-03    4.5012        .37118E-06** at limit **
  16  Prefactor     .10000E-03    9.5689       -.19240E-04** at limit **
  17  norm          2.8594        3.6127       -.22707E-05   -.31058E-03
  18  Prefactor     11.454        1.0017       -.31129E-07    .18647E-04
  19  Normalizat    1.1956        .21168        .48689E-06    .65051E-04
  20  Prefactor     .95882        .94097E-01   -.70566E-06    .13372E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  Prefactor  = 2.69901
  norm       = 0.0001
  norm       = 23.1594
  norm       = 0.0001
  norm       = 1.83674
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 19.6493
  norm       = 12.7075
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 2.85936
  Prefactor  = 11.454
  Normalizat = 1.19562
  Prefactor  = 0.958821
 **********
 **   18 **HESSE 
 **********

 FCN=   10104.23     FROM HESSE     STATUS=OK           335 CALLS     1744 TOTAL
                     EDM=   .29E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.9068        .10681       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.425        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    45.416        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.203        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.6990        12.472        .61987E-02   -1.5379    
   6  norm          .10000E-03    2.5327        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          23.159        16.163        .20807E-02   -1.4745    
   8  norm          .10000E-03    5.7654        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.8367        1.2873        .76960E-02   -1.5437    
  10  norm          .10000E-03    17.553        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.556        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.2980        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          19.649        11.691        .22587E-02   -1.4821    
  14  norm          12.708        9.0570        .28090E-02   -1.4995    
  15  Prefactor     .10000E-03    4.4945        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.077        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.8594        3.6373        .60110E-02   -1.5370    
  18  Prefactor     11.454        12.511        .29593E-02   -1.5031    
  19  Normalizat    1.1956        .18850        .77570E-01   -.86738    
  20  Prefactor     .95882        .82506E-01    .45751E-01   -.94115    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86785e-07
Minuit parameter uncertainties:
  1  0.000158079
  2  0.000213693
  3  0.000697497
  4  0.000258921
  5  11.6076
  6  1.94028e-05
  7  16.1664
  8  7.36642e-05
  9  1.28729
  10  3.55232e-05
  11  2.65474e-05
  12  9.01155e-07
  13  11.6927
  14  9.05794
  15  1.97408e-05
  16  0.00032193
  17  3.63761
  18  12.514
  19  0.188603
  20  0.0825169
Done.

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

Extracting fit parameters...

4FGL J0947.1-2541
   Spectrum: LogParabola
268         norm:  1.000e-04  7.366e-05  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.588e-01  8.252e-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:  1.196e+00  1.886e-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.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.98e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/504528/likelihoodResults_253324801_253584001_4FGL_J0947.1-2541_daily_bin54.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) = 10104.2309355
delta logL = -0.000804914270702

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10104.2301306
delta logL = 2.99114617519e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7605       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1956       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95882       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=   10104.23     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      253 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    929.32        .36285E-03** at limit **
   2  alpha         1.8754        3.7613        .50000        .78944E-07
   3  Normalizat    1.1956        .82962E-01    .34334E-03    .84768E-04
   4  Prefactor     .95882        .37597E-01    .17051E-03    .18395E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.87539
  Normalizat = 1.19562
  Prefactor  = 0.958821
 **********
 **   18 **HESSE 
 **********

 FCN=   10104.23     FROM HESSE     STATUS=OK            29 CALLS      282 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.4820        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8754        3.9474        .50000       -.25252    
   3  Normalizat    1.1956        .20670        .13733E-04   -.86738    
   4  Prefactor     .95882        .93724E-01    .34101E-04   -.94115    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.38045e-11
Minuit parameter uncertainties:
  1  2.46256e-07
  2  177.058
  3  0.206841
  4  0.0937394
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/504528': 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) = 10104.2301304
delta logL = 2.03423041967e-07

Extracting fit parameters...

4FGL J0947.1-2541
   Spectrum: LogParabola
268         norm:  1.000e-04  2.463e-07  1.000e-04  1.000e+04 ( 1.000e-13)
269        alpha:  1.875e+00  1.771e+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:  9.588e-01  9.374e-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:  1.196e+00  2.068e-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/504528/cmap_HighResolution_253324801_253584001_4FGL_J0947.1-2541_daily_bin54.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.98e-05', job_status='DONE', photon_flux_upper_limit='2.95e-08', time_completed='2021-09-01 02:32:21.997499', job_id='504528', GAL2='0.96', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1630488742.0', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.03e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.75' WHERE bin_id='54' AND source_name='4FGL J0947.1-2541' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:32:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 504528: <4FGL_J0947.1-2541_daily_bin54> in cluster <slac> Done

Job <4FGL_J0947.1-2541_daily_bin54> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 02:15:52 2021
Job was executed on host(s) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:15:54 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:15:54 2021
Terminated at Wed Sep  1 02:32:22 2021
Results reported at Wed Sep  1 02:32:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0947.1-2541_daily_bin54 146.781 -25.6839 253324801 253584001 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 :                                   717.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            990 sec.

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

