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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin1324
RA = 177.154, Dec = 18.6861
tmin = 582508801, tmax = 582768001
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='89740', job_status='RUN', time_executed='2021-09-04 12:09:57.554109', time_epoch_executed='1630782597.55' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='1324'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/89740

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/89740/ft1_4FGL_J1148.6+1841_daily_bin1324.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/89740/ft2_4FGL_J1148.6+1841_daily_bin1324.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/89740/ft1_4FGL_J1148.6+1841_daily_bin1324.fits outfile=/scratch/kocevski/89740/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1324.fits ra=177.154 dec=18.6861 rad=12.0 tmin=582508801.0 tmax=582768001.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.67
user 3.44
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/89740/ft1_filtered_4FGL_J1148.6+1841_daily_bin1324.fits" evtable="EVENTS" scfile=/scratch/kocevski/89740/ft2_4FGL_J1148.6+1841_daily_bin1324.fits sctable="SC_DATA" outfile=/scratch/kocevski/89740/ltcube_582508801_582768001_4FGL_J1148.6+1841_daily_bin1324.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/89740/ft2_4FGL_J1148.6+1841_daily_bin1324.fits
.....................!
real 14.22
user 13.84
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/89740/ft1_filtered_4FGL_J1148.6+1841_daily_bin1324.fits evtable="EVENTS" scfile=/scratch/kocevski/89740/ft2_4FGL_J1148.6+1841_daily_bin1324.fits sctable="SC_DATA" expcube=/scratch/kocevski/89740/ltcube_582508801_582768001_4FGL_J1148.6+1841_daily_bin1324.fits outfile=/scratch/kocevski/89740/expmap_582508801_582768001_4FGL_J1148.6+1841_daily_bin1324.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/89740/ltcube_582508801_582768001_4FGL_J1148.6+1841_daily_bin1324.fits
.....................!
real 190.16
user 185.96
sys 3.85

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/89740/ft1_filtered_4FGL_J1148.6+1841_daily_bin1324.fits scfile=/scratch/kocevski/89740/ft2_4FGL_J1148.6+1841_daily_bin1324.fits outfile=/scratch/kocevski/89740/cmap_582508801_582768001_4FGL_J1148.6+1841_daily_bin1324.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.54
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.403       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10244E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    12.105       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12108E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.417       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.3255       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.440       1.0000         .10000E-03   10000.    
    12 'norm      '    1.4942       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .30148E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.3638       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9379       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15475E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .44714E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    27.602       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.8961       1.0000         .10000E-03   10000.    
    22 'Prefactor '    53.347       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1894       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .88133       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=   6138.635     FROM MIGRAD    STATUS=CONVERGED   1013 CALLS     3305 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.409        22.652        .71501E-04   -.94033E-04
   2  Prefactor     .10000E-03    2.5246        .12138E-02** at limit **
   3  norm          .10000E-03    14.726        .18142E-02** at limit **
   4  norm          12.103        14.281        .11514E-03    .91336E-04
   5  Prefactor     .10000E-03    5.0012        .17056E-02** at limit **
   6  Prefactor     .10000E-03    20.121        .18142E-02** at limit **
   7  Prefactor     .10000E-03    14.953        .18142E-02** at limit **
   8  Prefactor     16.399        22.128        .98850E-04    .89132E-04
   9  Prefactor     .10000E-03    10.998        .18142E-02** at limit **
  10  Prefactor     3.3254        2.0191        .80961E-04    .12722E-03
  11  Prefactor     14.461        12.922        .10540E-03    .71510E-04
  12  norm          1.4927        1.6204        .98183E-04    .54537E-04
  13  Prefactor     .10009E-03    98.995        .62514E-02** at limit **
  14  Prefactor     4.3639        3.8604        .13803E-03    .16538E-03
  15  Prefactor     1.3864        2252.3        .29827E-02   -.14107E-04
  16  Prefactor     .10000E-03    4.3877        .21875E-02** at limit **
  17  Prefactor     .10000E-03    1.5243        .93549E-03** at limit **
  18  Prefactor     .10001E-03    15.294        .30407E-02** at limit **
  19  norm          .44742E-01    .15902        .53398E-03   -.20580E-02
  20  norm          27.585        8.9221        .38127E-03   -.58295E-04
  21  Prefactor     2.9457        27.487        .23878E-03   -.20311E-03
  22  Prefactor     53.292        54.508        .27457E-03   -.48858E-04
  23  Normalizat    1.1897        .23730        .24950E-03    .23879E-03
  24  Prefactor     .88126        .21990        .28114E-03    .34095E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.4093
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 12.1029
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.3989
  Prefactor  = 0.0001
  Prefactor  = 3.32543
  Prefactor  = 14.4606
  norm       = 1.49274
  Prefactor  = 0.000100086
  Prefactor  = 4.36394
  Prefactor  = 1.38642
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  norm       = 0.0447418
  norm       = 27.5846
  Prefactor  = 2.94575
  Prefactor  = 53.2921
  Normalizat = 1.18966
  Prefactor  = 0.881257
 **********
 **   18 **HESSE 
 **********

 FCN=   6138.635     FROM HESSE     STATUS=OK           375 CALLS     3680 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.409        22.649        .14300E-04   -1.4586    
   2  Prefactor     .10000E-03    2.5247        .24277E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    14.733        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          12.103        14.275        .46054E-05   -1.5012    
   5  Prefactor     .10000E-03    5.0023        .34111E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.122        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.956        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.399        22.125        .39540E-05   -1.4898    
   9  Prefactor     .10000E-03    11.007        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.3254        2.0189        .32384E-05   -1.5343    
  11  Prefactor     14.461        12.759        .42161E-05   -1.4947    
  12  norm          1.4927        1.6199        .39273E-05   -1.5464    
  13  Prefactor     .10009E-03    99.525        .12503E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.3639        3.8596        .55213E-05   -1.5290    
  15  Prefactor     1.3864        2163.3        .11931E-03   -1.5472    
  16  Prefactor     .10000E-03    4.4068        .43749E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.5246        .18710E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    15.473        .60813E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .44742E-01    .15866        .21359E-04   -1.5666    
  20  norm          27.585        8.9088        .15251E-04   -1.4657    
  21  Prefactor     2.9457        27.444        .95513E-05   -1.5365    
  22  Prefactor     53.292        54.468        .10983E-04   -1.4247    
  23  Normalizat    1.1897        .23701        .49900E-04   -.86923    
  24  Prefactor     .88126        .22009        .56229E-04   -.96799    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.42079e-09
Minuit parameter uncertainties:
  1  22.6551
  2  6.71507e-06
  3  6.03625e-05
  4  14.2793
  5  4.30949e-06
  6  2.75302e-05
  7  7.15104e-05
  8  22.1357
  9  1.73163e-05
  10  2.01892
  11  12.7619
  12  1.61997
  13  0.00587648
  14  3.85979
  15  113.929
  16  0.000183625
  17  2.34173e-05
  18  0.000742844
  19  0.158665
  20  8.90927
  21  17.9931
  22  54.5193
  23  0.237227
  24  0.220311
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  1.732e-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.813e-01  2.203e-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.190e+00  2.372e-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: 6.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/89740/likelihoodResults_582508801_582768001_4FGL_J1148.6+1841_daily_bin1324.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) = 6138.63561845
delta logL = -0.00043335519058

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6138.63518456
delta logL = 5.35880644748e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10402E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2585       1.0000          .0000       10.000    
     3 'Normalizat'    1.1896       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88127       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=   6138.635     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      257 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10928E-03    55.490        .36285E-02** at limit **
   2  Index         2.1254        5.5664        .50000        .31630E-04
   3  Normalizat    1.1897        .81937E-02    .24950E-03    .93867E-05
   4  Prefactor     .88125        .81204E-02    .28114E-03    .17024E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010928
  Index      = 2.12544
  Normalizat = 1.18966
  Prefactor  = 0.881255
 **********
 **   18 **HESSE 
 **********

 FCN=   6138.635     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      286 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10928E-03    258.45        .72569E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1254        6.9050        .50000       -.61250    
   3  Normalizat    1.1897        .17906E-01    .99799E-05   -.86923    
   4  Prefactor     .88125        .17746E-01    .11246E-04   -.96799    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.58124e-08
Minuit parameter uncertainties:
  1  0.0983753
  2  330.889
  3  0.0179058
  4  0.0177458
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/89740': 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) = 6138.63518352
delta logL = 1.57835620485e-06

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.093e-04  9.838e-02  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.125e+00  3.309e+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:  8.813e-01  1.775e-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.190e+00  1.791e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/89740/cmap_HighResolution_582508801_582768001_4FGL_J1148.6+1841_daily_bin1324.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.36e-03', job_status='DONE', photon_flux_upper_limit='6.98e-08', time_completed='2021-09-04 12:22:01.488004', job_id='89740', GAL2='0.88', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1630783321.49', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='1.58e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1324' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:22:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 89740: <4FGL_J1148.6+1841_daily_bin1324> in cluster <slac> Done

Job <4FGL_J1148.6+1841_daily_bin1324> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 12:06:45 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:06:47 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:06:47 2021
Terminated at Sat Sep  4 12:22:02 2021
Results reported at Sat Sep  4 12:22:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin1324 177.154 18.6861 582508801 582768001 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 :                                   720.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             305.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            917 sec.

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

