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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin131
RA = 147.244, Dec = 0.3717
tmin = 273283201, tmax = 273542401
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='513187', job_status='RUN', time_executed='2021-09-01 02:39:36.881759', time_epoch_executed='1630489176.88' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='131'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513187

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513187/ft1_4FGL_J0948.9+0022_daily_bin131.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513187/ft2_4FGL_J0948.9+0022_daily_bin131.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513187/ft1_4FGL_J0948.9+0022_daily_bin131.fits outfile=/scratch/kocevski/513187/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin131.fits ra=147.244 dec=0.3717 rad=12.0 tmin=273283201.0 tmax=273542401.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.08
user 1.52
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513187/ft1_filtered_4FGL_J0948.9+0022_daily_bin131.fits evtable="EVENTS" scfile=/scratch/kocevski/513187/ft2_4FGL_J0948.9+0022_daily_bin131.fits sctable="SC_DATA" expcube=/scratch/kocevski/513187/ltcube_273283201_273542401_4FGL_J0948.9+0022_daily_bin131.fits outfile=/scratch/kocevski/513187/expmap_273283201_273542401_4FGL_J0948.9+0022_daily_bin131.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/513187/ltcube_273283201_273542401_4FGL_J0948.9+0022_daily_bin131.fits
.....................!
real 189.85
user 184.93
sys 3.55

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

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/513187/ft1_filtered_4FGL_J0948.9+0022_daily_bin131.fits scfile=/scratch/kocevski/513187/ft2_4FGL_J0948.9+0022_daily_bin131.fits outfile=/scratch/kocevski/513187/cmap_HighResolution_273283201_273542401_4FGL_J0948.9+0022_daily_bin131.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.56
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.8641       1.0000         .10000E-03   10000.    
     2 'norm      '    1.7659       1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.169       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.1385       1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.811       1.0000         .10000E-03   10000.    
     8 'norm      '    3.0618       1.0000         .10000E-03   10000.    
     9 'norm      '    1.6023       1.0000         .10000E-03   10000.    
    10 'norm      '    .45258       1.0000         .10000E-03   10000.    
    11 'norm      '    1.4956       1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.666       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    40.322       1.0000         .10000E-03   10000.    
    15 'norm      '    18.190       1.0000         .10000E-03   10000.    
    16 'Prefactor '    43.712       1.0000         .10000E-03   10000.    
    17 'Prefactor '    26.871       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .16686E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.0958       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .55207       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.4748       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=   6759.799     FROM MIGRAD    STATUS=CONVERGED    502 CALLS     2628 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.8641        3.7769       -.63040E-06   -.55924E-04
   2  norm          1.7658        6.0641        .30544E-05   -.78537E-03
   3  Prefactor     26.157        21.356       -.12192E-04   -.12225E-04
   4  Prefactor     .10000E-03    1.7712       -.10167E-05** at limit **
   5  Prefactor     .10000E-03    12.278        .10613E-05** at limit **
   6  Prefactor     6.1392        10.820       -.16538E-05   -.26461E-04
   7  Prefactor     24.803        47.291       -.13727E-04    .15950E-04
   8  norm          3.0598        4.8021       -.33956E-05   -.63370E-03
   9  norm          1.6018        1.4104       -.80777E-06   -.84524E-03
  10  norm          .45231        .46410       -.26105E-06   -.17547E-02
  11  norm          1.4952        1.9148       -.80211E-07   -.48488E-03
  12  Prefactor     24.664        14.995       -.76108E-06    .32795E-04
  13  Prefactor     .10000E-03    18.032        .72128E-05** at limit **
  14  Prefactor     40.301        36.809       -.26947E-04    .20049E-04
  15  norm          18.188        16.283        .31962E-07    .70827E-05
  16  Prefactor     43.710        15.780        .19525E-06    .10443E-03
  17  Prefactor     26.858        57.850       -.22541E-04    .28503E-05
  18  Prefactor     .10000E-03    27.651       -.14824E-05** at limit **
  19  Prefactor     .10000E-03    6.8135        .52692E-06** at limit **
  20  norm          .10014E-03    .53379       -.61117E-06** at limit **
  21  Prefactor     6.0956        6.9302       -.39986E-08    .33665E-04
  22  Normalizat    .55207        .23366        .18041E-04    .24469E-03
  23  Prefactor     1.4750        .17553       -.13304E-05    .62965E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.86405
  norm       = 1.76579
  Prefactor  = 26.1569
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 6.13917
  Prefactor  = 24.8032
  norm       = 3.05978
  norm       = 1.60176
  norm       = 0.452305
  norm       = 1.49516
  Prefactor  = 24.6643
  Prefactor  = 0.0001
  Prefactor  = 40.3008
  norm       = 18.1881
  Prefactor  = 43.7097
  Prefactor  = 26.8579
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100135
  Prefactor  = 6.09556
  Normalizat = 0.552069
  Prefactor  = 1.47501
 **********
 **   18 **HESSE 
 **********

 FCN=   6759.799     FROM HESSE     STATUS=OK           384 CALLS     3012 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.8641        3.7715        .12339E-03   -1.5224    
   2  norm          1.7658        6.0104        .31521E-03   -1.5442    
   3  Prefactor     26.157        21.299        .78309E-04   -1.4685    
   4  Prefactor     .10000E-03    3.8245        .21150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.1392        10.796        .16204E-03   -1.5212    
   7  Prefactor     24.803        47.203        .80421E-04   -1.4711    
   8  norm          3.0598        4.8093        .21333E-03   -1.5358    
   9  norm          1.6018        1.3995        .85642E-04   -1.5455    
  10  norm          .45231        .43597        .53929E-03   -1.5573    
  11  norm          1.4952        1.8857        .12309E-03   -1.5463    
  12  Prefactor     24.664        14.987        .80656E-04   -1.4714    
  13  Prefactor     .10000E-03    18.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     40.301        36.834        .63125E-04   -1.4437    
  15  norm          18.188        16.276        .93909E-04   -1.4855    
  16  Prefactor     43.710        15.753        .60637E-04   -1.4385    
  17  Prefactor     26.858        57.844        .77282E-04   -1.4671    
  18  Prefactor     .10000E-03    27.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.8161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10014E-03    15.581        .11412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.0956        6.8702        .16261E-03   -1.5214    
  22  Normalizat    .55207        .25765        .38893E-03   -1.1006    
  23  Prefactor     1.4750        .19995        .20858E-03   -.78242    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09985e-08
Minuit parameter uncertainties:
  1  3.77161
  2  6.01249
  3  21.3051
  4  0.000133692
  5  5.76427e-05
  6  10.799
  7  47.2744
  8  4.80995
  9  1.39949
  10  0.435972
  11  1.88579
  12  14.9895
  13  0.000133679
  14  36.8546
  15  16.2795
  16  15.7543
  17  57.9652
  18  4.0868e-05
  19  5.09793e-06
  20  0.00290354
  21  6.8711
  22  0.258215
  23  0.200057
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  4.523e-01  4.360e-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:  1.475e+00  2.001e-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:  5.521e-01  2.582e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.89
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 3.47e-08 +/- 3.35e-08
Energy Flux (Fixed Index): 8.65e-06 +/- 8.34e-06

TS (Fixed Index): 1.89
Ra Dec: 147.244 0.372
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.85e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/513187/likelihoodResults_273283201_273542401_4FGL_J0948.9+0022_daily_bin131.txt

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) = 6758.60529486
delta logL = 1.19391217141

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6758.55850378
delta logL = 1.24070324598

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11436       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0137       1.0000          .0000       5.0000    
     3 'Normalizat'    .57550       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4678       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=   6758.559     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      224 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11429        .13400        .60048E-02   -.67131E-03
   2  alpha         1.0134        .50204        .38554       -.39148E-04
   3  Normalizat    .57550        .20449        .86048E-01    .40551E-04
   4  Prefactor     1.4678        .17208        .47261E-01   -.45756E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.114292
  alpha      = 1.0134
  Normalizat = 0.575498
  Prefactor  = 1.4678
 **********
 **   18 **HESSE 
 **********

 FCN=   6758.559     FROM HESSE     STATUS=OK            35 CALLS      259 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11429        .25294        .25787E-03   -1.5640    
   2  alpha         1.0134        .92783        .16446E-01   -.63682    
   3  Normalizat    .57550        .23287        .38116E-03   -1.0903    
   4  Prefactor     1.4678        .19685        .20891E-03   -.78445    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.82494e-09
Minuit parameter uncertainties:
  1  0.252941
  2  0.964409
  3  0.233266
  4  0.19695
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513187': 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) = 6758.55850365
delta logL = 1.24070338021

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.143e-01  2.529e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  1.013e+00  9.644e-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:  1.468e+00  1.970e-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:  5.755e-01  2.333e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.38
Ra Dec: 147.244 0.372
Photon Index (Free Index): 1.01 +/- 0.96
Photon Flux (Free Index): 9.83e-09 +/- 1.54e-08
Energy Flux (Free Index): 1.57e-05 +/- 1.95e-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/513187/cmap_HighResolution_273283201_273542401_4FGL_J0948.9+0022_daily_bin131.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.85e-05', comment='SUCCESS', photon_flux='3.47e-08', energy_flux2='1.57e-05', photon_flux_error='3.35e-08', dlogl='1.24e+00', energy_flux='8.65e-06', photon_flux2='9.83e-09', job_status='DONE', time_completed='2021-09-01 02:49:50.069977', photon_index_error2='0.96', photon_index2='1.01', ts='1.89', fit_tolerance='1e-08', GAL='1.48', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='1.95e-05', EG='0.55', time_epoch_completed='1630489790.07', return_code='0', job_id='513187', GAL2='1.47', EG2='0.58', return_code2='0', energy_flux_error='8.34e-06', photon_flux_error2='1.54e-08', ts2='4.38', photon_index='2.45' WHERE bin_id='131' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:49:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0006>
Subject: Job 513187: <4FGL_J0948.9+0022_daily_bin131> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin131 147.244 0.3717 273283201 273542401 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 :                                   610.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            821 sec.

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

