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


Performing analysis on: 4FGL_J1148.6+1841_daily_bin1523
RA = 177.154, Dec = 18.6861
tmin = 634089601, tmax = 634348801
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='90019', job_status='RUN', time_executed='2021-09-04 12:07:22.245521', time_epoch_executed='1630782442.25' WHERE source_name='4FGL J1148.6+1841' and cadence='daily' and bin_id='1523'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/90019

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/90019/ft1_4FGL_J1148.6+1841_daily_bin1523.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/90019/ft2_4FGL_J1148.6+1841_daily_bin1523.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/90019/ft1_4FGL_J1148.6+1841_daily_bin1523.fits outfile=/scratch/kocevski/90019/ft1_filteredMKT_4FGL_J1148.6+1841_daily_bin1523.fits ra=177.154 dec=18.6861 rad=12.0 tmin=634089601.0 tmax=634348801.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 4.95
user 4.61
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/90019/ft1_filtered_4FGL_J1148.6+1841_daily_bin1523.fits evtable="EVENTS" scfile=/scratch/kocevski/90019/ft2_4FGL_J1148.6+1841_daily_bin1523.fits sctable="SC_DATA" expcube=/scratch/kocevski/90019/ltcube_634089601_634348801_4FGL_J1148.6+1841_daily_bin1523.fits outfile=/scratch/kocevski/90019/expmap_634089601_634348801_4FGL_J1148.6+1841_daily_bin1523.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/90019/ltcube_634089601_634348801_4FGL_J1148.6+1841_daily_bin1523.fits
.....................!
real 189.37
user 184.16
sys 4.87

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/90019/ft1_filtered_4FGL_J1148.6+1841_daily_bin1523.fits scfile=/scratch/kocevski/90019/ft2_4FGL_J1148.6+1841_daily_bin1523.fits outfile=/scratch/kocevski/90019/cmap_634089601_634348801_4FGL_J1148.6+1841_daily_bin1523.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.81
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/90019/ft1_filtered_4FGL_J1148.6+1841_daily_bin1523.fits scfile=/scratch/kocevski/90019/ft2_4FGL_J1148.6+1841_daily_bin1523.fits outfile=/scratch/kocevski/90019/cmap_HighResolution_634089601_634348801_4FGL_J1148.6+1841_daily_bin1523.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=177.154 yref=18.6861 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .24583E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    26.299       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .94248E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10353E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.2993       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.7403       1.0000         .10000E-03   10000.    
    12 'norm      '    5.0914       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .85286E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.3121       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .99335       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    23.593       1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.510       1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.119       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2196       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .84463       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=   5767.349     FROM MIGRAD    STATUS=CONVERGED    581 CALLS     2432 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.4202        .90712E-02** at limit **
   2  Prefactor     .10000E-03    5.5014        .64979E-01** at limit **
   3  norm          26.299        13.124        .19529E-02    .80263E-03
   4  norm          .10000E-03    3.4044        .90712E-02** at limit **
   5  Prefactor     .91412E-02    6.9778        .90919E-01    .21403E-03
   6  Prefactor     .10000E-03    12.723        .90712E-02** at limit **
   7  Prefactor     .11178E-03    17.208        .10738    ** at limit **
   8  Prefactor     .10000E-03    11.916        .90712E-02** at limit **
   9  Prefactor     .10000E-03    21.388        .90712E-02** at limit **
  10  Prefactor     1.2985        2.0177        .96938E-02    .88598E-03
  11  Prefactor     5.7422        7.3395        .41911E-02   -.16705E-02
  12  norm          5.0912        1.5948        .44547E-02    .37712E-04
  13  Prefactor     .11336E-03    12.894        .91826E-01** at limit **
  14  Prefactor     5.3103        4.0733        .43595E-02    .26624E-03
  15  Prefactor     .10053E-03    112.51        .90712E-02** at limit **
  16  Prefactor     .10000E-03    .85327        .38517E-01** at limit **
  17  Prefactor     .99336        2.7029        .13142E-01    .10275E-02
  18  Prefactor     .10000E-03    1.8402        .90712E-02** at limit **
  19  norm          .10000E-03    .61477E-01    .90712E-02** at limit **
  20  norm          23.592        7.3738        .20617E-02   -.31350E-03
  21  Prefactor     19.511        14.745        .22669E-02    .14509E-04
  22  Prefactor     16.118        21.146        .24940E-02    .13744E-04
  23  Normalizat    1.2196        .18496        .52670E-01    .12943E-04
  24  Prefactor     .84467        .18604        .64373E-01    .19879E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 26.2988
  norm       = 0.0001
  Prefactor  = 0.00914123
  Prefactor  = 0.0001
  Prefactor  = 0.000111785
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.29848
  Prefactor  = 5.74216
  norm       = 5.09121
  Prefactor  = 0.000113355
  Prefactor  = 5.31033
  Prefactor  = 0.000100532
  Prefactor  = 0.0001
  Prefactor  = 0.993359
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 23.5924
  Prefactor  = 19.5107
  Prefactor  = 16.1184
  Normalizat = 1.21959
  Prefactor  = 0.84467
 **********
 **   18 **HESSE 
 **********

 FCN=   5767.349     FROM HESSE     STATUS=OK           427 CALLS     2859 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.4302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.573        .33760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          26.299        13.122        .78116E-04   -1.4682    
   4  norm          .10000E-03    3.4119        .13684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .91412E-02    10.733        .63958E-01   -1.5689    
   6  Prefactor     .10000E-03    12.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .11178E-03    22.262        .90519E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    22.148        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.2985        1.9958        .12632E-03   -1.5480    
  11  Prefactor     5.7422        7.3309        .16764E-03   -1.5229    
  12  norm          5.0912        1.5949        .51755E-04   -1.5257    
  13  Prefactor     .11336E-03    15.370        .80735E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.3103        4.0581        .12714E-03   -1.5247    
  15  Prefactor     .10053E-03    112.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.4101        .13418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .99336        2.6236        .19148E-03   -1.5509    
  18  Prefactor     .10000E-03    1.8445        .10059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .76885E-01    .36615E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          23.592        7.3711        .82467E-04   -1.4736    
  21  Prefactor     19.511        14.744        .90676E-04   -1.4824    
  22  Prefactor     16.118        21.140        .99760E-04   -1.4905    
  23  Normalizat    1.2196        .21885        .23288E-03   -.86000    
  24  Prefactor     .84467        .21979        .28474E-03   -.98102    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91955e-08
Minuit parameter uncertainties:
  1  2.94524e-06
  2  2.86171e-05
  3  13.123
  4  2.42957e-07
  5  0.623124
  6  5.69527e-05
  7  0.0324067
  8  6.79811e-05
  9  5.26185e-05
  10  1.99594
  11  7.33204
  12  1.59492
  13  0.0286622
  14  4.05831
  15  0.0155157
  16  1.82004e-07
  17  2.62394
  18  1.52262e-07
  19  8.05174e-09
  20  7.37138
  21  14.7464
  22  21.1497
  23  0.219019
  24  0.220016
Done.

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

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  5.262e-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.447e-01  2.200e-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.220e+00  2.190e-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.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/90019/likelihoodResults_634089601_634348801_4FGL_J1148.6+1841_daily_bin1523.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) = 5767.34896034
delta logL = -0.000215466412556

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5767.34874642
delta logL = -1.54863028001e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29069E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4304       1.0000          .0000       10.000    
     3 'Normalizat'    1.2199       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84433       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=   5767.349     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      234 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10049E-03    3.0238        .67922E-01** at limit **
   2  Index         2.4402        2.5448        .50000       -.66606E-04
   3  Normalizat    1.2196        .28996E-02    .52670E-01   -.41113E-04
   4  Prefactor     .84467        .30245E-02    .64373E-01   -.15436E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100493
  Index      = 2.44024
  Normalizat = 1.21959
  Prefactor  = 0.844668
 **********
 **   18 **HESSE 
 **********

 FCN=   5767.349     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      271 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10049E-03    560.72        .40738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4402        7.0281        .50000       -.53746    
   3  Normalizat    1.2196        .13398E-01    .23288E-03   -.86000    
   4  Prefactor     .84467        .13963E-01    .28474E-03   -.98102    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.81519e-07
Minuit parameter uncertainties:
  1  0.0335645
  2  12.4905
  3  0.0133985
  4  0.0139629
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/90019': 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) = 5767.34874331
delta logL = 1.55978705152e-06

Extracting fit parameters...

4FGL J1148.6+1841
   Spectrum: PowerLaw
281    Prefactor:  1.005e-04  3.356e-02  1.000e-04  1.000e+04 ( 1.000e-13)
282        Index:  2.440e+00  1.249e+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.447e-01  1.396e-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.220e+00  1.340e-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/90019/cmap_HighResolution_634089601_634348801_4FGL_J1148.6+1841_daily_bin1523.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.06e-03', job_status='DONE', photon_flux_upper_limit='7.88e-08', time_completed='2021-09-04 12:18:34.682477', job_id='90019', GAL2='0.84', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1630783114.68', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='1.56e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1523' AND source_name='4FGL J1148.6+1841' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:18:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 90019: <4FGL_J1148.6+1841_daily_bin1523> in cluster <slac> Done

Job <4FGL_J1148.6+1841_daily_bin1523> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 12:07:09 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:07:11 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:11 2021
Terminated at Sat Sep  4 12:18:35 2021
Results reported at Sat Sep  4 12:18:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.6+1841_daily_bin1523 177.154 18.6861 634089601 634348801 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 :                                   669.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             335.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   683 sec.
    Turnaround time :                            686 sec.

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

