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


Performing analysis on: 4FGL_J2148.6+0652_daily_bin762
RA = 327.163, Dec = 6.8791
tmin = 436838401, tmax = 437097601
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='953248', job_status='RUN', time_executed='2021-09-27 16:33:27.466718', time_epoch_executed='1632785607.47' WHERE source_name='4FGL J2148.6+0652' and cadence='daily' and bin_id='762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/953248

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/953248/ft1_4FGL_J2148.6+0652_daily_bin762.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/953248/ft2_4FGL_J2148.6+0652_daily_bin762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/953248/ft1_4FGL_J2148.6+0652_daily_bin762.fits outfile=/scratch/kocevski/953248/ft1_filteredMKT_4FGL_J2148.6+0652_daily_bin762.fits ra=327.163 dec=6.8791 rad=12.0 tmin=436838401.0 tmax=437097601.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 4.99
user 4.75
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/953248/ft2_4FGL_J2148.6+0652_daily_bin762.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/953248/ft2_4FGL_J2148.6+0652_daily_bin762.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/953248/ft1_filteredMKT_4FGL_J2148.6+0652_daily_bin762.fits evtable="EVENTS" outfile="/scratch/kocevski/953248/ft1_filtered_4FGL_J2148.6+0652_daily_bin762.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/953248/ft1_filtered_4FGL_J2148.6+0652_daily_bin762.fits" evtable="EVENTS" scfile=/scratch/kocevski/953248/ft2_4FGL_J2148.6+0652_daily_bin762.fits sctable="SC_DATA" outfile=/scratch/kocevski/953248/ltcube_436838401_437097601_4FGL_J2148.6+0652_daily_bin762.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/953248/ft2_4FGL_J2148.6+0652_daily_bin762.fits
.....................!
real 15.72
user 15.32
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/953248/ft1_filtered_4FGL_J2148.6+0652_daily_bin762.fits evtable="EVENTS" scfile=/scratch/kocevski/953248/ft2_4FGL_J2148.6+0652_daily_bin762.fits sctable="SC_DATA" expcube=/scratch/kocevski/953248/ltcube_436838401_437097601_4FGL_J2148.6+0652_daily_bin762.fits outfile=/scratch/kocevski/953248/expmap_436838401_437097601_4FGL_J2148.6+0652_daily_bin762.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/953248/ltcube_436838401_437097601_4FGL_J2148.6+0652_daily_bin762.fits
.....................!
real 192.54
user 185.97
sys 5.96

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 167 point sources and 0 extended sources

Setting source of interest to:
4FGL J2148.6+0652 @ 327.163 6.8791

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/953248/ft1_filtered_4FGL_J2148.6+0652_daily_bin762.fits scfile=/scratch/kocevski/953248/ft2_4FGL_J2148.6+0652_daily_bin762.fits outfile=/scratch/kocevski/953248/cmap_436838401_437097601_4FGL_J2148.6+0652_daily_bin762.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=327.163 yref=6.8791 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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/953248/ft1_filtered_4FGL_J2148.6+0652_daily_bin762.fits scfile=/scratch/kocevski/953248/ft2_4FGL_J2148.6+0652_daily_bin762.fits outfile=/scratch/kocevski/953248/cmap_HighResolution_436838401_437097601_4FGL_J2148.6+0652_daily_bin762.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=327.163 yref=6.8791 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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/953248/ft1_filtered_4FGL_J2148.6+0652_daily_bin762.fits evtable="EVENTS" scfile=/scratch/kocevski/953248/ft2_4FGL_J2148.6+0652_daily_bin762.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/953248/Model_4FGL_J2148.6+0652_daily_bin762.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/953248/ft1_filtered_4FGL_J2148.6+0652_daily_bin762.fits.....................!
real 50.93
user 49.51
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/953248/ft1_filtered_4FGL_J2148.6+0652_daily_bin762.fits', '/scratch/kocevski/953248/ft2_4FGL_J2148.6+0652_daily_bin762.fits', expMap='/scratch/kocevski/953248/expmap_436838401_437097601_4FGL_J2148.6+0652_daily_bin762.fits', expCube='/scratch/kocevski/953248/ltcube_436838401_437097601_4FGL_J2148.6+0652_daily_bin762.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/953248/Model_4FGL_J2148.6+0652_daily_bin762.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2148.6+0652'

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  5.891e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.658e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
297         beta:  2.404e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  4.369e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/953248/ft1_filtered_4FGL_J2148.6+0652_daily_bin762.fits
Spacecraft file(s): /scratch/kocevski/953248/ft2_4FGL_J2148.6+0652_daily_bin762.fits
Exposure map: /scratch/kocevski/953248/expmap_436838401_437097601_4FGL_J2148.6+0652_daily_bin762.fits
Exposure cube: /scratch/kocevski/953248/ltcube_436838401_437097601_4FGL_J2148.6+0652_daily_bin762.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/953248/Model_4FGL_J2148.6+0652_daily_bin762.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) = 4410.4954118

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.486       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.3702       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    36.559       1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.267       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .70981       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.2610       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12287E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.7407       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.9578       1.0000         .10000E-03   10000.    
    16 'norm      '    28.884       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.3707       1.0000         .10000E-03   10000.    
    19 'norm      '    2.0440       1.0000         .10000E-03   10000.    
    20 'Prefactor '    39.296       1.0000         .10000E-03   10000.    
    21 'Prefactor '    26.855       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.6349       1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.3325       1.0000         .10000E-03   10000.    
    26 'Prefactor '    8.8971       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .71671       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .77958       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5430E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4410.450     FROM MIGRAD    STATUS=CONVERGED    678 CALLS     3547 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.485        30.683       -.36171E-06   -.41737E-04
   2  Prefactor     .10000E-03    9.3716        .19064E-06** at limit **
   3  Prefactor     6.3527        38.925        .34842E-06    .62488E-04
   4  Prefactor     .10000E-03    36.444        .11188E-06** at limit **
   5  Prefactor     36.557        31.564       -.30717E-06    .10102E-04
   6  Prefactor     26.315        50.402        .76105E-05    .13069E-03
   7  Prefactor     .75203        5.9480       -.12564E-05   -.27822E-03
   8  Prefactor     2.2544        12.070       -.13838E-05   -.13181E-03
   9  Prefactor     .10000E-03    12.317        .55906E-05** at limit **
  10  Prefactor     .10000E-03    29.848        .71660E-06** at limit **
  11  Prefactor     .10000E-03    42.234        .13007E-06** at limit **
  12  norm          5.7410        3.9766       -.98049E-07   -.23264E-03
  13  Prefactor     .10000E-03    35.229       -.20013E-06** at limit **
  14  Prefactor     .10000E-03    29.592        .51618E-06** at limit **
  15  norm          1.9579        2.8109       -.12173E-06   -.19154E-03
  16  norm          28.881        29.760       -.36345E-06   -.17270E-04
  17  Prefactor     .10000E-03    7.0903        .44117E-06** at limit **
  18  Prefactor     3.3704        12.056       -.11004E-05    .18118E-03
  19  norm          2.0441        1.4958       -.40940E-07   -.12168E-03
  20  Prefactor     39.297        33.665       -.17558E-06   -.12755E-04
  21  Prefactor     26.866        25.703       -.20275E-06   -.12492E-03
  22  Prefactor     .10000E-03    14.964        .81892E-07** at limit **
  23  Prefactor     .10000E-03    10.745        .19538E-06** at limit **
  24  Prefactor     5.6347        17.551        .12720E-06    .10313E-05
  25  Prefactor     5.3326        .88726       -.18162E-07   -.20540E-03
  26  Prefactor     8.8976        13.787        .55210E-07   -.10806E-05
  27  Normalizat    .71641        .31938        .32728E-05    .34690E-04
  28  Prefactor     .77971        .13869       -.12302E-05    .38887E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.4853
  Prefactor  = 0.0001
  Prefactor  = 6.35267
  Prefactor  = 0.0001
  Prefactor  = 36.5574
  Prefactor  = 26.315
  Prefactor  = 0.752026
  Prefactor  = 2.25439
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.74098
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.95793
  norm       = 28.8813
  Prefactor  = 0.0001
  Prefactor  = 3.37037
  norm       = 2.04406
  Prefactor  = 39.2974
  Prefactor  = 26.8663
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.63466
  Prefactor  = 5.33261
  Prefactor  = 8.8976
  Normalizat = 0.716411
  Prefactor  = 0.779715
 **********
 **   18 **HESSE 
 **********

 FCN=   4410.450     FROM HESSE     STATUS=OK           525 CALLS     4072 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.485        30.704        .63787E-04   -1.4450    
   2  Prefactor     .10000E-03    9.3744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.3527        39.205        .15903E-03   -1.5204    
   4  Prefactor     .10000E-03    36.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     36.557        31.600        .66283E-04   -1.4498    
   6  Prefactor     26.315        50.922        .78164E-04   -1.4682    
   7  Prefactor     .75203        16.876        .27221E-02   -1.5535    
   8  Prefactor     2.2544        11.605        .27319E-03   -1.5408    
   9  Prefactor     .10000E-03    12.809        .15910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    29.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    42.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.7410        3.9657        .10409E-03   -1.5229    
  13  Prefactor     .10000E-03    35.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    29.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.9579        2.7760        .12452E-03   -1.5428    
  16  norm          28.881        29.665        .74547E-04   -1.4633    
  17  Prefactor     .10000E-03    7.1945        .17276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.3704        12.064        .11020E-02   -1.5341    
  19  norm          2.0441        1.4897        .67138E-04   -1.5422    
  20  Prefactor     39.297        33.687        .63940E-04   -1.4453    
  21  Prefactor     26.866        25.736        .77305E-04   -1.4671    
  22  Prefactor     .10000E-03    14.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.6347        17.571        .16923E-03   -1.5233    
  25  Prefactor     5.3326        .89053        .23945E-04   -1.5246    
  26  Prefactor     8.8976        13.796        .13438E-03   -1.5111    
  27  Normalizat    .71641        .34988        .38418E-03   -1.0325    
  28  Prefactor     .77971        .15508        .17449E-03   -1.0048    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38813e-09
Minuit parameter uncertainties:
  1  30.7159
  2  2.61143e-05
  3  31.5935
  4  0.000189679
  5  31.6146
  6  51.0062
  7  7.1268
  8  10.2326
  9  0.000378091
  10  0.000133487
  11  1.20553e-05
  12  3.96592
  13  0.000180982
  14  0.000173333
  15  2.77616
  16  29.6802
  17  4.09775e-05
  18  12.0731
  19  1.48973
  20  33.7033
  21  25.7462
  22  6.58471e-05
  23  5.07179e-05
  24  17.5873
  25  0.890529
  26  13.8014
  27  0.350973
  28  0.155164
Done.

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

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  2.888e+01  2.968e+01  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.658e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
297         beta:  2.404e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  4.369e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
540    Prefactor:  7.797e-01  1.552e-01  0.000e+00  1.000e+01 ( 1.000e+00)
541        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
542        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
539   Normalization:  7.164e-01  3.510e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.33
Ra Dec: 327.163 6.879
Photon Index (Fixed Index): 2.66 +/- 0.00
Photon Flux (Fixed Index): 6.81e-08 +/- 6.99e-08
Energy Flux (Fixed Index): 1.65e-05 +/- 1.70e-05

TS (Fixed Index): 1.33
Ra Dec: 327.163 6.879
Photon Flux Upper Limit: 2.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.24e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/953248/likelihoodResults_436838401_437097601_4FGL_J2148.6+0652_daily_bin762.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) = 4410.41593194
delta logL = 0.0343767908735

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4410.40993345
delta logL = 0.040375283349

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    26.049       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9847       1.0000          .0000       5.0000    
     3 'Normalizat'    .69981       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78555       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5430E+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=   4410.410     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      266 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          26.050        30.449        .78490E-04   -.52833E-03
   2  alpha         2.9843        1.1790        .23878E-01   -.78074E-04
   3  Normalizat    .69994        .32974        .38835E-03    .46868E-04
   4  Prefactor     .78554        .15457        .17390E-03    .15914E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 26.0502
  alpha      = 2.9843
  Normalizat = 0.699935
  Prefactor  = 0.785543
 **********
 **   18 **HESSE 
 **********

 FCN=   4410.410     FROM HESSE     STATUS=OK            23 CALLS      289 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          26.050        29.342        .15698E-04   -1.4687    
   2  alpha         2.9843        1.1383        .95514E-03    .19495    
   3  Normalizat    .69994        .32989        .15534E-04   -1.0390    
   4  Prefactor     .78554        .15457        .34780E-04   -1.0026    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27708e-09
Minuit parameter uncertainties:
  1  29.3581
  2  1.1837
  3  0.330827
  4  0.154658
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/953248': 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) = 4410.40993315
delta logL = 0.0403755785655

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  2.605e+01  2.936e+01  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.984e+00  1.184e+00  0.000e+00  5.000e+00 ( 1.000e+00)
297         beta:  2.404e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  4.369e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
540    Prefactor:  7.855e-01  1.547e-01  0.000e+00  1.000e+01 ( 1.000e+00)
541        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
542        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
539   Normalization:  6.999e-01  3.308e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.41
Ra Dec: 327.163 6.879
Photon Index (Free Index): 2.98 +/- 1.18
Photon Flux (Free Index): 8.14e-08 +/- 8.89e-08
Energy Flux (Free Index): 1.70e-05 +/- 1.65e-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/953248/cmap_HighResolution_436838401_437097601_4FGL_J2148.6+0652_daily_bin762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.24e-05', comment='SUCCESS', photon_flux='6.81e-08', energy_flux2='1.70e-05', photon_flux_error='6.99e-08', dlogl='4.04e-02', energy_flux='1.65e-05', photon_flux2='8.14e-08', job_status='DONE', time_completed='2021-09-27 16:44:22.764215', photon_index_error2='1.18', photon_index2='2.98', ts='1.33', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='2.15e-07', energy_flux_error2='1.65e-05', EG='0.72', time_epoch_completed='1632786262.76', return_code='0', job_id='953248', GAL2='0.79', EG2='0.70', return_code2='0', energy_flux_error='1.70e-05', photon_flux_error2='8.89e-08', ts2='1.41', photon_index='2.66' WHERE bin_id='762' AND source_name='4FGL J2148.6+0652' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 16:44:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 953248: <4FGL_J2148.6+0652_daily_bin762> in cluster <slac> Done

Job <4FGL_J2148.6+0652_daily_bin762> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 27 16:30:20 2021
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 16:31:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 27 16:31:24 2021
Terminated at Mon Sep 27 16:44:23 2021
Results reported at Mon Sep 27 16:44:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2148.6+0652_daily_bin762 327.163 6.8791 436838401 437097601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2148.6+0652 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   652.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            843 sec.

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

