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


Performing analysis on: 4FGL_J1150.4+2418_daily_bin42
RA = 177.603, Dec = 24.3016
tmin = 250214401, tmax = 250473601
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='99300', job_status='RUN', time_executed='2021-09-04 12:37:05.832245', time_epoch_executed='1630784225.83' WHERE source_name='4FGL J1150.4+2418' and cadence='daily' and bin_id='42'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/99300

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/99300/ft1_4FGL_J1150.4+2418_daily_bin42.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/99300/ft2_4FGL_J1150.4+2418_daily_bin42.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/99300/ft1_4FGL_J1150.4+2418_daily_bin42.fits outfile=/scratch/kocevski/99300/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin42.fits ra=177.603 dec=24.3016 rad=12.0 tmin=250214401.0 tmax=250473601.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.47
user 1.25
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/99300/ft1_filtered_4FGL_J1150.4+2418_daily_bin42.fits evtable="EVENTS" scfile=/scratch/kocevski/99300/ft2_4FGL_J1150.4+2418_daily_bin42.fits sctable="SC_DATA" expcube=/scratch/kocevski/99300/ltcube_250214401_250473601_4FGL_J1150.4+2418_daily_bin42.fits outfile=/scratch/kocevski/99300/expmap_250214401_250473601_4FGL_J1150.4+2418_daily_bin42.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/99300/ltcube_250214401_250473601_4FGL_J1150.4+2418_daily_bin42.fits
.....................!
real 191.40
user 185.25
sys 4.71

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/99300/ft1_filtered_4FGL_J1150.4+2418_daily_bin42.fits scfile=/scratch/kocevski/99300/ft2_4FGL_J1150.4+2418_daily_bin42.fits outfile=/scratch/kocevski/99300/cmap_HighResolution_250214401_250473601_4FGL_J1150.4+2418_daily_bin42.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12163E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.6526       1.0000         .10000E-03   10000.    
     3 'norm      '    5.0371       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.8459       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.5539       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.6786       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.2352       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.212       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.5391       1.0000         .10000E-03   10000.    
    12 'Prefactor '    33.345       1.0000         .10000E-03   10000.    
    13 'norm      '    3.1330       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .85613       1.0000         .10000E-03   10000.    
    15 'Prefactor '    37.561       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .31827       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11272E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.5973       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.6662       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.6832       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .34277       1.0000         .10000E-03   10000.    
    23 'norm      '    3.9033       1.0000         .10000E-03   10000.    
    24 'Prefactor '    18.626       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .56390       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2685       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=   6132.919     FROM MIGRAD    STATUS=CONVERGED    641 CALLS     4044 TOTAL
                     EDM=   .40E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.4829       -.81832E-07** at limit **
   2  Prefactor     2.6530        1.1698        .69030E-07   -.94487E-03
   3  norm          5.0353        9.1991       -.36898E-06   -.19468E-05
   4  Prefactor     3.8465        7.9683       -.19111E-05   -.20881E-04
   5  Prefactor     5.5008        37.602       -.15374E-05   -.33884E-04
   6  Prefactor     .10000E-03    42.208        .54946E-07** at limit **
   7  Prefactor     3.7092        24.522        .43296E-05    .20977E-04
   8  Prefactor     5.2360        4.1763       -.27031E-06   -.10412E-04
   9  Prefactor     14.213        18.786       -.25350E-05   -.54538E-05
  10  Prefactor     .10000E-03    3.5139       -.18605E-07** at limit **
  11  Prefactor     4.5393        2.2947        .14349E-06    .32895E-04
  12  Prefactor     33.347        25.499       -.27897E-05   -.69345E-05
  13  norm          3.1331        1.2720        .66636E-07    .22460E-04
  14  Prefactor     .85688        2.8349       -.12177E-06   -.91426E-04
  15  Prefactor     37.564        27.551       -.17251E-05   -.19479E-05
  16  Prefactor     .31907        2.0424       -.14539E-06   -.14875E-03
  17  Prefactor     .10000E-03    1.3120       -.48424E-07** at limit **
  18  norm          1.5975        1.8045       -.15587E-09   -.10739E-04
  19  Prefactor     2.6662        1.7749       -.11404E-07    .56619E-05
  20  Prefactor     4.6835        2.5381       -.12528E-06   -.22811E-04
  21  Prefactor     .10000E-03    2.6926        .27861E-07** at limit **
  22  norm          .34290        .25948       -.41203E-07   -.20206E-03
  23  norm          3.9039        3.6682        .40522E-06   -.29704E-05
  24  Prefactor     18.627        10.287        .87814E-06    .23444E-05
  25  Normalizat    .56374        .17777        .15233E-05    .95197E-05
  26  Prefactor     1.2686        .18063       -.34519E-06    .80082E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.65296
  norm       = 5.03528
  Prefactor  = 3.84652
  Prefactor  = 5.50075
  Prefactor  = 0.0001
  Prefactor  = 3.70923
  Prefactor  = 5.23598
  Prefactor  = 14.2131
  Prefactor  = 0.0001
  Prefactor  = 4.53929
  Prefactor  = 33.3474
  norm       = 3.13306
  Prefactor  = 0.856881
  Prefactor  = 37.5641
  Prefactor  = 0.319073
  Prefactor  = 0.0001
  norm       = 1.59755
  Prefactor  = 2.66625
  Prefactor  = 4.68351
  Prefactor  = 0.0001
  norm       = 0.342901
  norm       = 3.90387
  Prefactor  = 18.627
  Normalizat = 0.563744
  Prefactor  = 1.26858
 **********
 **   18 **HESSE 
 **********

 FCN=   6132.919     FROM HESSE     STATUS=OK           474 CALLS     4518 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.3662        .18204E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.6530        5.7617        .12515E-02   -1.5382    
   3  norm          5.0353        9.1914        .17917E-03   -1.5259    
   4  Prefactor     3.8465        8.0106        .20579E-03   -1.5316    
   5  Prefactor     5.5008        32.807        .17048E-03   -1.5239    
   6  Prefactor     .10000E-03    42.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.7092        21.743        .21059E-03   -1.5323    
   8  Prefactor     5.2360        4.1673        .13677E-03   -1.5250    
   9  Prefactor     14.213        18.793        .10624E-03   -1.4954    
  10  Prefactor     .10000E-03    3.5254        .14334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.5393        2.2883        .76464E-04   -1.5282    
  12  Prefactor     33.347        25.482        .69393E-04   -1.4552    
  13  norm          3.1331        1.2693        .53393E-04   -1.5354    
  14  Prefactor     .85688        2.7825        .22405E-03   -1.5523    
  15  Prefactor     37.564        27.530        .65395E-04   -1.4481    
  16  Prefactor     .31907        2.0333        .20899E-03   -1.5595    
  17  Prefactor     .10000E-03    2.5988        .17126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.5975        1.7931        .10539E-03   -1.5455    
  19  Prefactor     2.6662        1.7841        .80450E-04   -1.5381    
  20  Prefactor     4.6835        2.5283        .85293E-04   -1.5275    
  21  Prefactor     .10000E-03    2.7071        .12540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .34290        .25149        .31424E-04   -1.5591    
  23  norm          3.9039        3.6597        .13913E-03   -1.5313    
  24  Prefactor     18.627        10.270        .92803E-04   -1.4845    
  25  Normalizat    .56374        .20099        .29752E-03   -1.0955    
  26  Prefactor     1.2686        .20876        .23185E-03   -.84246    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1703e-09
Minuit parameter uncertainties:
  1  2.47135e-05
  2  5.76288
  3  9.19394
  4  8.01284
  5  26.8891
  6  1.9419e-05
  7  17.9706
  8  4.16757
  9  18.8005
  10  1.20046e-06
  11  2.28831
  12  25.4908
  13  1.26929
  14  2.78287
  15  27.5395
  16  1.61077
  17  1.25204e-06
  18  1.79313
  19  1.78416
  20  2.52833
  21  4.74792e-06
  22  0.251488
  23  3.65996
  24  10.2708
  25  0.201253
  26  0.2089
Done.

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

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  4.539e+00  2.288e+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.269e+00  2.089e-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:  5.637e-01  2.013e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.24
Ra Dec: 177.603 24.302
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 7.85e-08 +/- 3.96e-08
Energy Flux (Fixed Index): 3.35e-05 +/- 1.69e-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) = 6132.88520781
delta logL = 0.0339821666912

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6132.88397575
delta logL = 0.0352142233633

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1662       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3383       1.0000          .0000       10.000    
     3 'Normalizat'    .55432       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2750       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=   6132.884     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      264 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1677        32.778        .49365E-02    .18863E-03
   2  Index         2.3386        2.9859        .12836        .10834E-03
   3  Normalizat    .55448        .91446E-01    .67740E-01    .34370E-04
   4  Prefactor     1.2747        .75532E-01    .52332E-01    .63094E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.1677
  Index      = 2.33863
  Normalizat = 0.554479
  Prefactor  = 1.27472
 **********
 **   18 **HESSE 
 **********

 FCN=   6132.884     FROM HESSE     STATUS=OK            33 CALLS      297 TOTAL
                     EDM=   .34E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1677        2.5917        .71392E-04   -1.5300    
   2  Index         2.3386        .43729        .48397E-02   -.56128    
   3  Normalizat    .55448        .18518        .29981E-03   -1.0995    
   4  Prefactor     1.2747        .20655        .23136E-03   -.84062    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.38757e-12
Minuit parameter uncertainties:
  1  2.59177
  2  0.438076
  3  0.185391
  4  0.206685
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/99300': 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) = 6132.88397317
delta logL = 0.0352168017689

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  4.168e+00  2.592e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  2.339e+00  4.381e-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.275e+00  2.067e-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:  5.545e-01  1.854e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.28
Ra Dec: 177.603 24.302
Photon Index (Free Index): 2.34 +/- 0.44
Photon Flux (Free Index): 8.63e-08 +/- 4.90e-08
Energy Flux (Free Index): 3.08e-05 +/- 1.76e-05

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/99300/cmap_HighResolution_250214401_250473601_4FGL_J1150.4+2418_daily_bin42.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.85e-08', energy_flux2='3.08e-05', photon_flux_error='3.96e-08', dlogl='3.52e-02', energy_flux='3.35e-05', photon_flux2='8.63e-08', job_status='DONE', time_completed='2021-09-04 12:49:39.263039', photon_index_error2='0.44', photon_index2='2.34', ts='10.24', fit_tolerance='1e-08', GAL='1.27', photon_index_error='0.00', energy_flux_error2='1.76e-05', EG='0.56', time_epoch_completed='1630784979.26', return_code='0', job_id='99300', GAL2='1.27', EG2='0.55', return_code2='0', energy_flux_error='1.69e-05', photon_flux_error2='4.90e-08', ts2='10.28', photon_index='2.23' WHERE bin_id='42' AND source_name='4FGL J1150.4+2418' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:49:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 99300: <4FGL_J1150.4+2418_daily_bin42> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.4+2418_daily_bin42 177.603 24.3016 250214401 250473601 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 :                                   750.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             331.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   770 sec.
    Turnaround time :                            775 sec.

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

