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


Performing analysis on: 4FGL_J1153.4+4931_daily_bin940
RA = 178.35, Dec = 49.5169
tmin = 482976001, tmax = 483235201
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='154274', job_status='RUN', time_executed='2021-09-04 15:16:32.690911', time_epoch_executed='1630793792.69' WHERE source_name='4FGL J1153.4+4931' and cadence='daily' and bin_id='940'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/154274

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/154274/ft1_4FGL_J1153.4+4931_daily_bin940.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/154274/ft2_4FGL_J1153.4+4931_daily_bin940.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/154274/ft1_4FGL_J1153.4+4931_daily_bin940.fits outfile=/scratch/kocevski/154274/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin940.fits ra=178.35 dec=49.5169 rad=12.0 tmin=482976001.0 tmax=483235201.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 4.14
user 3.90
sys 0.21

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/154274/ft1_filtered_4FGL_J1153.4+4931_daily_bin940.fits" evtable="EVENTS" scfile=/scratch/kocevski/154274/ft2_4FGL_J1153.4+4931_daily_bin940.fits sctable="SC_DATA" outfile=/scratch/kocevski/154274/ltcube_482976001_483235201_4FGL_J1153.4+4931_daily_bin940.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/154274/ft2_4FGL_J1153.4+4931_daily_bin940.fits
.....................!
real 11.99
user 11.66
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/154274/ft1_filtered_4FGL_J1153.4+4931_daily_bin940.fits evtable="EVENTS" scfile=/scratch/kocevski/154274/ft2_4FGL_J1153.4+4931_daily_bin940.fits sctable="SC_DATA" expcube=/scratch/kocevski/154274/ltcube_482976001_483235201_4FGL_J1153.4+4931_daily_bin940.fits outfile=/scratch/kocevski/154274/expmap_482976001_483235201_4FGL_J1153.4+4931_daily_bin940.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/154274/ltcube_482976001_483235201_4FGL_J1153.4+4931_daily_bin940.fits
.....................!
real 192.35
user 187.45
sys 4.52

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/154274/ft1_filtered_4FGL_J1153.4+4931_daily_bin940.fits scfile=/scratch/kocevski/154274/ft2_4FGL_J1153.4+4931_daily_bin940.fits outfile=/scratch/kocevski/154274/cmap_482976001_483235201_4FGL_J1153.4+4931_daily_bin940.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.53
user 0.37
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.867       1.0000         .10000E-03   10000.    
     3 'Prefactor '    56.403       1.0000         .10000E-03   10000.    
     4 'norm      '    .82795E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.962       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10479E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.7918       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .52933       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.6182       1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.373       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .72909       1.0000         .10000E-03   10000.    
    21 'norm      '    1.4577       1.0000         .10000E-03   10000.    
    22 'norm      '    17.440       1.0000         .10000E-03   10000.    
    23 'Prefactor '    32.435       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.2602       1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.3928       1.0000         .10000E-03   10000.    
    27 'norm      '    6.0342       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0602       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .78167       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=   6098.525     FROM MIGRAD    STATUS=CONVERGED    741 CALLS     4278 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    61.302       -.13685E-05** at limit **
   2  Prefactor     19.627        162.48       -.24434E-05    .61486E-04
   3  Prefactor     56.379        78.600        .36337E-05    .36841E-04
   4  norm          .10021E-03    1.5984       -.10042E-05** at limit **
   5  Prefactor     .10000E-03    34.086        .14679E-05** at limit **
   6  Prefactor     .10000E-03    10.063       -.10823E-06** at limit **
   7  Prefactor     25.006        39.488       -.46762E-05   -.14158E-03
   8  norm          .10000E-03    26.038        .11746E-05** at limit **
   9  Prefactor     .10000E-03    7.2927        .58779E-06** at limit **
  10  Prefactor     .10000E-03    12.776        .60424E-06** at limit **
  11  norm          3.7918        3.8185        .20846E-06   -.19654E-04
  12  Prefactor     .10000E-03    17.587       -.11132E-05** at limit **
  13  norm          .10000E-03    5.3528        .28391E-07** at limit **
  14  norm          .52913        .85027        .85977E-07    .16382E-03
  15  norm          .10000E-03    4.6976       -.48487E-07** at limit **
  16  Prefactor     .10000E-03    2.3652       -.13920E-07** at limit **
  17  Prefactor     .10000E-03    13.540        .10726E-06** at limit **
  18  norm          2.6177        3.4073        .11998E-06    .41473E-04
  19  Prefactor     23.376        18.857        .63956E-06   -.13726E-04
  20  Prefactor     .72920        5.9394        .13726E-05    .30315E-03
  21  norm          1.4577        2.3215        .40041E-06    .71073E-04
  22  norm          17.439        8.6128        .20768E-06   -.21428E-04
  23  Prefactor     32.443        19.617        .19023E-06   -.16871E-04
  24  Prefactor     .10000E-03    2.7491       -.10433E-07** at limit **
  25  norm          2.2600        2.1335        .68932E-07    .94072E-06
  26  Prefactor     9.3909        14.910        .58350E-06    .14145E-05
  27  norm          6.0339        2.5125        .92142E-07   -.21406E-04
  28  Normalizat    1.0603        .15103       -.13210E-05   -.34200E-03
  29  Prefactor     .78170        .18316       -.19570E-05   -.25914E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 19.6271
  Prefactor  = 56.3787
  norm       = 0.000100208
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.0059
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.79178
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.529127
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.61771
  Prefactor  = 23.3756
  Prefactor  = 0.729199
  norm       = 1.45771
  norm       = 17.4393
  Prefactor  = 32.4426
  Prefactor  = 0.0001
  norm       = 2.26004
  Prefactor  = 9.39091
  norm       = 6.03386
  Normalizat = 1.06025
  Prefactor  = 0.781697
 **********
 **   18 **HESSE 
 **********

 FCN=   6098.525     FROM HESSE     STATUS=OK           555 CALLS     4833 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    61.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.627        165.70        .44930E-03   -1.4822    
   3  Prefactor     56.379        78.681        .53414E-04   -1.4205    
   4  norm          .10021E-03    10.187        .14983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    34.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     25.006        39.401        .80177E-04   -1.4707    
   8  norm          .10000E-03    26.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.6207        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.7918        3.7909        .14532E-03   -1.5318    
  12  Prefactor     .10000E-03    17.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.3537        .17646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .52913        .78881        .85819E-03   -1.5562    
  15  norm          .10000E-03    4.7152        .16526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.4224        .23347E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.6177        3.4056        .15453E-03   -1.5384    
  19  Prefactor     23.376        18.814        .82853E-04   -1.4741    
  20  Prefactor     .72920        6.0253        .18056E-02   -1.5537    
  21  norm          1.4577        2.3143        .13925E-03   -1.5466    
  22  norm          17.439        8.6085        .95905E-04   -1.4873    
  23  Prefactor     32.443        19.624        .70357E-04   -1.4568    
  24  Prefactor     .10000E-03    2.7665        .12639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.2600        2.1450        .10791E-03   -1.5407    
  26  Prefactor     9.3909        14.908        .65382E-03   -1.5095    
  27  norm          6.0339        2.5131        .77425E-04   -1.5217    
  28  Normalizat    1.0603        .17408        .20710E-03   -.91038    
  29  Prefactor     .78170        .21062        .29608E-03   -1.0041    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04586e-08
Minuit parameter uncertainties:
  1  9.82286e-05
  2  114.486
  3  78.8263
  4  0.00290976
  5  0.000199051
  6  2.7557e-05
  7  39.4415
  8  0.000124326
  9  7.94997e-05
  10  5.8096e-05
  11  3.7911
  12  5.97493e-05
  13  1.94485e-06
  14  0.78883
  15  5.41848e-06
  16  1.00139e-05
  17  1.49622e-05
  18  3.40588
  19  18.819
  20  4.19249
  21  2.31447
  22  8.60914
  23  19.6278
  24  5.93578e-06
  25  2.14511
  26  14.9138
  27  2.51316
  28  0.17417
  29  0.210841
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
702    Prefactor:  7.817e-01  2.108e-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.060e+00  1.742e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/154274/likelihoodResults_482976001_483235201_4FGL_J1153.4+4931_daily_bin940.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) = 6098.52684367
delta logL = -0.00196885938294

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6098.52487491
delta logL = -1.00114448287e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6098.525     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      247 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    2.7774        .23744E-03** at limit **
   2  Index         2.4555        6.2275        .50000       -.78270E-04
   3  Normalizat    1.0603        .16667        .20710E-03    .90630E-04
   4  Prefactor     .78170        .20828        .29608E-03    .75375E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100016
  Index      = 2.45548
  Normalizat = 1.06025
  Prefactor  = 0.781699
 **********
 **   18 **HESSE 
 **********

 FCN=   6098.525     FROM HESSE     STATUS=OK            29 CALLS      276 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    2.5243        .47489E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4555        6.2262        .50000       -.53391    
   3  Normalizat    1.0603        .16680        .82841E-05   -.91038    
   4  Prefactor     .78170        .20844        .11843E-04   -1.0041    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3228e-08
Minuit parameter uncertainties:
  1  0.00040218
  2  4.31089
  3  0.166882
  4  0.208652
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/154274': 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) = 6098.52487402
delta logL = 7.87347744335e-07

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  4.022e-04  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  2.455e+00  4.311e+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.817e-01  2.087e-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.060e+00  1.669e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 178.350 49.517

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.97e-03', job_status='DONE', photon_flux_upper_limit='6.43e-08', time_completed='2021-09-04 15:32:57.138383', job_id='154274', GAL2='0.78', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1630794777.14', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='7.87e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='940' AND source_name='4FGL J1153.4+4931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:32:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 154274: <4FGL_J1153.4+4931_daily_bin940> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.4+4931_daily_bin940 178.35 49.5169 482976001 483235201 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 :                                   978.33 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             367.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   994 sec.
    Turnaround time :                            995 sec.

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

