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


Performing analysis on: 4FGL_J1150.4+2418_daily_bin1291
RA = 177.603, Dec = 24.3016
tmin = 573955201, tmax = 574214401
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='106947', job_status='RUN', time_executed='2021-09-04 13:01:29.013978', time_epoch_executed='1630785689.01' WHERE source_name='4FGL J1150.4+2418' and cadence='daily' and bin_id='1291'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/106947

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/106947/ft1_4FGL_J1150.4+2418_daily_bin1291.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/106947/ft2_4FGL_J1150.4+2418_daily_bin1291.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/106947/ft1_4FGL_J1150.4+2418_daily_bin1291.fits outfile=/scratch/kocevski/106947/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin1291.fits ra=177.603 dec=24.3016 rad=12.0 tmin=573955201.0 tmax=574214401.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.60
user 3.36
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/106947/ft1_filtered_4FGL_J1150.4+2418_daily_bin1291.fits" evtable="EVENTS" scfile=/scratch/kocevski/106947/ft2_4FGL_J1150.4+2418_daily_bin1291.fits sctable="SC_DATA" outfile=/scratch/kocevski/106947/ltcube_573955201_574214401_4FGL_J1150.4+2418_daily_bin1291.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/106947/ft2_4FGL_J1150.4+2418_daily_bin1291.fits
.....................!
real 12.17
user 11.77
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/106947/ft1_filtered_4FGL_J1150.4+2418_daily_bin1291.fits evtable="EVENTS" scfile=/scratch/kocevski/106947/ft2_4FGL_J1150.4+2418_daily_bin1291.fits sctable="SC_DATA" expcube=/scratch/kocevski/106947/ltcube_573955201_574214401_4FGL_J1150.4+2418_daily_bin1291.fits outfile=/scratch/kocevski/106947/expmap_573955201_574214401_4FGL_J1150.4+2418_daily_bin1291.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/106947/ltcube_573955201_574214401_4FGL_J1150.4+2418_daily_bin1291.fits
.....................!
real 190.70
user 185.54
sys 4.77

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/106947/ft1_filtered_4FGL_J1150.4+2418_daily_bin1291.fits scfile=/scratch/kocevski/106947/ft2_4FGL_J1150.4+2418_daily_bin1291.fits outfile=/scratch/kocevski/106947/cmap_573955201_574214401_4FGL_J1150.4+2418_daily_bin1291.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.56
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/106947/ft1_filtered_4FGL_J1150.4+2418_daily_bin1291.fits scfile=/scratch/kocevski/106947/ft2_4FGL_J1150.4+2418_daily_bin1291.fits outfile=/scratch/kocevski/106947/cmap_HighResolution_573955201_574214401_4FGL_J1150.4+2418_daily_bin1291.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3227       1.0000         .10000E-03   10000.    
     2 'Prefactor '    26.491       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.4482       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .20271E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.573       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.2998       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.0284       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.0560       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.7434       1.0000         .10000E-03   10000.    
    18 'norm      '    10.362       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.2417       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.2960       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .13892       1.0000         .10000E-03   10000.    
    23 'norm      '    9.5485       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .92575E-01   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0106       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1036       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6316.285     FROM MIGRAD    STATUS=CONVERGED    122 CALLS     2189 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3222        2.6202       -.27965E-07    .18591E-03
   2  Prefactor     26.489        1.0104        .19746E-08    .41978E-03
   3  norm          .10000E-03    3.3951        .63203E-06** at limit **
   4  Prefactor     5.4402        1.5235        .12569E-06   -.11724E-02
   5  Prefactor     .10001E-03    11.137       -.36720E-05** at limit **
   6  Prefactor     .10001E-03    18.660        .81144E-06** at limit **
   7  Prefactor     .10000E-03    5.3214       -.35218E-06** at limit **
   8  Prefactor     .10000E-03    2.1947       -.34554E-06** at limit **
   9  Prefactor     .10003E-03    35.165        .40043E-05** at limit **
  10  Prefactor     14.568        1.3228        .52849E-07   -.37972E-03
  11  Prefactor     8.3002        2.9008        .37029E-06    .78864E-03
  12  Prefactor     .10005E-03    23.717       -.59701E-06** at limit **
  13  norm          2.0285        1.0742       -.23891E-06   -.17887E-03
  14  Prefactor     8.0540        4.7930       -.78933E-08    .46984E-02
  15  Prefactor     .10001E-03    12.393        .17222E-05** at limit **
  16  Prefactor     .10000E-03    1.7000       -.17376E-06** at limit **
  17  Prefactor     1.7429        2.0259       -.11939E-06    .29919E-04
  18  norm          10.363        3.6661        .22636E-06    .11365E-02
  19  Prefactor     3.2422        2.1504        .31986E-06    .37748E-03
  20  Prefactor     2.2975        1.9118        .81719E-06    .57102E-03
  21  Prefactor     .10000E-03    3.8214       -.65123E-06** at limit **
  22  norm          .13885        .26879       -.11340E-06    .20719E-03
  23  norm          9.5516        2.3435       -.17899E-06    .14894E-01
  24  Prefactor     .10031E-03    710.07       -.58997E-05** at limit **
  25  Normalizat    1.0109        .22166        .13696E-05    .34031E-03
  26  Prefactor     1.1035        .23442        .26162E-05    .33845E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.32215
  Prefactor  = 26.4888
  norm       = 0.0001
  Prefactor  = 5.44015
  Prefactor  = 0.000100005
  Prefactor  = 0.000100013
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100025
  Prefactor  = 14.5679
  Prefactor  = 8.30015
  Prefactor  = 0.000100052
  norm       = 2.02849
  Prefactor  = 8.05401
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 1.74289
  norm       = 10.3627
  Prefactor  = 3.24222
  Prefactor  = 2.29745
  Prefactor  = 0.0001
  norm       = 0.138847
  norm       = 9.5516
  Prefactor  = 0.000100311
  Normalizat = 1.01092
  Prefactor  = 1.10346
 **********
 **   18 **HESSE 
 **********

 FCN=   6316.285     FROM HESSE     STATUS=OK           520 CALLS     2709 TOTAL
                     EDM=   .92E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3222        2.6634        .95606E-02   -1.5478    
   2  Prefactor     26.489        10.781        .19458E-02   -1.4678    
   3  norm          .10000E-03    3.3914        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.4402        14.573        .43037E-02   -1.5241    
   5  Prefactor     .10001E-03    11.146        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    18.920        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.6045        .10108       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.1804        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10003E-03    35.467        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.568        13.006        .26230E-02   -1.4944    
  11  Prefactor     8.3002        2.9092        .34789E-02   -1.5132    
  12  Prefactor     .10005E-03    28.466        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.0285        1.0711        .72621E-02   -1.5423    
  14  Prefactor     8.0540        5.1523        .35315E-02   -1.5140    
  15  Prefactor     .10001E-03    12.523        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.6218        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.7429        2.0352        .79420E-02   -1.5444    
  18  norm          10.363        3.6712        .31118E-02   -1.5064    
  19  Prefactor     3.2422        2.1502        .56240E-02   -1.5348    
  20  Prefactor     2.2975        1.9350        .67716E-02   -1.5405    
  21  Prefactor     .10000E-03    3.8009        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .13885        .26989        .96952E-02   -1.5633    
  23  norm          9.5516        5.6886        .32422E-02   -1.5090    
  24  Prefactor     .10031E-03    6.6303        .94758E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0109        .19796        .45630E-01   -.92666    
  26  Prefactor     1.1035        .20056        .63771E-01   -.89356    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.24328e-08
Minuit parameter uncertainties:
  1  2.66366
  2  10.7814
  3  1.17528e-05
  4  14.5824
  5  0.000492301
  6  0.000976958
  7  0.000177808
  8  6.99271e-06
  9  0.00188512
  10  13.0085
  11  2.90921
  12  0.00244178
  13  1.07112
  14  5.15257
  15  0.000694168
  16  2.73206e-06
  17  2.03532
  18  3.67124
  19  2.15023
  20  1.93508
  21  1.59814e-05
  22  0.269888
  23  5.68891
  24  0.00287344
  25  0.198108
  26  0.200695
Done.

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

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  8.300e+00  2.909e+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.103e+00  2.007e-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:  1.011e+00  1.981e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.91
Ra Dec: 177.603 24.302
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 1.44e-07 +/- 5.03e-08
Energy Flux (Fixed Index): 6.13e-05 +/- 2.15e-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) = 6315.43568581
delta logL = 0.848928181337

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6315.43404628
delta logL = 0.850567720315

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2533       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6747       1.0000          .0000       10.000    
     3 'Normalizat'    .94668       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1514       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6315.434     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      278 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2536        3.3209        .54861E-04   -.12759E-02
   2  Index         2.6748        .39700        .31522E-02   -.23265E-03
   3  Normalizat    .94661        .22343        .27746E-03    .60151E-04
   4  Prefactor     1.1514        .23862        .27680E-03    .15418E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.25356
  Index      = 2.67477
  Normalizat = 0.946607
  Prefactor  = 1.15139
 **********
 **   18 **HESSE 
 **********

 FCN=   6315.434     FROM HESSE     STATUS=OK            25 CALLS      303 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2536        3.0718        .21944E-05   -1.5250    
   2  Index         2.6748        .36702        .12609E-03   -.48369    
   3  Normalizat    .94661        .22303        .11098E-04   -.94841    
   4  Prefactor     1.1514        .23830        .55360E-04   -.87840    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88434e-10
Minuit parameter uncertainties:
  1  3.07194
  2  0.367441
  3  0.223247
  4  0.238521
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/106947': 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) = 6315.43404608
delta logL = 0.850567912081

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  5.254e+00  3.072e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  2.675e+00  3.674e-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.151e+00  2.385e-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.466e-01  2.232e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.60
Ra Dec: 177.603 24.302
Photon Index (Free Index): 2.67 +/- 0.37
Photon Flux (Free Index): 1.95e-07 +/- 7.11e-08
Energy Flux (Free Index): 4.79e-05 +/- 1.65e-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/106947/cmap_HighResolution_573955201_574214401_4FGL_J1150.4+2418_daily_bin1291.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.44e-07', energy_flux2='4.79e-05', photon_flux_error='5.03e-08', dlogl='8.51e-01', energy_flux='6.13e-05', photon_flux2='1.95e-07', job_status='DONE', time_completed='2021-09-04 13:11:56.866540', photon_index_error2='0.37', photon_index2='2.67', ts='17.91', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='1.65e-05', EG='1.01', time_epoch_completed='1630786316.87', return_code='0', job_id='106947', GAL2='1.15', EG2='0.95', return_code2='0', energy_flux_error='2.15e-05', photon_flux_error2='7.11e-08', ts2='19.60', photon_index='2.23' WHERE bin_id='1291' AND source_name='4FGL J1150.4+2418' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:11:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 106947: <4FGL_J1150.4+2418_daily_bin1291> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.4+2418_daily_bin1291 177.603 24.3016 573955201 574214401 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 :                                   622.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             378.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   640 sec.
    Turnaround time :                            642 sec.

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

