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


Performing analysis on: 4FGL_J1153.4+4931_daily_bin713
RA = 178.35, Dec = 49.5169
tmin = 424137601, tmax = 424396801
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='152818', job_status='RUN', time_executed='2021-09-04 15:14:40.964417', time_epoch_executed='1630793680.96' WHERE source_name='4FGL J1153.4+4931' and cadence='daily' and bin_id='713'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/152818

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/152818/ft1_4FGL_J1153.4+4931_daily_bin713.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/152818/ft2_4FGL_J1153.4+4931_daily_bin713.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/152818/ft1_4FGL_J1153.4+4931_daily_bin713.fits outfile=/scratch/kocevski/152818/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin713.fits ra=178.35 dec=49.5169 rad=12.0 tmin=424137601.0 tmax=424396801.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 5.33
user 4.98
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/152818/ft2_4FGL_J1153.4+4931_daily_bin713.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/152818/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin713.fits evtable="EVENTS" outfile="/scratch/kocevski/152818/ft1_filtered_4FGL_J1153.4+4931_daily_bin713.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.48
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/152818/ft1_filtered_4FGL_J1153.4+4931_daily_bin713.fits" evtable="EVENTS" scfile=/scratch/kocevski/152818/ft2_4FGL_J1153.4+4931_daily_bin713.fits sctable="SC_DATA" outfile=/scratch/kocevski/152818/ltcube_424137601_424396801_4FGL_J1153.4+4931_daily_bin713.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/152818/ft2_4FGL_J1153.4+4931_daily_bin713.fits
.....................!
real 12.05
user 11.67
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/152818/ft1_filtered_4FGL_J1153.4+4931_daily_bin713.fits evtable="EVENTS" scfile=/scratch/kocevski/152818/ft2_4FGL_J1153.4+4931_daily_bin713.fits sctable="SC_DATA" expcube=/scratch/kocevski/152818/ltcube_424137601_424396801_4FGL_J1153.4+4931_daily_bin713.fits outfile=/scratch/kocevski/152818/expmap_424137601_424396801_4FGL_J1153.4+4931_daily_bin713.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/152818/ltcube_424137601_424396801_4FGL_J1153.4+4931_daily_bin713.fits
.....................!
real 190.48
user 185.82
sys 4.27

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/152818/ft1_filtered_4FGL_J1153.4+4931_daily_bin713.fits scfile=/scratch/kocevski/152818/ft2_4FGL_J1153.4+4931_daily_bin713.fits outfile=/scratch/kocevski/152818/cmap_424137601_424396801_4FGL_J1153.4+4931_daily_bin713.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.55
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/152818/ft1_filtered_4FGL_J1153.4+4931_daily_bin713.fits scfile=/scratch/kocevski/152818/ft2_4FGL_J1153.4+4931_daily_bin713.fits outfile=/scratch/kocevski/152818/cmap_HighResolution_424137601_424396801_4FGL_J1153.4+4931_daily_bin713.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.36
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/152818/ft1_filtered_4FGL_J1153.4+4931_daily_bin713.fits', '/scratch/kocevski/152818/ft2_4FGL_J1153.4+4931_daily_bin713.fits', expMap='/scratch/kocevski/152818/expmap_424137601_424396801_4FGL_J1153.4+4931_daily_bin713.fits', expCube='/scratch/kocevski/152818/ltcube_424137601_424396801_4FGL_J1153.4+4931_daily_bin713.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/152818/Model_4FGL_J1153.4+4931_daily_bin713.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/152818/ft1_filtered_4FGL_J1153.4+4931_daily_bin713.fits
Spacecraft file(s): /scratch/kocevski/152818/ft2_4FGL_J1153.4+4931_daily_bin713.fits
Exposure map: /scratch/kocevski/152818/expmap_424137601_424396801_4FGL_J1153.4+4931_daily_bin713.fits
Exposure cube: /scratch/kocevski/152818/ltcube_424137601_424396801_4FGL_J1153.4+4931_daily_bin713.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/152818/Model_4FGL_J1153.4+4931_daily_bin713.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) = 2114.48621024

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10592E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10708E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.3222       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .18994E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.590       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    53.290       1.0000         .10000E-03   10000.    
    11 'norm      '    4.5678       1.0000         .10000E-03   10000.    
    12 'Prefactor '    156.64       1.0000         .10000E-03   10000.    
    13 'norm      '    1.7725       1.0000         .10000E-03   10000.    
    14 'norm      '    8.0621       1.0000         .10000E-03   10000.    
    15 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    59.849       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.1233       1.0000         .10000E-03   10000.    
    22 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    27.034       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.1323       1.0000         .10000E-03   10000.    
    26 'Prefactor '    15.955       1.0000         .10000E-03   10000.    
    27 'norm      '    15.523       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .60808       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .96539       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=   2114.428     FROM MIGRAD    STATUS=CONVERGED    727 CALLS     3702 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    60.752        .62115E-05** at limit **
   2  Prefactor     .10000E-03    101.21       -.62687E-06** at limit **
   3  Prefactor     .10000E-03    52.057       -.16384E-05** at limit **
   4  norm          1.3220        1.4248       -.29156E-08   -.14103E-04
   5  Prefactor     .10000E-03    242.62        .53369E-05** at limit **
   6  Prefactor     12.593        18.124       -.12854E-07   -.66970E-05
   7  Prefactor     .10000E-03    113.28       -.53308E-05** at limit **
   8  norm          .10000E-03    37.376        .35449E-06** at limit **
   9  Prefactor     .10000E-03    4.4908       -.45842E-07** at limit **
  10  Prefactor     53.283        35.022       -.75544E-07   -.85655E-05
  11  norm          4.5685        6.6219       -.77057E-08   -.37907E-05
  12  Prefactor     156.63        98.681        .84715E-06    .17586E-05
  13  norm          1.7704        32.303        .10082E-04   -.30169E-05
  14  norm          8.0624        3.0627       -.10848E-07    .52902E-04
  15  norm          .10000E-03    6.8208       -.16878E-08** at limit **
  16  Prefactor     .10000E-03    2.7854       -.12934E-06** at limit **
  17  Prefactor     .10000E-03    51.107       -.26880E-05** at limit **
  18  norm          .10000E-03    2.8182        .13856E-06** at limit **
  19  Prefactor     59.821        41.439        .80296E-06    .73966E-06
  20  Prefactor     .10000E-03    3.5150        .10898E-07** at limit **
  21  norm          4.1242        4.3201        .27489E-07   -.18805E-04
  22  norm          .10000E-03    11.111        .10026E-06** at limit **
  23  Prefactor     27.039        66.410        .11600E-05    .56357E-05
  24  Prefactor     .10000E-03    9.0317       -.33725E-06** at limit **
  25  norm          1.1327        8.2650        .13643E-05    .83080E-05
  26  Prefactor     16.002        130.32       -.90164E-05   -.11168E-05
  27  norm          15.522        8.9550        .42339E-06   -.23584E-05
  28  Normalizat    .60779        .25035       -.40492E-06   -.41220E-04
  29  Prefactor     .96568        .30682       -.42418E-06   -.19624E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.32205
  Prefactor  = 0.0001
  Prefactor  = 12.5932
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 53.2827
  norm       = 4.5685
  Prefactor  = 156.628
  norm       = 1.77035
  norm       = 8.06245
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 59.8209
  Prefactor  = 0.0001
  norm       = 4.12424
  norm       = 0.0001
  Prefactor  = 27.0389
  Prefactor  = 0.0001
  norm       = 1.13272
  Prefactor  = 16.0018
  norm       = 15.5219
  Normalizat = 0.607795
  Prefactor  = 0.96568
 **********
 **   18 **HESSE 
 **********

 FCN=   2114.428     FROM HESSE     STATUS=OK           551 CALLS     4253 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    60.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    101.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    52.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.3220        1.4344        .55394E-04   -1.5478    
   5  Prefactor     .10000E-03    245.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.593        18.121        .11289E-03   -1.4998    
   7  Prefactor     .10000E-03    113.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    37.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.5355        .95094E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     53.283        35.078        .54944E-04   -1.4247    
  11  norm          4.5685        6.6066        .13462E-03   -1.5280    
  12  Prefactor     156.63        98.806        .32214E-04   -1.3198    
  13  norm          1.7704        32.318        .15725E-02   -1.5442    
  14  norm          8.0624        3.0678        .44586E-04   -1.5140    
  15  norm          .10000E-03    6.8211        .11730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.7995        .74883E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    51.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.8362        .75389E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     59.821        41.441        .51862E-04   -1.4160    
  20  Prefactor     .10000E-03    3.5167        .84202E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.1242        4.3157        .91890E-04   -1.5302    
  22  norm          .10000E-03    11.122        .14954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     27.039        66.367        .77049E-04   -1.4668    
  24  Prefactor     .10000E-03    9.0420        .13483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.1327        8.1622        .25661E-03   -1.5495    
  26  Prefactor     16.002        129.30        .10027E-03   -1.4908    
  27  norm          15.522        8.9553        .10166E-03   -1.4920    
  28  Normalizat    .60779        .28635        .24893E-03   -1.0765    
  29  Prefactor     .96568        .35122        .25822E-03   -.93882    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0929e-10
Minuit parameter uncertainties:
  1  4.5614e-05
  2  5.80457e-07
  3  6.18078e-06
  4  1.43442
  5  0.000499111
  6  18.1287
  7  3.64247e-05
  8  2.45976e-06
  9  1.34269e-06
  10  35.0913
  11  6.60765
  12  98.9102
  13  15.137
  14  3.06781
  15  6.37489e-07
  16  7.63497e-06
  17  1.0391e-05
  18  1.16561e-06
  19  41.4611
  20  6.51416e-07
  21  4.31605
  22  1.06149e-05
  23  66.5488
  24  4.25332e-05
  25  6.08219
  26  91.2445
  27  8.95603
  28  0.287054
  29  0.352049
Done.

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

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  7.635e-06  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:  9.657e-01  3.520e-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:  6.078e-01  2.871e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 178.350 49.517
Photon Flux Upper Limit: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/152818/likelihoodResults_424137601_424396801_4FGL_J1153.4+4931_daily_bin713.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) = 2114.42918007
delta logL = -0.00167311523273

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2114.42750695
delta logL = 6.6961547418e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4043       1.0000          .0000       10.000    
     3 'Normalizat'    .60779       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96572       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   2114.428     FROM MIGRAD    STATUS=FAILED        84 CALLS      231 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10078E-03    182.20        .75070E-03** at limit **
   2  Index         2.3320        5.5335        .50000        .17537E-04
   3  Normalizat    .60780        .50670E-01    .24893E-03    .87457E-05
   4  Prefactor     .96568        .65524E-01    .25822E-03    .12790E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2114.428     FROM SIMPLEX   STATUS=UNCHANGED    146 CALLS      377 TOTAL
                     EDM=   .68E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10078E-03    182.20        .23118E-03** at limit **
   2  Index         2.3320        5.5335        .76537E-04    .17537E-04
   3  Normalizat    .60780        .50670E-01    .35880E-05    .87457E-05
   4  Prefactor     .96568        .65524E-01    .23516E-05    .12790E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2114.428     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      418 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.889        .15014E-03** at limit **
   2  Index         2.1270        5.0493        .50000       -.66913E-06
   3  Normalizat    .60780        .26736        .99573E-05   -.21579E-04
   4  Prefactor     .96568        .34572        .10329E-04   -.17391E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.12698
  Normalizat = 0.607795
  Prefactor  = 0.96568
 **********
 **   18 **HESSE 
 **********

 FCN=   2114.428     FROM HESSE     STATUS=OK            27 CALLS      445 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.0294        .30028E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1270        8.9193        .50000       -.61212    
   3  Normalizat    .60780        .26746        .19915E-05   -1.0765    
   4  Prefactor     .96568        .34589        .20658E-05   -.93882    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.89495e-10
Minuit parameter uncertainties:
  1  2.1351e-06
  2  120.107
  3  0.268026
  4  0.34669
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/152818': 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) = 2114.42750614
delta logL = 8.1659618445e-07

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  2.135e-06  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  2.127e+00  1.201e+02  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:  9.657e-01  3.467e-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:  6.078e-01  2.680e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 178.350 49.517

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/152818/cmap_HighResolution_424137601_424396801_4FGL_J1153.4+4931_daily_bin713.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.97e-03', job_status='DONE', photon_flux_upper_limit='1.16e-07', time_completed='2021-09-04 15:23:46.025226', job_id='152818', GAL2='0.97', fit_tolerance='1e-08', EG2='0.61', EG='0.61', time_epoch_completed='1630794226.03', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='8.17e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='713' AND source_name='4FGL J1153.4+4931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:23:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 152818: <4FGL_J1153.4+4931_daily_bin713> in cluster <slac> Done

Job <4FGL_J1153.4+4931_daily_bin713> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 15:11:24 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 15:11:26 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:26 2021
Terminated at Sat Sep  4 15:23:46 2021
Results reported at Sat Sep  4 15:23:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.4+4931_daily_bin713 178.35 49.5169 424137601 424396801 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 :                                   543.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             228.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   740 sec.
    Turnaround time :                            742 sec.

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

