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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin651
RA = 147.244, Dec = 0.3717
tmin = 408067201, tmax = 408326401
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='516583', job_status='RUN', time_executed='2021-09-01 02:46:34.291401', time_epoch_executed='1630489594.29' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='651'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/516583

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/516583/ft1_4FGL_J0948.9+0022_daily_bin651.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/516583/ft2_4FGL_J0948.9+0022_daily_bin651.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/516583/ft1_4FGL_J0948.9+0022_daily_bin651.fits outfile=/scratch/kocevski/516583/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin651.fits ra=147.244 dec=0.3717 rad=12.0 tmin=408067201.0 tmax=408326401.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.90
user 3.63
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/516583/ft1_filtered_4FGL_J0948.9+0022_daily_bin651.fits evtable="EVENTS" scfile=/scratch/kocevski/516583/ft2_4FGL_J0948.9+0022_daily_bin651.fits sctable="SC_DATA" expcube=/scratch/kocevski/516583/ltcube_408067201_408326401_4FGL_J0948.9+0022_daily_bin651.fits outfile=/scratch/kocevski/516583/expmap_408067201_408326401_4FGL_J0948.9+0022_daily_bin651.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/516583/ltcube_408067201_408326401_4FGL_J0948.9+0022_daily_bin651.fits
.....................!
real 190.63
user 185.43
sys 4.34

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/516583/ft1_filtered_4FGL_J0948.9+0022_daily_bin651.fits scfile=/scratch/kocevski/516583/ft2_4FGL_J0948.9+0022_daily_bin651.fits outfile=/scratch/kocevski/516583/cmap_408067201_408326401_4FGL_J0948.9+0022_daily_bin651.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.70
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/516583/ft1_filtered_4FGL_J0948.9+0022_daily_bin651.fits scfile=/scratch/kocevski/516583/ft2_4FGL_J0948.9+0022_daily_bin651.fits outfile=/scratch/kocevski/516583/cmap_HighResolution_408067201_408326401_4FGL_J0948.9+0022_daily_bin651.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    6.1449       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.0592       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.8891       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.8848       1.0000         .10000E-03   10000.    
    10 'norm      '    .77322E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    .87817E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.991       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.8722       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10462E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11812E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    53.127       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.182       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .14170E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.5018       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .70030E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .78814       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.3040       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=   11589.74     FROM MIGRAD    STATUS=CONVERGED    518 CALLS     2588 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.0713       -.79411E-07** at limit **
   2  norm          6.1443        4.3922       -.13095E-07   -.20710E-03
   3  Prefactor     .10000E-03    4.5279       -.23876E-06** at limit **
   4  Prefactor     6.0588        3.6708       -.74679E-06   -.37018E-03
   5  Prefactor     .10000E-03    36.524       -.87610E-05** at limit **
   6  Prefactor     4.8874        8.9292       -.15819E-05    .40445E-05
   7  Prefactor     .10000E-03    17.592       -.83152E-05** at limit **
   8  norm          .10000E-03    .97348       -.92208E-07** at limit **
   9  norm          1.8848        1.3003       -.40178E-06   -.96884E-03
  10  norm          .77179E-01    .24466       -.42578E-06   -.15293E-02
  11  norm          .91315E-01    .46813       -.63317E-06   -.77594E-04
  12  Prefactor     21.994        11.702       -.11663E-06    .12584E-03
  13  Prefactor     1.8265        62.639       -.10246E-03   -.40398E-04
  14  Prefactor     .10000E-03    31.863        .22622E-04** at limit **
  15  norm          .10000E-03    9.9541        .48196E-05** at limit **
  16  Prefactor     .10000E-03    7.3756       -.45712E-05** at limit **
  17  Prefactor     53.115        50.673       -.14952E-04    .54317E-04
  18  Prefactor     15.188        25.997        .96500E-05    .62164E-04
  19  Prefactor     .10000E-03    6.7122        .19276E-05** at limit **
  20  norm          4.5024        1.2965        .16234E-06    .12684E-02
  21  Prefactor     .10001E-03    1.6826        .20997E-06** at limit **
  22  Normalizat    .78820        .15343        .64252E-05    .74047E-03
  23  Prefactor     1.3040        .11847        .25359E-06    .14515E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 6.14427
  Prefactor  = 0.0001
  Prefactor  = 6.05882
  Prefactor  = 0.000100001
  Prefactor  = 4.88745
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.88478
  norm       = 0.0771788
  norm       = 0.0913148
  Prefactor  = 21.9942
  Prefactor  = 1.82654
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 53.1147
  Prefactor  = 15.1876
  Prefactor  = 0.000100001
  norm       = 4.5024
  Prefactor  = 0.000100008
  Normalizat = 0.788197
  Prefactor  = 1.30396
 **********
 **   18 **HESSE 
 **********

 FCN=   11589.74     FROM HESSE     STATUS=OK           374 CALLS     2962 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.0882        .10878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.1443        4.3876        .16195E-03   -1.5212    
   3  Prefactor     .10000E-03    4.5462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.0588        3.6715        .15138E-03   -1.5216    
   5  Prefactor     .10000E-03    36.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.8874        8.8997        .18191E-03   -1.5266    
   7  Prefactor     .10000E-03    17.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .99596        .10368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.8848        1.2929        .97132E-04   -1.5433    
  10  norm          .77179E-01    .35454        .88078E-03   -1.5652    
  11  norm          .91315E-01    2.1913        .14147E-02   -1.5648    
  12  Prefactor     21.994        11.691        .85413E-04   -1.4770    
  13  Prefactor     1.8265        64.164        .30437E-03   -1.5438    
  14  Prefactor     .10000E-03    32.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    10.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.4537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     53.115        50.709        .55027E-04   -1.4249    
  18  Prefactor     15.188        25.822        .10279E-03   -1.4928    
  19  Prefactor     .10000E-03    6.7067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.5024        1.2853        .62102E-04   -1.5284    
  21  Prefactor     .10001E-03    15.532        .26476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .78820        .17925        .31487E-03   -1.0051    
  23  Prefactor     1.3040        .14160        .20724E-03   -.83190    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.33957e-08
Minuit parameter uncertainties:
  1  7.62728e-06
  2  4.38778
  3  2.41166e-05
  4  3.67166
  5  0.000281719
  6  8.9021
  7  8.23937e-05
  8  7.31329e-06
  9  1.29295
  10  0.330625
  11  0.894198
  12  11.6917
  13  21.6762
  14  0.000589311
  15  3.63559e-05
  16  4.3348e-05
  17  50.7503
  18  25.8408
  19  0.000124752
  20  1.28531
  21  0.000691712
  22  0.179386
  23  0.14164
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  7.718e-02  3.306e-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.304e+00  1.416e-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:  7.882e-01  1.794e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.06
Ra Dec: 147.244 0.372
Photon Flux Upper Limit: 6.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.67e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/516583/likelihoodResults_408067201_408326401_4FGL_J0948.9+0022_daily_bin651.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) = 11589.7082783
delta logL = 0.0305656864875

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11589.7068111
delta logL = 0.0320328865437

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .91405E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9730       1.0000          .0000       5.0000    
     3 'Normalizat'    .79083       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3012       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=   11589.71     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      227 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .92240E-01    .22948        .20609E-01    .31397E-02
   2  alpha         1.9747        1.2705        .42371       -.57845E-04
   3  Normalizat    .79094        .14246        .71039E-01   -.43091E-03
   4  Prefactor     1.3011        .11799        .46925E-01   -.15526E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0922397
  alpha      = 1.97469
  Normalizat = 0.79094
  Prefactor  = 1.30107
 **********
 **   18 **HESSE 
 **********

 FCN=   11589.71     FROM HESSE     STATUS=OK            33 CALLS      260 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .92240E-01    .28719        .72583E-03   -1.5647    
   2  alpha         1.9747        1.5166        .54005E-01   -.21170    
   3  Normalizat    .79094        .16807        .31436E-03   -1.0041    
   4  Prefactor     1.3011        .13982        .20743E-03   -.83275    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.58242e-08
Minuit parameter uncertainties:
  1  0.287194
  2  1.63605
  3  0.168182
  4  0.139865
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/516583': 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) = 11589.7068067
delta logL = 0.0320372267888

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  9.224e-02  2.872e-01  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  1.975e+00  1.636e+00  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.301e+00  1.399e-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:  7.909e-01  1.682e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
Ra Dec: 147.244 0.372

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/516583/cmap_HighResolution_408067201_408326401_4FGL_J0948.9+0022_daily_bin651.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.67e-05', job_status='DONE', photon_flux_upper_limit='6.72e-08', time_completed='2021-09-01 03:00:53.665464', job_id='516583', GAL2='1.30', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1630490453.67', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='1.30', dlogl='3.20e-02', ts2='0.13', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='651' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:00:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 516583: <4FGL_J0948.9+0022_daily_bin651> in cluster <slac> Done

Job <4FGL_J0948.9+0022_daily_bin651> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 02:46:13 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 02:46:14 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:46:14 2021
Terminated at Wed Sep  1 03:00:54 2021
Results reported at Wed Sep  1 03:00:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin651 147.244 0.3717 408067201 408326401 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 :                                   853.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             351.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            881 sec.

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

