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


Performing analysis on: 4FGL_J1152.3-0839_daily_bin261
RA = 178.081, Dec = -8.6663
tmin = 306979201, tmax = 307238401
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='117388', job_status='RUN', time_executed='2021-09-04 13:35:36.863275', time_epoch_executed='1630787736.86' WHERE source_name='4FGL J1152.3-0839' and cadence='daily' and bin_id='261'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/117388

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/117388/ft1_4FGL_J1152.3-0839_daily_bin261.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/117388/ft2_4FGL_J1152.3-0839_daily_bin261.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/117388/ft1_4FGL_J1152.3-0839_daily_bin261.fits outfile=/scratch/kocevski/117388/ft1_filteredMKT_4FGL_J1152.3-0839_daily_bin261.fits ra=178.081 dec=-8.6663 rad=12.0 tmin=306979201.0 tmax=307238401.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 14.08
user 13.54
sys 0.44

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/117388/ft2_4FGL_J1152.3-0839_daily_bin261.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/117388/ft2_4FGL_J1152.3-0839_daily_bin261.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/117388/ft1_filteredMKT_4FGL_J1152.3-0839_daily_bin261.fits evtable="EVENTS" outfile="/scratch/kocevski/117388/ft1_filtered_4FGL_J1152.3-0839_daily_bin261.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.86
user 0.33
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/117388/ft1_filtered_4FGL_J1152.3-0839_daily_bin261.fits" evtable="EVENTS" scfile=/scratch/kocevski/117388/ft2_4FGL_J1152.3-0839_daily_bin261.fits sctable="SC_DATA" outfile=/scratch/kocevski/117388/ltcube_306979201_307238401_4FGL_J1152.3-0839_daily_bin261.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/117388/ft2_4FGL_J1152.3-0839_daily_bin261.fits
.....................!
real 12.53
user 10.88
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/117388/ft1_filtered_4FGL_J1152.3-0839_daily_bin261.fits evtable="EVENTS" scfile=/scratch/kocevski/117388/ft2_4FGL_J1152.3-0839_daily_bin261.fits sctable="SC_DATA" expcube=/scratch/kocevski/117388/ltcube_306979201_307238401_4FGL_J1152.3-0839_daily_bin261.fits outfile=/scratch/kocevski/117388/expmap_306979201_307238401_4FGL_J1152.3-0839_daily_bin261.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/117388/ltcube_306979201_307238401_4FGL_J1152.3-0839_daily_bin261.fits
.....................!
real 194.41
user 187.14
sys 4.90

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 190 point sources and 0 extended sources

Setting source of interest to:
4FGL J1152.3-0839 @ 178.081 -8.6663

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/117388/ft1_filtered_4FGL_J1152.3-0839_daily_bin261.fits scfile=/scratch/kocevski/117388/ft2_4FGL_J1152.3-0839_daily_bin261.fits outfile=/scratch/kocevski/117388/cmap_306979201_307238401_4FGL_J1152.3-0839_daily_bin261.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.081 yref=-8.6663 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/117388/ft1_filtered_4FGL_J1152.3-0839_daily_bin261.fits scfile=/scratch/kocevski/117388/ft2_4FGL_J1152.3-0839_daily_bin261.fits outfile=/scratch/kocevski/117388/cmap_HighResolution_306979201_307238401_4FGL_J1152.3-0839_daily_bin261.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.081 yref=-8.6663 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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/117388/ft1_filtered_4FGL_J1152.3-0839_daily_bin261.fits evtable="EVENTS" scfile=/scratch/kocevski/117388/ft2_4FGL_J1152.3-0839_daily_bin261.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/117388/Model_4FGL_J1152.3-0839_daily_bin261.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/117388/ft1_filtered_4FGL_J1152.3-0839_daily_bin261.fits.................!
real 15.32
user 13.88
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/117388/ft1_filtered_4FGL_J1152.3-0839_daily_bin261.fits', '/scratch/kocevski/117388/ft2_4FGL_J1152.3-0839_daily_bin261.fits', expMap='/scratch/kocevski/117388/expmap_306979201_307238401_4FGL_J1152.3-0839_daily_bin261.fits', expCube='/scratch/kocevski/117388/ltcube_306979201_307238401_4FGL_J1152.3-0839_daily_bin261.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/117388/Model_4FGL_J1152.3-0839_daily_bin261.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1152.3-0839'

4FGL J1152.3-0839
   Spectrum: PowerLaw
285    Prefactor:  1.838e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
286        Index:  2.412e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  8.403e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/117388/ft1_filtered_4FGL_J1152.3-0839_daily_bin261.fits
Spacecraft file(s): /scratch/kocevski/117388/ft2_4FGL_J1152.3-0839_daily_bin261.fits
Exposure map: /scratch/kocevski/117388/expmap_306979201_307238401_4FGL_J1152.3-0839_daily_bin261.fits
Exposure cube: /scratch/kocevski/117388/ltcube_306979201_307238401_4FGL_J1152.3-0839_daily_bin261.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/117388/Model_4FGL_J1152.3-0839_daily_bin261.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 224.195529577

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 221.78143717

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.544       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .15338E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .97905       1.0000         .10000E-03   10000.    
     5 'norm      '    .17868E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .57820E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.395       1.0000         .10000E-03   10000.    
     9 'norm      '    1.1166       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.4224       1.0000         .10000E-03   10000.    
    11 'Prefactor '    358.25       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .44816       1.0000         .10000E-03   10000.    
    13 'norm      '    .26428E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .25537E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .40915       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .40154E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.7761       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15867E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    65.769       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.5315       1.0000         .10000E-03   10000.    
    21 'Prefactor '    109.52       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .51678E-01   1.0000         .10000E-03   10000.    
    23 'norm      '    6.8936       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.1637       1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.7742       1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.3857       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    28 'Prefactor '    .59829       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   221.7592     FROM MIGRAD    STATUS=CONVERGED    235 CALLS      874 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.575        20.937        .67502E-05   -.84985E-03
   2  Prefactor     .10000E-03    27.092       -.25188E-06** at limit **
   3  Prefactor     .10000E-03    8.6127       -.82669E-06** at limit **
   4  Prefactor     .10000E-03    568.35        .22795E-05** at limit **
   5  norm          .10000E-03    18.923       -.34872E-06** at limit **
   6  norm          .14560E-03    445.86        .65624E-04** at limit **
   7  Prefactor     .10000E-03    16.716       -.43495E-06** at limit **
   8  Prefactor     66.334        236.95       -.39513E-04    .84610E-02
   9  norm          .10000E-03    126.77        .17503E-05** at limit **
  10  Prefactor     7.6531        10.899        .40380E-06   -.45551E-05
  11  Prefactor     355.89        15.372       -.62214E-07    .12239E-01
  12  Prefactor     .12785E-03    1352.7       -.30164E-04** at limit **
  13  norm          .10000E-03    66.521        .31050E-05** at limit **
  14  Prefactor     .10000E-03    40.083       -.30799E-05** at limit **
  15  Prefactor     .10013E-03    680.72        .20847E-04** at limit **
  16  Prefactor     .10000E-03    141.06       -.33400E-05** at limit **
  17  Prefactor     7.8493        4.9113        .29234E-05    .21639E-02
  18  Prefactor     .10000E-03    69.448       -.31782E-04** at limit **
  19  Prefactor     65.924        40.276       -.86942E-05   -.94018E-02
  20  Prefactor     .61903E-01    262.71        .62023E-04    .73214E-02
  21  Prefactor     119.10        155.88        .17183E-04   -.92910E-02
  22  Prefactor     .10000E-03    51.357        .79372E-06** at limit **
  23  norm          6.8631        15.082        .86526E-06    .65486E-04
  24  Prefactor     1.1637        1.1503         .0000         .0000    
  25  Prefactor     6.7742        1.0027         .0000         .0000    
  26  Prefactor     4.3857        1.0066         .0000         .0000    
  27  Normalizat    .10000E-01    1.1683        .16651E-04** at limit **
  28  Prefactor     .57891        .44970       -.63161E-05    .19641E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.5751
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001456
  Prefactor  = 0.0001
  Prefactor  = 66.3344
  norm       = 0.0001
  Prefactor  = 7.65305
  Prefactor  = 355.89
  Prefactor  = 0.000127848
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100126
  Prefactor  = 0.0001
  Prefactor  = 7.8493
  Prefactor  = 0.000100003
  Prefactor  = 65.924
  Prefactor  = 0.0619033
  Prefactor  = 119.096
  Prefactor  = 0.0001
  norm       = 6.86311
  Prefactor  = 1.1637
  Prefactor  = 6.77416
  Prefactor  = 4.38571
  Normalizat = 0.01
  Prefactor  = 0.578909
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   221.7592     FROM HESSE     STATUS=FAILED       101 CALLS      975 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.575        74.799        .16574E-02   -1.4531    
   2  Prefactor     .10000E-03    26.965        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.5902        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    565.16        .13091E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    18.807        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .14560E-03    446.63        .10542E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.579        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     66.334        243.94        .19135E-02   -1.4077    
   9  norm          .10000E-03    126.96        .11136E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.6531        9.3094        .36803E-02   -1.5155    
  11  Prefactor     355.89        209.47        .53806E-03   -1.1912    
  12  Prefactor     .12785E-03    1353.9        .11057E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    66.209        .10721E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    39.505        .99983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10013E-03    675.43        .10894E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    143.54        .97448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.8493        8532.9        .33826E-02   -1.5148    
  18  Prefactor     .10000E-03    70.087        .91021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     65.924        160.42        .12372E-02   -1.4082    
  20  Prefactor     .61903E-01    1602.2        .34310E-02   -1.5658    
  21  Prefactor     119.10        145.22        .96084E-03   -1.3521    
  22  Prefactor     .10000E-03    50.947        .92783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.8631        14.417        .38202E-02   -1.5184    
  24  Prefactor     584.64        583.19         .0000       -1.5492    
  25  Prefactor     6.7742        1.0027         .0000       -1.5187    
  26  Prefactor     4.3857        1.0066         .0000       -1.5289    
  27  Normalizat    .10000E-01    .25707        .16651E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .57891        .93156       -.63161E-05   -1.0848    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.98843e-10
Minuit parameter uncertainties:
  1  75.0026
  2  1.33016e-06
  3  1.99893e-06
  4  0.00101214
  5  2.38077e-06
  6  0.287588
  7  2.62854e-06
  8  247.768
  9  1.09338e-05
  10  9.31111
  11  209.918
  12  0.397689
  13  2.07112e-05
  14  8.06002e-05
  15  0.0186974
  16  0.000231032
  17  575.368
  18  0.00084994
  19  161.491
  20  20.4756
  21  145.654
  22  5.02451e-05
  23  14.424
  24  1.15036
  25  1.00275
  26  1.00665
  27  3.68015e-07
  28  0.958219
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 221.759236412

Extracting fit parameters...

4FGL J1152.3-0839
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  8.060e-05  1.000e-04  1.000e+04 ( 1.000e-12)
286        Index:  2.412e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  8.403e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
607    Prefactor:  5.789e-01  9.582e-01  0.000e+00  1.000e+01 ( 1.000e+00)
608        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
609        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
606   Normalization:  1.000e-02  3.680e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 178.081 -8.666
Photon Flux Upper Limit: 1.87e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.45e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/117388/likelihoodResults_306979201_307238401_4FGL_J1152.3-0839_daily_bin261.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) = 221.759351012
delta logL = -0.000114599835314

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 221.759237379
delta logL = -9.66424863691e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0790       1.0000          .0000       10.000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57894       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6100E+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=   221.7592     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      276 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10194E-03    653.66        .80434E-03** at limit **
   2  Index         3.0047        5.5625        .50000        .48955E-05
   3  Normalizat    .10000E-01    .52715E-01    .81083E-02** at limit **
   4  Prefactor     .57891        .74114E-01    .22125E-03   -.26656E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101942
  Index      = 3.00468
  Normalizat = 0.01
  Prefactor  = 0.578909
 **********
 **   18 **HESSE 
 **********

 FCN=   221.7592     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      305 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10194E-03    2181.5        .16087E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0047        5.7533        .50000       -.41050    
   3  Normalizat    .10000E-01    .20844        .16217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .57891        .14764        .88500E-05   -1.0848    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.23932e-08
Minuit parameter uncertainties:
  1  0.135449
  2  2025.38
  3  1.60231e-07
  4  0.147734
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/117388': 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) = 221.759236747
delta logL = -3.34989039175e-07

Extracting fit parameters...

4FGL J1152.3-0839
   Spectrum: PowerLaw
285    Prefactor:  1.019e-04  1.354e-01  1.000e-04  1.000e+04 ( 1.000e-12)
286        Index:  3.005e+00  2.025e+03  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  8.403e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
607    Prefactor:  5.789e-01  1.477e-01  0.000e+00  1.000e+01 ( 1.000e+00)
608        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
609        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
606   Normalization:  1.000e-02  1.602e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 178.081 -8.666

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/117388/cmap_HighResolution_306979201_307238401_4FGL_J1152.3-0839_daily_bin261.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.45e-01', job_status='DONE', photon_flux_upper_limit='1.87e-06', time_completed='2021-09-04 13:42:09.276241', job_id='117388', GAL2='0.58', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630788129.28', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.58', dlogl='-3.35e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='261' AND source_name='4FGL J1152.3-0839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:42:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 117388: <4FGL_J1152.3-0839_daily_bin261> in cluster <slac> Done

Job <4FGL_J1152.3-0839_daily_bin261> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 13:31:54 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 13:31:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 13:31:56 2021
Terminated at Sat Sep  4 13:42:10 2021
Results reported at Sat Sep  4 13:42:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1152.3-0839_daily_bin261 178.081 -8.6663 306979201 307238401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1152.3-0839 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   378.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   613 sec.
    Turnaround time :                            616 sec.

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

