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


Performing analysis on: 4FGL_J1150.4+2418_daily_bin468
RA = 177.603, Dec = 24.3016
tmin = 360633601, tmax = 360892801
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='102255', job_status='RUN', time_executed='2021-09-04 12:46:33.897952', time_epoch_executed='1630784793.9' WHERE source_name='4FGL J1150.4+2418' and cadence='daily' and bin_id='468'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/102255

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/102255/ft1_4FGL_J1150.4+2418_daily_bin468.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/102255/ft2_4FGL_J1150.4+2418_daily_bin468.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/102255/ft1_4FGL_J1150.4+2418_daily_bin468.fits outfile=/scratch/kocevski/102255/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin468.fits ra=177.603 dec=24.3016 rad=12.0 tmin=360633601.0 tmax=360892801.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.41
user 3.18
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/102255/ft1_filtered_4FGL_J1150.4+2418_daily_bin468.fits" evtable="EVENTS" scfile=/scratch/kocevski/102255/ft2_4FGL_J1150.4+2418_daily_bin468.fits sctable="SC_DATA" outfile=/scratch/kocevski/102255/ltcube_360633601_360892801_4FGL_J1150.4+2418_daily_bin468.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/102255/ft2_4FGL_J1150.4+2418_daily_bin468.fits
.....................!
real 14.12
user 13.71
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/102255/ft1_filtered_4FGL_J1150.4+2418_daily_bin468.fits evtable="EVENTS" scfile=/scratch/kocevski/102255/ft2_4FGL_J1150.4+2418_daily_bin468.fits sctable="SC_DATA" expcube=/scratch/kocevski/102255/ltcube_360633601_360892801_4FGL_J1150.4+2418_daily_bin468.fits outfile=/scratch/kocevski/102255/expmap_360633601_360892801_4FGL_J1150.4+2418_daily_bin468.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/102255/ltcube_360633601_360892801_4FGL_J1150.4+2418_daily_bin468.fits
.....................!
real 191.15
user 185.86
sys 4.83

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/102255/ft1_filtered_4FGL_J1150.4+2418_daily_bin468.fits scfile=/scratch/kocevski/102255/ft2_4FGL_J1150.4+2418_daily_bin468.fits outfile=/scratch/kocevski/102255/cmap_360633601_360892801_4FGL_J1150.4+2418_daily_bin468.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/102255/ft1_filtered_4FGL_J1150.4+2418_daily_bin468.fits scfile=/scratch/kocevski/102255/ft2_4FGL_J1150.4+2418_daily_bin468.fits outfile=/scratch/kocevski/102255/cmap_HighResolution_360633601_360892801_4FGL_J1150.4+2418_daily_bin468.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=177.603 yref=24.3016 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2854       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.901       1.0000         .10000E-03   10000.    
     3 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.547       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.6855       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.845       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .60482       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10899E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.4537       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    97.977       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.8222       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.9187       1.0000         .10000E-03   10000.    
    18 'norm      '    11.104       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .76696       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.2905       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12608E-01   1.0000         .10000E-03   10000.    
    22 'norm      '    1.3379       1.0000         .10000E-03   10000.    
    23 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    27.492       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1781       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .85296       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=   6566.728     FROM MIGRAD    STATUS=CONVERGED    633 CALLS     3947 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2857        2.1740        .11227E-05   -.13662E-02
   2  Prefactor     11.904        7.7432       -.27233E-07   -.20106E-04
   3  norm          .10000E-03    10.082        .14608E-06** at limit **
   4  Prefactor     .10000E-03    14.947        .21903E-06** at limit **
   5  Prefactor     .10000E-03    7.0168       -.27526E-07** at limit **
   6  Prefactor     17.529        40.629       -.52438E-05   -.22463E-03
   7  Prefactor     .10000E-03    10.660        .93785E-07** at limit **
   8  Prefactor     4.6848        3.6543        .66788E-06   -.61675E-03
   9  Prefactor     .10000E-03    10.510       -.11551E-06** at limit **
  10  Prefactor     11.850        13.106        .68302E-07    .10755E-04
  11  Prefactor     .60515        1.5424        .50159E-06   -.25529E-03
  12  Prefactor     .10000E-03    54.598        .48597E-07** at limit **
  13  norm          2.4538        1.1590        .14738E-07   -.13884E-03
  14  Prefactor     .10000E-03    1.5149        .73014E-07** at limit **
  15  Prefactor     97.958        39.009       -.23603E-05   -.62164E-03
  16  Prefactor     2.8222        2.3383        .14156E-07   -.70117E-04
  17  Prefactor     3.9190        2.9207        .19386E-07   -.45624E-04
  18  norm          11.103        5.6810       -.66941E-06   -.61909E-03
  19  Prefactor     .76885        3.8446        .20918E-05   -.15143E-04
  20  Prefactor     2.2905        2.2723        .34117E-07   -.22765E-03
  21  Prefactor     .10000E-03    3.8868       -.10494E-06** at limit **
  22  norm          1.3379        .32998       -.12237E-07    .73160E-04
  23  norm          .10000E-03    2.2022       -.16463E-09** at limit **
  24  Prefactor     27.493        12.778       -.10397E-06   -.61163E-04
  25  Normalizat    1.1777        .18433        .83791E-06   -.16349E-03
  26  Prefactor     .85338        .19128       -.12027E-05   -.78195E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.28575
  Prefactor  = 11.9036
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.5288
  Prefactor  = 0.0001
  Prefactor  = 4.68483
  Prefactor  = 0.0001
  Prefactor  = 11.8501
  Prefactor  = 0.605152
  Prefactor  = 0.000100001
  norm       = 2.45385
  Prefactor  = 0.0001
  Prefactor  = 97.9575
  Prefactor  = 2.82223
  Prefactor  = 3.91897
  norm       = 11.1025
  Prefactor  = 0.768849
  Prefactor  = 2.29051
  Prefactor  = 0.000100004
  norm       = 1.33794
  norm       = 0.0001
  Prefactor  = 27.4928
  Normalizat = 1.17773
  Prefactor  = 0.853379
 **********
 **   18 **HESSE 
 **********

 FCN=   6566.728     FROM HESSE     STATUS=OK           466 CALLS     4413 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2857        2.2391        .58128E-03   -1.5406    
   2  Prefactor     11.904        7.7470        .11612E-03   -1.5018    
   3  norm          .10000E-03    10.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.345        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.0386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.529        42.213        .95614E-04   -1.4870    
   7  Prefactor     .10000E-03    10.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.6848        3.6836        .66755E-03   -1.5275    
   9  Prefactor     .10000E-03    10.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.850        13.139        .11639E-03   -1.5019    
  11  Prefactor     .60515        1.5341        .15267E-03   -1.5552    
  12  Prefactor     .10000E-03    55.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.4538        1.1562        .57453E-04   -1.5395    
  14  Prefactor     .10000E-03    1.5273        .97319E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     97.958        40.734        .40611E-04   -1.3725    
  16  Prefactor     2.8222        2.3305        .10655E-03   -1.5372    
  17  Prefactor     3.9190        2.9141        .11288E-03   -1.5312    
  18  norm          11.103        5.2788        .92126E-04   -1.5041    
  19  Prefactor     .76885        3.3312        .21734E-03   -1.5533    
  20  Prefactor     2.2905        2.2529        .11222E-03   -1.5405    
  21  Prefactor     .10000E-03    4.0215        .51217E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.3379        .33051        .21928E-04   -1.5477    
  23  norm          .10000E-03    2.2325        .11722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     27.493        12.765        .76406E-04   -1.4659    
  25  Normalizat    1.1777        .21716        .24711E-03   -.87294    
  26  Prefactor     .85338        .22294        .31127E-03   -.97790    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86562e-09
Minuit parameter uncertainties:
  1  2.23922
  2  7.74768
  3  2.15042e-05
  4  8.79792e-06
  5  1.49842e-05
  6  42.2849
  7  1.65031e-05
  8  3.68376
  9  3.14753e-05
  10  13.1426
  11  1.53421
  12  0.000441355
  13  1.15625
  14  6.38371e-07
  15  40.7458
  16  2.33054
  17  2.91421
  18  5.279
  19  3.20084
  20  2.25302
  21  0.000251256
  22  0.330508
  23  2.35732e-06
  24  12.7658
  25  0.217331
  26  0.223177
Done.

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

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  6.052e-01  1.534e+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.534e-01  2.232e-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.178e+00  2.173e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/102255/likelihoodResults_360633601_360892801_4FGL_J1150.4+2418_daily_bin468.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) = 6566.64047669
delta logL = 0.087105594057

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6566.6305251
delta logL = 0.0970571922908

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .43723       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7569       1.0000          .0000       10.000    
     3 'Normalizat'    1.1677       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85861       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=   6566.631     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      282 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .43686        1.6491        .46488E-03   -.16101E-02
   2  Index         2.7562        1.7908        .90330E-02    .64676E-04
   3  Normalizat    1.1679        .20519        .24804E-03    .73336E-06
   4  Prefactor     .85858        .22285        .31040E-03    .11757E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.436863
  Index      = 2.75617
  Normalizat = 1.16786
  Prefactor  = 0.858576
 **********
 **   18 **HESSE 
 **********

 FCN=   6566.631     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .43686        1.1575        .18595E-04   -1.5576    
   2  Index         2.7562        1.2754        .36132E-03   -.46539    
   3  Normalizat    1.1679        .20533        .99215E-05   -.87602    
   4  Prefactor     .85858        .22262        .12416E-04   -.97604    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78575e-09
Minuit parameter uncertainties:
  1  1.15755
  2  1.29337
  3  0.205473
  4  0.222855
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/102255': 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) = 6566.6305237
delta logL = 0.0970585926698

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  4.369e-01  1.158e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  2.756e+00  1.293e+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:  8.586e-01  2.229e-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.168e+00  2.055e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/102255/cmap_HighResolution_360633601_360892801_4FGL_J1150.4+2418_daily_bin468.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.79e-03', job_status='DONE', photon_flux_upper_limit='7.59e-08', time_completed='2021-09-04 13:01:39.251537', job_id='102255', GAL2='0.86', fit_tolerance='1e-08', EG2='1.17', EG='1.18', time_epoch_completed='1630785699.25', return_code2='0', ts='0.18', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='9.71e-02', ts2='0.37', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='468' AND source_name='4FGL J1150.4+2418' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:01:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 102255: <4FGL_J1150.4+2418_daily_bin468> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.4+2418_daily_bin468 177.603 24.3016 360633601 360892801 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 :                                   903.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             366.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            924 sec.

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

