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


Performing analysis on: 4FGL_J1150.4+2418_daily_bin1224
RA = 177.603, Dec = 24.3016
tmin = 556588801, tmax = 556848001
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='105737', job_status='RUN', time_executed='2021-09-04 12:59:26.151217', time_epoch_executed='1630785566.15' WHERE source_name='4FGL J1150.4+2418' and cadence='daily' and bin_id='1224'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/105737

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/105737/ft1_4FGL_J1150.4+2418_daily_bin1224.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/105737/ft2_4FGL_J1150.4+2418_daily_bin1224.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/105737/ft1_4FGL_J1150.4+2418_daily_bin1224.fits outfile=/scratch/kocevski/105737/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin1224.fits ra=177.603 dec=24.3016 rad=12.0 tmin=556588801.0 tmax=556848001.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.61
user 3.39
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/105737/ft2_4FGL_J1150.4+2418_daily_bin1224.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/105737/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin1224.fits evtable="EVENTS" outfile="/scratch/kocevski/105737/ft1_filtered_4FGL_J1150.4+2418_daily_bin1224.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.48
user 0.31
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/105737/ft1_filtered_4FGL_J1150.4+2418_daily_bin1224.fits evtable="EVENTS" scfile=/scratch/kocevski/105737/ft2_4FGL_J1150.4+2418_daily_bin1224.fits sctable="SC_DATA" expcube=/scratch/kocevski/105737/ltcube_556588801_556848001_4FGL_J1150.4+2418_daily_bin1224.fits outfile=/scratch/kocevski/105737/expmap_556588801_556848001_4FGL_J1150.4+2418_daily_bin1224.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/105737/ltcube_556588801_556848001_4FGL_J1150.4+2418_daily_bin1224.fits
.....................!
real 190.67
user 186.31
sys 4.04

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/105737/ft1_filtered_4FGL_J1150.4+2418_daily_bin1224.fits scfile=/scratch/kocevski/105737/ft2_4FGL_J1150.4+2418_daily_bin1224.fits outfile=/scratch/kocevski/105737/cmap_556588801_556848001_4FGL_J1150.4+2418_daily_bin1224.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.37
sys 0.14

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

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

This is gtbin version HEAD
real 0.56
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18876E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    424.16       1.0000         .10000E-03   10000.    
     3 'norm      '    .15796E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .75221E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    381.90       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10788E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10434E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.123       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10777E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    311.62       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.7165       1.0000         .10000E-03   10000.    
    17 'Prefactor '    73.755       1.0000         .10000E-03   10000.    
    18 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.771       1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.097       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10424E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.3147       1.0000         .10000E-03   10000.    
    23 'norm      '    11.183       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10283E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10003E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    .57703E-04   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=   257.3586     FROM MIGRAD    STATUS=CONVERGED    612 CALLS     3315 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    8412.2        .40085E-05** at limit **
   2  Prefactor     424.66        479.03       -.38138E-06   -.37238E-05
   3  norm          .10001E-03    567.14        .52583E-05** at limit **
   4  Prefactor     .10001E-03    204.19        .43357E-05** at limit **
   5  Prefactor     .10000E-03    354.82        .28323E-07** at limit **
   6  Prefactor     382.42        466.70        .34073E-05    .17684E-05
   7  Prefactor     .10000E-03    187.35        .12317E-06** at limit **
   8  Prefactor     .10000E-03    168.81        .14882E-06** at limit **
   9  Prefactor     .10000E-03    98.260        .46504E-07** at limit **
  10  Prefactor     .10000E-03    39.028        .44586E-06** at limit **
  11  Prefactor     12.134        13.524        .24216E-06   -.57983E-04
  12  Prefactor     .10000E-03    156.54        .10320E-06** at limit **
  13  norm          .10000E-03    4.0595       -.26050E-07** at limit **
  14  Prefactor     .10000E-03    16.321       -.38582E-06** at limit **
  15  Prefactor     311.67        309.63        .18514E-05   -.17746E-05
  16  Prefactor     2.7248        36.300       -.20814E-06   -.34742E-04
  17  Prefactor     73.784        35.083        .74283E-06   -.56905E-04
  18  norm          .10000E-03    27.108       -.68616E-06** at limit **
  19  Prefactor     23.793        22.966        .64174E-06   -.10632E-04
  20  Prefactor     12.101        14.514        .25349E-06   -.46168E-05
  21  Prefactor     .10000E-03    41.027       -.12721E-05** at limit **
  22  norm          2.3165        1.4803        .24927E-06   -.46951E-04
  23  norm          11.201        18.727        .99741E-06   -.17990E-04
  24  Prefactor     .10000E-03    41.851       -.64531E-06** at limit **
  25  Normalizat    .10000E-01    .72247        .25164E-04** at limit **
  26  Prefactor     .11621E-09    1.9628        .54998E-04** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100017
  Prefactor  = 424.656
  norm       = 0.000100014
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  Prefactor  = 382.416
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.1335
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 311.667
  Prefactor  = 2.72476
  Prefactor  = 73.7844
  norm       = 0.000100001
  Prefactor  = 23.7925
  Prefactor  = 12.1008
  Prefactor  = 0.000100002
  norm       = 2.31648
  norm       = 11.2015
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.16215e-10
 **********
 **   18 **HESSE 
 **********

 FCN=   257.3586     FROM HESSE     STATUS=OK           446 CALLS     3761 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    8411.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     424.66        479.45        .99237E-04   -1.1557    
   3  norm          .10001E-03    570.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    206.66        .20938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    354.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     382.42        466.44        .10435E-03   -1.1772    
   7  Prefactor     .10000E-03    187.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    168.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    98.256        .15570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    39.049        .98063E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.134        13.527        .60733E-04   -1.5011    
  12  Prefactor     .10000E-03    156.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.0601        .31597E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.347        .63384E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     311.67        309.97        .11510E-03   -1.2159    
  16  Prefactor     2.7248        34.943        .15748E-03   -1.5378    
  17  Prefactor     73.784        34.711        .46750E-04   -1.3988    
  18  norm          .10000E-03    27.301        .81647E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     23.793        23.013        .66068E-04   -1.4732    
  20  Prefactor     12.101        14.589        .57621E-04   -1.5012    
  21  Prefactor     .10000E-03    41.537        .10090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.3165        1.4856        .14599E-04   -1.5404    
  23  norm          11.201        18.788        .82370E-04   -1.5038    
  24  Prefactor     .10000E-03    41.949        .10160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .10000E-01    .74294        .78701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .11621E-09    2.0045        .11090E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9507e-10
Minuit parameter uncertainties:
  1  0.0254247
  2  484.089
  3  0.00580461
  4  0.00340657
  5  0.000631108
  6  471.162
  7  0.000233463
  8  6.47571e-05
  9  2.91952e-05
  10  0.000155411
  11  13.5302
  12  8.13117e-05
  13  5.3116e-06
  14  9.96252e-05
  15  311.639
  16  19.5291
  17  34.7209
  18  0.000294705
  19  23.0213
  20  14.5931
  21  0.00061766
  22  1.48562
  23  18.7975
  24  0.000288439
  25  6.5671e-06
  26  3.16499e-05
Done.

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

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  1.213e+01  1.353e+01  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.162e-10  3.165e-05  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.000e-02  6.567e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.75
Ra Dec: 177.603 24.302
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 2.10e-07 +/- 2.34e-07
Energy Flux (Fixed Index): 8.96e-05 +/- 9.99e-05

TS (Fixed Index): 2.75
Ra Dec: 177.603 24.302
Photon Flux Upper Limit: 1.07e-06 ph cm-2 s-1
Energy Flux Upper Limit: 8.21e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/105737/likelihoodResults_556588801_556848001_4FGL_J1150.4+2418_daily_bin1224.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) = 257.358005089
delta logL = 0.000607593524649

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 257.35728201
delta logL = 0.00133067254797

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.393       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2839       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .19153E-06   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=   257.3573     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      256 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.394        19.207        .58832E-04   -.43950E-03
   2  Index         2.2837        1.0787        .26436E-03   -.10087E-03
   3  Normalizat    .10000E-01    .74041        .78595E-02** at limit **
   4  Prefactor     .53013E-11    1.9906        .11083E-01** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.3944
  Index      = 2.28367
  Normalizat = 0.01
  Prefactor  = 5.30131e-12
 **********
 **   18 **HESSE 
 **********

 FCN=   257.3573     FROM HESSE     STATUS=OK            23 CALLS      279 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.394        19.167        .11766E-04   -1.5033    
   2  Index         2.2837        1.0765        .52871E-04   -.57432    
   3  Normalizat    .10000E-01    .74065        .15719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .53013E-11    1.9947        .22166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.39233e-10
Minuit parameter uncertainties:
  1  19.1776
  2  1.0887
  3  4.77633e-06
  4  6.74211e-06
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/105737': 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) = 257.35728185
delta logL = 0.00133083213319

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  1.139e+01  1.918e+01  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  2.284e+00  1.089e+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:  5.301e-12  6.742e-06  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.000e-02  4.776e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.43
Ra Dec: 177.603 24.302
Photon Index (Free Index): 2.28 +/- 1.09
Photon Flux (Free Index): 2.16e-07 +/- 2.63e-07
Energy Flux (Free Index): 8.38e-05 +/- 1.40e-04

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/105737/cmap_HighResolution_556588801_556848001_4FGL_J1150.4+2418_daily_bin1224.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.21e-02', comment='SUCCESS', photon_flux='2.10e-07', energy_flux2='8.38e-05', photon_flux_error='2.34e-07', dlogl='1.33e-03', energy_flux='8.96e-05', photon_flux2='2.16e-07', job_status='DONE', time_completed='2021-09-04 13:05:14.131141', photon_index_error2='1.09', photon_index2='2.28', ts='2.75', fit_tolerance='1e-08', GAL='0.00', photon_index_error='0.00', photon_flux_upper_limit='1.07e-06', energy_flux_error2='1.40e-04', EG='0.01', time_epoch_completed='1630785914.13', return_code='0', job_id='105737', GAL2='0.00', EG2='0.01', return_code2='0', energy_flux_error='9.99e-05', photon_flux_error2='2.63e-07', ts2='2.43', photon_index='2.23' WHERE bin_id='1224' AND source_name='4FGL J1150.4+2418' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:05:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 105737: <4FGL_J1150.4+2418_daily_bin1224> in cluster <slac> Done

Job <4FGL_J1150.4+2418_daily_bin1224> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 12:56:36 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:56:37 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:56:37 2021
Terminated at Sat Sep  4 13:05:14 2021
Results reported at Sat Sep  4 13:05:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.4+2418_daily_bin1224 177.603 24.3016 556588801 556848001 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 :                                   347.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             262.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   517 sec.
    Turnaround time :                            518 sec.

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

