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


Performing analysis on: 4FGL_J1150.4+2418_daily_bin1357
RA = 177.603, Dec = 24.3016
tmin = 591062401, tmax = 591321601
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='107053', job_status='RUN', time_executed='2021-09-04 13:01:39.481881', time_epoch_executed='1630785699.48' WHERE source_name='4FGL J1150.4+2418' and cadence='daily' and bin_id='1357'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/107053

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/107053/ft1_4FGL_J1150.4+2418_daily_bin1357.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/107053/ft2_4FGL_J1150.4+2418_daily_bin1357.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/107053/ft1_4FGL_J1150.4+2418_daily_bin1357.fits outfile=/scratch/kocevski/107053/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin1357.fits ra=177.603 dec=24.3016 rad=12.0 tmin=591062401.0 tmax=591321601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.21
user 2.80
sys 0.56

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/107053/ft2_4FGL_J1150.4+2418_daily_bin1357.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/107053/ft2_4FGL_J1150.4+2418_daily_bin1357.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/107053/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin1357.fits evtable="EVENTS" outfile="/scratch/kocevski/107053/ft1_filtered_4FGL_J1150.4+2418_daily_bin1357.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.36
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/107053/ft1_filtered_4FGL_J1150.4+2418_daily_bin1357.fits" evtable="EVENTS" scfile=/scratch/kocevski/107053/ft2_4FGL_J1150.4+2418_daily_bin1357.fits sctable="SC_DATA" outfile=/scratch/kocevski/107053/ltcube_591062401_591321601_4FGL_J1150.4+2418_daily_bin1357.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/107053/ft2_4FGL_J1150.4+2418_daily_bin1357.fits
.....................!
real 12.28
user 11.93
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/107053/ft1_filtered_4FGL_J1150.4+2418_daily_bin1357.fits evtable="EVENTS" scfile=/scratch/kocevski/107053/ft2_4FGL_J1150.4+2418_daily_bin1357.fits sctable="SC_DATA" expcube=/scratch/kocevski/107053/ltcube_591062401_591321601_4FGL_J1150.4+2418_daily_bin1357.fits outfile=/scratch/kocevski/107053/expmap_591062401_591321601_4FGL_J1150.4+2418_daily_bin1357.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/107053/ltcube_591062401_591321601_4FGL_J1150.4+2418_daily_bin1357.fits
.....................!
real 191.10
user 185.33
sys 5.06

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

Setting source of interest to:
4FGL J1150.4+2418 @ 177.603 24.3016

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/107053/ft1_filtered_4FGL_J1150.4+2418_daily_bin1357.fits scfile=/scratch/kocevski/107053/ft2_4FGL_J1150.4+2418_daily_bin1357.fits outfile=/scratch/kocevski/107053/cmap_591062401_591321601_4FGL_J1150.4+2418_daily_bin1357.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=177.603 yref=24.3016 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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/107053/ft1_filtered_4FGL_J1150.4+2418_daily_bin1357.fits scfile=/scratch/kocevski/107053/ft2_4FGL_J1150.4+2418_daily_bin1357.fits outfile=/scratch/kocevski/107053/cmap_HighResolution_591062401_591321601_4FGL_J1150.4+2418_daily_bin1357.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=177.603 yref=24.3016 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/107053/ft1_filtered_4FGL_J1150.4+2418_daily_bin1357.fits evtable="EVENTS" scfile=/scratch/kocevski/107053/ft2_4FGL_J1150.4+2418_daily_bin1357.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/107053/Model_4FGL_J1150.4+2418_daily_bin1357.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/107053/ft1_filtered_4FGL_J1150.4+2418_daily_bin1357.fits.....................!
real 74.33
user 69.92
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/107053/ft1_filtered_4FGL_J1150.4+2418_daily_bin1357.fits', '/scratch/kocevski/107053/ft2_4FGL_J1150.4+2418_daily_bin1357.fits', expMap='/scratch/kocevski/107053/expmap_591062401_591321601_4FGL_J1150.4+2418_daily_bin1357.fits', expCube='/scratch/kocevski/107053/ltcube_591062401_591321601_4FGL_J1150.4+2418_daily_bin1357.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/107053/Model_4FGL_J1150.4+2418_daily_bin1357.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1150.4+2418'

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  1.344e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  2.228e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.108e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/107053/ft1_filtered_4FGL_J1150.4+2418_daily_bin1357.fits
Spacecraft file(s): /scratch/kocevski/107053/ft2_4FGL_J1150.4+2418_daily_bin1357.fits
Exposure map: /scratch/kocevski/107053/expmap_591062401_591321601_4FGL_J1150.4+2418_daily_bin1357.fits
Exposure cube: /scratch/kocevski/107053/ltcube_591062401_591321601_4FGL_J1150.4+2418_daily_bin1357.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/107053/Model_4FGL_J1150.4+2418_daily_bin1357.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) = 8316.99554263

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .90927       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.094       1.0000         .10000E-03   10000.    
     3 'norm      '    16.917       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.0631       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.7933       1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.423       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.677       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2726       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.323       1.0000         .10000E-03   10000.    
    13 'norm      '    .65666       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.090       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.7466       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    9.3908       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .87462       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .38256       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .23352E-01   1.0000         .10000E-03   10000.    
    23 'norm      '    7.5373       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.1457       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .97689       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2327       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8316.962     FROM MIGRAD    STATUS=CONVERGED    597 CALLS     3224 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .90958        2.0240        .43774E-06   -.37095E-03
   2  Prefactor     12.093        8.0169        .16403E-07   -.39156E-04
   3  norm          16.912        11.505       -.63673E-06   -.17798E-03
   4  Prefactor     .10000E-03    4.3475        .78070E-06** at limit **
   5  Prefactor     .10000E-03    13.109       -.44659E-06** at limit **
   6  Prefactor     .10000E-03    18.170        .30528E-06** at limit **
   7  Prefactor     5.0627        9.1729        .34739E-05   -.79704E-03
   8  Prefactor     5.7924        4.8869        .11732E-06   -.10075E-03
   9  Prefactor     26.424        20.285        .28681E-07    .69100E-04
  10  Prefactor     14.677        11.697        .31771E-06   -.21234E-03
  11  Prefactor     1.2713        1.3853        .64153E-07   -.13280E-03
  12  Prefactor     15.318        23.976       -.26027E-05   -.32222E-03
  13  norm          .65523        .87434        .12230E-06    .32863E-03
  14  Prefactor     .10000E-03    2.6542        .55463E-07** at limit **
  15  Prefactor     13.080        27.599       -.64293E-05   -.39250E-03
  16  Prefactor     1.7474        3.5461        .26434E-06   -.26097E-03
  17  Prefactor     .10000E-03    4.3314       -.71968E-06** at limit **
  18  norm          9.3908        2.7723        .72507E-08   -.42884E-04
  19  Prefactor     .87452        .81171       -.60244E-07    .97683E-04
  20  Prefactor     .38282        1.2437        .61604E-06   -.59747E-03
  21  Prefactor     .10000E-03    3.3410        .12696E-06** at limit **
  22  norm          .23321E-01    .91123E-01   -.14712E-09   -.65963E-03
  23  norm          7.5360        4.2119       -.70452E-07   -.94468E-04
  24  Prefactor     4.1454        5.4258       -.56810E-07   -.10211E-03
  25  Normalizat    .97737        .18320        .86604E-06   -.78738E-04
  26  Prefactor     1.2323        .18528       -.99238E-06    .98324E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.909578
  Prefactor  = 12.0931
  norm       = 16.9122
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.06266
  Prefactor  = 5.79238
  Prefactor  = 26.4241
  Prefactor  = 14.677
  Prefactor  = 1.27133
  Prefactor  = 15.3178
  norm       = 0.655231
  Prefactor  = 0.0001
  Prefactor  = 13.0798
  Prefactor  = 1.7474
  Prefactor  = 0.0001
  norm       = 9.39077
  Prefactor  = 0.87452
  Prefactor  = 0.382821
  Prefactor  = 0.0001
  norm       = 0.0233206
  norm       = 7.53599
  Prefactor  = 4.14537
  Normalizat = 0.977365
  Prefactor  = 1.23227
 **********
 **   18 **HESSE 
 **********

 FCN=   8316.962     FROM HESSE     STATUS=OK           472 CALLS     3696 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .90958        2.0026        .18582E-03   -1.5517    
   2  Prefactor     12.093        8.0293        .11519E-03   -1.5012    
   3  norm          16.912        11.559        .97378E-04   -1.4885    
   4  Prefactor     .10000E-03    4.3703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    18.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.0627        10.199        .89348E-03   -1.5258    
   8  Prefactor     5.7924        4.8737        .16686E-03   -1.5227    
   9  Prefactor     26.424        20.185        .77933E-04   -1.4679    
  10  Prefactor     14.677        11.774        .52274E-03   -1.4942    
  11  Prefactor     1.2713        1.3518        .10523E-03   -1.5482    
  12  Prefactor     15.318        24.132        .10232E-03   -1.4925    
  13  norm          .65523        .78296        .91890E-03   -1.5546    
  14  Prefactor     .10000E-03    2.6998        .14472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.080        29.235        .11071E-03   -1.4984    
  16  Prefactor     1.7474        3.5375        .22637E-03   -1.5444    
  17  Prefactor     .10000E-03    4.4690        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          9.3908        2.7591        .78234E-04   -1.5095    
  19  Prefactor     .87452        .86704        .76428E-03   -1.5521    
  20  Prefactor     .38282        1.2504        .17619E-03   -1.5584    
  21  Prefactor     .10000E-03    3.3759        .16259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .23321E-01    .29320        .51316E-03   -1.5677    
  23  norm          7.5360        4.2060        .13408E-03   -1.5159    
  24  Prefactor     4.1454        5.4118        .19796E-03   -1.5301    
  25  Normalizat    .97737        .21719        .27552E-03   -.93793    
  26  Prefactor     1.2323        .22065        .27504E-03   -.85344    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3448e-08
Minuit parameter uncertainties:
  1  2.0028
  2  8.02997
  3  11.5605
  4  4.54264e-05
  5  7.59573e-05
  6  3.02952e-05
  7  10.2026
  8  4.87406
  9  20.1907
  10  11.7763
  11  1.35182
  12  24.1469
  13  0.78297
  14  2.77879e-06
  15  29.2672
  16  3.53789
  17  4.26354e-05
  18  2.75915
  19  0.867048
  20  1.25047
  21  3.21536e-06
  22  0.165026
  23  4.20618
  24  5.41247
  25  0.217381
  26  0.220816
Done.

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

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  1.271e+00  1.352e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  2.228e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.108e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  1.232e+00  2.208e-01  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  9.774e-01  2.174e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.49
Ra Dec: 177.603 24.302
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 2.20e-08 +/- 2.34e-08
Energy Flux (Fixed Index): 9.39e-06 +/- 9.98e-06

TS (Fixed Index): 1.49
Ra Dec: 177.603 24.302
Photon Flux Upper Limit: 7.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/107053/likelihoodResults_591062401_591321601_4FGL_J1150.4+2418_daily_bin1357.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) = 8315.97857832
delta logL = 0.98363352987

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8315.96528599
delta logL = 0.996925853948

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8315.965     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      214 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0603        .94944        .11900E-01    .24770E-02
   2  Index         1.2629        .36722        .24339       -.14233E-03
   3  Normalizat    .99138        .16324        .46059E-01    .26435E-03
   4  Prefactor     1.2255        .18131        .62315E-01    .22833E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.06033
  Index      = 1.26289
  Normalizat = 0.991379
  Prefactor  = 1.22555
 **********
 **   18 **HESSE 
 **********

 FCN=   8315.965     FROM HESSE     STATUS=OK            29 CALLS      243 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0603        1.2343        .80812E-04   -1.5502    
   2  Index         1.2629        .53655        .97126E-02   -.84417    
   3  Normalizat    .99138        .19302        .27366E-03   -.93320    
   4  Prefactor     1.2255        .21441        .27561E-03   -.85549    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.83337e-10
Minuit parameter uncertainties:
  1  1.23438
  2  0.538916
  3  0.19316
  4  0.214566
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/107053': 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) = 8315.96528599
delta logL = 0.996925854673

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  1.060e+00  1.234e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  1.263e+00  5.389e-01  0.000e+00  1.000e+01 (-1.000e+00)
288        Scale:  1.108e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  1.226e+00  2.146e-01  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  9.914e-01  1.932e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.48
Ra Dec: 177.603 24.302
Photon Index (Free Index): 1.26 +/- 0.54
Photon Flux (Free Index): 7.04e-09 +/- 8.05e-09
Energy Flux (Free Index): 4.85e-05 +/- 6.22e-05

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/107053/cmap_HighResolution_591062401_591321601_4FGL_J1150.4+2418_daily_bin1357.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.00e-03', comment='SUCCESS', photon_flux='2.20e-08', energy_flux2='4.85e-05', photon_flux_error='2.34e-08', dlogl='9.97e-01', energy_flux='9.39e-06', photon_flux2='7.04e-09', job_status='DONE', time_completed='2021-09-04 13:17:20.445691', photon_index_error2='0.54', photon_index2='1.26', ts='1.49', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', photon_flux_upper_limit='7.86e-08', energy_flux_error2='6.22e-05', EG='0.98', time_epoch_completed='1630786640.45', return_code='0', job_id='107053', GAL2='1.23', EG2='0.99', return_code2='0', energy_flux_error='9.98e-06', photon_flux_error2='8.05e-09', ts2='3.48', photon_index='2.23' WHERE bin_id='1357' AND source_name='4FGL J1150.4+2418' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:17:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 107053: <4FGL_J1150.4+2418_daily_bin1357> in cluster <slac> Done

Job <4FGL_J1150.4+2418_daily_bin1357> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 13:01:24 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 13:01:25 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:01:25 2021
Terminated at Sat Sep  4 13:17:21 2021
Results reported at Sat Sep  4 13:17:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.4+2418_daily_bin1357 177.603 24.3016 591062401 591321601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1150.4+2418 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   926.00 sec.
    Max Memory :                                 1235 MB
    Average Memory :                             313.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            957 sec.

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

