/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 158 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 = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0948.9+0022_daily_bin315
RA = 147.244, Dec = 0.3717
tmin = 320976001, tmax = 321235201
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='514655', job_status='RUN', time_executed='2021-09-01 02:43:51.731112', time_epoch_executed='1630489431.73' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='315'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514655

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514655/ft1_4FGL_J0948.9+0022_daily_bin315.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514655/ft2_4FGL_J0948.9+0022_daily_bin315.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514655/ft1_4FGL_J0948.9+0022_daily_bin315.fits outfile=/scratch/kocevski/514655/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin315.fits ra=147.244 dec=0.3717 rad=12.0 tmin=320976001.0 tmax=321235201.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.88
user 3.30
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/514655/ft2_4FGL_J0948.9+0022_daily_bin315.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/514655/ft2_4FGL_J0948.9+0022_daily_bin315.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/514655/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin315.fits evtable="EVENTS" outfile="/scratch/kocevski/514655/ft1_filtered_4FGL_J0948.9+0022_daily_bin315.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.81
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/514655/ft1_filtered_4FGL_J0948.9+0022_daily_bin315.fits" evtable="EVENTS" scfile=/scratch/kocevski/514655/ft2_4FGL_J0948.9+0022_daily_bin315.fits sctable="SC_DATA" outfile=/scratch/kocevski/514655/ltcube_320976001_321235201_4FGL_J0948.9+0022_daily_bin315.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/514655/ft2_4FGL_J0948.9+0022_daily_bin315.fits
.....................!
real 12.23
user 11.55
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514655/ft1_filtered_4FGL_J0948.9+0022_daily_bin315.fits evtable="EVENTS" scfile=/scratch/kocevski/514655/ft2_4FGL_J0948.9+0022_daily_bin315.fits sctable="SC_DATA" expcube=/scratch/kocevski/514655/ltcube_320976001_321235201_4FGL_J0948.9+0022_daily_bin315.fits outfile=/scratch/kocevski/514655/expmap_320976001_321235201_4FGL_J0948.9+0022_daily_bin315.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/514655/ltcube_320976001_321235201_4FGL_J0948.9+0022_daily_bin315.fits
.....................!
real 190.17
user 185.19
sys 3.99

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

Setting source of interest to:
4FGL J0948.9+0022 @ 147.244 0.3717

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/514655/ft1_filtered_4FGL_J0948.9+0022_daily_bin315.fits scfile=/scratch/kocevski/514655/ft2_4FGL_J0948.9+0022_daily_bin315.fits outfile=/scratch/kocevski/514655/cmap_320976001_321235201_4FGL_J0948.9+0022_daily_bin315.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=147.244 yref=0.3717 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/514655/ft1_filtered_4FGL_J0948.9+0022_daily_bin315.fits scfile=/scratch/kocevski/514655/ft2_4FGL_J0948.9+0022_daily_bin315.fits outfile=/scratch/kocevski/514655/cmap_HighResolution_320976001_321235201_4FGL_J0948.9+0022_daily_bin315.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=147.244 yref=0.3717 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.66
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/514655/ft1_filtered_4FGL_J0948.9+0022_daily_bin315.fits evtable="EVENTS" scfile=/scratch/kocevski/514655/ft2_4FGL_J0948.9+0022_daily_bin315.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/514655/Model_4FGL_J0948.9+0022_daily_bin315.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/514655/ft1_filtered_4FGL_J0948.9+0022_daily_bin315.fits.....................!
real 66.12
user 64.60
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/514655/ft1_filtered_4FGL_J0948.9+0022_daily_bin315.fits', '/scratch/kocevski/514655/ft2_4FGL_J0948.9+0022_daily_bin315.fits', expMap='/scratch/kocevski/514655/expmap_320976001_321235201_4FGL_J0948.9+0022_daily_bin315.fits', expCube='/scratch/kocevski/514655/ltcube_320976001_321235201_4FGL_J0948.9+0022_daily_bin315.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/514655/Model_4FGL_J0948.9+0022_daily_bin315.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0948.9+0022'

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.422e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.453e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
219         beta:  1.652e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
220           Eb:  2.768e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/514655/ft1_filtered_4FGL_J0948.9+0022_daily_bin315.fits
Spacecraft file(s): /scratch/kocevski/514655/ft2_4FGL_J0948.9+0022_daily_bin315.fits
Exposure map: /scratch/kocevski/514655/expmap_320976001_321235201_4FGL_J0948.9+0022_daily_bin315.fits
Exposure cube: /scratch/kocevski/514655/ltcube_320976001_321235201_4FGL_J0948.9+0022_daily_bin315.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/514655/Model_4FGL_J0948.9+0022_daily_bin315.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) = 6591.36659897

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .56692       1.0000         .10000E-03   10000.    
     2 'norm      '    14.865       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .75521       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3245       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.2241       1.0000         .10000E-03   10000.    
     9 'norm      '    2.2479       1.0000         .10000E-03   10000.    
    10 'norm      '    .11199       1.0000         .10000E-03   10000.    
    11 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.8255       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10148E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.9379       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11125E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .46227       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.0736       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1870       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .80923       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6591.310     FROM MIGRAD    STATUS=CONVERGED    512 CALLS     2190 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .56677        2.6619        .78220E-07   -.30489E-03
   2  norm          14.868        6.8311       -.46255E-07   -.29344E-03
   3  Prefactor     .65315        10.494        .19015E-05   -.42742E-03
   4  Prefactor     1.3244        2.6479        .25497E-07   -.14163E-03
   5  Prefactor     .10000E-03    34.881       -.53571E-05** at limit **
   6  Prefactor     .10000E-03    5.0457       -.13246E-07** at limit **
   7  Prefactor     .10000E-03    6.7404        .39229E-06** at limit **
   8  norm          3.2240        2.4557        .38083E-08   -.37810E-04
   9  norm          2.2474        1.6298        .15707E-07   -.11578E-03
  10  norm          .11192        .29003        .17222E-07   -.48454E-03
  11  norm          .10000E-03    .59621        .21759E-07** at limit **
  12  Prefactor     3.8312        10.359       -.24682E-06   -.12190E-03
  13  Prefactor     .10000E-03    8.1485       -.11719E-05** at limit **
  14  Prefactor     .10000E-03    11.742       -.45869E-05** at limit **
  15  norm          .10000E-03    10.049        .51537E-05** at limit **
  16  Prefactor     1.9388        5.4305       -.43107E-06   -.16832E-03
  17  Prefactor     .10000E-03    20.104        .10841E-05** at limit **
  18  Prefactor     .10000E-03    33.809        .15714E-05** at limit **
  19  Prefactor     .10000E-03    8.1992       -.76756E-06** at limit **
  20  norm          .46239        .96191       -.42986E-07   -.26363E-03
  21  Prefactor     4.0723        2.7965        .26061E-06   -.16433E-02
  22  Normalizat    1.1871        .17430       -.16748E-06   -.12605E-03
  23  Prefactor     .80921        .13568       -.79411E-07   -.12143E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.566766
  norm       = 14.8676
  Prefactor  = 0.653154
  Prefactor  = 1.32445
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.224
  norm       = 2.24744
  norm       = 0.111918
  norm       = 0.0001
  Prefactor  = 3.83121
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.93884
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.462394
  Prefactor  = 4.07233
  Normalizat = 1.18707
  Prefactor  = 0.80921
 **********
 **   18 **HESSE 
 **********

 FCN=   6591.310     FROM HESSE     STATUS=OK           378 CALLS     2568 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .56677        2.8044        .25954E-03   -1.5557    
   2  norm          14.868        6.8324        .51942E-03   -1.4937    
   3  Prefactor     .65315        57.810        .48523E-02   -1.5546    
   4  Prefactor     1.3244        2.6145        .17917E-03   -1.5478    
   5  Prefactor     .10000E-03    35.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.0625        .17808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.7429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.2240        2.4522        .10787E-03   -1.5349    
   9  norm          2.2474        1.6305        .83225E-04   -1.5408    
  10  norm          .11192        .27228        .67451E-03   -1.5641    
  11  norm          .10000E-03    1.0135        .12179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.8312        10.364        .20635E-03   -1.5316    
  13  Prefactor     .10000E-03    8.1523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    10.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.9388        5.4156        .29827E-03   -1.5429    
  17  Prefactor     .10000E-03    20.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    33.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.1979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .46239        .82588        .10890E-02   -1.5572    
  21  Prefactor     4.0723        5.8916        .99881E-03   -1.5304    
  22  Normalizat    1.1871        .20662        .23790E-03   -.87003    
  23  Prefactor     .80921        .16077        .22540E-03   -.99390    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84219e-08
Minuit parameter uncertainties:
  1  2.52141
  2  6.8328
  3  12.301
  4  2.61474
  5  0.000119461
  6  6.04496e-07
  7  2.61523e-06
  8  2.4523
  9  1.63054
  10  0.272278
  11  4.04844e-07
  12  10.3689
  13  9.32022e-06
  14  4.15736e-05
  15  5.22738e-05
  16  5.41694
  17  1.79442e-05
  18  8.22707e-05
  19  4.87412e-06
  20  0.825898
  21  5.89241
  22  0.206765
  23  0.160863
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.119e-01  2.723e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.453e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
219         beta:  1.652e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
220           Eb:  2.768e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
472    Prefactor:  8.092e-01  1.609e-01  0.000e+00  1.000e+01 ( 1.000e+00)
473        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
474        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
471   Normalization:  1.187e+00  2.068e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.22
Ra Dec: 147.244 0.372
Photon Flux Upper Limit: 7.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.82e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/514655/likelihoodResults_320976001_321235201_4FGL_J0948.9+0022_daily_bin315.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) = 6590.81608633
delta logL = 0.493535494476

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6590.8056483
delta logL = 0.503973530442

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .81195E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1809       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2007       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79778       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6590.806     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      217 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .81429E-01    .15158        .67838E-02    .40609E-03
   2  alpha         1.1809        .66926        .50000       -.43943E-04
   3  Normalizat    1.2012        .16816        .53525E-01    .53590E-05
   4  Prefactor     .79741        .13512        .43688E-01    .13979E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0814291
  alpha      = 1.18089
  Normalizat = 1.20117
  Prefactor  = 0.797406
 **********
 **   18 **HESSE 
 **********

 FCN=   6590.806     FROM HESSE     STATUS=OK            35 CALLS      252 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .81429E-01    .15640        .36559E-03   -1.5651    
   2  alpha         1.1809        .94742        .22144E-01   -.55582    
   3  Normalizat    1.2012        .19936        .23667E-03   -.86567    
   4  Prefactor     .79741        .16004        .22675E-03   -.99824    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.64238e-09
Minuit parameter uncertainties:
  1  0.156405
  2  0.982044
  3  0.199482
  4  0.160135
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514655': 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) = 6590.8056432
delta logL = 0.503978630313

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  8.143e-02  1.564e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  1.181e+00  9.820e-01  0.000e+00  5.000e+00 ( 1.000e+00)
219         beta:  1.652e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
220           Eb:  2.768e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
472    Prefactor:  7.974e-01  1.601e-01  0.000e+00  1.000e+01 ( 1.000e+00)
473        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
474        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
471   Normalization:  1.201e+00  1.995e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.24
Ra Dec: 147.244 0.372
Photon Index (Free Index): 1.18 +/- 0.98
Photon Flux (Free Index): 6.27e-09 +/- 9.85e-09
Energy Flux (Free Index): 7.16e-06 +/- 1.20e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/514655/cmap_HighResolution_320976001_321235201_4FGL_J0948.9+0022_daily_bin315.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.82e-05', comment='SUCCESS', energy_flux2='7.16e-06', dlogl='5.04e-01', photon_flux2='6.27e-09', job_status='DONE', time_completed='2021-09-01 02:53:51.290211', photon_index_error2='0.98', photon_index2='1.18', ts='0.22', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='7.31e-08', energy_flux_error2='1.20e-05', EG='1.19', time_epoch_completed='1630490031.29', return_code='0', job_id='514655', GAL2='0.80', EG2='1.20', return_code2='0', photon_flux_error2='9.85e-09', ts2='1.24', photon_index='2.45' WHERE bin_id='315' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:53:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 514655: <4FGL_J0948.9+0022_daily_bin315> in cluster <slac> Done

Job <4FGL_J0948.9+0022_daily_bin315> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 02:40:44 2021
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:40:46 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:40:46 2021
Terminated at Wed Sep  1 02:53:52 2021
Results reported at Wed Sep  1 02:53:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin315 147.244 0.3717 320976001 321235201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0948.9+0022 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   583.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             233.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   785 sec.
    Turnaround time :                            788 sec.

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

