/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 74 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 = 7353
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1153.4+4931_daily_bin41
RA = 178.35, Dec = 49.5169
tmin = 249955201, tmax = 250214401
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='147858', job_status='RUN', time_executed='2021-09-04 14:58:40.110631', time_epoch_executed='1630792720.11' WHERE source_name='4FGL J1153.4+4931' and cadence='daily' and bin_id='41'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/147858

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/147858/ft1_4FGL_J1153.4+4931_daily_bin41.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/147858/ft2_4FGL_J1153.4+4931_daily_bin41.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/147858/ft1_4FGL_J1153.4+4931_daily_bin41.fits outfile=/scratch/kocevski/147858/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin41.fits ra=178.35 dec=49.5169 rad=12.0 tmin=249955201.0 tmax=250214401.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 1.45
user 1.25
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/147858/ft2_4FGL_J1153.4+4931_daily_bin41.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/147858/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin41.fits evtable="EVENTS" outfile="/scratch/kocevski/147858/ft1_filtered_4FGL_J1153.4+4931_daily_bin41.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.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/147858/ft1_filtered_4FGL_J1153.4+4931_daily_bin41.fits evtable="EVENTS" scfile=/scratch/kocevski/147858/ft2_4FGL_J1153.4+4931_daily_bin41.fits sctable="SC_DATA" expcube=/scratch/kocevski/147858/ltcube_249955201_250214401_4FGL_J1153.4+4931_daily_bin41.fits outfile=/scratch/kocevski/147858/expmap_249955201_250214401_4FGL_J1153.4+4931_daily_bin41.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/147858/ltcube_249955201_250214401_4FGL_J1153.4+4931_daily_bin41.fits
.....................!
real 190.83
user 185.43
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 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/147858/ft1_filtered_4FGL_J1153.4+4931_daily_bin41.fits scfile=/scratch/kocevski/147858/ft2_4FGL_J1153.4+4931_daily_bin41.fits outfile=/scratch/kocevski/147858/cmap_249955201_250214401_4FGL_J1153.4+4931_daily_bin41.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/147858/ft1_filtered_4FGL_J1153.4+4931_daily_bin41.fits scfile=/scratch/kocevski/147858/ft2_4FGL_J1153.4+4931_daily_bin41.fits outfile=/scratch/kocevski/147858/cmap_HighResolution_249955201_250214401_4FGL_J1153.4+4931_daily_bin41.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    36.585       1.0000         .10000E-03   10000.    
     4 'norm      '    1.7660       1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.850       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    42.482       1.0000         .10000E-03   10000.    
    11 'norm      '    .11897E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .74571       1.0000         .10000E-03   10000.    
    15 'norm      '    20.677       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.3591       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.9189       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.7921       1.0000         .10000E-03   10000.    
    22 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.6897       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .21343E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.7171       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.9811       1.0000         .10000E-03   10000.    
    27 'norm      '    .69298       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0028       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .86722       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=   5270.761     FROM MIGRAD    STATUS=CONVERGED    735 CALLS     3724 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.211        .14898E-06** at limit **
   2  Prefactor     .10000E-03    91.905        .17265E-05** at limit **
   3  Prefactor     36.580        61.524        .14369E-05    .74463E-05
   4  norm          1.7654        2.1614        .60037E-06    .10329E-02
   5  Prefactor     26.920        49.305       -.93839E-05    .56277E-04
   6  Prefactor     .10000E-03    40.972       -.21305E-05** at limit **
   7  Prefactor     .10000E-03    30.836        .28090E-05** at limit **
   8  norm          .10000E-03    36.391        .11458E-06** at limit **
   9  Prefactor     .10000E-03    2.2580        .11316E-06** at limit **
  10  Prefactor     42.477        30.375       -.17481E-05    .82073E-04
  11  norm          .10004E-03    1.7582       -.23608E-05** at limit **
  12  Prefactor     .10000E-03    19.748       -.84919E-06** at limit **
  13  norm          .10000E-03    9.5445        .74810E-06** at limit **
  14  norm          .74570        .68908        .17888E-07    .36701E-03
  15  norm          20.674        12.109        .10932E-06    .81581E-04
  16  Prefactor     .10000E-03    2.2803       -.24416E-07** at limit **
  17  Prefactor     .10000E-03    17.477        .10130E-07** at limit **
  18  norm          1.3625        5.4028        .16593E-04   -.27022E-04
  19  Prefactor     4.9212        27.735        .13749E-05    .24001E-04
  20  Prefactor     .10000E-03    17.261       -.10491E-05** at limit **
  21  norm          1.7922        2.2320        .22223E-07    .19021E-03
  22  norm          .10000E-03    2.9759       -.14315E-06** at limit **
  23  Prefactor     4.6907        13.904        .29437E-05    .52444E-04
  24  Prefactor     .10000E-03    4.9833        .46243E-05** at limit **
  25  norm          4.7184        3.4597        .11892E-05    .21243E-02
  26  Prefactor     1.9813        15.607        .66071E-06    .40134E-06
  27  norm          .69346        1.6574        .22384E-07   -.37467E-03
  28  Normalizat    1.0028        .16714       -.32470E-05    .52706E-03
  29  Prefactor     .86721        .19720        .27483E-05    .59160E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 36.5799
  norm       = 1.76543
  Prefactor  = 26.9204
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.4775
  norm       = 0.000100036
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.7457
  norm       = 20.6737
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.3625
  Prefactor  = 4.92123
  Prefactor  = 0.000100004
  norm       = 1.79215
  norm       = 0.0001
  Prefactor  = 4.69069
  Prefactor  = 0.0001
  norm       = 4.71838
  Prefactor  = 1.98126
  norm       = 0.693465
  Normalizat = 1.00278
  Prefactor  = 0.867208
 **********
 **   18 **HESSE 
 **********

 FCN=   5270.761     FROM HESSE     STATUS=OK           545 CALLS     4269 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    91.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     36.580        61.528        .66259E-04   -1.4498    
   4  norm          1.7654        2.1430        .11442E-03   -1.5442    
   5  Prefactor     26.920        49.300        .77312E-04   -1.4670    
   6  Prefactor     .10000E-03    41.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    30.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    36.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.2644        .10651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     42.477        30.482        .61505E-04   -1.4404    
  11  norm          .10004E-03    11.042        .18044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    9.5483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .74570        .67561        .55637E-04   -1.5535    
  15  norm          20.674        12.100        .88084E-04   -1.4798    
  16  Prefactor     .10000E-03    2.3366        .21287E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.3625        5.6579        .16148E-02   -1.5475    
  19  Prefactor     4.9212        27.469        .18135E-03   -1.5264    
  20  Prefactor     .10000E-03    18.079        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.7922        2.2195        .11392E-03   -1.5440    
  22  norm          .10000E-03    2.9865        .12219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.6907        13.886        .92913E-03   -1.5275    
  24  Prefactor     .10000E-03    9.9564        .28394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.7184        3.2829        .10635E-03   -1.5273    
  26  Prefactor     1.9813        15.574        .29447E-03   -1.5426    
  27  norm          .69346        1.5814        .13912E-02   -1.5541    
  28  Normalizat    1.0028        .19508        .20877E-03   -.92937    
  29  Prefactor     .86721        .23131        .27654E-03   -.97297    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.91264e-09
Minuit parameter uncertainties:
  1  9.89376e-05
  2  0.000920675
  3  61.6355
  4  2.14307
  5  49.375
  6  0.000418169
  7  2.72857e-05
  8  5.07455e-05
  9  8.46326e-06
  10  30.4928
  11  0.0012694
  12  3.36049e-05
  13  4.05117e-05
  14  0.675613
  15  12.1013
  16  4.09028e-06
  17  3.40901e-05
  18  5.55368
  19  23.2695
  20  0.000530672
  21  2.21961
  22  1.77878e-05
  23  13.8952
  24  4.98153e-05
  25  3.28307
  26  11.1134
  27  1.58146
  28  0.195224
  29  0.231568
Done.

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

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  4.090e-06  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.672e-01  2.316e-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.003e+00  1.952e-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.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/147858/likelihoodResults_249955201_250214401_4FGL_J1153.4+4931_daily_bin41.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) = 5270.76349471
delta logL = -0.00204184443555

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5270.7614531
delta logL = -2.28524186241e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4051       1.0000          .0000       10.000    
     3 'Normalizat'    1.0028       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86720       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=   5270.761     FROM MIGRAD    STATUS=FAILED        87 CALLS      239 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10020E-03    252.59        .21331E-03** at limit **
   2  Index         2.3783        6.1073        .50000        .17714E-04
   3  Normalizat    1.0028        .47601E-01    .20877E-03   -.43619E-04
   4  Prefactor     .86720        .59333E-01    .27654E-03   -.25406E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5270.761     FROM SIMPLEX   STATUS=UNCHANGED    148 CALLS      387 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10020E-03    252.59        .28023E-03** at limit **
   2  Index         2.3783        6.1073        .54267E-04    .17714E-04
   3  Normalizat    1.0028        .47601E-01    .15230E-05   -.43619E-04
   4  Prefactor     .86720        .59333E-01    .79708E-06   -.25406E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5270.761     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      429 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.6246        .42662E-04** at limit **
   2  Index         2.3007        5.1094        .50000        .10129E-06
   3  Normalizat    1.0028        .18483        .83508E-05    .16609E-03
   4  Prefactor     .86720        .23042        .11062E-04    .12662E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.30068
  Normalizat = 1.00278
  Prefactor  = 0.867204
 **********
 **   18 **HESSE 
 **********

 FCN=   5270.761     FROM HESSE     STATUS=OK            29 CALLS      458 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.4065        .85325E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3007        8.7795        .50000       -.57027    
   3  Normalizat    1.0028        .18424        .16702E-05   -.92937    
   4  Prefactor     .86720        .22969        .22123E-05   -.97297    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.98801e-11
Minuit parameter uncertainties:
  1  6.66445e-06
  2  71.3218
  3  0.18436
  4  0.229948
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/147858': 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) = 5270.76145254
delta logL = 3.26061126543e-07

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  6.664e-06  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  2.301e+00  7.132e+01  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.672e-01  2.299e-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.003e+00  1.844e-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/147858/cmap_HighResolution_249955201_250214401_4FGL_J1153.4+4931_daily_bin41.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.91e-03', job_status='DONE', photon_flux_upper_limit='6.35e-08', time_completed='2021-09-04 15:12:31.689631', job_id='147858', GAL2='0.87', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1630793551.69', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='3.26e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='41' AND source_name='4FGL J1153.4+4931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:12:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 147858: <4FGL_J1153.4+4931_daily_bin41> in cluster <slac> Done

Job <4FGL_J1153.4+4931_daily_bin41> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 14:57:11 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 14:57:12 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:57:12 2021
Terminated at Sat Sep  4 15:12:32 2021
Results reported at Sat Sep  4 15:12:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.4+4931_daily_bin41 178.35 49.5169 249955201 250214401 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 :                                   830.14 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             310.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            921 sec.

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

