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


Performing analysis on: 4FGL_J1150.6+4154_daily_bin1521
RA = 177.656, Dec = 41.9096
tmin = 633571201, tmax = 633830401
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='115783', job_status='RUN', time_executed='2021-09-04 13:28:57.566057', time_epoch_executed='1630787337.57' WHERE source_name='4FGL J1150.6+4154' and cadence='daily' and bin_id='1521'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/115783

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/115783/ft1_4FGL_J1150.6+4154_daily_bin1521.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/115783/ft2_4FGL_J1150.6+4154_daily_bin1521.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/115783/ft1_4FGL_J1150.6+4154_daily_bin1521.fits outfile=/scratch/kocevski/115783/ft1_filteredMKT_4FGL_J1150.6+4154_daily_bin1521.fits ra=177.656 dec=41.9096 rad=12.0 tmin=633571201.0 tmax=633830401.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.55
user 3.31
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/115783/ft2_4FGL_J1150.6+4154_daily_bin1521.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/115783/ft2_4FGL_J1150.6+4154_daily_bin1521.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/115783/ft1_filteredMKT_4FGL_J1150.6+4154_daily_bin1521.fits evtable="EVENTS" outfile="/scratch/kocevski/115783/ft1_filtered_4FGL_J1150.6+4154_daily_bin1521.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/115783/ft1_filtered_4FGL_J1150.6+4154_daily_bin1521.fits" evtable="EVENTS" scfile=/scratch/kocevski/115783/ft2_4FGL_J1150.6+4154_daily_bin1521.fits sctable="SC_DATA" outfile=/scratch/kocevski/115783/ltcube_633571201_633830401_4FGL_J1150.6+4154_daily_bin1521.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/115783/ft2_4FGL_J1150.6+4154_daily_bin1521.fits
.....................!
real 11.96
user 11.59
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/115783/ft1_filtered_4FGL_J1150.6+4154_daily_bin1521.fits evtable="EVENTS" scfile=/scratch/kocevski/115783/ft2_4FGL_J1150.6+4154_daily_bin1521.fits sctable="SC_DATA" expcube=/scratch/kocevski/115783/ltcube_633571201_633830401_4FGL_J1150.6+4154_daily_bin1521.fits outfile=/scratch/kocevski/115783/expmap_633571201_633830401_4FGL_J1150.6+4154_daily_bin1521.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/115783/ltcube_633571201_633830401_4FGL_J1150.6+4154_daily_bin1521.fits
.....................!
real 190.48
user 185.43
sys 4.74

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 212 point sources and 0 extended sources

Setting source of interest to:
4FGL J1150.6+4154 @ 177.656 41.9096

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/115783/ft1_filtered_4FGL_J1150.6+4154_daily_bin1521.fits scfile=/scratch/kocevski/115783/ft2_4FGL_J1150.6+4154_daily_bin1521.fits outfile=/scratch/kocevski/115783/cmap_633571201_633830401_4FGL_J1150.6+4154_daily_bin1521.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.656 yref=41.9096 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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/115783/ft1_filtered_4FGL_J1150.6+4154_daily_bin1521.fits scfile=/scratch/kocevski/115783/ft2_4FGL_J1150.6+4154_daily_bin1521.fits outfile=/scratch/kocevski/115783/cmap_HighResolution_633571201_633830401_4FGL_J1150.6+4154_daily_bin1521.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.656 yref=41.9096 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/115783/ft1_filtered_4FGL_J1150.6+4154_daily_bin1521.fits evtable="EVENTS" scfile=/scratch/kocevski/115783/ft2_4FGL_J1150.6+4154_daily_bin1521.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/115783/Model_4FGL_J1150.6+4154_daily_bin1521.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/115783/ft1_filtered_4FGL_J1150.6+4154_daily_bin1521.fits.....................!
real 53.95
user 51.19
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/115783/ft1_filtered_4FGL_J1150.6+4154_daily_bin1521.fits', '/scratch/kocevski/115783/ft2_4FGL_J1150.6+4154_daily_bin1521.fits', expMap='/scratch/kocevski/115783/expmap_633571201_633830401_4FGL_J1150.6+4154_daily_bin1521.fits', expCube='/scratch/kocevski/115783/ltcube_633571201_633830401_4FGL_J1150.6+4154_daily_bin1521.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/115783/Model_4FGL_J1150.6+4154_daily_bin1521.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1150.6+4154'

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  5.203e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
330        alpha:  1.619e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
331         beta:  1.025e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
332           Eb:  1.870e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/115783/ft1_filtered_4FGL_J1150.6+4154_daily_bin1521.fits
Spacecraft file(s): /scratch/kocevski/115783/ft2_4FGL_J1150.6+4154_daily_bin1521.fits
Exposure map: /scratch/kocevski/115783/expmap_633571201_633830401_4FGL_J1150.6+4154_daily_bin1521.fits
Exposure cube: /scratch/kocevski/115783/ltcube_633571201_633830401_4FGL_J1150.6+4154_daily_bin1521.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/115783/Model_4FGL_J1150.6+4154_daily_bin1521.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) = 6094.15568505

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .54323       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.410       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.9916       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.4754       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.135       1.0000         .10000E-03   10000.    
    10 'norm      '    2.7706       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.6148       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.537       1.0000         .10000E-03   10000.    
    13 'norm      '    4.8853       1.0000         .10000E-03   10000.    
    14 'norm      '    32.653       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10562E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.8807       1.0000         .10000E-03   10000.    
    22 'Prefactor '    59.846       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .95496       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .81673       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6094.107     FROM MIGRAD    STATUS=CONVERGED    557 CALLS     2344 TOTAL
                     EDM=   .46E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.208        .22221E-06** at limit **
   2  norm          .54323        .25525        .14681E-08   -.20900E-04
   3  Prefactor     18.412        12.926       -.46729E-07   -.78573E-06
   4  Prefactor     3.9917        8.4528        .20555E-06   -.61791E-05
   5  Prefactor     .10000E-03    43.791        .36201E-06** at limit **
   6  norm          .10000E-03    5.1111       -.59044E-08** at limit **
   7  norm          6.4689        27.671        .31128E-06   -.48628E-05
   8  Prefactor     .10000E-03    1.2347       -.81439E-07** at limit **
   9  Prefactor     14.132        25.549       -.18141E-06    .49840E-05
  10  norm          2.7705        2.2170        .18245E-07   -.20981E-04
  11  Prefactor     5.6154        4.2925        .12280E-05   -.18676E-03
  12  Prefactor     13.544        35.356        .11294E-06    .62703E-05
  13  norm          4.8857        1.4250       -.88941E-08   -.31103E-04
  14  norm          32.653        13.978        .36220E-07   -.44215E-05
  15  Prefactor     .10000E-03    14.367       -.31705E-06** at limit **
  16  Prefactor     .10000E-03    1.1490        .37962E-07** at limit **
  17  Prefactor     .10000E-03    17.633        .20168E-06** at limit **
  18  Prefactor     .10000E-03    12.337        .75874E-07** at limit **
  19  Prefactor     .10000E-03    34.285       -.55692E-06** at limit **
  20  Prefactor     .10000E-03    2.0384        .70339E-09** at limit **
  21  norm          2.8961        7.7562        .18288E-06    .46512E-04
  22  Prefactor     59.785        30.087        .16115E-06   -.12366E-03
  23  Normalizat    .95439        .15836        .31940E-06   -.46762E-04
  24  Prefactor     .81742        .18760       -.91674E-06    .17340E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.543235
  Prefactor  = 18.412
  Prefactor  = 3.99167
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.46893
  Prefactor  = 0.0001
  Prefactor  = 14.1317
  norm       = 2.77048
  Prefactor  = 5.61545
  Prefactor  = 13.5436
  norm       = 4.8857
  norm       = 32.6528
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.89612
  Prefactor  = 59.7846
  Normalizat = 0.95439
  Prefactor  = 0.817419
 **********
 **   18 **HESSE 
 **********

 FCN=   6094.107     FROM HESSE     STATUS=OK           401 CALLS     2745 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .54323        .25617        .25406E-04   -1.5561    
   3  Prefactor     18.412        12.916        .93347E-04   -1.4850    
   4  Prefactor     3.9917        8.4557        .20187E-03   -1.5308    
   5  Prefactor     .10000E-03    43.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.1217        .17233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.4689        27.709        .15772E-03   -1.5199    
   8  Prefactor     .10000E-03    1.2533        .16722E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.132        25.221        .10654E-03   -1.4956    
  10  norm          2.7705        2.2053        .96253E-04   -1.5375    
  11  Prefactor     5.6154        4.3076        .68406E-03   -1.5234    
  12  Prefactor     13.544        35.402        .10887E-03   -1.4972    
  13  norm          4.8857        1.4299        .45042E-04   -1.5266    
  14  norm          32.653        13.983        .70123E-04   -1.4564    
  15  Prefactor     .10000E-03    14.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.3709        .16163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    34.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.0437        .10884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.8961        7.6020        .23946E-03   -1.5368    
  22  Prefactor     59.785        29.680        .51863E-04   -1.4160    
  23  Normalizat    .95439        .18709        .22457E-03   -.94574    
  24  Prefactor     .81742        .22052        .28972E-03   -.99089    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02805e-10
Minuit parameter uncertainties:
  1  0.000112953
  2  0.256171
  3  12.9175
  4  8.4582
  5  0.000219794
  6  1.38989e-06
  7  26.7975
  8  3.19531e-06
  9  25.2404
  10  2.20538
  11  4.30787
  12  35.4573
  13  1.42988
  14  13.984
  15  9.00271e-05
  16  2.43337e-05
  17  8.28174e-05
  18  2.89262e-05
  19  0.0002459
  20  1.72003e-07
  21  7.60455
  22  29.6876
  23  0.18722
  24  0.220762
Done.

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

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  3.265e+01  1.398e+01  1.000e-04  1.000e+04 ( 1.000e-13)
330        alpha:  1.619e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
331         beta:  1.025e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
332           Eb:  1.870e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
672    Prefactor:  8.174e-01  2.208e-01  0.000e+00  1.000e+01 ( 1.000e+00)
673        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
674        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
671   Normalization:  9.544e-01  1.872e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 39.15
Ra Dec: 177.656 41.910
Photon Index (Fixed Index): 1.62 +/- 0.00
Photon Flux (Fixed Index): 4.15e-08 +/- 1.78e-08
Energy Flux (Fixed Index): 7.36e-05 +/- 3.15e-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) = 6094.10513895
delta logL = 0.00174322141811

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6094.10508244
delta logL = 0.00179972743354

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    32.653       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6452       1.0000          .0000       5.0000    
     3 'Normalizat'    .95319       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81783       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6094.105     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      198 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          32.732        22.611        .17531E-02   -.10831E-03
   2  alpha         1.6461        .64370        .25074        .12079E-05
   3  Normalizat    .95316        .15939        .45578E-01    .10693E-04
   4  Prefactor     .81777        .18587        .65474E-01    .17701E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 32.7324
  alpha      = 1.64608
  Normalizat = 0.953165
  Prefactor  = 0.817766
 **********
 **   18 **HESSE 
 **********

 FCN=   6094.105     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .81E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          32.732        13.815        .35062E-03   -1.4563    
   2  alpha         1.6461        .45175        .12375E-01   -.34859    
   3  Normalizat    .95316        .18206        .22468E-03   -.94616    
   4  Prefactor     .81777        .21843        .28963E-03   -.99077    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.09937e-14
Minuit parameter uncertainties:
  1  13.816
  2  0.454578
  3  0.182178
  4  0.218661
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/115783': 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) = 6094.10506477
delta logL = 0.00181739508935

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  3.273e+01  1.382e+01  1.000e-04  1.000e+04 ( 1.000e-13)
330        alpha:  1.646e+00  4.546e-01  0.000e+00  5.000e+00 ( 1.000e+00)
331         beta:  1.025e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
332           Eb:  1.870e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
672    Prefactor:  8.178e-01  2.187e-01  0.000e+00  1.000e+01 ( 1.000e+00)
673        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
674        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
671   Normalization:  9.532e-01  1.822e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 39.18
Ra Dec: 177.656 41.910
Photon Index (Free Index): 1.65 +/- 0.45
Photon Flux (Free Index): 4.31e-08 +/- 3.11e-08
Energy Flux (Free Index): 7.13e-05 +/- 4.84e-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/115783/cmap_HighResolution_633571201_633830401_4FGL_J1150.6+4154_daily_bin1521.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.15e-08', energy_flux2='7.13e-05', photon_flux_error='1.78e-08', dlogl='1.82e-03', energy_flux='7.36e-05', photon_flux2='4.31e-08', job_status='DONE', time_completed='2021-09-04 13:39:34.523839', photon_index_error2='0.45', photon_index2='1.65', ts='39.15', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='4.84e-05', EG='0.95', time_epoch_completed='1630787974.52', return_code='0', job_id='115783', GAL2='0.82', EG2='0.95', return_code2='0', energy_flux_error='3.15e-05', photon_flux_error2='3.11e-08', ts2='39.18', photon_index='1.62' WHERE bin_id='1521' AND source_name='4FGL J1150.6+4154' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:39:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 115783: <4FGL_J1150.6+4154_daily_bin1521> in cluster <slac> Done

Job <4FGL_J1150.6+4154_daily_bin1521> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sat Sep  4 13:26:25 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 13:26:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 13:26:26 2021
Terminated at Sat Sep  4 13:39:35 2021
Results reported at Sat Sep  4 13:39:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.6+4154_daily_bin1521 177.656 41.9096 633571201 633830401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1150.6+4154 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   633.44 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             253.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            790 sec.

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

