/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 42 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 = 7405
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2148.6+0652_daily_bin13
RA = 327.163, Dec = 6.8791
tmin = 242697601, tmax = 242956801
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='946978', job_status='RUN', time_executed='2021-09-27 16:08:10.464962', time_epoch_executed='1632784090.46' WHERE source_name='4FGL J2148.6+0652' and cadence='daily' and bin_id='13'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/946978

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/946978/ft1_4FGL_J2148.6+0652_daily_bin13.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/946978/ft2_4FGL_J2148.6+0652_daily_bin13.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/946978/ft1_4FGL_J2148.6+0652_daily_bin13.fits outfile=/scratch/kocevski/946978/ft1_filteredMKT_4FGL_J2148.6+0652_daily_bin13.fits ra=327.163 dec=6.8791 rad=12.0 tmin=242697601.0 tmax=242956801.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 1.45
user 1.26
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/946978/ft2_4FGL_J2148.6+0652_daily_bin13.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/946978/ft1_filteredMKT_4FGL_J2148.6+0652_daily_bin13.fits evtable="EVENTS" outfile="/scratch/kocevski/946978/ft1_filtered_4FGL_J2148.6+0652_daily_bin13.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.49
user 0.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/946978/ft1_filtered_4FGL_J2148.6+0652_daily_bin13.fits evtable="EVENTS" scfile=/scratch/kocevski/946978/ft2_4FGL_J2148.6+0652_daily_bin13.fits sctable="SC_DATA" expcube=/scratch/kocevski/946978/ltcube_242697601_242956801_4FGL_J2148.6+0652_daily_bin13.fits outfile=/scratch/kocevski/946978/expmap_242697601_242956801_4FGL_J2148.6+0652_daily_bin13.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/946978/ltcube_242697601_242956801_4FGL_J2148.6+0652_daily_bin13.fits
.....................!
real 192.90
user 188.32
sys 4.07

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/946978/ft1_filtered_4FGL_J2148.6+0652_daily_bin13.fits scfile=/scratch/kocevski/946978/ft2_4FGL_J2148.6+0652_daily_bin13.fits outfile=/scratch/kocevski/946978/cmap_242697601_242956801_4FGL_J2148.6+0652_daily_bin13.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.57
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/946978/ft1_filtered_4FGL_J2148.6+0652_daily_bin13.fits scfile=/scratch/kocevski/946978/ft2_4FGL_J2148.6+0652_daily_bin13.fits outfile=/scratch/kocevski/946978/cmap_HighResolution_242697601_242956801_4FGL_J2148.6+0652_daily_bin13.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.54
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/946978/ft1_filtered_4FGL_J2148.6+0652_daily_bin13.fits', '/scratch/kocevski/946978/ft2_4FGL_J2148.6+0652_daily_bin13.fits', expMap='/scratch/kocevski/946978/expmap_242697601_242956801_4FGL_J2148.6+0652_daily_bin13.fits', expCube='/scratch/kocevski/946978/ltcube_242697601_242956801_4FGL_J2148.6+0652_daily_bin13.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/946978/Model_4FGL_J2148.6+0652_daily_bin13.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/946978/ft1_filtered_4FGL_J2148.6+0652_daily_bin13.fits
Spacecraft file(s): /scratch/kocevski/946978/ft2_4FGL_J2148.6+0652_daily_bin13.fits
Exposure map: /scratch/kocevski/946978/expmap_242697601_242956801_4FGL_J2148.6+0652_daily_bin13.fits
Exposure cube: /scratch/kocevski/946978/ltcube_242697601_242956801_4FGL_J2148.6+0652_daily_bin13.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/946978/Model_4FGL_J2148.6+0652_daily_bin13.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) = 7373.00396438

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8479       1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.504       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    74.912       1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.262       1.0000         .10000E-03   10000.    
     6 'Prefactor '    27.568       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.150       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.2951       1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.337       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    9.5887       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11039E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.1543       1.0000         .10000E-03   10000.    
    16 'norm      '    14.260       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .45422       1.0000         .10000E-03   10000.    
    19 'norm      '    1.5464       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    31.520       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    54.646       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.3346       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .73022       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .78485       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0186       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5430E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7372.974     FROM MIGRAD    STATUS=CONVERGED     75 CALLS     2904 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8495        1.0570       -.65275E-06    .22458E-03
   2  Prefactor     23.504        1.0591       -.26934E-06    .86898E-03
   3  Prefactor     .10003E-03    8.4808        .16026E-04** at limit **
   4  Prefactor     74.911        1.0815       -.17607E-06    .22611E-02
   5  Prefactor     27.265        1.0205       -.91896E-07    .33727E-03
   6  Prefactor     27.566        1.0868       -.29553E-06    .13751E-02
   7  Prefactor     .10000E-03    2.4158       -.19366E-06** at limit **
   8  Prefactor     11.149        1.1629        .61446E-06   -.53582E-03
   9  Prefactor     1.2952        1.3540        .74360E-08   -.62967E-05
  10  Prefactor     23.333        1.1942       -.46846E-06    .18541E-02
  11  Prefactor     .10004E-03    8.6353       -.15508E-04** at limit **
  12  norm          9.5886        3.2882       -.26840E-06   -.16553E-03
  13  Prefactor     .10270E-03    33.998        .57694E-05** at limit **
  14  Prefactor     .10413E-03    34.894       -.89197E-05** at limit **
  15  norm          6.1543        2.9446        .54917E-07   -.25034E-03
  16  norm          14.262        1.0363       -.25245E-06    .46404E-03
  17  Prefactor     .10000E-03    4.7506       -.14392E-06** at limit **
  18  Prefactor     .42455        2.4677        .70220E-05   -.82547E-03
  19  norm          1.5463        1.0571       -.92292E-08   -.41827E-03
  20  Prefactor     .10002E-03    11.320       -.13993E-07** at limit **
  21  Prefactor     31.519        1.5483        .80939E-06   -.36946E-02
  22  Prefactor     .10000E-03    5.4376       -.76984E-06** at limit **
  23  Prefactor     54.644        1.1090       -.23630E-06    .21314E-02
  24  Prefactor     2.3322        1.0859       -.71455E-06    .18247E-03
  25  Prefactor     .73021        .31130       -.10773E-07   -.11832E-02
  26  Prefactor     .10000E-03    11.209        .40639E-05** at limit **
  27  Normalizat    .78507        .26163       -.13237E-05   -.49964E-04
  28  Prefactor     1.0185        .13123        .36248E-06   -.17635E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.84954
  Prefactor  = 23.504
  Prefactor  = 0.000100028
  Prefactor  = 74.9111
  Prefactor  = 27.2652
  Prefactor  = 27.5663
  Prefactor  = 0.0001
  Prefactor  = 11.1487
  Prefactor  = 1.2952
  Prefactor  = 23.3331
  Prefactor  = 0.000100038
  norm       = 9.58859
  Prefactor  = 0.000102697
  Prefactor  = 0.000104134
  norm       = 6.15427
  norm       = 14.2617
  Prefactor  = 0.0001
  Prefactor  = 0.424553
  norm       = 1.54634
  Prefactor  = 0.00010002
  Prefactor  = 31.5186
  Prefactor  = 0.0001
  Prefactor  = 54.6444
  Prefactor  = 2.33223
  Prefactor  = 0.730208
  Prefactor  = 0.000100003
  Normalizat = 0.785067
  Prefactor  = 1.01847
 **********
 **   18 **HESSE 
 **********

 FCN=   7372.974     FROM HESSE     STATUS=OK           587 CALLS     3491 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8495        47.833        .60233E-02   -1.5370    
   2  Prefactor     23.504        24.399        .20656E-02   -1.4738    
   3  Prefactor     .10003E-03    8.7035        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     74.911        55.206        .11598E-02   -1.3975    
   5  Prefactor     27.265        22.403        .19182E-02   -1.4663    
   6  Prefactor     27.566        41.563        .19075E-02   -1.4657    
   7  Prefactor     .10000E-03    2.4029        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.149        9.2946        .29995E-02   -1.5040    
   9  Prefactor     1.2952        1.3858        .97183E-02   -1.5480    
  10  Prefactor     23.333        36.039        .20729E-02   -1.4742    
  11  Prefactor     .10004E-03    8.8793        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.5886        3.3429        .32354E-02   -1.5089    
  13  Prefactor     .10270E-03    64.542        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10413E-03    70.651        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.1543        2.9966        .40457E-02   -1.5212    
  16  norm          14.262        15.379        .26517E-02   -1.4952    
  17  Prefactor     .10000E-03    4.6948        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .42455        7.6199        .11082       -1.5578    
  19  norm          1.5463        1.0598        .85666E-03   -1.5459    
  20  Prefactor     .10002E-03    21.847        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     31.519        19.732        .17842E-02   -1.4585    
  22  Prefactor     .10000E-03    5.4339        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     54.644        31.192        .13565E-02   -1.4228    
  24  Prefactor     2.3322        30.608        .67092E-02   -1.5403    
  25  Prefactor     .73021        .33896        .68164E-02   -1.5537    
  26  Prefactor     .10000E-03    4.4473        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .78507        .25303        .89797E-01   -1.0062    
  28  Prefactor     1.0185        .11574        .42287E-01   -.92116    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79556e-07
Minuit parameter uncertainties:
  1  23.3713
  2  24.4089
  3  0.000993581
  4  55.2442
  5  22.41
  6  41.607
  7  4.81881e-06
  8  9.2958
  9  1.38584
  10  36.073
  11  0.00115942
  12  3.34301
  13  0.0264151
  14  0.0342218
  15  2.9967
  16  15.3836
  17  3.3205e-05
  18  3.59736
  19  1.05978
  20  0.00133136
  21  19.7358
  22  9.23398e-05
  23  31.2011
  24  16.9081
  25  0.338958
  26  0.00023022
  27  0.253413
  28  0.115765
Done.

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

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  1.426e+01  1.538e+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:  1.018e+00  1.158e-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.851e-01  2.534e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.32
Ra Dec: 327.163 6.879
Photon Index (Fixed Index): 2.66 +/- 0.00
Photon Flux (Fixed Index): 3.36e-08 +/- 3.62e-08
Energy Flux (Fixed Index): 8.17e-06 +/- 8.82e-06

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

Saving results to:
/scratch/kocevski/946978/likelihoodResults_242697601_242956801_4FGL_J2148.6+0652_daily_bin13.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) = 7372.9452404
delta logL = 0.0291236672083

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7372.94082712
delta logL = 0.0335369471668

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.854       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9202       1.0000          .0000       5.0000    
     3 'Normalizat'    .77948       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0203       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=   7372.941     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      242 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.854        15.811        .11172E-03    .25256E-03
   2  alpha         2.9209        1.0413        .28939E-01    .34242E-04
   3  Normalizat    .77992        .25859        .39894E-03   -.28013E-04
   4  Prefactor     1.0202        .13133        .17896E-03   -.40593E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.8541
  alpha      = 2.92088
  Normalizat = 0.779917
  Prefactor  = 1.02019
 **********
 **   18 **HESSE 
 **********

 FCN=   7372.941     FROM HESSE     STATUS=OK            25 CALLS      267 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.854        15.199        .44689E-05   -1.4991    
   2  alpha         2.9209        1.0031        .11576E-02    .16916    
   3  Normalizat    .77992        .25875        .15957E-04   -1.0082    
   4  Prefactor     1.0202        .13139        .35792E-04   -.92059    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48168e-10
Minuit parameter uncertainties:
  1  15.2031
  2  1.03314
  3  0.259154
  4  0.13143
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/946978': 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) = 7372.94082505
delta logL = 0.0335390172158

Extracting fit parameters...

4FGL J2148.6+0652
   Spectrum: LogParabola
295         norm:  1.285e+01  1.520e+01  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.921e+00  1.033e+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:  1.020e+00  1.314e-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.799e-01  2.592e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.39
Ra Dec: 327.163 6.879
Photon Index (Free Index): 2.92 +/- 1.03
Photon Flux (Free Index): 3.79e-08 +/- 4.15e-08
Energy Flux (Free Index): 8.14e-06 +/- 8.47e-06

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/946978/cmap_HighResolution_242697601_242956801_4FGL_J2148.6+0652_daily_bin13.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.93e-05', comment='SUCCESS', photon_flux='3.36e-08', energy_flux2='8.14e-06', photon_flux_error='3.62e-08', dlogl='3.35e-02', energy_flux='8.17e-06', photon_flux2='3.79e-08', job_status='DONE', time_completed='2021-09-27 16:21:45.807558', photon_index_error2='1.03', photon_index2='2.92', ts='1.32', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.20e-07', energy_flux_error2='8.47e-06', EG='0.79', time_epoch_completed='1632784905.81', return_code='0', job_id='946978', GAL2='1.02', EG2='0.78', return_code2='0', energy_flux_error='8.82e-06', photon_flux_error2='4.15e-08', ts2='1.39', photon_index='2.66' WHERE bin_id='13' AND source_name='4FGL J2148.6+0652' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 16:21:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 946978: <4FGL_J2148.6+0652_daily_bin13> in cluster <slac> Done

Job <4FGL_J2148.6+0652_daily_bin13> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep 27 16:05:21 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 16:07:20 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:07:20 2021
Terminated at Mon Sep 27 16:21:46 2021
Results reported at Mon Sep 27 16:21:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2148.6+0652_daily_bin13 327.163 6.8791 242697601 242956801 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 :                                   813.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             364.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   868 sec.
    Turnaround time :                            985 sec.

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

