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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin449
RA = 147.244, Dec = 0.3717
tmin = 355708801, tmax = 355968001
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='514877', job_status='RUN', time_executed='2021-09-01 02:41:29.509006', time_epoch_executed='1630489289.51' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='449'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514877

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514877/ft1_4FGL_J0948.9+0022_daily_bin449.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514877/ft2_4FGL_J0948.9+0022_daily_bin449.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514877/ft1_4FGL_J0948.9+0022_daily_bin449.fits outfile=/scratch/kocevski/514877/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin449.fits ra=147.244 dec=0.3717 rad=12.0 tmin=355708801.0 tmax=355968001.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 5.95
user 4.65
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514877/ft1_filtered_4FGL_J0948.9+0022_daily_bin449.fits evtable="EVENTS" scfile=/scratch/kocevski/514877/ft2_4FGL_J0948.9+0022_daily_bin449.fits sctable="SC_DATA" expcube=/scratch/kocevski/514877/ltcube_355708801_355968001_4FGL_J0948.9+0022_daily_bin449.fits outfile=/scratch/kocevski/514877/expmap_355708801_355968001_4FGL_J0948.9+0022_daily_bin449.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/514877/ltcube_355708801_355968001_4FGL_J0948.9+0022_daily_bin449.fits
.....................!
real 193.34
user 185.75
sys 5.81

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/514877/ft1_filtered_4FGL_J0948.9+0022_daily_bin449.fits scfile=/scratch/kocevski/514877/ft2_4FGL_J0948.9+0022_daily_bin449.fits outfile=/scratch/kocevski/514877/cmap_355708801_355968001_4FGL_J0948.9+0022_daily_bin449.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/514877/ft1_filtered_4FGL_J0948.9+0022_daily_bin449.fits scfile=/scratch/kocevski/514877/ft2_4FGL_J0948.9+0022_daily_bin449.fits outfile=/scratch/kocevski/514877/cmap_HighResolution_355708801_355968001_4FGL_J0948.9+0022_daily_bin449.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.454       1.0000         .10000E-03   10000.    
     2 'norm      '    7.8608       1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.813       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0700       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.646       1.0000         .10000E-03   10000.    
     7 'Prefactor '    61.287       1.0000         .10000E-03   10000.    
     8 'norm      '    .95418E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    1.3316       1.0000         .10000E-03   10000.    
    10 'norm      '    1.1066       1.0000         .10000E-03   10000.    
    11 'norm      '    1.9399       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.332       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.438       1.0000         .10000E-03   10000.    
    15 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.9111       1.0000         .10000E-03   10000.    
    17 'Prefactor '    63.582       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10573E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .59437       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.0045       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .83581       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1235       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=   5145.684     FROM MIGRAD    STATUS=CONVERGED    494 CALLS     2570 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.453        5.8186        .18289E-05   -.99308E-05
   2  norm          7.8610        6.4356       -.18994E-06   -.24644E-04
   3  Prefactor     21.813        16.538       -.29666E-06    .43153E-05
   4  Prefactor     1.0701        3.3188       -.16029E-05   -.94501E-03
   5  Prefactor     .10000E-03    19.534        .91144E-05** at limit **
   6  Prefactor     16.632        18.823       -.11206E-04    .50105E-04
   7  Prefactor     61.264        50.571       -.26629E-04    .23609E-04
   8  norm          .98235E-01    2.0252       -.64023E-06    .65926E-03
   9  norm          1.3310        1.3599       -.54053E-06   -.61246E-03
  10  norm          1.1066        .82157       -.69184E-07    .47627E-04
  11  norm          1.9408        2.0267       -.17595E-06   -.20671E-03
  12  Prefactor     13.328        10.831        .31003E-06    .47309E-04
  13  Prefactor     .10000E-03    15.950       -.24727E-05** at limit **
  14  Prefactor     11.434        42.758       -.10611E-04    .16150E-04
  15  norm          .10000E-03    6.5422        .40364E-06** at limit **
  16  Prefactor     7.9013        11.812        .32490E-05    .10927E-03
  17  Prefactor     63.552        59.115       -.33111E-04    .55698E-04
  18  Prefactor     .10000E-03    34.580       -.14773E-05** at limit **
  19  Prefactor     .10000E-03    17.590       -.41970E-05** at limit **
  20  norm          .59507        1.2567       -.10190E-05   -.23933E-02
  21  Prefactor     4.9989        7.0134        .49377E-05   -.37806E-04
  22  Normalizat    .83717        .23728        .12262E-04   -.29844E-04
  23  Prefactor     1.1224        .17624       -.16777E-05    .46825E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.4535
  norm       = 7.86099
  Prefactor  = 21.8125
  Prefactor  = 1.07013
  Prefactor  = 0.0001
  Prefactor  = 16.6316
  Prefactor  = 61.2636
  norm       = 0.0982349
  norm       = 1.33103
  norm       = 1.10662
  norm       = 1.94082
  Prefactor  = 13.3275
  Prefactor  = 0.0001
  Prefactor  = 11.4342
  norm       = 0.0001
  Prefactor  = 7.90131
  Prefactor  = 63.5521
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.595074
  Prefactor  = 4.99888
  Normalizat = 0.837174
  Prefactor  = 1.12241
 **********
 **   18 **HESSE 
 **********

 FCN=   5145.684     FROM HESSE     STATUS=OK           380 CALLS     2950 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.453        5.8153        .12227E-03   -1.5061    
   2  norm          7.8610        6.4326        .14302E-03   -1.5147    
   3  Prefactor     21.813        16.539        .85761E-04   -1.4774    
   4  Prefactor     1.0701        3.2594        .21646E-03   -1.5501    
   5  Prefactor     .10000E-03    19.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.632        18.794        .98166E-04   -1.4892    
   7  Prefactor     61.264        50.558        .51254E-04   -1.4141    
   8  norm          .98235E-01    14.235        .19767E-02   -1.5645    
   9  norm          1.3310        1.3405        .78958E-04   -1.5477    
  10  norm          1.1066        .79844        .51100E-04   -1.5498    
  11  norm          1.9408        2.0131        .10095E-03   -1.5429    
  12  Prefactor     13.328        10.824        .10970E-03   -1.4978    
  13  Prefactor     .10000E-03    15.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.434        42.867        .11846E-03   -1.5032    
  15  norm          .10000E-03    6.5466        .17915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.9013        11.777        .14256E-03   -1.5146    
  17  Prefactor     63.552        59.110        .50326E-04   -1.4112    
  18  Prefactor     .10000E-03    34.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .59507        1.1632        .11115E-02   -1.5554    
  21  Prefactor     4.9989        6.9836        .17976E-03   -1.5261    
  22  Normalizat    .83717        .27010        .30190E-03   -.98704    
  23  Prefactor     1.1224        .20398        .21825E-03   -.88754    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.10895e-09
Minuit parameter uncertainties:
  1  5.81563
  2  6.43315
  3  16.5421
  4  3.25996
  5  1.1714e-05
  6  18.8007
  7  50.5932
  8  2.36446
  9  1.34058
  10  0.798448
  11  2.01314
  12  10.826
  13  9.5668e-06
  14  42.9832
  15  4.49605e-05
  16  11.7809
  17  59.1644
  18  0.000275814
  19  0.000139759
  20  1.16328
  21  6.98477
  22  0.270533
  23  0.204123
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.107e+00  7.984e-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.122e+00  2.041e-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.372e-01  2.705e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.79
Ra Dec: 147.244 0.372
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 8.50e-08 +/- 6.13e-08
Energy Flux (Fixed Index): 2.12e-05 +/- 1.53e-05

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

Saving results to:
/scratch/kocevski/514877/likelihoodResults_355708801_355968001_4FGL_J0948.9+0022_daily_bin449.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) = 5145.64776574
delta logL = 0.0361492317998

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5145.64642086
delta logL = 0.0374941156369

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1150       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6608       1.0000          .0000       5.0000    
     3 'Normalizat'    .82483       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1302       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5145.646     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      234 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1150        .78252        .49987E-04   -.12850E-03
   2  alpha         2.6608        .76632        .19310E-01   -.43250E-05
   3  Normalizat    .82478        .24612        .30393E-03   -.21695E-05
   4  Prefactor     1.1302        .20125        .21759E-03   -.70011E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.11501
  alpha      = 2.66084
  Normalizat = 0.824781
  Prefactor  = 1.13018
 **********
 **   18 **HESSE 
 **********

 FCN=   5145.646     FROM HESSE     STATUS=OK            25 CALLS      259 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1150        .77936        .19995E-05   -1.5497    
   2  alpha         2.6608        .76333        .77239E-03    .64382E-01
   3  Normalizat    .82478        .24648        .12157E-04   -.99156    
   4  Prefactor     1.1302        .20142        .87038E-05   -.88508    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8687e-12
Minuit parameter uncertainties:
  1  0.779371
  2  0.775773
  3  0.246818
  4  0.201561
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514877': 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) = 5145.64642084
delta logL = 0.0374941349428

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.115e+00  7.794e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  2.661e+00  7.758e-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.130e+00  2.016e-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.248e-01  2.468e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.84
Ra Dec: 147.244 0.372
Photon Index (Free Index): 2.66 +/- 0.78
Photon Flux (Free Index): 9.29e-08 +/- 6.88e-08
Energy Flux (Free Index): 2.07e-05 +/- 1.46e-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/514877/cmap_HighResolution_355708801_355968001_4FGL_J0948.9+0022_daily_bin449.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.07e-05', comment='SUCCESS', photon_flux='8.50e-08', energy_flux2='2.07e-05', photon_flux_error='6.13e-08', dlogl='3.75e-02', energy_flux='2.12e-05', photon_flux2='9.29e-08', job_status='DONE', time_completed='2021-09-01 02:51:21.901236', photon_index_error2='0.78', photon_index2='2.66', ts='2.79', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='2.03e-07', energy_flux_error2='1.46e-05', EG='0.84', time_epoch_completed='1630489881.9', return_code='0', job_id='514877', GAL2='1.13', EG2='0.82', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='6.88e-08', ts2='2.84', photon_index='2.45' WHERE bin_id='449' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 02:51:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 514877: <4FGL_J0948.9+0022_daily_bin449> in cluster <slac> Done

Job <4FGL_J0948.9+0022_daily_bin449> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 02:41:02 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:41:03 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:41:03 2021
Terminated at Wed Sep  1 02:51:22 2021
Results reported at Wed Sep  1 02:51:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin449 147.244 0.3717 355708801 355968001 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 :                                   562.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             370.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   619 sec.
    Turnaround time :                            620 sec.

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

