/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 167 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 = 7396
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0948.9+0022_daily_bin323
RA = 147.244, Dec = 0.3717
tmin = 323049601, tmax = 323308801
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='514672', job_status='RUN', time_executed='2021-09-01 02:44:07.788427', time_epoch_executed='1630489447.79' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='323'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514672

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514672/ft1_4FGL_J0948.9+0022_daily_bin323.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514672/ft2_4FGL_J0948.9+0022_daily_bin323.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514672/ft1_4FGL_J0948.9+0022_daily_bin323.fits outfile=/scratch/kocevski/514672/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin323.fits ra=147.244 dec=0.3717 rad=12.0 tmin=323049601.0 tmax=323308801.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.42
user 3.10
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514672/ft1_filtered_4FGL_J0948.9+0022_daily_bin323.fits evtable="EVENTS" scfile=/scratch/kocevski/514672/ft2_4FGL_J0948.9+0022_daily_bin323.fits sctable="SC_DATA" expcube=/scratch/kocevski/514672/ltcube_323049601_323308801_4FGL_J0948.9+0022_daily_bin323.fits outfile=/scratch/kocevski/514672/expmap_323049601_323308801_4FGL_J0948.9+0022_daily_bin323.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/514672/ltcube_323049601_323308801_4FGL_J0948.9+0022_daily_bin323.fits
.....................!
real 190.85
user 185.58
sys 4.37

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/514672/ft1_filtered_4FGL_J0948.9+0022_daily_bin323.fits scfile=/scratch/kocevski/514672/ft2_4FGL_J0948.9+0022_daily_bin323.fits outfile=/scratch/kocevski/514672/cmap_323049601_323308801_4FGL_J0948.9+0022_daily_bin323.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.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/514672/ft1_filtered_4FGL_J0948.9+0022_daily_bin323.fits scfile=/scratch/kocevski/514672/ft2_4FGL_J0948.9+0022_daily_bin323.fits outfile=/scratch/kocevski/514672/cmap_HighResolution_323049601_323308801_4FGL_J0948.9+0022_daily_bin323.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.925       1.0000         .10000E-03   10000.    
     2 'norm      '    1.4633       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.703       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10775E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.9813       1.0000         .10000E-03   10000.    
     9 'norm      '    2.0427       1.0000         .10000E-03   10000.    
    10 'norm      '    2.3646       1.0000         .10000E-03   10000.    
    11 'norm      '    3.4211       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12242E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.3890       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11314E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    38.011       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .20985E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.9965       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0568       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .91094       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=   4919.000     FROM MIGRAD    STATUS=CONVERGED    497 CALLS     2513 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.926        6.2721       -.56076E-07   -.96595E-04
   2  norm          1.4646        5.3546       -.11979E-06   -.67396E-03
   3  Prefactor     .10000E-03    8.1879       -.12574E-05** at limit **
   4  Prefactor     .10000E-03    3.0377        .97646E-08** at limit **
   5  Prefactor     .10000E-03    20.440        .94518E-05** at limit **
   6  Prefactor     15.714        18.252        .66706E-05   -.13969E-04
   7  Prefactor     .10000E-03    29.535       -.69880E-05** at limit **
   8  norm          1.9814        2.8628        .98621E-07    .41668E-05
   9  norm          2.0431        1.3945        .10369E-06   -.60714E-04
  10  norm          2.3648        .90469       -.73981E-07   -.29884E-03
  11  norm          3.4213        2.6695        .99013E-07   -.11720E-04
  12  Prefactor     .10000E-03    11.905       -.11588E-05** at limit **
  13  Prefactor     .10000E-03    15.936       -.77070E-05** at limit **
  14  Prefactor     .10000E-03    11.131        .51275E-05** at limit **
  15  norm          1.3974        8.7991       -.29554E-06   -.47487E-03
  16  Prefactor     .10000E-03    6.6598       -.10294E-06** at limit **
  17  Prefactor     .10000E-03    16.227       -.68643E-05** at limit **
  18  Prefactor     38.018        45.574        .97341E-05   -.72123E-04
  19  Prefactor     .10000E-03    20.513        .77791E-05** at limit **
  20  norm          .10000E-03    .87062       -.19861E-07** at limit **
  21  Prefactor     1.9978        8.8453        .92366E-06   -.36544E-03
  22  Normalizat    1.0565        .21698       -.28020E-05    .35649E-04
  23  Prefactor     .91119        .16566        .18322E-06   -.12260E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 13.9259
  norm       = 1.46464
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.7136
  Prefactor  = 0.0001
  norm       = 1.98137
  norm       = 2.04307
  norm       = 2.36477
  norm       = 3.42128
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.39745
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.0177
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 1.99778
  Normalizat = 1.05645
  Prefactor  = 0.911193
 **********
 **   18 **HESSE 
 **********

 FCN=   4919.000     FROM HESSE     STATUS=OK           368 CALLS     2881 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.926        6.2719        .53669E-03   -1.4961    
   2  norm          1.4646        9.3402        .17779E-02   -1.5466    
   3  Prefactor     .10000E-03    8.2057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.1055        .11922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.714        18.314        .10107E-03   -1.4915    
   7  Prefactor     .10000E-03    29.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.9814        2.8450        .13854E-03   -1.5426    
   9  norm          2.0431        1.3927        .65178E-04   -1.5422    
  10  norm          2.3648        .90374        .38511E-04   -1.5400    
  11  norm          3.4213        2.6711        .97360E-04   -1.5338    
  12  Prefactor     .10000E-03    12.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.3974        13.037        .18441E-02   -1.5472    
  16  Prefactor     .10000E-03    6.6998        .17649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     38.018        45.183        .65009E-04   -1.4474    
  19  Prefactor     .10000E-03    20.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .90670        .12743E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.9978        11.200        .14658E-02   -1.5425    
  22  Normalizat    1.0565        .25785        .26562E-03   -.91162    
  23  Prefactor     .91119        .19539        .22711E-03   -.95751    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.72647e-09
Minuit parameter uncertainties:
  1  6.27215
  2  7.39875
  3  2.24739e-07
  4  6.55542e-06
  5  5.06471e-06
  6  18.3204
  7  2.57886e-05
  8  2.84523
  9  1.39268
  10  0.903746
  11  2.67118
  12  3.80951e-07
  13  4.82696e-06
  14  8.14127e-06
  15  8.53895
  16  9.68378e-05
  17  2.78268e-05
  18  45.2234
  19  0.000364802
  20  8.68791e-07
  21  9.46284
  22  0.258153
  23  0.195542
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  2.365e+00  9.037e-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:  9.112e-01  1.955e-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.056e+00  2.582e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.53
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.82e-07 +/- 6.93e-08
Energy Flux (Fixed Index): 4.52e-05 +/- 1.73e-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) = 4918.85778828
delta logL = 0.141754537761

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4918.85014254
delta logL = 0.149400272021

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2622       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2111       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0861       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89295       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=   4918.850     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      204 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2623        .86594        .68277E-02    .19111E-03
   2  alpha         2.2110        .38372        .24962       -.26105E-04
   3  Normalizat    1.0862        .20820        .59353E-01    .93968E-05
   4  Prefactor     .89311        .16592        .44915E-01    .91328E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.26231
  alpha      = 2.21097
  Normalizat = 1.08618
  Prefactor  = 0.893111
 **********
 **   18 **HESSE 
 **********

 FCN=   4918.850     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2623        .91151        .38222E-04   -1.5407    
   2  alpha         2.2110        .42756        .10509E-01   -.11587    
   3  Normalizat    1.0862        .24766        .26249E-03   -.90197    
   4  Prefactor     .89311        .19594        .22905E-03   -.96382    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.2787e-10
Minuit parameter uncertainties:
  1  0.911514
  2  0.429704
  3  0.247922
  4  0.196098
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514672': 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) = 4918.8501402
delta logL = 0.149402619011

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  2.262e+00  9.115e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.211e+00  4.297e-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.931e-01  1.961e-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.086e+00  2.479e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.76
Ra Dec: 147.244 0.372
Photon Index (Free Index): 2.21 +/- 0.43
Photon Flux (Free Index): 1.61e-07 +/- 7.27e-08
Energy Flux (Free Index): 4.74e-05 +/- 1.86e-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/514672/cmap_HighResolution_323049601_323308801_4FGL_J0948.9+0022_daily_bin323.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.82e-07', energy_flux2='4.74e-05', photon_flux_error='6.93e-08', dlogl='1.49e-01', energy_flux='4.52e-05', photon_flux2='1.61e-07', job_status='DONE', time_completed='2021-09-01 02:52:28.023890', photon_index_error2='0.43', photon_index2='2.21', ts='12.53', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='1.86e-05', EG='1.06', time_epoch_completed='1630489948.02', return_code='0', job_id='514672', GAL2='0.89', EG2='1.09', return_code2='0', energy_flux_error='1.73e-05', photon_flux_error2='7.27e-08', ts2='12.76', photon_index='2.45' WHERE bin_id='323' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:52:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 514672: <4FGL_J0948.9+0022_daily_bin323> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin323 147.244 0.3717 323049601 323308801 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 :                                   493.24 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             321.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   700 sec.
    Turnaround time :                            703 sec.

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

