/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 124 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 = 7463
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1153.4+4931_daily_bin439
RA = 178.35, Dec = 49.5169
tmin = 353116801, tmax = 353376001
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='150956', job_status='RUN', time_executed='2021-09-04 15:08:38.368846', time_epoch_executed='1630793318.37' WHERE source_name='4FGL J1153.4+4931' and cadence='daily' and bin_id='439'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/150956

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/150956/ft1_4FGL_J1153.4+4931_daily_bin439.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/150956/ft2_4FGL_J1153.4+4931_daily_bin439.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/150956/ft1_4FGL_J1153.4+4931_daily_bin439.fits outfile=/scratch/kocevski/150956/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin439.fits ra=178.35 dec=49.5169 rad=12.0 tmin=353116801.0 tmax=353376001.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.49
user 3.22
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/150956/ft2_4FGL_J1153.4+4931_daily_bin439.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/150956/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin439.fits evtable="EVENTS" outfile="/scratch/kocevski/150956/ft1_filtered_4FGL_J1153.4+4931_daily_bin439.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/150956/ft1_filtered_4FGL_J1153.4+4931_daily_bin439.fits" evtable="EVENTS" scfile=/scratch/kocevski/150956/ft2_4FGL_J1153.4+4931_daily_bin439.fits sctable="SC_DATA" outfile=/scratch/kocevski/150956/ltcube_353116801_353376001_4FGL_J1153.4+4931_daily_bin439.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/150956/ft2_4FGL_J1153.4+4931_daily_bin439.fits
.....................!
real 12.17
user 11.74
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/150956/ft1_filtered_4FGL_J1153.4+4931_daily_bin439.fits evtable="EVENTS" scfile=/scratch/kocevski/150956/ft2_4FGL_J1153.4+4931_daily_bin439.fits sctable="SC_DATA" expcube=/scratch/kocevski/150956/ltcube_353116801_353376001_4FGL_J1153.4+4931_daily_bin439.fits outfile=/scratch/kocevski/150956/expmap_353116801_353376001_4FGL_J1153.4+4931_daily_bin439.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/150956/ltcube_353116801_353376001_4FGL_J1153.4+4931_daily_bin439.fits
.....................!
real 192.77
user 186.83
sys 4.96

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/150956/ft1_filtered_4FGL_J1153.4+4931_daily_bin439.fits scfile=/scratch/kocevski/150956/ft2_4FGL_J1153.4+4931_daily_bin439.fits outfile=/scratch/kocevski/150956/cmap_353116801_353376001_4FGL_J1153.4+4931_daily_bin439.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/150956/ft1_filtered_4FGL_J1153.4+4931_daily_bin439.fits scfile=/scratch/kocevski/150956/ft2_4FGL_J1153.4+4931_daily_bin439.fits outfile=/scratch/kocevski/150956/cmap_HighResolution_353116801_353376001_4FGL_J1153.4+4931_daily_bin439.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .12843       1.0000         .10000E-03   10000.    
     5 'Prefactor '    41.813       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0554       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    23.972       1.0000         .10000E-03   10000.    
    14 'norm      '    1.9251       1.0000         .10000E-03   10000.    
    15 'norm      '    7.6196       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.1453       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.8135       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.4042       1.0000         .10000E-03   10000.    
    22 'norm      '    4.5862       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    5.3254       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    5.1896       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0696       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .71453       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5746.530     FROM MIGRAD    STATUS=CONVERGED    114 CALLS     3065 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10063E-03    13.372        .40660E-05** at limit **
   2  Prefactor     .10017E-03    12.875        .23763E-05** at limit **
   3  Prefactor     .10055E-03    18.005       -.13123E-06** at limit **
   4  norm          .12836        2.4765       -.10096E-05   -.45165E-04
   5  Prefactor     41.814        1.0015       -.11562E-07    .49853E-04
   6  Prefactor     .10000E-03    15.630       -.53311E-05** at limit **
   7  Prefactor     .10003E-03    20.409       -.16823E-04** at limit **
   8  norm          .10018E-03    10.976        .73676E-05** at limit **
   9  Prefactor     4.0568        5.3574        .71056E-05    .12293E-02
  10  Prefactor     .10000E-03    9.1604        .53821E-06** at limit **
  11  norm          .10000E-03    2.4368       -.32885E-06** at limit **
  12  Prefactor     .10000E-03    11.503        .62271E-05** at limit **
  13  norm          23.972        1.0237       -.26204E-07   -.16146E-04
  14  norm          1.9247        1.1021        .55039E-07   -.43268E-04
  15  norm          7.6188        1.0271       -.81026E-07   -.22149E-03
  16  Prefactor     2.1458        3.2407        .57243E-06   -.55590E-05
  17  Prefactor     .10176E-03    58.306       -.20945E-04** at limit **
  18  norm          4.8142        4.7996       -.13567E-05   -.16824E-03
  19  Prefactor     .10004E-03    9.3086        .98078E-06** at limit **
  20  Prefactor     .10000E-03    2.4770       -.41165E-06** at limit **
  21  norm          3.4043        2.0740        .45246E-07   -.12763E-03
  22  norm          4.5880        2.6162       -.13607E-05    .13650E-02
  23  Prefactor     .10006E-03    14.039        .11039E-04** at limit **
  24  Prefactor     .10000E-03    3.7102        .30623E-06** at limit **
  25  norm          5.3251        3.0454        .37292E-07    .27015E-04
  26  Prefactor     .10035E-03    13.946       -.51934E-06** at limit **
  27  norm          5.1897        2.6454        .85957E-07   -.10847E-04
  28  Normalizat    1.0696        .18954       -.25686E-05   -.49618E-04
  29  Prefactor     .71454        .22681        .24728E-05   -.21459E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100632
  Prefactor  = 0.000100169
  Prefactor  = 0.000100552
  norm       = 0.128356
  Prefactor  = 41.8135
  Prefactor  = 0.000100002
  Prefactor  = 0.000100034
  norm       = 0.000100185
  Prefactor  = 4.05683
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 23.9725
  norm       = 1.92471
  norm       = 7.61876
  Prefactor  = 2.14581
  Prefactor  = 0.000101765
  norm       = 4.8142
  Prefactor  = 0.000100035
  Prefactor  = 0.0001
  norm       = 3.40428
  norm       = 4.58797
  Prefactor  = 0.000100061
  Prefactor  = 0.0001
  norm       = 5.32507
  Prefactor  = 0.000100352
  norm       = 5.18966
  Normalizat = 1.06956
  Prefactor  = 0.714538
 **********
 **   18 **HESSE 
 **********

 FCN=   5746.530     FROM HESSE     STATUS=OK           613 CALLS     3678 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10063E-03    64.705        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10017E-03    46.501        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10055E-03    70.163        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .12836        1.1462        .28864E-01   -1.5636    
   5  Prefactor     41.814        52.329        .15498E-02   -1.4414    
   6  Prefactor     .10000E-03    15.727        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10003E-03    26.505        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10018E-03    56.066        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.0568        5.7318        .50056E-02   -1.5305    
  10  Prefactor     .10000E-03    9.1500        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.3361        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    50.991        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          23.972        17.824        .20453E-02   -1.4728    
  14  norm          1.9247        1.1117        .74857E-02   -1.5430    
  15  norm          7.6188        8.1175        .36320E-02   -1.5156    
  16  Prefactor     2.1458        3.2663        .70340E-02   -1.5415    
  17  Prefactor     .10176E-03    90.632        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.8142        4.8839        .45842E-02   -1.5269    
  19  Prefactor     .10004E-03    22.017        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.4738        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.4043        2.0758        .54817E-02   -1.5339    
  22  norm          4.5880        6.8714        .46990E-02   -1.5280    
  23  Prefactor     .10006E-03    19.484        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.6794        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          5.3251        3.0499        .43540E-02   -1.5246    
  26  Prefactor     .10035E-03    43.428        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          5.1897        2.6472        .44116E-02   -1.5252    
  28  Normalizat    1.0696        .16459        .39399E-01   -.90735    
  29  Prefactor     .71454        .19473        .69048E-01   -1.0296    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0209e-07
Minuit parameter uncertainties:
  1  0.0128046
  2  0.00560805
  3  0.0124593
  4  0.766851
  5  52.387
  6  0.000374821
  7  0.00188821
  8  0.00643954
  9  5.73262
  10  9.95002e-06
  11  2.30801e-07
  12  0.000226176
  13  17.8275
  14  1.1117
  15  8.11867
  16  3.26653
  17  0.0253332
  18  4.88428
  19  0.00175651
  20  1.45691e-06
  21  2.07585
  22  6.87257
  23  0.00218465
  24  4.95042e-06
  25  3.05002
  26  0.00783053
  27  2.64731
  28  0.164669
  29  0.194916
Done.

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

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  2.146e+00  3.267e+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:  7.145e-01  1.949e-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.070e+00  1.647e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.56
Ra Dec: 178.350 49.517
Photon Flux Upper Limit: 9.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/150956/likelihoodResults_353116801_353376001_4FGL_J1153.4+4931_daily_bin439.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): 0
logL (Free Index) = 5746.52458549
delta logL = 0.00588086521384

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5746.52270858
delta logL = 0.00775776994578

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9547       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5685       1.0000          .0000       10.000    
     3 'Normalizat'    1.0651       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71849       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=   5746.523     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      199 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9553        194.31        .74194E-02    .65332E-03
   2  Index         2.5678        7.6335        .23301E-01    .40794E-04
   3  Normalizat    1.0652        .11831        .39642E-01    .43604E-05
   4  Prefactor     .71841        .18009        .68879E-01    .20880E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.95526
  Index      = 2.56781
  Normalizat = 1.06518
  Prefactor  = 0.718412
 **********
 **   18 **HESSE 
 **********

 FCN=   5746.523     FROM HESSE     STATUS=OK            31 CALLS      230 TOTAL
                     EDM=   .55E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9553        3.5223        .14710E-03   -1.5428    
   2  Index         2.5678        1.2768        .93206E-03   -.50801    
   3  Normalizat    1.0652        .18825        .20868E-03   -.90878    
   4  Prefactor     .71841        .22774        .30479E-03   -1.0281    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.50432e-14
Minuit parameter uncertainties:
  1  3.52266
  2  1.29574
  3  0.188369
  4  0.228037
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/150956': 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) = 5746.52270838
delta logL = 0.00775797127062

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  1.955e+00  3.523e+00  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  2.568e+00  1.296e+00  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:  7.184e-01  2.280e-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.065e+00  1.884e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.56
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/150956/cmap_HighResolution_353116801_353376001_4FGL_J1153.4+4931_daily_bin439.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.26e-03', job_status='DONE', photon_flux_upper_limit='9.39e-08', time_completed='2021-09-04 15:22:01.882901', job_id='150956', GAL2='0.72', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1630794121.88', return_code2='0', ts='0.56', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='7.76e-03', ts2='0.57', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='439' AND source_name='4FGL J1153.4+4931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:22:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 150956: <4FGL_J1153.4+4931_daily_bin439> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.4+4931_daily_bin439 178.35 49.5169 353116801 353376001 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 :                                   800.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             304.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            939 sec.

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

