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


Performing analysis on: 4FGL_J0947.1-2541_daily_bin940
RA = 146.781, Dec = -25.6839
tmin = 482976001, tmax = 483235201
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='509921', job_status='RUN', time_executed='2021-09-01 02:29:59.116707', time_epoch_executed='1630488599.12' WHERE source_name='4FGL J0947.1-2541' and cadence='daily' and bin_id='940'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/509921

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/509921/ft1_4FGL_J0947.1-2541_daily_bin940.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/509921/ft2_4FGL_J0947.1-2541_daily_bin940.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/509921/ft1_4FGL_J0947.1-2541_daily_bin940.fits outfile=/scratch/kocevski/509921/ft1_filteredMKT_4FGL_J0947.1-2541_daily_bin940.fits ra=146.781 dec=-25.6839 rad=12.0 tmin=482976001.0 tmax=483235201.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 4.11
user 3.89
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/509921/ft1_filtered_4FGL_J0947.1-2541_daily_bin940.fits" evtable="EVENTS" scfile=/scratch/kocevski/509921/ft2_4FGL_J0947.1-2541_daily_bin940.fits sctable="SC_DATA" outfile=/scratch/kocevski/509921/ltcube_482976001_483235201_4FGL_J0947.1-2541_daily_bin940.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/509921/ft2_4FGL_J0947.1-2541_daily_bin940.fits
.....................!
real 12.04
user 11.74
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/509921/ft1_filtered_4FGL_J0947.1-2541_daily_bin940.fits evtable="EVENTS" scfile=/scratch/kocevski/509921/ft2_4FGL_J0947.1-2541_daily_bin940.fits sctable="SC_DATA" expcube=/scratch/kocevski/509921/ltcube_482976001_483235201_4FGL_J0947.1-2541_daily_bin940.fits outfile=/scratch/kocevski/509921/expmap_482976001_483235201_4FGL_J0947.1-2541_daily_bin940.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/509921/ltcube_482976001_483235201_4FGL_J0947.1-2541_daily_bin940.fits
.....................!
real 190.20
user 185.52
sys 4.30

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/509921/ft1_filtered_4FGL_J0947.1-2541_daily_bin940.fits scfile=/scratch/kocevski/509921/ft2_4FGL_J0947.1-2541_daily_bin940.fits outfile=/scratch/kocevski/509921/cmap_482976001_483235201_4FGL_J0947.1-2541_daily_bin940.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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/509921/ft1_filtered_4FGL_J0947.1-2541_daily_bin940.fits scfile=/scratch/kocevski/509921/ft2_4FGL_J0947.1-2541_daily_bin940.fits outfile=/scratch/kocevski/509921/cmap_HighResolution_482976001_483235201_4FGL_J0947.1-2541_daily_bin940.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/509921/ft1_filtered_4FGL_J0947.1-2541_daily_bin940.fits evtable="EVENTS" scfile=/scratch/kocevski/509921/ft2_4FGL_J0947.1-2541_daily_bin940.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/509921/Model_4FGL_J0947.1-2541_daily_bin940.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/509921/ft1_filtered_4FGL_J0947.1-2541_daily_bin940.fits.....................!
real 95.56
user 94.14
sys 1.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5513       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.391       1.0000         .10000E-03   10000.    
     6 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    9.7939       1.0000         .10000E-03   10000.    
     8 'norm      '    11.560       1.0000         .10000E-03   10000.    
     9 'norm      '    1.3451       1.0000         .10000E-03   10000.    
    10 'norm      '    33.333       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      '    13.873       1.0000         .10000E-03   10000.    
    14 'norm      '    .10383E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.2123       1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.029       1.0000         .10000E-03   10000.    
    17 'norm      '    2.3148       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .32317       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.3467       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=   9349.096     FROM MIGRAD    STATUS=CONVERGED    397 CALLS     1992 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5523        10.048       -.27316E-06   -.90072E-04
   2  Prefactor     .10000E-03    33.693       -.11884E-06** at limit **
   3  Prefactor     .10000E-03    16.117       -.78628E-05** at limit **
   4  Prefactor     .10000E-03    8.2055       -.58476E-06** at limit **
   5  Prefactor     16.395        10.982        .61507E-07    .41745E-04
   6  norm          .10000E-03    2.1964        .12655E-07** at limit **
   7  norm          9.7940        16.943        .56983E-06   -.99604E-05
   8  norm          11.562        8.7455        .73432E-07    .27167E-04
   9  norm          1.3473        1.6005       -.10303E-07   -.99872E-03
  10  norm          33.338        12.530       -.61808E-06    .27824E-03
  11  Prefactor     .10000E-03    17.721        .74487E-05** at limit **
  12  Prefactor     .10000E-03    9.9895        .17029E-05** at limit **
  13  norm          13.896        12.084       -.34074E-05    .21828E-03
  14  norm          .10000E-03    16.512       -.41215E-06** at limit **
  15  Prefactor     4.2198        11.245       -.10730E-05    .12731E-04
  16  Prefactor     21.055        30.386        .35761E-04   -.63495E-03
  17  norm          2.3076        4.9521       -.11127E-04   -.14049E-02
  18  Prefactor     .10000E-03    5.4134        .21011E-07** at limit **
  19  Normalizat    .32224        .27156       -.50792E-05   -.10507E-03
  20  Prefactor     1.3470        .12114        .80104E-06    .35527E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.55231
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 16.3948
  norm       = 0.0001
  norm       = 9.79404
  norm       = 11.5617
  norm       = 1.34733
  norm       = 33.3384
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 13.8959
  norm       = 0.0001
  Prefactor  = 4.21982
  Prefactor  = 21.0554
  norm       = 2.30764
  Prefactor  = 0.0001
  Normalizat = 0.322242
  Prefactor  = 1.34703
 **********
 **   18 **HESSE 
 **********

 FCN=   9349.096     FROM HESSE     STATUS=OK           287 CALLS     2279 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5523        10.053        .21448E-03   -1.5331    
   2  Prefactor     .10000E-03    33.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.2072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.395        10.935        .98929E-04   -1.4898    
   6  norm          .10000E-03    2.2151        .13991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          9.7940        16.990        .12805E-03   -1.5082    
   8  norm          11.562        8.7395        .11783E-03   -1.5028    
   9  norm          1.3473        1.5321        .11927E-03   -1.5476    
  10  norm          33.338        12.501        .69406E-04   -1.4553    
  11  Prefactor     .10000E-03    17.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          13.896        11.877        .10754E-03   -1.4962    
  14  norm          .10000E-03    16.949        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.2198        11.163        .19635E-03   -1.5297    
  16  Prefactor     21.055        30.813        .87344E-04   -1.4790    
  17  norm          2.3076        5.0666        .25454E-03   -1.5404    
  18  Prefactor     .10000E-03    5.4194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .32224        .22861        .62616E-03   -1.2153    
  20  Prefactor     1.3470        .10659        .15176E-03   -.81919    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72297e-09
Minuit parameter uncertainties:
  1  10.058
  2  8.46603e-05
  3  0.000399708
  4  2.13946e-05
  5  10.936
  6  3.26905e-06
  7  16.9983
  8  8.74048
  9  1.53214
  10  12.5017
  11  0.00033099
  12  1.91127e-05
  13  11.8787
  14  4.64066e-05
  15  11.1687
  16  30.8363
  17  5.06751
  18  4.55978e-06
  19  0.229277
  20  0.10661
Done.

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

Extracting fit parameters...

4FGL J0947.1-2541
   Spectrum: LogParabola
268         norm:  1.156e+01  8.740e+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

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  1.347e+00  1.066e-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:  3.222e-01  2.293e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.09
Ra Dec: 146.781 -25.684
Photon Index (Fixed Index): 1.75 +/- 0.00
Photon Flux (Fixed Index): 2.16e-08 +/- 1.63e-08
Energy Flux (Fixed Index): 2.92e-05 +/- 2.21e-05

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) = 9349.07325442
delta logL = 0.0225128737893

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9349.0714739
delta logL = 0.0242933846475

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.066       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8899       1.0000          .0000       5.0000    
     3 'Normalizat'    .31743       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3478       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=   9349.071     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      253 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.066        8.9776        .12043E-03   -.31374E-03
   2  alpha         1.8902        .64182        .17156E-01   -.13366E-04
   3  Normalizat    .31737        .21791        .63079E-03   -.30170E-04
   4  Prefactor     1.3478        .10335        .15172E-03   -.10490E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.0662
  alpha      = 1.89021
  Normalizat = 0.317367
  Prefactor  = 1.34781
 **********
 **   18 **HESSE 
 **********

 FCN=   9349.071     FROM HESSE     STATUS=OK            25 CALLS      278 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.066        8.7797        .24087E-04   -1.5043    
   2  alpha         1.8902        .62769        .68624E-03   -.24640    
   3  Normalizat    .31737        .21758        .25232E-04   -1.2182    
   4  Prefactor     1.3478        .10326        .60689E-05   -.81896    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.53013e-11
Minuit parameter uncertainties:
  1  8.78069
  2  0.634918
  3  0.218163
  4  0.103278
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/509921': 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) = 9349.07147373
delta logL = 0.0242935605784

Extracting fit parameters...

4FGL J0947.1-2541
   Spectrum: LogParabola
268         norm:  1.107e+01  8.781e+00  1.000e-04  1.000e+04 ( 1.000e-13)
269        alpha:  1.890e+00  6.349e-01  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:  1.348e+00  1.033e-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:  3.174e-01  2.182e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.14
Ra Dec: 146.781 -25.684
Photon Index (Free Index): 1.89 +/- 0.63
Photon Flux (Free Index): 2.59e-08 +/- 2.81e-08
Energy Flux (Free Index): 2.52e-05 +/- 2.45e-05

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/509921/cmap_HighResolution_482976001_483235201_4FGL_J0947.1-2541_daily_bin940.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.16e-08', energy_flux2='2.52e-05', photon_flux_error='1.63e-08', dlogl='2.43e-02', energy_flux='2.92e-05', photon_flux2='2.59e-08', job_status='DONE', time_completed='2021-09-01 02:41:23.086184', photon_index_error2='0.63', photon_index2='1.89', ts='5.09', fit_tolerance='1e-08', GAL='1.35', photon_index_error='0.00', energy_flux_error2='2.45e-05', EG='0.32', time_epoch_completed='1630489283.09', return_code='0', job_id='509921', GAL2='1.35', EG2='0.32', return_code2='0', energy_flux_error='2.21e-05', photon_flux_error2='2.81e-08', ts2='5.14', photon_index='1.75' WHERE bin_id='940' AND source_name='4FGL J0947.1-2541' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:41:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0293>
Subject: Job 509921: <4FGL_J0947.1-2541_daily_bin940> in cluster <slac> Done

Job <4FGL_J0947.1-2541_daily_bin940> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 02:25:52 2021
Job was executed on host(s) <bullet0293>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:25:55 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:25:55 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_bin940 146.781 -25.6839 482976001 483235201 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 :                                   680.31 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             254.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            931 sec.

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

