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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin81
RA = 147.244, Dec = 0.3717
tmin = 260323201, tmax = 260582401
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='513110', job_status='RUN', time_executed='2021-09-01 02:40:17.668300', time_epoch_executed='1630489217.67' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='81'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513110

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513110/ft1_4FGL_J0948.9+0022_daily_bin81.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513110/ft2_4FGL_J0948.9+0022_daily_bin81.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513110/ft1_4FGL_J0948.9+0022_daily_bin81.fits outfile=/scratch/kocevski/513110/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin81.fits ra=147.244 dec=0.3717 rad=12.0 tmin=260323201.0 tmax=260582401.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 2.16
user 1.36
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/513110/ft1_filtered_4FGL_J0948.9+0022_daily_bin81.fits" evtable="EVENTS" scfile=/scratch/kocevski/513110/ft2_4FGL_J0948.9+0022_daily_bin81.fits sctable="SC_DATA" outfile=/scratch/kocevski/513110/ltcube_260323201_260582401_4FGL_J0948.9+0022_daily_bin81.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/513110/ft2_4FGL_J0948.9+0022_daily_bin81.fits
.....................!
real 12.80
user 11.93
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513110/ft1_filtered_4FGL_J0948.9+0022_daily_bin81.fits evtable="EVENTS" scfile=/scratch/kocevski/513110/ft2_4FGL_J0948.9+0022_daily_bin81.fits sctable="SC_DATA" expcube=/scratch/kocevski/513110/ltcube_260323201_260582401_4FGL_J0948.9+0022_daily_bin81.fits outfile=/scratch/kocevski/513110/expmap_260323201_260582401_4FGL_J0948.9+0022_daily_bin81.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/513110/ltcube_260323201_260582401_4FGL_J0948.9+0022_daily_bin81.fits
.....................!
real 192.05
user 184.99
sys 4.01

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/513110/ft1_filtered_4FGL_J0948.9+0022_daily_bin81.fits scfile=/scratch/kocevski/513110/ft2_4FGL_J0948.9+0022_daily_bin81.fits outfile=/scratch/kocevski/513110/cmap_260323201_260582401_4FGL_J0948.9+0022_daily_bin81.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.53
user 0.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/513110/ft1_filtered_4FGL_J0948.9+0022_daily_bin81.fits scfile=/scratch/kocevski/513110/ft2_4FGL_J0948.9+0022_daily_bin81.fits outfile=/scratch/kocevski/513110/cmap_HighResolution_260323201_260582401_4FGL_J0948.9+0022_daily_bin81.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=147.244 yref=0.3717 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.1767       1.0000         .10000E-03   10000.    
     2 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.1250       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.993       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15662E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.4102       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.5938       1.0000         .10000E-03   10000.    
     9 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.0778       1.0000         .10000E-03   10000.    
    11 'norm      '    .99130       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10288       1.0000         .10000E-03   10000.    
    13 'Prefactor '    50.445       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    14.777       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.843       1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.829       1.0000         .10000E-03   10000.    
    18 'Prefactor '    39.132       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .24400       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .53432       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .88804       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .96196       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=   8588.076     FROM MIGRAD    STATUS=CONVERGED    527 CALLS     2963 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.1780        3.4938       -.23781E-06   -.79247E-04
   2  norm          .10000E-03    2.8942       -.16067E-06** at limit **
   3  Prefactor     3.1147        13.915        .19061E-04   -.22214E-05
   4  Prefactor     10.993        3.8694        .10067E-06   -.56404E-04
   5  Prefactor     .10004E-03    186.27        .33283E-05** at limit **
   6  Prefactor     2.4102        10.955       -.23650E-05   -.41770E-04
   7  Prefactor     .10000E-03    14.048       -.30180E-06** at limit **
   8  norm          2.5936        2.0879        .89614E-07   -.34246E-04
   9  norm          .10000E-03    .29827        .84251E-07** at limit **
  10  norm          3.0780        .68363        .34378E-07   -.50806E-03
  11  norm          .99125        .89333        .37089E-07    .29198E-05
  12  Prefactor     .11160        7.3046        .11119E-05   -.97957E-04
  13  Prefactor     50.456        37.672        .50068E-05   -.20122E-04
  14  Prefactor     .10000E-03    26.897       -.20448E-06** at limit **
  15  norm          14.778        12.573       -.93960E-06   -.19165E-03
  16  Prefactor     10.843        9.4873       -.48431E-06   -.18000E-03
  17  Prefactor     19.828        26.601       -.22937E-05   -.46797E-04
  18  Prefactor     39.147        36.923        .55503E-05   -.55498E-04
  19  Prefactor     .10000E-03    6.4205        .30851E-06** at limit **
  20  norm          .24361        .61764        .41946E-07   -.21046E-03
  21  Prefactor     .53728        .18939       -.31127E-07   -.70190E-03
  22  Normalizat    .88761        .16797       -.27366E-05   -.21605E-03
  23  Prefactor     .96226        .12782        .10463E-06   -.37047E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.17797
  norm       = 0.0001
  Prefactor  = 3.11466
  Prefactor  = 10.9934
  Prefactor  = 0.000100041
  Prefactor  = 2.41019
  Prefactor  = 0.0001
  norm       = 2.59364
  norm       = 0.0001
  norm       = 3.07796
  norm       = 0.99125
  Prefactor  = 0.111604
  Prefactor  = 50.4563
  Prefactor  = 0.0001
  norm       = 14.7776
  Prefactor  = 10.8433
  Prefactor  = 19.8284
  Prefactor  = 39.1467
  Prefactor  = 0.0001
  norm       = 0.243613
  Prefactor  = 0.53728
  Normalizat = 0.887605
  Prefactor  = 0.962259
 **********
 **   18 **HESSE 
 **********

 FCN=   8588.076     FROM HESSE     STATUS=OK           388 CALLS     3351 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.1780        3.4937        .11622E-03   -1.5172    
   2  norm          .10000E-03    2.9275        .15393E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.1147        13.922        .22935E-03   -1.5355    
   4  Prefactor     10.993        3.8705        .10264E-03   -1.5045    
   5  Prefactor     .10004E-03    193.50        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.4102        10.904        .26370E-03   -1.5397    
   7  Prefactor     .10000E-03    14.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.5936        2.0869        .11681E-03   -1.5386    
   9  norm          .10000E-03    .38745        .98036E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.0780        .68305        .33981E-04   -1.5357    
  11  norm          .99125        .91677        .80913E-03   -1.5509    
  12  Prefactor     .11160        10.678        .72784E-01   -1.5641    
  13  Prefactor     50.456        37.675        .56464E-04   -1.4286    
  14  Prefactor     .10000E-03    26.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          14.778        12.669        .10419E-03   -1.4939    
  16  Prefactor     10.843        9.4813        .12167E-03   -1.5049    
  17  Prefactor     19.828        26.604        .89946E-04   -1.4817    
  18  Prefactor     39.147        36.877        .64074E-04   -1.4456    
  19  Prefactor     .10000E-03    6.4282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .24361        .59587        .11064E-03   -1.5609    
  21  Prefactor     .53728        5.4014        .20380E-02   -1.5561    
  22  Normalizat    .88761        .19365        .27924E-03   -.96897    
  23  Prefactor     .96226        .14925        .21893E-03   -.93998    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45402e-09
Minuit parameter uncertainties:
  1  3.49383
  2  2.18463e-05
  3  13.1749
  4  3.8706
  5  0.00563932
  6  10.2558
  7  2.88814e-06
  8  2.08693
  9  6.47618e-06
  10  0.683056
  11  0.91678
  12  2.18277
  13  37.6928
  14  7.46121e-05
  15  12.6709
  16  9.48258
  17  26.6202
  18  36.8982
  19  2.99675e-05
  20  0.595885
  21  3.40716
  22  0.193803
  23  0.149318
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  3.078e+00  6.831e-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.623e-01  1.493e-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:  8.876e-01  1.938e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 44.43
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 2.36e-07 +/- 5.24e-08
Energy Flux (Fixed Index): 5.89e-05 +/- 1.31e-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) = 8586.59315818
delta logL = 1.48324436623

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8586.59265538
delta logL = 1.48374716322

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8199       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0138       1.0000          .0000       5.0000    
     3 'Normalizat'    .94796       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92612       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=   8586.593     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      208 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8199        .65136        .60552E-02    .51039E-03
   2  alpha         2.0138        .21934        .18317       -.10313E-03
   3  Normalizat    .94796        .15754        .45511E-01    .50633E-04
   4  Prefactor     .92612        .12739        .45337E-01    .44786E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.81986
  alpha      = 2.01381
  Normalizat = 0.947959
  Prefactor  = 0.926121
 **********
 **   18 **HESSE 
 **********

 FCN=   8586.593     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8199        .70530        .33628E-04   -1.5372    
   2  alpha         2.0138        .24410        .79084E-02   -.19572    
   3  Normalizat    .94796        .18451        .27143E-03   -.94795    
   4  Prefactor     .92612        .14856        .22255E-03   -.95234    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.52433e-11
Minuit parameter uncertainties:
  1  0.705298
  2  0.244507
  3  0.184637
  4  0.148625
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513110': 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) = 8586.59265538
delta logL = 1.48374716711

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  2.820e+00  7.053e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.014e+00  2.445e-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.261e-01  1.486e-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:  9.480e-01  1.846e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 47.15
Ra Dec: 147.244 0.372
Photon Index (Free Index): 2.01 +/- 0.24
Photon Flux (Free Index): 1.92e-07 +/- 5.18e-08
Energy Flux (Free Index): 6.72e-05 +/- 1.63e-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/513110/cmap_HighResolution_260323201_260582401_4FGL_J0948.9+0022_daily_bin81.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.36e-07', energy_flux2='6.72e-05', photon_flux_error='5.24e-08', dlogl='1.48e+00', energy_flux='5.89e-05', photon_flux2='1.92e-07', job_status='DONE', time_completed='2021-09-01 02:51:32.839976', photon_index_error2='0.24', photon_index2='2.01', ts='44.43', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='1.63e-05', EG='0.89', time_epoch_completed='1630489892.84', return_code='0', job_id='513110', GAL2='0.93', EG2='0.95', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='5.18e-08', ts2='47.15', photon_index='2.45' WHERE bin_id='81' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:51:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 513110: <4FGL_J0948.9+0022_daily_bin81> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin81 147.244 0.3717 260323201 260582401 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 :                                   656.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             222.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            931 sec.

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

