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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin948
RA = 147.244, Dec = 0.3717
tmin = 485049601, tmax = 485308801
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='518262', job_status='RUN', time_executed='2021-09-01 02:54:29.810416', time_epoch_executed='1630490069.81' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='948'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/518262

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/518262/ft1_4FGL_J0948.9+0022_daily_bin948.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/518262/ft2_4FGL_J0948.9+0022_daily_bin948.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/518262/ft1_4FGL_J0948.9+0022_daily_bin948.fits outfile=/scratch/kocevski/518262/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin948.fits ra=147.244 dec=0.3717 rad=12.0 tmin=485049601.0 tmax=485308801.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.80
user 3.34
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/518262/ft2_4FGL_J0948.9+0022_daily_bin948.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/518262/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin948.fits evtable="EVENTS" outfile="/scratch/kocevski/518262/ft1_filtered_4FGL_J0948.9+0022_daily_bin948.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.72
user 0.33
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/518262/ft1_filtered_4FGL_J0948.9+0022_daily_bin948.fits evtable="EVENTS" scfile=/scratch/kocevski/518262/ft2_4FGL_J0948.9+0022_daily_bin948.fits sctable="SC_DATA" expcube=/scratch/kocevski/518262/ltcube_485049601_485308801_4FGL_J0948.9+0022_daily_bin948.fits outfile=/scratch/kocevski/518262/expmap_485049601_485308801_4FGL_J0948.9+0022_daily_bin948.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/518262/ltcube_485049601_485308801_4FGL_J0948.9+0022_daily_bin948.fits
.....................!
real 192.34
user 185.13
sys 4.68

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/518262/ft1_filtered_4FGL_J0948.9+0022_daily_bin948.fits scfile=/scratch/kocevski/518262/ft2_4FGL_J0948.9+0022_daily_bin948.fits outfile=/scratch/kocevski/518262/cmap_485049601_485308801_4FGL_J0948.9+0022_daily_bin948.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.61
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/518262/ft1_filtered_4FGL_J0948.9+0022_daily_bin948.fits scfile=/scratch/kocevski/518262/ft2_4FGL_J0948.9+0022_daily_bin948.fits outfile=/scratch/kocevski/518262/cmap_HighResolution_485049601_485308801_4FGL_J0948.9+0022_daily_bin948.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.73
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3404       1.0000         .10000E-03   10000.    
     2 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10691E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .31470       1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.078       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.8456       1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.355       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .91314       1.0000         .10000E-03   10000.    
    10 'norm      '    .83981       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.947       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .16145E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .15665E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    31.112       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10478E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.2105       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2795       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .72179       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=   4937.032     FROM MIGRAD    STATUS=CONVERGED    515 CALLS     2539 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3397        4.3143       -.21472E-05   -.76177E-03
   2  norm          .10000E-03    2.5761        .99034E-07** at limit **
   3  Prefactor     .10000E-03    15.758        .54174E-05** at limit **
   4  Prefactor     .31504        2.3283       -.16616E-05   -.38526E-03
   5  Prefactor     25.053        48.385       -.32072E-04    .71541E-05
   6  Prefactor     9.8449        13.780        .20060E-06    .77629E-04
   7  Prefactor     19.350        31.569       -.28870E-05    .90025E-05
   8  norm          .10000E-03    1.3833        .46455E-07** at limit **
   9  norm          .91295        1.0609       -.34855E-06   -.71128E-03
  10  norm          .83983        .62844       -.16237E-06   -.15991E-03
  11  norm          .10000E-03    .75489       -.73883E-07** at limit **
  12  Prefactor     12.954        15.948       -.11923E-05   -.16419E-03
  13  Prefactor     .10000E-03    18.474       -.39342E-05** at limit **
  14  Prefactor     .10000E-03    106.33        .21063E-05** at limit **
  15  norm          .10000E-03    12.175       -.58032E-05** at limit **
  16  Prefactor     .10010E-03    7.2539        .25830E-05** at limit **
  17  Prefactor     31.086        58.430       -.35975E-04   -.92118E-04
  18  Prefactor     .10000E-03    29.427        .26844E-05** at limit **
  19  Prefactor     .10000E-03    6.9393        .83477E-07** at limit **
  20  norm          5.2111        1.9706       -.19192E-06   -.43094E-03
  21  Prefactor     .10000E-03    11.493        .39684E-05** at limit **
  22  Normalizat    1.2797        .22135        .75715E-05   -.38926E-03
  23  Prefactor     .72164        .15946       -.59552E-06    .18311E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.33965
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.315036
  Prefactor  = 25.0532
  Prefactor  = 9.84493
  Prefactor  = 19.3504
  norm       = 0.0001
  norm       = 0.912952
  norm       = 0.839831
  norm       = 0.0001
  Prefactor  = 12.9543
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.000100105
  Prefactor  = 31.0861
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.21109
  Prefactor  = 0.000100001
  Normalizat = 1.27973
  Prefactor  = 0.72164
 **********
 **   18 **HESSE 
 **********

 FCN=   4937.032     FROM HESSE     STATUS=OK           372 CALLS     2911 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3397        4.3324        .24970E-03   -1.5476    
   2  norm          .10000E-03    2.5842        .11013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .31504        4.2739        .20473E-02   -1.5596    
   5  Prefactor     25.053        48.102        .79991E-04   -1.4706    
   6  Prefactor     9.8449        13.762        .12771E-03   -1.5080    
   7  Prefactor     19.350        31.564        .91041E-04   -1.4828    
   8  norm          .10000E-03    1.3857        .80699E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .91295        1.0134        .75016E-03   -1.5517    
  10  norm          .83983        .62064        .45692E-04   -1.5525    
  11  norm          .10000E-03    .75953        .59607E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.954        15.753        .11132E-03   -1.4988    
  13  Prefactor     .10000E-03    18.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    108.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    12.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10010E-03    35.483        .35149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     31.086        58.329        .71833E-04   -1.4592    
  18  Prefactor     .10000E-03    29.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.9436        .18076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.2111        1.9706        .58120E-04   -1.5251    
  21  Prefactor     .10000E-03    11.756        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2797        .25760        .24283E-03   -.84173    
  23  Prefactor     .72164        .18773        .24276E-03   -1.0268    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.42698e-09
Minuit parameter uncertainties:
  1  4.33344
  2  3.06895e-06
  3  0.000246045
  4  2.32054
  5  48.176
  6  13.7669
  7  31.5911
  8  7.10941e-07
  9  1.01345
  10  0.620643
  11  3.47e-06
  12  15.7579
  13  4.1708e-05
  14  0.00110409
  15  9.05519e-05
  16  0.0038538
  17  58.4361
  18  0.000198668
  19  3.70107e-05
  20  1.9706
  21  0.00018409
  22  0.257859
  23  0.1879
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  8.398e-01  6.206e-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:  7.216e-01  1.879e-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.280e+00  2.579e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.00
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 6.45e-08 +/- 4.76e-08
Energy Flux (Fixed Index): 1.61e-05 +/- 1.19e-05

TS (Fixed Index): 4.00
Ra Dec: 147.244 0.372
Photon Flux Upper Limit: 1.69e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.22e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/518262/likelihoodResults_485049601_485308801_4FGL_J0948.9+0022_daily_bin948.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) = 4936.41234848
delta logL = 0.619522853458

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4936.3981037
delta logL = 0.633767636493

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .39854       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4933       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3199       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70517       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=   4936.398     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      212 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .39812        .40322        .85812E-02    .55940E-04
   2  alpha         1.4924        .52455        .32874       -.32733E-04
   3  Normalizat    1.3199        .20445        .54230E-01    .97518E-05
   4  Prefactor     .70513        .15898        .42470E-01    .16995E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.398124
  alpha      = 1.49245
  Normalizat = 1.31993
  Prefactor  = 0.70513
 **********
 **   18 **HESSE 
 **********

 FCN=   4936.398     FROM HESSE     STATUS=OK            35 CALLS      247 TOTAL
                     EDM=   .48E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .39812        .71652        .36719E-03   -1.5582    
   2  alpha         1.4924        .95745        .13439E-01   -.41482    
   3  Normalizat    1.3199        .24034        .23978E-03   -.82973    
   4  Prefactor     .70513        .18609        .24539E-03   -1.0333    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.76375e-12
Minuit parameter uncertainties:
  1  0.716532
  2  0.987852
  3  0.240539
  4  0.186251
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/518262': 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) = 4936.39810327
delta logL = 0.633768065569

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  3.981e-01  7.165e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  1.492e+00  9.879e-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.051e-01  1.863e-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.320e+00  2.405e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.28
Ra Dec: 147.244 0.372
Photon Index (Free Index): 1.49 +/- 0.99
Photon Flux (Free Index): 2.73e-08 +/- 4.42e-08
Energy Flux (Free Index): 1.81e-05 +/- 1.63e-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/518262/cmap_HighResolution_485049601_485308801_4FGL_J0948.9+0022_daily_bin948.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.22e-05', comment='SUCCESS', photon_flux='6.45e-08', energy_flux2='1.81e-05', photon_flux_error='4.76e-08', dlogl='6.34e-01', energy_flux='1.61e-05', photon_flux2='2.73e-08', job_status='DONE', time_completed='2021-09-01 03:04:25.834673', photon_index_error2='0.99', photon_index2='1.49', ts='4.00', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', photon_flux_upper_limit='1.69e-07', energy_flux_error2='1.63e-05', EG='1.28', time_epoch_completed='1630490665.83', return_code='0', job_id='518262', GAL2='0.71', EG2='1.32', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='4.42e-08', ts2='5.28', photon_index='2.45' WHERE bin_id='948' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:04:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 518262: <4FGL_J0948.9+0022_daily_bin948> in cluster <slac> Done

Job <4FGL_J0948.9+0022_daily_bin948> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 02:51:03 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:51:04 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:51:04 2021
Terminated at Wed Sep  1 03:04:26 2021
Results reported at Wed Sep  1 03:04:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin948 147.244 0.3717 485049601 485308801 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 :                                   536.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             219.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            803 sec.

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

