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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin1035
RA = 177.154, Dec = 18.6861
tmin = 507600001, tmax = 507859201
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='88041', job_status='RUN', time_executed='2021-09-04 12:05:13.566221', time_epoch_executed='1630782313.57' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='1035'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/88041

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/88041/ft1_4FGL_J1148.6+1841_daily_bin1035.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/88041/ft2_4FGL_J1148.6+1841_daily_bin1035.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/88041/ft1_4FGL_J1148.6+1841_daily_bin1035.fits outfile=/scratch/kocevski/88041/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1035.fits ra=177.154 dec=18.6861 rad=12.0 tmin=507600001.0 tmax=507859201.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 3.56
user 3.36
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/88041/ft2_4FGL_J1148.6+1841_daily_bin1035.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/88041/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1035.fits evtable="EVENTS" outfile="/scratch/kocevski/88041/ft1_filtered_4FGL_J1148.6+1841_daily_bin1035.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.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/88041/ft1_filtered_4FGL_J1148.6+1841_daily_bin1035.fits" evtable="EVENTS" scfile=/scratch/kocevski/88041/ft2_4FGL_J1148.6+1841_daily_bin1035.fits sctable="SC_DATA" outfile=/scratch/kocevski/88041/ltcube_507600001_507859201_4FGL_J1148.6+1841_daily_bin1035.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/88041/ft2_4FGL_J1148.6+1841_daily_bin1035.fits
.....................!
real 11.76
user 11.46
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/88041/ft1_filtered_4FGL_J1148.6+1841_daily_bin1035.fits evtable="EVENTS" scfile=/scratch/kocevski/88041/ft2_4FGL_J1148.6+1841_daily_bin1035.fits sctable="SC_DATA" expcube=/scratch/kocevski/88041/ltcube_507600001_507859201_4FGL_J1148.6+1841_daily_bin1035.fits outfile=/scratch/kocevski/88041/expmap_507600001_507859201_4FGL_J1148.6+1841_daily_bin1035.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/88041/ltcube_507600001_507859201_4FGL_J1148.6+1841_daily_bin1035.fits
.....................!
real 190.19
user 185.60
sys 4.26

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/88041/ft1_filtered_4FGL_J1148.6+1841_daily_bin1035.fits scfile=/scratch/kocevski/88041/ft2_4FGL_J1148.6+1841_daily_bin1035.fits outfile=/scratch/kocevski/88041/cmap_507600001_507859201_4FGL_J1148.6+1841_daily_bin1035.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/88041/ft1_filtered_4FGL_J1148.6+1841_daily_bin1035.fits scfile=/scratch/kocevski/88041/ft2_4FGL_J1148.6+1841_daily_bin1035.fits outfile=/scratch/kocevski/88041/cmap_HighResolution_507600001_507859201_4FGL_J1148.6+1841_daily_bin1035.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10240E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.4936       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.4880       1.0000         .10000E-03   10000.    
     6 'Prefactor '    46.032       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.897       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.5391       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .62350       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.0998       1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.484       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .92069       1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.214       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.2207       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.8431       1.0000         .10000E-03   10000.    
    19 'norm      '    .32039       1.0000         .10000E-03   10000.    
    20 'norm      '    6.8396       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.612       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3967       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .59023       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=   5505.781     FROM MIGRAD    STATUS=CONVERGED    532 CALLS     2736 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.3545       -.99088E-06** at limit **
   2  Prefactor     .10000E-03    1.9240       -.33630E-07** at limit **
   3  norm          .10000E-03    12.015       -.36590E-07** at limit **
   4  norm          4.4925        7.3741        .35248E-05   -.12804E-02
   5  Prefactor     5.4876        8.5235        .20585E-05   -.75546E-03
   6  Prefactor     46.019        37.598       -.40098E-05   -.46569E-03
   7  Prefactor     .10000E-03    84.467       -.38303E-06** at limit **
   8  Prefactor     19.884        18.220        .15478E-05    .34692E-03
   9  Prefactor     6.5378        10.975        .80594E-06    .80427E-04
  10  Prefactor     .62465        1.3365        .23551E-06   -.53423E-03
  11  Prefactor     .10000E-03    7.2182       -.21210E-06** at limit **
  12  norm          1.0997        .85399       -.21142E-07   -.20920E-03
  13  Prefactor     16.484        13.426        .88482E-06    .60986E-04
  14  Prefactor     .92017        3.2240        .61514E-06   -.32150E-03
  15  Prefactor     21.196        62.079       -.10695E-04   -.19025E-03
  16  Prefactor     .10000E-03    1.2305       -.14209E-07** at limit **
  17  Prefactor     5.2208        3.1878        .13636E-07   -.93175E-04
  18  Prefactor     6.8431        5.1065        .41745E-06    .41449E-03
  19  norm          .32040        .24825        .19719E-07   -.56153E-03
  20  norm          6.8396        5.2016        .42291E-06    .35375E-03
  21  Prefactor     .10000E-03    6.4194        .11963E-05** at limit **
  22  Prefactor     23.622        35.583        .42964E-05    .23025E-03
  23  Normalizat    1.3968        .19076       -.12861E-05   -.41856E-04
  24  Prefactor     .59010        .18074        .61680E-07   -.91566E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.49251
  Prefactor  = 5.48759
  Prefactor  = 46.0193
  Prefactor  = 0.000100001
  Prefactor  = 19.8843
  Prefactor  = 6.53779
  Prefactor  = 0.62465
  Prefactor  = 0.0001
  norm       = 1.09975
  Prefactor  = 16.4841
  Prefactor  = 0.920165
  Prefactor  = 21.196
  Prefactor  = 0.0001
  Prefactor  = 5.22083
  Prefactor  = 6.84314
  norm       = 0.320399
  norm       = 6.83958
  Prefactor  = 0.0001
  Prefactor  = 23.6225
  Normalizat = 1.39677
  Prefactor  = 0.590104
 **********
 **   18 **HESSE 
 **********

 FCN=   5505.781     FROM HESSE     STATUS=OK           401 CALLS     3137 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.3828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.9263        .10051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    12.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.4925        8.1864        .94967E-03   -1.5284    
   5  Prefactor     5.4876        8.7912        .85757E-03   -1.5239    
   6  Prefactor     46.019        38.929        .59096E-04   -1.4350    
   7  Prefactor     .10000E-03    87.961        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     19.884        18.189        .89793E-04   -1.4816    
   9  Prefactor     6.5378        10.938        .15694E-03   -1.5197    
  10  Prefactor     .62465        1.1614        .11817E-02   -1.5550    
  11  Prefactor     .10000E-03    7.2594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.0997        .85798        .58507E-04   -1.5498    
  13  Prefactor     16.484        13.446        .98647E-04   -1.4896    
  14  Prefactor     .92017        3.1911        .23487E-03   -1.5516    
  15  Prefactor     21.196        64.006        .86961E-04   -1.4787    
  16  Prefactor     .10000E-03    1.2536        .80202E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.2208        3.1814        .98846E-04   -1.5251    
  18  Prefactor     6.8431        5.1119        .13914E-03   -1.5185    
  19  norm          .32040        .24053        .30710E-03   -1.5595    
  20  norm          6.8396        5.2023        .14178E-03   -1.5185    
  21  Prefactor     .10000E-03    6.4379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     23.622        35.862        .82434E-04   -1.4736    
  23  Normalizat    1.3968        .22127        .21680E-03   -.80722    
  24  Prefactor     .59010        .20638        .31794E-03   -1.0800    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.70414e-09
Minuit parameter uncertainties:
  1  8.05015e-05
  2  8.80242e-07
  3  7.07124e-05
  4  8.18843
  5  8.79328
  6  38.9509
  7  0.000425378
  8  18.1943
  9  10.9409
  10  1.16141
  11  3.77922e-05
  12  0.857991
  13  13.4482
  14  3.19172
  15  64.214
  16  5.88247e-07
  17  3.18151
  18  5.11219
  19  0.240535
  20  5.20269
  21  8.27751e-05
  22  35.8951
  23  0.221425
  24  0.206647
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  6.538e+00  1.094e+01  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:  5.901e-01  2.066e-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:  1.397e+00  2.214e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.43
Ra Dec: 177.154 18.686
Photon Flux Upper Limit: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/88041/likelihoodResults_507600001_507859201_4FGL_J1148.6+1841_daily_bin1035.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) = 5505.66415115
delta logL = 0.11656316775

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5505.66278725
delta logL = 0.117927072085

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9259       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7812       1.0000          .0000       10.000    
     3 'Normalizat'    1.3859       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59581       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5505.663     FROM MIGRAD    STATUS=FAILED        82 CALLS      294 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9234        11.447        .18768E-03   -.59362E-05
   2  Index         2.7814        1.3081        .77618E-02    .48980E-03
   3  Normalizat    1.3860        .20724        .21749E-03   -.12528E-02
   4  Prefactor     .59598        .20495        .31642E-03   -.86496E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5505.663     FROM SIMPLEX   STATUS=UNCHANGED     77 CALLS      371 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9234        11.447        .24101E-03   -1.5312    
   2  Index         2.7814        1.3081        .11556E-02   -.45974    
   3  Normalizat    1.3860        .20724        .21768E-03   -.81036    
   4  Prefactor     .59598        .20495        .33027E-03   -1.0776    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5505.663     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      401 TOTAL
                     EDM=   .47E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9234        8.9868        .75073E-05   -.11812E-04
   2  Index         2.7814        1.0323        .15524E-02    .73381E-05
   3  Normalizat    1.3860        .20727        .43497E-04   -.41819E-06
   4  Prefactor     .59598        .20475        .63284E-04   -.17965E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.92338
  Index      = 2.78144
  Normalizat = 1.38597
  Prefactor  = 0.595978
 **********
 **   18 **HESSE 
 **********

 FCN=   5505.663     FROM HESSE     STATUS=OK            23 CALLS      424 TOTAL
                     EDM=   .36E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9234        8.6563        .15015E-05   -1.5312    
   2  Index         2.7814        .99506        .62094E-04   -.45974    
   3  Normalizat    1.3860        .20733        .86994E-05   -.81035    
   4  Prefactor     .59598        .20482        .25314E-05   -1.0776    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.56848e-12
Minuit parameter uncertainties:
  1  8.65902
  2  1.00342
  3  0.207452
  4  0.205075
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/88041': 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) = 5505.6627851
delta logL = 0.117929220973

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  3.923e+00  8.659e+00  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.781e+00  1.003e+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:  5.960e-01  2.051e-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:  1.386e+00  2.075e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/88041/cmap_HighResolution_507600001_507859201_4FGL_J1148.6+1841_daily_bin1035.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.74e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-09-04 12:16:26.215637', job_id='88041', GAL2='0.60', fit_tolerance='1e-08', EG2='1.39', EG='1.40', time_epoch_completed='1630782986.22', return_code2='0', ts='0.43', comment='SUCCESS', return_code='0', GAL='0.59', dlogl='1.18e-01', ts2='0.66', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1035' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:16:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 88041: <4FGL_J1148.6+1841_daily_bin1035> in cluster <slac> Done

Job <4FGL_J1148.6+1841_daily_bin1035> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 12:01:46 2021
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:01:48 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:48 2021
Terminated at Sat Sep  4 12:16:26 2021
Results reported at Sat Sep  4 12:16:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin1035 177.154 18.6861 507600001 507859201 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 :                                   671.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             252.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            880 sec.

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

