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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin343
RA = 147.244, Dec = 0.3717
tmin = 328233601, tmax = 328492801
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='514717', job_status='RUN', time_executed='2021-09-01 02:45:00.127455', time_epoch_executed='1630489500.13' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='343'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514717

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514717/ft1_4FGL_J0948.9+0022_daily_bin343.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514717/ft2_4FGL_J0948.9+0022_daily_bin343.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514717/ft1_4FGL_J0948.9+0022_daily_bin343.fits outfile=/scratch/kocevski/514717/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin343.fits ra=147.244 dec=0.3717 rad=12.0 tmin=328233601.0 tmax=328492801.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 4.67
user 3.69
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/514717/ft2_4FGL_J0948.9+0022_daily_bin343.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/514717/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin343.fits evtable="EVENTS" outfile="/scratch/kocevski/514717/ft1_filtered_4FGL_J0948.9+0022_daily_bin343.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.64
user 0.35
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514717/ft1_filtered_4FGL_J0948.9+0022_daily_bin343.fits evtable="EVENTS" scfile=/scratch/kocevski/514717/ft2_4FGL_J0948.9+0022_daily_bin343.fits sctable="SC_DATA" expcube=/scratch/kocevski/514717/ltcube_328233601_328492801_4FGL_J0948.9+0022_daily_bin343.fits outfile=/scratch/kocevski/514717/expmap_328233601_328492801_4FGL_J0948.9+0022_daily_bin343.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/514717/ltcube_328233601_328492801_4FGL_J0948.9+0022_daily_bin343.fits
.....................!
real 190.01
user 185.76
sys 3.78

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/514717/ft1_filtered_4FGL_J0948.9+0022_daily_bin343.fits scfile=/scratch/kocevski/514717/ft2_4FGL_J0948.9+0022_daily_bin343.fits outfile=/scratch/kocevski/514717/cmap_328233601_328492801_4FGL_J0948.9+0022_daily_bin343.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.57
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/514717/ft1_filtered_4FGL_J0948.9+0022_daily_bin343.fits scfile=/scratch/kocevski/514717/ft2_4FGL_J0948.9+0022_daily_bin343.fits outfile=/scratch/kocevski/514717/cmap_HighResolution_328233601_328492801_4FGL_J0948.9+0022_daily_bin343.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.60
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.3279       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10484E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.0720       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.990       1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.052       1.0000         .10000E-03   10000.    
     8 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.9552       1.0000         .10000E-03   10000.    
    10 'norm      '    3.6983       1.0000         .10000E-03   10000.    
    11 'norm      '    1.6455       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.8239       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.6800       1.0000         .10000E-03   10000.    
    15 'norm      '    17.423       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.2867       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .35229       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10506E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.1326       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0782       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .94466       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=   5092.856     FROM MIGRAD    STATUS=CONVERGED    572 CALLS     2249 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.3265        5.5341       -.68761E-07   -.20230E-03
   2  norm          .10000E-03    4.6422        .12749E-06** at limit **
   3  Prefactor     .10000E-03    9.7733        .38903E-06** at limit **
   4  Prefactor     .10000E-03    2.7695        .22322E-07** at limit **
   5  Prefactor     4.1054        98.604       -.55210E-04   -.38154E-05
   6  Prefactor     11.053        16.653        .14972E-05    .50416E-04
   7  Prefactor     26.128        34.161        .41670E-05    .17861E-04
   8  norm          .10000E-03    1.5397        .16333E-07** at limit **
   9  norm          4.9547        1.6879       -.61240E-07    .81083E-04
  10  norm          3.6977        .99050       -.33611E-07    .32388E-03
  11  norm          1.6452        1.8007       -.58293E-07   -.15191E-04
  12  Prefactor     6.8391        15.604       -.58424E-05   -.29241E-04
  13  Prefactor     .10000E-03    15.276       -.14012E-06** at limit **
  14  Prefactor     4.6796        22.639        .96292E-05    .58051E-05
  15  norm          17.432        16.453       -.71943E-05   -.43442E-04
  16  Prefactor     5.2938        8.8224        .29912E-05    .13506E-04
  17  Prefactor     .13125        44.549        .12353E-05    .88830E-04
  18  Prefactor     .10000E-03    22.560       -.16810E-06** at limit **
  19  Prefactor     .10000E-03    5.5506        .39907E-07** at limit **
  20  norm          .10000E-03    .61590       -.10277E-06** at limit **
  21  Prefactor     1.1331        1.9115        .57471E-06   -.16315E-02
  22  Normalizat    1.0786        .22594        .31385E-05   -.38867E-04
  23  Prefactor     .94439        .17189       -.31478E-06    .14555E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.3265
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.10538
  Prefactor  = 11.0528
  Prefactor  = 26.1283
  norm       = 0.0001
  norm       = 4.95473
  norm       = 3.69769
  norm       = 1.64519
  Prefactor  = 6.83907
  Prefactor  = 0.0001
  Prefactor  = 4.67955
  norm       = 17.432
  Prefactor  = 5.29379
  Prefactor  = 0.131248
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.13311
  Normalizat = 1.0786
  Prefactor  = 0.94439
 **********
 **   18 **HESSE 
 **********

 FCN=   5092.856     FROM HESSE     STATUS=OK           380 CALLS     2629 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.3265        5.5565        .62103E-03   -1.5097    
   2  norm          .10000E-03    4.7098        .15014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.7970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.8290        .11587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.1054        99.030        .19980E-03   -1.5303    
   6  Prefactor     11.053        16.699        .12085E-03   -1.5043    
   7  Prefactor     26.128        34.193        .78485E-04   -1.4685    
   8  norm          .10000E-03    1.5430        .86472E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.9547        1.6944        .51819E-04   -1.5263    
  10  norm          3.6977        .99341        .34626E-04   -1.5323    
  11  norm          1.6452        1.7844        .97315E-04   -1.5451    
  12  Prefactor     6.8391        15.619        .15359E-03   -1.5185    
  13  Prefactor     .10000E-03    15.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.6796        22.610        .18602E-03   -1.5275    
  15  norm          17.432        16.458        .95952E-04   -1.4873    
  16  Prefactor     5.2938        8.7994        .17480E-03   -1.5248    
  17  Prefactor     .13125        49.147        .13667       -1.5636    
  18  Prefactor     .10000E-03    22.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.5522        .16419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .63697        .10931E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.1331        10.757        .21838E-02   -1.5495    
  22  Normalizat    1.0786        .27072        .27605E-03   -.90442    
  23  Prefactor     .94439        .20357        .23519E-03   -.94607    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14201e-08
Minuit parameter uncertainties:
  1  5.5568
  2  7.58764e-06
  3  0.00014884
  4  1.50178e-05
  5  40.4012
  6  16.7062
  7  34.2185
  8  3.42373e-07
  9  1.69442
  10  0.993416
  11  1.78449
  12  15.6281
  13  2.40917e-05
  14  20.5849
  15  16.4623
  16  8.80155
  17  5.08181
  18  1.0962e-05
  19  2.09057e-06
  20  3.36431e-06
  21  6.98377
  22  0.271067
  23  0.203736
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  3.698e+00  9.934e-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.444e-01  2.037e-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.079e+00  2.711e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 30.90
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 2.84e-07 +/- 7.62e-08
Energy Flux (Fixed Index): 7.07e-05 +/- 1.90e-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) = 5092.6658014
delta logL = 0.19017975989

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5092.66325263
delta logL = 0.192728526178

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6205       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7298       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0290       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97908       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=   5092.663     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      205 TOTAL
                     EDM=   .30E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6204        1.7774        .53084E-02    .97379E-04
   2  alpha         2.7298        .76923        .26876       -.24519E-05
   3  Normalizat    1.0290        .22146        .63641E-01    .10921E-04
   4  Prefactor     .97907        .18110        .46005E-01    .59707E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.62044
  alpha      = 2.72984
  Normalizat = 1.029
  Prefactor  = 0.979066
 **********
 **   18 **HESSE 
 **********

 FCN=   5092.663     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .87E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6204        1.0088        .33604E-04   -1.5327    
   2  alpha         2.7298        .47541        .11252E-01    .92065E-01
   3  Normalizat    1.0290        .26468        .28149E-03   -.92065    
   4  Prefactor     .97907        .21032        .23169E-03   -.93431    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.68274e-15
Minuit parameter uncertainties:
  1  1.00885
  2  0.478347
  3  0.265018
  4  0.210494
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514717': 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) = 5092.66325262
delta logL = 0.192728537477

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  3.620e+00  1.009e+00  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.730e+00  4.783e-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:  9.791e-01  2.105e-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.029e+00  2.650e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 31.16
Ra Dec: 147.244 0.372
Photon Index (Free Index): 2.73 +/- 0.48
Photon Flux (Free Index): 3.11e-07 +/- 8.97e-08
Energy Flux (Free Index): 6.69e-05 +/- 1.88e-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/514717/cmap_HighResolution_328233601_328492801_4FGL_J0948.9+0022_daily_bin343.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.84e-07', energy_flux2='6.69e-05', photon_flux_error='7.62e-08', dlogl='1.93e-01', energy_flux='7.07e-05', photon_flux2='3.11e-07', job_status='DONE', time_completed='2021-09-01 02:53:25.963962', photon_index_error2='0.48', photon_index2='2.73', ts='30.90', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.88e-05', EG='1.08', time_epoch_completed='1630490005.96', return_code='0', job_id='514717', GAL2='0.98', EG2='1.03', return_code2='0', energy_flux_error='1.90e-05', photon_flux_error2='8.97e-08', ts2='31.16', photon_index='2.45' WHERE bin_id='343' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:53:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 514717: <4FGL_J0948.9+0022_daily_bin343> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin343 147.244 0.3717 328233601 328492801 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.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             214.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   756 sec.
    Turnaround time :                            758 sec.

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

