/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 15 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 = 6705
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1153.4+4931_daily_bin59
RA = 178.35, Dec = 49.5169
tmin = 254620801, tmax = 254880001
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='147887', job_status='RUN', time_executed='2021-09-04 14:57:36.723081', time_epoch_executed='1630792656.72' WHERE source_name='4FGL J1153.4+4931' and cadence='daily' and bin_id='59'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/147887

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

Retrieving the FT1 file...

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

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

Retrieving 43 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/147887/ft1_4FGL_J1153.4+4931_daily_bin59.fits


Retrieving the FT1 file...

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

Retrieving 43 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/147887/ft2_4FGL_J1153.4+4931_daily_bin59.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/147887/ft1_4FGL_J1153.4+4931_daily_bin59.fits outfile=/scratch/kocevski/147887/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin59.fits ra=178.35 dec=49.5169 rad=12.0 tmin=254620801.0 tmax=254880001.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 1.33
user 1.16
sys 0.15

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/147887/ft1_filtered_4FGL_J1153.4+4931_daily_bin59.fits evtable="EVENTS" scfile=/scratch/kocevski/147887/ft2_4FGL_J1153.4+4931_daily_bin59.fits sctable="SC_DATA" expcube=/scratch/kocevski/147887/ltcube_254620801_254880001_4FGL_J1153.4+4931_daily_bin59.fits outfile=/scratch/kocevski/147887/expmap_254620801_254880001_4FGL_J1153.4+4931_daily_bin59.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/147887/ltcube_254620801_254880001_4FGL_J1153.4+4931_daily_bin59.fits
.....................!
real 191.97
user 187.67
sys 3.98

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/147887/ft1_filtered_4FGL_J1153.4+4931_daily_bin59.fits scfile=/scratch/kocevski/147887/ft2_4FGL_J1153.4+4931_daily_bin59.fits outfile=/scratch/kocevski/147887/cmap_254620801_254880001_4FGL_J1153.4+4931_daily_bin59.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/147887/ft1_filtered_4FGL_J1153.4+4931_daily_bin59.fits scfile=/scratch/kocevski/147887/ft2_4FGL_J1153.4+4931_daily_bin59.fits outfile=/scratch/kocevski/147887/cmap_HighResolution_254620801_254880001_4FGL_J1153.4+4931_daily_bin59.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/147887/ft1_filtered_4FGL_J1153.4+4931_daily_bin59.fits evtable="EVENTS" scfile=/scratch/kocevski/147887/ft2_4FGL_J1153.4+4931_daily_bin59.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/147887/Model_4FGL_J1153.4+4931_daily_bin59.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/147887/ft1_filtered_4FGL_J1153.4+4931_daily_bin59.fits.....................!
real 42.93
user 41.51
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.305       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    55.398       1.0000         .10000E-03   10000.    
     4 'norm      '    1.3732       1.0000         .10000E-03   10000.    
     5 'Prefactor '    61.157       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10321E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.175       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .16637       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11242E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    1.4395       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    9.1905       1.0000         .10000E-03   10000.    
    14 'norm      '    1.0910       1.0000         .10000E-03   10000.    
    15 'norm      '    7.5216       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10793E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    22.635       1.0000         .10000E-03   10000.    
    21 'norm      '    2.6133       1.0000         .10000E-03   10000.    
    22 'norm      '    8.5654       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .28318E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.6211       1.0000         .10000E-03   10000.    
    25 'norm      '    3.0256       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.8876       1.0000         .10000E-03   10000.    
    27 'norm      '    2.8660       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0431       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .87360       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=   4821.266     FROM MIGRAD    STATUS=CONVERGED    728 CALLS     3715 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.440        396.19       -.93757E-05   -.21843E-04
   2  Prefactor     .10000E-03    80.052       -.11475E-05** at limit **
   3  Prefactor     55.393        100.69        .24521E-06    .61975E-05
   4  norm          1.3725        1.6618       -.14028E-07   -.70253E-04
   5  Prefactor     61.141        65.925        .73760E-06   -.10187E-04
   6  Prefactor     .10000E-03    13.675        .37453E-07** at limit **
   7  Prefactor     20.438        92.619       -.13831E-04   -.10680E-03
   8  norm          .10000E-03    20.155       -.11467E-06** at limit **
   9  Prefactor     .14906        7.7086        .20678E-05   -.80062E-03
  10  Prefactor     .10000E-03    134.84       -.22538E-06** at limit **
  11  norm          1.4393        1.8499       -.15433E-07   -.37464E-06
  12  Prefactor     .10000E-03    12.839       -.99037E-07** at limit **
  13  norm          9.2047        16.601       -.85675E-07   -.75947E-05
  14  norm          1.0907        .98001       -.22384E-07   -.19488E-05
  15  norm          7.5225        9.1484       -.31711E-07    .20711E-04
  16  Prefactor     .10000E-03    2.4547       -.85170E-06** at limit **
  17  Prefactor     .10000E-03    47.740        .45739E-06** at limit **
  18  norm          .10000E-03    4.6065       -.10684E-07** at limit **
  19  Prefactor     .10000E-03    14.005       -.74695E-07** at limit **
  20  Prefactor     22.663        12.685       -.12925E-06   -.83210E-04
  21  norm          2.6139        2.2286       -.19348E-07   -.45343E-04
  22  norm          8.5616        7.0667       -.70803E-07    .10111E-04
  23  Prefactor     .10000E-03    35.917        .56276E-06** at limit **
  24  Prefactor     4.6205        5.8750        .66734E-07    .34730E-04
  25  norm          3.0257        3.4245       -.46705E-07   -.32718E-05
  26  Prefactor     1.8890        18.821        .57383E-06    .82445E-04
  27  norm          2.8661        2.6125       -.20370E-08    .56988E-04
  28  Normalizat    1.0434        .18417       -.26860E-06   -.37734E-04
  29  Prefactor     .87321        .21960        .12247E-05    .18713E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.4396
  Prefactor  = 0.0001
  Prefactor  = 55.3927
  norm       = 1.37252
  Prefactor  = 61.1415
  Prefactor  = 0.0001
  Prefactor  = 20.4381
  norm       = 0.0001
  Prefactor  = 0.149064
  Prefactor  = 0.000100002
  norm       = 1.43928
  Prefactor  = 0.0001
  norm       = 9.20472
  norm       = 1.09075
  norm       = 7.52253
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.6634
  norm       = 2.61393
  norm       = 8.56156
  Prefactor  = 0.0001
  Prefactor  = 4.62045
  norm       = 3.02574
  Prefactor  = 1.88898
  norm       = 2.86608
  Normalizat = 1.04342
  Prefactor  = 0.873209
 **********
 **   18 **HESSE 
 **********

 FCN=   4821.266     FROM HESSE     STATUS=OK           561 CALLS     4276 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.440        397.27        .11915E-03   -1.5031    
   2  Prefactor     .10000E-03    80.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     55.393        100.71        .53893E-04   -1.4218    
   4  norm          1.3725        1.6466        .95835E-04   -1.5474    
   5  Prefactor     61.141        65.917        .51308E-04   -1.4143    
   6  Prefactor     .10000E-03    13.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.438        96.031        .44586E-03   -1.4803    
   8  norm          .10000E-03    20.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .14906        77.094        .27782E-02   -1.5631    
  10  Prefactor     .10000E-03    139.76        .41367E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.4393        1.8342        .10429E-03   -1.5468    
  12  Prefactor     .10000E-03    12.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          9.2047        16.604        .13220E-03   -1.5101    
  14  norm          1.0907        .94943        .62177E-03   -1.5499    
  15  norm          7.5225        9.1435        .73115E-03   -1.5159    
  16  Prefactor     .10000E-03    4.6424        .19905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    47.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.6449        .14511E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     22.663        12.660        .84191E-04   -1.4755    
  21  norm          2.6139        2.2227        .91161E-04   -1.5385    
  22  norm          8.5616        7.0546        .13697E-03   -1.5123    
  23  Prefactor     .10000E-03    36.575        .21414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.6205        5.8670        .17718E-03   -1.5278    
  25  norm          3.0257        3.4138        .12807E-03   -1.5360    
  26  Prefactor     1.8890        18.906        .15145E-02   -1.5433    
  27  norm          2.8661        2.6047        .10300E-03   -1.5369    
  28  Normalizat    1.0434        .21697        .21644E-03   -.91590    
  29  Prefactor     .87321        .25692        .29148E-03   -.97084    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92284e-08
Minuit parameter uncertainties:
  1  135.815
  2  0.000302932
  3  101.018
  4  1.64667
  5  65.9962
  6  1.00165e-05
  7  88.8384
  8  1.08233e-05
  9  6.78646
  10  0.000923661
  11  1.83427
  12  1.13826e-05
  13  16.6119
  14  0.94944
  15  9.1452
  16  6.57821e-05
  17  8.06782e-05
  18  5.8853e-06
  19  6.71022e-07
  20  12.6616
  21  2.22277
  22  7.05525
  23  6.65337e-05
  24  5.8677
  25  3.414
  26  11.9568
  27  2.6048
  28  0.217156
  29  0.257272
Done.

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

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  6.578e-05  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:  8.732e-01  2.573e-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.043e+00  2.172e-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.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/147887/likelihoodResults_254620801_254880001_4FGL_J1153.4+4931_daily_bin59.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) = 4821.26701378
delta logL = -0.00102636879274

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4821.26598756
delta logL = -1.50306732394e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3978       1.0000          .0000       10.000    
     3 'Normalizat'    1.0435       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87322       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=   4821.266     FROM MIGRAD    STATUS=FAILED        95 CALLS      264 TOTAL
                     EDM=   .99E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10055E-03    46.184        .20115E-02** at limit **
   2  Index         2.3525        5.8390        .50000        .14660E-04
   3  Normalizat    1.0434        .13643E-01    .21645E-03    .18551E-03
   4  Prefactor     .87321        .17029E-01    .29149E-03    .10800E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4821.266     FROM SIMPLEX   STATUS=UNCHANGED    126 CALLS      390 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10055E-03    46.184        .36659E-03** at limit **
   2  Index         2.3525        5.8390        .35008E-03    .14660E-04
   3  Normalizat    1.0434        .13643E-01    .23886E-05    .18551E-03
   4  Prefactor     .87321        .17029E-01    .35526E-05    .10800E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4821.266     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      423 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10031E-03    212.09        .40230E-03** at limit **
   2  Index         2.3584        5.2176        .50000        .15767E-04
   3  Normalizat    1.0434        .30492E-01    .43290E-04    .18662E-03
   4  Prefactor     .87321        .38059E-01    .11659E-04    .10862E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010031
  Index      = 2.35836
  Normalizat = 1.04343
  Prefactor  = 0.873208
 **********
 **   18 **HESSE 
 **********

 FCN=   4821.266     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      452 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10031E-03    675.10        .80460E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3584        6.0962        .50000       -.55663    
   3  Normalizat    1.0434        .66191E-01    .86580E-05   -.91590    
   4  Prefactor     .87321        .82553E-01    .23319E-05   -.97084    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.69421e-08
Minuit parameter uncertainties:
  1  0.0292845
  2  830.083
  3  0.0661966
  4  0.0825643
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/147887': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4821.26598718
delta logL = 2.2800759325e-07

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  1.003e-04  2.928e-02  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  2.358e+00  8.301e+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:  8.732e-01  8.256e-02  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.043e+00  6.620e-02  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/147887/cmap_HighResolution_254620801_254880001_4FGL_J1153.4+4931_daily_bin59.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.36e-03', job_status='DONE', photon_flux_upper_limit='6.92e-08', time_completed='2021-09-04 15:10:33.989833', job_id='147887', GAL2='0.87', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1630793433.99', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='2.28e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='59' AND source_name='4FGL J1153.4+4931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:10:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 147887: <4FGL_J1153.4+4931_daily_bin59> in cluster <slac> Done

Job <4FGL_J1153.4+4931_daily_bin59> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 14:57:13 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 14:57: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 14:57:14 2021
Terminated at Sat Sep  4 15:10:34 2021
Results reported at Sat Sep  4 15:10:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.4+4931_daily_bin59 178.35 49.5169 254620801 254880001 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 :                                   776.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             340.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   800 sec.
    Turnaround time :                            801 sec.

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

