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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin52
RA = 177.154, Dec = 18.6861
tmin = 252806401, tmax = 253065601
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='82739', job_status='RUN', time_executed='2021-09-04 11:49:06.837337', time_epoch_executed='1630781346.84' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='52'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/82739

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/82739/ft1_4FGL_J1148.6+1841_daily_bin52.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/82739/ft2_4FGL_J1148.6+1841_daily_bin52.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/82739/ft1_4FGL_J1148.6+1841_daily_bin52.fits outfile=/scratch/kocevski/82739/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin52.fits ra=177.154 dec=18.6861 rad=12.0 tmin=252806401.0 tmax=253065601.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.45
user 1.27
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/82739/ft2_4FGL_J1148.6+1841_daily_bin52.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/82739/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin52.fits evtable="EVENTS" outfile="/scratch/kocevski/82739/ft1_filtered_4FGL_J1148.6+1841_daily_bin52.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.53
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/82739/ft1_filtered_4FGL_J1148.6+1841_daily_bin52.fits" evtable="EVENTS" scfile=/scratch/kocevski/82739/ft2_4FGL_J1148.6+1841_daily_bin52.fits sctable="SC_DATA" outfile=/scratch/kocevski/82739/ltcube_252806401_253065601_4FGL_J1148.6+1841_daily_bin52.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/82739/ft2_4FGL_J1148.6+1841_daily_bin52.fits
.....................!
real 15.40
user 14.88
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/82739/ft1_filtered_4FGL_J1148.6+1841_daily_bin52.fits evtable="EVENTS" scfile=/scratch/kocevski/82739/ft2_4FGL_J1148.6+1841_daily_bin52.fits sctable="SC_DATA" expcube=/scratch/kocevski/82739/ltcube_252806401_253065601_4FGL_J1148.6+1841_daily_bin52.fits outfile=/scratch/kocevski/82739/expmap_252806401_253065601_4FGL_J1148.6+1841_daily_bin52.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/82739/ltcube_252806401_253065601_4FGL_J1148.6+1841_daily_bin52.fits
.....................!
real 193.47
user 187.42
sys 5.25

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/82739/ft1_filtered_4FGL_J1148.6+1841_daily_bin52.fits scfile=/scratch/kocevski/82739/ft2_4FGL_J1148.6+1841_daily_bin52.fits outfile=/scratch/kocevski/82739/cmap_252806401_253065601_4FGL_J1148.6+1841_daily_bin52.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/82739/ft1_filtered_4FGL_J1148.6+1841_daily_bin52.fits scfile=/scratch/kocevski/82739/ft2_4FGL_J1148.6+1841_daily_bin52.fits outfile=/scratch/kocevski/82739/cmap_HighResolution_252806401_253065601_4FGL_J1148.6+1841_daily_bin52.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.535       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .96309       1.0000         .10000E-03   10000.    
     3 'norm      '    3.0639       1.0000         .10000E-03   10000.    
     4 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.6688       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.741       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.2173       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.7033       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.6174       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.5324       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .31084       1.0000         .10000E-03   10000.    
    20 'norm      '    2.1069       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12309E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    42.533       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1525       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .92398       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=   7373.508     FROM MIGRAD    STATUS=CONVERGED    554 CALLS     2347 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.533        11.545       -.16599E-06   -.47285E-05
   2  Prefactor     .96218        8.4588        .24129E-06   -.18329E-03
   3  norm          3.0637        2.6615        .17439E-06   -.11583E-02
   4  norm          .10000E-03    9.7901       -.14700E-05** at limit **
   5  Prefactor     6.6587        11.709       -.12999E-05   -.36194E-04
   6  Prefactor     .10000E-03    11.010        .39137E-05** at limit **
   7  Prefactor     .10000E-03    11.902       -.22431E-05** at limit **
   8  Prefactor     19.735        17.044       -.18476E-06    .12476E-04
   9  Prefactor     .10000E-03    2.1353        .14921E-06** at limit **
  10  Prefactor     .10000E-03    .73386       -.50124E-07** at limit **
  11  Prefactor     .10000E-03    7.2110       -.16830E-06** at limit **
  12  norm          4.2170        1.4488        .15602E-07    .29560E-04
  13  Prefactor     5.7002        12.291       -.10275E-06   -.16727E-04
  14  Prefactor     .10000E-03    1.3668        .97030E-07** at limit **
  15  Prefactor     .10000E-03    36.998        .13715E-05** at limit **
  16  Prefactor     2.6169        2.0609       -.18375E-07   -.33270E-04
  17  Prefactor     1.5321        1.5238       -.20617E-07    .77722E-05
  18  Prefactor     .10000E-03    3.1879        .74111E-08** at limit **
  19  norm          .31079        .22988       -.65732E-08   -.27779E-03
  20  norm          2.1081        4.2841       -.13310E-06   -.11712E-03
  21  Prefactor     .10000E-03    51.184       -.63779E-06** at limit **
  22  Prefactor     42.535        33.495        .27205E-05    .35498E-04
  23  Normalizat    1.1529        .16800       -.25549E-07    .26024E-04
  24  Prefactor     .92363        .16547        .86690E-07    .17373E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.5328
  Prefactor  = 0.962178
  norm       = 3.06375
  norm       = 0.0001
  Prefactor  = 6.65874
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.7348
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.21697
  Prefactor  = 5.70024
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.6169
  Prefactor  = 1.53211
  Prefactor  = 0.0001
  norm       = 0.310795
  norm       = 2.10813
  Prefactor  = 0.000100002
  Prefactor  = 42.535
  Normalizat = 1.15291
  Prefactor  = 0.923627
 **********
 **   18 **HESSE 
 **********

 FCN=   7373.508     FROM HESSE     STATUS=OK           401 CALLS     2748 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.533        11.542        .11314E-03   -1.5000    
   2  Prefactor     .96218        9.5748        .47833E-03   -1.5512    
   3  norm          3.0637        5.0264        .11588E-02   -1.5358    
   4  norm          .10000E-03    9.9474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.6587        11.518        .15539E-03   -1.5192    
   6  Prefactor     .10000E-03    10.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     19.735        17.115        .90145E-04   -1.4819    
   9  Prefactor     .10000E-03    2.1386        .12254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .75909        .14335E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.2897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.2170        1.4492        .58011E-04   -1.5297    
  13  Prefactor     5.7002        12.299        .16819E-03   -1.5230    
  14  Prefactor     .10000E-03    1.3901        .97972E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    37.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.6169        2.0586        .10396E-03   -1.5384    
  17  Prefactor     1.5321        1.5317        .10150E-03   -1.5460    
  18  Prefactor     .10000E-03    3.2657        .29916E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .31079        .22204        .33366E-03   -1.5596    
  20  norm          2.1081        4.2796        .24593E-03   -1.5418    
  21  Prefactor     .10000E-03    52.667        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     42.535        33.478        .61469E-04   -1.4403    
  23  Normalizat    1.1529        .20073        .23689E-03   -.88071    
  24  Prefactor     .92363        .19663        .26728E-03   -.95320    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71642e-09
Minuit parameter uncertainties:
  1  11.5439
  2  6.07142
  3  5.02706
  4  2.38228e-06
  5  11.5218
  6  3.10178e-05
  7  1.07639e-05
  8  17.1192
  9  7.59123e-07
  10  6.10094e-07
  11  2.28822e-06
  12  1.44917
  13  12.3045
  14  5.78972e-08
  15  1.7317e-05
  16  2.05861
  17  1.53174
  18  1.20274e-06
  19  0.222036
  20  4.28023
  21  0.000630953
  22  33.4926
  23  0.20086
  24  0.196783
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  7.591e-07  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:  9.236e-01  1.968e-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.153e+00  2.009e-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: 3.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/82739/likelihoodResults_252806401_253065601_4FGL_J1148.6+1841_daily_bin52.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7373.50990952
delta logL = -0.00219861747246

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7373.50771033
delta logL = 5.66844391869e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2940       1.0000          .0000       10.000    
     3 'Normalizat'    1.1529       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92367       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=   7373.508     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      239 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10312E-03    2.3442        .12671E-01** at limit **
   2  Index         2.2052        5.0513        .50000        .91605E-04
   3  Normalizat    1.1529        .39396E-02    .23689E-03    .11340E-03
   4  Prefactor     .92363        .40478E-02    .26728E-03   -.42024E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103124
  Index      = 2.20522
  Normalizat = 1.15291
  Prefactor  = 0.923625
 **********
 **   18 **HESSE 
 **********

 FCN=   7373.508     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .52E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10312E-03    29.993        .13084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2052        6.0800        .50000       -.59313    
   3  Normalizat    1.1529        .14246E-01    .94758E-05   -.88071    
   4  Prefactor     .92363        .14638E-01    .10691E-04   -.95320    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.23295e-08
Minuit parameter uncertainties:
  1  0.0193706
  2  185.845
  3  0.0142463
  4  0.0146377
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/82739': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7373.50770865
delta logL = 2.24966970563e-06

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.031e-04  1.937e-02  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.205e+00  1.858e+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:  9.236e-01  1.464e-02  0.000e+00  1.000e+01 ( 1.000e+00)
591        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
592        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
589   Normalization:  1.153e+00  1.425e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/82739/cmap_HighResolution_252806401_253065601_4FGL_J1148.6+1841_daily_bin52.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.83e-03', job_status='DONE', photon_flux_upper_limit='3.68e-08', time_completed='2021-09-04 12:01:31.983740', job_id='82739', GAL2='0.92', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1630782091.98', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='2.25e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='52' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:01:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 82739: <4FGL_J1148.6+1841_daily_bin52> in cluster <slac> Done

Job <4FGL_J1148.6+1841_daily_bin52> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 11:46:09 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 11:46:12 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:12 2021
Terminated at Sat Sep  4 12:01:32 2021
Results reported at Sat Sep  4 12:01:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin52 177.154 18.6861 252806401 253065601 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 :                                   738.20 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             288.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            923 sec.

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

