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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin961
RA = 177.154, Dec = 18.6861
tmin = 488419201, tmax = 488678401
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='87930', job_status='RUN', time_executed='2021-09-04 12:01:51.986712', time_epoch_executed='1630782111.99' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='961'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/87930

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/87930/ft1_4FGL_J1148.6+1841_daily_bin961.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/87930/ft2_4FGL_J1148.6+1841_daily_bin961.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/87930/ft1_4FGL_J1148.6+1841_daily_bin961.fits outfile=/scratch/kocevski/87930/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin961.fits ra=177.154 dec=18.6861 rad=12.0 tmin=488419201.0 tmax=488678401.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 7.14
user 6.81
sys 0.31

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/87930/ft1_filtered_4FGL_J1148.6+1841_daily_bin961.fits" evtable="EVENTS" scfile=/scratch/kocevski/87930/ft2_4FGL_J1148.6+1841_daily_bin961.fits sctable="SC_DATA" outfile=/scratch/kocevski/87930/ltcube_488419201_488678401_4FGL_J1148.6+1841_daily_bin961.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/87930/ft2_4FGL_J1148.6+1841_daily_bin961.fits
.....................!
real 11.75
user 11.38
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/87930/ft1_filtered_4FGL_J1148.6+1841_daily_bin961.fits evtable="EVENTS" scfile=/scratch/kocevski/87930/ft2_4FGL_J1148.6+1841_daily_bin961.fits sctable="SC_DATA" expcube=/scratch/kocevski/87930/ltcube_488419201_488678401_4FGL_J1148.6+1841_daily_bin961.fits outfile=/scratch/kocevski/87930/expmap_488419201_488678401_4FGL_J1148.6+1841_daily_bin961.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/87930/ltcube_488419201_488678401_4FGL_J1148.6+1841_daily_bin961.fits
.....................!
real 189.69
user 185.29
sys 4.04

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/87930/ft1_filtered_4FGL_J1148.6+1841_daily_bin961.fits scfile=/scratch/kocevski/87930/ft2_4FGL_J1148.6+1841_daily_bin961.fits outfile=/scratch/kocevski/87930/cmap_488419201_488678401_4FGL_J1148.6+1841_daily_bin961.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/87930/ft1_filtered_4FGL_J1148.6+1841_daily_bin961.fits scfile=/scratch/kocevski/87930/ft2_4FGL_J1148.6+1841_daily_bin961.fits outfile=/scratch/kocevski/87930/cmap_HighResolution_488419201_488678401_4FGL_J1148.6+1841_daily_bin961.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .88547       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    11.863       1.0000         .10000E-03   10000.    
     4 'norm      '    6.6944       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.899       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.577       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10596E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.0608       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.114       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11230E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.7083       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.0765       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .53428       1.0000         .10000E-03   10000.    
    20 'norm      '    .75794E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.953       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .82342       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2321       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=   3619.357     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     2774 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .76569        19.247        .52869E-05   -.27317E-03
   2  Prefactor     .10000E-03    4.4597        .15241E-06** at limit **
   3  norm          11.832        20.960        .36753E-04   -.69470E-04
   4  norm          6.6794        15.268        .17538E-04   -.10704E-03
   5  Prefactor     .10000E-03    4.1778        .15239E-06** at limit **
   6  Prefactor     .10000E-03    18.860       -.15022E-05** at limit **
   7  Prefactor     .10000E-03    7.3202       -.58077E-06** at limit **
   8  Prefactor     15.903        25.944        .33267E-06   -.13959E-03
   9  Prefactor     12.570        11.156        .14982E-05   -.16986E-03
  10  Prefactor     .10000E-03    1.4254        .33625E-06** at limit **
  11  Prefactor     .10000E-03    8.3336       -.18231E-05** at limit **
  12  norm          7.0604        2.1736        .39976E-06   -.31133E-03
  13  Prefactor     12.089        25.430        .33328E-04   -.48979E-04
  14  Prefactor     .10000E-03    3.0440        .17696E-05** at limit **
  15  Prefactor     .10000E-03    82.340        .15179E-05** at limit **
  16  Prefactor     4.7064        4.1522       -.13491E-05   -.74327E-03
  17  Prefactor     3.0743        4.8772        .39677E-05   -.46937E-03
  18  Prefactor     .10000E-03    6.2910        .47098E-06** at limit **
  19  norm          .53446        .30902        .30030E-06   -.26203E-02
  20  norm          .19623E-03    5.2216        .13836E-05** at limit **
  21  Prefactor     19.952        21.650        .89193E-05   -.49664E-04
  22  Prefactor     .10000E-03    20.226        .13872E-05** at limit **
  23  Normalizat    .82389        .25780       -.21659E-04   -.34847E-03
  24  Prefactor     1.2322        .24399       -.61885E-06   -.71614E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.765687
  Prefactor  = 0.0001
  norm       = 11.8322
  norm       = 6.67938
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.9031
  Prefactor  = 12.5702
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.06038
  Prefactor  = 12.0887
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 4.7064
  Prefactor  = 3.0743
  Prefactor  = 0.0001
  norm       = 0.534461
  norm       = 0.000196233
  Prefactor  = 19.9525
  Prefactor  = 0.0001
  Normalizat = 0.823886
  Prefactor  = 1.23225
 **********
 **   18 **HESSE 
 **********

 FCN=   3619.357     FROM HESSE     STATUS=OK           409 CALLS     3183 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .76569        168.60        .49949E-02   -1.5533    
   2  Prefactor     .10000E-03    4.4789        .12407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          11.832        20.996        .11631E-03   -1.5020    
   4  norm          6.6794        15.297        .15509E-03   -1.5191    
   5  Prefactor     .10000E-03    4.1858        .12010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    18.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.3239        .15898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.903        26.048        .10045E-03   -1.4910    
   9  Prefactor     12.570        11.152        .11295E-03   -1.4999    
  10  Prefactor     .10000E-03    1.4433        .13936E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.3595        .16963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.0604        2.1739        .47256E-04   -1.5176    
  13  Prefactor     12.089        25.465        .11510E-03   -1.5012    
  14  Prefactor     .10000E-03    8.2132        .20288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    82.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.7064        4.1113        .98817E-04   -1.5274    
  17  Prefactor     3.0743        4.8208        .14193E-03   -1.5357    
  18  Prefactor     .10000E-03    6.3342        .14717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .53446        .30745        .24027E-04   -1.5562    
  20  norm          .19623E-03    11.461        .44420E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     19.952        21.649        .89666E-04   -1.4814    
  22  Prefactor     .10000E-03    20.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .82389        .29950        .27614E-03   -.99189    
  24  Prefactor     1.2322        .28498        .24740E-03   -.85345    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.39228e-09
Minuit parameter uncertainties:
  1  22.788
  2  3.78451e-05
  3  21.009
  4  15.3056
  5  1.95641e-05
  6  0.000113659
  7  3.93917e-06
  8  26.0666
  9  11.1542
  10  4.26631e-05
  11  7.66793e-05
  12  2.17393
  13  25.4876
  14  6.92268e-05
  15  0.00098935
  16  4.11151
  17  4.82136
  18  8.32518e-05
  19  0.307452
  20  0.0664325
  21  21.6577
  22  7.71443e-05
  23  0.300107
  24  0.285334
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.257e+01  1.115e+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:  1.232e+00  2.853e-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.239e-01  3.001e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.95
Ra Dec: 177.154 18.686
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 4.07e-08 +/- 3.61e-08
Energy Flux (Fixed Index): 1.49e-05 +/- 1.32e-05

TS (Fixed Index): 2.95
Ra Dec: 177.154 18.686
Photon Flux Upper Limit: 1.34e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.03e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/87930/likelihoodResults_488419201_488678401_4FGL_J1148.6+1841_daily_bin961.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) = 3619.16210294
delta logL = 0.194475915685

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3619.16183899
delta logL = 0.194739870456

Fit tolerance = 1e-08

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

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

 FCN=   3619.162     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      265 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.356        640.89        .22789E-02   -.55315E-04
   2  Index         1.9282        5.5674        .18015        .40393E-05
   3  Normalizat    .83625        .13672        .44082E-01    .50167E-04
   4  Prefactor     1.2230        .11618        .56122E-01    .37903E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.3565
  Index      = 1.92816
  Normalizat = 0.836249
  Prefactor  = 1.22304
 **********
 **   18 **HESSE 
 **********

 FCN=   3619.162     FROM HESSE     STATUS=OK            31 CALLS      296 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.356        19.042        .91155E-04   -1.4828    
   2  Index         1.9282        .59264        .65984E-02   -.66158    
   3  Normalizat    .83625        .26005        .27426E-03   -.98738    
   4  Prefactor     1.2230        .28024        .24816E-03   -.85625    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62115e-11
Minuit parameter uncertainties:
  1  19.048
  2  0.594891
  3  0.260442
  4  0.280583
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/87930': 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) = 3619.16182307
delta logL = 0.194755792629

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.936e+01  1.905e+01  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  1.928e+00  5.949e-01  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.223e+00  2.806e-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.362e-01  2.604e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.34
Ra Dec: 177.154 18.686
Photon Index (Free Index): 1.93 +/- 0.59
Photon Flux (Free Index): 3.18e-08 +/- 3.27e-08
Energy Flux (Free Index): 2.65e-05 +/- 3.72e-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/87930/cmap_HighResolution_488419201_488678401_4FGL_J1148.6+1841_daily_bin961.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', comment='SUCCESS', photon_flux='4.07e-08', energy_flux2='2.65e-05', photon_flux_error='3.61e-08', dlogl='1.95e-01', energy_flux='1.49e-05', photon_flux2='3.18e-08', job_status='DONE', time_completed='2021-09-04 12:11:22.337840', photon_index_error2='0.59', photon_index2='1.93', ts='2.95', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', photon_flux_upper_limit='1.34e-07', energy_flux_error2='3.72e-05', EG='0.82', time_epoch_completed='1630782682.34', return_code='0', job_id='87930', GAL2='1.22', EG2='0.84', return_code2='0', energy_flux_error='1.32e-05', photon_flux_error2='3.27e-08', ts2='3.34', photon_index='2.32' WHERE bin_id='961' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:11:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0174>
Subject: Job 87930: <4FGL_J1148.6+1841_daily_bin961> in cluster <slac> Done

Job <4FGL_J1148.6+1841_daily_bin961> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 12:01:39 2021
Job was executed on host(s) <bullet0174>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:01:40 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:40 2021
Terminated at Sat Sep  4 12:11:23 2021
Results reported at Sat Sep  4 12:11:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin961 177.154 18.6861 488419201 488678401 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 :                                   566.50 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   582 sec.
    Turnaround time :                            584 sec.

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

