/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 1 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7374
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1148.6+1841_daily_bin1480
RA = 177.154, Dec = 18.6861
tmin = 622944001, tmax = 623203201
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='89953', job_status='RUN', time_executed='2021-09-04 12:07:14.767762', time_epoch_executed='1630782434.77' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='1480'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/89953

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/89953/ft1_4FGL_J1148.6+1841_daily_bin1480.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/89953/ft2_4FGL_J1148.6+1841_daily_bin1480.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/89953/ft1_4FGL_J1148.6+1841_daily_bin1480.fits outfile=/scratch/kocevski/89953/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1480.fits ra=177.154 dec=18.6861 rad=12.0 tmin=622944001.0 tmax=623203201.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.01
user 2.79
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/89953/ft1_filtered_4FGL_J1148.6+1841_daily_bin1480.fits" evtable="EVENTS" scfile=/scratch/kocevski/89953/ft2_4FGL_J1148.6+1841_daily_bin1480.fits sctable="SC_DATA" outfile=/scratch/kocevski/89953/ltcube_622944001_623203201_4FGL_J1148.6+1841_daily_bin1480.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/89953/ft2_4FGL_J1148.6+1841_daily_bin1480.fits
.....................!
real 15.94
user 15.58
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/89953/ft1_filtered_4FGL_J1148.6+1841_daily_bin1480.fits evtable="EVENTS" scfile=/scratch/kocevski/89953/ft2_4FGL_J1148.6+1841_daily_bin1480.fits sctable="SC_DATA" expcube=/scratch/kocevski/89953/ltcube_622944001_623203201_4FGL_J1148.6+1841_daily_bin1480.fits outfile=/scratch/kocevski/89953/expmap_622944001_623203201_4FGL_J1148.6+1841_daily_bin1480.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/89953/ltcube_622944001_623203201_4FGL_J1148.6+1841_daily_bin1480.fits
.....................!
real 190.09
user 184.99
sys 4.66

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/89953/ft1_filtered_4FGL_J1148.6+1841_daily_bin1480.fits scfile=/scratch/kocevski/89953/ft2_4FGL_J1148.6+1841_daily_bin1480.fits outfile=/scratch/kocevski/89953/cmap_622944001_623203201_4FGL_J1148.6+1841_daily_bin1480.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.55
user 0.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.7738       1.0000         .10000E-03   10000.    
     3 'norm      '    .69366E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    6.1243       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.119       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.872       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7141       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.6437       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .29381       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.2803       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.6379       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .79653       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12722E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    31.380       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3794       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .95579       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=   7234.560     FROM MIGRAD    STATUS=CONVERGED    575 CALLS     2787 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.7999        .96568E-07** at limit **
   2  Prefactor     2.7694        4.4816       -.24330E-07   -.34747E-04
   3  norm          .10000E-03    61.606        .84526E-05** at limit **
   4  norm          6.1248        7.4121       -.70318E-06   -.29371E-03
   5  Prefactor     15.118        11.539        .18165E-07    .18152E-05
   6  Prefactor     12.924        50.082        .38942E-05    .19651E-04
   7  Prefactor     .10000E-03    13.417        .31350E-06** at limit **
   8  Prefactor     .10000E-03    11.532        .32090E-06** at limit **
   9  Prefactor     .10000E-03    13.758        .44585E-06** at limit **
  10  Prefactor     1.7139        1.3846        .59761E-08   -.99246E-04
  11  Prefactor     .10000E-03    5.9763        .11779E-06** at limit **
  12  norm          3.6434        1.1629       -.92084E-09   -.13592E-03
  13  Prefactor     .10000E-03    8.5367        .20396E-06** at limit **
  14  Prefactor     .28847        2.7153        .86917E-06   -.11299E-03
  15  Prefactor     .10000E-03    38.535       -.20640E-06** at limit **
  16  Prefactor     .10000E-03    1.6717        .31595E-06** at limit **
  17  Prefactor     1.2799        1.8937       -.59302E-07   -.37901E-03
  18  Prefactor     3.6380        3.9526       -.42748E-06   -.30908E-03
  19  norm          .10000E-03    .11437        .15016E-06** at limit **
  20  norm          .79716        2.3835        .71887E-06    .59607E-04
  21  Prefactor     .10000E-03    10.665        .69656E-06** at limit **
  22  Prefactor     31.327        40.987       -.15188E-05    .16793E-04
  23  Normalizat    1.3795        .19083        .13353E-06   -.51157E-03
  24  Prefactor     .95574        .18429       -.16508E-05   -.18976E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.76937
  norm       = 0.000100003
  norm       = 6.12483
  Prefactor  = 15.1184
  Prefactor  = 12.9242
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.7139
  Prefactor  = 0.0001
  norm       = 3.64342
  Prefactor  = 0.0001
  Prefactor  = 0.288473
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.27992
  Prefactor  = 3.63796
  norm       = 0.0001
  norm       = 0.797162
  Prefactor  = 0.0001
  Prefactor  = 31.3274
  Normalizat = 1.37952
  Prefactor  = 0.955743
 **********
 **   18 **HESSE 
 **********

 FCN=   7234.560     FROM HESSE     STATUS=OK           409 CALLS     3196 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.8139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.7694        4.4615        .22071E-03   -1.5375    
   3  norm          .10000E-03    62.804        .49897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.1248        7.4021        .81115E-03   -1.5213    
   5  Prefactor     15.118        11.547        .10301E-03   -1.4930    
   6  Prefactor     12.924        49.847        .11165E-03   -1.4989    
   7  Prefactor     .10000E-03    13.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.7139        1.3862        .86293E-04   -1.5446    
  11  Prefactor     .10000E-03    5.9886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.6434        1.1651        .49931E-04   -1.5326    
  13  Prefactor     .10000E-03    8.5479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .28847        17.912        .22956E-02   -1.5601    
  15  Prefactor     .10000E-03    38.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.9254        .20242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.2799        1.8481        .13694E-03   -1.5482    
  18  Prefactor     3.6380        3.9373        .16924E-03   -1.5326    
  19  norm          .10000E-03    .15401        .54217E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .79716        2.2686        .22309E-02   -1.5529    
  21  Prefactor     .10000E-03    10.692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     31.327        40.550        .71528E-04   -1.4588    
  23  Normalizat    1.3795        .22006        .24654E-03   -.81223    
  24  Prefactor     .95574        .20647        .29188E-03   -.94220    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74585e-08
Minuit parameter uncertainties:
  1  5.37255e-06
  2  4.46206
  3  0.000819815
  4  7.40317
  5  11.5483
  6  50.0079
  7  2.35021e-05
  8  1.82601e-05
  9  1.55234e-05
  10  1.38624
  11  4.48427e-06
  12  1.16511
  13  3.76049e-06
  14  4.54685
  15  4.18205e-05
  16  9.09271e-05
  17  1.84819
  18  3.93761
  19  2.88117e-06
  20  2.2688
  21  9.74647e-05
  22  40.5859
  23  0.220214
  24  0.206641
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  1.552e-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:  9.557e-01  2.066e-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.380e+00  2.202e-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: 8.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/89953/likelihoodResults_622944001_623203201_4FGL_J1148.6+1841_daily_bin1480.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) = 7234.5607342
delta logL = -0.000341959470461

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7234.56039202
delta logL = 2.20448782784e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3627       1.0000          .0000       10.000    
     3 'Normalizat'    1.3795       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95573       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7234.560     FROM MIGRAD    STATUS=FAILED        91 CALLS      253 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1405.2        .18142E-02** at limit **
   2  Index         2.4070        7.8663        .50000       -.27473E-04
   3  Normalizat    1.3795        .49068E-01    .24655E-03   -.63019E-03
   4  Prefactor     .95574        .49646E-01    .29188E-03   -.12020E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7234.560     FROM SIMPLEX   STATUS=UNCHANGED    180 CALLS      433 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1405.2        .59859E-03** at limit **
   2  Index         2.4070        7.8663        .50808E-05   -.27473E-04
   3  Normalizat    1.3795        .49068E-01    .86906E-07   -.63019E-03
   4  Prefactor     .95574        .49646E-01    .47625E-07   -.12020E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7234.560     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      467 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    455.45        .36285E-03** at limit **
   2  Index         2.4072        7.2501        .50000       -.27482E-04
   3  Normalizat    1.3795        .20153        .49309E-04   -.63501E-03
   4  Prefactor     .95574        .20390        .11675E-04   -.12425E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100012
  Index      = 2.40724
  Normalizat = 1.37952
  Prefactor  = 0.955745
 **********
 **   18 **HESSE 
 **********

 FCN=   7234.560     FROM HESSE     STATUS=OK            29 CALLS      496 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    16.892        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4072        6.2036        .50000       -.54516    
   3  Normalizat    1.3795        .20161        .98618E-05   -.81223    
   4  Prefactor     .95574        .20400        .23350E-05   -.94220    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15221e-09
Minuit parameter uncertainties:
  1  0.000910282
  2  4.36948
  3  0.201721
  4  0.204164
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/89953': 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) = 7234.56039173
delta logL = 5.1356437325e-07

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  9.103e-04  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.407e+00  4.369e+00  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.557e-01  2.042e-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.380e+00  2.017e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/89953/cmap_HighResolution_622944001_623203201_4FGL_J1148.6+1841_daily_bin1480.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.87e-03', job_status='DONE', photon_flux_upper_limit='8.94e-08', time_completed='2021-09-04 12:20:16.876624', job_id='89953', GAL2='0.96', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1630783216.88', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='5.14e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1480' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:20:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 89953: <4FGL_J1148.6+1841_daily_bin1480> in cluster <slac> Done

Job <4FGL_J1148.6+1841_daily_bin1480> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 12:07:03 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:07:05 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:07:05 2021
Terminated at Sat Sep  4 12:20:17 2021
Results reported at Sat Sep  4 12:20:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin1480 177.154 18.6861 622944001 623203201 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 :                                   778.18 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             302.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            794 sec.

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

