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


Performing analysis on: 4FGL_J1150.4+2418_daily_bin687
RA = 177.603, Dec = 24.3016
tmin = 417398401, tmax = 417657601
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='102571', job_status='RUN', time_executed='2021-09-04 12:46:56.262770', time_epoch_executed='1630784816.26' WHERE source_name='4FGL J1150.4+2418' and cadence='daily' and bin_id='687'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/102571

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/102571/ft1_4FGL_J1150.4+2418_daily_bin687.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/102571/ft2_4FGL_J1150.4+2418_daily_bin687.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/102571/ft1_4FGL_J1150.4+2418_daily_bin687.fits outfile=/scratch/kocevski/102571/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin687.fits ra=177.603 dec=24.3016 rad=12.0 tmin=417398401.0 tmax=417657601.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.56
user 5.31
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/102571/ft2_4FGL_J1150.4+2418_daily_bin687.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/102571/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin687.fits evtable="EVENTS" outfile="/scratch/kocevski/102571/ft1_filtered_4FGL_J1150.4+2418_daily_bin687.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.50
user 0.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/102571/ft1_filtered_4FGL_J1150.4+2418_daily_bin687.fits evtable="EVENTS" scfile=/scratch/kocevski/102571/ft2_4FGL_J1150.4+2418_daily_bin687.fits sctable="SC_DATA" expcube=/scratch/kocevski/102571/ltcube_417398401_417657601_4FGL_J1150.4+2418_daily_bin687.fits outfile=/scratch/kocevski/102571/expmap_417398401_417657601_4FGL_J1150.4+2418_daily_bin687.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/102571/ltcube_417398401_417657601_4FGL_J1150.4+2418_daily_bin687.fits
.....................!
real 192.00
user 186.57
sys 4.81

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/102571/ft1_filtered_4FGL_J1150.4+2418_daily_bin687.fits scfile=/scratch/kocevski/102571/ft2_4FGL_J1150.4+2418_daily_bin687.fits outfile=/scratch/kocevski/102571/cmap_417398401_417657601_4FGL_J1150.4+2418_daily_bin687.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.54
user 0.35
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.9858       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.1306       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.4135       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.3295       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .58605       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10465E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    21.244       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .17969E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.9348       1.0000         .10000E-03   10000.    
    23 'norm      '    8.5801       1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.8930       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .82354       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2258       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=   5081.892     FROM MIGRAD    STATUS=CONVERGED    613 CALLS     2628 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.4274        .90813E-06** at limit **
   2  Prefactor     .10000E-03    2.0148        .15050E-07** at limit **
   3  norm          .10000E-03    5.5476       -.93904E-06** at limit **
   4  Prefactor     .10000E-03    4.2716       -.11378E-05** at limit **
   5  Prefactor     2.9822        49.451       -.80734E-05   -.27529E-04
   6  Prefactor     .10000E-03    13.151       -.10684E-05** at limit **
   7  Prefactor     .10000E-03    8.1793        .98545E-07** at limit **
   8  Prefactor     5.1314        7.5967        .59686E-07    .39697E-04
   9  Prefactor     .10000E-03    7.9591        .11438E-05** at limit **
  10  Prefactor     .10000E-03    4.8994        .66729E-06** at limit **
  11  Prefactor     3.4133        2.3076       -.48830E-07   -.78332E-04
  12  Prefactor     .10000E-03    60.695       -.41589E-04** at limit **
  13  norm          3.3295        1.7312        .25719E-08    .18407E-03
  14  Prefactor     .10000E-03    2.3317       -.10266E-06** at limit **
  15  Prefactor     .10000E-03    54.753        .38074E-04** at limit **
  16  Prefactor     .58300        3.4222       -.46271E-06   -.83998E-03
  17  Prefactor     .10000E-03    2.5265        .43676E-06** at limit **
  18  norm          21.244        6.1177       -.82387E-07    .12808E-03
  19  Prefactor     .10000E-03    2.2845        .11897E-06** at limit **
  20  Prefactor     .10000E-03    1.7219       -.29598E-06** at limit **
  21  Prefactor     .10000E-03    3.3805        .19848E-07** at limit **
  22  norm          1.9348        .43567       -.19391E-08    .24623E-03
  23  norm          8.5799        5.2448       -.37105E-07    .41275E-04
  24  Prefactor     6.8921        10.378       -.11831E-06   -.53967E-05
  25  Normalizat    .82365        .20420        .11840E-05    .85436E-04
  26  Prefactor     1.2257        .21145       -.80211E-07    .11139E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.98225
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.13142
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.41326
  Prefactor  = 0.0001
  norm       = 3.32951
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.582995
  Prefactor  = 0.0001
  norm       = 21.2438
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.93482
  norm       = 8.57994
  Prefactor  = 6.89205
  Normalizat = 0.823648
  Prefactor  = 1.22575
 **********
 **   18 **HESSE 
 **********

 FCN=   5081.892     FROM HESSE     STATUS=OK           454 CALLS     3082 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.5925        .29223E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.0160        .98818E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.5606        .16396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.2789        .14389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.9822        49.453        .23494E-03   -1.5363    
   6  Prefactor     .10000E-03    13.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.1881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.1314        7.5679        .17749E-03   -1.5255    
   9  Prefactor     .10000E-03    7.9646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.9128        .15408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.4133        2.3052        .85158E-04   -1.5338    
  12  Prefactor     .10000E-03    60.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.3295        1.7286        .64289E-04   -1.5343    
  14  Prefactor     .10000E-03    2.3454        .10612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    54.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .58300        5.3502        .22462E-02   -1.5555    
  17  Prefactor     .10000E-03    4.8411        .20386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          21.244        5.9625        .86901E-04   -1.4786    
  19  Prefactor     .10000E-03    2.3262        .20959E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.5443        .17490E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.3953        .12795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.9348        .43540        .21297E-04   -1.5430    
  23  norm          8.5799        5.2399        .12366E-03   -1.5122    
  24  Prefactor     6.8921        10.317        .15281E-03   -1.5183    
  25  Normalizat    .82365        .23635        .29035E-03   -.99197    
  26  Prefactor     1.2257        .24713        .26459E-03   -.85543    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47988e-09
Minuit parameter uncertainties:
  1  5.43267e-06
  2  6.94838e-07
  3  2.92006e-06
  4  2.00504e-06
  5  24.3117
  6  2.13667e-06
  7  3.80117e-05
  8  7.56926
  9  2.38367e-06
  10  2.56796e-06
  11  2.30529
  12  0.000173229
  13  1.7286
  14  1.39251e-07
  15  2.28389e-05
  16  3.53234
  17  8.45666e-05
  18  5.96263
  19  1.62908e-06
  20  0.000147356
  21  6.03425e-07
  22  0.435399
  23  5.24014
  24  10.3198
  25  0.23665
  26  0.247362
Done.

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

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  3.413e+00  2.305e+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.226e+00  2.474e-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:  8.236e-01  2.366e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.83
Ra Dec: 177.603 24.302
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 5.90e-08 +/- 3.99e-08
Energy Flux (Fixed Index): 2.52e-05 +/- 1.70e-05

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) = 5081.85330313
delta logL = 0.0386768256085

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5081.84548305
delta logL = 0.0464969034492

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7162       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0676       1.0000          .0000       10.000    
     3 'Normalizat'    .83237       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2210       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=   5081.845     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      216 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7164        67.305        .52370E-02    .16695E-03
   2  Index         2.0675        5.9551        .19198        .38771E-04
   3  Normalizat    .83235        .11388        .65329E-01    .15516E-04
   4  Prefactor     1.2210        .93201E-01    .59937E-01    .32736E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.7164
  Index      = 2.06751
  Normalizat = 0.832353
  Prefactor  = 1.22103
 **********
 **   18 **HESSE 
 **********

 FCN=   5081.845     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .91E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7164        2.6919        .92086E-04   -1.5322    
   2  Index         2.0675        .52439        .66643E-02   -.62673    
   3  Normalizat    .83235        .22651        .28900E-03   -.98880    
   4  Prefactor     1.2210        .24608        .26505E-03   -.85687    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.10646e-13
Minuit parameter uncertainties:
  1  2.69196
  2  0.525862
  3  0.226768
  4  0.246314
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/102571': 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) = 5081.84548303
delta logL = 0.0464969184732

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  3.716e+00  2.692e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  2.068e+00  5.259e-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.221e+00  2.463e-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:  8.324e-01  2.268e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.88
Ra Dec: 177.603 24.302
Photon Index (Free Index): 2.07 +/- 0.53
Photon Flux (Free Index): 5.02e-08 +/- 4.54e-08
Energy Flux (Free Index): 2.96e-05 +/- 2.74e-05

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/102571/cmap_HighResolution_417398401_417657601_4FGL_J1150.4+2418_daily_bin687.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.90e-08', energy_flux2='2.96e-05', photon_flux_error='3.99e-08', dlogl='4.65e-02', energy_flux='2.52e-05', photon_flux2='5.02e-08', job_status='DONE', time_completed='2021-09-04 12:56:49.511832', photon_index_error2='0.53', photon_index2='2.07', ts='4.83', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', energy_flux_error2='2.74e-05', EG='0.82', time_epoch_completed='1630785409.51', return_code='0', job_id='102571', GAL2='1.22', EG2='0.83', return_code2='0', energy_flux_error='1.70e-05', photon_flux_error2='4.54e-08', ts2='4.88', photon_index='2.23' WHERE bin_id='687' AND source_name='4FGL J1150.4+2418' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:56:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 102571: <4FGL_J1150.4+2418_daily_bin687> in cluster <slac> Done

Job <4FGL_J1150.4+2418_daily_bin687> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 12:46:39 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:46:40 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:46:40 2021
Terminated at Sat Sep  4 12:56:50 2021
Results reported at Sat Sep  4 12:56:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.4+2418_daily_bin687 177.603 24.3016 417398401 417657601 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 :                                   591.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             366.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   609 sec.
    Turnaround time :                            611 sec.

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

