/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 103 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7474
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0948.9+0022_daily_bin332
RA = 147.244, Dec = 0.3717
tmin = 325382401, tmax = 325641601
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='514695', job_status='RUN', time_executed='2021-09-01 02:43:11.951619', time_epoch_executed='1630489391.95' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='332'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514695

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514695/ft1_4FGL_J0948.9+0022_daily_bin332.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514695/ft2_4FGL_J0948.9+0022_daily_bin332.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514695/ft1_4FGL_J0948.9+0022_daily_bin332.fits outfile=/scratch/kocevski/514695/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin332.fits ra=147.244 dec=0.3717 rad=12.0 tmin=325382401.0 tmax=325641601.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.61
user 3.28
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/514695/ft1_filtered_4FGL_J0948.9+0022_daily_bin332.fits" evtable="EVENTS" scfile=/scratch/kocevski/514695/ft2_4FGL_J0948.9+0022_daily_bin332.fits sctable="SC_DATA" outfile=/scratch/kocevski/514695/ltcube_325382401_325641601_4FGL_J0948.9+0022_daily_bin332.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/514695/ft2_4FGL_J0948.9+0022_daily_bin332.fits
.....................!
real 13.13
user 12.60
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514695/ft1_filtered_4FGL_J0948.9+0022_daily_bin332.fits evtable="EVENTS" scfile=/scratch/kocevski/514695/ft2_4FGL_J0948.9+0022_daily_bin332.fits sctable="SC_DATA" expcube=/scratch/kocevski/514695/ltcube_325382401_325641601_4FGL_J0948.9+0022_daily_bin332.fits outfile=/scratch/kocevski/514695/expmap_325382401_325641601_4FGL_J0948.9+0022_daily_bin332.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/514695/ltcube_325382401_325641601_4FGL_J0948.9+0022_daily_bin332.fits
.....................!
real 193.99
user 185.64
sys 6.23

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/514695/ft1_filtered_4FGL_J0948.9+0022_daily_bin332.fits scfile=/scratch/kocevski/514695/ft2_4FGL_J0948.9+0022_daily_bin332.fits outfile=/scratch/kocevski/514695/cmap_325382401_325641601_4FGL_J0948.9+0022_daily_bin332.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=147.244 yref=0.3717 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/514695/ft1_filtered_4FGL_J0948.9+0022_daily_bin332.fits scfile=/scratch/kocevski/514695/ft2_4FGL_J0948.9+0022_daily_bin332.fits outfile=/scratch/kocevski/514695/cmap_HighResolution_325382401_325641601_4FGL_J0948.9+0022_daily_bin332.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3674       1.0000         .10000E-03   10000.    
     2 'norm      '    .54581       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2138       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    34.271       1.0000         .10000E-03   10000.    
     7 'Prefactor '    56.897       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.8661       1.0000         .10000E-03   10000.    
    10 'norm      '    4.5204       1.0000         .10000E-03   10000.    
    11 'norm      '    2.7270       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.8576       1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.475       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    20.070       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .26638E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .15703E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.8177       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12272       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2625       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .78144       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=   7294.685     FROM MIGRAD    STATUS=CONVERGED    533 CALLS     2596 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3698        2.5798        .16602E-06   -.20062E-02
   2  norm          .57281        3.0929        .86344E-07   -.13383E-03
   3  Prefactor     .10000E-03    11.516       -.57638E-07** at limit **
   4  Prefactor     1.2134        3.8060        .23275E-06   -.24653E-03
   5  Prefactor     .10000E-03    13.890        .11873E-06** at limit **
   6  Prefactor     34.272        18.983       -.22671E-06   -.37879E-04
   7  Prefactor     56.901        39.347        .23307E-05    .92668E-04
   8  norm          .10000E-03    .97453        .42431E-07** at limit **
   9  norm          1.8663        1.3901        .13696E-07   -.75419E-04
  10  norm          4.5206        .92039        .16292E-07    .18236E-03
  11  norm          2.7270        1.4745        .12112E-07   -.10797E-04
  12  Prefactor     6.8431        17.836       -.22182E-05    .21486E-03
  13  Prefactor     17.479        30.815        .21275E-05    .42690E-04
  14  Prefactor     .10000E-03    28.892        .15157E-05** at limit **
  15  norm          20.104        22.119        .31033E-05    .59582E-03
  16  Prefactor     .10032E-03    8.1644       -.23989E-05** at limit **
  17  Prefactor     .10000E-03    105.46       -.10109E-06** at limit **
  18  Prefactor     .10000E-03    52.204        .55539E-05** at limit **
  19  Prefactor     .10000E-03    19.904       -.10503E-06** at limit **
  20  norm          1.8178        1.4827        .15035E-07    .86551E-05
  21  Prefactor     .13193        4.5763        .28500E-06   -.16475E-03
  22  Normalizat    1.2624        .20058       -.15774E-06    .18268E-03
  23  Prefactor     .78147        .14717       -.65324E-06    .15190E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.36975
  norm       = 0.57281
  Prefactor  = 0.0001
  Prefactor  = 1.2134
  Prefactor  = 0.0001
  Prefactor  = 34.2724
  Prefactor  = 56.9012
  norm       = 0.0001
  norm       = 1.8663
  norm       = 4.5206
  norm       = 2.72704
  Prefactor  = 6.84306
  Prefactor  = 17.4793
  Prefactor  = 0.0001
  norm       = 20.1035
  Prefactor  = 0.000100322
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.8178
  Prefactor  = 0.13193
  Normalizat = 1.26244
  Prefactor  = 0.781473
 **********
 **   18 **HESSE 
 **********

 FCN=   7294.685     FROM HESSE     STATUS=OK           376 CALLS     2972 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3698        5.0736        .79532E-03   -1.5203    
   2  norm          .57281        10.213        .28644E-02   -1.5557    
   3  Prefactor     .10000E-03    11.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2134        3.8227        .27664E-03   -1.5488    
   5  Prefactor     .10000E-03    13.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     34.272        19.070        .68452E-04   -1.4536    
   7  Prefactor     56.901        39.174        .53183E-04   -1.4198    
   8  norm          .10000E-03    .98017        .82318E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.8663        1.3878        .82855E-04   -1.5435    
  10  norm          4.5206        .92449        .34535E-04   -1.5283    
  11  norm          2.7270        1.4751        .74067E-04   -1.5378    
  12  Prefactor     6.8431        17.674        .15321E-03   -1.5185    
  13  Prefactor     17.479        30.745        .95811E-04   -1.4872    
  14  Prefactor     .10000E-03    28.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          20.104        22.039        .89405E-04   -1.4811    
  16  Prefactor     .10032E-03    50.703        .39419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    106.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    51.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    20.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.8178        1.4691        .88037E-04   -1.5438    
  21  Prefactor     .13193        47.027        .34407E-02   -1.5635    
  22  Normalizat    1.2624        .23970        .26522E-03   -.84695    
  23  Prefactor     .78147        .17375        .25606E-03   -1.0041    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10093e-08
Minuit parameter uncertainties:
  1  5.07397
  2  4.83791
  3  1.63418e-07
  4  3.8235
  5  6.92678e-06
  6  19.0737
  7  39.1914
  8  9.37249e-08
  9  1.38781
  10  0.92449
  11  1.47507
  12  17.6878
  13  30.7727
  14  7.64186e-05
  15  22.0475
  16  0.00808717
  17  3.86913e-05
  18  0.000509862
  19  2.88117e-05
  20  1.46917
  21  4.98373
  22  0.239915
  23  0.173874
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  4.521e+00  9.245e-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.815e-01  1.739e-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.262e+00  2.399e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 52.67
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 3.47e-07 +/- 7.09e-08
Energy Flux (Fixed Index): 8.65e-05 +/- 1.77e-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) = 7294.58775727
delta logL = 0.0970753511765

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7294.58275877
delta logL = 0.102073851457

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5515       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5710       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2399       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79473       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=   7294.583     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      198 TOTAL
                     EDM=   .44E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5516        .95936        .47173E-02    .12710E-03
   2  alpha         2.5710        .27258        .19425       -.16612E-04
   3  Normalizat    1.2399        .18943        .60387E-01    .87194E-05
   4  Prefactor     .79475        .14652        .43649E-01    .18549E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.55163
  alpha      = 2.57097
  Normalizat = 1.23988
  Prefactor  = 0.794751
 **********
 **   18 **HESSE 
 **********

 FCN=   7294.583     FROM HESSE     STATUS=OK            31 CALLS      229 TOTAL
                     EDM=   .43E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5516        .90729        .34161E-04   -1.5281    
   2  alpha         2.5710        .26353        .84320E-03    .28392E-01
   3  Normalizat    1.2399        .22563        .26708E-03   -.85379    
   4  Prefactor     .79475        .17297        .25416E-03   -.99922    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.334e-15
Minuit parameter uncertainties:
  1  0.907289
  2  0.264018
  3  0.225805
  4  0.173089
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514695': 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) = 7294.58275875
delta logL = 0.102073867528

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  4.552e+00  9.073e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.571e+00  2.640e-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.948e-01  1.731e-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.240e+00  2.258e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 52.59
Ra Dec: 147.244 0.372
Photon Index (Free Index): 2.57 +/- 0.26
Photon Flux (Free Index): 3.65e-07 +/- 8.24e-08
Energy Flux (Free Index): 8.51e-05 +/- 1.72e-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/514695/cmap_HighResolution_325382401_325641601_4FGL_J0948.9+0022_daily_bin332.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.47e-07', energy_flux2='8.51e-05', photon_flux_error='7.09e-08', dlogl='1.02e-01', energy_flux='8.65e-05', photon_flux2='3.65e-07', job_status='DONE', time_completed='2021-09-01 02:53:42.149998', photon_index_error2='0.26', photon_index2='2.57', ts='52.67', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='1.72e-05', EG='1.26', time_epoch_completed='1630490022.15', return_code='0', job_id='514695', GAL2='0.79', EG2='1.24', return_code2='0', energy_flux_error='1.77e-05', photon_flux_error2='8.24e-08', ts2='52.59', photon_index='2.45' WHERE bin_id='332' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:53:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 514695: <4FGL_J0948.9+0022_daily_bin332> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin332 147.244 0.3717 325382401 325641601 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 :                                   611.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   773 sec.
    Turnaround time :                            775 sec.

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

