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


Performing analysis on: 4FGL_J1153.3-1104_daily_bin1432
RA = 178.348, Dec = -11.075
tmin = 610502401, tmax = 610761601
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='147567', job_status='RUN', time_executed='2021-09-04 15:00:28.214943', time_epoch_executed='1630792828.21' WHERE source_name='4FGL J1153.3-1104' and cadence='daily' and bin_id='1432'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/147567

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/147567/ft1_4FGL_J1153.3-1104_daily_bin1432.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/147567/ft2_4FGL_J1153.3-1104_daily_bin1432.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/147567/ft1_4FGL_J1153.3-1104_daily_bin1432.fits outfile=/scratch/kocevski/147567/ft1_filteredMKT_4FGL_J1153.3-1104_daily_bin1432.fits ra=178.348 dec=-11.075 rad=12.0 tmin=610502401.0 tmax=610761601.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.69
user 3.42
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/147567/ft2_4FGL_J1153.3-1104_daily_bin1432.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/147567/ft2_4FGL_J1153.3-1104_daily_bin1432.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/147567/ft1_filteredMKT_4FGL_J1153.3-1104_daily_bin1432.fits evtable="EVENTS" outfile="/scratch/kocevski/147567/ft1_filtered_4FGL_J1153.3-1104_daily_bin1432.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.58
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/147567/ft1_filtered_4FGL_J1153.3-1104_daily_bin1432.fits" evtable="EVENTS" scfile=/scratch/kocevski/147567/ft2_4FGL_J1153.3-1104_daily_bin1432.fits sctable="SC_DATA" outfile=/scratch/kocevski/147567/ltcube_610502401_610761601_4FGL_J1153.3-1104_daily_bin1432.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/147567/ft2_4FGL_J1153.3-1104_daily_bin1432.fits
.....................!
real 12.12
user 11.45
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/147567/ft1_filtered_4FGL_J1153.3-1104_daily_bin1432.fits evtable="EVENTS" scfile=/scratch/kocevski/147567/ft2_4FGL_J1153.3-1104_daily_bin1432.fits sctable="SC_DATA" expcube=/scratch/kocevski/147567/ltcube_610502401_610761601_4FGL_J1153.3-1104_daily_bin1432.fits outfile=/scratch/kocevski/147567/expmap_610502401_610761601_4FGL_J1153.3-1104_daily_bin1432.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/147567/ltcube_610502401_610761601_4FGL_J1153.3-1104_daily_bin1432.fits
.....................!
real 190.74
user 186.19
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 197 point sources and 0 extended sources

Setting source of interest to:
4FGL J1153.3-1104 @ 178.348 -11.075

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/147567/ft1_filtered_4FGL_J1153.3-1104_daily_bin1432.fits scfile=/scratch/kocevski/147567/ft2_4FGL_J1153.3-1104_daily_bin1432.fits outfile=/scratch/kocevski/147567/cmap_610502401_610761601_4FGL_J1153.3-1104_daily_bin1432.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.348 yref=-11.075 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/147567/ft1_filtered_4FGL_J1153.3-1104_daily_bin1432.fits scfile=/scratch/kocevski/147567/ft2_4FGL_J1153.3-1104_daily_bin1432.fits outfile=/scratch/kocevski/147567/cmap_HighResolution_610502401_610761601_4FGL_J1153.3-1104_daily_bin1432.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.348 yref=-11.075 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.56
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/147567/ft1_filtered_4FGL_J1153.3-1104_daily_bin1432.fits evtable="EVENTS" scfile=/scratch/kocevski/147567/ft2_4FGL_J1153.3-1104_daily_bin1432.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/147567/Model_4FGL_J1153.3-1104_daily_bin1432.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/147567/ft1_filtered_4FGL_J1153.3-1104_daily_bin1432.fits.....................!
real 59.99
user 58.05
sys 1.59

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/147567/ft1_filtered_4FGL_J1153.3-1104_daily_bin1432.fits', '/scratch/kocevski/147567/ft2_4FGL_J1153.3-1104_daily_bin1432.fits', expMap='/scratch/kocevski/147567/expmap_610502401_610761601_4FGL_J1153.3-1104_daily_bin1432.fits', expCube='/scratch/kocevski/147567/ltcube_610502401_610761601_4FGL_J1153.3-1104_daily_bin1432.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/147567/Model_4FGL_J1153.3-1104_daily_bin1432.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1153.3-1104'

4FGL J1153.3-1104
   Spectrum: PowerLaw
289    Prefactor:  3.746e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
290        Index:  2.336e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
291        Scale:  1.208e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/147567/ft1_filtered_4FGL_J1153.3-1104_daily_bin1432.fits
Spacecraft file(s): /scratch/kocevski/147567/ft2_4FGL_J1153.3-1104_daily_bin1432.fits
Exposure map: /scratch/kocevski/147567/expmap_610502401_610761601_4FGL_J1153.3-1104_daily_bin1432.fits
Exposure cube: /scratch/kocevski/147567/ltcube_610502401_610761601_4FGL_J1153.3-1104_daily_bin1432.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/147567/Model_4FGL_J1153.3-1104_daily_bin1432.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) = 6953.20663333

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9331       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .16200E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6950       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    16.094       1.0000         .10000E-03   10000.    
     6 'norm      '    1.2950       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .26414E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.590       1.0000         .10000E-03   10000.    
     9 'norm      '    .10182E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10226E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    51.209       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    49.397       1.0000         .10000E-03   10000.    
    17 'norm      '    7.2265       1.0000         .10000E-03   10000.    
    18 'Prefactor '    46.168       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .15598E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.7291       1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.411       1.0000         .10000E-03   10000.    
    23 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.0569       1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.3176       1.0000         .10000E-03   10000.    
    26 'Prefactor '    28.853       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .66125       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0981       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6310E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6953.194     FROM MIGRAD    STATUS=CONVERGED    120 CALLS     2975 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9416        2.3475       -.48278E-05    .11409E-02
   2  Prefactor     .10000E-03    42.322       -.47926E-05** at limit **
   3  Prefactor     1.6927        5.2624        .20466E-05   -.38438E-03
   4  Prefactor     .10001E-03    10.684        .22514E-04** at limit **
   5  norm          16.106        2.9117       -.34532E-05    .37471E-02
   6  norm          1.2949        .95642       -.33621E-06    .10890E-03
   7  Prefactor     .10000E-03    10.930        .77380E-05** at limit **
   8  Prefactor     19.587        1.4581        .16424E-05   -.22361E-02
   9  norm          .10004E-03    5.8290        .23555E-05** at limit **
  10  Prefactor     .10006E-03    10.452        .63236E-05** at limit **
  11  Prefactor     .10007E-03    8.5234       -.16540E-04** at limit **
  12  norm          .10006E-03    8.0840       -.16254E-04** at limit **
  13  Prefactor     .10000E-03    2.6460       -.67250E-06** at limit **
  14  Prefactor     51.213        1.5279       -.11444E-06   -.38635E-02
  15  Prefactor     .10002E-03    10.686       -.35843E-04** at limit **
  16  Prefactor     49.414        4.8507       -.23236E-05   -.16205E-02
  17  norm          7.2220        4.9061        .10130E-05   -.13565E-04
  18  Prefactor     46.201        8.9483        .48147E-05    .36006E-02
  19  Prefactor     .10002E-03    113.11        .20871E-04** at limit **
  20  Prefactor     .10000E-03    16.093        .26102E-04** at limit **
  21  Prefactor     3.7302        1.1064        .40636E-06    .24718E-03
  22  Prefactor     12.611        56.024        .59834E-04   -.50405E-03
  23  norm          .10000E-03    1.6111       -.54975E-05** at limit **
  24  Prefactor     4.0537        1.3369       -.20548E-05   -.65528E-04
  25  Prefactor     6.3181        2.6225        .71261E-06    .48616E-04
  26  Prefactor     28.862        1.2700        .29903E-06   -.27643E-02
  27  Normalizat    .66146        .23225       -.66400E-05    .28103E-04
  28  Prefactor     1.0980        .15397       -.47927E-06    .35309E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.94157
  Prefactor  = 0.0001
  Prefactor  = 1.69271
  Prefactor  = 0.000100012
  norm       = 16.1062
  norm       = 1.29488
  Prefactor  = 0.0001
  Prefactor  = 19.5874
  norm       = 0.000100043
  Prefactor  = 0.000100064
  Prefactor  = 0.000100066
  norm       = 0.000100056
  Prefactor  = 0.0001
  Prefactor  = 51.2133
  Prefactor  = 0.000100016
  Prefactor  = 49.4141
  norm       = 7.222
  Prefactor  = 46.201
  Prefactor  = 0.000100021
  Prefactor  = 0.0001
  Prefactor  = 3.73019
  Prefactor  = 12.6106
  norm       = 0.0001
  Prefactor  = 4.05367
  Prefactor  = 6.3181
  Prefactor  = 28.8622
  Normalizat = 0.661459
  Prefactor  = 1.09802
 **********
 **   18 **HESSE 
 **********

 FCN=   6953.194     FROM HESSE     STATUS=OK           603 CALLS     3578 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9416        11.443        .41214E-02   -1.5220    
   2  Prefactor     .10000E-03    9.3996        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.6927        6.2150        .80809E-02   -1.5448    
   4  Prefactor     .10001E-03    11.062        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          16.106        11.040        .24959E-02   -1.4905    
   6  norm          1.2949        .97401        .97188E-02   -1.5480    
   7  Prefactor     .10000E-03    2.1482        .68458E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     19.587        11.028        .22623E-02   -1.4823    
   9  norm          .10004E-03    14.851        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10006E-03    14.152        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10007E-03    17.247        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10006E-03    4.0083        .54927E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.5829        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     51.213        19.236        .14011E-02   -1.4275    
  15  Prefactor     .10002E-03    11.189        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     49.414        23.109        .14264E-02   -1.4301    
  17  norm          7.2220        5.8580        .37303E-02   -1.5170    
  18  Prefactor     46.201        40.657        .14752E-02   -1.4347    
  19  Prefactor     .10002E-03    12.037        .91008E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    18.655        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.7302        20.499        .52275E-02   -1.5322    
  22  Prefactor     12.611        59.337        .28427E-02   -1.4998    
  23  norm          .10000E-03    1.5654        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.0537        7.4040        .50046E-02   -1.5305    
  25  Prefactor     6.3181        2.9936        .39924E-02   -1.5205    
  26  Prefactor     28.862        15.739        .18646E-02   -1.4633    
  27  Normalizat    .66146        .22898        .84489E-01   -1.0543    
  28  Prefactor     1.0980        .13824        .37659E-01   -.89530    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54077e-06
Minuit parameter uncertainties:
  1  11.4472
  2  5.11618e-05
  3  6.21732
  4  0.000736026
  5  11.0414
  6  0.97402
  7  3.75333e-06
  8  11.0291
  9  0.00159536
  10  0.00190982
  11  0.00213143
  12  0.00094568
  13  1.18093e-05
  14  19.2379
  15  0.000839953
  16  23.1136
  17  5.85847
  18  40.6813
  19  0.00101114
  20  7.30999e-05
  21  17.498
  22  54.7981
  23  1.0704e-05
  24  7.4057
  25  2.99365
  26  15.7414
  27  0.229308
  28  0.138285
Done.

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

Extracting fit parameters...

4FGL J1153.3-1104
   Spectrum: PowerLaw
289    Prefactor:  5.121e+01  1.924e+01  1.000e-04  1.000e+04 ( 1.000e-13)
290        Index:  2.336e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
291        Scale:  1.208e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
628    Prefactor:  1.098e+00  1.383e-01  0.000e+00  1.000e+01 ( 1.000e+00)
629        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
630        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
627   Normalization:  6.615e-01  2.293e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 25.16
Ra Dec: 178.348 -11.075
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 1.29e-07 +/- 4.86e-08
Energy Flux (Fixed Index): 4.64e-05 +/- 1.74e-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) = 6951.34088082
delta logL = 1.85269759228

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6951.15105645
delta logL = 2.04252195392

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    77.175       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7676       1.0000          .0000       10.000    
     3 'Normalizat'    .70939       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0805       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6310E+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.

 FCN=   6951.151     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      248 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     77.193        30.200        .22855E-03   -.13407E-03
   2  Index         1.7671        .26284        .51472E-02   -.10909E-03
   3  Normalizat    .70931        .22976        .36226E-03   -.59201E-03
   4  Prefactor     1.0807        .15253        .19716E-03   -.92609E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 77.1927
  Index      = 1.76706
  Normalizat = 0.709308
  Prefactor  = 1.08072
 **********
 **   18 **HESSE 
 **********

 FCN=   6951.151     FROM HESSE     STATUS=OK            23 CALLS      271 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     77.193        30.170        .45710E-04   -1.3949    
   2  Index         1.7671        .26253        .20589E-03   -.70310    
   3  Normalizat    .70931        .22987        .14490E-04   -1.0353    
   4  Prefactor     1.0807        .15261        .39432E-04   -.90085    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.08351e-10
Minuit parameter uncertainties:
  1  30.1757
  2  0.262735
  3  0.230179
  4  0.152675
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/147567': 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) = 6951.15105176
delta logL = 2.04252664325

Extracting fit parameters...

4FGL J1153.3-1104
   Spectrum: PowerLaw
289    Prefactor:  7.719e+01  3.018e+01  1.000e-04  1.000e+04 ( 1.000e-13)
290        Index:  1.767e+00  2.627e-01  0.000e+00  1.000e+01 (-1.000e+00)
291        Scale:  1.208e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
628    Prefactor:  1.081e+00  1.527e-01  0.000e+00  1.000e+01 ( 1.000e+00)
629        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
630        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
627   Normalization:  7.093e-01  2.302e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 29.20
Ra Dec: 178.348 -11.075
Photon Index (Free Index): 1.77 +/- 0.26
Photon Flux (Free Index): 8.19e-08 +/- 4.05e-08
Energy Flux (Free Index): 1.08e-04 +/- 6.89e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -9.398e-02 [aplpy.core]
INFO: Auto-setting vmax to  1.043e+00 [aplpy.core]
Saving /scratch/kocevski/147567/cmap_HighResolution_610502401_610761601_4FGL_J1153.3-1104_daily_bin1432.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.29e-07', energy_flux2='1.08e-04', photon_flux_error='4.86e-08', dlogl='2.04e+00', energy_flux='4.64e-05', photon_flux2='8.19e-08', job_status='DONE', time_completed='2021-09-04 15:12:40.113732', photon_index_error2='0.26', photon_index2='1.77', ts='25.16', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='6.89e-05', EG='0.66', time_epoch_completed='1630793560.11', return_code='0', job_id='147567', GAL2='1.08', EG2='0.71', return_code2='0', energy_flux_error='1.74e-05', photon_flux_error2='4.05e-08', ts2='29.20', photon_index='2.34' WHERE bin_id='1432' AND source_name='4FGL J1153.3-1104' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:12:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0188>
Subject: Job 147567: <4FGL_J1153.3-1104_daily_bin1432> in cluster <slac> Done

Job <4FGL_J1153.3-1104_daily_bin1432> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 14:56:46 2021
Job was executed on host(s) <bullet0188>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 14:56:48 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:56:48 2021
Terminated at Sat Sep  4 15:12:40 2021
Results reported at Sat Sep  4 15:12:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.3-1104_daily_bin1432 178.348 -11.075 610502401 610761601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1153.3-1104 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   729.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             287.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            954 sec.

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

