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


Performing analysis on: 4FGL_J1150.6+4154_daily_bin95
RA = 177.656, Dec = 41.9096
tmin = 263952001, tmax = 264211201
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='108540', job_status='RUN', time_executed='2021-09-04 13:08:18.668041', time_epoch_executed='1630786098.67' WHERE source_name='4FGL J1150.6+4154' and cadence='daily' and bin_id='95'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/108540

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/108540/ft1_4FGL_J1150.6+4154_daily_bin95.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/108540/ft2_4FGL_J1150.6+4154_daily_bin95.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/108540/ft1_4FGL_J1150.6+4154_daily_bin95.fits outfile=/scratch/kocevski/108540/ft1_filteredMKT_4FGL_J1150.6+4154_daily_bin95.fits ra=177.656 dec=41.9096 rad=12.0 tmin=263952001.0 tmax=264211201.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.78
user 1.52
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/108540/ft2_4FGL_J1150.6+4154_daily_bin95.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/108540/ft1_filteredMKT_4FGL_J1150.6+4154_daily_bin95.fits evtable="EVENTS" outfile="/scratch/kocevski/108540/ft1_filtered_4FGL_J1150.6+4154_daily_bin95.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.51
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/108540/ft1_filtered_4FGL_J1150.6+4154_daily_bin95.fits" evtable="EVENTS" scfile=/scratch/kocevski/108540/ft2_4FGL_J1150.6+4154_daily_bin95.fits sctable="SC_DATA" outfile=/scratch/kocevski/108540/ltcube_263952001_264211201_4FGL_J1150.6+4154_daily_bin95.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/108540/ft2_4FGL_J1150.6+4154_daily_bin95.fits
.....................!
real 12.61
user 12.25
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/108540/ft1_filtered_4FGL_J1150.6+4154_daily_bin95.fits evtable="EVENTS" scfile=/scratch/kocevski/108540/ft2_4FGL_J1150.6+4154_daily_bin95.fits sctable="SC_DATA" expcube=/scratch/kocevski/108540/ltcube_263952001_264211201_4FGL_J1150.6+4154_daily_bin95.fits outfile=/scratch/kocevski/108540/expmap_263952001_264211201_4FGL_J1150.6+4154_daily_bin95.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/108540/ltcube_263952001_264211201_4FGL_J1150.6+4154_daily_bin95.fits
.....................!
real 190.66
user 185.34
sys 4.96

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/108540/ft1_filtered_4FGL_J1150.6+4154_daily_bin95.fits scfile=/scratch/kocevski/108540/ft2_4FGL_J1150.6+4154_daily_bin95.fits outfile=/scratch/kocevski/108540/cmap_263952001_264211201_4FGL_J1150.6+4154_daily_bin95.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 7.41
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/108540/ft1_filtered_4FGL_J1150.6+4154_daily_bin95.fits scfile=/scratch/kocevski/108540/ft2_4FGL_J1150.6+4154_daily_bin95.fits outfile=/scratch/kocevski/108540/cmap_HighResolution_263952001_264211201_4FGL_J1150.6+4154_daily_bin95.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.55
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/108540/ft1_filtered_4FGL_J1150.6+4154_daily_bin95.fits', '/scratch/kocevski/108540/ft2_4FGL_J1150.6+4154_daily_bin95.fits', expMap='/scratch/kocevski/108540/expmap_263952001_264211201_4FGL_J1150.6+4154_daily_bin95.fits', expCube='/scratch/kocevski/108540/ltcube_263952001_264211201_4FGL_J1150.6+4154_daily_bin95.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/108540/Model_4FGL_J1150.6+4154_daily_bin95.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/108540/ft1_filtered_4FGL_J1150.6+4154_daily_bin95.fits
Spacecraft file(s): /scratch/kocevski/108540/ft2_4FGL_J1150.6+4154_daily_bin95.fits
Exposure map: /scratch/kocevski/108540/expmap_263952001_264211201_4FGL_J1150.6+4154_daily_bin95.fits
Exposure cube: /scratch/kocevski/108540/ltcube_263952001_264211201_4FGL_J1150.6+4154_daily_bin95.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/108540/Model_4FGL_J1150.6+4154_daily_bin95.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) = 6091.81409844

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.1374       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .15199       1.0000         .10000E-03   10000.    
     7 'norm      '    14.206       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10313E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .18564       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .52682E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .19324E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10488E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    14.768       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.1518       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.3479       1.0000         .10000E-03   10000.    
    17 'Prefactor '    89.472       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.5453       1.0000         .10000E-03   10000.    
    21 'norm      '    .10238E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.419       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .75920       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2741       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=   6091.711     FROM MIGRAD    STATUS=CONVERGED    602 CALLS     2449 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10010E-03    145.07        .90712E-02** at limit **
   2  norm          2.1375        .39457        .46124E-02   -.89716E-04
   3  Prefactor     .10000E-03    7.5164        .90712E-02** at limit **
   4  Prefactor     .10000E-03    5.8731        .90712E-02** at limit **
   5  Prefactor     .10000E-03    36.250        .90712E-02** at limit **
   6  norm          .11109        5.4117        .97562E-01    .86128E-03
   7  norm          14.200        27.303        .26567E-02   -.87203E-04
   8  Prefactor     .10000E-03    1.0501        .90712E-02** at limit **
   9  Prefactor     .10000E-03    26.145        .90712E-02** at limit **
  10  norm          .18250        1.2867        .30554E-01    .15104E-02
  11  Prefactor     .10000E-03    2.5077        .67857E-01** at limit **
  12  Prefactor     .10001E-03    36.140        .12333    ** at limit **
  13  norm          .10000E-03    .35784        .90712E-02** at limit **
  14  norm          14.766        8.5544        .26056E-02   -.54195E-04
  15  Prefactor     4.1352        35.850        .49453E-02    .17275E-03
  16  Prefactor     3.3448        3.4876        .55298E-02    .45749E-03
  17  Prefactor     89.524        48.521        .10620E-02   -.20619E-02
  18  Prefactor     .10000E-03    10.081        .90712E-02** at limit **
  19  Prefactor     .10020E-03    73.315        .90712E-02** at limit **
  20  Prefactor     5.5433        5.6899        .42653E-02    .33304E-04
  21  norm          .10000E-03    3.2077        .90712E-02** at limit **
  22  Prefactor     13.425        20.580        .27336E-02    .17019E-03
  23  Normalizat    .75901        .17083        .43075E-01    .32701E-04
  24  Prefactor     1.2745        .20340        .57568E-01    .15038E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100102
  norm       = 2.1375
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.111092
  norm       = 14.1997
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.182497
  Prefactor  = 0.000100003
  Prefactor  = 0.000100012
  norm       = 0.0001
  norm       = 14.7661
  Prefactor  = 4.13523
  Prefactor  = 3.34482
  Prefactor  = 89.5244
  Prefactor  = 0.0001
  Prefactor  = 0.000100198
  Prefactor  = 5.54328
  norm       = 0.0001
  Prefactor  = 13.4252
  Normalizat = 0.759011
  Prefactor  = 1.27447
 **********
 **   18 **HESSE 
 **********

 FCN=   6091.711     FROM HESSE     STATUS=OK           417 CALLS     2866 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10010E-03    145.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.1375        .39489        .20366E-04   -1.5416    
   3  Prefactor     .10000E-03    7.5478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.8791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    36.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .11109        7.6633        .68380E-01   -1.5641    
   7  norm          14.200        27.309        .10627E-03   -1.4954    
   8  Prefactor     .10000E-03    1.0715        .15575E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    26.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .18250        2.3149        .16602E-02   -1.5623    
  11  Prefactor     .10000E-03    47.605        .23303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    36.712        .12089       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .37012        .90536E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          14.766        8.5549        .10422E-03   -1.4939    
  15  Prefactor     4.1352        35.083        .19781E-03   -1.5301    
  16  Prefactor     3.3448        3.4779        .14008E-03   -1.5342    
  17  Prefactor     89.524        48.367        .21240E-03   -1.3813    
  18  Prefactor     .10000E-03    10.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10020E-03    75.345        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.5433        5.6885        .17061E-03   -1.5237    
  21  norm          .10000E-03    3.2223        .13639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.425        20.561        .10934E-03   -1.4975    
  23  Normalizat    .75901        .20494        .25525E-03   -1.0161    
  24  Prefactor     1.2745        .24571        .25456E-03   -.84069    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76605e-08
Minuit parameter uncertainties:
  1  0.00771053
  2  0.394893
  3  2.13204e-07
  4  2.385e-07
  5  0.000404519
  6  1.84477
  7  27.3332
  8  1.62629e-08
  9  2.65836e-05
  10  1.29966
  11  0.000719671
  12  0.00133723
  13  7.76039e-08
  14  8.55563
  15  24.1084
  16  3.4781
  17  48.3881
  18  6.0834e-08
  19  0.00774384
  20  5.68903
  21  7.61765e-08
  22  20.5717
  23  0.205147
  24  0.245935
Done.

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

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  1.477e+01  8.556e+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

GAL_V02
   Spectrum: PowerLaw
672    Prefactor:  1.274e+00  2.459e-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:  7.590e-01  2.051e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 22.99
Ra Dec: 177.656 41.910
Photon Index (Fixed Index): 1.62 +/- 0.00
Photon Flux (Fixed Index): 1.88e-08 +/- 1.09e-08
Energy Flux (Fixed Index): 3.33e-05 +/- 1.93e-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) = 6091.00954857
delta logL = 0.701942745382

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6090.96932137
delta logL = 0.742169949162

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.221       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0840       1.0000          .0000       5.0000    
     3 'Normalizat'    .76193       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2763       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=   6090.969     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      204 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.221        7.6987        .27540E-02    .52019E-02
   2  alpha         1.0840        .36474        .31701       -.27187E-04
   3  Normalizat    .76195        .16021        .43111E-01    .20563E-04
   4  Prefactor     1.2763        .20251        .57538E-01    .11635E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 13.2212
  alpha      = 1.08399
  Normalizat = 0.761945
  Prefactor  = 1.27626
 **********
 **   18 **HESSE 
 **********

 FCN=   6090.969     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.221        8.5300        .11016E-03   -1.4981    
   2  alpha         1.0840        .41750        .13546E-01   -.60214    
   3  Normalizat    .76195        .19238        .25481E-03   -1.0150    
   4  Prefactor     1.2763        .24321        .25443E-03   -.84016    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50103e-08
Minuit parameter uncertainties:
  1  8.5308
  2  0.420408
  3  0.192551
  4  0.243426
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/108540': 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) = 6090.96932137
delta logL = 0.742169951864

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  1.322e+01  8.531e+00  1.000e-04  1.000e+04 ( 1.000e-13)
330        alpha:  1.084e+00  4.204e-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:  1.276e+00  2.434e-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:  7.619e-01  1.926e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 24.46
Ra Dec: 177.656 41.910
Photon Index (Free Index): 1.08 +/- 0.42
Photon Flux (Free Index): 1.18e-08 +/- 7.66e-09
Energy Flux (Free Index): 8.16e-05 +/- 7.59e-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/108540/cmap_HighResolution_263952001_264211201_4FGL_J1150.6+4154_daily_bin95.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.88e-08', energy_flux2='8.16e-05', photon_flux_error='1.09e-08', dlogl='7.42e-01', energy_flux='3.33e-05', photon_flux2='1.18e-08', job_status='DONE', time_completed='2021-09-04 13:19:08.887481', photon_index_error2='0.42', photon_index2='1.08', ts='22.99', fit_tolerance='1e-08', GAL='1.27', photon_index_error='0.00', energy_flux_error2='7.59e-05', EG='0.76', time_epoch_completed='1630786748.89', return_code='0', job_id='108540', GAL2='1.28', EG2='0.76', return_code2='0', energy_flux_error='1.93e-05', photon_flux_error2='7.66e-09', ts2='24.46', photon_index='1.62' WHERE bin_id='95' AND source_name='4FGL J1150.6+4154' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:19:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 108540: <4FGL_J1150.6+4154_daily_bin95> in cluster <slac> Done

Job <4FGL_J1150.6+4154_daily_bin95> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 13:06:14 2021
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 13:06: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 13:06:16 2021
Terminated at Sat Sep  4 13:19:09 2021
Results reported at Sat Sep  4 13:19:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.6+4154_daily_bin95 177.656 41.9096 263952001 264211201 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 :                                   643.11 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   773 sec.
    Turnaround time :                            775 sec.

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

