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


Performing analysis on: 4FGL_J1152.3-0839_daily_bin1031
RA = 178.081, Dec = -8.6663
tmin = 506563201, tmax = 506822401
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='122044', job_status='RUN', time_executed='2021-09-04 13:49:15.489393', time_epoch_executed='1630788555.49' WHERE source_name='4FGL J1152.3-0839' and cadence='daily' and bin_id='1031'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/122044

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/122044/ft1_4FGL_J1152.3-0839_daily_bin1031.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/122044/ft2_4FGL_J1152.3-0839_daily_bin1031.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/122044/ft1_4FGL_J1152.3-0839_daily_bin1031.fits outfile=/scratch/kocevski/122044/ft1_filteredMKT_4FGL_J1152.3-0839_daily_bin1031.fits ra=178.081 dec=-8.6663 rad=12.0 tmin=506563201.0 tmax=506822401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.37
user 3.16
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/122044/ft2_4FGL_J1152.3-0839_daily_bin1031.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/122044/ft1_filteredMKT_4FGL_J1152.3-0839_daily_bin1031.fits evtable="EVENTS" outfile="/scratch/kocevski/122044/ft1_filtered_4FGL_J1152.3-0839_daily_bin1031.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.78
user 0.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/122044/ft1_filtered_4FGL_J1152.3-0839_daily_bin1031.fits" evtable="EVENTS" scfile=/scratch/kocevski/122044/ft2_4FGL_J1152.3-0839_daily_bin1031.fits sctable="SC_DATA" outfile=/scratch/kocevski/122044/ltcube_506563201_506822401_4FGL_J1152.3-0839_daily_bin1031.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/122044/ft2_4FGL_J1152.3-0839_daily_bin1031.fits
.....................!
real 12.29
user 11.85
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/122044/ft1_filtered_4FGL_J1152.3-0839_daily_bin1031.fits evtable="EVENTS" scfile=/scratch/kocevski/122044/ft2_4FGL_J1152.3-0839_daily_bin1031.fits sctable="SC_DATA" expcube=/scratch/kocevski/122044/ltcube_506563201_506822401_4FGL_J1152.3-0839_daily_bin1031.fits outfile=/scratch/kocevski/122044/expmap_506563201_506822401_4FGL_J1152.3-0839_daily_bin1031.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/122044/ltcube_506563201_506822401_4FGL_J1152.3-0839_daily_bin1031.fits
.....................!
real 190.96
user 185.51
sys 4.57

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/122044/ft1_filtered_4FGL_J1152.3-0839_daily_bin1031.fits scfile=/scratch/kocevski/122044/ft2_4FGL_J1152.3-0839_daily_bin1031.fits outfile=/scratch/kocevski/122044/cmap_506563201_506822401_4FGL_J1152.3-0839_daily_bin1031.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/122044/ft1_filtered_4FGL_J1152.3-0839_daily_bin1031.fits scfile=/scratch/kocevski/122044/ft2_4FGL_J1152.3-0839_daily_bin1031.fits outfile=/scratch/kocevski/122044/cmap_HighResolution_506563201_506822401_4FGL_J1152.3-0839_daily_bin1031.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.64
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/122044/ft1_filtered_4FGL_J1152.3-0839_daily_bin1031.fits', '/scratch/kocevski/122044/ft2_4FGL_J1152.3-0839_daily_bin1031.fits', expMap='/scratch/kocevski/122044/expmap_506563201_506822401_4FGL_J1152.3-0839_daily_bin1031.fits', expCube='/scratch/kocevski/122044/ltcube_506563201_506822401_4FGL_J1152.3-0839_daily_bin1031.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/122044/Model_4FGL_J1152.3-0839_daily_bin1031.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/122044/ft1_filtered_4FGL_J1152.3-0839_daily_bin1031.fits
Spacecraft file(s): /scratch/kocevski/122044/ft2_4FGL_J1152.3-0839_daily_bin1031.fits
Exposure map: /scratch/kocevski/122044/expmap_506563201_506822401_4FGL_J1152.3-0839_daily_bin1031.fits
Exposure cube: /scratch/kocevski/122044/ltcube_506563201_506822401_4FGL_J1152.3-0839_daily_bin1031.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/122044/Model_4FGL_J1152.3-0839_daily_bin1031.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) = 5167.50831867

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.8524       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.2805       1.0000         .10000E-03   10000.    
     6 'norm      '    .76795       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.0328       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.5725       1.0000         .10000E-03   10000.    
     9 'norm      '    11.679       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.6395       1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.600       1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.314       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.0122       1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.396       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.119       1.0000         .10000E-03   10000.    
    19 'Prefactor '    28.703       1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.088       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.6317       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.8253       1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.6898       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.6481       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .47661       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.

 FCN=   5167.439     FROM MIGRAD    STATUS=CONVERGED    670 CALLS     3464 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.8547        11.269        .51240E-07   -.20962E-04
   2  Prefactor     .10000E-03    5.4288       -.56328E-07** at limit **
   3  Prefactor     .10000E-03    3.1329       -.29605E-07** at limit **
   4  Prefactor     .10000E-03    35.443        .20193E-05** at limit **
   5  norm          2.2782        7.7772        .93936E-06   -.41294E-04
   6  norm          .76818        1.9703        .42177E-06   -.11593E-03
   7  Prefactor     7.0341        4.5134        .13681E-06   -.28157E-04
   8  Prefactor     6.5742        7.9404        .12818E-05   -.19863E-03
   9  norm          11.664        22.242       -.16519E-05   -.14063E-03
  10  Prefactor     4.6400        2.7500        .67262E-07   -.18910E-04
  11  Prefactor     18.604        18.116        .46706E-06    .41725E-04
  12  Prefactor     24.300        33.366       -.20969E-05   -.16851E-03
  13  norm          .10000E-03    2.1533        .94790E-07** at limit **
  14  Prefactor     3.0164        4.4100        .56602E-06    .16693E-03
  15  Prefactor     23.395        24.901        .87872E-07   -.21784E-04
  16  Prefactor     .10000E-03    9.4806        .32334E-07** at limit **
  17  Prefactor     .10000E-03    40.978       -.10076E-05** at limit **
  18  Prefactor     12.121        10.625        .10025E-06   -.21113E-04
  19  Prefactor     28.711        21.280        .41851E-06    .10675E-03
  20  Prefactor     19.095        41.665        .12184E-05    .68613E-04
  21  Prefactor     .10000E-03    23.188       -.49918E-06** at limit **
  22  Prefactor     .10000E-03    11.421       -.50121E-06** at limit **
  23  norm          3.6288        2.7762        .98537E-06   -.56467E-03
  24  Prefactor     .10000E-03    4.1435        .52221E-07** at limit **
  25  Prefactor     5.8257        2.6483       -.82560E-09   -.43472E-05
  26  Prefactor     4.6925        16.794        .71121E-06   -.41917E-05
  27  Normalizat    1.6475        .25334       -.16022E-05    .37834E-04
  28  Prefactor     .47695        .15303        .47226E-06   -.73306E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.85474
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.27815
  norm       = 0.768183
  Prefactor  = 7.03409
  Prefactor  = 6.57419
  norm       = 11.6643
  Prefactor  = 4.64003
  Prefactor  = 18.604
  Prefactor  = 24.3001
  norm       = 0.0001
  Prefactor  = 3.0164
  Prefactor  = 23.3945
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 12.1207
  Prefactor  = 28.7112
  Prefactor  = 19.0952
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.6288
  Prefactor  = 0.0001
  Prefactor  = 5.82575
  Prefactor  = 4.69246
  Normalizat = 1.6475
  Prefactor  = 0.476946
 **********
 **   18 **HESSE 
 **********

 FCN=   5167.439     FROM HESSE     STATUS=OK           521 CALLS     3985 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.8547        11.268        .12766E-03   -1.5080    
   2  Prefactor     .10000E-03    5.4446        .16349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.1754        .12406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    36.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.2782        7.7445        .27188E-03   -1.5406    
   6  norm          .76818        1.9450        .15404E-03   -1.5533    
   7  Prefactor     7.0341        4.5187        .11302E-03   -1.5177    
   8  Prefactor     6.5742        7.9448        .78267E-03   -1.5195    
   9  norm          11.664        22.629        .11722E-03   -1.5025    
  10  Prefactor     4.6400        2.7563        .88334E-04   -1.5277    
  11  Prefactor     18.604        18.153        .92868E-04   -1.4845    
  12  Prefactor     24.300        34.125        .81237E-04   -1.4722    
  13  norm          .10000E-03    2.1551        .10294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.0164        4.3780        .16589E-03   -1.5361    
  15  Prefactor     23.395        24.912        .82813E-04   -1.4740    
  16  Prefactor     .10000E-03    9.4880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    41.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.121        10.648        .11507E-03   -1.5012    
  19  Prefactor     28.711        21.458        .74781E-04   -1.4636    
  20  Prefactor     19.095        41.861        .91675E-04   -1.4834    
  21  Prefactor     .10000E-03    23.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.6288        2.8322        .51623E-03   -1.5327    
  24  Prefactor     .10000E-03    4.1809        .14279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     5.8257        2.6482        .75868E-04   -1.5225    
  26  Prefactor     4.6925        16.770        .18582E-03   -1.5275    
  27  Normalizat    1.6475        .29473        .25686E-03   -.73714    
  28  Prefactor     .47695        .17634        .28214E-03   -1.1305    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.27047e-10
Minuit parameter uncertainties:
  1  11.2703
  2  4.96054e-06
  3  1.47116e-06
  4  0.000454956
  5  7.7479
  6  1.94512
  7  4.51893
  8  7.94607
  9  22.6459
  10  2.75642
  11  18.1586
  12  34.1526
  13  3.79659e-06
  14  4.37848
  15  24.9231
  16  3.43037e-06
  17  0.000431045
  18  10.6499
  19  21.4639
  20  41.9257
  21  9.19149e-05
  22  7.64428e-05
  23  2.83234
  24  3.45393e-06
  25  2.64821
  26  16.7866
  27  0.295046
  28  0.176538
Done.

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

Extracting fit parameters...

4FGL J1152.3-0839
   Spectrum: PowerLaw
285    Prefactor:  3.016e+00  4.378e+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

GAL_V02
   Spectrum: PowerLaw
607    Prefactor:  4.769e-01  1.765e-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.647e+00  2.950e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.67
Ra Dec: 178.081 -8.666
Photon Flux Upper Limit: 1.54e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.19e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/122044/likelihoodResults_506563201_506822401_4FGL_J1152.3-0839_daily_bin1031.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5167.41255265
delta logL = 0.0264346346721

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5167.41100995
delta logL = 0.0279773354159

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0780       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0240       1.0000          .0000       10.000    
     3 'Normalizat'    1.6650       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .46997       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=   5167.411     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      284 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0779        4.5607        .17433E-03   -.10675E-03
   2  Index         2.0240        1.3410        .15140E-01   -.31664E-04
   3  Normalizat    1.6649        .27462        .25582E-03   -.15225E-04
   4  Prefactor     .47004        .17133        .28406E-03   -.52948E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.07794
  Index      = 2.02403
  Normalizat = 1.66487
  Prefactor  = 0.470042
 **********
 **   18 **HESSE 
 **********

 FCN=   5167.411     FROM HESSE     STATUS=OK            25 CALLS      309 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0779        4.6514        .69734E-05   -1.5357    
   2  Index         2.0240        1.3664        .60562E-03   -.63751    
   3  Normalizat    1.6649        .27467        .51164E-04   -.73245    
   4  Prefactor     .47004        .17135        .11363E-04   -1.1337    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09847e-10
Minuit parameter uncertainties:
  1  4.65196
  2  1.39423
  3  0.274917
  4  0.171535
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/122044': 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) = 5167.41100984
delta logL = 0.0279774485916

Extracting fit parameters...

4FGL J1152.3-0839
   Spectrum: PowerLaw
285    Prefactor:  3.078e+00  4.652e+00  1.000e-04  1.000e+04 ( 1.000e-12)
286        Index:  2.024e+00  1.394e+00  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:  4.700e-01  1.715e-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.665e+00  2.749e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.67
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/122044/cmap_HighResolution_506563201_506822401_4FGL_J1152.3-0839_daily_bin1031.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', job_status='DONE', photon_flux_upper_limit='1.54e-07', time_completed='2021-09-04 14:01:23.397664', job_id='122044', GAL2='0.47', fit_tolerance='1e-08', EG2='1.66', EG='1.65', time_epoch_completed='1630789283.4', return_code2='0', ts='0.67', comment='SUCCESS', return_code='0', GAL='0.48', dlogl='2.80e-02', ts2='0.73', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1031' AND source_name='4FGL J1152.3-0839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 14:01:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 122044: <4FGL_J1152.3-0839_daily_bin1031> in cluster <slac> Done

Job <4FGL_J1152.3-0839_daily_bin1031> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 13:46:11 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 13:46: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 13:46:12 2021
Terminated at Sat Sep  4 14:01:24 2021
Results reported at Sat Sep  4 14:01:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1152.3-0839_daily_bin1031 178.081 -8.6663 506563201 506822401 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 :                                   725.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             250.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            913 sec.

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

