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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin579
RA = 147.244, Dec = 0.3717
tmin = 389404801, tmax = 389664001
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='516454', job_status='RUN', time_executed='2021-09-01 02:46:09.991822', time_epoch_executed='1630489569.99' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='579'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/516454

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/516454/ft1_4FGL_J0948.9+0022_daily_bin579.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/516454/ft2_4FGL_J0948.9+0022_daily_bin579.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/516454/ft1_4FGL_J0948.9+0022_daily_bin579.fits outfile=/scratch/kocevski/516454/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin579.fits ra=147.244 dec=0.3717 rad=12.0 tmin=389404801.0 tmax=389664001.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.02
user 3.79
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/516454/ft1_filtered_4FGL_J0948.9+0022_daily_bin579.fits" evtable="EVENTS" scfile=/scratch/kocevski/516454/ft2_4FGL_J0948.9+0022_daily_bin579.fits sctable="SC_DATA" outfile=/scratch/kocevski/516454/ltcube_389404801_389664001_4FGL_J0948.9+0022_daily_bin579.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/516454/ft2_4FGL_J0948.9+0022_daily_bin579.fits
.....................!
real 12.30
user 11.93
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/516454/ft1_filtered_4FGL_J0948.9+0022_daily_bin579.fits evtable="EVENTS" scfile=/scratch/kocevski/516454/ft2_4FGL_J0948.9+0022_daily_bin579.fits sctable="SC_DATA" expcube=/scratch/kocevski/516454/ltcube_389404801_389664001_4FGL_J0948.9+0022_daily_bin579.fits outfile=/scratch/kocevski/516454/expmap_389404801_389664001_4FGL_J0948.9+0022_daily_bin579.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/516454/ltcube_389404801_389664001_4FGL_J0948.9+0022_daily_bin579.fits
.....................!
real 191.13
user 185.65
sys 4.59

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/516454/ft1_filtered_4FGL_J0948.9+0022_daily_bin579.fits scfile=/scratch/kocevski/516454/ft2_4FGL_J0948.9+0022_daily_bin579.fits outfile=/scratch/kocevski/516454/cmap_389404801_389664001_4FGL_J0948.9+0022_daily_bin579.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.57
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/516454/ft1_filtered_4FGL_J0948.9+0022_daily_bin579.fits scfile=/scratch/kocevski/516454/ft2_4FGL_J0948.9+0022_daily_bin579.fits outfile=/scratch/kocevski/516454/cmap_HighResolution_389404801_389664001_4FGL_J0948.9+0022_daily_bin579.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.54
user 0.38
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/516454/ft1_filtered_4FGL_J0948.9+0022_daily_bin579.fits', '/scratch/kocevski/516454/ft2_4FGL_J0948.9+0022_daily_bin579.fits', expMap='/scratch/kocevski/516454/expmap_389404801_389664001_4FGL_J0948.9+0022_daily_bin579.fits', expCube='/scratch/kocevski/516454/ltcube_389404801_389664001_4FGL_J0948.9+0022_daily_bin579.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/516454/Model_4FGL_J0948.9+0022_daily_bin579.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/516454/ft1_filtered_4FGL_J0948.9+0022_daily_bin579.fits
Spacecraft file(s): /scratch/kocevski/516454/ft2_4FGL_J0948.9+0022_daily_bin579.fits
Exposure map: /scratch/kocevski/516454/expmap_389404801_389664001_4FGL_J0948.9+0022_daily_bin579.fits
Exposure cube: /scratch/kocevski/516454/ltcube_389404801_389664001_4FGL_J0948.9+0022_daily_bin579.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/516454/Model_4FGL_J0948.9+0022_daily_bin579.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) = 6108.96445549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.2519       1.0000         .10000E-03   10000.    
     2 'norm      '    .10107E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12598E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.328       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.1481       1.0000         .10000E-03   10000.    
     9 'norm      '    3.1579       1.0000         .10000E-03   10000.    
    10 'norm      '    1.8723       1.0000         .10000E-03   10000.    
    11 'norm      '    1.2281       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.7500       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .45997E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.0458       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .21479E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11778E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .64373       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .35781E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .75386       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1247       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=   6108.840     FROM MIGRAD    STATUS=CONVERGED    553 CALLS     2255 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.2482        5.7608       -.77410E-06    .92412E-03
   2  norm          .10006E-03    6.4674        .17448E-05** at limit **
   3  Prefactor     .10000E-03    7.0269       -.52615E-07** at limit **
   4  Prefactor     .10004E-03    3.3357        .20324E-05** at limit **
   5  Prefactor     .10000E-03    8.0221        .37220E-07** at limit **
   6  Prefactor     12.316        16.226       -.51358E-06    .14596E-03
   7  Prefactor     .10000E-03    16.905        .44895E-06** at limit **
   8  norm          2.1482        1.9935        .65244E-07   -.16509E-03
   9  norm          3.1578        1.7280       -.18968E-06    .33872E-03
  10  norm          1.8724        .79004       -.77060E-07    .84343E-03
  11  norm          1.2282        1.5404       -.44473E-06    .54003E-03
  12  Prefactor     9.7498        10.182        .17421E-06   -.72202E-05
  13  Prefactor     .10000E-03    10.342        .15733E-06** at limit **
  14  Prefactor     .10000E-03    9.2618       -.11575E-06** at limit **
  15  norm          .10005E-03    52.434       -.14336E-04** at limit **
  16  Prefactor     8.0477        12.879       -.10732E-05    .38886E-03
  17  Prefactor     .10000E-03    179.19        .50955E-05** at limit **
  18  Prefactor     .10000E-03    84.893       -.48275E-05** at limit **
  19  Prefactor     .10000E-03    18.594        .41002E-07** at limit **
  20  norm          .64392        1.0262       -.17373E-05   -.11429E-02
  21  Prefactor     .10001E-03    3.6998        .11871E-05** at limit **
  22  Normalizat    .75386        .20582        .23964E-05    .36847E-03
  23  Prefactor     1.1247        .15318        .22116E-06    .49252E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.24819
  norm       = 0.000100064
  Prefactor  = 0.0001
  Prefactor  = 0.000100035
  Prefactor  = 0.0001
  Prefactor  = 12.3163
  Prefactor  = 0.0001
  norm       = 2.14819
  norm       = 3.15777
  norm       = 1.87236
  norm       = 1.22816
  Prefactor  = 9.74979
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100053
  Prefactor  = 8.04771
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.643915
  Prefactor  = 0.000100007
  Normalizat = 0.753856
  Prefactor  = 1.12468
 **********
 **   18 **HESSE 
 **********

 FCN=   6108.840     FROM HESSE     STATUS=OK           378 CALLS     2633 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.2482        5.6434        .16054E-03   -1.5208    
   2  norm          .10006E-03    14.776        .33119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.0510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10004E-03    22.906        .22180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.0243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.316        16.145        .11409E-03   -1.5006    
   7  Prefactor     .10000E-03    16.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.1482        2.0010        .10348E-03   -1.5415    
   9  norm          3.1578        1.7251        .71292E-04   -1.5353    
  10  norm          1.8724        .78330        .41653E-04   -1.5434    
  11  norm          1.2282        1.5069        .10466E-03   -1.5486    
  12  Prefactor     9.7498        10.062        .12834E-03   -1.5083    
  13  Prefactor     .10000E-03    10.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.2699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10005E-03    61.437        .42934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.0477        12.537        .14135E-03   -1.5141    
  17  Prefactor     .10000E-03    180.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    84.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .64392        1.0252        .10843E-02   -1.5547    
  21  Prefactor     .10001E-03    11.977        .27972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .75386        .23429        .30398E-03   -1.0180    
  23  Prefactor     1.1247        .17823        .20469E-03   -.88682    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.10511e-09
Minuit parameter uncertainties:
  1  5.64386
  2  0.00194395
  3  5.20879e-06
  4  0.00179176
  5  1.84748e-06
  6  16.1502
  7  2.69926e-05
  8  2.00108
  9  1.72512
  10  0.783305
  11  1.50692
  12  10.0637
  13  1.54673e-05
  14  7.74506e-06
  15  0.00360249
  16  12.5409
  17  0.00128801
  18  0.000408018
  19  0.000185475
  20  1.02526
  21  0.000570379
  22  0.234601
  23  0.178323
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.872e+00  7.833e-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:  1.125e+00  1.783e-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:  7.539e-01  2.346e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.98
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.44e-07 +/- 6.01e-08
Energy Flux (Fixed Index): 3.58e-05 +/- 1.50e-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) = 6107.98755509
delta logL = 0.852233600888

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6107.98652877
delta logL = 0.853259913455

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8415       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0813       1.0000          .0000       5.0000    
     3 'Normalizat'    .69931       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1568       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6107.987     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      230 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8415        .75733        .37571E-04   -.14996E-02
   2  alpha         3.0813        .50970        .14178E-02   -.35337E-04
   3  Normalizat    .69932        .22367        .31437E-03    .25423E-04
   4  Prefactor     1.1568        .17836        .20214E-03    .10304E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.84153
  alpha      = 3.08126
  Normalizat = 0.699318
  Prefactor  = 1.15681
 **********
 **   18 **HESSE 
 **********

 FCN=   6107.987     FROM HESSE     STATUS=OK            23 CALLS      253 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8415        .75630        .15029E-05   -1.5437    
   2  alpha         3.0813        .50902        .56714E-04    .23465    
   3  Normalizat    .69932        .22384        .12575E-04   -1.0392    
   4  Prefactor     1.1568        .17849        .40427E-04   -.87671    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.92381e-11
Minuit parameter uncertainties:
  1  0.756304
  2  0.512809
  3  0.224134
  4  0.178582
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/516454': 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) = 6107.98652877
delta logL = 0.8532599146

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.842e+00  7.563e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  3.081e+00  5.128e-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:  1.157e+00  1.786e-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:  6.993e-01  2.241e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.84
Ra Dec: 147.244 0.372
Photon Index (Free Index): 3.08 +/- 0.51
Photon Flux (Free Index): 1.88e-07 +/- 7.42e-08
Energy Flux (Free Index): 3.52e-05 +/- 1.35e-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/516454/cmap_HighResolution_389404801_389664001_4FGL_J0948.9+0022_daily_bin579.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.44e-07', energy_flux2='3.52e-05', photon_flux_error='6.01e-08', dlogl='8.53e-01', energy_flux='3.58e-05', photon_flux2='1.88e-07', job_status='DONE', time_completed='2021-09-01 02:54:57.592799', photon_index_error2='0.51', photon_index2='3.08', ts='8.98', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='1.35e-05', EG='0.75', time_epoch_completed='1630490097.59', return_code='0', job_id='516454', GAL2='1.16', EG2='0.70', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='7.42e-08', ts2='10.84', photon_index='2.45' WHERE bin_id='579' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:54:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 516454: <4FGL_J0948.9+0022_daily_bin579> in cluster <slac> Done

Job <4FGL_J0948.9+0022_daily_bin579> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 02:45:57 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:45:58 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:45:58 2021
Terminated at Wed Sep  1 02:55:00 2021
Results reported at Wed Sep  1 02:55:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin579 147.244 0.3717 389404801 389664001 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 :                                   521.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             345.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   539 sec.
    Turnaround time :                            543 sec.

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

