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


Performing analysis on: 4FGL_J1150.4+2418_daily_bin58
RA = 177.603, Dec = 24.3016
tmin = 254361601, tmax = 254620801
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='99326', job_status='RUN', time_executed='2021-09-04 12:39:24.117621', time_epoch_executed='1630784364.12' WHERE source_name='4FGL J1150.4+2418' and cadence='daily' and bin_id='58'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/99326

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/99326/ft1_4FGL_J1150.4+2418_daily_bin58.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/99326/ft2_4FGL_J1150.4+2418_daily_bin58.fits


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

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

Done.
real 1.41
user 1.24
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/99326/ft1_filtered_4FGL_J1150.4+2418_daily_bin58.fits" evtable="EVENTS" scfile=/scratch/kocevski/99326/ft2_4FGL_J1150.4+2418_daily_bin58.fits sctable="SC_DATA" outfile=/scratch/kocevski/99326/ltcube_254361601_254620801_4FGL_J1150.4+2418_daily_bin58.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/99326/ft2_4FGL_J1150.4+2418_daily_bin58.fits
.....................!
real 12.54
user 12.04
sys 0.46

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/99326/ft1_filtered_4FGL_J1150.4+2418_daily_bin58.fits evtable="EVENTS" scfile=/scratch/kocevski/99326/ft2_4FGL_J1150.4+2418_daily_bin58.fits sctable="SC_DATA" expcube=/scratch/kocevski/99326/ltcube_254361601_254620801_4FGL_J1150.4+2418_daily_bin58.fits outfile=/scratch/kocevski/99326/expmap_254361601_254620801_4FGL_J1150.4+2418_daily_bin58.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/99326/ltcube_254361601_254620801_4FGL_J1150.4+2418_daily_bin58.fits
.....................!
real 190.86
user 186.01
sys 4.34

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/99326/ft1_filtered_4FGL_J1150.4+2418_daily_bin58.fits scfile=/scratch/kocevski/99326/ft2_4FGL_J1150.4+2418_daily_bin58.fits outfile=/scratch/kocevski/99326/cmap_254361601_254620801_4FGL_J1150.4+2418_daily_bin58.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/99326/ft1_filtered_4FGL_J1150.4+2418_daily_bin58.fits scfile=/scratch/kocevski/99326/ft2_4FGL_J1150.4+2418_daily_bin58.fits outfile=/scratch/kocevski/99326/cmap_HighResolution_254361601_254620801_4FGL_J1150.4+2418_daily_bin58.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.56
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/99326/ft1_filtered_4FGL_J1150.4+2418_daily_bin58.fits', '/scratch/kocevski/99326/ft2_4FGL_J1150.4+2418_daily_bin58.fits', expMap='/scratch/kocevski/99326/expmap_254361601_254620801_4FGL_J1150.4+2418_daily_bin58.fits', expCube='/scratch/kocevski/99326/ltcube_254361601_254620801_4FGL_J1150.4+2418_daily_bin58.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/99326/Model_4FGL_J1150.4+2418_daily_bin58.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/99326/ft1_filtered_4FGL_J1150.4+2418_daily_bin58.fits
Spacecraft file(s): /scratch/kocevski/99326/ft2_4FGL_J1150.4+2418_daily_bin58.fits
Exposure map: /scratch/kocevski/99326/expmap_254361601_254620801_4FGL_J1150.4+2418_daily_bin58.fits
Exposure cube: /scratch/kocevski/99326/ltcube_254361601_254620801_4FGL_J1150.4+2418_daily_bin58.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/99326/Model_4FGL_J1150.4+2418_daily_bin58.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) = 4799.5588272

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.0966       1.0000         .10000E-03   10000.    
     3 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    34.651       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13261E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.636       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .35876       1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.844       1.0000         .10000E-03   10000.    
    13 'norm      '    3.0782       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11286E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10326E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.9814       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14452       1.0000         .10000E-03   10000.    
    18 'norm      '    5.8600       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.5007       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.4119       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10298E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.615       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .69641       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0567       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=   4799.531     FROM MIGRAD    STATUS=CONVERGED    623 CALLS     3165 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9521       -.76729E-06** at limit **
   2  Prefactor     1.0964        5.5013       -.73219E-06    .13398E-03
   3  norm          .10000E-03    6.9445       -.28557E-06** at limit **
   4  Prefactor     .10000E-03    11.413        .98319E-07** at limit **
   5  Prefactor     .10000E-03    28.714       -.66716E-07** at limit **
   6  Prefactor     34.654        34.082       -.37086E-06   -.16037E-04
   7  Prefactor     .10000E-03    6.3944       -.19253E-06** at limit **
   8  Prefactor     .10000E-03    5.2583       -.11928E-06** at limit **
   9  Prefactor     22.631        18.868        .66502E-06    .25538E-03
  10  Prefactor     .10003E-03    20.808        .66737E-05** at limit **
  11  Prefactor     .35945        1.8743       -.49619E-06    .18260E-03
  12  Prefactor     21.802        27.875        .10943E-05    .18876E-03
  13  norm          3.0784        1.2923       -.47270E-07    .12754E-03
  14  Prefactor     .10000E-03    2.4720        .11377E-05** at limit **
  15  Prefactor     .10000E-03    11.683        .12452E-06** at limit **
  16  Prefactor     5.9735        3.3550        .34601E-06    .11354E-02
  17  Prefactor     .16783        1.9439       -.74070E-06    .14858E-03
  18  norm          5.8600        2.7585       -.44806E-07   -.38495E-04
  19  Prefactor     1.5007        1.4467       -.13494E-07   -.63551E-04
  20  Prefactor     6.4120        2.6027       -.19766E-07    .17739E-03
  21  Prefactor     .10000E-03    2.5916       -.95356E-07** at limit **
  22  norm          .10000E-03    .56083E-01   -.35396E-07** at limit **
  23  norm          .10000E-03    5.0887       -.24150E-06** at limit **
  24  Prefactor     13.614        12.380       -.14658E-06    .45304E-04
  25  Normalizat    .69610        .17667        .21523E-05    .50544E-03
  26  Prefactor     1.0572        .19255       -.28833E-06    .22213E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.09636
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.6543
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 22.6306
  Prefactor  = 0.000100026
  Prefactor  = 0.359447
  Prefactor  = 21.8016
  norm       = 3.07845
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.97348
  Prefactor  = 0.167834
  norm       = 5.86004
  Prefactor  = 1.50069
  Prefactor  = 6.41205
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 13.6144
  Normalizat = 0.696099
  Prefactor  = 1.05718
 **********
 **   18 **HESSE 
 **********

 FCN=   4799.531     FROM HESSE     STATUS=OK           460 CALLS     3625 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.6264        .18597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.0964        5.4520        .31462E-03   -1.5499    
   3  norm          .10000E-03    7.0283        .17839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    29.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     34.654        34.122        .68077E-04   -1.4530    
   7  Prefactor     .10000E-03    6.4244        .17121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.3586        .30893E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     22.631        18.578        .84189E-04   -1.4756    
  10  Prefactor     .10003E-03    26.202        .34895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .35945        1.8714        .17134E-03   -1.5588    
  12  Prefactor     21.802        28.069        .85701E-04   -1.4774    
  13  norm          3.0784        1.2908        .48877E-04   -1.5357    
  14  Prefactor     .10000E-03    3.7458        .19135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.9735        3.5578        .81575E-04   -1.5219    
  17  Prefactor     .16783        14.210        .16355E-02   -1.5626    
  18  norm          5.8600        2.7571        .75511E-04   -1.5224    
  19  Prefactor     1.5007        1.4648        .78608E-04   -1.5463    
  20  Prefactor     6.4120        2.6016        .66844E-04   -1.5201    
  21  Prefactor     .10000E-03    2.6126        .10894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .61228E-01    .32037E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    5.2475        .30535E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     13.614        12.374        .10855E-03   -1.4970    
  25  Normalizat    .69610        .20148        .24984E-03   -1.0405    
  26  Prefactor     1.0572        .21797        .23313E-03   -.90847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.4004e-09
Minuit parameter uncertainties:
  1  8.18072e-05
  2  4.89019
  3  2.23669e-05
  4  3.49826e-05
  5  0.000186471
  6  34.1412
  7  5.07578e-05
  8  0.000164273
  9  18.583
  10  0.00165493
  11  1.64016
  12  28.0857
  13  1.29084
  14  7.46787e-05
  15  6.88719e-05
  16  3.55794
  17  3.08847
  18  2.75712
  19  1.46481
  20  2.60166
  21  4.31856e-06
  22  5.5036e-08
  23  1.20404e-05
  24  12.3766
  25  0.201698
  26  0.218152
Done.

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

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  3.594e-01  1.640e+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.057e+00  2.182e-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:  6.961e-01  2.017e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/99326/likelihoodResults_254361601_254620801_4FGL_J1150.4+2418_daily_bin58.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) = 4799.43559707
delta logL = 0.0958775281961

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4799.42194749
delta logL = 0.109527112445

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20096       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1452       1.0000          .0000       10.000    
     3 'Normalizat'    .68266       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0653       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4799.422     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      247 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20076        2.4449        .62546E-04   -.38716E-04
   2  Index         3.1457        3.1836        .43587E-02    .61195E-04
   3  Normalizat    .68267        .19327        .25203E-03   -.81195E-06
   4  Prefactor     1.0653        .21740        .23231E-03   -.58726E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.200765
  Index      = 3.14574
  Normalizat = 0.682668
  Prefactor  = 1.06527
 **********
 **   18 **HESSE 
 **********

 FCN=   4799.422     FROM HESSE     STATUS=OK            25 CALLS      272 TOTAL
                     EDM=   .32E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20076        1.1349        .25019E-05   -1.5618    
   2  Index         3.1457        2.2851        .87174E-03   -.37993    
   3  Normalizat    .68267        .19308        .10081E-04   -1.0458    
   4  Prefactor     1.0653        .21680        .92922E-05   -.90584    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23776e-13
Minuit parameter uncertainties:
  1  0.954465
  2  2.38908
  3  0.193271
  4  0.216983
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/99326': 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) = 4799.42194745
delta logL = 0.109527143409

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  2.008e-01  9.545e-01  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  3.146e+00  2.389e+00  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.065e+00  2.170e-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:  6.827e-01  1.933e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
Ra Dec: 177.603 24.302

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/99326/cmap_HighResolution_254361601_254620801_4FGL_J1150.4+2418_daily_bin58.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.02e-03', job_status='DONE', photon_flux_upper_limit='7.88e-08', time_completed='2021-09-04 12:50:22.302723', job_id='99326', GAL2='1.07', fit_tolerance='1e-08', EG2='0.68', EG='0.70', time_epoch_completed='1630785022.3', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='1.10e-01', ts2='0.28', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='58' AND source_name='4FGL J1150.4+2418' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:50:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 99326: <4FGL_J1150.4+2418_daily_bin58> in cluster <slac> Done

Job <4FGL_J1150.4+2418_daily_bin58> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 12:36:49 2021
Job was executed on host(s) <bullet0125>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:36:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 12:36:50 2021
Terminated at Sat Sep  4 12:50:22 2021
Results reported at Sat Sep  4 12:50:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.4+2418_daily_bin58 177.603 24.3016 254361601 254620801 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 :                                   658.00 sec.
    Max Memory :                                 1014 MB
    Average Memory :                             293.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            813 sec.

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

