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


Performing analysis on: 4FGL_J1150.4+2418_daily_bin1415
RA = 177.603, Dec = 24.3016
tmin = 606096001, tmax = 606355201
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='107147', job_status='RUN', time_executed='2021-09-04 13:01:50.687717', time_epoch_executed='1630785710.69' WHERE source_name='4FGL J1150.4+2418' and cadence='daily' and bin_id='1415'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/107147

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/107147/ft1_4FGL_J1150.4+2418_daily_bin1415.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/107147/ft2_4FGL_J1150.4+2418_daily_bin1415.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/107147/ft1_4FGL_J1150.4+2418_daily_bin1415.fits outfile=/scratch/kocevski/107147/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin1415.fits ra=177.603 dec=24.3016 rad=12.0 tmin=606096001.0 tmax=606355201.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.80
user 3.38
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/107147/ft2_4FGL_J1150.4+2418_daily_bin1415.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/107147/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin1415.fits evtable="EVENTS" outfile="/scratch/kocevski/107147/ft1_filtered_4FGL_J1150.4+2418_daily_bin1415.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/107147/ft1_filtered_4FGL_J1150.4+2418_daily_bin1415.fits" evtable="EVENTS" scfile=/scratch/kocevski/107147/ft2_4FGL_J1150.4+2418_daily_bin1415.fits sctable="SC_DATA" outfile=/scratch/kocevski/107147/ltcube_606096001_606355201_4FGL_J1150.4+2418_daily_bin1415.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/107147/ft2_4FGL_J1150.4+2418_daily_bin1415.fits
.....................!
real 11.97
user 11.58
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/107147/ft1_filtered_4FGL_J1150.4+2418_daily_bin1415.fits evtable="EVENTS" scfile=/scratch/kocevski/107147/ft2_4FGL_J1150.4+2418_daily_bin1415.fits sctable="SC_DATA" expcube=/scratch/kocevski/107147/ltcube_606096001_606355201_4FGL_J1150.4+2418_daily_bin1415.fits outfile=/scratch/kocevski/107147/expmap_606096001_606355201_4FGL_J1150.4+2418_daily_bin1415.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/107147/ltcube_606096001_606355201_4FGL_J1150.4+2418_daily_bin1415.fits
.....................!
real 192.91
user 187.14
sys 5.39

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/107147/ft1_filtered_4FGL_J1150.4+2418_daily_bin1415.fits scfile=/scratch/kocevski/107147/ft2_4FGL_J1150.4+2418_daily_bin1415.fits outfile=/scratch/kocevski/107147/cmap_606096001_606355201_4FGL_J1150.4+2418_daily_bin1415.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/107147/ft1_filtered_4FGL_J1150.4+2418_daily_bin1415.fits scfile=/scratch/kocevski/107147/ft2_4FGL_J1150.4+2418_daily_bin1415.fits outfile=/scratch/kocevski/107147/cmap_HighResolution_606096001_606355201_4FGL_J1150.4+2418_daily_bin1415.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    7.6356       1.0000         .10000E-03   10000.    
     3 'norm      '    9.3325       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.136       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.9669       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10266E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.3245       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.112       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.2056       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11606E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.2531       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.4778       1.0000         .10000E-03   10000.    
    15 'Prefactor '    47.232       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .25459E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.1885       1.0000         .10000E-03   10000.    
    18 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.1161       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.2411       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.6145       1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.885       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .92515       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .88121       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=   5382.745     FROM MIGRAD    STATUS=CONVERGED    626 CALLS     3119 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.2354       -.45345E-07** at limit **
   2  Prefactor     7.6360        7.3660        .22138E-07    .25172E-06
   3  norm          9.3365        12.365       -.12830E-05   -.33391E-04
   4  Prefactor     10.137        9.3508       -.33178E-06    .15241E-04
   5  Prefactor     3.9681        22.340       -.45688E-05   -.75171E-04
   6  Prefactor     .10000E-03    28.951       -.14954E-05** at limit **
   7  Prefactor     .10000E-03    21.075        .10029E-05** at limit **
   8  Prefactor     4.3202        5.2664       -.55268E-06   -.37949E-03
   9  Prefactor     19.097        17.071        .22628E-05    .81210E-05
  10  Prefactor     .10000E-03    2.9171       -.98990E-08** at limit **
  11  Prefactor     3.2059        1.8963       -.20293E-06   -.50262E-04
  12  Prefactor     .10004E-03    87.344        .10464E-04** at limit **
  13  norm          5.2522        1.5693        .14294E-06    .12899E-04
  14  Prefactor     6.4821        5.2033       -.11398E-05   -.31271E-03
  15  Prefactor     47.193        33.774       -.22132E-04   -.53124E-04
  16  Prefactor     .10000E-03    1.7669        .16257E-06** at limit **
  17  Prefactor     3.1923        3.8814       -.73390E-06   -.55130E-03
  18  norm          .10000E-03    1.0925        .31862E-07** at limit **
  19  Prefactor     8.1177        3.0098        .95620E-07    .63593E-04
  20  Prefactor     .10000E-03    1.2366       -.83820E-08** at limit **
  21  Prefactor     1.2426        4.3894       -.77890E-06   -.82750E-03
  22  norm          .10000E-03    .67526E-01   -.30628E-07** at limit **
  23  norm          4.6141        4.1795       -.10599E-05   -.37482E-04
  24  Prefactor     13.892        10.898       -.12355E-06   -.46376E-05
  25  Normalizat    .92507        .19280        .52500E-05   -.18114E-03
  26  Prefactor     .88122        .19172       -.61935E-06    .10080E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 7.63598
  norm       = 9.33654
  Prefactor  = 10.1367
  Prefactor  = 3.96812
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.32018
  Prefactor  = 19.0975
  Prefactor  = 0.0001
  Prefactor  = 3.20593
  Prefactor  = 0.000100039
  norm       = 5.25224
  Prefactor  = 6.48207
  Prefactor  = 47.1934
  Prefactor  = 0.0001
  Prefactor  = 3.19226
  norm       = 0.0001
  Prefactor  = 8.11773
  Prefactor  = 0.0001
  Prefactor  = 1.24257
  norm       = 0.0001
  norm       = 4.61411
  Prefactor  = 13.8918
  Normalizat = 0.925072
  Prefactor  = 0.881219
 **********
 **   18 **HESSE 
 **********

 FCN=   5382.745     FROM HESSE     STATUS=OK           464 CALLS     3583 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.2597        .79603E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.6360        7.3655        .14513E-03   -1.5155    
   3  norm          9.3365        12.379        .13119E-03   -1.5097    
   4  Prefactor     10.137        9.3493        .12585E-03   -1.5071    
   5  Prefactor     3.9681        21.999        .20252E-03   -1.5310    
   6  Prefactor     .10000E-03    29.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    21.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.3202        5.2611        .17665E-03   -1.5292    
   9  Prefactor     19.097        17.087        .91617E-04   -1.4834    
  10  Prefactor     .10000E-03    2.9189        .12236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.2059        1.8924        .74057E-04   -1.5350    
  12  Prefactor     .10004E-03    90.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.2522        1.5706        .47755E-04   -1.5250    
  14  Prefactor     6.4821        5.0847        .13523E-03   -1.5199    
  15  Prefactor     47.193        33.662        .58344E-04   -1.4333    
  16  Prefactor     .10000E-03    15.265        .16824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.1923        3.6329        .13984E-03   -1.5351    
  18  norm          .10000E-03    1.1005        .74767E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.1177        3.0045        .74576E-04   -1.5138    
  20  Prefactor     .10000E-03    1.2655        .15899E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.2426        4.3431        .27225E-03   -1.5485    
  22  norm          .10000E-03    .80410E-01    .37025E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.6141        4.1470        .13339E-03   -1.5278    
  24  Prefactor     13.892        10.892        .10749E-03   -1.4962    
  25  Normalizat    .92507        .22094        .24610E-03   -.95585    
  26  Prefactor     .88122        .21946        .27095E-03   -.96800    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20657e-09
Minuit parameter uncertainties:
  1  6.23009e-06
  2  7.36633
  3  12.3828
  4  9.35061
  5  18.6967
  6  6.58114e-05
  7  0.000156079
  8  5.26167
  9  17.0912
  10  1.89642e-06
  11  1.89245
  12  0.00373977
  13  1.57066
  14  5.08504
  15  33.676
  16  8.41039e-05
  17  3.63311
  18  3.70558e-06
  19  3.00458
  20  1.86104e-06
  21  4.34419
  22  9.38701e-07
  23  4.14727
  24  10.8936
  25  0.221157
  26  0.219677
Done.

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

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  3.206e+00  1.892e+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:  8.812e-01  2.197e-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.251e-01  2.212e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.31
Ra Dec: 177.603 24.302
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 5.55e-08 +/- 3.27e-08
Energy Flux (Fixed Index): 2.37e-05 +/- 1.40e-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) = 5382.57924285
delta logL = 0.165725089578

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5382.57915515
delta logL = 0.165812790024

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7128       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9762       1.0000          .0000       10.000    
     3 'Normalizat'    .93596       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87499       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=   5382.579     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      288 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7099        2.2955        .82312E-04    .13454E-02
   2  Index         1.9755        .43004        .64377E-02    .15395E-03
   3  Normalizat    .93589        .20194        .24487E-03    .32035E-04
   4  Prefactor     .87515        .21783        .27184E-03   -.46630E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.7099
  Index      = 1.9755
  Normalizat = 0.935891
  Prefactor  = 0.875154
 **********
 **   18 **HESSE 
 **********

 FCN=   5382.579     FROM HESSE     STATUS=OK            23 CALLS      311 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7099        2.2814        .16462E-04   -1.5323    
   2  Index         1.9755        .42733        .25751E-03   -.64964    
   3  Normalizat    .93589        .20207        .97949E-05   -.95210    
   4  Prefactor     .87515        .21800        .10874E-04   -.97015    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.26999e-10
Minuit parameter uncertainties:
  1  2.28149
  2  0.428151
  3  0.202233
  4  0.218214
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/107147': 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) = 5382.57915231
delta logL = 0.165815632802

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  3.710e+00  2.281e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  1.975e+00  4.282e-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:  8.752e-01  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:  9.359e-01  2.022e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.63
Ra Dec: 177.603 24.302
Photon Index (Free Index): 1.98 +/- 0.43
Photon Flux (Free Index): 4.40e-08 +/- 3.34e-08
Energy Flux (Free Index): 3.23e-05 +/- 2.79e-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/107147/cmap_HighResolution_606096001_606355201_4FGL_J1150.4+2418_daily_bin1415.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.55e-08', energy_flux2='3.23e-05', photon_flux_error='3.27e-08', dlogl='1.66e-01', energy_flux='2.37e-05', photon_flux2='4.40e-08', job_status='DONE', time_completed='2021-09-04 13:12:43.164855', photon_index_error2='0.43', photon_index2='1.98', ts='7.31', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='2.79e-05', EG='0.93', time_epoch_completed='1630786363.16', return_code='0', job_id='107147', GAL2='0.88', EG2='0.94', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='3.34e-08', ts2='7.63', photon_index='2.23' WHERE bin_id='1415' AND source_name='4FGL J1150.4+2418' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:12:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 107147: <4FGL_J1150.4+2418_daily_bin1415> in cluster <slac> Done

Job <4FGL_J1150.4+2418_daily_bin1415> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 13:01:32 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 13:01:33 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:33 2021
Terminated at Sat Sep  4 13:12:43 2021
Results reported at Sat Sep  4 13:12:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.4+2418_daily_bin1415 177.603 24.3016 606096001 606355201 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 :                                   646.18 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   670 sec.
    Turnaround time :                            671 sec.

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

