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


Performing analysis on: 4FGL_J1150.6+4154_daily_bin1289
RA = 177.656, Dec = 41.9096
tmin = 573436801, tmax = 573696001
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='113827', job_status='RUN', time_executed='2021-09-04 13:21:52.333765', time_epoch_executed='1630786912.33' WHERE source_name='4FGL J1150.6+4154' and cadence='daily' and bin_id='1289'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/113827

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/113827/ft1_4FGL_J1150.6+4154_daily_bin1289.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/113827/ft2_4FGL_J1150.6+4154_daily_bin1289.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/113827/ft1_4FGL_J1150.6+4154_daily_bin1289.fits outfile=/scratch/kocevski/113827/ft1_filteredMKT_4FGL_J1150.6+4154_daily_bin1289.fits ra=177.656 dec=41.9096 rad=12.0 tmin=573436801.0 tmax=573696001.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 5.39
user 5.15
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/113827/ft1_filtered_4FGL_J1150.6+4154_daily_bin1289.fits evtable="EVENTS" scfile=/scratch/kocevski/113827/ft2_4FGL_J1150.6+4154_daily_bin1289.fits sctable="SC_DATA" expcube=/scratch/kocevski/113827/ltcube_573436801_573696001_4FGL_J1150.6+4154_daily_bin1289.fits outfile=/scratch/kocevski/113827/expmap_573436801_573696001_4FGL_J1150.6+4154_daily_bin1289.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/113827/ltcube_573436801_573696001_4FGL_J1150.6+4154_daily_bin1289.fits
.....................!
real 190.46
user 185.18
sys 4.97

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/113827/ft1_filtered_4FGL_J1150.6+4154_daily_bin1289.fits scfile=/scratch/kocevski/113827/ft2_4FGL_J1150.6+4154_daily_bin1289.fits outfile=/scratch/kocevski/113827/cmap_573436801_573696001_4FGL_J1150.6+4154_daily_bin1289.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/113827/ft1_filtered_4FGL_J1150.6+4154_daily_bin1289.fits scfile=/scratch/kocevski/113827/ft2_4FGL_J1150.6+4154_daily_bin1289.fits outfile=/scratch/kocevski/113827/cmap_HighResolution_573436801_573696001_4FGL_J1150.6+4154_daily_bin1289.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    118.90       1.0000         .10000E-03   10000.    
     2 'norm      '    1.8180       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10273E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.7122       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .78730       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    65.018       1.0000         .10000E-03   10000.    
    13 'norm      '    .10482E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .70902       1.0000         .10000E-03   10000.    
    15 'Prefactor '    87.203       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.9201       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .64934E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.9284       1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.058       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2449       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0541       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=   6075.630     FROM MIGRAD    STATUS=CONVERGED    986 CALLS     3251 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     118.87        161.14        .36904E-04   -.30251E-04
   2  norm          1.8180        .41443        .23144E-04    .28982E-04
   3  Prefactor     .10000E-03    6.1167        .18142E-02** at limit **
   4  Prefactor     .10000E-03    11.408        .18142E-02** at limit **
   5  Prefactor     .10002E-03    181.88        .18142E-02** at limit **
   6  norm          .10000E-03    15.644        .18142E-02** at limit **
   7  norm          .10000E-03    17.608        .18142E-02** at limit **
   8  Prefactor     1.7103        3.2770        .18086E-03   -.15413E-03
   9  Prefactor     .10000E-03    25.864        .18142E-02** at limit **
  10  norm          .78906        2.1997        .18212E-03   -.23135E-03
  11  Prefactor     .10000E-03    2.1126        .11050E-02** at limit **
  12  Prefactor     64.992        51.891        .49771E-04   -.27507E-03
  13  norm          .10000E-03    1.1068        .11108E-02** at limit **
  14  norm          .69316        25.926        .42444E-02    .10455E-03
  15  Prefactor     87.205        43.676        .43023E-04   -.15960E-04
  16  Prefactor     1.9195        2.9988        .15328E-03    .26330E-04
  17  Prefactor     .10000E-03    18.025        .18142E-02** at limit **
  18  Prefactor     .10000E-03    23.782        .93353E-01** at limit **
  19  Prefactor     .10000E-03    9.3129        .18142E-02** at limit **
  20  Prefactor     .10000E-03    2.9100        .12974E-02** at limit **
  21  norm          3.9286        4.1330        .78652E-03    .47847E-03
  22  Prefactor     12.060        16.911        .11536E-03    .12811E-04
  23  Normalizat    1.2447        .23930        .24969E-03   -.19418E-03
  24  Prefactor     1.0543        .26657        .31380E-03   -.73002E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 118.87
  norm       = 1.81801
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100017
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.71034
  Prefactor  = 0.0001
  norm       = 0.789065
  Prefactor  = 0.0001
  Prefactor  = 64.9915
  norm       = 0.0001
  norm       = 0.693159
  Prefactor  = 87.205
  Prefactor  = 1.91947
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.92856
  Prefactor  = 12.0595
  Normalizat = 1.24471
  Prefactor  = 1.0543
 **********
 **   18 **HESSE 
 **********

 FCN=   6075.630     FROM HESSE     STATUS=OK           385 CALLS     3636 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     118.87        161.16        .73808E-05   -1.3523    
   2  norm          1.8180        .41441        .92575E-06   -1.5438    
   3  Prefactor     .10000E-03    6.1170        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.410        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10002E-03    181.91        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    15.658        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    17.608        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.7103        3.2755        .72342E-05   -1.5446    
   9  Prefactor     .10000E-03    25.864        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .78906        2.1986        .72846E-05   -1.5530    
  11  Prefactor     .10000E-03    2.1126        .22100E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     64.992        51.854        .99541E-05   -1.4094    
  13  norm          .10000E-03    1.1108        .22215E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .69316        25.991        .16978E-03   -1.5541    
  15  Prefactor     87.205        43.676        .86047E-05   -1.3838    
  16  Prefactor     1.9195        2.9971        .61313E-05   -1.5431    
  17  Prefactor     .10000E-03    18.025        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    22.254        .97811E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.3129        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.9101        .25949E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.9286        4.1326        .31461E-04   -1.5312    
  22  Prefactor     12.060        16.910        .46145E-05   -1.5013    
  23  Normalizat    1.2447        .23944        .49939E-04   -.85232    
  24  Prefactor     1.0543        .26642        .12552E-04   -.90941    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.36454e-10
Minuit parameter uncertainties:
  1  161.76
  2  0.414415
  3  3.29738e-06
  4  2.65972e-06
  5  0.00356175
  6  7.5645e-05
  7  3.64113e-05
  8  3.27588
  9  9.51948e-05
  10  2.19879
  11  5.49466e-06
  12  51.8904
  13  2.95427e-05
  14  8.49242
  15  43.6925
  16  2.99738
  17  4.40685e-05
  18  7.63341e-05
  19  5.45879e-06
  20  1.51178e-06
  21  4.13291
  22  16.9164
  23  0.239649
  24  0.266754
Done.

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

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  6.932e-01  8.492e+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.054e+00  2.668e-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:  1.245e+00  2.396e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 177.656 41.910
Photon Flux Upper Limit: 3.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.56e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/113827/likelihoodResults_573436801_573696001_4FGL_J1150.6+4154_daily_bin1289.txt

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) = 6075.60622443
delta logL = 0.0240028042199

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6075.59042937
delta logL = 0.0397978678066

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8711       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1531       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2462       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0478       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6075.590     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      269 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8711        8.2007        .15224E-02   -.43055E-03
   2  alpha         2.1530        1.5710        .31157E-01    .45964E-05
   3  Normalizat    1.2462        .22451        .24955E-03   -.41001E-06
   4  Prefactor     1.0478        .26451        .31464E-03   -.72265E-07
                               ERR DEF=  .500    
Final values: 
  norm       = 1.87111
  alpha      = 2.15295
  Normalizat = 1.24624
  Prefactor  = 1.04776
 **********
 **   18 **HESSE 
 **********

 FCN=   6075.590     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8711        7.1856        .60895E-04   -1.5434    
   2  alpha         2.1530        1.4625        .12463E-02   -.13927    
   3  Normalizat    1.2462        .22461        .99821E-05   -.85186    
   4  Prefactor     1.0478        .26458        .12586E-04   -.91154    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.62447e-10
Minuit parameter uncertainties:
  1  7.18886
  2  1.56463
  3  0.224785
  4  0.264908
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/113827': 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) = 6075.59042931
delta logL = 0.0397979255513

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  1.871e+00  7.189e+00  1.000e-04  1.000e+04 ( 1.000e-13)
330        alpha:  2.153e+00  1.565e+00  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.048e+00  2.649e-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:  1.246e+00  2.248e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 177.656 41.910

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/113827/cmap_HighResolution_573436801_573696001_4FGL_J1150.6+4154_daily_bin1289.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.56e-05', job_status='DONE', photon_flux_upper_limit='3.70e-08', time_completed='2021-09-04 13:34:52.459359', job_id='113827', GAL2='1.05', fit_tolerance='1e-08', EG2='1.25', EG='1.24', time_epoch_completed='1630787692.46', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='3.98e-02', ts2='0.09', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1289' AND source_name='4FGL J1150.6+4154' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:34:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 113827: <4FGL_J1150.6+4154_daily_bin1289> in cluster <slac> Done

Job <4FGL_J1150.6+4154_daily_bin1289> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 13:21:29 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 13:21:30 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:21:30 2021
Terminated at Sat Sep  4 13:34:53 2021
Results reported at Sat Sep  4 13:34:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.6+4154_daily_bin1289 177.656 41.9096 573436801 573696001 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 :                                   780.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             355.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            804 sec.

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

