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


Performing analysis on: 4FGL_J1153.4+4931_daily_bin546
RA = 178.35, Dec = 49.5169
tmin = 380851201, tmax = 381110401
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='151111', job_status='RUN', time_executed='2021-09-04 15:08:59.539001', time_epoch_executed='1630793339.54' WHERE source_name='4FGL J1153.4+4931' and cadence='daily' and bin_id='546'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/151111

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/151111/ft1_4FGL_J1153.4+4931_daily_bin546.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/151111/ft2_4FGL_J1153.4+4931_daily_bin546.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/151111/ft1_4FGL_J1153.4+4931_daily_bin546.fits outfile=/scratch/kocevski/151111/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin546.fits ra=178.35 dec=49.5169 rad=12.0 tmin=380851201.0 tmax=381110401.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 3.46
user 3.26
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/151111/ft1_filtered_4FGL_J1153.4+4931_daily_bin546.fits evtable="EVENTS" scfile=/scratch/kocevski/151111/ft2_4FGL_J1153.4+4931_daily_bin546.fits sctable="SC_DATA" expcube=/scratch/kocevski/151111/ltcube_380851201_381110401_4FGL_J1153.4+4931_daily_bin546.fits outfile=/scratch/kocevski/151111/expmap_380851201_381110401_4FGL_J1153.4+4931_daily_bin546.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/151111/ltcube_380851201_381110401_4FGL_J1153.4+4931_daily_bin546.fits
.....................!
real 191.53
user 185.95
sys 5.12

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/151111/ft1_filtered_4FGL_J1153.4+4931_daily_bin546.fits scfile=/scratch/kocevski/151111/ft2_4FGL_J1153.4+4931_daily_bin546.fits outfile=/scratch/kocevski/151111/cmap_380851201_381110401_4FGL_J1153.4+4931_daily_bin546.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/151111/ft1_filtered_4FGL_J1153.4+4931_daily_bin546.fits scfile=/scratch/kocevski/151111/ft2_4FGL_J1153.4+4931_daily_bin546.fits outfile=/scratch/kocevski/151111/cmap_HighResolution_380851201_381110401_4FGL_J1153.4+4931_daily_bin546.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.821       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .27933E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.3004       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    76.627       1.0000         .10000E-03   10000.    
     8 'norm      '    .10846E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    39.352       1.0000         .10000E-03   10000.    
    11 'norm      '    3.4142       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.8178       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.3346       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    27.008       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.964       1.0000         .10000E-03   10000.    
    21 'norm      '    5.5043       1.0000         .10000E-03   10000.    
    22 'norm      '    7.5570       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11443E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    9.7462       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    5.7956       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3896       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .54085       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=   6514.259     FROM MIGRAD    STATUS=CONVERGED    711 CALLS     3670 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.774        71.284       -.73192E-04    .14814E-04
   2  Prefactor     .10000E-03    46.196        .39498E-04** at limit **
   3  Prefactor     .10000E-03    166.81       -.65549E-04** at limit **
   4  norm          2.3006        1.6128       -.68300E-07    .80540E-04
   5  Prefactor     .10000E-03    31.684       -.14258E-04** at limit **
   6  Prefactor     .10000E-03    10.533       -.20621E-05** at limit **
   7  Prefactor     76.583        101.91       -.47694E-04    .37011E-04
   8  norm          .10000E-03    65.219       -.50157E-04** at limit **
   9  Prefactor     .10000E-03    4.1184       -.13255E-05** at limit **
  10  Prefactor     39.357        22.744        .12274E-05    .26083E-04
  11  norm          3.4151        3.3045       -.55794E-06   -.33577E-03
  12  Prefactor     .10000E-03    52.754        .21116E-04** at limit **
  13  norm          .10000E-03    4.8388        .10476E-06** at limit **
  14  norm          .10000E-03    .37325       -.24420E-06** at limit **
  15  norm          5.8189        8.3104       -.56498E-06   -.26695E-04
  16  Prefactor     6.3350        3.9837       -.12084E-05   -.18031E-03
  17  Prefactor     .10000E-03    31.847       -.13007E-04** at limit **
  18  norm          .10000E-03    4.3048        .55766E-07** at limit **
  19  Prefactor     27.008        20.800       -.47541E-06   -.24107E-04
  20  Prefactor     13.962        8.4993       -.38341E-06   -.27355E-04
  21  norm          5.5046        2.4013       -.24547E-06   -.13761E-03
  22  norm          7.5531        6.4530       -.15533E-05   -.29105E-03
  23  Prefactor     .10000E-03    35.291        .13488E-04** at limit **
  24  Prefactor     .10000E-03    3.8252        .49356E-06** at limit **
  25  norm          9.7473        3.8083       -.77199E-06   -.43461E-04
  26  Prefactor     .10000E-03    12.476        .28036E-05** at limit **
  27  norm          5.7959        2.7265       -.34130E-06   -.16715E-03
  28  Normalizat    1.3895        .17625        .12175E-05    .90821E-04
  29  Prefactor     .54081        .20987        .82987E-05    .12317E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.7739
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.30062
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 76.5826
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 39.3566
  norm       = 3.41507
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.81894
  Prefactor  = 6.33505
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 27.0077
  Prefactor  = 13.9617
  norm       = 5.50457
  norm       = 7.55306
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.74734
  Prefactor  = 0.0001
  norm       = 5.79592
  Normalizat = 1.38953
  Prefactor  = 0.54081
 **********
 **   18 **HESSE 
 **********

 FCN=   6514.259     FROM HESSE     STATUS=OK           551 CALLS     4221 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.774        71.346        .71031E-04   -1.4580    
   2  Prefactor     .10000E-03    46.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    167.24        .21420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.3006        1.6139        .83629E-04   -1.5405    
   5  Prefactor     .10000E-03    31.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     76.583        101.81        .22936E-03   -1.3955    
   8  norm          .10000E-03    65.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.1711        .15985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     39.357        22.763        .63896E-04   -1.4452    
  11  norm          3.4151        3.2786        .13889E-03   -1.5338    
  12  Prefactor     .10000E-03    53.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.8390        .17340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .65186        .94692E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.8189        8.2844        .16651E-03   -1.5225    
  16  Prefactor     6.3350        3.9837        .11306E-03   -1.5205    
  17  Prefactor     .10000E-03    31.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.3829        .32580E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     27.008        20.823        .77087E-04   -1.4668    
  20  Prefactor     13.962        8.4714        .10719E-03   -1.4960    
  21  norm          5.5046        2.4077        .78979E-04   -1.5239    
  22  norm          7.5531        6.4495        .14588E-03   -1.5158    
  23  Prefactor     .10000E-03    35.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.8712        .15381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          9.7473        3.8006        .95605E-04   -1.5083    
  26  Prefactor     .10000E-03    12.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          5.7959        2.7248        .88094E-04   -1.5226    
  28  Normalizat    1.3895        .20341        .21012E-03   -.80932    
  29  Prefactor     .54081        .23890        .38272E-03   -1.1014    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.967e-10
Minuit parameter uncertainties:
  1  71.5382
  2  1.1758e-05
  3  1.14573e-05
  4  1.61395
  5  0.00019742
  6  2.49595e-05
  7  102.046
  8  0.000575751
  9  2.5402e-05
  10  22.7684
  11  3.27882
  12  0.000273308
  13  2.10128e-06
  14  1.90434e-05
  15  8.28604
  16  3.98388
  17  7.31474e-05
  18  3.68019e-05
  19  20.8282
  20  8.47208
  21  2.4077
  22  6.45011
  23  0.000191765
  24  9.95084e-06
  25  3.80073
  26  5.27305e-05
  27  2.7249
  28  0.20353
  29  0.239344
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
702    Prefactor:  5.408e-01  2.393e-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.390e+00  2.035e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.26
Ra Dec: 178.350 49.517
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 6.20e-08 +/- 3.90e-08
Energy Flux (Fixed Index): 2.00e-05 +/- 1.26e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6514.1820555
delta logL = 0.0766110938248

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6514.17345907
delta logL = 0.0852075222383

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6514.173     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      267 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1266        106.47        .37577E-02    .13556E-03
   2  Index         2.2193        6.0717        .18170        .42809E-04
   3  Normalizat    1.4002        .10382        .47385E-01   -.11919E-05
   4  Prefactor     .53085        .11699        .87127E-01    .39319E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.12665
  Index      = 2.21933
  Normalizat = 1.40025
  Prefactor  = 0.530852
 **********
 **   18 **HESSE 
 **********

 FCN=   6514.173     FROM HESSE     STATUS=OK            33 CALLS      300 TOTAL
                     EDM=   .57E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1266        4.4323        .12144E-03   -1.5174    
   2  Index         2.2193        .45648        .67719E-02   -.58973    
   3  Normalizat    1.4002        .19983        .20947E-03   -.80621    
   4  Prefactor     .53085        .23678        .38603E-03   -1.1058    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.72281e-13
Minuit parameter uncertainties:
  1  4.43248
  2  0.457402
  3  0.199943
  4  0.237223
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/151111': 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) = 6514.17345733
delta logL = 0.0852092690302

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  7.127e+00  4.432e+00  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  2.219e+00  4.574e-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:  5.309e-01  2.372e-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.400e+00  1.999e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.47
Ra Dec: 178.350 49.517
Photon Index (Free Index): 2.22 +/- 0.46
Photon Flux (Free Index): 5.45e-08 +/- 3.72e-08
Energy Flux (Free Index): 2.36e-05 +/- 1.77e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/151111/cmap_HighResolution_380851201_381110401_4FGL_J1153.4+4931_daily_bin546.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.20e-08', energy_flux2='2.36e-05', photon_flux_error='3.90e-08', dlogl='8.52e-02', energy_flux='2.00e-05', photon_flux2='5.45e-08', job_status='DONE', time_completed='2021-09-04 15:23:01.543531', photon_index_error2='0.46', photon_index2='2.22', ts='6.26', fit_tolerance='1e-08', GAL='0.54', photon_index_error='0.00', energy_flux_error2='1.77e-05', EG='1.39', time_epoch_completed='1630794181.54', return_code='0', job_id='151111', GAL2='0.53', EG2='1.40', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='3.72e-08', ts2='6.47', photon_index='2.41' WHERE bin_id='546' AND source_name='4FGL J1153.4+4931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:23:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 151111: <4FGL_J1153.4+4931_daily_bin546> in cluster <slac> Done

Job <4FGL_J1153.4+4931_daily_bin546> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 15:06:34 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 15:06:36 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:06:36 2021
Terminated at Sat Sep  4 15:23:02 2021
Results reported at Sat Sep  4 15:23:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.4+4931_daily_bin546 178.35 49.5169 380851201 381110401 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 :                                   841.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             300.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            988 sec.

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

