/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 211 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 = 7392
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0948.9+0022_daily_bin570
RA = 147.244, Dec = 0.3717
tmin = 387072001, tmax = 387331201
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='516445', job_status='RUN', time_executed='2021-09-01 02:49:44.683899', time_epoch_executed='1630489784.68' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='570'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/516445

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/516445/ft1_4FGL_J0948.9+0022_daily_bin570.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/516445/ft2_4FGL_J0948.9+0022_daily_bin570.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/516445/ft1_4FGL_J0948.9+0022_daily_bin570.fits outfile=/scratch/kocevski/516445/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin570.fits ra=147.244 dec=0.3717 rad=12.0 tmin=387072001.0 tmax=387331201.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.50
user 3.18
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/516445/ft1_filtered_4FGL_J0948.9+0022_daily_bin570.fits" evtable="EVENTS" scfile=/scratch/kocevski/516445/ft2_4FGL_J0948.9+0022_daily_bin570.fits sctable="SC_DATA" outfile=/scratch/kocevski/516445/ltcube_387072001_387331201_4FGL_J0948.9+0022_daily_bin570.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/516445/ft2_4FGL_J0948.9+0022_daily_bin570.fits
.....................!
real 11.69
user 11.30
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/516445/ft1_filtered_4FGL_J0948.9+0022_daily_bin570.fits evtable="EVENTS" scfile=/scratch/kocevski/516445/ft2_4FGL_J0948.9+0022_daily_bin570.fits sctable="SC_DATA" expcube=/scratch/kocevski/516445/ltcube_387072001_387331201_4FGL_J0948.9+0022_daily_bin570.fits outfile=/scratch/kocevski/516445/expmap_387072001_387331201_4FGL_J0948.9+0022_daily_bin570.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/516445/ltcube_387072001_387331201_4FGL_J0948.9+0022_daily_bin570.fits
.....................!
real 190.85
user 185.17
sys 5.06

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/516445/ft1_filtered_4FGL_J0948.9+0022_daily_bin570.fits scfile=/scratch/kocevski/516445/ft2_4FGL_J0948.9+0022_daily_bin570.fits outfile=/scratch/kocevski/516445/cmap_387072001_387331201_4FGL_J0948.9+0022_daily_bin570.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.90
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/516445/ft1_filtered_4FGL_J0948.9+0022_daily_bin570.fits scfile=/scratch/kocevski/516445/ft2_4FGL_J0948.9+0022_daily_bin570.fits outfile=/scratch/kocevski/516445/cmap_HighResolution_387072001_387331201_4FGL_J0948.9+0022_daily_bin570.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.74
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    13.041       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.164       1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.787       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.0925       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10305E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .94195       1.0000         .10000E-03   10000.    
     9 'norm      '    .22792E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    2.6495       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.273       1.0000         .10000E-03   10000.    
    13 'Prefactor '    49.609       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.771       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.977       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.7569       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10840E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10508E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .85293       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1083       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .94848       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=   5463.942     FROM MIGRAD    STATUS=CONVERGED    535 CALLS     3037 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.3331       -.62175E-07** at limit **
   2  norm          13.043        8.2531        .20262E-06   -.15608E-04
   3  Prefactor     .10000E-03    13.241        .18213E-06** at limit **
   4  Prefactor     11.165        5.6291        .21921E-06   -.53470E-05
   5  Prefactor     25.805        41.658        .11228E-05    .22829E-04
   6  Prefactor     5.0984        12.992        .56218E-06    .34266E-04
   7  Prefactor     .10000E-03    21.692       -.14645E-06** at limit **
   8  norm          .94280        4.8141        .25184E-05    .16424E-03
   9  norm          .21383E-01    .70571        .24750E-06   -.47744E-03
  10  norm          2.6496        .95371        .81263E-07   -.17946E-04
  11  norm          .10000E-03    .88401       -.12254E-06** at limit **
  12  Prefactor     11.272        15.484        .11506E-05    .28783E-04
  13  Prefactor     49.619        57.773        .88911E-06   -.57452E-05
  14  Prefactor     16.793        32.095        .24344E-06    .12806E-04
  15  norm          .10000E-03    6.0413        .34043E-06** at limit **
  16  Prefactor     10.978        11.200        .53465E-06   -.49527E-05
  17  Prefactor     4.8148        261.11        .47862E-06    .11717E-04
  18  Prefactor     .10000E-03    103.83        .47349E-05** at limit **
  19  Prefactor     .10000E-03    70.975        .58592E-05** at limit **
  20  norm          .10000E-03    .86320       -.10946E-06** at limit **
  21  Prefactor     .88681        4.9102        .91497E-06   -.22057E-03
  22  Normalizat    1.1082        .26064       -.48917E-05   -.52547E-04
  23  Prefactor     .94848        .18342        .28792E-05   -.23942E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 13.0426
  Prefactor  = 0.0001
  Prefactor  = 11.1653
  Prefactor  = 25.8048
  Prefactor  = 5.09842
  Prefactor  = 0.0001
  norm       = 0.942797
  norm       = 0.021383
  norm       = 2.64957
  norm       = 0.0001
  Prefactor  = 11.2715
  Prefactor  = 49.6188
  Prefactor  = 16.7928
  norm       = 0.0001
  Prefactor  = 10.9777
  Prefactor  = 4.81479
  Prefactor  = 0.000100002
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.886813
  Normalizat = 1.10815
  Prefactor  = 0.948482
 **********
 **   18 **HESSE 
 **********

 FCN=   5463.942     FROM HESSE     STATUS=OK           380 CALLS     3417 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.3382        .83328E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          13.043        8.2542        .11092E-03   -1.4986    
   3  Prefactor     .10000E-03    13.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.165        5.6316        .11668E-03   -1.5040    
   5  Prefactor     25.805        41.698        .78887E-04   -1.4692    
   6  Prefactor     5.0984        12.968        .17817E-03   -1.5256    
   7  Prefactor     .10000E-03    21.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .94280        5.0702        .31108E-03   -1.5514    
   9  norm          .21383E-01    4.1049        .11824E-02   -1.5679    
  10  norm          2.6496        .95193        .40307E-04   -1.5382    
  11  norm          .10000E-03    .89365        .67916E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.272        15.439        .11932E-03   -1.5036    
  13  Prefactor     49.619        57.655        .56935E-04   -1.4298    
  14  Prefactor     16.793        32.057        .97800E-04   -1.4888    
  15  norm          .10000E-03    6.0437        .17743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.978        11.093        .12092E-03   -1.5045    
  17  Prefactor     4.8148        256.04        .18448E-03   -1.5269    
  18  Prefactor     .10000E-03    104.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    73.311        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.3152        .13152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .88681        15.463        .29804E-02   -1.5520    
  22  Normalizat    1.1082        .27979        .27929E-03   -.89490    
  23  Prefactor     .94848        .19908        .23363E-03   -.94467    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.10616e-10
Minuit parameter uncertainties:
  1  2.46656e-07
  2  8.25491
  3  1.40023e-05
  4  5.63187
  5  41.7448
  6  12.9756
  7  1.03578e-05
  8  4.37308
  9  0.591188
  10  0.951933
  11  4.01302e-06
  12  15.4441
  13  57.7202
  14  32.0894
  15  1.0429e-05
  16  11.0947
  17  70.5421
  18  0.000860137
  19  0.000669853
  20  3.30883e-06
  21  7.40794
  22  0.280166
  23  0.199229
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  2.650e+00  9.519e-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.485e-01  1.992e-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.108e+00  2.802e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.46
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 2.03e-07 +/- 7.30e-08
Energy Flux (Fixed Index): 5.07e-05 +/- 1.82e-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) = 5463.87808103
delta logL = 0.0639217772232

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5463.86498295
delta logL = 0.0770198600776

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5168       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2736       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1372       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93204       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=   5463.865     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      197 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5156        .91813        .64382E-02    .19087E-02
   2  alpha         2.2724        .38098        .26189       -.32653E-04
   3  Normalizat    1.1373        .21589        .62463E-01    .25003E-04
   4  Prefactor     .93191        .16676        .45412E-01    .61117E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.51558
  alpha      = 2.27242
  Normalizat = 1.13732
  Prefactor  = 0.931905
 **********
 **   18 **HESSE 
 **********

 FCN=   5463.865     FROM HESSE     STATUS=OK            33 CALLS      230 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5156        1.0094        .40350E-04   -1.5391    
   2  alpha         2.2724        .44696        .10927E-01   -.91160E-01
   3  Normalizat    1.1373        .26100        .27629E-03   -.88562    
   4  Prefactor     .93191        .19886        .23542E-03   -.95035    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.93184e-10
Minuit parameter uncertainties:
  1  1.0094
  2  0.4494
  3  0.261299
  4  0.199018
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/516445': 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) = 5463.86497914
delta logL = 0.0770236704711

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  2.516e+00  1.009e+00  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.272e+00  4.494e-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.319e-01  1.990e-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.137e+00  2.613e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.52
Ra Dec: 147.244 0.372
Photon Index (Free Index): 2.27 +/- 0.45
Photon Flux (Free Index): 1.82e-07 +/- 8.56e-08
Energy Flux (Free Index): 5.12e-05 +/- 1.87e-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/516445/cmap_HighResolution_387072001_387331201_4FGL_J0948.9+0022_daily_bin570.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.03e-07', energy_flux2='5.12e-05', photon_flux_error='7.30e-08', dlogl='7.70e-02', energy_flux='5.07e-05', photon_flux2='1.82e-07', job_status='DONE', time_completed='2021-09-01 02:58:57.241956', photon_index_error2='0.45', photon_index2='2.27', ts='14.46', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='1.87e-05', EG='1.11', time_epoch_completed='1630490337.24', return_code='0', job_id='516445', GAL2='0.93', EG2='1.14', return_code2='0', energy_flux_error='1.82e-05', photon_flux_error2='8.56e-08', ts2='14.52', photon_index='2.45' WHERE bin_id='570' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:58:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 516445: <4FGL_J0948.9+0022_daily_bin570> in cluster <slac> Done

Job <4FGL_J0948.9+0022_daily_bin570> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 02:45:56 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:45:57 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:45:57 2021
Terminated at Wed Sep  1 02:58:58 2021
Results reported at Wed Sep  1 02:58:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin570 147.244 0.3717 387072001 387331201 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 :                                   540.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             242.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            782 sec.

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

