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


Performing analysis on: 4FGL_J0047.9+3947_monthly_bin124
RA = 11.9763, Dec = 39.7975
tmin = 558403201, tmax = 560995201
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='348107', job_status='RUN', time_executed='2021-10-08 21:42:08.075953', time_epoch_executed='1633754528.08' WHERE source_name='4FGL J0047.9+3947' and cadence='monthly' and bin_id='124'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/348107

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

Retrieving the FT1 file...

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

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

Retrieving 458 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/348107/ft1_4FGL_J0047.9+3947_monthly_bin124.fits


Retrieving the FT1 file...

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

Retrieving 458 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/348107/ft2_4FGL_J0047.9+3947_monthly_bin124.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/348107/ft1_4FGL_J0047.9+3947_monthly_bin124.fits outfile=/scratch/kocevski/348107/ft1_filteredMKT_4FGL_J0047.9+3947_monthly_bin124.fits ra=11.9763 dec=39.7975 rad=12.0 tmin=558403201.0 tmax=560995201.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 31.75
user 30.91
sys 0.75

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/348107/ft2_4FGL_J0047.9+3947_monthly_bin124.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/348107/ft2_4FGL_J0047.9+3947_monthly_bin124.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/348107/ft1_filteredMKT_4FGL_J0047.9+3947_monthly_bin124.fits evtable="EVENTS" outfile="/scratch/kocevski/348107/ft1_filtered_4FGL_J0047.9+3947_monthly_bin124.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.64
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/348107/ft1_filtered_4FGL_J0047.9+3947_monthly_bin124.fits" evtable="EVENTS" scfile=/scratch/kocevski/348107/ft2_4FGL_J0047.9+3947_monthly_bin124.fits sctable="SC_DATA" outfile=/scratch/kocevski/348107/ltcube_558403201_560995201_4FGL_J0047.9+3947_monthly_bin124.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/348107/ft2_4FGL_J0047.9+3947_monthly_bin124.fits
.....................!
real 104.69
user 104.20
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/348107/ft1_filtered_4FGL_J0047.9+3947_monthly_bin124.fits evtable="EVENTS" scfile=/scratch/kocevski/348107/ft2_4FGL_J0047.9+3947_monthly_bin124.fits sctable="SC_DATA" expcube=/scratch/kocevski/348107/ltcube_558403201_560995201_4FGL_J0047.9+3947_monthly_bin124.fits outfile=/scratch/kocevski/348107/expmap_558403201_560995201_4FGL_J0047.9+3947_monthly_bin124.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/348107/ltcube_558403201_560995201_4FGL_J0047.9+3947_monthly_bin124.fits
.....................!
real 190.17
user 185.69
sys 4.16

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

Setting source of interest to:
4FGL J0047.9+3947 @ 11.9763 39.7975

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/348107/ft1_filtered_4FGL_J0047.9+3947_monthly_bin124.fits scfile=/scratch/kocevski/348107/ft2_4FGL_J0047.9+3947_monthly_bin124.fits outfile=/scratch/kocevski/348107/cmap_558403201_560995201_4FGL_J0047.9+3947_monthly_bin124.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=11.9763 yref=39.7975 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.82
user 0.62
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/348107/ft1_filtered_4FGL_J0047.9+3947_monthly_bin124.fits scfile=/scratch/kocevski/348107/ft2_4FGL_J0047.9+3947_monthly_bin124.fits outfile=/scratch/kocevski/348107/cmap_HighResolution_558403201_560995201_4FGL_J0047.9+3947_monthly_bin124.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=11.9763 yref=39.7975 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.80
user 0.62
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/348107/ft1_filtered_4FGL_J0047.9+3947_monthly_bin124.fits evtable="EVENTS" scfile=/scratch/kocevski/348107/ft2_4FGL_J0047.9+3947_monthly_bin124.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/348107/Model_4FGL_J0047.9+3947_monthly_bin124.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/348107/ft1_filtered_4FGL_J0047.9+3947_monthly_bin124.fits.....................!
real 1194.52
user 1191.12
sys 1.41

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/348107/ft1_filtered_4FGL_J0047.9+3947_monthly_bin124.fits', '/scratch/kocevski/348107/ft2_4FGL_J0047.9+3947_monthly_bin124.fits', expMap='/scratch/kocevski/348107/expmap_558403201_560995201_4FGL_J0047.9+3947_monthly_bin124.fits', expCube='/scratch/kocevski/348107/ltcube_558403201_560995201_4FGL_J0047.9+3947_monthly_bin124.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/348107/Model_4FGL_J0047.9+3947_monthly_bin124.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0047.9+3947'

4FGL J0047.9+3947
   Spectrum: PowerLaw
158    Prefactor:  1.715e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
159        Index:  1.981e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
160        Scale:  2.140e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/348107/ft1_filtered_4FGL_J0047.9+3947_monthly_bin124.fits
Spacecraft file(s): /scratch/kocevski/348107/ft2_4FGL_J0047.9+3947_monthly_bin124.fits
Exposure map: /scratch/kocevski/348107/expmap_558403201_560995201_4FGL_J0047.9+3947_monthly_bin124.fits
Exposure cube: /scratch/kocevski/348107/ltcube_558403201_560995201_4FGL_J0047.9+3947_monthly_bin124.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/348107/Model_4FGL_J0047.9+3947_monthly_bin124.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) = 139496.833585

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5775       1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.216       1.0000         .10000E-03   10000.    
     3 'norm      '    1.4783       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.4490       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .49472       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13054E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .21562E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    1.9645       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10238E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11091E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.9112       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10720E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.2712       1.0000         .10000E-03   10000.    
    16 'norm      '    .48848       1.0000         .10000E-03   10000.    
    17 'norm      '    1.1142       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.9608       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.721       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .19010E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .44465       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12334E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.0229       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .92003       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0565       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5440E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   139495.8     FROM MIGRAD    STATUS=CONVERGED    649 CALLS     2763 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5875        1.9675       -.14021E-07   -.51464E-03
   2  Prefactor     17.216        4.4677        .12146E-07   -.10971E-03
   3  norm          1.4825        2.6714       -.16975E-06   -.91647E-04
   4  Prefactor     .10000E-03    .20057        .26772E-07** at limit **
   5  Prefactor     3.4499        1.4557        .22243E-07   -.71005E-04
   6  Prefactor     .49438        .54676       -.17800E-07   -.93986E-03
   7  Prefactor     .10000E-03    .52435        .12263E-06** at limit **
   8  Prefactor     .10000E-03    2.5334        .17883E-06** at limit **
   9  Prefactor     .10004E-03    1.3286        .44092E-06** at limit **
  10  norm          1.9643        .48048        .76628E-08    .56051E-04
  11  Prefactor     .10000E-03    .19318       -.70163E-08** at limit **
  12  Prefactor     .10000E-03    .40730       -.64096E-07** at limit **
  13  Prefactor     3.9093        1.8939       -.24275E-06   -.36425E-03
  14  Prefactor     .10000E-03    1.7529        .44722E-07** at limit **
  15  Prefactor     6.3052        8.4729        .46834E-05    .52092E-05
  16  norm          .48843        .23138        .49567E-08    .52336E-04
  17  norm          1.1141        .56417       -.16954E-07   -.31376E-03
  18  Prefactor     2.9643        1.6083        .23910E-07   -.62761E-04
  19  Prefactor     11.701        6.4476        .74609E-06    .45882E-04
  20  Prefactor     .10000E-03    6.0987       -.59288E-06** at limit **
  21  norm          .44460        .16359        .36463E-09   -.74569E-05
  22  norm          .10000E-03    .27224E-01   -.21528E-07** at limit **
  23  Prefactor     .10000E-03    3.1050        .30152E-06** at limit **
  24  Prefactor     4.0238        1.2375        .20536E-07   -.13474E-02
  25  Normalizat    .92000        .46654E-01   -.87540E-07   -.37724E-03
  26  Prefactor     1.0566        .23886E-01   -.58322E-07   -.57287E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.58751
  Prefactor  = 17.216
  norm       = 1.4825
  Prefactor  = 0.0001
  Prefactor  = 3.44992
  Prefactor  = 0.494377
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010004
  norm       = 1.96434
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.90925
  Prefactor  = 0.0001
  Prefactor  = 6.30521
  norm       = 0.488433
  norm       = 1.11409
  Prefactor  = 2.96433
  Prefactor  = 11.7011
  Prefactor  = 0.0001
  norm       = 0.444605
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.02378
  Normalizat = 0.920001
  Prefactor  = 1.05655
 **********
 **   18 **HESSE 
 **********

 FCN=   139495.8     FROM HESSE     STATUS=OK           490 CALLS     3253 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5875        3.1519        .16912E-02   -1.5456    
   2  Prefactor     17.216        4.4667        .96527E-04   -1.4878    
   3  norm          1.4825        2.6216        .35311E-03   -1.5464    
   4  Prefactor     .10000E-03    .52277        .31782E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.4499        1.4566        .21777E-03   -1.5336    
   6  Prefactor     .49438        .54229        .27312E-03   -1.5567    
   7  Prefactor     .10000E-03    1.9505        .50686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.6140        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10004E-03    1.3917        .13801       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.9643        .47859        .12374E-03   -1.5428    
  11  Prefactor     .10000E-03    .20200        .56184E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.3875        .45269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.9093        1.8939        .20400E-03   -1.5313    
  14  Prefactor     .10000E-03    1.8129        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.3052        8.4697        .16029E-03   -1.5206    
  16  norm          .48843        .22288        .11557E-03   -1.5568    
  17  norm          1.1141        .55691        .19267E-03   -1.5497    
  18  Prefactor     2.9643        1.5957        .23600E-03   -1.5364    
  19  Prefactor     11.701        6.3855        .11701E-03   -1.5024    
  20  Prefactor     .10000E-03    6.2840        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .44460        .16488        .89314E-04   -1.5575    
  22  norm          .10000E-03    .82971E-01    .11858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.1173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.0238        1.4722        .10053E-02   -1.5307    
  25  Normalizat    .92000        .52868E-01    .33056E-03   -.95761    
  26  Prefactor     1.0566        .27607E-01    .16734E-03   -.90868    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.187e-10
Minuit parameter uncertainties:
  1  3.15218
  2  4.46679
  3  2.6218
  4  2.04207e-06
  5  1.45661
  6  0.542298
  7  3.77693e-05
  8  1.41511e-06
  9  0.000473239
  10  0.478592
  11  8.98983e-06
  12  8.49503e-05
  13  1.89396
  14  1.07696e-06
  15  8.47134
  16  0.222882
  17  0.556913
  18  1.59576
  19  6.38587
  20  6.43103e-06
  21  0.164876
  22  5.89455e-07
  23  1.46314e-06
  24  1.47226
  25  0.0528713
  26  0.0276075
Done.

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

Extracting fit parameters...

4FGL J0047.9+3947
   Spectrum: PowerLaw
158    Prefactor:  1.000e-04  8.990e-06  1.000e-04  1.000e+04 ( 1.000e-13)
159        Index:  1.981e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
160        Scale:  2.140e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
541    Prefactor:  1.057e+00  2.761e-02  0.000e+00  1.000e+01 ( 1.000e+00)
542        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
543        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
540   Normalization:  9.200e-01  5.287e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 11.976 39.797
Photon Flux Upper Limit: 8.56e-09 ph cm-2 s-1
Energy Flux Upper Limit: 6.41e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/348107/likelihoodResults_558403201_560995201_4FGL_J0047.9+3947_monthly_bin124.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) = 139495.766987
delta logL = -0.00268763606437

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 139495.341174
delta logL = 0.423124934227

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13281       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1098       1.0000          .0000       10.000    
     3 'Normalizat'    .90923       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0592       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5440E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   139495.3     FROM MIGRAD    STATUS=FAILED       104 CALLS      335 TOTAL
                     EDM=   .87E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13300        7.0757        .10616E-02    .17804    
   2  Index         3.1091        6.5510        .10857E-01    .12516E-03
   3  Normalizat    .90927        .26918E-01    .33236E-03    .87567E-05
   4  Prefactor     1.0592        .14540E-01    .16716E-03   -.15235E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   139495.3     FROM SIMPLEX   STATUS=UNCHANGED     88 CALLS      423 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13300        7.0757        .33131E-04    .17804    
   2  Index         3.1091        6.5510        .10212E-02    .12516E-03
   3  Normalizat    .90927        .26918E-01    .25364E-04    .87567E-05
   4  Prefactor     1.0592        .14540E-01    .55685E-05   -.15235E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   139495.3     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      456 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13300        .76211        .21231E-03    .29301E-03
   2  Index         3.1091        1.8378        .43426E-03    .83774E-06
   3  Normalizat    .90927        .51765E-01    .13294E-04    .54729E-05
   4  Prefactor     1.0592        .27481E-01    .66863E-05   -.21764E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.133003
  Index      = 3.10912
  Normalizat = 0.909265
  Prefactor  = 1.0592
 **********
 **   18 **HESSE 
 **********

 FCN=   139495.3     FROM HESSE     STATUS=OK            25 CALLS      481 TOTAL
                     EDM=   .78E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13300        .33920        .84925E-05   -1.5635    
   2  Index         3.1091        .99982        .17371E-04   -.38783    
   3  Normalizat    .90927        .51666E-01    .26589E-05   -.96135    
   4  Prefactor     1.0592        .27375E-01    .13373E-05   -.90781    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.80493e-14
Minuit parameter uncertainties:
  1  0.339204
  2  1.00776
  3  0.0516692
  4  0.0273753
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/348107': 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) = 139495.341174
delta logL = 0.423125364585

Extracting fit parameters...

4FGL J0047.9+3947
   Spectrum: PowerLaw
158    Prefactor:  1.330e-01  3.392e-01  1.000e-04  1.000e+04 ( 1.000e-13)
159        Index:  3.109e+00  1.008e+00  0.000e+00  1.000e+01 (-1.000e+00)
160        Scale:  2.140e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
541    Prefactor:  1.059e+00  2.738e-02  0.000e+00  1.000e+01 ( 1.000e+00)
542        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
543        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
540   Normalization:  9.093e-01  5.167e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 11.976 39.797

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/348107/cmap_HighResolution_558403201_560995201_4FGL_J0047.9+3947_monthly_bin124.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.41e-04', job_status='DONE', photon_flux_upper_limit='8.56e-09', time_completed='2021-10-09 00:27:53.721533', job_id='348107', GAL2='1.06', fit_tolerance='1e-08', EG2='0.91', EG='0.92', time_epoch_completed='1633764473.72', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='4.23e-01', ts2='0.90', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='124' AND source_name='4FGL J0047.9+3947' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sat Oct  9 00:27:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 348107: <4FGL_J0047.9+3947_monthly_bin124> in cluster <slac> Done

Job <4FGL_J0047.9+3947_monthly_bin124> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Oct  8 21:40:22 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Oct  8 21:40:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Oct  8 21:40:23 2021
Terminated at Sat Oct  9 00:27:54 2021
Results reported at Sat Oct  9 00:27:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0047.9+3947_monthly_bin124 11.9763 39.7975 558403201 560995201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0047.9+3947 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9829.00 sec.
    Max Memory :                                 635 MB
    Average Memory :                             469.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10051 sec.
    Turnaround time :                            10052 sec.

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

