/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 1 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 = 7670
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1150.6+4154_daily_bin175
RA = 177.656, Dec = 41.9096
tmin = 284688001, tmax = 284947201
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='108697', job_status='RUN', time_executed='2021-09-04 13:06:36.919531', time_epoch_executed='1630785996.92' WHERE source_name='4FGL J1150.6+4154' and cadence='daily' and bin_id='175'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/108697

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/108697/ft1_4FGL_J1150.6+4154_daily_bin175.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/108697/ft2_4FGL_J1150.6+4154_daily_bin175.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/108697/ft1_4FGL_J1150.6+4154_daily_bin175.fits outfile=/scratch/kocevski/108697/ft1_filteredMKT_4FGL_J1150.6+4154_daily_bin175.fits ra=177.656 dec=41.9096 rad=12.0 tmin=284688001.0 tmax=284947201.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.80
user 3.43
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/108697/ft2_4FGL_J1150.6+4154_daily_bin175.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/108697/ft1_filteredMKT_4FGL_J1150.6+4154_daily_bin175.fits evtable="EVENTS" outfile="/scratch/kocevski/108697/ft1_filtered_4FGL_J1150.6+4154_daily_bin175.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.64
user 0.34
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/108697/ft1_filtered_4FGL_J1150.6+4154_daily_bin175.fits evtable="EVENTS" scfile=/scratch/kocevski/108697/ft2_4FGL_J1150.6+4154_daily_bin175.fits sctable="SC_DATA" expcube=/scratch/kocevski/108697/ltcube_284688001_284947201_4FGL_J1150.6+4154_daily_bin175.fits outfile=/scratch/kocevski/108697/expmap_284688001_284947201_4FGL_J1150.6+4154_daily_bin175.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/108697/ltcube_284688001_284947201_4FGL_J1150.6+4154_daily_bin175.fits
.....................!
real 191.41
user 185.24
sys 4.58

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/108697/ft1_filtered_4FGL_J1150.6+4154_daily_bin175.fits scfile=/scratch/kocevski/108697/ft2_4FGL_J1150.6+4154_daily_bin175.fits outfile=/scratch/kocevski/108697/cmap_284688001_284947201_4FGL_J1150.6+4154_daily_bin175.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.63
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/108697/ft1_filtered_4FGL_J1150.6+4154_daily_bin175.fits scfile=/scratch/kocevski/108697/ft2_4FGL_J1150.6+4154_daily_bin175.fits outfile=/scratch/kocevski/108697/cmap_HighResolution_284688001_284947201_4FGL_J1150.6+4154_daily_bin175.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.68
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    3.0771       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    6.7610       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.3552       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .26163       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .64399       1.0000         .10000E-03   10000.    
    14 'norm      '    13.918       1.0000         .10000E-03   10000.    
    15 'Prefactor '    43.861       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .37823       1.0000         .10000E-03   10000.    
    17 'Prefactor '    103.68       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .15660E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .18684       1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.813       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .87021       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0030       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=   6329.534     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2718 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    29.198       -.66156E-05** at limit **
   2  norm          3.0771        .46531       -.95641E-08   -.15183E-03
   3  Prefactor     .10000E-03    7.3274       -.19212E-06** at limit **
   4  Prefactor     .10000E-03    6.8304       -.10684E-07** at limit **
   5  Prefactor     .10000E-03    48.004        .45626E-05** at limit **
   6  norm          6.7595        14.115        .35900E-05   -.21050E-03
   7  norm          .10000E-03    16.543       -.38065E-06** at limit **
   8  Prefactor     5.3556        2.4571        .32607E-09   -.28088E-03
   9  Prefactor     .10000E-03    21.144        .35125E-05** at limit **
  10  norm          .10000E-03    .85075       -.29362E-07** at limit **
  11  Prefactor     .25372        2.4402        .41676E-06   -.25261E-03
  12  Prefactor     .10000E-03    46.637        .25811E-05** at limit **
  13  norm          .64435        1.0430        .12016E-05   -.12214E-02
  14  norm          13.918        10.978        .20185E-08   -.25873E-04
  15  Prefactor     43.829        29.619       -.18913E-05   -.27541E-03
  16  Prefactor     .37953        3.3241        .22490E-05   -.26953E-03
  17  Prefactor     103.68        72.903       -.25259E-05   -.40172E-04
  18  Prefactor     .10000E-03    16.397       -.71351E-06** at limit **
  19  Prefactor     .10000E-03    95.207       -.70994E-05** at limit **
  20  Prefactor     .10000E-03    9.0686        .18154E-06** at limit **
  21  norm          .22685        4.5214        .16779E-06   -.12253E-03
  22  Prefactor     19.779        17.156        .25628E-06    .10106E-03
  23  Normalizat    .87003        .16164       -.58287E-06   -.14803E-03
  24  Prefactor     1.0030        .19231       -.93134E-06   -.92658E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010001
  norm       = 3.07709
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 6.75951
  norm       = 0.0001
  Prefactor  = 5.35555
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.253719
  Prefactor  = 0.000100001
  norm       = 0.644346
  norm       = 13.9183
  Prefactor  = 43.8286
  Prefactor  = 0.379526
  Prefactor  = 103.68
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.226845
  Prefactor  = 19.7791
  Normalizat = 0.870033
  Prefactor  = 1.00303
 **********
 **   18 **HESSE 
 **********

 FCN=   6329.534     FROM HESSE     STATUS=OK           397 CALLS     3115 TOTAL
                     EDM=   .91E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    30.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.0771        .46570        .20354E-04   -1.5357    
   3  Prefactor     .10000E-03    7.3400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.8369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    48.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.7595        14.280        .77156E-03   -1.5188    
   7  norm          .10000E-03    16.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.3556        2.4494        .81038E-04   -1.5245    
   9  Prefactor     .10000E-03    21.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .86806        .71615E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .25372        5.5883        .23804E-02   -1.5607    
  12  Prefactor     .10000E-03    47.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .64435        1.0611        .23690E-03   -1.5547    
  14  norm          13.918        10.980        .10736E-03   -1.4962    
  15  Prefactor     43.829        29.789        .60534E-04   -1.4383    
  16  Prefactor     .37953        3.4366        .27672E-03   -1.5585    
  17  Prefactor     103.68        72.912        .39489E-04   -1.3668    
  18  Prefactor     .10000E-03    16.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    96.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.2448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .22685        20.686        .31287E-02   -1.5613    
  22  Prefactor     19.779        17.188        .89982E-04   -1.4818    
  23  Normalizat    .87003        .18592        .24488E-03   -.97521    
  24  Prefactor     1.0030        .22201        .27844E-03   -.92629    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.14357e-08
Minuit parameter uncertainties:
  1  0.00111945
  2  0.465701
  3  2.16077e-05
  4  2.63574e-06
  5  0.000963146
  6  14.2872
  7  4.7937e-05
  8  2.44942
  9  0.000487347
  10  1.58755e-06
  11  2.38126
  12  0.000411376
  13  1.06116
  14  10.9814
  15  29.7986
  16  2.28397
  17  72.9753
  18  0.000112801
  19  0.000947011
  20  3.75366e-05
  21  4.33308
  22  17.1921
  23  0.186058
  24  0.22221
Done.

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

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  1.392e+01  1.098e+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:  1.003e+00  2.222e-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:  8.700e-01  1.861e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.94
Ra Dec: 177.656 41.910
Photon Index (Fixed Index): 1.62 +/- 0.00
Photon Flux (Fixed Index): 1.77e-08 +/- 1.40e-08
Energy Flux (Fixed Index): 3.14e-05 +/- 2.47e-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) = 6328.9810015
delta logL = 0.553071981952

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6328.95490054
delta logL = 0.579172933898

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.291       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3671       1.0000          .0000       5.0000    
     3 'Normalizat'    .84224       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0098       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=   6328.955     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      247 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.292        10.428        .11426E-03    .44077E-04
   2  alpha         2.3668        .63922        .10281E-01    .34440E-03
   3  Normalizat    .84213        .18463        .24799E-03   -.12401E-03
   4  Prefactor     1.0099        .22062        .27710E-03   -.29745E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.2924
  alpha      = 2.36677
  Normalizat = 0.842134
  Prefactor  = 1.00992
 **********
 **   18 **HESSE 
 **********

 FCN=   6328.955     FROM HESSE     STATUS=OK            25 CALLS      272 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.292        9.7296        .45705E-05   -1.5007    
   2  alpha         2.3668        .59670        .20562E-02   -.53319E-01
   3  Normalizat    .84213        .18422        .99196E-05   -.98524    
   4  Prefactor     1.0099        .22060        .11084E-04   -.92400    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.32931e-11
Minuit parameter uncertainties:
  1  9.73083
  2  0.602531
  3  0.184357
  4  0.220801
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/108697': 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) = 6328.95490015
delta logL = 0.579173329954

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  1.229e+01  9.731e+00  1.000e-04  1.000e+04 ( 1.000e-13)
330        alpha:  2.367e+00  6.025e-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.010e+00  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:  8.421e-01  1.844e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.09
Ra Dec: 177.656 41.910
Photon Index (Free Index): 2.37 +/- 0.60
Photon Flux (Free Index): 5.49e-08 +/- 4.66e-08
Energy Flux (Free Index): 2.29e-05 +/- 1.30e-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/108697/cmap_HighResolution_284688001_284947201_4FGL_J1150.6+4154_daily_bin175.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.77e-08', energy_flux2='2.29e-05', photon_flux_error='1.40e-08', dlogl='5.79e-01', energy_flux='3.14e-05', photon_flux2='5.49e-08', job_status='DONE', time_completed='2021-09-04 13:17:57.157207', photon_index_error2='0.60', photon_index2='2.37', ts='8.94', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='1.30e-05', EG='0.87', time_epoch_completed='1630786677.16', return_code='0', job_id='108697', GAL2='1.01', EG2='0.84', return_code2='0', energy_flux_error='2.47e-05', photon_flux_error2='4.66e-08', ts2='10.09', photon_index='1.62' WHERE bin_id='175' AND source_name='4FGL J1150.6+4154' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:17:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 108697: <4FGL_J1150.6+4154_daily_bin175> in cluster <slac> Done

Job <4FGL_J1150.6+4154_daily_bin175> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 13:06:25 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 13:06: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:06:26 2021
Terminated at Sat Sep  4 13:17:57 2021
Results reported at Sat Sep  4 13:17:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.6+4154_daily_bin175 177.656 41.9096 284688001 284947201 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 :                                   676.40 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             382.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   691 sec.
    Turnaround time :                            692 sec.

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

