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


Performing analysis on: 4FGL_J1153.4+4931_daily_bin787
RA = 178.35, Dec = 49.5169
tmin = 443318401, tmax = 443577601
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='152937', job_status='RUN', time_executed='2021-09-04 15:11:49.035912', time_epoch_executed='1630793509.04' WHERE source_name='4FGL J1153.4+4931' and cadence='daily' and bin_id='787'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/152937

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/152937/ft1_4FGL_J1153.4+4931_daily_bin787.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/152937/ft2_4FGL_J1153.4+4931_daily_bin787.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/152937/ft1_4FGL_J1153.4+4931_daily_bin787.fits outfile=/scratch/kocevski/152937/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin787.fits ra=178.35 dec=49.5169 rad=12.0 tmin=443318401.0 tmax=443577601.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.60
user 4.37
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/152937/ft2_4FGL_J1153.4+4931_daily_bin787.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/152937/ft2_4FGL_J1153.4+4931_daily_bin787.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/152937/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin787.fits evtable="EVENTS" outfile="/scratch/kocevski/152937/ft1_filtered_4FGL_J1153.4+4931_daily_bin787.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/152937/ft1_filtered_4FGL_J1153.4+4931_daily_bin787.fits" evtable="EVENTS" scfile=/scratch/kocevski/152937/ft2_4FGL_J1153.4+4931_daily_bin787.fits sctable="SC_DATA" outfile=/scratch/kocevski/152937/ltcube_443318401_443577601_4FGL_J1153.4+4931_daily_bin787.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/152937/ft2_4FGL_J1153.4+4931_daily_bin787.fits
.....................!
real 11.73
user 11.37
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/152937/ft1_filtered_4FGL_J1153.4+4931_daily_bin787.fits evtable="EVENTS" scfile=/scratch/kocevski/152937/ft2_4FGL_J1153.4+4931_daily_bin787.fits sctable="SC_DATA" expcube=/scratch/kocevski/152937/ltcube_443318401_443577601_4FGL_J1153.4+4931_daily_bin787.fits outfile=/scratch/kocevski/152937/expmap_443318401_443577601_4FGL_J1153.4+4931_daily_bin787.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/152937/ltcube_443318401_443577601_4FGL_J1153.4+4931_daily_bin787.fits
.....................!
real 191.27
user 185.18
sys 5.03

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 220 point sources and 0 extended sources

Setting source of interest to:
4FGL J1153.4+4931 @ 178.35 49.5169

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/152937/ft1_filtered_4FGL_J1153.4+4931_daily_bin787.fits scfile=/scratch/kocevski/152937/ft2_4FGL_J1153.4+4931_daily_bin787.fits outfile=/scratch/kocevski/152937/cmap_443318401_443577601_4FGL_J1153.4+4931_daily_bin787.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=178.35 yref=49.5169 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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/152937/ft1_filtered_4FGL_J1153.4+4931_daily_bin787.fits scfile=/scratch/kocevski/152937/ft2_4FGL_J1153.4+4931_daily_bin787.fits outfile=/scratch/kocevski/152937/cmap_HighResolution_443318401_443577601_4FGL_J1153.4+4931_daily_bin787.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=178.35 yref=49.5169 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/152937/ft1_filtered_4FGL_J1153.4+4931_daily_bin787.fits evtable="EVENTS" scfile=/scratch/kocevski/152937/ft2_4FGL_J1153.4+4931_daily_bin787.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/152937/Model_4FGL_J1153.4+4931_daily_bin787.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/152937/ft1_filtered_4FGL_J1153.4+4931_daily_bin787.fits.....................!
real 53.17
user 51.85
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/152937/ft1_filtered_4FGL_J1153.4+4931_daily_bin787.fits', '/scratch/kocevski/152937/ft2_4FGL_J1153.4+4931_daily_bin787.fits', expMap='/scratch/kocevski/152937/expmap_443318401_443577601_4FGL_J1153.4+4931_daily_bin787.fits', expCube='/scratch/kocevski/152937/ltcube_443318401_443577601_4FGL_J1153.4+4931_daily_bin787.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/152937/Model_4FGL_J1153.4+4931_daily_bin787.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1153.4+4931'

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  3.122e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  2.412e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
364        Scale:  7.717e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/152937/ft1_filtered_4FGL_J1153.4+4931_daily_bin787.fits
Spacecraft file(s): /scratch/kocevski/152937/ft2_4FGL_J1153.4+4931_daily_bin787.fits
Exposure map: /scratch/kocevski/152937/expmap_443318401_443577601_4FGL_J1153.4+4931_daily_bin787.fits
Exposure cube: /scratch/kocevski/152937/ltcube_443318401_443577601_4FGL_J1153.4+4931_daily_bin787.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/152937/Model_4FGL_J1153.4+4931_daily_bin787.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) = 6231.43330788

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10462E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.0179       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12561E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.4854       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11309E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .32238       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.7527       1.0000         .10000E-03   10000.    
    12 'Prefactor '    32.054       1.0000         .10000E-03   10000.    
    13 'norm      '    .10084E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.9475       1.0000         .10000E-03   10000.    
    15 'norm      '    5.0633       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.3762       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11143E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.7919       1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.613       1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.923       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.9450       1.0000         .10000E-03   10000.    
    25 'norm      '    3.4586       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10259E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .11914       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .83463       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0373       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6231.385     FROM MIGRAD    STATUS=CONVERGED    814 CALLS     3232 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    52.387       -.82327E-05** at limit **
   2  Prefactor     .10000E-03    42.280        .48887E-05** at limit **
   3  Prefactor     .10000E-03    71.152       -.14218E-04** at limit **
   4  norm          5.0183        2.5094        .16823E-07    .31742E-04
   5  Prefactor     .10000E-03    38.686       -.33646E-05** at limit **
   6  Prefactor     3.4778        26.924       -.18961E-05   -.52761E-04
   7  Prefactor     .10000E-03    28.412        .10935E-06** at limit **
   8  norm          .81519E-01    45.564       -.77530E-06   -.12598E-04
   9  Prefactor     .10000E-03    3.2523        .16566E-07** at limit **
  10  Prefactor     .10000E-03    16.261       -.96707E-08** at limit **
  11  norm          1.7512        2.1818       -.75481E-07   -.17702E-03
  12  Prefactor     32.134        36.810       -.45119E-06   -.16249E-04
  13  norm          .10000E-03    11.103       -.13369E-06** at limit **
  14  norm          5.9468        1.4581        .50578E-08   -.60987E-03
  15  norm          5.0610        9.8278       -.62132E-06   -.16738E-03
  16  Prefactor     2.3751        2.3303        .47511E-07   -.36116E-05
  17  Prefactor     .10000E-03    67.916        .18015E-04** at limit **
  18  norm          1.7923        3.0518       -.22532E-06   -.43598E-03
  19  Prefactor     16.630        17.319       -.73541E-06   -.13508E-04
  20  Prefactor     12.925        8.1213        .75935E-07   -.12593E-04
  21  norm          .10000E-03    .84861       -.20092E-07** at limit **
  22  norm          .10000E-03    2.2879        .46345E-07** at limit **
  23  Prefactor     .10000E-03    5.3208       -.50895E-07** at limit **
  24  Prefactor     3.9445        3.6410        .41098E-06    .12803E-02
  25  norm          3.4586        2.3634       -.22926E-07    .13910E-03
  26  Prefactor     .10000E-03    6.3813        .77162E-07** at limit **
  27  norm          .11895        .86644       -.75342E-06   -.78040E-03
  28  Normalizat    .83462        .14668       -.75161E-07    .12117E-03
  29  Prefactor     1.0373        .18504        .74649E-06    .48324E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.01829
  Prefactor  = 0.0001
  Prefactor  = 3.47784
  Prefactor  = 0.0001
  norm       = 0.0815192
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.75123
  Prefactor  = 32.1342
  norm       = 0.0001
  norm       = 5.94676
  norm       = 5.06101
  Prefactor  = 2.3751
  Prefactor  = 0.0001
  norm       = 1.7923
  Prefactor  = 16.6304
  Prefactor  = 12.9247
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.9445
  norm       = 3.45856
  Prefactor  = 0.0001
  norm       = 0.118951
  Normalizat = 0.834623
  Prefactor  = 1.03731
 **********
 **   18 **HESSE 
 **********

 FCN=   6231.385     FROM HESSE     STATUS=OK           565 CALLS     3797 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    52.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    42.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    69.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.0183        2.5026        .83428E-04   -1.5260    
   5  Prefactor     .10000E-03    38.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.4778        26.946        .21658E-03   -1.5335    
   7  Prefactor     .10000E-03    28.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .81519E-01    46.015        .17377       -1.5651    
   9  Prefactor     .10000E-03    3.2938        .13892E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.7512        2.1664        .12541E-03   -1.5443    
  12  Prefactor     32.134        36.851        .70773E-04   -1.4574    
  13  norm          .10000E-03    11.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.9468        1.4610        .42932E-04   -1.5220    
  15  norm          5.0610        9.8711        .17869E-03   -1.5258    
  16  Prefactor     2.3751        2.3250        .11196E-03   -1.5400    
  17  Prefactor     .10000E-03    66.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.7923        3.0316        .17078E-03   -1.5440    
  19  Prefactor     16.630        17.289        .98263E-04   -1.4892    
  20  Prefactor     12.925        8.1017        .11143E-03   -1.4989    
  21  norm          .10000E-03    1.3817        .14045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.3036        .11659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.3295        .17783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.9445        3.7354        .71650E-03   -1.5311    
  25  norm          3.4586        2.3655        .97081E-04   -1.5336    
  26  Prefactor     .10000E-03    6.3902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .11895        1.8261        .14577E-02   -1.5639    
  28  Normalizat    .83462        .17326        .22795E-03   -.98797    
  29  Prefactor     1.0373        .22002        .26394E-03   -.91496    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.95489e-10
Minuit parameter uncertainties:
  1  1.76175e-06
  2  9.58424e-07
  3  1.37536e-06
  4  2.50267
  5  2.23636e-06
  6  19.373
  7  1.35465e-06
  8  3.87418
  9  1.82759e-06
  10  2.48174e-06
  11  2.16654
  12  36.8771
  13  8.47954e-07
  14  1.46105
  15  9.87423
  16  2.32507
  17  0.000108276
  18  3.03185
  19  17.2945
  20  8.10235
  21  3.37518e-06
  22  7.17501e-07
  23  3.25496e-07
  24  3.73559
  25  2.36558
  26  3.89569e-07
  27  0.93176
  28  0.173378
  29  0.220213
Done.

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

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  2.375e+00  2.325e+00  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  2.412e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
364        Scale:  7.717e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
702    Prefactor:  1.037e+00  2.202e-01  0.000e+00  1.000e+01 ( 1.000e+00)
703        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
704        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
701   Normalization:  8.346e-01  1.734e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.46
Ra Dec: 178.350 49.517
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 2.33e-08 +/- 2.28e-08
Energy Flux (Fixed Index): 7.50e-06 +/- 7.35e-06

TS (Fixed Index): 3.46
Ra Dec: 178.350 49.517
Photon Flux Upper Limit: 8.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.40e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/152937/likelihoodResults_443318401_443577601_4FGL_J1153.4+4931_daily_bin787.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): 0
logL (Free Index) = 6231.26031822
delta logL = 0.124561230423

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6231.2561557
delta logL = 0.12872375889

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2182       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9067       1.0000          .0000       10.000    
     3 'Normalizat'    .84754       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0293       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6231.256     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      201 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2182        3.0961        .69030E-02    .13586E-02
   2  Index         1.9068        .88745        .26355       -.32151E-04
   3  Normalizat    .84753        .14466        .44228E-01    .12972E-04
   4  Prefactor     1.0293        .18356        .59891E-01    .97302E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.21823
  Index      = 1.90677
  Normalizat = 0.847533
  Prefactor  = 1.02934
 **********
 **   18 **HESSE 
 **********

 FCN=   6231.256     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2182        2.4766        .11697E-03   -1.5410    
   2  Index         1.9068        .89618        .12624E-01   -.66702    
   3  Normalizat    .84753        .16953        .22639E-03   -.98329    
   4  Prefactor     1.0293        .21660        .26485E-03   -.91758    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34504e-09
Minuit parameter uncertainties:
  1  2.47676
  2  0.904141
  3  0.169635
  4  0.216784
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/152937': 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) = 6231.25615569
delta logL = 0.128723764077

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  2.218e+00  2.477e+00  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  1.907e+00  9.041e-01  0.000e+00  1.000e+01 (-1.000e+00)
364        Scale:  7.717e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
702    Prefactor:  1.029e+00  2.168e-01  0.000e+00  1.000e+01 ( 1.000e+00)
703        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
704        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
701   Normalization:  8.475e-01  1.696e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.72
Ra Dec: 178.350 49.517
Photon Index (Free Index): 1.91 +/- 0.90
Photon Flux (Free Index): 1.20e-08 +/- 1.99e-08
Energy Flux (Free Index): 1.06e-05 +/- 1.64e-05

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/152937/cmap_HighResolution_443318401_443577601_4FGL_J1153.4+4931_daily_bin787.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.40e-03', comment='SUCCESS', photon_flux='2.33e-08', energy_flux2='1.06e-05', photon_flux_error='2.28e-08', dlogl='1.29e-01', energy_flux='7.50e-06', photon_flux2='1.20e-08', job_status='DONE', time_completed='2021-09-04 15:26:26.257302', photon_index_error2='0.90', photon_index2='1.91', ts='3.46', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='8.28e-08', energy_flux_error2='1.64e-05', EG='0.83', time_epoch_completed='1630794386.26', return_code='0', job_id='152937', GAL2='1.03', EG2='0.85', return_code2='0', energy_flux_error='7.35e-06', photon_flux_error2='1.99e-08', ts2='3.72', photon_index='2.41' WHERE bin_id='787' AND source_name='4FGL J1153.4+4931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:26:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 152937: <4FGL_J1153.4+4931_daily_bin787> in cluster <slac> Done

Job <4FGL_J1153.4+4931_daily_bin787> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 15:11:34 2021
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 15:11:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 15:11:35 2021
Terminated at Sat Sep  4 15:26:27 2021
Results reported at Sat Sep  4 15:26:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.4+4931_daily_bin787 178.35 49.5169 443318401 443577601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1153.4+4931 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   875.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             337.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            893 sec.

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

