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


Performing analysis on: 4FGL_J1159.2-2227_daily_bin548
RA = 179.811, Dec = -22.4605
tmin = 381369601, tmax = 381628801
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='215927', job_status='RUN', time_executed='2021-09-04 18:25:56.966530', time_epoch_executed='1630805156.97' WHERE source_name='4FGL J1159.2-2227' and cadence='daily' and bin_id='548'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/215927

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/215927/ft1_4FGL_J1159.2-2227_daily_bin548.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/215927/ft2_4FGL_J1159.2-2227_daily_bin548.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/215927/ft1_4FGL_J1159.2-2227_daily_bin548.fits outfile=/scratch/kocevski/215927/ft1_filteredMKT_4FGL_J1159.2-2227_daily_bin548.fits ra=179.811 dec=-22.4605 rad=12.0 tmin=381369601.0 tmax=381628801.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.55
user 3.30
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/215927/ft2_4FGL_J1159.2-2227_daily_bin548.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/215927/ft2_4FGL_J1159.2-2227_daily_bin548.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/215927/ft1_filteredMKT_4FGL_J1159.2-2227_daily_bin548.fits evtable="EVENTS" outfile="/scratch/kocevski/215927/ft1_filtered_4FGL_J1159.2-2227_daily_bin548.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/215927/ft1_filtered_4FGL_J1159.2-2227_daily_bin548.fits" evtable="EVENTS" scfile=/scratch/kocevski/215927/ft2_4FGL_J1159.2-2227_daily_bin548.fits sctable="SC_DATA" outfile=/scratch/kocevski/215927/ltcube_381369601_381628801_4FGL_J1159.2-2227_daily_bin548.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/215927/ft2_4FGL_J1159.2-2227_daily_bin548.fits
.....................!
real 12.49
user 12.07
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/215927/ft1_filtered_4FGL_J1159.2-2227_daily_bin548.fits evtable="EVENTS" scfile=/scratch/kocevski/215927/ft2_4FGL_J1159.2-2227_daily_bin548.fits sctable="SC_DATA" expcube=/scratch/kocevski/215927/ltcube_381369601_381628801_4FGL_J1159.2-2227_daily_bin548.fits outfile=/scratch/kocevski/215927/expmap_381369601_381628801_4FGL_J1159.2-2227_daily_bin548.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/215927/ltcube_381369601_381628801_4FGL_J1159.2-2227_daily_bin548.fits
.....................!
real 191.21
user 185.49
sys 5.26

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

Setting source of interest to:
4FGL J1159.2-2227 @ 179.811 -22.4605

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/215927/ft1_filtered_4FGL_J1159.2-2227_daily_bin548.fits scfile=/scratch/kocevski/215927/ft2_4FGL_J1159.2-2227_daily_bin548.fits outfile=/scratch/kocevski/215927/cmap_381369601_381628801_4FGL_J1159.2-2227_daily_bin548.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=179.811 yref=-22.4605 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/215927/ft1_filtered_4FGL_J1159.2-2227_daily_bin548.fits scfile=/scratch/kocevski/215927/ft2_4FGL_J1159.2-2227_daily_bin548.fits outfile=/scratch/kocevski/215927/cmap_HighResolution_381369601_381628801_4FGL_J1159.2-2227_daily_bin548.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=179.811 yref=-22.4605 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/215927/ft1_filtered_4FGL_J1159.2-2227_daily_bin548.fits evtable="EVENTS" scfile=/scratch/kocevski/215927/ft2_4FGL_J1159.2-2227_daily_bin548.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/215927/Model_4FGL_J1159.2-2227_daily_bin548.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/215927/ft1_filtered_4FGL_J1159.2-2227_daily_bin548.fits.....................!
real 79.26
user 77.87
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/215927/ft1_filtered_4FGL_J1159.2-2227_daily_bin548.fits', '/scratch/kocevski/215927/ft2_4FGL_J1159.2-2227_daily_bin548.fits', expMap='/scratch/kocevski/215927/expmap_381369601_381628801_4FGL_J1159.2-2227_daily_bin548.fits', expCube='/scratch/kocevski/215927/ltcube_381369601_381628801_4FGL_J1159.2-2227_daily_bin548.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/215927/Model_4FGL_J1159.2-2227_daily_bin548.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1159.2-2227'

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  6.706e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.448e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  1.270e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/215927/ft1_filtered_4FGL_J1159.2-2227_daily_bin548.fits
Spacecraft file(s): /scratch/kocevski/215927/ft2_4FGL_J1159.2-2227_daily_bin548.fits
Exposure map: /scratch/kocevski/215927/expmap_381369601_381628801_4FGL_J1159.2-2227_daily_bin548.fits
Exposure cube: /scratch/kocevski/215927/ltcube_381369601_381628801_4FGL_J1159.2-2227_daily_bin548.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/215927/Model_4FGL_J1159.2-2227_daily_bin548.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) = 9851.80099667

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.8917       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .75899       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.483       1.0000         .10000E-03   10000.    
     5 'norm      '    12.988       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.8850       1.0000         .10000E-03   10000.    
     7 'Prefactor '    43.205       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12239E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.3900       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.0156       1.0000         .10000E-03   10000.    
    13 'norm      '    3.2696       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2812       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.6604       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10398E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12797E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.5142       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    7.4018       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .99499       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96214       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9851.645     FROM MIGRAD    STATUS=CONVERGED    605 CALLS     2538 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    96.317        .12968E-05** at limit **
   2  Prefactor     5.8915        16.300        .15803E-05    .82590E-04
   3  Prefactor     .75925        4.4296        .14261E-05    .17834E-03
   4  Prefactor     14.466        25.976        .13168E-05    .16184E-04
   5  norm          12.987        1.8739       -.84871E-08   -.44640E-04
   6  Prefactor     3.8829        7.7956        .16473E-06    .18787E-04
   7  Prefactor     43.201        31.128        .32468E-06    .13773E-04
   8  Prefactor     .10000E-03    3.3265        .84758E-06** at limit **
   9  Prefactor     4.3870        17.227        .38784E-05    .11891E-03
  10  Prefactor     .10000E-03    12.005        .74126E-06** at limit **
  11  norm          .10000E-03    7.9458       -.11353E-05** at limit **
  12  Prefactor     1.0311        12.096       -.19624E-06   -.81026E-04
  13  norm          3.2671        3.6636        .50157E-07    .23206E-05
  14  Prefactor     1.2775        3.4507        .61414E-06    .15042E-03
  15  Prefactor     .10000E-03    31.246        .18812E-05** at limit **
  16  Prefactor     2.6485        31.409       -.51689E-06   -.13629E-05
  17  Prefactor     .10000E-03    8.0499        .75558E-06** at limit **
  18  Prefactor     .10000E-03    41.282       -.24863E-05** at limit **
  19  Prefactor     .10000E-03    5.6354       -.19308E-07** at limit **
  20  Prefactor     .10000E-03    5.2802        .28961E-05** at limit **
  21  Prefactor     7.5144        2.2901        .92216E-07   -.17669E-03
  22  Prefactor     .10000E-03    8.4607        .17913E-05** at limit **
  23  norm          7.4018        1.3978        .41679E-08   -.82134E-04
  24  Normalizat    .99504        .19540       -.57666E-06   -.61399E-04
  25  Prefactor     .96210        .99697E-01    .94622E-07   -.94286E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.89155
  Prefactor  = 0.759249
  Prefactor  = 14.4664
  norm       = 12.9874
  Prefactor  = 3.88287
  Prefactor  = 43.2008
  Prefactor  = 0.000100003
  Prefactor  = 4.38701
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.03111
  norm       = 3.26713
  Prefactor  = 1.27747
  Prefactor  = 0.0001
  Prefactor  = 2.64853
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 7.51443
  Prefactor  = 0.0001
  norm       = 7.40179
  Normalizat = 0.995042
  Prefactor  = 0.962101
 **********
 **   18 **HESSE 
 **********

 FCN=   9851.645     FROM HESSE     STATUS=OK           433 CALLS     2971 TOTAL
                     EDM=   .75E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    96.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.8915        16.463        .82722E-03   -1.5222    
   3  Prefactor     .75925        4.6247        .41960E-03   -1.5534    
   4  Prefactor     14.466        25.987        .10524E-03   -1.4947    
   5  norm          12.987        1.8765        .49064E-04   -1.4987    
   6  Prefactor     3.8829        7.7905        .20471E-03   -1.5314    
   7  Prefactor     43.201        31.106        .60991E-04   -1.4392    
   8  Prefactor     .10000E-03    15.648        .32828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.3870        19.059        .96111E-03   -1.5289    
  10  Prefactor     .10000E-03    12.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    7.9687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.0311        64.158        .52083E-02   -1.5505    
  13  norm          3.2671        3.7992        .16101E-03   -1.5346    
  14  Prefactor     1.2775        3.3591        .27445E-03   -1.5482    
  15  Prefactor     .10000E-03    31.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.6485        30.179        .24990E-03   -1.5382    
  17  Prefactor     .10000E-03    8.0677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    41.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.6489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.8247        .30882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.5144        2.2526        .79440E-04   -1.5160    
  22  Prefactor     .10000E-03    8.4797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          7.4018        1.3981        .49378E-04   -1.5164    
  24  Normalizat    .99504        .23142        .34514E-03   -.93197    
  25  Prefactor     .96210        .11921        .18881E-03   -.94004    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.52923e-08
Minuit parameter uncertainties:
  1  2.75496e-05
  2  16.4761
  3  3.74787
  4  26.0075
  5  1.87649
  6  7.79257
  7  31.1178
  8  0.000441138
  9  18.2976
  10  9.63093e-06
  11  1.90451e-05
  12  16.2844
  13  3.79946
  14  3.35964
  15  4.1943e-05
  16  17.8919
  17  1.05846e-05
  18  9.35955e-05
  19  1.16328e-06
  20  0.000336488
  21  2.25259
  22  7.64126e-06
  23  1.39809
  24  0.231658
  25  0.119243
Done.

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

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  1.031e+00  1.628e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.448e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  1.270e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
581    Prefactor:  9.621e-01  1.192e-01  0.000e+00  1.000e+01 ( 1.000e+00)
582        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
583        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
580   Normalization:  9.950e-01  2.317e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 179.811 -22.460
Photon Flux Upper Limit: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/215927/likelihoodResults_381369601_381628801_4FGL_J1159.2-2227_daily_bin548.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) = 9851.31535071
delta logL = 0.330031186997

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9851.24733645
delta logL = 0.398045448959

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9851.247     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      246 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .62191        9.5706        .11765E-01    .21969E-02
   2  Index         3.9970        2.3762        .12629        .22226E-03
   3  Normalizat    .92795        .36086E-01    .80462E-01    .27072E-04
   4  Prefactor     .98248        .19525E-01    .46047E-01   -.46441E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.621914
  Index      = 3.99704
  Normalizat = 0.927953
  Prefactor  = 0.982479
 **********
 **   18 **HESSE 
 **********

 FCN=   9851.247     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      279 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .62191        36.289        .83886E-04   -1.5550    
   2  Index         3.9970        6.9974        .68648E-02   -.20196    
   3  Normalizat    .92795        .18455        .35618E-03   -.95485    
   4  Prefactor     .98248        .97492E-01    .18702E-03   -.93316    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.65589e-06
Minuit parameter uncertainties:
  1  9.50654
  2  6.85241
  3  0.184678
  4  0.0975092
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/215927': 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) = 9851.24733602
delta logL = 0.398045870559

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  6.219e-01  9.507e+00  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  3.997e+00  6.852e+00  0.000e+00  1.000e+01 (-1.000e+00)
301        Scale:  1.270e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
581    Prefactor:  9.825e-01  9.751e-02  0.000e+00  1.000e+01 ( 1.000e+00)
582        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
583        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
580   Normalization:  9.280e-01  1.847e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 179.811 -22.460

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/215927/cmap_HighResolution_381369601_381628801_4FGL_J1159.2-2227_daily_bin548.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.98e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-04 18:41:38.005303', job_id='215927', GAL2='0.98', fit_tolerance='1e-08', EG2='0.93', EG='1.00', time_epoch_completed='1630806098.01', return_code2='102', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='3.98e-01', ts2='0.88', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='548' AND source_name='4FGL J1159.2-2227' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:41:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 215927: <4FGL_J1159.2-2227_daily_bin548> in cluster <slac> Done

Job <4FGL_J1159.2-2227_daily_bin548> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 18:25:36 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 18:25:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 18:25:39 2021
Terminated at Sat Sep  4 18:41:38 2021
Results reported at Sat Sep  4 18:41:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.2-2227_daily_bin548 179.811 -22.4605 381369601 381628801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1159.2-2227 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   938.32 sec.
    Max Memory :                                 1018 MB
    Average Memory :                             328.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            962 sec.

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

