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


Performing analysis on: 4FGL_J1153.4+4931_daily_bin943
RA = 178.35, Dec = 49.5169
tmin = 483753601, tmax = 484012801
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='154278', job_status='RUN', time_executed='2021-09-04 15:18:41.624145', time_epoch_executed='1630793921.62' WHERE source_name='4FGL J1153.4+4931' and cadence='daily' and bin_id='943'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/154278

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/154278/ft1_4FGL_J1153.4+4931_daily_bin943.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/154278/ft2_4FGL_J1153.4+4931_daily_bin943.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/154278/ft1_4FGL_J1153.4+4931_daily_bin943.fits outfile=/scratch/kocevski/154278/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin943.fits ra=178.35 dec=49.5169 rad=12.0 tmin=483753601.0 tmax=484012801.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.65
user 5.37
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/154278/ft2_4FGL_J1153.4+4931_daily_bin943.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/154278/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin943.fits evtable="EVENTS" outfile="/scratch/kocevski/154278/ft1_filtered_4FGL_J1153.4+4931_daily_bin943.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/154278/ft1_filtered_4FGL_J1153.4+4931_daily_bin943.fits" evtable="EVENTS" scfile=/scratch/kocevski/154278/ft2_4FGL_J1153.4+4931_daily_bin943.fits sctable="SC_DATA" outfile=/scratch/kocevski/154278/ltcube_483753601_484012801_4FGL_J1153.4+4931_daily_bin943.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/154278/ft2_4FGL_J1153.4+4931_daily_bin943.fits
.....................!
real 11.77
user 11.41
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/154278/ft1_filtered_4FGL_J1153.4+4931_daily_bin943.fits evtable="EVENTS" scfile=/scratch/kocevski/154278/ft2_4FGL_J1153.4+4931_daily_bin943.fits sctable="SC_DATA" expcube=/scratch/kocevski/154278/ltcube_483753601_484012801_4FGL_J1153.4+4931_daily_bin943.fits outfile=/scratch/kocevski/154278/expmap_483753601_484012801_4FGL_J1153.4+4931_daily_bin943.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/154278/ltcube_483753601_484012801_4FGL_J1153.4+4931_daily_bin943.fits
.....................!
real 191.26
user 186.67
sys 4.20

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/154278/ft1_filtered_4FGL_J1153.4+4931_daily_bin943.fits scfile=/scratch/kocevski/154278/ft2_4FGL_J1153.4+4931_daily_bin943.fits outfile=/scratch/kocevski/154278/cmap_483753601_484012801_4FGL_J1153.4+4931_daily_bin943.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.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/154278/ft1_filtered_4FGL_J1153.4+4931_daily_bin943.fits scfile=/scratch/kocevski/154278/ft2_4FGL_J1153.4+4931_daily_bin943.fits outfile=/scratch/kocevski/154278/cmap_HighResolution_483753601_484012801_4FGL_J1153.4+4931_daily_bin943.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/154278/ft1_filtered_4FGL_J1153.4+4931_daily_bin943.fits evtable="EVENTS" scfile=/scratch/kocevski/154278/ft2_4FGL_J1153.4+4931_daily_bin943.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/154278/Model_4FGL_J1153.4+4931_daily_bin943.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/154278/ft1_filtered_4FGL_J1153.4+4931_daily_bin943.fits.....................!
real 45.46
user 44.08
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.607       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    56.709       1.0000         .10000E-03   10000.    
     4 'norm      '    2.5946       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.2892       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5182       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10111E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    43.408       1.0000         .10000E-03   10000.    
    18 'norm      '    3.0335       1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.079       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.2669       1.0000         .10000E-03   10000.    
    22 'norm      '    19.053       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.6493       1.0000         .10000E-03   10000.    
    25 'norm      '    4.5488       1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.1856       1.0000         .10000E-03   10000.    
    27 'norm      '    3.6858       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .80102       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1180       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=   4958.627     FROM MIGRAD    STATUS=CONVERGED    745 CALLS     3746 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.595        63.622        .12999E-05   -.48634E-04
   2  Prefactor     .10000E-03    52.965        .13806E-06** at limit **
   3  Prefactor     56.694        106.31        .14113E-05   -.36211E-04
   4  norm          2.5945        2.2238        .28975E-07   -.37349E-04
   5  Prefactor     .10000E-03    18.828       -.11028E-06** at limit **
   6  Prefactor     .10000E-03    8.6469        .52596E-07** at limit **
   7  Prefactor     .10000E-03    146.49       -.49996E-06** at limit **
   8  norm          .10000E-03    15.263        .23347E-06** at limit **
   9  Prefactor     .10000E-03    4.1095        .11139E-06** at limit **
  10  Prefactor     .10000E-03    11.201        .10773E-06** at limit **
  11  norm          2.2888        4.2599        .16024E-06    .47081E-03
  12  Prefactor     1.4984        128.10        .12262E-04   -.65871E-06
  13  norm          .10000E-03    14.386       -.38068E-06** at limit **
  14  norm          .10000E-03    .79509       -.17860E-05** at limit **
  15  norm          .10000E-03    8.8176       -.62141E-06** at limit **
  16  Prefactor     .10000E-03    1.2720        .34587E-07** at limit **
  17  Prefactor     43.355        52.867        .52185E-05    .13169E-03
  18  norm          3.0335        4.1086        .18799E-07   -.45051E-04
  19  Prefactor     25.080        17.341        .55753E-07    .92671E-05
  20  Prefactor     .10000E-03    14.991        .39422E-06** at limit **
  21  norm          2.2669        2.5592        .79709E-07   -.48340E-04
  22  norm          19.052        8.8869        .23861E-07    .46153E-05
  23  Prefactor     .10000E-03    37.055        .11713E-06** at limit **
  24  Prefactor     3.6492        9.3007        .22761E-06   -.28838E-04
  25  norm          4.5488        4.0494       -.25303E-07   -.13159E-04
  26  Prefactor     6.1854        21.765        .35887E-06   -.82751E-05
  27  norm          3.6858        2.2094        .72361E-08   -.61195E-05
  28  Normalizat    .80108        .17037       -.44155E-06    .34312E-03
  29  Prefactor     1.1179        .21313       -.21220E-06    .27058E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.5946
  Prefactor  = 0.0001
  Prefactor  = 56.6935
  norm       = 2.5945
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.28879
  Prefactor  = 1.49837
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.3551
  norm       = 3.03354
  Prefactor  = 25.0803
  Prefactor  = 0.0001
  norm       = 2.26689
  norm       = 19.0522
  Prefactor  = 0.0001
  Prefactor  = 3.64925
  norm       = 4.54875
  Prefactor  = 6.18539
  norm       = 3.68576
  Normalizat = 0.801083
  Prefactor  = 1.1179
 **********
 **   18 **HESSE 
 **********

 FCN=   4958.627     FROM HESSE     STATUS=OK           547 CALLS     4293 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.595        63.410        .77664E-04   -1.4676    
   2  Prefactor     .10000E-03    52.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     56.694        106.00        .53270E-04   -1.4201    
   4  norm          2.5945        2.2157        .94000E-04   -1.5386    
   5  Prefactor     .10000E-03    18.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.6585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    147.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    15.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.1936        .13934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.2888        4.2415        .18058E-03   -1.5405    
  12  Prefactor     1.4984        157.23        .17342E-02   -1.5463    
  13  norm          .10000E-03    14.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.0836        .10414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    8.9709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.2874        .77458E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     43.355        54.433        .60848E-04   -1.4390    
  18  norm          3.0335        4.0911        .16011E-03   -1.5360    
  19  Prefactor     25.080        17.329        .79991E-04   -1.4706    
  20  Prefactor     .10000E-03    15.369        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.2669        2.5438        .11239E-03   -1.5407    
  22  norm          19.052        8.8741        .91758E-04   -1.4835    
  23  Prefactor     .10000E-03    37.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.6492        9.2644        .21146E-03   -1.5326    
  25  norm          4.5488        4.0363        .11498E-03   -1.5281    
  26  Prefactor     6.1854        21.742        .16141E-03   -1.5211    
  27  norm          3.6858        2.2099        .78747E-04   -1.5324    
  28  Normalizat    .80108        .19986        .23321E-03   -1.0003    
  29  Prefactor     1.1179        .25134        .25950E-03   -.88896    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.20417e-10
Minuit parameter uncertainties:
  1  63.571
  2  5.37829e-05
  3  106.36
  4  2.21577
  5  3.85367e-05
  6  8.36247e-07
  7  0.000676976
  8  5.79164e-05
  9  6.12823e-06
  10  5.98777e-06
  11  4.24201
  12  30.7798
  13  0.000121761
  14  9.97872e-06
  15  3.90399e-05
  16  1.0973e-06
  17  54.4953
  18  4.09146
  19  17.3322
  20  6.7172e-05
  21  2.54397
  22  8.87467
  23  2.80578e-05
  24  9.26801
  25  4.03655
  26  21.7693
  27  2.20994
  28  0.200043
  29  0.251607
Done.

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

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  1.097e-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:  1.118e+00  2.516e-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.011e-01  2.000e-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: 5.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/154278/likelihoodResults_483753601_484012801_4FGL_J1153.4+4931_daily_bin943.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) = 4958.63030747
delta logL = -0.00365787607552

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4958.62664964
delta logL = -5.15956344316e-08

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.4062       1.0000          .0000       10.000    
     3 'Normalizat'    .80111       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1179       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=   4958.627     FROM MIGRAD    STATUS=FAILED        89 CALLS      240 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10030E-03    54.955        .77573E-03** at limit **
   2  Index         2.3686        5.9196        .50000        .31051E-04
   3  Normalizat    .80108        .27883E-01    .23321E-03   -.37537E-05
   4  Prefactor     1.1179        .36233E-01    .25950E-03   -.12705E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4958.627     FROM SIMPLEX   STATUS=UNCHANGED    141 CALLS      381 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10030E-03    54.955        .20561E-03** at limit **
   2  Index         2.3686        5.9196        .10161E-03    .31051E-04
   3  Normalizat    .80108        .27883E-01    .12817E-05   -.37537E-05
   4  Prefactor     1.1179        .36233E-01    .14625E-05   -.12705E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4958.627     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      421 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    260.30        .15515E-03** at limit **
   2  Index         2.2031        6.0924        .50000        .35893E-06
   3  Normalizat    .80108        .91138E-01    .93283E-05    .66055E-04
   4  Prefactor     1.1179        .11831        .10380E-04    .66372E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.20315
  Normalizat = 0.801082
  Prefactor  = 1.1179
 **********
 **   18 **HESSE 
 **********

 FCN=   4958.627     FROM HESSE     STATUS=OK            29 CALLS      450 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.4564        .31029E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2031        7.3894        .50000       -.59363    
   3  Normalizat    .80108        .19296        .18657E-05   -1.0003    
   4  Prefactor     1.1179        .25076        .20760E-05   -.88896    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.83559e-11
Minuit parameter uncertainties:
  1  2.0769e-05
  2  73.9741
  3  0.193124
  4  0.25102
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/154278': 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) = 4958.62664863
delta logL = 9.61862497206e-07

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  2.077e-05  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  2.203e+00  7.397e+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.118e+00  2.510e-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.011e-01  1.931e-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/154278/cmap_HighResolution_483753601_484012801_4FGL_J1153.4+4931_daily_bin943.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.12e-03', job_status='DONE', photon_flux_upper_limit='5.33e-08', time_completed='2021-09-04 15:32:10.479388', job_id='154278', GAL2='1.12', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1630794730.48', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='9.62e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='943' AND source_name='4FGL J1153.4+4931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:32:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 154278: <4FGL_J1153.4+4931_daily_bin943> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.4+4931_daily_bin943 178.35 49.5169 483753601 484012801 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 :                                   807.23 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             294.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   947 sec.
    Turnaround time :                            949 sec.

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

