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


Performing analysis on: 4FGL_J1150.4+2418_daily_bin66
RA = 177.603, Dec = 24.3016
tmin = 256435201, tmax = 256694401
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='99338', job_status='RUN', time_executed='2021-09-04 12:37:03.540109', time_epoch_executed='1630784223.54' WHERE source_name='4FGL J1150.4+2418' and cadence='daily' and bin_id='66'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/99338

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/99338/ft1_4FGL_J1150.4+2418_daily_bin66.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/99338/ft2_4FGL_J1150.4+2418_daily_bin66.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/99338/ft1_4FGL_J1150.4+2418_daily_bin66.fits outfile=/scratch/kocevski/99338/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin66.fits ra=177.603 dec=24.3016 rad=12.0 tmin=256435201.0 tmax=256694401.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.45
user 1.26
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/99338/ft2_4FGL_J1150.4+2418_daily_bin66.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/99338/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin66.fits evtable="EVENTS" outfile="/scratch/kocevski/99338/ft1_filtered_4FGL_J1150.4+2418_daily_bin66.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.53
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/99338/ft1_filtered_4FGL_J1150.4+2418_daily_bin66.fits evtable="EVENTS" scfile=/scratch/kocevski/99338/ft2_4FGL_J1150.4+2418_daily_bin66.fits sctable="SC_DATA" expcube=/scratch/kocevski/99338/ltcube_256435201_256694401_4FGL_J1150.4+2418_daily_bin66.fits outfile=/scratch/kocevski/99338/expmap_256435201_256694401_4FGL_J1150.4+2418_daily_bin66.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/99338/ltcube_256435201_256694401_4FGL_J1150.4+2418_daily_bin66.fits
.....................!
real 192.30
user 187.14
sys 4.80

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/99338/ft1_filtered_4FGL_J1150.4+2418_daily_bin66.fits scfile=/scratch/kocevski/99338/ft2_4FGL_J1150.4+2418_daily_bin66.fits outfile=/scratch/kocevski/99338/cmap_256435201_256694401_4FGL_J1150.4+2418_daily_bin66.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/99338/ft1_filtered_4FGL_J1150.4+2418_daily_bin66.fits scfile=/scratch/kocevski/99338/ft2_4FGL_J1150.4+2418_daily_bin66.fits outfile=/scratch/kocevski/99338/cmap_HighResolution_256435201_256694401_4FGL_J1150.4+2418_daily_bin66.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.53
user 0.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3247       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.2521       1.0000         .10000E-03   10000.    
     3 'norm      '    5.3271       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.160       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .16265E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12118E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.1898       1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.445       1.0000         .10000E-03   10000.    
    13 'norm      '    3.1728       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.8069       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.9701       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.4825       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.8186       1.0000         .10000E-03   10000.    
    18 'norm      '    1.1112       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.9815       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .93511       1.0000         .10000E-03   10000.    
    22 'norm      '    .27804       1.0000         .10000E-03   10000.    
    23 'norm      '    2.8145       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.8390       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .66207       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2622       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8647.465     FROM MIGRAD    STATUS=CONVERGED     84 CALLS     2594 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3250        2.5729        .43230E-06    .17988E-03
   2  Prefactor     8.2524        1.5850        .89507E-07    .24305E-02
   3  norm          5.3265        1.0133        .50466E-07   -.69244E-04
   4  Prefactor     .10000E-03    3.3272       -.30374E-06** at limit **
   5  Prefactor     12.166        1.2444       -.24215E-06    .10977E-02
   6  Prefactor     .10019E-03    50.179        .50680E-05** at limit **
   7  Prefactor     .10000E-03    9.0822        .33256E-05** at limit **
   8  Prefactor     .10021E-03    61.101        .49297E-05** at limit **
   9  Prefactor     .10000E-03    8.9815       -.44328E-05** at limit **
  10  Prefactor     .10000E-03    4.1759        .32890E-06** at limit **
  11  Prefactor     4.1896        1.8196        .21975E-07   -.10557E-03
  12  Prefactor     24.451        1.3594        .17836E-06   -.27127E-02
  13  norm          3.1728        1.1098        .45528E-07   -.90221E-04
  14  Prefactor     3.8068        2.0278        .10989E-05   -.14674E-02
  15  Prefactor     2.9689        1.1133       -.30835E-06    .50511E-03
  16  Prefactor     1.4825        2.0748        .16433E-05    .72286E-03
  17  Prefactor     3.8187        2.2966       -.13897E-05   -.12736E-02
  18  norm          1.1112        1.2366        .10791E-07   -.14681E-04
  19  Prefactor     .10000E-03    .47250        .38763E-06** at limit **
  20  Prefactor     6.9818        2.1800       -.64668E-07   -.23806E-03
  21  Prefactor     .93380        2.0126        .60182E-07   -.51974E-05
  22  norm          .27805        .15292        .52580E-08   -.12199E-03
  23  norm          2.8148        2.1919        .54552E-06    .11994E-03
  24  Prefactor     4.8389        1.2292        .23863E-06    .31192E-03
  25  Normalizat    .66198        .16985       -.33736E-06   -.57305E-04
  26  Prefactor     1.2623        .18546       -.58460E-06   -.81116E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.32501
  Prefactor  = 8.25239
  norm       = 5.32645
  Prefactor  = 0.0001
  Prefactor  = 12.1661
  Prefactor  = 0.000100193
  Prefactor  = 0.000100001
  Prefactor  = 0.000100213
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.18962
  Prefactor  = 24.4507
  norm       = 3.17278
  Prefactor  = 3.80681
  Prefactor  = 2.9689
  Prefactor  = 1.48252
  Prefactor  = 3.8187
  norm       = 1.11116
  Prefactor  = 0.0001
  Prefactor  = 6.9818
  Prefactor  = 0.933797
  norm       = 0.278053
  norm       = 2.81477
  Prefactor  = 4.83892
  Normalizat = 0.661985
  Prefactor  = 1.26225
 **********
 **   18 **HESSE 
 **********

 FCN=   8647.465     FROM HESSE     STATUS=OK           530 CALLS     3124 TOTAL
                     EDM=   .58E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3250        2.5876        .55499E-02   -1.5343    
   2  Prefactor     8.2524        4.7609        .34890E-02   -1.5133    
   3  norm          5.3265        8.2549        .43533E-02   -1.5246    
   4  Prefactor     .10000E-03    3.3161        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.166        15.456        .28718E-02   -1.5010    
   6  Prefactor     .10019E-03    101.03        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.4621        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10021E-03    1.9909        .71392E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.3664        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.1493        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.1896        1.8293        .49222E-02   -1.5299    
  12  Prefactor     24.451        21.405        .20255E-02   -1.4719    
  13  norm          3.1728        1.1151        .56880E-02   -1.5352    
  14  Prefactor     3.8068        3.4976        .51719E-02   -1.5318    
  15  Prefactor     2.9689        53.533        .58900E-02   -1.5363    
  16  Prefactor     1.4825        2.5614        .88108E-02   -1.5464    
  17  Prefactor     3.8187        2.5988        .51637E-02   -1.5317    
  18  norm          1.1112        1.2460        .11197E-01   -1.5497    
  19  Prefactor     .10000E-03    .47041        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.9818        2.2074        .37958E-02   -1.5179    
  21  Prefactor     .93380        2.4307        .44846E-01   -1.5515    
  22  norm          .27805        .15547        .58651E-02   -1.5603    
  23  norm          2.8148        2.2080        .60614E-02   -1.5372    
  24  Prefactor     4.8389        5.9294        .45718E-02   -1.5268    
  25  Normalizat    .66198        .15451        .65837E-01   -1.0541    
  26  Prefactor     1.2623        .15847        .55020E-01   -.84437    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.80493e-08
Minuit parameter uncertainties:
  1  2.58766
  2  4.76112
  3  8.25666
  4  1.70061e-07
  5  15.4612
  6  0.00885102
  7  0.000138658
  8  0.00130301
  9  0.000101092
  10  2.24562e-06
  11  1.8293
  12  21.4115
  13  1.11511
  14  3.49777
  15  25.2397
  16  2.56157
  17  2.59888
  18  1.24606
  19  1.63791e-06
  20  2.20746
  21  2.43094
  22  0.155473
  23  2.20811
  24  5.93009
  25  0.154607
  26  0.158526
Done.

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

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  4.190e+00  1.829e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  2.228e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.108e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  1.262e+00  1.585e-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:  6.620e-01  1.546e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.46
Ra Dec: 177.603 24.302
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 7.25e-08 +/- 3.16e-08
Energy Flux (Fixed Index): 3.09e-05 +/- 1.35e-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) = 8647.14296995
delta logL = 0.322338037216

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8647.13169152
delta logL = 0.3336164713

Fit tolerance = 1e-08

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

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

 FCN=   8647.132     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      248 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0745        16.285        .57832E-02    .78555E-03
   2  Index         2.5697        2.4149        .11825        .18653E-03
   3  Normalizat    .63090        .65271E-01    .67296E-01    .34668E-04
   4  Prefactor     1.2849        .60488E-01    .54610E-01    .44825E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.0745
  Index      = 2.56968
  Normalizat = 0.630903
  Prefactor  = 1.28494
 **********
 **   18 **HESSE 
 **********

 FCN=   8647.132     FROM HESSE     STATUS=OK            33 CALLS      281 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0745        2.3241        .62383E-04   -1.5357    
   2  Index         2.5697        .49863        .45021E-02   -.50758    
   3  Normalizat    .63090        .17135        .29781E-03   -1.0669    
   4  Prefactor     1.2849        .18861        .24145E-03   -.83756    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.64742e-09
Minuit parameter uncertainties:
  1  2.3242
  2  0.499717
  3  0.171498
  4  0.188714
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/99338': 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) = 8647.13169152
delta logL = 0.333616473959

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  3.075e+00  2.324e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  2.570e+00  4.997e-01  0.000e+00  1.000e+01 (-1.000e+00)
288        Scale:  1.108e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  1.285e+00  1.887e-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:  6.309e-01  1.715e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.12
Ra Dec: 177.603 24.302
Photon Index (Free Index): 2.57 +/- 0.50
Photon Flux (Free Index): 9.47e-08 +/- 4.47e-08
Energy Flux (Free Index): 2.56e-05 +/- 1.21e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/99338/cmap_HighResolution_256435201_256694401_4FGL_J1150.4+2418_daily_bin66.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.25e-08', energy_flux2='2.56e-05', photon_flux_error='3.16e-08', dlogl='3.34e-01', energy_flux='3.09e-05', photon_flux2='9.47e-08', job_status='DONE', time_completed='2021-09-04 12:49:49.618244', photon_index_error2='0.50', photon_index2='2.57', ts='9.46', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', energy_flux_error2='1.21e-05', EG='0.66', time_epoch_completed='1630784989.62', return_code='0', job_id='99338', GAL2='1.28', EG2='0.63', return_code2='0', energy_flux_error='1.35e-05', photon_flux_error2='4.47e-08', ts2='10.12', photon_index='2.23' WHERE bin_id='66' AND source_name='4FGL J1150.4+2418' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:49:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 99338: <4FGL_J1150.4+2418_daily_bin66> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.4+2418_daily_bin66 177.603 24.3016 256435201 256694401 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 :                                   764.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             371.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            781 sec.

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

