/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 196 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 = 7415
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0948.9+0022_daily_bin124
RA = 147.244, Dec = 0.3717
tmin = 271468801, tmax = 271728001
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='513177', job_status='RUN', time_executed='2021-09-01 02:39:58.032643', time_epoch_executed='1630489198.03' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='124'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513177

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513177/ft1_4FGL_J0948.9+0022_daily_bin124.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513177/ft2_4FGL_J0948.9+0022_daily_bin124.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513177/ft1_4FGL_J0948.9+0022_daily_bin124.fits outfile=/scratch/kocevski/513177/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin124.fits ra=147.244 dec=0.3717 rad=12.0 tmin=271468801.0 tmax=271728001.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 1.61
user 1.40
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/513177/ft2_4FGL_J0948.9+0022_daily_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/513177/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin124.fits evtable="EVENTS" outfile="/scratch/kocevski/513177/ft1_filtered_4FGL_J0948.9+0022_daily_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.65
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/513177/ft1_filtered_4FGL_J0948.9+0022_daily_bin124.fits" evtable="EVENTS" scfile=/scratch/kocevski/513177/ft2_4FGL_J0948.9+0022_daily_bin124.fits sctable="SC_DATA" outfile=/scratch/kocevski/513177/ltcube_271468801_271728001_4FGL_J0948.9+0022_daily_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/513177/ft2_4FGL_J0948.9+0022_daily_bin124.fits
.....................!
real 12.52
user 12.10
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513177/ft1_filtered_4FGL_J0948.9+0022_daily_bin124.fits evtable="EVENTS" scfile=/scratch/kocevski/513177/ft2_4FGL_J0948.9+0022_daily_bin124.fits sctable="SC_DATA" expcube=/scratch/kocevski/513177/ltcube_271468801_271728001_4FGL_J0948.9+0022_daily_bin124.fits outfile=/scratch/kocevski/513177/expmap_271468801_271728001_4FGL_J0948.9+0022_daily_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/513177/ltcube_271468801_271728001_4FGL_J0948.9+0022_daily_bin124.fits
.....................!
real 190.60
user 185.34
sys 4.66

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/513177/ft1_filtered_4FGL_J0948.9+0022_daily_bin124.fits scfile=/scratch/kocevski/513177/ft2_4FGL_J0948.9+0022_daily_bin124.fits outfile=/scratch/kocevski/513177/cmap_271468801_271728001_4FGL_J0948.9+0022_daily_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=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.52
user 0.37
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/513177/ft1_filtered_4FGL_J0948.9+0022_daily_bin124.fits evtable="EVENTS" scfile=/scratch/kocevski/513177/ft2_4FGL_J0948.9+0022_daily_bin124.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/513177/Model_4FGL_J0948.9+0022_daily_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/513177/ft1_filtered_4FGL_J0948.9+0022_daily_bin124.fits.....................!
real 86.60
user 85.31
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9349       1.0000         .10000E-03   10000.    
     2 'norm      '    3.9654       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.2837       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5744       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.5138       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .58723       1.0000         .10000E-03   10000.    
     9 'norm      '    .23902       1.0000         .10000E-03   10000.    
    10 'norm      '    2.9361       1.0000         .10000E-03   10000.    
    11 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.213       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.135       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.1647       1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    43.455       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    29.277       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.5542       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .77786       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=   8888.831     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2289 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9357        4.0243        .21737E-06   -.14291E-03
   2  norm          3.9639        5.2967       -.18246E-06   -.93150E-04
   3  Prefactor     1.2872        13.677        .42929E-05   -.60886E-03
   4  Prefactor     1.5743        3.9993        .73660E-06   -.13389E-03
   5  Prefactor     .10000E-03    21.545        .54262E-05** at limit **
   6  Prefactor     3.5135        17.046       -.78393E-06   -.38679E-04
   7  Prefactor     .10000E-03    15.843       -.88847E-06** at limit **
   8  norm          .58697        1.4787       -.56810E-07   -.27187E-03
   9  norm          .23891        .65408        .37466E-06   -.23812E-03
  10  norm          2.9361        .74537        .67899E-07   -.33863E-03
  11  norm          .10000E-03    .59254        .16486E-06** at limit **
  12  Prefactor     23.212        13.247        .65936E-07   -.22050E-04
  13  Prefactor     11.146        33.339        .22065E-04    .61779E-04
  14  Prefactor     1.1628        93.365       -.85269E-05   -.25627E-03
  15  norm          .10000E-03    5.1056        .27773E-06** at limit **
  16  Prefactor     43.454        14.426        .18441E-05    .14929E-03
  17  Prefactor     .10000E-03    22.040        .17661E-05** at limit **
  18  Prefactor     29.268        40.838       -.11033E-04    .46006E-04
  19  Prefactor     .10000E-03    23.070       -.52748E-05** at limit **
  20  norm          .10000E-03    .49227       -.12746E-06** at limit **
  21  Prefactor     .10000E-03    4.8549       -.13556E-06** at limit **
  22  Normalizat    1.5542        .18907       -.17187E-05   -.24043E-04
  23  Prefactor     .77791        .13702       -.46442E-06   -.13980E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.93571
  norm       = 3.96388
  Prefactor  = 1.28716
  Prefactor  = 1.57433
  Prefactor  = 0.0001
  Prefactor  = 3.51349
  Prefactor  = 0.0001
  norm       = 0.586973
  norm       = 0.238914
  norm       = 2.93608
  norm       = 0.0001
  Prefactor  = 23.2116
  Prefactor  = 11.1457
  Prefactor  = 1.16285
  norm       = 0.0001
  Prefactor  = 43.4536
  Prefactor  = 0.0001
  Prefactor  = 29.2676
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.55418
  Prefactor  = 0.777915
 **********
 **   18 **HESSE 
 **********

 FCN=   8888.831     FROM HESSE     STATUS=OK           380 CALLS     2669 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9357        4.0103        .25600E-03   -1.5430    
   2  norm          3.9639        5.2828        .20256E-03   -1.5310    
   3  Prefactor     1.2872        35.012        .19574E-02   -1.5481    
   4  Prefactor     1.5743        3.9937        .27659E-03   -1.5457    
   5  Prefactor     .10000E-03    21.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.5135        16.938        .21567E-03   -1.5333    
   7  Prefactor     .10000E-03    15.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .58697        1.1523        .17726E-02   -1.5555    
   9  norm          .23891        .72031        .12001E-02   -1.5610    
  10  norm          2.9361        .74486        .38280E-04   -1.5365    
  11  norm          .10000E-03    1.1365        .14115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     23.212        13.274        .83139E-04   -1.4744    
  13  Prefactor     11.146        33.730        .12006E-03   -1.5040    
  14  Prefactor     1.1628        139.69        .21312E-02   -1.5492    
  15  norm          .10000E-03    5.1109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     43.454        14.442        .60816E-04   -1.4389    
  17  Prefactor     .10000E-03    22.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     29.268        40.480        .74046E-04   -1.4625    
  19  Prefactor     .10000E-03    22.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.0598        .12700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.9772        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.5542        .22464        .25544E-03   -.76267    
  23  Prefactor     .77791        .16054        .26824E-03   -1.0055    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.24957e-08
Minuit parameter uncertainties:
  1  4.01082
  2  5.28344
  3  13.4343
  4  3.99442
  5  3.77536e-05
  6  15.4354
  7  1.04071e-05
  8  1.15232
  9  0.720335
  10  0.744858
  11  4.14576e-06
  12  13.2761
  13  33.7879
  14  25.5507
  15  9.842e-07
  16  14.443
  17  3.99856e-05
  18  40.5176
  19  0.00045833
  20  2.87547e-05
  21  1.31319e-05
  22  0.224782
  23  0.160637
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  2.936e+00  7.449e-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.779e-01  1.606e-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.554e+00  2.248e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 29.39
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 2.25e-07 +/- 5.72e-08
Energy Flux (Fixed Index): 5.62e-05 +/- 1.43e-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) = 8887.74484487
delta logL = 1.08566124838

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8887.74275347
delta logL = 1.08775265223

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8834       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9261       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4953       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81307       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=   8887.743     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      196 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8834        1.2790        .59836E-02    .38034E-02
   2  alpha         2.9260        .57820        .26648       -.50870E-04
   3  Normalizat    1.4953        .17796        .58606E-01    .58466E-05
   4  Prefactor     .81309        .13877        .43887E-01    .16242E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.88341
  alpha      = 2.92603
  Normalizat = 1.49526
  Prefactor  = 0.813093
 **********
 **   18 **HESSE 
 **********

 FCN=   8887.743     FROM HESSE     STATUS=OK            29 CALLS      225 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8834        .72919        .36058E-04   -1.5368    
   2  alpha         2.9260        .34045        .11519E-02    .17125    
   3  Normalizat    1.4953        .21197        .25916E-03   -.77912    
   4  Prefactor     .81309        .16241        .26307E-03   -.99247    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41953e-10
Minuit parameter uncertainties:
  1  0.729196
  2  0.341542
  3  0.212096
  4  0.162501
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513177': 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) = 8887.74275346
delta logL = 1.08775266369

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  2.883e+00  7.292e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.926e+00  3.415e-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:  8.131e-01  1.625e-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.495e+00  2.121e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 31.58
Ra Dec: 147.244 0.372
Photon Index (Free Index): 2.93 +/- 0.34
Photon Flux (Free Index): 2.72e-07 +/- 6.93e-08
Energy Flux (Free Index): 5.38e-05 +/- 1.31e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/513177/cmap_HighResolution_271468801_271728001_4FGL_J0948.9+0022_daily_bin124.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.25e-07', energy_flux2='5.38e-05', photon_flux_error='5.72e-08', dlogl='1.09e+00', energy_flux='5.62e-05', photon_flux2='2.72e-07', job_status='DONE', time_completed='2021-09-01 02:50:36.276073', photon_index_error2='0.34', photon_index2='2.93', ts='29.39', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='1.31e-05', EG='1.55', time_epoch_completed='1630489836.28', return_code='0', job_id='513177', GAL2='0.81', EG2='1.50', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='6.93e-08', ts2='31.58', photon_index='2.45' WHERE bin_id='124' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:50:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0164>
Subject: Job 513177: <4FGL_J0948.9+0022_daily_bin124> in cluster <slac> Done

Job <4FGL_J0948.9+0022_daily_bin124> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 02:36:08 2021
Job was executed on host(s) <bullet0164>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:36:10 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:36:10 2021
Terminated at Wed Sep  1 02:50:37 2021
Results reported at Wed Sep  1 02:50:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin124 147.244 0.3717 271468801 271728001 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 :                                   631.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             278.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            869 sec.

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

