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


Performing analysis on: 4FGL_J1153.4+4931_daily_bin677
RA = 178.35, Dec = 49.5169
tmin = 414806401, tmax = 415065601
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='152764', job_status='RUN', time_executed='2021-09-04 15:13:26.319872', time_epoch_executed='1630793606.32' WHERE source_name='4FGL J1153.4+4931' and cadence='daily' and bin_id='677'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/152764

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/152764/ft1_4FGL_J1153.4+4931_daily_bin677.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/152764/ft2_4FGL_J1153.4+4931_daily_bin677.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/152764/ft1_4FGL_J1153.4+4931_daily_bin677.fits outfile=/scratch/kocevski/152764/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin677.fits ra=178.35 dec=49.5169 rad=12.0 tmin=414806401.0 tmax=415065601.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 5.89
user 5.61
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/152764/ft2_4FGL_J1153.4+4931_daily_bin677.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/152764/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin677.fits evtable="EVENTS" outfile="/scratch/kocevski/152764/ft1_filtered_4FGL_J1153.4+4931_daily_bin677.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/152764/ft1_filtered_4FGL_J1153.4+4931_daily_bin677.fits" evtable="EVENTS" scfile=/scratch/kocevski/152764/ft2_4FGL_J1153.4+4931_daily_bin677.fits sctable="SC_DATA" outfile=/scratch/kocevski/152764/ltcube_414806401_415065601_4FGL_J1153.4+4931_daily_bin677.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/152764/ft2_4FGL_J1153.4+4931_daily_bin677.fits
.....................!
real 12.75
user 12.39
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/152764/ft1_filtered_4FGL_J1153.4+4931_daily_bin677.fits evtable="EVENTS" scfile=/scratch/kocevski/152764/ft2_4FGL_J1153.4+4931_daily_bin677.fits sctable="SC_DATA" expcube=/scratch/kocevski/152764/ltcube_414806401_415065601_4FGL_J1153.4+4931_daily_bin677.fits outfile=/scratch/kocevski/152764/expmap_414806401_415065601_4FGL_J1153.4+4931_daily_bin677.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/152764/ltcube_414806401_415065601_4FGL_J1153.4+4931_daily_bin677.fits
.....................!
real 190.11
user 185.40
sys 4.31

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/152764/ft1_filtered_4FGL_J1153.4+4931_daily_bin677.fits scfile=/scratch/kocevski/152764/ft2_4FGL_J1153.4+4931_daily_bin677.fits outfile=/scratch/kocevski/152764/cmap_414806401_415065601_4FGL_J1153.4+4931_daily_bin677.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.54
user 0.39
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    108.27       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.8550       1.0000         .10000E-03   10000.    
     5 'Prefactor '    75.916       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    50.417       1.0000         .10000E-03   10000.    
     8 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10210E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.937       1.0000         .10000E-03   10000.    
    11 'norm      '    2.9334       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.4348       1.0000         .10000E-03   10000.    
    15 'norm      '    8.0966       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.3998       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .56958E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10751E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.7524       1.0000         .10000E-03   10000.    
    25 'norm      '    4.2477       1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.9289       1.0000         .10000E-03   10000.    
    27 'norm      '    3.9453       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .85081       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .81991       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=   4329.341     FROM MIGRAD    STATUS=CONVERGED    728 CALLS     3691 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     108.27        80.603       -.53561E-05    .75227E-05
   2  Prefactor     .10000E-03    32.197       -.55765E-05** at limit **
   3  Prefactor     .10000E-03    39.027        .15932E-04** at limit **
   4  norm          1.8550        1.6803       -.90312E-07   -.60998E-04
   5  Prefactor     75.914        49.297       -.21727E-05    .22073E-04
   6  Prefactor     .10000E-03    14.457        .77571E-05** at limit **
   7  Prefactor     50.398        83.335       -.24346E-04   -.57005E-05
   8  norm          .10000E-03    46.499        .19897E-04** at limit **
   9  Prefactor     .10000E-03    5.7517       -.40756E-05** at limit **
  10  Prefactor     23.926        26.719       -.75585E-05    .66304E-04
  11  norm          2.9334        3.1540       -.30529E-06   -.25065E-03
  12  Prefactor     .10000E-03    41.321        .19649E-04** at limit **
  13  norm          .10000E-03    6.0886        .42475E-05** at limit **
  14  norm          6.4349        1.6506       -.19563E-06    .35262E-03
  15  norm          8.0957        9.6369       -.15100E-06    .72449E-04
  16  Prefactor     .10000E-03    1.4840       -.15466E-06** at limit **
  17  Prefactor     .10000E-03    62.652       -.38438E-04** at limit **
  18  norm          4.3977        4.6260       -.10501E-05    .16059E-03
  19  Prefactor     .10002E-03    11.981       -.50550E-06** at limit **
  20  Prefactor     .10000E-03    11.419       -.42003E-05** at limit **
  21  norm          .10000E-03    .92377       -.19957E-06** at limit **
  22  norm          .10000E-03    4.6402        .44767E-06** at limit **
  23  Prefactor     .10000E-03    27.916       -.20996E-04** at limit **
  24  Prefactor     8.7524        7.0919       -.12078E-06    .53686E-04
  25  norm          4.2474        3.6506        .28801E-06    .56738E-04
  26  Prefactor     9.9130        26.026       -.15314E-04    .55141E-04
  27  norm          3.9452        2.7095       -.18871E-07    .15409E-03
  28  Normalizat    .85070        .17222        .37986E-05    .23857E-03
  29  Prefactor     .82017        .21403        .83467E-06    .29414E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 108.266
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.85497
  Prefactor  = 75.9138
  Prefactor  = 0.0001
  Prefactor  = 50.398
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.9256
  norm       = 2.93344
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.43494
  norm       = 8.09566
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.39772
  Prefactor  = 0.000100018
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.7524
  norm       = 4.24743
  Prefactor  = 9.91296
  norm       = 3.94518
  Normalizat = 0.850702
  Prefactor  = 0.820167
 **********
 **   18 **HESSE 
 **********

 FCN=   4329.341     FROM HESSE     STATUS=OK           547 CALLS     4238 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     108.27        80.618        .38652E-04   -1.3623    
   2  Prefactor     .10000E-03    32.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    39.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.8550        1.6749        .78838E-04   -1.5436    
   5  Prefactor     75.914        49.378        .46085E-04   -1.3963    
   6  Prefactor     .10000E-03    14.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     50.398        83.528        .56480E-04   -1.4287    
   8  norm          .10000E-03    46.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.8520        .15373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     23.926        26.720        .81874E-04   -1.4729    
  11  norm          2.9334        3.1437        .11737E-03   -1.5365    
  12  Prefactor     .10000E-03    41.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.0918        .15861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.4349        1.6503        .40901E-04   -1.5201    
  15  norm          8.0957        9.6412        .14090E-03   -1.5139    
  16  Prefactor     .10000E-03    2.5195        .15449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    62.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.3977        4.5924        .13750E-03   -1.5289    
  19  Prefactor     .10002E-03    68.888        .43429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.694        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.4621        .12224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.6621        .13838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    27.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.7524        7.1007        .13549E-03   -1.5116    
  25  norm          4.2474        3.6561        .10982E-03   -1.5296    
  26  Prefactor     9.9130        25.997        .12717E-03   -1.5078    
  27  norm          3.9452        2.7108        .87175E-04   -1.5311    
  28  Normalizat    .85070        .20385        .21507E-03   -.98215    
  29  Prefactor     .82017        .25411        .27812E-03   -.98989    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.73615e-10
Minuit parameter uncertainties:
  1  80.6994
  2  2.40817e-07
  3  3.58663e-05
  4  1.6749
  5  49.4043
  6  2.06145e-05
  7  83.7224
  8  0.000107477
  9  4.45818e-05
  10  26.7335
  11  3.14384
  12  0.000108988
  13  7.80352e-06
  14  1.65033
  15  9.64301
  16  2.98244e-05
  17  2.10993e-05
  18  4.59278
  19  0.00220723
  20  0.000136801
  21  2.04162e-05
  22  5.46237e-06
  23  0.000158842
  24  7.1014
  25  3.65634
  26  26.027
  27  2.71092
  28  0.204038
  29  0.254476
Done.

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

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  2.982e-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:  8.202e-01  2.545e-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:  8.507e-01  2.040e-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: 5.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/152764/likelihoodResults_414806401_415065601_4FGL_J1153.4+4931_daily_bin677.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) = 4329.34287557
delta logL = -0.00189485605551

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4329.34097977
delta logL = 9.36668584472e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3734       1.0000          .0000       10.000    
     3 'Normalizat'    .85072       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82022       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4329.341     FROM MIGRAD    STATUS=FAILED        99 CALLS      264 TOTAL
                     EDM=   .51E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10939E-03    60.502        .16035E-02** at limit **
   2  Index         2.1663        8.1281        .50000        .66437E-04
   3  Normalizat    .85070        .17500E-01    .21507E-03   -.16074E-03
   4  Prefactor     .82017        .22371E-01    .27812E-03    .86783E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4329.341     FROM SIMPLEX   STATUS=PROGRESS     111 CALLS      375 TOTAL
                     EDM=   .66E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10359E-03    60.502        .27777E-03** at limit **
   2  Index         2.1649        8.1281        .48105E-03    .66437E-04
   3  Normalizat    .85069        .17500E-01    .30536E-05   -.16074E-03
   4  Prefactor     .82016        .22371E-01    .50897E-05    .86783E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4329.341     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      424 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    48.416        .32071E-02** at limit **
   2  Index         1.9465        7.2206        .50000       -.37880E-07
   3  Normalizat    .85070        .14721E-01    .43015E-04   -.53230E-04
   4  Prefactor     .82017        .18819E-01    .11125E-04    .32906E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.94647
  Normalizat = 0.850703
  Prefactor  = 0.820165
 **********
 **   18 **HESSE 
 **********

 FCN=   4329.341     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      453 TOTAL
                     EDM=   .71E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    229.94        .64142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9465        7.9968        .50000       -.65695    
   3  Normalizat    .85070        .33785E-01    .86029E-05   -.98215    
   4  Prefactor     .82017        .43180E-01    .22249E-05   -.98989    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.09844e-12
Minuit parameter uncertainties:
  1  1.89274e-05
  2  509.865
  3  0.0337854
  4  0.0431823
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/152764': 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): 102
logL (Free Index) = 4329.34097342
delta logL = 7.2894299592e-06

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  1.893e-05  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  1.946e+00  5.099e+02  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:  8.202e-01  4.318e-02  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:  8.507e-01  3.379e-02  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/152764/cmap_HighResolution_414806401_415065601_4FGL_J1153.4+4931_daily_bin677.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.36e-03', job_status='DONE', photon_flux_upper_limit='5.64e-08', time_completed='2021-09-04 15:26:07.868964', job_id='152764', GAL2='0.82', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1630794367.87', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='7.29e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='677' AND source_name='4FGL J1153.4+4931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:26:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 152764: <4FGL_J1153.4+4931_daily_bin677> in cluster <slac> Done

Job <4FGL_J1153.4+4931_daily_bin677> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 15:11:20 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 15:11:21 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:11:21 2021
Terminated at Sat Sep  4 15:26:08 2021
Results reported at Sat Sep  4 15:26:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.4+4931_daily_bin677 178.35 49.5169 414806401 415065601 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 :                                   759.24 sec.
    Max Memory :                                 1194 MB
    Average Memory :                             324.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            888 sec.

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

