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


Performing analysis on: 4FGL_J1150.4+2418_daily_bin1029
RA = 177.603, Dec = 24.3016
tmin = 506044801, tmax = 506304001
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='105424', job_status='RUN', time_executed='2021-09-04 12:58:19.730185', time_epoch_executed='1630785499.73' WHERE source_name='4FGL J1150.4+2418' and cadence='daily' and bin_id='1029'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/105424

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/105424/ft1_4FGL_J1150.4+2418_daily_bin1029.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/105424/ft2_4FGL_J1150.4+2418_daily_bin1029.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/105424/ft1_4FGL_J1150.4+2418_daily_bin1029.fits outfile=/scratch/kocevski/105424/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin1029.fits ra=177.603 dec=24.3016 rad=12.0 tmin=506044801.0 tmax=506304001.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 4.37
user 4.08
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/105424/ft1_filtered_4FGL_J1150.4+2418_daily_bin1029.fits" evtable="EVENTS" scfile=/scratch/kocevski/105424/ft2_4FGL_J1150.4+2418_daily_bin1029.fits sctable="SC_DATA" outfile=/scratch/kocevski/105424/ltcube_506044801_506304001_4FGL_J1150.4+2418_daily_bin1029.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/105424/ft2_4FGL_J1150.4+2418_daily_bin1029.fits
.....................!
real 11.90
user 11.53
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/105424/ft1_filtered_4FGL_J1150.4+2418_daily_bin1029.fits evtable="EVENTS" scfile=/scratch/kocevski/105424/ft2_4FGL_J1150.4+2418_daily_bin1029.fits sctable="SC_DATA" expcube=/scratch/kocevski/105424/ltcube_506044801_506304001_4FGL_J1150.4+2418_daily_bin1029.fits outfile=/scratch/kocevski/105424/expmap_506044801_506304001_4FGL_J1150.4+2418_daily_bin1029.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/105424/ltcube_506044801_506304001_4FGL_J1150.4+2418_daily_bin1029.fits
.....................!
real 190.21
user 184.56
sys 5.19

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/105424/ft1_filtered_4FGL_J1150.4+2418_daily_bin1029.fits scfile=/scratch/kocevski/105424/ft2_4FGL_J1150.4+2418_daily_bin1029.fits outfile=/scratch/kocevski/105424/cmap_506044801_506304001_4FGL_J1150.4+2418_daily_bin1029.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.55
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/105424/ft1_filtered_4FGL_J1150.4+2418_daily_bin1029.fits scfile=/scratch/kocevski/105424/ft2_4FGL_J1150.4+2418_daily_bin1029.fits outfile=/scratch/kocevski/105424/cmap_HighResolution_506044801_506304001_4FGL_J1150.4+2418_daily_bin1029.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10001E-03   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 '    7.9585       1.0000         .10000E-03   10000.    
     6 'Prefactor '    31.162       1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.398       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.335       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.3122       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.8338       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.4767       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.3640       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.1916       1.0000         .10000E-03   10000.    
    18 'norm      '    11.149       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .72330       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.1061       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .33887       1.0000         .10000E-03   10000.    
    23 'norm      '    5.3344       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10392E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1533       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .79312       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=   5438.338     FROM MIGRAD    STATUS=CONVERGED    609 CALLS     3098 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .73140       -.61810E-08** at limit **
   2  Prefactor     .10000E-03    4.7840        .10555E-06** at limit **
   3  norm          .10000E-03    3.1500        .36249E-08** at limit **
   4  Prefactor     .10000E-03    7.7494        .39830E-06** at limit **
   5  Prefactor     7.9585        10.795        .66403E-06   -.13767E-03
   6  Prefactor     31.144        42.974       -.47239E-05   -.31347E-03
   7  Prefactor     19.398        12.922        .10263E-06   -.84642E-04
   8  Prefactor     .10000E-03    1.7210        .48259E-07** at limit **
   9  Prefactor     11.334        16.672       -.16958E-06   -.29006E-04
  10  Prefactor     .10000E-03    5.1230       -.14085E-06** at limit **
  11  Prefactor     4.3123        2.5752        .55057E-07    .62167E-04
  12  Prefactor     .10000E-03    10.480       -.14769E-05** at limit **
  13  norm          3.8340        1.5227       -.45559E-08   -.63294E-04
  14  Prefactor     2.4766        3.6098       -.12766E-06   -.54694E-04
  15  Prefactor     .10000E-03    38.430       -.22174E-06** at limit **
  16  Prefactor     3.3640        2.9596        .14081E-05   -.12262E-02
  17  Prefactor     2.1914        3.0025       -.57684E-06   -.27384E-03
  18  norm          11.150        4.0232       -.12712E-06   -.75409E-04
  19  Prefactor     .72226        2.0714        .70573E-06    .61543E-04
  20  Prefactor     3.1063        2.0712       -.38381E-07   -.22553E-03
  21  Prefactor     .10000E-03    5.0273       -.85182E-07** at limit **
  22  norm          .33887        .20907       -.16053E-07   -.29784E-03
  23  norm          5.3346        3.6246       -.21210E-06   -.36608E-03
  24  Prefactor     .10000E-03    11.326        .14252E-05** at limit **
  25  Normalizat    1.1532        .18387       -.62560E-08   -.60791E-04
  26  Prefactor     .79322        .19567       -.18730E-06   -.33614E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.95846
  Prefactor  = 31.1443
  Prefactor  = 19.3983
  Prefactor  = 0.0001
  Prefactor  = 11.3338
  Prefactor  = 0.0001
  Prefactor  = 4.31232
  Prefactor  = 0.000100001
  norm       = 3.83404
  Prefactor  = 2.47665
  Prefactor  = 0.0001
  Prefactor  = 3.36403
  Prefactor  = 2.1914
  norm       = 11.1499
  Prefactor  = 0.722262
  Prefactor  = 3.10631
  Prefactor  = 0.0001
  norm       = 0.338866
  norm       = 5.33455
  Prefactor  = 0.0001
  Normalizat = 1.1532
  Prefactor  = 0.793223
 **********
 **   18 **HESSE 
 **********

 FCN=   5438.338     FROM HESSE     STATUS=OK           462 CALLS     3560 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .73583        .61587E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.8344        .15750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.1552        .12782E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.8010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.9585        10.811        .71064E-03   -1.5144    
   6  Prefactor     31.144        45.861        .71777E-04   -1.4591    
   7  Prefactor     19.398        12.924        .45469E-03   -1.4827    
   8  Prefactor     .10000E-03    1.7341        .94461E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.334        16.659        .11899E-03   -1.5035    
  10  Prefactor     .10000E-03    5.1386        .16301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.3123        2.5699        .83574E-04   -1.5293    
  12  Prefactor     .10000E-03    10.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.8340        1.5242        .54366E-04   -1.5316    
  14  Prefactor     2.4766        3.5869        .15996E-03   -1.5393    
  15  Prefactor     .10000E-03    38.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.3640        3.0732        .55814E-03   -1.5341    
  17  Prefactor     2.1914        2.9766        .13615E-03   -1.5412    
  18  norm          11.150        3.9554        .79403E-04   -1.5040    
  19  Prefactor     .72226        1.8745        .16251E-02   -1.5538    
  20  Prefactor     3.1063        2.0620        .82525E-04   -1.5355    
  21  Prefactor     .10000E-03    5.1780        .32271E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .33887        .20807        .25418E-04   -1.5592    
  23  norm          5.3346        3.6372        .11266E-03   -1.5246    
  24  Prefactor     .10000E-03    11.859        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1532        .21674        .23158E-03   -.88062    
  26  Prefactor     .79322        .22897        .29898E-03   -.99979    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30277e-09
Minuit parameter uncertainties:
  1  1.01972e-06
  2  5.33521e-06
  3  1.8812e-06
  4  4.6636e-05
  5  10.8136
  6  45.9127
  7  12.9256
  8  8.23522e-07
  9  16.6658
  10  1.30416e-05
  11  2.57
  12  0.000215575
  13  1.52423
  14  3.5872
  15  0.000102721
  16  3.0733
  17  2.97685
  18  3.95546
  19  1.87465
  20  2.06204
  21  4.96764e-06
  22  0.208067
  23  3.63738
  24  0.000149679
  25  0.216911
  26  0.229241
Done.

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

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  4.312e+00  2.570e+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:  7.932e-01  2.292e-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.153e+00  2.169e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.07
Ra Dec: 177.603 24.302
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 7.46e-08 +/- 4.44e-08
Energy Flux (Fixed Index): 3.18e-05 +/- 1.90e-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) = 5437.87580797
delta logL = 0.461905412625

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5437.86089778
delta logL = 0.476815602353

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6646       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6902       1.0000          .0000       10.000    
     3 'Normalizat'    1.1196       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81709       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=   5437.861     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      283 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6645        2.7048        .58460E-04    .25806E-03
   2  Index         2.6903        .57307        .40389E-02    .54353E-04
   3  Normalizat    1.1196        .21335        .23424E-03   -.76490E-04
   4  Prefactor     .81709        .23076        .29499E-03   -.59621E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.66451
  Index      = 2.69025
  Normalizat = 1.11956
  Prefactor  = 0.817089
 **********
 **   18 **HESSE 
 **********

 FCN=   5437.861     FROM HESSE     STATUS=OK            25 CALLS      308 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6645        2.4263        .23384E-05   -1.5381    
   2  Index         2.6903        .51400        .16156E-03   -.48019    
   3  Normalizat    1.1196        .21326        .93696E-05   -.89126    
   4  Prefactor     .81709        .23057        .11799E-04   -.99101    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51364e-11
Minuit parameter uncertainties:
  1  2.42642
  2  0.515158
  3  0.21342
  4  0.230845
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/105424': 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) = 5437.86089778
delta logL = 0.476815605035

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  2.665e+00  2.426e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  2.690e+00  5.152e-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:  8.171e-01  2.308e-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.120e+00  2.134e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.02
Ra Dec: 177.603 24.302
Photon Index (Free Index): 2.69 +/- 0.52
Photon Flux (Free Index): 1.02e-07 +/- 5.54e-08
Energy Flux (Free Index): 2.47e-05 +/- 1.39e-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/105424/cmap_HighResolution_506044801_506304001_4FGL_J1150.4+2418_daily_bin1029.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.46e-08', energy_flux2='2.47e-05', photon_flux_error='4.44e-08', dlogl='4.77e-01', energy_flux='3.18e-05', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-09-04 13:09:15.311474', photon_index_error2='0.52', photon_index2='2.69', ts='5.07', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', energy_flux_error2='1.39e-05', EG='1.15', time_epoch_completed='1630786155.31', return_code='0', job_id='105424', GAL2='0.82', EG2='1.12', return_code2='0', energy_flux_error='1.90e-05', photon_flux_error2='5.54e-08', ts2='6.02', photon_index='2.23' WHERE bin_id='1029' AND source_name='4FGL J1150.4+2418' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:09:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 105424: <4FGL_J1150.4+2418_daily_bin1029> in cluster <slac> Done

Job <4FGL_J1150.4+2418_daily_bin1029> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 12:56:15 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:56:16 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:16 2021
Terminated at Sat Sep  4 13:09:18 2021
Results reported at Sat Sep  4 13:09:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.4+2418_daily_bin1029 177.603 24.3016 506044801 506304001 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 :                                   654.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            783 sec.

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

