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


Performing analysis on: 4FGL_J0948.9+0022_daily_bin618
RA = 147.244, Dec = 0.3717
tmin = 399513601, tmax = 399772801
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='516496', job_status='RUN', time_executed='2021-09-01 02:50:09.293390', time_epoch_executed='1630489809.29' WHERE source_name='4FGL J0948.9+0022' and cadence='daily' and bin_id='618'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/516496

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/516496/ft1_4FGL_J0948.9+0022_daily_bin618.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/516496/ft2_4FGL_J0948.9+0022_daily_bin618.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/516496/ft1_4FGL_J0948.9+0022_daily_bin618.fits outfile=/scratch/kocevski/516496/ft1_filteredMKT_4FGL_J0948.9+0022_daily_bin618.fits ra=147.244 dec=0.3717 rad=12.0 tmin=399513601.0 tmax=399772801.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.62
user 4.94
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/516496/ft1_filtered_4FGL_J0948.9+0022_daily_bin618.fits evtable="EVENTS" scfile=/scratch/kocevski/516496/ft2_4FGL_J0948.9+0022_daily_bin618.fits sctable="SC_DATA" expcube=/scratch/kocevski/516496/ltcube_399513601_399772801_4FGL_J0948.9+0022_daily_bin618.fits outfile=/scratch/kocevski/516496/expmap_399513601_399772801_4FGL_J0948.9+0022_daily_bin618.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/516496/ltcube_399513601_399772801_4FGL_J0948.9+0022_daily_bin618.fits
.....................!
real 189.36
user 184.80
sys 3.99

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/516496/ft1_filtered_4FGL_J0948.9+0022_daily_bin618.fits scfile=/scratch/kocevski/516496/ft2_4FGL_J0948.9+0022_daily_bin618.fits outfile=/scratch/kocevski/516496/cmap_399513601_399772801_4FGL_J0948.9+0022_daily_bin618.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.54
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10540E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13533E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.3097       1.0000         .10000E-03   10000.    
     9 'norm      '    .77253       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.0324       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.301       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.8746       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    9.3241       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    81.014       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      '    2.7345       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .95596       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2929       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .76631       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=   6893.532     FROM MIGRAD    STATUS=CONVERGED    524 CALLS     2565 TOTAL
                     EDM=   .87E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .75344       -.10461E-08** at limit **
   2  norm          .10000E-03    2.7172       -.18471E-06** at limit **
   3  Prefactor     .10000E-03    3.6602       -.12645E-07** at limit **
   4  Prefactor     .10000E-03    2.6761        .14466E-08** at limit **
   5  Prefactor     .10000E-03    18.531       -.42361E-06** at limit **
   6  Prefactor     .10000E-03    6.5489        .17672E-06** at limit **
   7  Prefactor     .10000E-03    69.502       -.55808E-06** at limit **
   8  norm          5.3090        3.6088        .73112E-07   -.42377E-04
   9  norm          .77262        1.1033        .27093E-06    .37264E-03
  10  norm          .10000E-03    .18823       -.19576E-09** at limit **
  11  norm          1.0324        1.3086        .76165E-07    .12706E-03
  12  Prefactor     13.302        11.166        .20343E-07   -.91499E-05
  13  Prefactor     5.8760        41.383        .52254E-06   -.11259E-04
  14  Prefactor     .10000E-03    16.153        .25315E-06** at limit **
  15  norm          9.3275        12.533       -.10782E-06   -.83490E-05
  16  Prefactor     .10000E-03    6.6622        .17080E-06** at limit **
  17  Prefactor     81.036        60.911        .25988E-06    .67348E-04
  18  Prefactor     .10000E-03    31.573        .71165E-06** at limit **
  19  Prefactor     .10000E-03    11.336        .32021E-06** at limit **
  20  norm          2.7346        1.3661       -.38096E-07   -.23896E-03
  21  Prefactor     .95639        5.2492        .26811E-05   -.10159E-03
  22  Normalizat    1.2930        .17368       -.70496E-06   -.59449E-04
  23  Prefactor     .76622        .13566        .45799E-07   -.11544E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.30899
  norm       = 0.77262
  norm       = 0.0001
  norm       = 1.0324
  Prefactor  = 13.3018
  Prefactor  = 5.87599
  Prefactor  = 0.0001
  norm       = 9.32747
  Prefactor  = 0.0001
  Prefactor  = 81.036
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.73455
  Prefactor  = 0.956388
  Normalizat = 1.29303
  Prefactor  = 0.766219
 **********
 **   18 **HESSE 
 **********

 FCN=   6893.532     FROM HESSE     STATUS=OK           374 CALLS     2939 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .75561        .70375E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    5.7051        .26485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.6636        .15513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.7787        .26497E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.6129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    71.576        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.3090        3.5985        .12472E-03   -1.5247    
   9  norm          .77262        1.0136        .10259E-02   -1.5532    
  10  norm          .10000E-03    .24349        .69443E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.0324        1.1521        .10352E-02   -1.5505    
  12  Prefactor     13.302        11.166        .10983E-03   -1.4978    
  13  Prefactor     5.8760        41.301        .16569E-03   -1.5223    
  14  Prefactor     .10000E-03    16.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.3275        12.518        .13125E-03   -1.5097    
  16  Prefactor     .10000E-03    6.7797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     81.036        61.084        .44623E-04   -1.3905    
  18  Prefactor     .10000E-03    31.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.7346        1.3628        .65762E-04   -1.5377    
  21  Prefactor     .95639        5.1658        .35705E-03   -1.5512    
  22  Normalizat    1.2930        .20357        .23353E-03   -.83775    
  23  Prefactor     .76622        .16013        .23490E-03   -1.0099    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14833e-10
Minuit parameter uncertainties:
  1  5.76927e-07
  2  8.61062e-05
  3  1.92295e-06
  4  6.60522e-06
  5  0.000133856
  6  4.29745e-05
  7  6.33466e-05
  8  3.59863
  9  1.01362
  10  1.59357e-06
  11  1.15209
  12  11.1678
  13  31.187
  14  9.77728e-05
  15  12.5219
  16  3.9717e-05
  17  61.1309
  18  0.000118858
  19  1.06739e-05
  20  1.3628
  21  4.4458
  22  0.203693
  23  0.16023
Done.

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

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.000e-04  1.594e-06  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:  7.662e-01  1.602e-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.293e+00  2.037e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/516496/likelihoodResults_399513601_399772801_4FGL_J0948.9+0022_daily_bin618.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): 102
logL (Free Index) = 6893.5331231
delta logL = -0.0015837999581

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6893.53136772
delta logL = 0.00017157414095

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 'alpha     '    4.3669       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2931       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76626       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=   6893.531     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      296 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    3.4027        .67476E-03** at limit **
   2  alpha         4.3434        3.7934        .20000        .49749E-06
   3  Normalizat    1.2930        .19785        .23353E-03   -.13193E-04
   4  Prefactor     .76623        .15804        .23490E-03   -.15971E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100005
  alpha      = 4.34341
  Normalizat = 1.29301
  Prefactor  = 0.766231
 **********
 **   18 **HESSE 
 **********

 FCN=   6893.531     FROM HESSE     STATUS=OK            23 CALLS      319 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    1.5052        .26990E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         4.3434        4.0565        .80000E-02    .82916    
   3  Normalizat    1.2930        .19747        .93412E-05   -.83775    
   4  Prefactor     .76623        .15807        .93960E-05   -1.0099    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.36604e-09
Minuit parameter uncertainties:
  1  0.00018169
  2  90.6913
  3  0.197589
  4  0.158158
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/516496': 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) = 6893.5313672
delta logL = 0.000172099562405

Extracting fit parameters...

4FGL J0948.9+0022
   Spectrum: LogParabola
217         norm:  1.000e-04  1.817e-04  1.000e-04  1.000e+04 ( 1.000e-10)
218        alpha:  4.343e+00  9.069e+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:  7.662e-01  1.582e-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.293e+00  1.976e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 147.244 0.372

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/516496/cmap_HighResolution_399513601_399772801_4FGL_J0948.9+0022_daily_bin618.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.76e-05', job_status='DONE', photon_flux_upper_limit='7.05e-08', time_completed='2021-09-01 03:00:56.739584', job_id='516496', GAL2='0.77', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1630490456.74', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='1.72e-04', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='618' AND source_name='4FGL J0948.9+0022' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 03:00:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0011>
Subject: Job 516496: <4FGL_J0948.9+0022_daily_bin618> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0948.9+0022_daily_bin618 147.244 0.3717 399513601 399772801 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 :                                   641.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             251.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            896 sec.

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

