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


Performing analysis on: 4FGL_J1150.4+2418_daily_bin1112
RA = 177.603, Dec = 24.3016
tmin = 527558401, tmax = 527817601
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='105544', job_status='RUN', time_executed='2021-09-04 12:56:44.346610', time_epoch_executed='1630785404.35' WHERE source_name='4FGL J1150.4+2418' and cadence='daily' and bin_id='1112'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/105544

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/105544/ft1_4FGL_J1150.4+2418_daily_bin1112.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/105544/ft2_4FGL_J1150.4+2418_daily_bin1112.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/105544/ft1_4FGL_J1150.4+2418_daily_bin1112.fits outfile=/scratch/kocevski/105544/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin1112.fits ra=177.603 dec=24.3016 rad=12.0 tmin=527558401.0 tmax=527817601.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.59
user 3.30
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/105544/ft2_4FGL_J1150.4+2418_daily_bin1112.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/105544/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin1112.fits evtable="EVENTS" outfile="/scratch/kocevski/105544/ft1_filtered_4FGL_J1150.4+2418_daily_bin1112.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/105544/ft1_filtered_4FGL_J1150.4+2418_daily_bin1112.fits" evtable="EVENTS" scfile=/scratch/kocevski/105544/ft2_4FGL_J1150.4+2418_daily_bin1112.fits sctable="SC_DATA" outfile=/scratch/kocevski/105544/ltcube_527558401_527817601_4FGL_J1150.4+2418_daily_bin1112.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/105544/ft2_4FGL_J1150.4+2418_daily_bin1112.fits
.....................!
real 12.98
user 12.38
sys 0.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/105544/ft1_filtered_4FGL_J1150.4+2418_daily_bin1112.fits evtable="EVENTS" scfile=/scratch/kocevski/105544/ft2_4FGL_J1150.4+2418_daily_bin1112.fits sctable="SC_DATA" expcube=/scratch/kocevski/105544/ltcube_527558401_527817601_4FGL_J1150.4+2418_daily_bin1112.fits outfile=/scratch/kocevski/105544/expmap_527558401_527817601_4FGL_J1150.4+2418_daily_bin1112.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/105544/ltcube_527558401_527817601_4FGL_J1150.4+2418_daily_bin1112.fits
.....................!
real 193.62
user 187.07
sys 5.87

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/105544/ft1_filtered_4FGL_J1150.4+2418_daily_bin1112.fits scfile=/scratch/kocevski/105544/ft2_4FGL_J1150.4+2418_daily_bin1112.fits outfile=/scratch/kocevski/105544/cmap_527558401_527817601_4FGL_J1150.4+2418_daily_bin1112.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/105544/ft1_filtered_4FGL_J1150.4+2418_daily_bin1112.fits scfile=/scratch/kocevski/105544/ft2_4FGL_J1150.4+2418_daily_bin1112.fits outfile=/scratch/kocevski/105544/cmap_HighResolution_527558401_527817601_4FGL_J1150.4+2418_daily_bin1112.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.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/105544/ft1_filtered_4FGL_J1150.4+2418_daily_bin1112.fits', '/scratch/kocevski/105544/ft2_4FGL_J1150.4+2418_daily_bin1112.fits', expMap='/scratch/kocevski/105544/expmap_527558401_527817601_4FGL_J1150.4+2418_daily_bin1112.fits', expCube='/scratch/kocevski/105544/ltcube_527558401_527817601_4FGL_J1150.4+2418_daily_bin1112.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/105544/Model_4FGL_J1150.4+2418_daily_bin1112.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/105544/ft1_filtered_4FGL_J1150.4+2418_daily_bin1112.fits
Spacecraft file(s): /scratch/kocevski/105544/ft2_4FGL_J1150.4+2418_daily_bin1112.fits
Exposure map: /scratch/kocevski/105544/expmap_527558401_527817601_4FGL_J1150.4+2418_daily_bin1112.fits
Exposure cube: /scratch/kocevski/105544/ltcube_527558401_527817601_4FGL_J1150.4+2418_daily_bin1112.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/105544/Model_4FGL_J1150.4+2418_daily_bin1112.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) = 6316.92129735

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0002       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.3618       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11724E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    53.580       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11960E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10481E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.233       1.0000         .10000E-03   10000.    
    13 'norm      '    4.1973       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10445E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .15893E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.8834       1.0000         .10000E-03   10000.    
    18 'norm      '    11.469       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.4105       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.2532       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .18308       1.0000         .10000E-03   10000.    
    22 'norm      '    .34524       1.0000         .10000E-03   10000.    
    23 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3286       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .74085       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.

 FCN=   6316.902     FROM MIGRAD    STATUS=CONVERGED    668 CALLS     3210 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9998        2.1213        .34273E-07    .24255E-04
   2  Prefactor     1.3616        4.8104        .33486E-05    .70462E-03
   3  norm          .10000E-03    4.2709        .86670E-07** at limit **
   4  Prefactor     .10000E-03    4.7139       -.77792E-08** at limit **
   5  Prefactor     .10000E-03    16.048        .17823E-06** at limit **
   6  Prefactor     .10001E-03    29.314        .17871E-05** at limit **
   7  Prefactor     .10000E-03    46.931        .13123E-05** at limit **
   8  Prefactor     .10000E-03    2.2866       -.19882E-06** at limit **
   9  Prefactor     53.584        28.975       -.33116E-06   -.18093E-03
  10  Prefactor     .10012E-03    15.282       -.46803E-05** at limit **
  11  Prefactor     .10000E-03    1.3716        .14213E-06** at limit **
  12  Prefactor     10.187        32.247       -.24553E-05   -.29587E-03
  13  norm          4.1970        1.5955        .35731E-07   -.27199E-03
  14  Prefactor     .10000E-03    2.1453        .22421E-06** at limit **
  15  Prefactor     .10000E-03    20.123       -.66289E-06** at limit **
  16  Prefactor     .10038E-03    1.8411        .40333E-06** at limit **
  17  Prefactor     8.8937        4.7881        .11155E-07   -.44891E-03
  18  norm          11.469        4.1735        .16040E-07   -.58055E-04
  19  Prefactor     6.4103        3.1981        .12057E-07   -.68008E-04
  20  Prefactor     5.2527        2.5671       -.30775E-08   -.22648E-03
  21  Prefactor     .18209        4.9424        .23192E-05   -.55539E-03
  22  norm          .34517        .31634        .67341E-07   -.17351E-04
  23  norm          .10000E-03    1.5638        .61304E-07** at limit **
  24  Prefactor     .10000E-03    3.6114        .30506E-07** at limit **
  25  Normalizat    1.3292        .20408        .11366E-05   -.18743E-03
  26  Prefactor     .74037        .20090       -.28612E-05   -.13614E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.99976
  Prefactor  = 1.36162
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 53.5843
  Prefactor  = 0.000100122
  Prefactor  = 0.0001
  Prefactor  = 10.1869
  norm       = 4.19699
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100375
  Prefactor  = 8.89365
  norm       = 11.4689
  Prefactor  = 6.41033
  Prefactor  = 5.25268
  Prefactor  = 0.182094
  norm       = 0.345171
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.32917
  Prefactor  = 0.740372
 **********
 **   18 **HESSE 
 **********

 FCN=   6316.902     FROM HESSE     STATUS=OK           470 CALLS     3680 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9998        2.1225        .11564E-03   -1.5425    
   2  Prefactor     1.3616        5.1175        .33790E-03   -1.5475    
   3  norm          .10000E-03    4.2792        .16041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.7265        .16850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    29.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    49.208        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.2960        .11731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     53.584        28.283        .54795E-04   -1.4243    
  10  Prefactor     .10012E-03    33.966        .41497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.3088        .17317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.187        33.293        .12526E-03   -1.5070    
  13  norm          4.1970        1.5935        .58297E-04   -1.5298    
  14  Prefactor     .10000E-03    5.1172        .22349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    20.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10038E-03    6.8672        .30391E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.8937        4.9558        .11078E-03   -1.5111    
  18  norm          11.469        4.1820        .89355E-04   -1.5031    
  19  Prefactor     6.4103        3.2042        .91687E-04   -1.5202    
  20  Prefactor     5.2527        2.5627        .84669E-04   -1.5250    
  21  Prefactor     .18209        12.612        .27706E-02   -1.5623    
  22  norm          .34517        .30389        .38982E-03   -1.5590    
  23  norm          .10000E-03    2.5451        .19310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.6184        .14750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.3292        .24314        .24070E-03   -.82700    
  26  Prefactor     .74037        .23641        .32175E-03   -1.0197    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.17411e-09
Minuit parameter uncertainties:
  1  2.12253
  2  5.11914
  3  1.02427e-05
  4  5.85647e-06
  5  6.23409e-05
  6  0.000915994
  7  0.000901495
  8  9.94268e-06
  9  28.2904
  10  0.00406992
  11  2.42598e-05
  12  33.3539
  13  1.59348
  14  4.88897e-05
  15  0.000169184
  16  0.00321097
  17  4.95605
  18  4.18206
  19  3.20426
  20  2.56276
  21  3.03075
  22  0.303887
  23  1.15435e-05
  24  1.99864e-06
  25  0.243346
  26  0.236729
Done.

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

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  2.426e-05  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:  7.404e-01  2.367e-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.329e+00  2.433e-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: 8.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/105544/likelihoodResults_527558401_527817601_4FGL_J1150.4+2418_daily_bin1112.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) = 6316.90369042
delta logL = -0.00206521846485

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6316.9016235
delta logL = 1.69612121681e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11271E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2957       1.0000          .0000       10.000    
     3 'Normalizat'    1.3294       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74024       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=   6316.573     FROM MIGRAD    STATUS=CONVERGED    124 CALLS      296 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15360        11.559        .85125E-02    .72954E-03
   2  Index         3.8435        6.8521        .16758       -.28208E-04
   3  Normalizat    1.2704        .30802        .55425E-01   -.27315E-03
   4  Prefactor     .77573        .14548        .71146E-01    .39416E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.153598
  Index      = 3.84348
  Normalizat = 1.27035
  Prefactor  = 0.775731
 **********
 **   18 **HESSE 
 **********

 FCN=   6316.573     FROM HESSE     STATUS=OK            31 CALLS      327 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15360        2.4616        .37954E-04   -1.5786    
   2  Index         3.8435        3.4072        .59381E-02   -.23342    
   3  Normalizat    1.2704        .23445        .24509E-03   -.84456    
   4  Prefactor     .77573        .23599        .31485E-03   -1.0063    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.77551e-10
Minuit parameter uncertainties:
  1  1.22945
  2  3.77475
  3  0.234648
  4  0.236294
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/105544': 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) = 6316.57299518
delta logL = 0.328630014817

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  1.536e-01  1.229e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  3.843e+00  3.775e+00  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:  7.757e-01  2.363e-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.270e+00  2.346e-01  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/105544/cmap_HighResolution_527558401_527817601_4FGL_J1150.4+2418_daily_bin1112.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.22e-03', job_status='DONE', photon_flux_upper_limit='8.14e-08', time_completed='2021-09-04 13:10:05.290145', job_id='105544', GAL2='0.78', fit_tolerance='1e-08', EG2='1.27', EG='1.33', time_epoch_completed='1630786205.29', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='3.29e-01', ts2='0.71', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1112' AND source_name='4FGL J1150.4+2418' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:10:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 105544: <4FGL_J1150.4+2418_daily_bin1112> in cluster <slac> Done

Job <4FGL_J1150.4+2418_daily_bin1112> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 12:56:23 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:56:25 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:56:25 2021
Terminated at Sat Sep  4 13:10:05 2021
Results reported at Sat Sep  4 13:10:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.4+2418_daily_bin1112 177.603 24.3016 527558401 527817601 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 :                                   797.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            822 sec.

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

