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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin22
RA = 177.154, Dec = 18.6861
tmin = 245030401, tmax = 245289601
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='81587', job_status='RUN', time_executed='2021-09-04 11:44:48.300247', time_epoch_executed='1630781088.3' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='22'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/81587

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/81587/ft1_4FGL_J1148.6+1841_daily_bin22.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/81587/ft2_4FGL_J1148.6+1841_daily_bin22.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/81587/ft1_4FGL_J1148.6+1841_daily_bin22.fits outfile=/scratch/kocevski/81587/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin22.fits ra=177.154 dec=18.6861 rad=12.0 tmin=245030401.0 tmax=245289601.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.44
user 1.26
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/81587/ft1_filtered_4FGL_J1148.6+1841_daily_bin22.fits evtable="EVENTS" scfile=/scratch/kocevski/81587/ft2_4FGL_J1148.6+1841_daily_bin22.fits sctable="SC_DATA" expcube=/scratch/kocevski/81587/ltcube_245030401_245289601_4FGL_J1148.6+1841_daily_bin22.fits outfile=/scratch/kocevski/81587/expmap_245030401_245289601_4FGL_J1148.6+1841_daily_bin22.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/81587/ltcube_245030401_245289601_4FGL_J1148.6+1841_daily_bin22.fits
.....................!
real 190.92
user 185.94
sys 4.56

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/81587/ft1_filtered_4FGL_J1148.6+1841_daily_bin22.fits scfile=/scratch/kocevski/81587/ft2_4FGL_J1148.6+1841_daily_bin22.fits outfile=/scratch/kocevski/81587/cmap_245030401_245289601_4FGL_J1148.6+1841_daily_bin22.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/81587/ft1_filtered_4FGL_J1148.6+1841_daily_bin22.fits scfile=/scratch/kocevski/81587/ft2_4FGL_J1148.6+1841_daily_bin22.fits outfile=/scratch/kocevski/81587/cmap_HighResolution_245030401_245289601_4FGL_J1148.6+1841_daily_bin22.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.55
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.4597       1.0000         .10000E-03   10000.    
     3 'norm      '    16.809       1.0000         .10000E-03   10000.    
     4 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.0383       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .25389E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.0278       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.069       1.0000         .10000E-03   10000.    
    12 'norm      '    .96747       1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.765       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10496E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.8292       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.4604       1.0000         .10000E-03   10000.    
    19 'norm      '    .60525       1.0000         .10000E-03   10000.    
    20 'norm      '    2.8081       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10945E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    82.661       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .97018       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .85225       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=   5001.603     FROM MIGRAD    STATUS=CONVERGED    538 CALLS     2785 TOTAL
                     EDM=   .90E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.374        .18435E-06** at limit **
   2  Prefactor     8.4574        9.8310        .38793E-06    .47387E-04
   3  norm          16.808        11.621       -.53789E-07    .29317E-05
   4  norm          .10000E-03    5.3721       -.23997E-06** at limit **
   5  Prefactor     2.0385        9.8227       -.29350E-05    .22501E-04
   6  Prefactor     .10000E-03    14.722       -.30689E-07** at limit **
   7  Prefactor     .10000E-03    6.5487       -.54996E-07** at limit **
   8  Prefactor     .10000E-03    14.848       -.17862E-06** at limit **
   9  Prefactor     .10000E-03    32.632        .30557E-05** at limit **
  10  Prefactor     5.0278        2.2241       -.47858E-07    .79071E-04
  11  Prefactor     11.068        12.074       -.16413E-06   -.30480E-05
  12  norm          .96785        1.1512       -.31879E-06   -.12460E-03
  13  Prefactor     17.762        17.531       -.30960E-07   -.42252E-05
  14  Prefactor     .10000E-03    2.5922        .31674E-07** at limit **
  15  Prefactor     .10000E-03    59.925        .78273E-07** at limit **
  16  Prefactor     2.8287        2.1610       -.26397E-07   -.27218E-04
  17  Prefactor     .10000E-03    .97114        .21539E-06** at limit **
  18  Prefactor     3.4604        3.5678        .43384E-07   -.30207E-04
  19  norm          .60517        .25292       -.22235E-09   -.25752E-04
  20  norm          2.8080        3.2633        .27100E-07    .17827E-04
  21  Prefactor     .10000E-03    5.5478        .10412E-05** at limit **
  22  Prefactor     82.638        45.236        .61964E-06    .43466E-04
  23  Normalizat    .97043        .18846        .74955E-07    .37528E-04
  24  Prefactor     .85198        .18923        .41706E-06    .69896E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.45743
  norm       = 16.8084
  norm       = 0.0001
  Prefactor  = 2.03846
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.02784
  Prefactor  = 11.0679
  norm       = 0.967854
  Prefactor  = 17.7623
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.82871
  Prefactor  = 0.0001
  Prefactor  = 3.46035
  norm       = 0.605167
  norm       = 2.80799
  Prefactor  = 0.0001
  Prefactor  = 82.6377
  Normalizat = 0.97043
  Prefactor  = 0.851981
 **********
 **   18 **HESSE 
 **********

 FCN=   5001.603     FROM HESSE     STATUS=OK           403 CALLS     3188 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.4574        9.8001        .13783E-03   -1.5126    
   3  norm          16.808        11.619        .97690E-04   -1.4888    
   4  norm          .10000E-03    5.4123        .16010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.0385        9.7766        .28968E-03   -1.5422    
   6  Prefactor     .10000E-03    14.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.5555        .17676E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    32.224        .39087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.0278        2.2252        .67098E-04   -1.5259    
  11  Prefactor     11.068        12.062        .12042E-03   -1.5042    
  12  norm          .96785        1.1199        .80442E-03   -1.5511    
  13  Prefactor     17.762        17.525        .95025E-04   -1.4865    
  14  Prefactor     .10000E-03    2.6572        .22201E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    59.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.8287        2.1564        .87569E-04   -1.5372    
  17  Prefactor     .10000E-03    .97669        .67918E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.4604        3.5704        .13186E-03   -1.5336    
  19  norm          .60517        .25204        .21983E-04   -1.5552    
  20  norm          2.8080        3.2609        .13397E-03   -1.5373    
  21  Prefactor     .10000E-03    5.5220        .16225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     82.638        45.315        .44179E-04   -1.3887    
  23  Normalizat    .97043        .21481        .23750E-03   -.94028    
  24  Prefactor     .85198        .21644        .26082E-03   -.97840    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.12498e-10
Minuit parameter uncertainties:
  1  2.09348e-05
  2  9.80194
  3  11.6204
  4  6.818e-06
  5  8.93058
  6  9.44596e-07
  7  1.63586e-06
  8  1.41713e-06
  9  4.05081e-05
  10  2.22519
  11  12.0646
  12  1.11992
  13  17.5305
  14  5.08379e-07
  15  2.36867e-05
  16  2.15644
  17  1.6669e-06
  18  3.57059
  19  0.252041
  20  3.26111
  21  1.57798e-07
  22  45.3338
  23  0.215002
  24  0.216653
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  4.051e-05  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:  8.520e-01  2.167e-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:  9.704e-01  2.150e-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: 7.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/81587/likelihoodResults_245030401_245289601_4FGL_J1148.6+1841_daily_bin22.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) = 5001.60312866
delta logL = -0.000146465277794

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5001.6029828
delta logL = -6.02391082793e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16374E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4329       1.0000          .0000       10.000    
     3 'Normalizat'    .97072       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85169       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=   5001.589     FROM MIGRAD    STATUS=CONVERGED    122 CALLS      291 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38448        19.354        .32696E-01    .83523E-03
   2  Index         3.1693        2.9576        .23779       -.44301E-05
   3  Normalizat    .96351        .14909E-01    .45799E-01   -.50947E-03
   4  Prefactor     .85447        .15524E-01    .44386E-01   -.67512E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.384476
  Index      = 3.16935
  Normalizat = 0.963513
  Prefactor  = 0.854472
 **********
 **   18 **HESSE 
 **********

 FCN=   5001.589     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      322 TOTAL
                     EDM=   .45E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .38448        640.19        .18657E-02   -1.5584    
   2  Index         3.1693        6.0643        .14602E-01   -.37485    
   3  Normalizat    .96351        .12970        .23829E-03   -.94263    
   4  Prefactor     .85447        .13539        .26049E-03   -.97751    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.53982e-06
Minuit parameter uncertainties:
  1  31.719
  2  31.7423
  3  0.129744
  4  0.135447
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/81587': 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) = 5001.58898388
delta logL = 0.0139983186773

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  3.845e-01  3.172e+01  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  3.169e+00  3.174e+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:  8.545e-01  1.354e-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:  9.635e-01  1.297e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/81587/cmap_HighResolution_245030401_245289601_4FGL_J1148.6+1841_daily_bin22.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.09e-03', job_status='DONE', photon_flux_upper_limit='7.92e-08', time_completed='2021-09-04 11:55:30.438180', job_id='81587', GAL2='0.85', fit_tolerance='1e-08', EG2='0.96', EG='0.97', time_epoch_completed='1630781730.44', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='1.40e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='22' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:55:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 81587: <4FGL_J1148.6+1841_daily_bin22> in cluster <slac> Done

Job <4FGL_J1148.6+1841_daily_bin22> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 11:42:12 2021
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 11:42:14 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:42:14 2021
Terminated at Sat Sep  4 11:55:33 2021
Results reported at Sat Sep  4 11:55:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin22 177.154 18.6861 245030401 245289601 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 :                                   628.13 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             275.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            801 sec.

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

