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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin1023
RA = 177.154, Dec = 18.6861
tmin = 504489601, tmax = 504748801
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='88024', job_status='RUN', time_executed='2021-09-04 12:02:22.522159', time_epoch_executed='1630782142.52' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='1023'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/88024

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/88024/ft1_4FGL_J1148.6+1841_daily_bin1023.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/88024/ft2_4FGL_J1148.6+1841_daily_bin1023.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/88024/ft1_4FGL_J1148.6+1841_daily_bin1023.fits outfile=/scratch/kocevski/88024/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1023.fits ra=177.154 dec=18.6861 rad=12.0 tmin=504489601.0 tmax=504748801.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.40
user 4.18
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/88024/ft2_4FGL_J1148.6+1841_daily_bin1023.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/88024/ft2_4FGL_J1148.6+1841_daily_bin1023.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/88024/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1023.fits evtable="EVENTS" outfile="/scratch/kocevski/88024/ft1_filtered_4FGL_J1148.6+1841_daily_bin1023.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/88024/ft1_filtered_4FGL_J1148.6+1841_daily_bin1023.fits" evtable="EVENTS" scfile=/scratch/kocevski/88024/ft2_4FGL_J1148.6+1841_daily_bin1023.fits sctable="SC_DATA" outfile=/scratch/kocevski/88024/ltcube_504489601_504748801_4FGL_J1148.6+1841_daily_bin1023.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/88024/ft2_4FGL_J1148.6+1841_daily_bin1023.fits
.....................!
real 11.47
user 11.12
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/88024/ft1_filtered_4FGL_J1148.6+1841_daily_bin1023.fits evtable="EVENTS" scfile=/scratch/kocevski/88024/ft2_4FGL_J1148.6+1841_daily_bin1023.fits sctable="SC_DATA" expcube=/scratch/kocevski/88024/ltcube_504489601_504748801_4FGL_J1148.6+1841_daily_bin1023.fits outfile=/scratch/kocevski/88024/expmap_504489601_504748801_4FGL_J1148.6+1841_daily_bin1023.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/88024/ltcube_504489601_504748801_4FGL_J1148.6+1841_daily_bin1023.fits
.....................!
real 190.32
user 184.87
sys 5.12

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

Setting source of interest to:
4FGL J1148.6+1841 @ 177.154 18.6861

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/88024/ft1_filtered_4FGL_J1148.6+1841_daily_bin1023.fits scfile=/scratch/kocevski/88024/ft2_4FGL_J1148.6+1841_daily_bin1023.fits outfile=/scratch/kocevski/88024/cmap_504489601_504748801_4FGL_J1148.6+1841_daily_bin1023.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=177.154 yref=18.6861 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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/88024/ft1_filtered_4FGL_J1148.6+1841_daily_bin1023.fits scfile=/scratch/kocevski/88024/ft2_4FGL_J1148.6+1841_daily_bin1023.fits outfile=/scratch/kocevski/88024/cmap_HighResolution_504489601_504748801_4FGL_J1148.6+1841_daily_bin1023.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=177.154 yref=18.6861 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/88024/ft1_filtered_4FGL_J1148.6+1841_daily_bin1023.fits evtable="EVENTS" scfile=/scratch/kocevski/88024/ft2_4FGL_J1148.6+1841_daily_bin1023.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/88024/Model_4FGL_J1148.6+1841_daily_bin1023.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/88024/ft1_filtered_4FGL_J1148.6+1841_daily_bin1023.fits.....................!
real 53.40
user 52.08
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/88024/ft1_filtered_4FGL_J1148.6+1841_daily_bin1023.fits', '/scratch/kocevski/88024/ft2_4FGL_J1148.6+1841_daily_bin1023.fits', expMap='/scratch/kocevski/88024/expmap_504489601_504748801_4FGL_J1148.6+1841_daily_bin1023.fits', expCube='/scratch/kocevski/88024/ltcube_504489601_504748801_4FGL_J1148.6+1841_daily_bin1023.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/88024/Model_4FGL_J1148.6+1841_daily_bin1023.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1148.6+1841'

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.462e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.323e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  1.358e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/88024/ft1_filtered_4FGL_J1148.6+1841_daily_bin1023.fits
Spacecraft file(s): /scratch/kocevski/88024/ft2_4FGL_J1148.6+1841_daily_bin1023.fits
Exposure map: /scratch/kocevski/88024/expmap_504489601_504748801_4FGL_J1148.6+1841_daily_bin1023.fits
Exposure cube: /scratch/kocevski/88024/ltcube_504489601_504748801_4FGL_J1148.6+1841_daily_bin1023.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/88024/Model_4FGL_J1148.6+1841_daily_bin1023.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) = 5714.5235797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.618       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.9263       1.0000         .10000E-03   10000.    
     4 'norm      '    7.8726       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .27944       1.0000         .10000E-03   10000.    
     6 'Prefactor '    87.979       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.094       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5346       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .77367E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    13.211       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.1839       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    102.89       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.4435       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .18233       1.0000         .10000E-03   10000.    
    20 'norm      '    3.2082       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.5175       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .99237       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .81477       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5714.514     FROM MIGRAD    STATUS=CONVERGED    563 CALLS     2823 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.623        20.024        .15071E-06   -.59808E-04
   2  Prefactor     .10000E-03    2.7926       -.11846E-06** at limit **
   3  norm          9.9228        9.0794       -.63975E-07    .27050E-04
   4  norm          7.8694        9.9247       -.35876E-07    .15894E-03
   5  Prefactor     .91228E-01    9.7006        .27706E-06   -.38836E-04
   6  Prefactor     87.997        55.954       -.13575E-06    .18305E-03
   7  Prefactor     .10000E-03    7.9305       -.10490E-06** at limit **
   8  Prefactor     15.081        19.264       -.68469E-07    .12317E-03
   9  Prefactor     .10000E-03    20.309       -.12472E-05** at limit **
  10  Prefactor     2.5341        1.6744       -.10236E-07    .25377E-03
  11  Prefactor     .10000E-03    45.327        .14268E-04** at limit **
  12  norm          13.209        2.4569       -.23411E-07   -.19801E-03
  13  Prefactor     3.1447        50.341        .96593E-06    .51936E-04
  14  Prefactor     .10000E-03    1.5801       -.16713E-06** at limit **
  15  Prefactor     102.96        131.98        .15851E-06   -.10099E-04
  16  Prefactor     6.4407        3.6042        .34386E-07    .45817E-03
  17  Prefactor     .10000E-03    2.1009       -.32243E-06** at limit **
  18  Prefactor     .10000E-03    2.7699       -.39274E-07** at limit **
  19  norm          .18206        .25000       -.14351E-06   -.11582E-02
  20  norm          3.2082        4.6557        .53757E-07    .29982E-03
  21  Prefactor     4.5129        7.7029       -.52766E-07   -.16449E-04
  22  Prefactor     .10000E-03    32.288       -.42913E-06** at limit **
  23  Normalizat    .99331        .20258        .39998E-06    .52510E-04
  24  Prefactor     .81434        .18210        .15376E-05    .17935E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.6227
  Prefactor  = 0.0001
  norm       = 9.92276
  norm       = 7.86938
  Prefactor  = 0.0912283
  Prefactor  = 87.9971
  Prefactor  = 0.0001
  Prefactor  = 15.0811
  Prefactor  = 0.000100003
  Prefactor  = 2.5341
  Prefactor  = 0.000100003
  norm       = 13.2091
  Prefactor  = 3.14471
  Prefactor  = 0.0001
  Prefactor  = 102.958
  Prefactor  = 6.4407
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.182058
  norm       = 3.20818
  Prefactor  = 4.51294
  Prefactor  = 0.000100001
  Normalizat = 0.993313
  Prefactor  = 0.814344
 **********
 **   18 **HESSE 
 **********

 FCN=   5714.514     FROM HESSE     STATUS=OK           415 CALLS     3238 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.623        20.042        .10476E-03   -1.4943    
   2  Prefactor     .10000E-03    2.8007        .12337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.9228        9.0780        .12719E-03   -1.5078    
   4  norm          7.8694        9.9278        .14291E-03   -1.5147    
   5  Prefactor     .91228E-01    19.826        .66514E-01   -1.5648    
   6  Prefactor     87.997        56.188        .42835E-04   -1.3829    
   7  Prefactor     .10000E-03    7.9399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.081        19.293        .10309E-03   -1.4931    
   9  Prefactor     .10000E-03    21.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.5341        1.6737        .76212E-04   -1.5390    
  11  Prefactor     .10000E-03    45.234        .38087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          13.209        2.4596        .24481E-03   -1.4981    
  13  Prefactor     3.1447        50.538        .22710E-03   -1.5353    
  14  Prefactor     .10000E-03    1.5919        .92876E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     102.96        133.03        .19820E-03   -1.3675    
  16  Prefactor     6.4407        3.5969        .10044E-03   -1.5200    
  17  Prefactor     .10000E-03    2.1511        .10717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.7794        .12277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .18206        .24354        .41820E-03   -1.5623    
  20  norm          3.2082        4.6386        .18999E-03   -1.5350    
  21  Prefactor     4.5129        7.6914        .18942E-03   -1.5283    
  22  Prefactor     .10000E-03    32.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .99331        .23678        .25715E-03   -.93255    
  24  Prefactor     .81434        .21048        .27717E-03   -.99202    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08085e-09
Minuit parameter uncertainties:
  1  20.0509
  2  1.80424e-05
  3  9.07924
  4  9.92988
  5  2.68918
  6  56.2223
  7  2.60551e-05
  8  19.3013
  9  0.0004799
  10  1.67372
  11  0.000730818
  12  2.45961
  13  25.2381
  14  1.85132e-05
  15  133.417
  16  3.59702
  17  4.06297e-05
  18  7.60791e-06
  19  0.24354
  20  4.63909
  21  7.69304
  22  0.000431772
  23  0.237031
  24  0.210684
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  4.799e-04  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.323e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  1.358e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  8.143e-01  2.107e-01  0.000e+00  1.000e+01 ( 1.000e+00)
591        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
592        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
589   Normalization:  9.933e-01  2.370e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 177.154 18.686
Photon Flux Upper Limit: 9.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/88024/likelihoodResults_504489601_504748801_4FGL_J1148.6+1841_daily_bin1023.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) = 5714.51421969
delta logL = -0.000226841039876

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5714.51399285
delta logL = 1.47338141687e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .71807E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4460       1.0000          .0000       10.000    
     3 'Normalizat'    .99367       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81399       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5712.830     FROM MIGRAD    STATUS=CONVERGED    133 CALLS      301 TOTAL
                     EDM=   .87E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13282        .51688        .15991E-05    .24083E-03
   2  Index         4.9406        1.6080       -.33817E-04    .67106E-05
   3  Normalizat    .84137        .21439       -.49790E-05    .88889E-04
   4  Prefactor     .90533        .21235        .53253E-05    .52559E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.132816
  Index      = 4.9406
  Normalizat = 0.841367
  Prefactor  = 0.905333
 **********
 **   18 **HESSE 
 **********

 FCN=   5712.830     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      336 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13282        1.1830        .36350E-02   -1.5635    
   2  Index         4.9406        2.1152        .83242E-01   -.11880E-01
   3  Normalizat    .84137        .52601E-01    .46088E-01   -.98552    
   4  Prefactor     .90533        .51893E-01    .43899E-01   -.95955    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.44512e-09
Minuit parameter uncertainties:
  1  0.792493
  2  2.18395
  3  0.0526038
  4  0.0518953
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/88024': 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): 102
logL (Free Index) = 5712.83019791
delta logL = 1.68379494271

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.328e-01  7.925e-01  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  4.941e+00  2.184e+00  0.000e+00  1.000e+01 (-1.000e+00)
283        Scale:  1.358e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  9.053e-01  5.190e-02  0.000e+00  1.000e+01 ( 1.000e+00)
591        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
592        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
589   Normalization:  8.414e-01  5.260e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.74
Ra Dec: 177.154 18.686
Photon Index (Free Index): 4.94 +/- 2.18
Photon Flux (Free Index): 1.34e-07 +/- 1.16e-07
Energy Flux (Free Index): 1.79e-05 +/- 1.87e-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/88024/cmap_HighResolution_504489601_504748801_4FGL_J1148.6+1841_daily_bin1023.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.09e-03', comment='SUCCESS', energy_flux2='1.79e-05', dlogl='1.68e+00', photon_flux2='1.34e-07', job_status='DONE', time_completed='2021-09-04 12:13:27.227383', photon_index_error2='2.18', photon_index2='4.94', ts='-0.00', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='9.22e-08', energy_flux_error2='1.87e-05', EG='0.99', time_epoch_completed='1630782807.23', return_code='0', job_id='88024', GAL2='0.91', EG2='0.84', return_code2='102', photon_flux_error2='1.16e-07', ts2='3.74', photon_index='2.32' WHERE bin_id='1023' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:13:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 88024: <4FGL_J1148.6+1841_daily_bin1023> in cluster <slac> Done

Job <4FGL_J1148.6+1841_daily_bin1023> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 12:01:45 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:01:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 12:01:47 2021
Terminated at Sat Sep  4 12:13:27 2021
Results reported at Sat Sep  4 12:13:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin1023 177.154 18.6861 504489601 504748801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1148.6+1841 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   663.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             351.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   700 sec.
    Turnaround time :                            702 sec.

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

