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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin91
RA = 147.244, Dec = 0.3717
tmin = 262915201, tmax = 263174401
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='513126', job_status='RUN', time_executed='2021-09-01 02:38:36.170726', time_epoch_executed='1630489116.17' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='91'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513126

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513126/ft1_4FGL_J0948.9+0022_daily_bin91.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513126/ft2_4FGL_J0948.9+0022_daily_bin91.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513126/ft1_4FGL_J0948.9+0022_daily_bin91.fits outfile=/scratch/kocevski/513126/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin91.fits ra=147.244 dec=0.3717 rad=12.0 tmin=262915201.0 tmax=263174401.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.27
user 1.10
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513126/ft1_filtered_4FGL_J0948.9+0022_daily_bin91.fits evtable="EVENTS" scfile=/scratch/kocevski/513126/ft2_4FGL_J0948.9+0022_daily_bin91.fits sctable="SC_DATA" expcube=/scratch/kocevski/513126/ltcube_262915201_263174401_4FGL_J0948.9+0022_daily_bin91.fits outfile=/scratch/kocevski/513126/expmap_262915201_263174401_4FGL_J0948.9+0022_daily_bin91.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/513126/ltcube_262915201_263174401_4FGL_J0948.9+0022_daily_bin91.fits
.....................!
real 189.41
user 185.03
sys 4.03

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/513126/ft1_filtered_4FGL_J0948.9+0022_daily_bin91.fits scfile=/scratch/kocevski/513126/ft2_4FGL_J0948.9+0022_daily_bin91.fits outfile=/scratch/kocevski/513126/cmap_262915201_263174401_4FGL_J0948.9+0022_daily_bin91.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/513126/ft1_filtered_4FGL_J0948.9+0022_daily_bin91.fits scfile=/scratch/kocevski/513126/ft2_4FGL_J0948.9+0022_daily_bin91.fits outfile=/scratch/kocevski/513126/cmap_HighResolution_262915201_263174401_4FGL_J0948.9+0022_daily_bin91.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.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.1315       1.0000         .10000E-03   10000.    
     2 'norm      '    .29496E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .50433E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    39.196       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.4978       1.0000         .10000E-03   10000.    
    11 'norm      '    1.4582       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.274       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.8527       1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.188       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    215.22       1.0000         .10000E-03   10000.    
    18 'Prefactor '    104.03       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.9649       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.5044       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .61640       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=   6197.525     FROM MIGRAD    STATUS=CONVERGED    508 CALLS     2993 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1315        4.2942        .28852E-05   -.90543E-03
   2  norm          .10001E-03    2.9336       -.48390E-06** at limit **
   3  Prefactor     .10000E-03    6.0072       -.19481E-06** at limit **
   4  Prefactor     .10000E-03    3.4631       -.13647E-06** at limit **
   5  Prefactor     .10007E-03    88.141       -.10285E-04** at limit **
   6  Prefactor     .10000E-03    14.874       -.77042E-06** at limit **
   7  Prefactor     39.205        41.345        .82323E-06    .13455E-03
   8  norm          .10000E-03    1.2102        .39191E-07** at limit **
   9  norm          .10000E-03    .60381        .40649E-07** at limit **
  10  norm          2.4978        .76548        .32004E-07   -.10972E-03
  11  norm          1.4584        1.4402        .44874E-07    .25835E-04
  12  Prefactor     16.274        12.145        .15073E-06   -.18577E-04
  13  Prefactor     3.8647        115.28        .40121E-05    .52742E-04
  14  Prefactor     29.190        40.493        .95153E-06    .37342E-04
  15  norm          .10000E-03    7.8470        .17632E-06** at limit **
  16  Prefactor     .10000E-03    5.1698        .14501E-06** at limit **
  17  Prefactor     215.22        91.552        .57522E-06   -.34881E-04
  18  Prefactor     104.03        65.654        .98241E-06    .23508E-04
  19  Prefactor     .10000E-03    22.273        .10517E-05** at limit **
  20  norm          1.9648        1.3155        .88119E-07   -.11355E-03
  21  Prefactor     .10000E-03    3.0425        .93081E-07** at limit **
  22  Normalizat    1.5045        .20722       -.21672E-05    .21218E-03
  23  Prefactor     .61626        .15060        .23117E-06   -.47156E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.13148
  norm       = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010007
  Prefactor  = 0.0001
  Prefactor  = 39.2049
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.49775
  norm       = 1.4584
  Prefactor  = 16.2737
  Prefactor  = 3.86471
  Prefactor  = 29.1895
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 215.222
  Prefactor  = 104.034
  Prefactor  = 0.000100001
  norm       = 1.96482
  Prefactor  = 0.0001
  Normalizat = 1.5045
  Prefactor  = 0.61626
 **********
 **   18 **HESSE 
 **********

 FCN=   6197.525     FROM HESSE     STATUS=OK           366 CALLS     3359 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1315        4.3310        .71578E-03   -1.5255    
   2  norm          .10001E-03    19.029        .25975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.0181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.6086        .28564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10007E-03    95.499        .42306E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     39.205        41.527        .64022E-04   -1.4455    
   8  norm          .10000E-03    1.2163        .84563E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .62788        .11934E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.4978        .76565        .36184E-04   -1.5392    
  11  norm          1.4584        1.4467        .91046E-04   -1.5466    
  12  Prefactor     16.274        12.143        .99283E-04   -1.4901    
  13  Prefactor     3.8647        113.78        .20560E-03   -1.5315    
  14  Prefactor     29.190        40.251        .74158E-04   -1.4627    
  15  norm          .10000E-03    7.8576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.1777        .17471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     215.22        91.841        .27564E-04   -1.2763    
  18  Prefactor     104.03        65.520        .39424E-04   -1.3664    
  19  Prefactor     .10000E-03    22.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.9648        1.3096        .71190E-04   -1.5428    
  21  Prefactor     .10000E-03    3.0888        .13408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.5045        .24302        .24152E-03   -.77652    
  23  Prefactor     .61626        .17749        .27564E-03   -1.0691    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22589e-09
Minuit parameter uncertainties:
  1  4.33125
  2  0.00099823
  3  3.03196e-05
  4  6.83656e-06
  5  0.00517042
  6  0.000135935
  7  41.5574
  8  1.10006e-06
  9  4.50637e-06
  10  0.76565
  11  1.44676
  12  12.1447
  13  42.0263
  14  40.2887
  15  4.69934e-05
  16  1.32592e-05
  17  91.9022
  18  65.5656
  19  0.000327826
  20  1.30963
  21  3.40152e-06
  22  0.243213
  23  0.177651
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  2.498e+00  7.656e-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:  6.163e-01  1.777e-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.505e+00  2.432e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 24.42
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.92e-07 +/- 5.87e-08
Energy Flux (Fixed Index): 4.78e-05 +/- 1.46e-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) = 6197.39831547
delta logL = 0.126842337662

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6197.384942
delta logL = 0.140215805871

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4219       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2569       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5284       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60230       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=   6197.385     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      207 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4219        .75377        .65749E-02    .25097E-02
   2  alpha         2.2569        .33238        .23987        .53574E-04
   3  Normalizat    1.5284        .19729        .54290E-01   -.19562E-04
   4  Prefactor     .60231        .15063        .62940E-01    .35395E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.42192
  alpha      = 2.25694
  Normalizat = 1.52841
  Prefactor  = 0.602312
 **********
 **   18 **HESSE 
 **********

 FCN=   6197.385     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4219        .78152        .36269E-04   -1.5397    
   2  alpha         2.2569        .36038        .10183E-01   -.97377E-01
   3  Normalizat    1.5284        .23438        .24004E-03   -.76983    
   4  Prefactor     .60231        .17736        .27847E-03   -1.0749    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63088e-10
Minuit parameter uncertainties:
  1  0.781521
  2  0.361648
  3  0.234547
  4  0.177524
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513126': 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) = 6197.38494199
delta logL = 0.140215812604

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  2.422e+00  7.815e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.257e+00  3.616e-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:  6.023e-01  1.775e-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.528e+00  2.345e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 24.51
Ra Dec: 147.244 0.372
Photon Index (Free Index): 2.26 +/- 0.36
Photon Flux (Free Index): 1.75e-07 +/- 6.35e-08
Energy Flux (Free Index): 4.96e-05 +/- 1.59e-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/513126/cmap_HighResolution_262915201_263174401_4FGL_J0948.9+0022_daily_bin91.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.92e-07', energy_flux2='4.96e-05', photon_flux_error='5.87e-08', dlogl='1.40e-01', energy_flux='4.78e-05', photon_flux2='1.75e-07', job_status='DONE', time_completed='2021-09-01 02:48:07.627987', photon_index_error2='0.36', photon_index2='2.26', ts='24.42', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', energy_flux_error2='1.59e-05', EG='1.50', time_epoch_completed='1630489687.63', return_code='0', job_id='513126', GAL2='0.60', EG2='1.53', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='6.35e-08', ts2='24.51', photon_index='2.45' WHERE bin_id='91' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:48:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 513126: <4FGL_J0948.9+0022_daily_bin91> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin91 147.244 0.3717 262915201 263174401 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 :                                   570.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   721 sec.
    Turnaround time :                            724 sec.

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

