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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin900
RA = 177.154, Dec = 18.6861
tmin = 472608001, tmax = 472867201
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='87842', job_status='RUN', time_executed='2021-09-04 12:01:44.095160', time_epoch_executed='1630782104.1' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='900'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/87842

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/87842/ft1_4FGL_J1148.6+1841_daily_bin900.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/87842/ft2_4FGL_J1148.6+1841_daily_bin900.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/87842/ft1_4FGL_J1148.6+1841_daily_bin900.fits outfile=/scratch/kocevski/87842/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin900.fits ra=177.154 dec=18.6861 rad=12.0 tmin=472608001.0 tmax=472867201.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.50
user 3.26
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/87842/ft2_4FGL_J1148.6+1841_daily_bin900.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/87842/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin900.fits evtable="EVENTS" outfile="/scratch/kocevski/87842/ft1_filtered_4FGL_J1148.6+1841_daily_bin900.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/87842/ft1_filtered_4FGL_J1148.6+1841_daily_bin900.fits" evtable="EVENTS" scfile=/scratch/kocevski/87842/ft2_4FGL_J1148.6+1841_daily_bin900.fits sctable="SC_DATA" outfile=/scratch/kocevski/87842/ltcube_472608001_472867201_4FGL_J1148.6+1841_daily_bin900.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/87842/ft2_4FGL_J1148.6+1841_daily_bin900.fits
.....................!
real 11.83
user 11.41
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/87842/ft1_filtered_4FGL_J1148.6+1841_daily_bin900.fits evtable="EVENTS" scfile=/scratch/kocevski/87842/ft2_4FGL_J1148.6+1841_daily_bin900.fits sctable="SC_DATA" expcube=/scratch/kocevski/87842/ltcube_472608001_472867201_4FGL_J1148.6+1841_daily_bin900.fits outfile=/scratch/kocevski/87842/expmap_472608001_472867201_4FGL_J1148.6+1841_daily_bin900.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/87842/ltcube_472608001_472867201_4FGL_J1148.6+1841_daily_bin900.fits
.....................!
real 190.14
user 185.75
sys 4.02

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/87842/ft1_filtered_4FGL_J1148.6+1841_daily_bin900.fits scfile=/scratch/kocevski/87842/ft2_4FGL_J1148.6+1841_daily_bin900.fits outfile=/scratch/kocevski/87842/cmap_472608001_472867201_4FGL_J1148.6+1841_daily_bin900.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.57
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/87842/ft1_filtered_4FGL_J1148.6+1841_daily_bin900.fits scfile=/scratch/kocevski/87842/ft2_4FGL_J1148.6+1841_daily_bin900.fits outfile=/scratch/kocevski/87842/cmap_HighResolution_472608001_472867201_4FGL_J1148.6+1841_daily_bin900.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.56
user 0.42
sys 0.11

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.5014       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    45.376       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .25696       1.0000         .10000E-03   10000.    
     8 'Prefactor '    34.158       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.1963       1.0000         .10000E-03   10000.    
    12 'norm      '    18.028       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10540E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.5107       1.0000         .10000E-03   10000.    
    19 'norm      '    .15091       1.0000         .10000E-03   10000.    
    20 'norm      '    8.4333       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .17194E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    24.508       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .80428       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0599       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=   7012.441     FROM MIGRAD    STATUS=CONVERGED    609 CALLS     2798 TOTAL
                     EDM=   .94E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.378        .15863E-06** at limit **
   2  Prefactor     .10000E-03    2.4065        .69730E-07** at limit **
   3  norm          .10000E-03    4.2984        .95511E-07** at limit **
   4  norm          3.5087        10.523        .30354E-06    .83070E-05
   5  Prefactor     .10000E-03    4.0357        .12968E-06** at limit **
   6  Prefactor     45.367        32.279        .28150E-06   -.59373E-05
   7  Prefactor     .50093E-02    16.472       -.16710E-05    .85350E-04
   8  Prefactor     34.175        25.016       -.29370E-07   -.55446E-04
   9  Prefactor     .10000E-03    4.1710        .81765E-07** at limit **
  10  Prefactor     .10000E-03    .63717        .34376E-06** at limit **
  11  Prefactor     6.1903        10.323        .34427E-06   -.26300E-04
  12  norm          18.029        2.5822       -.10778E-07   -.19364E-03
  13  Prefactor     .10000E-03    3.8521       -.11123E-06** at limit **
  14  Prefactor     .10000E-03    1.1322        .88548E-07** at limit **
  15  Prefactor     .10000E-03    45.402        .11714E-05** at limit **
  16  Prefactor     .10000E-03    1.3819        .12671E-06** at limit **
  17  Prefactor     .10000E-03    1.5546        .26521E-06** at limit **
  18  Prefactor     1.5103        4.3210        .24250E-05    .14484E-04
  19  norm          .15090        .14049        .10063E-07    .16591E-03
  20  norm          8.4331        4.9867       -.27571E-06    .45028E-04
  21  Prefactor     .10000E-03    47.666       -.69135E-05** at limit **
  22  Prefactor     24.456        27.939       -.20916E-05    .47213E-05
  23  Normalizat    .80430        .17079       -.10494E-05   -.73240E-04
  24  Prefactor     1.0600        .16759        .16617E-06   -.14462E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.50875
  Prefactor  = 0.0001
  Prefactor  = 45.3669
  Prefactor  = 0.00500929
  Prefactor  = 34.1749
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.19027
  norm       = 18.0288
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.51029
  norm       = 0.150905
  norm       = 8.43314
  Prefactor  = 0.0001
  Prefactor  = 24.4555
  Normalizat = 0.804296
  Prefactor  = 1.06001
 **********
 **   18 **HESSE 
 **********

 FCN=   7012.441     FROM HESSE     STATUS=OK           407 CALLS     3205 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.4235        .12687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.3255        .16954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.5087        10.509        .21607E-03   -1.5333    
   5  Prefactor     .10000E-03    4.0487        .16431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     45.367        32.315        .59520E-04   -1.4360    
   7  Prefactor     .50093E-02    16.370        .95534E-01   -1.5694    
   8  Prefactor     34.175        25.117        .68565E-04   -1.4538    
   9  Prefactor     .10000E-03    4.2003        .16703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .65065        .65516E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.1903        10.351        .16127E-03   -1.5210    
  12  norm          18.029        2.5827        .48134E-04   -1.4859    
  13  Prefactor     .10000E-03    3.8556        .16050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.1401        .87011E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    46.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.1061        .18751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.9676        .19849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.5103        4.3380        .13804E-02   -1.5462    
  19  norm          .15090        .14100        .29091E-04   -1.5630    
  20  norm          8.4331        4.9933        .13404E-03   -1.5127    
  21  Prefactor     .10000E-03    46.062        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     24.456        27.401        .80915E-04   -1.4719    
  23  Normalizat    .80430        .19399        .27069E-03   -.99910    
  24  Prefactor     1.0600        .19100        .24626E-03   -.90755    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.4813e-10
Minuit parameter uncertainties:
  1  2.37273e-05
  2  3.32806e-06
  3  6.30135e-06
  4  10.5143
  5  7.79905e-06
  6  32.3274
  7  0.567128
  8  25.125
  9  4.90001e-06
  10  4.00377e-06
  11  10.354
  12  2.58268
  13  7.97513e-07
  14  2.69196e-06
  15  0.000394963
  16  6.08653e-07
  17  5.26066e-05
  18  4.33894
  19  0.140997
  20  4.99356
  21  0.000169575
  22  27.4148
  23  0.194152
  24  0.191123
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  4.900e-06  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.060e+00  1.911e-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.043e-01  1.942e-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: 5.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/87842/likelihoodResults_472608001_472867201_4FGL_J1148.6+1841_daily_bin900.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) = 7012.44251052
delta logL = -0.00113344545025

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7012.44137724
delta logL = -1.67330654222e-07

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 'Index     '    2.3090       1.0000          .0000       10.000    
     3 'Normalizat'    .80442       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0599       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=   7012.441     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      226 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    136.65        .16827E-01** at limit **
   2  Index         1.9162        7.9579        .97078E-01    .15341E-07
   3  Normalizat    .80430        .22314E-01    .27069E-03    .23687E-04
   4  Prefactor     1.0600        .23132E-01    .24626E-03    .30700E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.91615
  Normalizat = 0.804295
  Prefactor  = 1.06001
 **********
 **   18 **HESSE 
 **********

 FCN=   7012.441     FROM HESSE     STATUS=OK            23 CALLS      249 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.7673        .17706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9162        8.8862        .38831E-02   -.66463    
   3  Normalizat    .80430        .18182        .10828E-04   -.99910    
   4  Prefactor     1.0600        .18850        .98504E-05   -.90755    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86054e-12
Minuit parameter uncertainties:
  1  1.13126e-06
  2  237.094
  3  0.181955
  4  0.188617
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/87842': 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) = 7012.4413757
delta logL = 1.36990092869e-06

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  1.131e-06  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  1.916e+00  2.371e+02  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.060e+00  1.886e-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.043e-01  1.820e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 177.154 18.686

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/87842/cmap_HighResolution_472608001_472867201_4FGL_J1148.6+1841_daily_bin900.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.99e-03', job_status='DONE', photon_flux_upper_limit='5.20e-08', time_completed='2021-09-04 12:14:19.172032', job_id='87842', GAL2='1.06', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1630782859.17', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='1.37e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='900' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:14:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 87842: <4FGL_J1148.6+1841_daily_bin900> in cluster <slac> Done

Job <4FGL_J1148.6+1841_daily_bin900> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 12:01:33 2021
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:01:34 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:34 2021
Terminated at Sat Sep  4 12:14:20 2021
Results reported at Sat Sep  4 12:14:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin900 177.154 18.6861 472608001 472867201 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 :                                   751.03 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             334.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   765 sec.
    Turnaround time :                            767 sec.

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

