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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin84
RA = 177.154, Dec = 18.6861
tmin = 261100801, tmax = 261360001
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='82790', job_status='RUN', time_executed='2021-09-04 11:48:39.449077', time_epoch_executed='1630781319.45' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='84'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/82790

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/82790/ft1_4FGL_J1148.6+1841_daily_bin84.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/82790/ft2_4FGL_J1148.6+1841_daily_bin84.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/82790/ft1_4FGL_J1148.6+1841_daily_bin84.fits outfile=/scratch/kocevski/82790/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin84.fits ra=177.154 dec=18.6861 rad=12.0 tmin=261100801.0 tmax=261360001.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.51
user 1.34
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/82790/ft2_4FGL_J1148.6+1841_daily_bin84.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/82790/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin84.fits evtable="EVENTS" outfile="/scratch/kocevski/82790/ft1_filtered_4FGL_J1148.6+1841_daily_bin84.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/82790/ft1_filtered_4FGL_J1148.6+1841_daily_bin84.fits" evtable="EVENTS" scfile=/scratch/kocevski/82790/ft2_4FGL_J1148.6+1841_daily_bin84.fits sctable="SC_DATA" outfile=/scratch/kocevski/82790/ltcube_261100801_261360001_4FGL_J1148.6+1841_daily_bin84.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/82790/ft2_4FGL_J1148.6+1841_daily_bin84.fits
.....................!
real 12.57
user 12.22
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/82790/ft1_filtered_4FGL_J1148.6+1841_daily_bin84.fits evtable="EVENTS" scfile=/scratch/kocevski/82790/ft2_4FGL_J1148.6+1841_daily_bin84.fits sctable="SC_DATA" expcube=/scratch/kocevski/82790/ltcube_261100801_261360001_4FGL_J1148.6+1841_daily_bin84.fits outfile=/scratch/kocevski/82790/expmap_261100801_261360001_4FGL_J1148.6+1841_daily_bin84.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/82790/ltcube_261100801_261360001_4FGL_J1148.6+1841_daily_bin84.fits
.....................!
real 192.99
user 185.99
sys 4.79

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/82790/ft1_filtered_4FGL_J1148.6+1841_daily_bin84.fits scfile=/scratch/kocevski/82790/ft2_4FGL_J1148.6+1841_daily_bin84.fits outfile=/scratch/kocevski/82790/cmap_261100801_261360001_4FGL_J1148.6+1841_daily_bin84.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/82790/ft1_filtered_4FGL_J1148.6+1841_daily_bin84.fits scfile=/scratch/kocevski/82790/ft2_4FGL_J1148.6+1841_daily_bin84.fits outfile=/scratch/kocevski/82790/cmap_HighResolution_261100801_261360001_4FGL_J1148.6+1841_daily_bin84.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.53
user 0.38
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/82790/ft1_filtered_4FGL_J1148.6+1841_daily_bin84.fits', '/scratch/kocevski/82790/ft2_4FGL_J1148.6+1841_daily_bin84.fits', expMap='/scratch/kocevski/82790/expmap_261100801_261360001_4FGL_J1148.6+1841_daily_bin84.fits', expCube='/scratch/kocevski/82790/ltcube_261100801_261360001_4FGL_J1148.6+1841_daily_bin84.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/82790/Model_4FGL_J1148.6+1841_daily_bin84.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/82790/ft1_filtered_4FGL_J1148.6+1841_daily_bin84.fits
Spacecraft file(s): /scratch/kocevski/82790/ft2_4FGL_J1148.6+1841_daily_bin84.fits
Exposure map: /scratch/kocevski/82790/expmap_261100801_261360001_4FGL_J1148.6+1841_daily_bin84.fits
Exposure cube: /scratch/kocevski/82790/ltcube_261100801_261360001_4FGL_J1148.6+1841_daily_bin84.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/82790/Model_4FGL_J1148.6+1841_daily_bin84.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) = 8519.14779461

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.8051       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.4597       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.8727       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7962       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.0003       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.6645       1.0000         .10000E-03   10000.    
    12 'norm      '    2.6261       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .89361       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .89103E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.5560       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .80511       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3416       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=   8519.115     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2339 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.9144        .87631E-08** at limit **
   2  Prefactor     .10000E-03    3.8560        .10526E-06** at limit **
   3  norm          .10000E-03    2.4787        .55526E-07** at limit **
   4  norm          6.8080        9.5029       -.16812E-05   -.57670E-04
   5  Prefactor     1.4603        9.1781       -.69251E-06    .18085E-04
   6  Prefactor     .10000E-03    11.974       -.82581E-06** at limit **
   7  Prefactor     .10000E-03    27.253        .47486E-06** at limit **
   8  Prefactor     2.8653        29.574       -.80621E-06    .29758E-04
   9  Prefactor     2.7973        7.8884       -.48738E-06   -.70038E-04
  10  Prefactor     2.0011        1.4889        .11218E-06    .39054E-03
  11  Prefactor     8.6654        6.4995       -.46335E-07   -.54613E-04
  12  norm          2.6265        1.2601        .46750E-07    .25258E-03
  13  Prefactor     .10000E-03    3.0770        .13466E-07** at limit **
  14  Prefactor     .10000E-03    1.0825       -.28728E-07** at limit **
  15  Prefactor     .10000E-03    17.481        .10349E-05** at limit **
  16  Prefactor     .89255        1.5770        .57045E-06    .15563E-02
  17  Prefactor     .10000E-03    1.1072       -.17951E-06** at limit **
  18  Prefactor     .99781E-01    39.440        .13576E-04   -.84724E-04
  19  norm          .10000E-03    .72428E-01    .35380E-08** at limit **
  20  norm          3.5530        4.4178       -.94103E-06   -.24381E-03
  21  Prefactor     .10000E-03    3.8914        .37194E-07** at limit **
  22  Prefactor     .10000E-03    9.5720        .48898E-06** at limit **
  23  Normalizat    .80501        .15241       -.47094E-06   -.26629E-03
  24  Prefactor     1.3417        .15289        .58200E-07   -.21090E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.80796
  Prefactor  = 1.46026
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 2.86533
  Prefactor  = 2.79727
  Prefactor  = 2.00114
  Prefactor  = 8.6654
  norm       = 2.6265
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.892551
  Prefactor  = 0.0001
  Prefactor  = 0.099781
  norm       = 0.0001
  norm       = 3.55303
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.805014
  Prefactor  = 1.34174
 **********
 **   18 **HESSE 
 **********

 FCN=   8519.115     FROM HESSE     STATUS=OK           407 CALLS     2746 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.9219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.9019        .17693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.4861        .14192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.8080        9.5023        .76903E-03   -1.5186    
   5  Prefactor     1.4603        9.1471        .35617E-03   -1.5466    
   6  Prefactor     .10000E-03    11.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    27.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.8653        28.701        .23982E-03   -1.5369    
   9  Prefactor     2.7973        7.8584        .24330E-03   -1.5373    
  10  Prefactor     2.0011        1.4697        .89276E-04   -1.5425    
  11  Prefactor     8.6654        6.4974        .13618E-03   -1.5119    
  12  norm          2.6265        1.2523        .67892E-04   -1.5384    
  13  Prefactor     .10000E-03    3.0814        .15812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.0947        .93701E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .89255        1.5159        .15577E-02   -1.5519    
  17  Prefactor     .10000E-03    1.1373        .18962E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .99781E-01    3.7156        .51553E-01   -1.5645    
  19  norm          .10000E-03    .11583        .47898E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.5530        4.2721        .19170E-03   -1.5331    
  21  Prefactor     .10000E-03    3.8972        .17782E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.5575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .80501        .17695        .27086E-03   -.99883    
  24  Prefactor     1.3417        .17915        .22976E-03   -.82074    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89989e-09
Minuit parameter uncertainties:
  1  1.09984e-05
  2  1.70912e-05
  3  3.22536e-06
  4  9.50443
  5  7.31088
  6  0.000251442
  7  0.000365695
  8  18.1479
  9  7.86132
  10  1.46968
  11  6.49793
  12  1.25234
  13  6.35078e-07
  14  1.95616e-06
  15  0.000257024
  16  1.51593
  17  1.23698e-05
  18  1.21725
  19  1.20776e-06
  20  4.27249
  21  3.35704e-06
  22  9.32926e-05
  23  0.177081
  24  0.179231
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  2.797e+00  7.861e+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

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  1.342e+00  1.792e-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:  8.050e-01  1.771e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/82790/likelihoodResults_261100801_261360001_4FGL_J1148.6+1841_daily_bin84.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) = 8519.06557022
delta logL = 0.0493636167848

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8519.05680517
delta logL = 0.0581286738634

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9154       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8263       1.0000          .0000       10.000    
     3 'Normalizat'    .79624       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3464       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8519.057     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      247 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9148        11.500        .25201E-03   -.75535E-03
   2  Index         2.8264        2.3082        .93951E-02   -.21970E-03
   3  Normalizat    .79623        .17052        .27225E-03   -.60652E-03
   4  Prefactor     1.3464        .17957        .22942E-03   -.64737E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.91481
  Index      = 2.82645
  Normalizat = 0.79623
  Prefactor  = 1.34637
 **********
 **   18 **HESSE 
 **********

 FCN=   8519.057     FROM HESSE     STATUS=OK            23 CALLS      270 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9148        6.4067        .10080E-04   -1.5431    
   2  Index         2.8264        1.6146        .37581E-03   -.44972    
   3  Normalizat    .79623        .16940        .54450E-04   -1.0021    
   4  Prefactor     1.3464        .17830        .45884E-04   -.81938    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.67488e-09
Minuit parameter uncertainties:
  1  6.40902
  2  1.65142
  3  0.169516
  4  0.178378
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/82790': 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) = 8519.05680515
delta logL = 0.0581286892411

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.915e+00  6.409e+00  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.826e+00  1.651e+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:  1.346e+00  1.784e-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:  7.962e-01  1.695e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.15
Ra Dec: 177.154 18.686

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/82790/cmap_HighResolution_261100801_261360001_4FGL_J1148.6+1841_daily_bin84.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.63e-03', job_status='DONE', photon_flux_upper_limit='7.33e-08', time_completed='2021-09-04 12:01:46.228881', job_id='82790', GAL2='1.35', fit_tolerance='1e-08', EG2='0.80', EG='0.81', time_epoch_completed='1630782106.23', return_code2='0', ts='0.15', comment='SUCCESS', return_code='0', GAL='1.34', dlogl='5.81e-02', ts2='0.27', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='84' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:01:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0015>
Subject: Job 82790: <4FGL_J1148.6+1841_daily_bin84> in cluster <slac> Done

Job <4FGL_J1148.6+1841_daily_bin84> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 11:46:14 2021
Job was executed on host(s) <bullet0015>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 11:46:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 11:46:17 2021
Terminated at Sat Sep  4 12:01:46 2021
Results reported at Sat Sep  4 12:01:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin84 177.154 18.6861 261100801 261360001 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 :                                   783.10 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             312.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            932 sec.

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

