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


Performing analysis on: 4FGL_J1150.6+4154_daily_bin26
RA = 177.656, Dec = 41.9096
tmin = 246067201, tmax = 246326401
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='107445', job_status='RUN', time_executed='2021-09-04 13:05:45.750876', time_epoch_executed='1630785945.75' WHERE source_name='4FGL J1150.6+4154' and cadence='daily' and bin_id='26'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/107445

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/107445/ft1_4FGL_J1150.6+4154_daily_bin26.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/107445/ft2_4FGL_J1150.6+4154_daily_bin26.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/107445/ft1_4FGL_J1150.6+4154_daily_bin26.fits outfile=/scratch/kocevski/107445/ft1_filteredMKT_4FGL_J1150.6+4154_daily_bin26.fits ra=177.656 dec=41.9096 rad=12.0 tmin=246067201.0 tmax=246326401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 1.47
user 1.30
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/107445/ft1_filtered_4FGL_J1150.6+4154_daily_bin26.fits" evtable="EVENTS" scfile=/scratch/kocevski/107445/ft2_4FGL_J1150.6+4154_daily_bin26.fits sctable="SC_DATA" outfile=/scratch/kocevski/107445/ltcube_246067201_246326401_4FGL_J1150.6+4154_daily_bin26.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/107445/ft2_4FGL_J1150.6+4154_daily_bin26.fits
.....................!
real 12.41
user 12.05
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/107445/ft1_filtered_4FGL_J1150.6+4154_daily_bin26.fits evtable="EVENTS" scfile=/scratch/kocevski/107445/ft2_4FGL_J1150.6+4154_daily_bin26.fits sctable="SC_DATA" expcube=/scratch/kocevski/107445/ltcube_246067201_246326401_4FGL_J1150.6+4154_daily_bin26.fits outfile=/scratch/kocevski/107445/expmap_246067201_246326401_4FGL_J1150.6+4154_daily_bin26.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/107445/ltcube_246067201_246326401_4FGL_J1150.6+4154_daily_bin26.fits
.....................!
real 192.61
user 187.47
sys 4.09

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/107445/ft1_filtered_4FGL_J1150.6+4154_daily_bin26.fits scfile=/scratch/kocevski/107445/ft2_4FGL_J1150.6+4154_daily_bin26.fits outfile=/scratch/kocevski/107445/cmap_246067201_246326401_4FGL_J1150.6+4154_daily_bin26.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.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/107445/ft1_filtered_4FGL_J1150.6+4154_daily_bin26.fits scfile=/scratch/kocevski/107445/ft2_4FGL_J1150.6+4154_daily_bin26.fits outfile=/scratch/kocevski/107445/cmap_HighResolution_246067201_246326401_4FGL_J1150.6+4154_daily_bin26.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.54
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.591       1.0000         .10000E-03   10000.    
     2 'norm      '    .80805       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4369       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    6.7085       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.167       1.0000         .10000E-03   10000.    
    10 'norm      '    .18059       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .52866E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    16.388       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .28443E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .22339E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    11.740       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .20542       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .90376       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1376       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6469.690     FROM MIGRAD    STATUS=CONVERGED    999 CALLS     3255 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.630        67.479        .86200E-04   -.57951E-04
   2  norm          .80807        .28001        .23276E-04   -.68214E-03
   3  Prefactor     .10000E-03    6.5482        .18142E-02** at limit **
   4  Prefactor     2.4376        14.128        .26211E-03   -.10687E-03
   5  Prefactor     .10000E-03    19.465        .18142E-02** at limit **
   6  norm          6.7086        12.603        .15492E-03   -.59220E-04
   7  norm          .10000E-03    12.289        .18142E-02** at limit **
   8  Prefactor     .10000E-03    4.5145        .15748E-02** at limit **
   9  Prefactor     26.124        31.127        .78313E-04   -.84692E-04
  10  norm          .18316        5.2433        .15761E-02   -.22781E-03
  11  Prefactor     .10000E-03    2.2798        .11758E-02** at limit **
  12  Prefactor     .10000E-03    47.759        .18142E-02** at limit **
  13  norm          .52554E-01    1.4186        .10955E-02    .58541E-03
  14  norm          16.389        9.8350        .98937E-04   -.22867E-04
  15  Prefactor     .10000E-03    12.614        .18142E-02** at limit **
  16  Prefactor     .10000E-03    3.0950        .27027E-03** at limit **
  17  Prefactor     .10000E-03    12.631        .18142E-02** at limit **
  18  Prefactor     .10009E-03    94.270        .59092E-02** at limit **
  19  Prefactor     .10002E-03    56.084        .36285E-03** at limit **
  20  Prefactor     .10000E-03    5.7624        .26078E-02** at limit **
  21  norm          11.734        8.3334        .11692E-03   -.77711E-03
  22  Prefactor     .25994        23.246        .91883E-01   -.15957E-03
  23  Normalizat    .90365        .17645        .23321E-03   -.42264E-03
  24  Prefactor     1.1375        .21752        .25976E-03   -.38440E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.6305
  norm       = 0.808066
  Prefactor  = 0.0001
  Prefactor  = 2.43756
  Prefactor  = 0.0001
  norm       = 6.70861
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.1242
  norm       = 0.183163
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0525542
  norm       = 16.3891
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100093
  Prefactor  = 0.000100022
  Prefactor  = 0.0001
  norm       = 11.7335
  Prefactor  = 0.259941
  Normalizat = 0.90365
  Prefactor  = 1.13745
 **********
 **   18 **HESSE 
 **********

 FCN=   6469.690     FROM HESSE     STATUS=OK           387 CALLS     3642 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.630        67.470        .17240E-04   -1.4777    
   2  norm          .80807        .27995        .46552E-05   -1.5528    
   3  Prefactor     .10000E-03    6.5489        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.4376        14.120        .10484E-04   -1.5396    
   5  Prefactor     .10000E-03    19.465        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.7086        12.601        .61969E-05   -1.5190    
   7  norm          .10000E-03    12.289        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.5382        .31496E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     26.124        30.838        .15663E-04   -1.4685    
  10  norm          .18316        5.1427        .63045E-04   -1.5622    
  11  Prefactor     .10000E-03    2.2804        .23516E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    47.779        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .52554E-01    1.4189        .43821E-04   -1.5662    
  14  norm          16.389        9.8327        .39575E-05   -1.4898    
  15  Prefactor     .10000E-03    12.617        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.0951        .54053E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.631        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10009E-03    96.879        .23637E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10002E-03    56.088        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.7901        .52156E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          11.734        8.3157        .46767E-05   -1.5023    
  22  Prefactor     .25994        22.366        .94087E-01   -1.5606    
  23  Normalizat    .90365        .17646        .46642E-04   -.96332    
  24  Prefactor     1.1375        .21759        .51952E-04   -.88278    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31901e-09
Minuit parameter uncertainties:
  1  67.7093
  2  0.279947
  3  3.40115e-05
  4  11.7374
  5  9.27405e-06
  6  12.6059
  7  4.10961e-06
  8  9.45584e-05
  9  30.8568
  10  1.94074
  11  1.92567e-05
  12  6.5377e-05
  13  0.545633
  14  9.8337
  15  8.05368e-05
  16  4.58241e-05
  17  2.87232e-05
  18  0.00601566
  19  0.00224318
  20  3.78041e-05
  21  8.3165
  22  4.82336
  23  0.176574
  24  0.217762
Done.

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

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  1.639e+01  9.834e+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.137e+00  2.178e-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.037e-01  1.766e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.63
Ra Dec: 177.656 41.910
Photon Index (Fixed Index): 1.62 +/- 0.00
Photon Flux (Fixed Index): 2.09e-08 +/- 1.25e-08
Energy Flux (Fixed Index): 3.69e-05 +/- 2.22e-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) = 6469.52376935
delta logL = 0.16590952973

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6469.51799144
delta logL = 0.171687444085

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.535       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8733       1.0000          .0000       5.0000    
     3 'Normalizat'    .90021       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1375       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6469.518     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      272 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.535        9.8306        .10506E-03   -.20301E-03
   2  alpha         1.8733        .44885        .10827E-01    .16146E-03
   3  Normalizat    .90023        .17328        .23359E-03   -.11116E-03
   4  Prefactor     1.1375        .21494        .25968E-03   -.80510E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.5351
  alpha      = 1.87332
  Normalizat = 0.900227
  Prefactor  = 1.13753
 **********
 **   18 **HESSE 
 **********

 FCN=   6469.518     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.535        9.6733        .21012E-04   -1.4945    
   2  alpha         1.8733        .44175        .21655E-02   -.25337    
   3  Normalizat    .90023        .17343        .93434E-05   -.96452    
   4  Prefactor     1.1375        .21516        .10387E-04   -.88276    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03386e-11
Minuit parameter uncertainties:
  1  9.67438
  2  0.44424
  3  0.173541
  4  0.215321
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/107445': 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) = 6469.51799142
delta logL = 0.171687458223

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  1.454e+01  9.674e+00  1.000e-04  1.000e+04 ( 1.000e-13)
330        alpha:  1.873e+00  4.442e-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.138e+00  2.153e-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.002e-01  1.735e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.97
Ra Dec: 177.656 41.910
Photon Index (Free Index): 1.87 +/- 0.44
Photon Flux (Free Index): 2.64e-08 +/- 1.80e-08
Energy Flux (Free Index): 2.58e-05 +/- 2.13e-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/107445/cmap_HighResolution_246067201_246326401_4FGL_J1150.6+4154_daily_bin26.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.09e-08', energy_flux2='2.58e-05', photon_flux_error='1.25e-08', dlogl='1.72e-01', energy_flux='3.69e-05', photon_flux2='2.64e-08', job_status='DONE', time_completed='2021-09-04 13:18:11.230555', photon_index_error2='0.44', photon_index2='1.87', ts='10.63', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='2.13e-05', EG='0.90', time_epoch_completed='1630786691.23', return_code='0', job_id='107445', GAL2='1.14', EG2='0.90', return_code2='0', energy_flux_error='2.22e-05', photon_flux_error2='1.80e-08', ts2='10.97', photon_index='1.62' WHERE bin_id='26' AND source_name='4FGL J1150.6+4154' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:18:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 107445: <4FGL_J1150.6+4154_daily_bin26> in cluster <slac> Done

Job <4FGL_J1150.6+4154_daily_bin26> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 13:02:00 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 13:02:02 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:02:02 2021
Terminated at Sat Sep  4 13:18:11 2021
Results reported at Sat Sep  4 13:18:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.6+4154_daily_bin26 177.656 41.9096 246067201 246326401 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 :                                   745.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             252.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            971 sec.

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

