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


Performing analysis on: 4FGL_J1150.4+2418_daily_bin1044
RA = 177.603, Dec = 24.3016
tmin = 509932801, tmax = 510192001
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='105445', job_status='RUN', time_executed='2021-09-04 12:59:01.210451', time_epoch_executed='1630785541.21' WHERE source_name='4FGL J1150.4+2418' and cadence='daily' and bin_id='1044'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/105445

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/105445/ft1_4FGL_J1150.4+2418_daily_bin1044.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/105445/ft2_4FGL_J1150.4+2418_daily_bin1044.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/105445/ft1_4FGL_J1150.4+2418_daily_bin1044.fits outfile=/scratch/kocevski/105445/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin1044.fits ra=177.603 dec=24.3016 rad=12.0 tmin=509932801.0 tmax=510192001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.50
user 3.28
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/105445/ft1_filtered_4FGL_J1150.4+2418_daily_bin1044.fits evtable="EVENTS" scfile=/scratch/kocevski/105445/ft2_4FGL_J1150.4+2418_daily_bin1044.fits sctable="SC_DATA" expcube=/scratch/kocevski/105445/ltcube_509932801_510192001_4FGL_J1150.4+2418_daily_bin1044.fits outfile=/scratch/kocevski/105445/expmap_509932801_510192001_4FGL_J1150.4+2418_daily_bin1044.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/105445/ltcube_509932801_510192001_4FGL_J1150.4+2418_daily_bin1044.fits
.....................!
real 189.31
user 184.70
sys 4.21

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/105445/ft1_filtered_4FGL_J1150.4+2418_daily_bin1044.fits scfile=/scratch/kocevski/105445/ft2_4FGL_J1150.4+2418_daily_bin1044.fits outfile=/scratch/kocevski/105445/cmap_509932801_510192001_4FGL_J1150.4+2418_daily_bin1044.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/105445/ft1_filtered_4FGL_J1150.4+2418_daily_bin1044.fits scfile=/scratch/kocevski/105445/ft2_4FGL_J1150.4+2418_daily_bin1044.fits outfile=/scratch/kocevski/105445/cmap_HighResolution_509932801_510192001_4FGL_J1150.4+2418_daily_bin1044.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.1763       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.0598       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.3306       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.6607       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.3900       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.0597       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.4472       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.8318       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14827E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .80552       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.8642       1.0000         .10000E-03   10000.    
    18 'norm      '    11.424       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .99372       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .56294       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10719E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    10.629       1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.6318       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0496       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0595       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=   6052.437     FROM MIGRAD    STATUS=CONVERGED    638 CALLS     3142 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .73577        .12364E-07** at limit **
   2  Prefactor     2.1764        6.1021        .45992E-06   -.19901E-03
   3  norm          .10000E-03    5.5654        .13542E-07** at limit **
   4  Prefactor     4.0596        10.586        .23329E-06   -.34338E-04
   5  Prefactor     .10000E-03    6.9923        .27800E-06** at limit **
   6  Prefactor     6.3297        26.471       -.45896E-06   -.47710E-04
   7  Prefactor     9.6613        9.5637        .72593E-07    .13664E-04
   8  Prefactor     3.3904        4.9839        .64640E-06    .17796E-03
   9  Prefactor     .10001E-03    8.9245        .29740E-05** at limit **
  10  Prefactor     6.0539        11.531        .57245E-06    .25544E-03
  11  Prefactor     4.4465        2.6443        .89809E-07    .35403E-03
  12  Prefactor     .10001E-03    19.514        .23903E-05** at limit **
  13  norm          2.8317        1.2830        .21739E-08   -.73564E-04
  14  Prefactor     .10001E-03    3.6763       -.16193E-05** at limit **
  15  Prefactor     .10000E-03    51.611       -.56927E-06** at limit **
  16  Prefactor     .80088        2.9555        .86772E-06    .18321E-03
  17  Prefactor     5.8662        3.4390        .15748E-06   -.49518E-03
  18  norm          11.424        4.0491       -.30132E-07    .38407E-03
  19  Prefactor     .99423        2.1803        .26932E-06   -.10267E-03
  20  Prefactor     .56295        2.0481        .68107E-06   -.34344E-03
  21  Prefactor     .10001E-03    6.6367       -.17308E-05** at limit **
  22  norm          .10000E-03    .14406        .37299E-07** at limit **
  23  norm          10.633        5.7623        .59488E-07    .92199E-03
  24  Prefactor     9.6318        10.929       -.12708E-06    .18334E-04
  25  Normalizat    1.0495        .18557       -.61812E-06    .37313E-03
  26  Prefactor     1.0596        .19376       -.31641E-06    .29611E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.17639
  norm       = 0.0001
  Prefactor  = 4.05958
  Prefactor  = 0.0001
  Prefactor  = 6.32972
  Prefactor  = 9.66133
  Prefactor  = 3.39042
  Prefactor  = 0.000100009
  Prefactor  = 6.05387
  Prefactor  = 4.44653
  Prefactor  = 0.000100005
  norm       = 2.83173
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 0.800882
  Prefactor  = 5.86621
  norm       = 11.4238
  Prefactor  = 0.994233
  Prefactor  = 0.562949
  Prefactor  = 0.000100013
  norm       = 0.0001
  norm       = 10.6335
  Prefactor  = 9.63179
  Normalizat = 1.04949
  Prefactor  = 1.05963
 **********
 **   18 **HESSE 
 **********

 FCN=   6052.437     FROM HESSE     STATUS=OK           466 CALLS     3608 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .73833        .65166E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.1764        6.1877        .27909E-03   -1.5413    
   3  norm          .10000E-03    5.5808        .17922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.0596        10.556        .20011E-03   -1.5305    
   5  Prefactor     .10000E-03    7.0196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.3297        26.701        .15953E-03   -1.5205    
   7  Prefactor     9.6613        9.5690        .12893E-03   -1.5086    
   8  Prefactor     3.3904        4.9787        .20117E-03   -1.5340    
   9  Prefactor     .10001E-03    10.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.0539        11.479        .16310E-03   -1.5216    
  11  Prefactor     4.4465        2.6425        .91687E-04   -1.5286    
  12  Prefactor     .10001E-03    20.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.8317        1.2837        .56825E-04   -1.5371    
  14  Prefactor     .10001E-03    9.3700        .23642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    52.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .80088        2.9131        .23143E-03   -1.5529    
  17  Prefactor     5.8662        3.4208        .51271E-03   -1.5224    
  18  norm          11.424        4.0086        .82802E-04   -1.5032    
  19  Prefactor     .99423        1.8738        .15316E-02   -1.5509    
  20  Prefactor     .56295        2.1507        .20568E-03   -1.5558    
  21  Prefactor     .10001E-03    16.194        .33226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .26587        .56705E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          10.633        5.5064        .12289E-03   -1.5056    
  24  Prefactor     9.6318        10.875        .12912E-03   -1.5087    
  25  Normalizat    1.0495        .21738        .25640E-03   -.91390    
  26  Prefactor     1.0596        .22871        .27701E-03   -.90767    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.2581e-09
Minuit parameter uncertainties:
  1  5.10964e-07
  2  6.18952
  3  7.64901e-07
  4  10.5609
  5  4.33968e-05
  6  26.0203
  7  9.57049
  8  4.97928
  9  0.00060183
  10  11.4836
  11  2.64252
  12  0.000663543
  13  1.28372
  14  0.000671231
  15  0.000284282
  16  2.91359
  17  3.42092
  18  4.00866
  19  1.87396
  20  2.15102
  21  0.000933639
  22  2.82891e-06
  23  5.50661
  24  10.8769
  25  0.217566
  26  0.228925
Done.

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

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  4.447e+00  2.643e+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.060e+00  2.289e-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.049e+00  2.176e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.69
Ra Dec: 177.603 24.302
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 7.69e-08 +/- 4.57e-08
Energy Flux (Fixed Index): 3.28e-05 +/- 1.95e-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) = 6052.42905383
delta logL = 0.00754582085392

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6052.42560381
delta logL = 0.0109958444073

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2065       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3072       1.0000          .0000       10.000    
     3 'Normalizat'    1.0417       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0650       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=   6052.426     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      213 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2049        48.759        .49122E-02    .62507E-03
   2  Index         2.3078        3.5442        .12399        .17914E-03
   3  Normalizat    1.0415        .11035        .41147E-01   -.32898E-04
   4  Prefactor     1.0653        .84660E-01    .62489E-01   -.10469E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.20492
  Index      = 2.30776
  Normalizat = 1.04151
  Prefactor  = 1.0653
 **********
 **   18 **HESSE 
 **********

 FCN=   6052.426     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2049        3.2092        .87525E-04   -1.5298    
   2  Index         2.3078        .57307        .62048E-02   -.56859    
   3  Normalizat    1.0415        .21638        .25709E-03   -.91652    
   4  Prefactor     1.0653        .22984        .27638E-03   -.90584    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20298e-10
Minuit parameter uncertainties:
  1  3.20932
  2  0.574849
  3  0.216567
  4  0.230058
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/105445': 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) = 6052.42560218
delta logL = 0.0109974726574

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  4.205e+00  3.209e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  2.308e+00  5.748e-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.065e+00  2.301e-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.042e+00  2.166e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.66
Ra Dec: 177.603 24.302
Photon Index (Free Index): 2.31 +/- 0.57
Photon Flux (Free Index): 8.27e-08 +/- 6.09e-08
Energy Flux (Free Index): 3.09e-05 +/- 2.26e-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/105445/cmap_HighResolution_509932801_510192001_4FGL_J1150.4+2418_daily_bin1044.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.69e-08', energy_flux2='3.09e-05', photon_flux_error='4.57e-08', dlogl='1.10e-02', energy_flux='3.28e-05', photon_flux2='8.27e-08', job_status='DONE', time_completed='2021-09-04 13:10:10.105060', photon_index_error2='0.57', photon_index2='2.31', ts='4.69', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='2.26e-05', EG='1.05', time_epoch_completed='1630786210.11', return_code='0', job_id='105445', GAL2='1.07', EG2='1.04', return_code2='0', energy_flux_error='1.95e-05', photon_flux_error2='6.09e-08', ts2='4.66', photon_index='2.23' WHERE bin_id='1044' AND source_name='4FGL J1150.4+2418' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:10:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 105445: <4FGL_J1150.4+2418_daily_bin1044> in cluster <slac> Done

Job <4FGL_J1150.4+2418_daily_bin1044> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 12:56:17 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:56:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 12:56:19 2021
Terminated at Sat Sep  4 13:10:10 2021
Results reported at Sat Sep  4 13:10:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.4+2418_daily_bin1044 177.603 24.3016 509932801 510192001 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 :                                   668.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            833 sec.

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

