/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 134 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 = 5262
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1150.4+2418_daily_bin73
RA = 177.603, Dec = 24.3016
tmin = 258249601, tmax = 258508801
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='99349', job_status='RUN', time_executed='2021-09-04 12:39:15.931514', time_epoch_executed='1630784355.93' WHERE source_name='4FGL J1150.4+2418' and cadence='daily' and bin_id='73'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/99349

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

Retrieving the FT1 file...

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

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

Retrieving 33 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/99349/ft1_4FGL_J1150.4+2418_daily_bin73.fits


Retrieving the FT1 file...

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

Retrieving 33 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/99349/ft2_4FGL_J1150.4+2418_daily_bin73.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/99349/ft1_4FGL_J1150.4+2418_daily_bin73.fits outfile=/scratch/kocevski/99349/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin73.fits ra=177.603 dec=24.3016 rad=12.0 tmin=258249601.0 tmax=258508801.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 1.16
user 0.98
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/99349/ft1_filtered_4FGL_J1150.4+2418_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/99349/ft2_4FGL_J1150.4+2418_daily_bin73.fits sctable="SC_DATA" expcube=/scratch/kocevski/99349/ltcube_258249601_258508801_4FGL_J1150.4+2418_daily_bin73.fits outfile=/scratch/kocevski/99349/expmap_258249601_258508801_4FGL_J1150.4+2418_daily_bin73.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/99349/ltcube_258249601_258508801_4FGL_J1150.4+2418_daily_bin73.fits
.....................!
real 191.53
user 185.10
sys 5.67

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/99349/ft1_filtered_4FGL_J1150.4+2418_daily_bin73.fits scfile=/scratch/kocevski/99349/ft2_4FGL_J1150.4+2418_daily_bin73.fits outfile=/scratch/kocevski/99349/cmap_258249601_258508801_4FGL_J1150.4+2418_daily_bin73.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/99349/ft1_filtered_4FGL_J1150.4+2418_daily_bin73.fits scfile=/scratch/kocevski/99349/ft2_4FGL_J1150.4+2418_daily_bin73.fits outfile=/scratch/kocevski/99349/cmap_HighResolution_258249601_258508801_4FGL_J1150.4+2418_daily_bin73.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.35
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7821       1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.313       1.0000         .10000E-03   10000.    
     3 'norm      '    1.7633       1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.945       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.6776       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.8722       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.2405       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    42.067       1.0000         .10000E-03   10000.    
    13 'norm      '    4.3318       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.341       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12820E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .62748       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12112E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.9991       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.7592       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .25170       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .82795       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0177       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=   3442.132     FROM MIGRAD    STATUS=CONVERGED    613 CALLS     3177 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7821        2.2503        .29590E-08   -.42231E-04
   2  Prefactor     17.311        12.755        .13225E-06   -.19494E-04
   3  norm          1.7639        18.579        .12886E-04   -.35918E-04
   4  Prefactor     27.942        18.320        .27100E-06   -.25792E-04
   5  Prefactor     3.6528        22.459        .21493E-05   -.23319E-04
   6  Prefactor     8.8655        41.570        .29256E-05   -.52991E-05
   7  Prefactor     .10000E-03    5.4624       -.17936E-06** at limit **
   8  Prefactor     3.2407        4.5802        .61444E-06   -.12433E-03
   9  Prefactor     .10000E-03    12.415        .12933E-05** at limit **
  10  Prefactor     .10000E-03    14.220       -.42032E-06** at limit **
  11  Prefactor     .10000E-03    1.8076        .59963E-06** at limit **
  12  Prefactor     42.036        38.476        .39411E-05   -.58012E-04
  13  norm          4.3316        1.8340       -.65118E-07   -.44981E-03
  14  Prefactor     12.341        6.8941        .18999E-06   -.16175E-03
  15  Prefactor     .10000E-03    43.735       -.17730E-05** at limit **
  16  Prefactor     .62632        3.3558        .10039E-05    .65752E-04
  17  Prefactor     .10000E-03    4.1062        .40111E-06** at limit **
  18  norm          5.9989        3.8351        .40744E-07   -.11560E-03
  19  Prefactor     .10000E-03    1.9638       -.26704E-06** at limit **
  20  Prefactor     1.7589        3.4549        .77686E-06    .28607E-04
  21  Prefactor     .10000E-03    4.0856        .32775E-07** at limit **
  22  norm          .25171        .20766        .32464E-07   -.13030E-03
  23  norm          .10000E-03    1.7073       -.12211E-08** at limit **
  24  Prefactor     .10000E-03    9.0336       -.44226E-06** at limit **
  25  Normalizat    .82817        .23183       -.16319E-05   -.97293E-04
  26  Prefactor     1.0175        .24011       -.22232E-05   -.19831E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.78212
  Prefactor  = 17.3111
  norm       = 1.76389
  Prefactor  = 27.9422
  Prefactor  = 3.65278
  Prefactor  = 8.86553
  Prefactor  = 0.0001
  Prefactor  = 3.24073
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.036
  norm       = 4.33156
  Prefactor  = 12.3413
  Prefactor  = 0.000100001
  Prefactor  = 0.626317
  Prefactor  = 0.0001
  norm       = 5.99888
  Prefactor  = 0.0001
  Prefactor  = 1.75887
  Prefactor  = 0.0001
  norm       = 0.251712
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.828173
  Prefactor  = 1.01751
 **********
 **   18 **HESSE 
 **********

 FCN=   3442.132     FROM HESSE     STATUS=OK           458 CALLS     3635 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7821        2.2384        .95963E-04   -1.5441    
   2  Prefactor     17.311        12.750        .96258E-04   -1.4876    
   3  norm          1.7639        18.736        .15775E-02   -1.5442    
   4  Prefactor     27.942        18.318        .75786E-04   -1.4650    
   5  Prefactor     3.6528        22.415        .21062E-03   -1.5326    
   6  Prefactor     8.8655        41.607        .13456E-03   -1.5112    
   7  Prefactor     .10000E-03    5.4674        .13391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.2407        4.5719        .72222E-03   -1.5348    
   9  Prefactor     .10000E-03    12.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.580        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.3459        .15137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     42.036        38.500        .61807E-04   -1.4410    
  13  norm          4.3316        1.8360        .49428E-04   -1.5292    
  14  Prefactor     12.341        6.8725        .10590E-03   -1.5005    
  15  Prefactor     .10000E-03    43.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .62632        3.3187        .19946E-03   -1.5550    
  17  Prefactor     .10000E-03    4.2592        .23143E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.9989        3.8148        .86212E-04   -1.5218    
  19  Prefactor     .10000E-03    1.9977        .80098E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.7589        3.4286        .13745E-03   -1.5443    
  21  Prefactor     .10000E-03    4.1127        .11578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .25171        .20619        .23418E-04   -1.5608    
  23  norm          .10000E-03    1.7091        .74859E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    9.0567        .17219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .82817        .26084        .25354E-03   -.99032    
  26  Prefactor     1.0175        .27147        .25728E-03   -.92148    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86388e-10
Minuit parameter uncertainties:
  1  2.23853
  2  12.7515
  3  11.5018
  4  18.3217
  5  18.1069
  6  38.4556
  7  3.25134e-05
  8  4.57244
  9  1.97002e-05
  10  0.000128895
  11  1.51794e-05
  12  38.5223
  13  1.83601
  14  6.87295
  15  0.000491401
  16  2.88348
  17  3.77254e-05
  18  3.81499
  19  1.88376e-05
  20  3.42894
  21  9.62572e-06
  22  0.206191
  23  1.33424e-06
  24  1.536e-06
  25  0.261238
  26  0.271832
Done.

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

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  1.518e-05  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.018e+00  2.718e-01  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  8.282e-01  2.612e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/99349/likelihoodResults_258249601_258508801_4FGL_J1150.4+2418_daily_bin73.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) = 3442.13313549
delta logL = -0.00142645676442

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3442.13171154
delta logL = -2.50695393333e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10890E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2487       1.0000          .0000       10.000    
     3 'Normalizat'    .82788       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0180       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3442.122     FROM MIGRAD    STATUS=FAILED       169 CALLS      326 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .25291E-01    3.1466        .15068E-02   -.42410E-02
   2  Index         3.7771        .97177        .50000        .26504E-05
   3  Normalizat    .81933        .17528E-01    .25353E-03    .16569E-04
   4  Prefactor     1.0222        .19632E-01    .25728E-03    .11091E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3442.122     FROM SIMPLEX   STATUS=UNCHANGED     66 CALLS      392 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .25291E-01    3.1466        .85154E-04   -.42410E-02
   2  Index         3.7771        .97177        .20746E-02    .26504E-05
   3  Normalizat    .81933        .17528E-01    .90750E-04    .16569E-04
   4  Prefactor     1.0222        .19632E-01    .67845E-04    .11091E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3442.122     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      425 TOTAL
                     EDM=   .10E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .25291E-01    1.0310        .60271E-04   -.63661E-04
   2  Index         3.7771        6.8277        .36092E-02    .13450E-05
   3  Normalizat    .81933        .24687        .10141E-04    .16591E-04
   4  Prefactor     1.0222        .26936        .10291E-04    .11157E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0252906
  Index      = 3.77714
  Normalizat = 0.819328
  Prefactor  = 1.02218
 **********
 **   18 **HESSE 
 **********

 FCN=   3442.122     FROM HESSE     STATUS=OK            25 CALLS      450 TOTAL
                     EDM=   .88E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .25291E-01    .98189        .24109E-05   -1.5740    
   2  Index         3.7771        6.8110        .14437E-03   -.24708    
   3  Normalizat    .81933        .24673        .20282E-05   -.99356    
   4  Prefactor     1.0222        .26916        .20583E-05   -.91994    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.7695e-13
Minuit parameter uncertainties:
  1  0.314549
  2  5.20651
  3  0.247069
  4  0.269512
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/99349': 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) = 3442.12237841
delta logL = 0.00933062695231

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  2.529e-02  3.145e-01  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  3.777e+00  5.207e+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:  1.022e+00  2.695e-01  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  8.193e-01  2.471e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 177.603 24.302

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/99349/cmap_HighResolution_258249601_258508801_4FGL_J1150.4+2418_daily_bin73.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.19e-03', job_status='DONE', photon_flux_upper_limit='9.41e-08', time_completed='2021-09-04 12:48:44.689119', job_id='99349', GAL2='1.02', fit_tolerance='1e-08', EG2='0.82', EG='0.83', time_epoch_completed='1630784924.69', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='9.33e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='73' AND source_name='4FGL J1150.4+2418' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:48:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 99349: <4FGL_J1150.4+2418_daily_bin73> in cluster <slac> Done

Job <4FGL_J1150.4+2418_daily_bin73> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 12:36:50 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:36:53 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:36:53 2021
Terminated at Sat Sep  4 12:48:46 2021
Results reported at Sat Sep  4 12:48:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.4+2418_daily_bin73 177.603 24.3016 258249601 258508801 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 :                                   568.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             232.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   711 sec.
    Turnaround time :                            716 sec.

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

