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


Performing analysis on: 4FGL_J1153.3-1104_daily_bin485
RA = 178.348, Dec = -11.075
tmin = 365040001, tmax = 365299201
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='140580', job_status='RUN', time_executed='2021-09-04 14:38:44.819936', time_epoch_executed='1630791524.82' WHERE source_name='4FGL J1153.3-1104' and cadence='daily' and bin_id='485'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/140580

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/140580/ft1_4FGL_J1153.3-1104_daily_bin485.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/140580/ft2_4FGL_J1153.3-1104_daily_bin485.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/140580/ft1_4FGL_J1153.3-1104_daily_bin485.fits outfile=/scratch/kocevski/140580/ft1_filteredMKT_4FGL_J1153.3-1104_daily_bin485.fits ra=178.348 dec=-11.075 rad=12.0 tmin=365040001.0 tmax=365299201.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.62
user 3.41
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/140580/ft1_filtered_4FGL_J1153.3-1104_daily_bin485.fits" evtable="EVENTS" scfile=/scratch/kocevski/140580/ft2_4FGL_J1153.3-1104_daily_bin485.fits sctable="SC_DATA" outfile=/scratch/kocevski/140580/ltcube_365040001_365299201_4FGL_J1153.3-1104_daily_bin485.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/140580/ft2_4FGL_J1153.3-1104_daily_bin485.fits
.....................!
real 12.13
user 11.69
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/140580/ft1_filtered_4FGL_J1153.3-1104_daily_bin485.fits evtable="EVENTS" scfile=/scratch/kocevski/140580/ft2_4FGL_J1153.3-1104_daily_bin485.fits sctable="SC_DATA" expcube=/scratch/kocevski/140580/ltcube_365040001_365299201_4FGL_J1153.3-1104_daily_bin485.fits outfile=/scratch/kocevski/140580/expmap_365040001_365299201_4FGL_J1153.3-1104_daily_bin485.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/140580/ltcube_365040001_365299201_4FGL_J1153.3-1104_daily_bin485.fits
.....................!
real 192.68
user 187.38
sys 4.91

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/140580/ft1_filtered_4FGL_J1153.3-1104_daily_bin485.fits scfile=/scratch/kocevski/140580/ft2_4FGL_J1153.3-1104_daily_bin485.fits outfile=/scratch/kocevski/140580/cmap_365040001_365299201_4FGL_J1153.3-1104_daily_bin485.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/140580/ft1_filtered_4FGL_J1153.3-1104_daily_bin485.fits scfile=/scratch/kocevski/140580/ft2_4FGL_J1153.3-1104_daily_bin485.fits outfile=/scratch/kocevski/140580/cmap_HighResolution_365040001_365299201_4FGL_J1153.3-1104_daily_bin485.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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/140580/ft1_filtered_4FGL_J1153.3-1104_daily_bin485.fits evtable="EVENTS" scfile=/scratch/kocevski/140580/ft2_4FGL_J1153.3-1104_daily_bin485.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/140580/Model_4FGL_J1153.3-1104_daily_bin485.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/140580/ft1_filtered_4FGL_J1153.3-1104_daily_bin485.fits.....................!
real 50.94
user 49.48
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/140580/ft1_filtered_4FGL_J1153.3-1104_daily_bin485.fits', '/scratch/kocevski/140580/ft2_4FGL_J1153.3-1104_daily_bin485.fits', expMap='/scratch/kocevski/140580/expmap_365040001_365299201_4FGL_J1153.3-1104_daily_bin485.fits', expCube='/scratch/kocevski/140580/ltcube_365040001_365299201_4FGL_J1153.3-1104_daily_bin485.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/140580/Model_4FGL_J1153.3-1104_daily_bin485.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/140580/ft1_filtered_4FGL_J1153.3-1104_daily_bin485.fits
Spacecraft file(s): /scratch/kocevski/140580/ft2_4FGL_J1153.3-1104_daily_bin485.fits
Exposure map: /scratch/kocevski/140580/expmap_365040001_365299201_4FGL_J1153.3-1104_daily_bin485.fits
Exposure cube: /scratch/kocevski/140580/ltcube_365040001_365299201_4FGL_J1153.3-1104_daily_bin485.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/140580/Model_4FGL_J1153.3-1104_daily_bin485.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) = 5624.60284685

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.304       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    10.034       1.0000         .10000E-03   10000.    
     6 'norm      '    4.3343       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10290E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.5168       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    83.266       1.0000         .10000E-03   10000.    
    12 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.721       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .15950E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    108.00       1.0000         .10000E-03   10000.    
    17 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.9994       1.0000         .10000E-03   10000.    
    20 'Prefactor '    71.566       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    166.07       1.0000         .10000E-03   10000.    
    23 'norm      '    3.4178       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.2155       1.0000         .10000E-03   10000.    
    26 'Prefactor '    39.777       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .61139       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1587       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=   5624.584     FROM MIGRAD    STATUS=CONVERGED   1195 CALLS     4601 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.304        18.752        .10981E-03   -.41928E-04
   2  Prefactor     .10000E-03    4.0604        .14752E-02** at limit **
   3  Prefactor     .10000E-03    2.4384        .11373E-02** at limit **
   4  Prefactor     .10000E-03    57.693        .18142E-02** at limit **
   5  norm          10.035        7.4287        .12650E-03    .19593E-04
   6  norm          4.3341        1.7345        .60182E-04   -.57805E-04
   7  Prefactor     .10000E-03    3.8099        .19159E-02** at limit **
   8  Prefactor     .10000E-03    24.172        .36285E-03** at limit **
   9  norm          2.5272        15.229        .25753E-03    .79992E-04
  10  Prefactor     .10000E-03    7.7035        .18142E-02** at limit **
  11  Prefactor     83.274        50.107        .44020E-04   -.17211E-03
  12  norm          .10000E-03    6.1395        .18000E-02** at limit **
  13  Prefactor     10.719        5.4982        .11483E-03    .15475E-03
  14  Prefactor     .10000E-03    18.360        .86308E-01** at limit **
  15  Prefactor     .10000E-03    7.2240        .18142E-02** at limit **
  16  Prefactor     108.02        35.355        .19350E-03    .66719E-03
  17  norm          .10000E-03    6.4873        .18142E-02** at limit **
  18  Prefactor     .10000E-03    27.764        .18142E-02** at limit **
  19  Prefactor     3.0227        33.073        .23438E-03   -.23234E-04
  20  Prefactor     71.559        53.620        .23727E-03    .13838E-03
  21  Prefactor     .10000E-03    8.4619        .18142E-02** at limit **
  22  Prefactor     166.12        117.38        .15650E-03   -.13243E-03
  23  norm          3.4177        2.7119        .53555E-03   -.53180E-03
  24  Prefactor     .10000E-03    2.6948        .12001E-02** at limit **
  25  Prefactor     8.2157        3.0572        .77028E-04    .35127E-04
  26  Prefactor     39.777        17.664        .63554E-04   -.48298E-05
  27  Normalizat    .61095        .31270        .41966E-03    .18400E-03
  28  Prefactor     1.1590        .19333        .20478E-03    .32470E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.3038
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.035
  norm       = 4.3341
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 2.52722
  Prefactor  = 0.0001
  Prefactor  = 83.2737
  norm       = 0.0001
  Prefactor  = 10.7191
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 108.023
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 3.02267
  Prefactor  = 71.5595
  Prefactor  = 0.0001
  Prefactor  = 166.118
  norm       = 3.41771
  Prefactor  = 0.0001
  Prefactor  = 8.21571
  Prefactor  = 39.7766
  Normalizat = 0.610949
  Prefactor  = 1.15896
 **********
 **   18 **HESSE 
 **********

 FCN=   5624.584     FROM HESSE     STATUS=OK           501 CALLS     5102 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.304        18.752        .43926E-05   -1.4978    
   2  Prefactor     .10000E-03    4.0605        .29504E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.4388        .22746E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    57.695        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          10.035        7.4286        .50598E-05   -1.5074    
   6  norm          4.3341        1.7345        .24073E-05   -1.5292    
   7  Prefactor     .10000E-03    3.8104        .38317E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    24.174        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.5272        15.146        .10301E-04   -1.5390    
  10  Prefactor     .10000E-03    7.7038        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     83.274        50.107        .88040E-05   -1.3880    
  12  norm          .10000E-03    6.1424        .36000E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.719        5.4975        .45931E-05   -1.5053    
  14  Prefactor     .10000E-03    17.400        .89799E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.2241        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     108.02        35.350        .38700E-04   -1.3626    
  17  norm          .10000E-03    6.4882        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    27.764        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.0227        33.011        .93752E-05   -1.5360    
  20  Prefactor     71.559        53.603        .47455E-04   -1.4014    
  21  Prefactor     .10000E-03    8.4623        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     166.12        117.38        .31301E-04   -1.3123    
  23  norm          3.4177        2.7119        .21422E-04   -1.5338    
  24  Prefactor     .10000E-03    2.6949        .24002E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     8.2157        3.0572        .30811E-05   -1.5135    
  26  Prefactor     39.777        17.663        .25422E-05   -1.4446    
  27  Normalizat    .61095        .31272        .16786E-04   -1.0752    
  28  Prefactor     1.1590        .19340        .40956E-04   -.87604    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79483e-09
Minuit parameter uncertainties:
  1  18.7603
  2  1.27593e-06
  3  1.05785e-05
  4  0.000228861
  5  7.42924
  6  1.73455
  7  0.000137909
  8  1.9992e-06
  9  12.3783
  10  7.72111e-06
  11  50.1327
  12  2.61407e-05
  13  5.49772
  14  0.000263852
  15  7.28416e-05
  16  35.357
  17  5.0146e-05
  18  0.000608973
  19  19.992
  20  53.6396
  21  7.37761e-05
  22  117.547
  23  2.71198
  24  5.9891e-06
  25  3.05723
  26  17.6656
  27  0.313635
  28  0.193519
Done.

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

Extracting fit parameters...

4FGL J1153.3-1104
   Spectrum: PowerLaw
289    Prefactor:  1.000e-04  2.639e-04  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.159e+00  1.935e-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.109e-01  3.136e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 178.348 -11.075
Photon Flux Upper Limit: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/140580/likelihoodResults_365040001_365299201_4FGL_J1153.3-1104_daily_bin485.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) = 5624.58382243
delta logL = -8.87237365532e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5624.43257128
delta logL = 0.151242286142

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7720       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4084       1.0000          .0000       10.000    
     3 'Normalizat'    .57644       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1686       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.

 FCN=   5624.433     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      308 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7753        81.960        .78640E-02    .63678E-03
   2  Index         3.4073        3.1549        .21314        .49213E-04
   3  Normalizat    .57640        .46999E-01    .97284E-01    .44710E-05
   4  Prefactor     1.1688        .30457E-01    .35420E-01   -.68603E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.77529
  Index      = 3.40732
  Normalizat = 0.576401
  Prefactor  = 1.16878
 **********
 **   18 **HESSE 
 **********

 FCN=   5624.433     FROM HESSE     STATUS=OK            31 CALLS      339 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7753        10.911        .18561E-03   -1.5441    
   2  Index         3.4073        2.2349        .74525E-02   -.32418    
   3  Normalizat    .57640        .29196        .43115E-03   -1.0900    
   4  Prefactor     1.1688        .18922        .20395E-03   -.87297    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42315e-08
Minuit parameter uncertainties:
  1  8.80433
  2  2.32731
  3  0.292746
  4  0.189328
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/140580': 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) = 5624.4325688
delta logL = 0.151244763873

Extracting fit parameters...

4FGL J1153.3-1104
   Spectrum: PowerLaw
289    Prefactor:  1.775e+00  8.804e+00  1.000e-04  1.000e+04 ( 1.000e-13)
290        Index:  3.407e+00  2.327e+00  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.169e+00  1.893e-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:  5.764e-01  2.927e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 178.348 -11.075

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/140580/cmap_HighResolution_365040001_365299201_4FGL_J1153.3-1104_daily_bin485.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.61e-03', job_status='DONE', photon_flux_upper_limit='1.12e-07', time_completed='2021-09-04 14:53:07.375952', job_id='140580', GAL2='1.17', fit_tolerance='1e-08', EG2='0.58', EG='0.61', time_epoch_completed='1630792387.38', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='1.51e-01', ts2='0.32', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='485' AND source_name='4FGL J1153.3-1104' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 14:53:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0142>
Subject: Job 140580: <4FGL_J1153.3-1104_daily_bin485> in cluster <slac> Done

Job <4FGL_J1153.3-1104_daily_bin485> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 14:36:39 2021
Job was executed on host(s) <bullet0142>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 14:36:40 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:36:40 2021
Terminated at Sat Sep  4 14:53:08 2021
Results reported at Sat Sep  4 14:53:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.3-1104_daily_bin485 178.348 -11.075 365040001 365299201 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 :                                   862.00 sec.
    Max Memory :                                 1035 MB
    Average Memory :                             298.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   987 sec.
    Turnaround time :                            989 sec.

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

