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


Performing analysis on: 4FGL_J1150.4+2418_daily_bin2
RA = 177.603, Dec = 24.3016
tmin = 239846401, tmax = 240105601
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='99236', job_status='RUN', time_executed='2021-09-04 12:37:51.322101', time_epoch_executed='1630784271.32' WHERE source_name='4FGL J1150.4+2418' and cadence='daily' and bin_id='2'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/99236

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/99236/ft1_4FGL_J1150.4+2418_daily_bin2.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/99236/ft2_4FGL_J1150.4+2418_daily_bin2.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/99236/ft1_4FGL_J1150.4+2418_daily_bin2.fits outfile=/scratch/kocevski/99236/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin2.fits ra=177.603 dec=24.3016 rad=12.0 tmin=239846401.0 tmax=240105601.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.45
user 1.26
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/99236/ft2_4FGL_J1150.4+2418_daily_bin2.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/99236/ft2_4FGL_J1150.4+2418_daily_bin2.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/99236/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin2.fits evtable="EVENTS" outfile="/scratch/kocevski/99236/ft1_filtered_4FGL_J1150.4+2418_daily_bin2.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.49
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/99236/ft1_filtered_4FGL_J1150.4+2418_daily_bin2.fits" evtable="EVENTS" scfile=/scratch/kocevski/99236/ft2_4FGL_J1150.4+2418_daily_bin2.fits sctable="SC_DATA" outfile=/scratch/kocevski/99236/ltcube_239846401_240105601_4FGL_J1150.4+2418_daily_bin2.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/99236/ft2_4FGL_J1150.4+2418_daily_bin2.fits
.....................!
real 12.49
user 12.10
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/99236/ft1_filtered_4FGL_J1150.4+2418_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/99236/ft2_4FGL_J1150.4+2418_daily_bin2.fits sctable="SC_DATA" expcube=/scratch/kocevski/99236/ltcube_239846401_240105601_4FGL_J1150.4+2418_daily_bin2.fits outfile=/scratch/kocevski/99236/expmap_239846401_240105601_4FGL_J1150.4+2418_daily_bin2.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/99236/ltcube_239846401_240105601_4FGL_J1150.4+2418_daily_bin2.fits
.....................!
real 192.93
user 187.41
sys 4.53

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

Setting source of interest to:
4FGL J1150.4+2418 @ 177.603 24.3016

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/99236/ft1_filtered_4FGL_J1150.4+2418_daily_bin2.fits scfile=/scratch/kocevski/99236/ft2_4FGL_J1150.4+2418_daily_bin2.fits outfile=/scratch/kocevski/99236/cmap_239846401_240105601_4FGL_J1150.4+2418_daily_bin2.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.603 yref=24.3016 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/99236/ft1_filtered_4FGL_J1150.4+2418_daily_bin2.fits scfile=/scratch/kocevski/99236/ft2_4FGL_J1150.4+2418_daily_bin2.fits outfile=/scratch/kocevski/99236/cmap_HighResolution_239846401_240105601_4FGL_J1150.4+2418_daily_bin2.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.603 yref=24.3016 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/99236/ft1_filtered_4FGL_J1150.4+2418_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/99236/ft2_4FGL_J1150.4+2418_daily_bin2.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/99236/Model_4FGL_J1150.4+2418_daily_bin2.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/99236/ft1_filtered_4FGL_J1150.4+2418_daily_bin2.fits.....................!
real 52.09
user 50.74
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/99236/ft1_filtered_4FGL_J1150.4+2418_daily_bin2.fits', '/scratch/kocevski/99236/ft2_4FGL_J1150.4+2418_daily_bin2.fits', expMap='/scratch/kocevski/99236/expmap_239846401_240105601_4FGL_J1150.4+2418_daily_bin2.fits', expCube='/scratch/kocevski/99236/ltcube_239846401_240105601_4FGL_J1150.4+2418_daily_bin2.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/99236/Model_4FGL_J1150.4+2418_daily_bin2.xml', optimizer='MINUIT')

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

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  1.344e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  2.228e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.108e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/99236/ft1_filtered_4FGL_J1150.4+2418_daily_bin2.fits
Spacecraft file(s): /scratch/kocevski/99236/ft2_4FGL_J1150.4+2418_daily_bin2.fits
Exposure map: /scratch/kocevski/99236/expmap_239846401_240105601_4FGL_J1150.4+2418_daily_bin2.fits
Exposure cube: /scratch/kocevski/99236/ltcube_239846401_240105601_4FGL_J1150.4+2418_daily_bin2.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/99236/Model_4FGL_J1150.4+2418_daily_bin2.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) = 5505.90329075

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .74234       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .23750E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    28.405       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10851E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.6117       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.0717       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    37.932       1.0000         .10000E-03   10000.    
    13 'norm      '    .66039E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.5164       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11947E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .82336       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.5184       1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.537       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .85112E-01   1.0000         .10000E-03   10000.    
    23 'norm      '    8.7514       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .12732E-02   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1352       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .96546       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+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=   5505.884     FROM MIGRAD    STATUS=CONVERGED   1105 CALLS     3647 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .74355        1.7811        .16335E-02    .40546E-02
   2  Prefactor     .10000E-03    3.5831        .13686E-02** at limit **
   3  norm          .10002E-03    84.049        .36606E-02** at limit **
   4  Prefactor     .10000E-03    6.4156        .18142E-02** at limit **
   5  Prefactor     28.405        19.569        .75171E-04   -.51421E-04
   6  Prefactor     .10000E-03    19.839        .18142E-02** at limit **
   7  Prefactor     .10000E-03    18.207        .18142E-02** at limit **
   8  Prefactor     2.6161        7.0581        .25241E-03   -.44771E-04
   9  Prefactor     3.0717        11.474        .23144E-03   -.25052E-05
  10  Prefactor     .10000E-03    3.7745        .14052E-02** at limit **
  11  Prefactor     .10000E-03    .38205        .44715E-03** at limit **
  12  Prefactor     37.918        32.428        .65076E-04   -.76868E-05
  13  norm          .66339E-01    2.9522        .11260E-02    .30317E-03
  14  Prefactor     4.5165        4.0942        .13387E-03    .13121E-03
  15  Prefactor     .10000E-03    35.883        .18142E-02** at limit **
  16  Prefactor     .82660        2.7536        .20595E-03    .74742E-04
  17  Prefactor     .10000E-03    2.6152        .22954E-03** at limit **
  18  norm          .10000E-03    1.9493        .19940E-03** at limit **
  19  Prefactor     1.5190        1.8436        .10860E-03   -.48991E-04
  20  Prefactor     17.540        4.0873        .68160E-04   -.13944E-03
  21  Prefactor     .10000E-03    2.7896        .12075E-02** at limit **
  22  norm          .85047E-01    .13800        .39619E-03    .15016E-02
  23  norm          8.7522        5.6125        .13497E-03   -.33019E-04
  24  Prefactor     .10000E-03    71.633        .41059E-02** at limit **
  25  Normalizat    1.1349        .22009        .23923E-03   -.36687E-04
  26  Prefactor     .96580        .22670        .27944E-03   -.21888E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.743551
  Prefactor  = 0.0001
  norm       = 0.000100019
  Prefactor  = 0.0001
  Prefactor  = 28.4054
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.61612
  Prefactor  = 3.07171
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.9185
  norm       = 0.0663388
  Prefactor  = 4.5165
  Prefactor  = 0.0001
  Prefactor  = 0.826603
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.519
  Prefactor  = 17.5396
  Prefactor  = 0.0001
  norm       = 0.0850472
  norm       = 8.75222
  Prefactor  = 0.0001
  Normalizat = 1.13486
  Prefactor  = 0.965803
 **********
 **   18 **HESSE 
 **********

 FCN=   5505.884     FROM HESSE     STATUS=OK           436 CALLS     4083 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .74355        1.7793        .32670E-03   -1.5536    
   2  Prefactor     .10000E-03    3.5834        .27373E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10002E-03    86.566        .14643E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.4166        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     28.405        19.565        .30068E-05   -1.4642    
   6  Prefactor     .10000E-03    19.840        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.212        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.6161        7.0547        .10096E-04   -1.5384    
   9  Prefactor     3.0717        11.472        .92576E-05   -1.5357    
  10  Prefactor     .10000E-03    3.7749        .28105E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .38205        .89430E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     37.918        32.398        .26030E-05   -1.4476    
  13  norm          .66339E-01    2.9506        .45040E-04   -1.5656    
  14  Prefactor     4.5165        4.0931        .53549E-05   -1.5283    
  15  Prefactor     .10000E-03    35.892        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .82660        2.7520        .82381E-05   -1.5526    
  17  Prefactor     .10000E-03    2.6152        .45908E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.9493        .39880E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.5190        1.8435        .43441E-05   -1.5461    
  20  Prefactor     17.540        4.0853        .27264E-05   -1.4870    
  21  Prefactor     .10000E-03    2.7898        .24149E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .85047E-01    .13788        .15848E-04   -1.5650    
  23  norm          8.7522        5.6117        .53987E-05   -1.5116    
  24  Prefactor     .10000E-03    72.943        .82119E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1349        .22008        .95691E-05   -.88640    
  26  Prefactor     .96580        .22677        .11177E-04   -.93878    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.6206e-10
Minuit parameter uncertainties:
  1  1.77947
  2  1.55381e-06
  3  0.0025845
  4  3.29268e-06
  5  19.569
  6  7.69985e-05
  7  9.91857e-06
  8  7.05696
  9  11.4799
  10  3.45461e-06
  11  6.69532e-07
  12  32.4134
  13  0.884226
  14  4.09332
  15  6.26374e-05
  16  2.75239
  17  3.30299e-05
  18  5.05844e-06
  19  1.84356
  20  4.08539
  21  3.42907e-06
  22  0.137885
  23  5.61208
  24  0.000279372
  25  0.220264
  26  0.226992
Done.

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

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  6.695e-07  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  2.228e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.108e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  9.658e-01  2.270e-01  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  1.135e+00  2.203e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 177.603 24.302
Photon Flux Upper Limit: 3.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/99236/likelihoodResults_239846401_240105601_4FGL_J1150.4+2418_daily_bin2.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): 102
logL (Free Index) = 5505.88393258
delta logL = -2.82632263406e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5505.88390175
delta logL = 2.56628845818e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1832       1.0000          .0000       10.000    
     3 'Normalizat'    1.1347       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96610       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5505.884     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      219 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.2935        .90712E-02** at limit **
   2  Index         1.6678        5.3862        .50000        .51245E-06
   3  Normalizat    1.1349        .99036E-02    .54104E-01   -.71248E-04
   4  Prefactor     .96580        .10821E-01    .45842E-01   -.12457E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.66784
  Normalizat = 1.13486
  Prefactor  = 0.965801
 **********
 **   18 **HESSE 
 **********

 FCN=   5505.884     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      252 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    37.690        .51859E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6678        6.4586        .50000       -.72941    
   3  Normalizat    1.1349        .43713E-01    .23923E-03   -.88640    
   4  Prefactor     .96580        .47770E-01    .27944E-03   -.93878    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.9909e-10
Minuit parameter uncertainties:
  1  6.43541e-05
  2  313.177
  3  0.0437143
  4  0.0477717
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/99236': 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): 102
logL (Free Index) = 5505.88387096
delta logL = 3.33597054123e-05

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  6.435e-05  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  1.668e+00  3.132e+02  0.000e+00  1.000e+01 (-1.000e+00)
288        Scale:  1.108e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  9.658e-01  4.777e-02  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  1.135e+00  4.371e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 177.603 24.302

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/99236/cmap_HighResolution_239846401_240105601_4FGL_J1150.4+2418_daily_bin2.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.87e-03', job_status='DONE', photon_flux_upper_limit='3.76e-08', time_completed='2021-09-04 12:50:28.105568', job_id='99236', GAL2='0.97', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1630785028.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='3.34e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='2' AND source_name='4FGL J1150.4+2418' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:50:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0297>
Subject: Job 99236: <4FGL_J1150.4+2418_daily_bin2> in cluster <slac> Done

Job <4FGL_J1150.4+2418_daily_bin2> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 12:36:41 2021
Job was executed on host(s) <bullet0297>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:36:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 12:36:42 2021
Terminated at Sat Sep  4 12:50:28 2021
Results reported at Sat Sep  4 12:50:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.4+2418_daily_bin2 177.603 24.3016 239846401 240105601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1150.4+2418 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   757.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             281.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   826 sec.
    Turnaround time :                            827 sec.

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

