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


Performing analysis on: 4FGL_J1153.4+4931_daily_bin740
RA = 178.35, Dec = 49.5169
tmin = 431136001, tmax = 431395201
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='154158', job_status='RUN', time_executed='2021-09-04 15:19:06.738466', time_epoch_executed='1630793946.74' WHERE source_name='4FGL J1153.4+4931' and cadence='daily' and bin_id='740'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/154158

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/154158/ft1_4FGL_J1153.4+4931_daily_bin740.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/154158/ft2_4FGL_J1153.4+4931_daily_bin740.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/154158/ft1_4FGL_J1153.4+4931_daily_bin740.fits outfile=/scratch/kocevski/154158/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin740.fits ra=178.35 dec=49.5169 rad=12.0 tmin=431136001.0 tmax=431395201.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.64
user 5.37
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/154158/ft1_filtered_4FGL_J1153.4+4931_daily_bin740.fits" evtable="EVENTS" scfile=/scratch/kocevski/154158/ft2_4FGL_J1153.4+4931_daily_bin740.fits sctable="SC_DATA" outfile=/scratch/kocevski/154158/ltcube_431136001_431395201_4FGL_J1153.4+4931_daily_bin740.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/154158/ft2_4FGL_J1153.4+4931_daily_bin740.fits
.....................!
real 12.23
user 11.87
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/154158/ft1_filtered_4FGL_J1153.4+4931_daily_bin740.fits evtable="EVENTS" scfile=/scratch/kocevski/154158/ft2_4FGL_J1153.4+4931_daily_bin740.fits sctable="SC_DATA" expcube=/scratch/kocevski/154158/ltcube_431136001_431395201_4FGL_J1153.4+4931_daily_bin740.fits outfile=/scratch/kocevski/154158/expmap_431136001_431395201_4FGL_J1153.4+4931_daily_bin740.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/154158/ltcube_431136001_431395201_4FGL_J1153.4+4931_daily_bin740.fits
.....................!
real 189.80
user 185.26
sys 4.18

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/154158/ft1_filtered_4FGL_J1153.4+4931_daily_bin740.fits scfile=/scratch/kocevski/154158/ft2_4FGL_J1153.4+4931_daily_bin740.fits outfile=/scratch/kocevski/154158/cmap_431136001_431395201_4FGL_J1153.4+4931_daily_bin740.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/154158/ft1_filtered_4FGL_J1153.4+4931_daily_bin740.fits scfile=/scratch/kocevski/154158/ft2_4FGL_J1153.4+4931_daily_bin740.fits outfile=/scratch/kocevski/154158/cmap_HighResolution_431136001_431395201_4FGL_J1153.4+4931_daily_bin740.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    157.23       1.0000         .10000E-03   10000.    
     4 'norm      '    .27039       1.0000         .10000E-03   10000.    
     5 'Prefactor '    77.459       1.0000         .10000E-03   10000.    
     6 'Prefactor '    32.449       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    27.879       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.5080       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .16552E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.6243       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.7419       1.0000         .10000E-03   10000.    
    21 'norm      '    4.7362       1.0000         .10000E-03   10000.    
    22 'norm      '    5.9266       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.4943       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3807       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .61835       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=   4550.029     FROM MIGRAD    STATUS=CONVERGED    750 CALLS     3710 TOTAL
                     EDM=   .47E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    99.263        .93342E-06** at limit **
   2  Prefactor     .10000E-03    82.425       -.35310E-06** at limit **
   3  Prefactor     157.18        132.40       -.21536E-06   -.38453E-04
   4  norm          .27029        2.6856        .20531E-05   -.43640E-04
   5  Prefactor     77.514        81.378        .24689E-06    .25760E-04
   6  Prefactor     32.449        29.669       -.12839E-05   -.10262E-03
   7  Prefactor     .10000E-03    44.070        .44265E-07** at limit **
   8  norm          27.888        34.168       -.62161E-07   -.14831E-04
   9  Prefactor     .10000E-03    5.1320        .11144E-06** at limit **
  10  Prefactor     .10000E-03    11.360        .64854E-08** at limit **
  11  norm          7.5054        6.0549        .73440E-07   -.12753E-04
  12  Prefactor     .10000E-03    467.61       -.91586E-06** at limit **
  13  norm          .10000E-03    8.7593        .73097E-08** at limit **
  14  norm          8.6231        2.2262        .15910E-07   -.21125E-04
  15  norm          .10000E-03    7.0055       -.24551E-08** at limit **
  16  Prefactor     .10000E-03    1.3345       -.50768E-08** at limit **
  17  Prefactor     .10000E-03    63.844        .18871E-06** at limit **
  18  norm          .10000E-03    3.9059       -.40770E-07** at limit **
  19  Prefactor     .10000E-03    7.1513       -.10044E-07** at limit **
  20  Prefactor     7.7430        8.4768        .75224E-07   -.13276E-04
  21  norm          4.7362        3.1821        .76108E-07   -.39250E-04
  22  norm          5.9286        7.9935        .15886E-06   -.24260E-04
  23  Prefactor     .10000E-03    8.8067       -.50304E-07** at limit **
  24  Prefactor     .10000E-03    3.6038       -.17305E-07** at limit **
  25  norm          .10000E-03    1.6686       -.10384E-07** at limit **
  26  Prefactor     .10000E-03    8.4667       -.22014E-07** at limit **
  27  norm          1.4944        2.1275        .78537E-07   -.77147E-05
  28  Normalizat    1.3807        .21469       -.10202E-05   -.67384E-05
  29  Prefactor     .61828        .24709        .12986E-05   -.46989E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 157.18
  norm       = 0.27029
  Prefactor  = 77.5144
  Prefactor  = 32.4487
  Prefactor  = 0.0001
  norm       = 27.8883
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.50541
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.62311
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.74304
  norm       = 4.73619
  norm       = 5.92859
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.49444
  Normalizat = 1.38074
  Prefactor  = 0.618282
 **********
 **   18 **HESSE 
 **********

 FCN=   4550.029     FROM HESSE     STATUS=OK           539 CALLS     4249 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    99.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    82.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     157.18        132.75        .16077E-03   -1.3194    
   4  norm          .27029        2.7274        .20733E-03   -1.5604    
   5  Prefactor     77.514        81.859        .45627E-04   -1.3945    
   6  Prefactor     32.449        30.146        .70342E-04   -1.4568    
   7  Prefactor     .10000E-03    44.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          27.888        34.170        .75875E-04   -1.4651    
   9  Prefactor     .10000E-03    5.2065        .14919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.5054        6.0439        .14090E-03   -1.5160    
  12  Prefactor     .10000E-03    474.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.7619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.6231        2.2237        .47936E-04   -1.5121    
  15  norm          .10000E-03    7.0219        .17436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.3420        .76079E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    63.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.9462        .12997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.1548        .17618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.7430        8.4669        .14412E-03   -1.5151    
  21  norm          4.7362        3.1874        .93097E-04   -1.5273    
  22  norm          5.9286        7.9916        .16495E-03   -1.5221    
  23  Prefactor     .10000E-03    8.8101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.6280        .12504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.6916        .85086E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    8.4733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.4944        2.1023        .11382E-03   -1.5463    
  28  Normalizat    1.3807        .24744        .21629E-03   -.81187    
  29  Prefactor     .61828        .28071        .37024E-03   -1.0682    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00854e-10
Minuit parameter uncertainties:
  1  0.000441533
  2  0.000588553
  3  133.001
  4  1.71697
  5  81.9783
  6  30.1603
  7  1.06511e-05
  8  34.1936
  9  2.62505e-06
  10  2.1603e-06
  11  6.04443
  12  6.0462e-05
  13  3.08473e-06
  14  2.2237
  15  1.26369e-06
  16  6.07545e-07
  17  0.000155687
  18  1.5566e-06
  19  1.66044e-06
  20  8.46818
  21  3.18747
  22  7.99299
  23  1.46821e-06
  24  1.02947e-06
  25  5.07441e-07
  26  1.41342e-07
  27  2.10243
  28  0.247657
  29  0.281349
Done.

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

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  6.075e-07  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:  6.183e-01  2.813e-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:  1.381e+00  2.477e-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: 6.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/154158/likelihoodResults_431136001_431395201_4FGL_J1153.4+4931_daily_bin740.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) = 4550.03211647
delta logL = -0.0033726607744

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4550.02874381
delta logL = -7.57790985517e-09

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 'Index     '    2.4065       1.0000          .0000       10.000    
     3 'Normalizat'    1.3808       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61825       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=   4550.029     FROM MIGRAD    STATUS=FAILED        86 CALLS      239 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10061E-03    131.62        .76183E-03** at limit **
   2  Index         2.3293        5.9455        .50000        .26367E-04
   3  Normalizat    1.3807        .56517E-01    .21629E-03   -.15727E-04
   4  Prefactor     .61828        .67584E-01    .37023E-03   -.11054E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4550.029     FROM SIMPLEX   STATUS=PROGRESS     145 CALLS      384 TOTAL
                     EDM=   .43E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10057E-03    131.62        .13803E-03** at limit **
   2  Index         2.3292        5.9455        .49487E-04    .26367E-04
   3  Normalizat    1.3807        .56517E-01    .87842E-06   -.15727E-04
   4  Prefactor     .61828        .67584E-01    .59060E-06   -.11054E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4550.029     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      427 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.0405        .15237E-03** at limit **
   2  Index         2.1471        7.0921        .50000       -.11057E-06
   3  Normalizat    1.3807        .23245        .43257E-04   -.84101E-05
   4  Prefactor     .61828        .27770        .14809E-04    .76767E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.14715
  Normalizat = 1.38074
  Prefactor  = 0.618284
 **********
 **   18 **HESSE 
 **********

 FCN=   4550.029     FROM HESSE     STATUS=OK            29 CALLS      456 TOTAL
                     EDM=   .85E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.4046        .30473E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1471        8.8647        .50000       -.60720    
   3  Normalizat    1.3807        .23247        .86515E-05   -.81187    
   4  Prefactor     .61828        .27774        .29619E-05   -1.0682    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.46527e-12
Minuit parameter uncertainties:
  1  7.76978e-08
  2  95.1724
  3  0.232648
  4  0.278355
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/154158': 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) = 4550.02874261
delta logL = 1.19675587484e-06

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  7.770e-08  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  2.147e+00  9.517e+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:  6.183e-01  2.784e-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:  1.381e+00  2.326e-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/154158/cmap_HighResolution_431136001_431395201_4FGL_J1153.4+4931_daily_bin740.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.93e-03', job_status='DONE', photon_flux_upper_limit='6.38e-08', time_completed='2021-09-04 15:32:05.755886', job_id='154158', GAL2='0.62', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1630794725.76', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='1.20e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='740' AND source_name='4FGL J1153.4+4931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:32:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 154158: <4FGL_J1153.4+4931_daily_bin740> in cluster <slac> Done

Job <4FGL_J1153.4+4931_daily_bin740> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 15:16:13 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 15:16:14 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:16:14 2021
Terminated at Sat Sep  4 15:32:06 2021
Results reported at Sat Sep  4 15:32:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.4+4931_daily_bin740 178.35 49.5169 431136001 431395201 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 :                                   779.07 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             287.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            953 sec.

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

