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


Performing analysis on: 4FGL_J1150.4+2418_daily_bin69
RA = 177.603, Dec = 24.3016
tmin = 257212801, tmax = 257472001
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='99342', job_status='RUN', time_executed='2021-09-04 12:39:43.491243', time_epoch_executed='1630784383.49' WHERE source_name='4FGL J1150.4+2418' and cadence='daily' and bin_id='69'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/99342

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/99342/ft1_4FGL_J1150.4+2418_daily_bin69.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/99342/ft2_4FGL_J1150.4+2418_daily_bin69.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/99342/ft1_4FGL_J1150.4+2418_daily_bin69.fits outfile=/scratch/kocevski/99342/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin69.fits ra=177.603 dec=24.3016 rad=12.0 tmin=257212801.0 tmax=257472001.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 2.30
user 2.09
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/99342/ft1_filtered_4FGL_J1150.4+2418_daily_bin69.fits evtable="EVENTS" scfile=/scratch/kocevski/99342/ft2_4FGL_J1150.4+2418_daily_bin69.fits sctable="SC_DATA" expcube=/scratch/kocevski/99342/ltcube_257212801_257472001_4FGL_J1150.4+2418_daily_bin69.fits outfile=/scratch/kocevski/99342/expmap_257212801_257472001_4FGL_J1150.4+2418_daily_bin69.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/99342/ltcube_257212801_257472001_4FGL_J1150.4+2418_daily_bin69.fits
.....................!
real 190.99
user 186.09
sys 4.37

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/99342/ft1_filtered_4FGL_J1150.4+2418_daily_bin69.fits scfile=/scratch/kocevski/99342/ft2_4FGL_J1150.4+2418_daily_bin69.fits outfile=/scratch/kocevski/99342/cmap_257212801_257472001_4FGL_J1150.4+2418_daily_bin69.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/99342/ft1_filtered_4FGL_J1150.4+2418_daily_bin69.fits scfile=/scratch/kocevski/99342/ft2_4FGL_J1150.4+2418_daily_bin69.fits outfile=/scratch/kocevski/99342/cmap_HighResolution_257212801_257472001_4FGL_J1150.4+2418_daily_bin69.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.58
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7404       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.4429       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11888E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.4550       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .26210E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.6292       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.3058       1.0000         .10000E-03   10000.    
    13 'norm      '    1.2556       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.2420       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10280E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12014E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .37547E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.5278       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.7389       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.1577       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .62767       1.0000         .10000E-03   10000.    
    23 'norm      '    .12674E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2196       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .65551       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=   7154.335     FROM MIGRAD    STATUS=CONVERGED    640 CALLS     2702 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7405        1.5117        .18462E-07    .25971E-04
   2  Prefactor     5.4427        4.4751        .75264E-06   -.18418E-02
   3  norm          .10000E-03    3.7244        .83793E-07** at limit **
   4  Prefactor     .10000E-03    3.7038        .88409E-07** at limit **
   5  Prefactor     .10000E-03    5.8588        .47569E-06** at limit **
   6  Prefactor     .10000E-03    36.910       -.53598E-05** at limit **
   7  Prefactor     .10000E-03    16.662       -.66922E-05** at limit **
   8  Prefactor     1.4539        3.3831        .16330E-06   -.24661E-03
   9  Prefactor     .10000E-03    23.021        .67011E-05** at limit **
  10  Prefactor     .10016E-03    5.7961        .15938E-05** at limit **
  11  Prefactor     4.6293        2.1007        .14558E-07   -.68349E-03
  12  Prefactor     4.3061        17.512        .28948E-05   -.36800E-03
  13  norm          1.2554        .79848       -.67247E-08   -.23822E-03
  14  Prefactor     2.2417        4.0375       -.17166E-06   -.74200E-03
  15  Prefactor     .10000E-03    12.102        .24239E-05** at limit **
  16  Prefactor     .10000E-03    1.6956       -.13927E-07** at limit **
  17  Prefactor     .10000E-03    1.2903        .28689E-07** at limit **
  18  norm          6.5280        2.7533       -.11383E-07    .69794E-06
  19  Prefactor     2.7389        1.9424       -.16011E-09    .41574E-05
  20  Prefactor     6.1570        2.3533        .60733E-07   -.50566E-03
  21  Prefactor     .10000E-03    2.0055        .24814E-07** at limit **
  22  norm          .62770        .25092        .88650E-08   -.24884E-03
  23  norm          .10000E-03    1.8862       -.28130E-06** at limit **
  24  Prefactor     .10000E-03    3.8636       -.33675E-06** at limit **
  25  Normalizat    1.2198        .15788       -.39018E-06   -.25013E-03
  26  Prefactor     .65523        .16042       -.11006E-06   -.16811E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.74053
  Prefactor  = 5.44265
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100004
  Prefactor  = 1.45387
  Prefactor  = 0.000100005
  Prefactor  = 0.000100155
  Prefactor  = 4.62932
  Prefactor  = 4.30609
  norm       = 1.25545
  Prefactor  = 2.24167
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.52804
  Prefactor  = 2.73889
  Prefactor  = 6.15699
  Prefactor  = 0.0001
  norm       = 0.627704
  norm       = 0.000100002
  Prefactor  = 0.0001
  Normalizat = 1.2198
  Prefactor  = 0.655226
 **********
 **   18 **HESSE 
 **********

 FCN=   7154.335     FROM HESSE     STATUS=OK           462 CALLS     3164 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7405        1.5154        .94225E-04   -1.5444    
   2  Prefactor     5.4427        5.4099        .86118E-03   -1.5241    
   3  norm          .10000E-03    3.7373        .15940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.7317        .15895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.8858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    37.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.454        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.4539        3.3477        .22720E-03   -1.5467    
   9  Prefactor     .10000E-03    23.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10016E-03    35.024        .36769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.6293        2.1008        .78131E-04   -1.5278    
  12  Prefactor     4.3061        22.095        .97071E-03   -1.5293    
  13  norm          1.2554        .78378        .58171E-04   -1.5484    
  14  Prefactor     2.2417        3.9533        .20806E-03   -1.5409    
  15  Prefactor     .10000E-03    12.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.5794        .19831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.7293        .17523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.5280        2.7595        .85097E-04   -1.5197    
  19  Prefactor     2.7389        1.9469        .92961E-04   -1.5377    
  20  Prefactor     6.1570        2.3543        .38167E-03   -1.5212    
  21  Prefactor     .10000E-03    2.0158        .11686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .62770        .24800        .25265E-04   -1.5550    
  23  norm          .10000E-03    7.1160        .22249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.8769        .16237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2198        .17886        .21500E-03   -.85993    
  26  Prefactor     .65523        .18104        .30110E-03   -1.0531    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.60491e-09
Minuit parameter uncertainties:
  1  1.51547
  2  5.41035
  3  3.27102e-06
  4  2.72381e-06
  5  3.10108e-05
  6  0.000697237
  7  0.000495079
  8  3.34816
  9  0.000657379
  10  0.00466929
  11  2.10078
  12  19.5193
  13  0.783791
  14  3.95376
  15  0.000179176
  16  1.28679e-05
  17  6.42963e-05
  18  2.75958
  19  1.94697
  20  2.35436
  21  2.83101e-06
  22  0.248003
  23  0.000232049
  24  1.3579e-05
  25  0.178946
  26  0.181202
Done.

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

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  4.629e+00  2.101e+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:  6.552e-01  1.812e-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.220e+00  1.789e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.31
Ra Dec: 177.603 24.302
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 8.01e-08 +/- 3.63e-08
Energy Flux (Fixed Index): 3.42e-05 +/- 1.55e-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) = 7153.39672718
delta logL = 0.938717265186

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7153.39412193
delta logL = 0.941322523013

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5368       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8333       1.0000          .0000       10.000    
     3 'Normalizat'    1.1604       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69683       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=   7153.394     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      279 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5369        2.3794        .49601E-04    .38983E-02
   2  Index         2.8333        .56835        .37005E-02    .52899E-03
   3  Normalizat    1.1604        .17885        .21943E-03    .74398E-04
   4  Prefactor     .69682        .18486        .29279E-03   -.15660E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.53688
  Index      = 2.83331
  Normalizat = 1.16041
  Prefactor  = 0.69682
 **********
 **   18 **HESSE 
 **********

 FCN=   7153.394     FROM HESSE     STATUS=OK            25 CALLS      304 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5369        2.0396        .19840E-05   -1.5389    
   2  Index         2.8333        .48697        .14802E-03   -.44819    
   3  Normalizat    1.1604        .17785        .87773E-05   -.87835    
   4  Prefactor     .69682        .18396        .11712E-04   -1.0365    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.91339e-10
Minuit parameter uncertainties:
  1  2.03962
  2  0.487918
  3  0.177939
  4  0.184122
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/99342': 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) = 7153.3941219
delta logL = 0.941322544596

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  2.537e+00  2.040e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  2.833e+00  4.879e-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:  6.968e-01  1.841e-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.160e+00  1.779e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.22
Ra Dec: 177.603 24.302
Photon Index (Free Index): 2.83 +/- 0.49
Photon Flux (Free Index): 1.26e-07 +/- 5.59e-08
Energy Flux (Free Index): 2.76e-05 +/- 1.12e-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/99342/cmap_HighResolution_257212801_257472001_4FGL_J1150.4+2418_daily_bin69.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.01e-08', energy_flux2='2.76e-05', photon_flux_error='3.63e-08', dlogl='9.41e-01', energy_flux='3.42e-05', photon_flux2='1.26e-07', job_status='DONE', time_completed='2021-09-04 12:51:20.038134', photon_index_error2='0.49', photon_index2='2.83', ts='8.31', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', energy_flux_error2='1.12e-05', EG='1.22', time_epoch_completed='1630785080.04', return_code='0', job_id='99342', GAL2='0.70', EG2='1.16', return_code2='0', energy_flux_error='1.55e-05', photon_flux_error2='5.59e-08', ts2='10.22', photon_index='2.23' WHERE bin_id='69' AND source_name='4FGL J1150.4+2418' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:51:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 99342: <4FGL_J1150.4+2418_daily_bin69> in cluster <slac> Done

Job <4FGL_J1150.4+2418_daily_bin69> 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) <bullet0103>, 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:51:20 2021
Results reported at Sat Sep  4 12:51:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.4+2418_daily_bin69 177.603 24.3016 257212801 257472001 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 :                                   695.25 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             293.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            870 sec.

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

