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


Performing analysis on: 4FGL_J1150.4+2418_daily_bin1240
RA = 177.603, Dec = 24.3016
tmin = 560736001, tmax = 560995201
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='105765', job_status='RUN', time_executed='2021-09-04 12:56:56.042457', time_epoch_executed='1630785416.04' WHERE source_name='4FGL J1150.4+2418' and cadence='daily' and bin_id='1240'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/105765

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/105765/ft1_4FGL_J1150.4+2418_daily_bin1240.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/105765/ft2_4FGL_J1150.4+2418_daily_bin1240.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/105765/ft1_4FGL_J1150.4+2418_daily_bin1240.fits outfile=/scratch/kocevski/105765/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin1240.fits ra=177.603 dec=24.3016 rad=12.0 tmin=560736001.0 tmax=560995201.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.78
user 3.51
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/105765/ft1_filtered_4FGL_J1150.4+2418_daily_bin1240.fits" evtable="EVENTS" scfile=/scratch/kocevski/105765/ft2_4FGL_J1150.4+2418_daily_bin1240.fits sctable="SC_DATA" outfile=/scratch/kocevski/105765/ltcube_560736001_560995201_4FGL_J1150.4+2418_daily_bin1240.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/105765/ft2_4FGL_J1150.4+2418_daily_bin1240.fits
.....................!
real 11.93
user 11.58
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/105765/ft1_filtered_4FGL_J1150.4+2418_daily_bin1240.fits evtable="EVENTS" scfile=/scratch/kocevski/105765/ft2_4FGL_J1150.4+2418_daily_bin1240.fits sctable="SC_DATA" expcube=/scratch/kocevski/105765/ltcube_560736001_560995201_4FGL_J1150.4+2418_daily_bin1240.fits outfile=/scratch/kocevski/105765/expmap_560736001_560995201_4FGL_J1150.4+2418_daily_bin1240.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/105765/ltcube_560736001_560995201_4FGL_J1150.4+2418_daily_bin1240.fits
.....................!
real 191.11
user 185.96
sys 4.75

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/105765/ft1_filtered_4FGL_J1150.4+2418_daily_bin1240.fits scfile=/scratch/kocevski/105765/ft2_4FGL_J1150.4+2418_daily_bin1240.fits outfile=/scratch/kocevski/105765/cmap_560736001_560995201_4FGL_J1150.4+2418_daily_bin1240.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/105765/ft1_filtered_4FGL_J1150.4+2418_daily_bin1240.fits scfile=/scratch/kocevski/105765/ft2_4FGL_J1150.4+2418_daily_bin1240.fits outfile=/scratch/kocevski/105765/cmap_HighResolution_560736001_560995201_4FGL_J1150.4+2418_daily_bin1240.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.53
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/105765/ft1_filtered_4FGL_J1150.4+2418_daily_bin1240.fits', '/scratch/kocevski/105765/ft2_4FGL_J1150.4+2418_daily_bin1240.fits', expMap='/scratch/kocevski/105765/expmap_560736001_560995201_4FGL_J1150.4+2418_daily_bin1240.fits', expCube='/scratch/kocevski/105765/ltcube_560736001_560995201_4FGL_J1150.4+2418_daily_bin1240.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/105765/Model_4FGL_J1150.4+2418_daily_bin1240.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/105765/ft1_filtered_4FGL_J1150.4+2418_daily_bin1240.fits
Spacecraft file(s): /scratch/kocevski/105765/ft2_4FGL_J1150.4+2418_daily_bin1240.fits
Exposure map: /scratch/kocevski/105765/expmap_560736001_560995201_4FGL_J1150.4+2418_daily_bin1240.fits
Exposure cube: /scratch/kocevski/105765/ltcube_560736001_560995201_4FGL_J1150.4+2418_daily_bin1240.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/105765/Model_4FGL_J1150.4+2418_daily_bin1240.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 59.809433564

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 59.549816815

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .97333E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .52067E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    .39685       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .24527E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4676       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14600       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.1322       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8480       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.6146       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .82585E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .89887E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.1288       1.0000         .10000E-03   10000.    
    13 'norm      '    6.1171       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .73700E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.1752       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10516E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .99359E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.9802       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.8326       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.2056       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.5058       1.0000         .10000E-03   10000.    
    22 'norm      '    .35129E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    6.5566       1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.3878       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    .63253       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   59.54664     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      275 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13772E-03    138.78        .94985E-02** at limit **
   2  Prefactor     .10000E-03    18.598        .95730E-02** at limit **
   3  norm          .15428E-03    293.87        .10842E-01** at limit **
   4  Prefactor     .10170E-03    39.686        .91450E-02** at limit **
   5  Prefactor     2.4676        1.0222         .0000         .0000    
   6  Prefactor     .12903E-03    .23660        .40844E-04** at limit **
   7  Prefactor     2.1322        1.0305         .0000         .0000    
   8  Prefactor     1.8480        1.0423         .0000         .0000    
   9  Prefactor     3.6146        1.0099         .0000         .0000    
  10  Prefactor     .10017E-03    .27256        .13201E-05** at limit **
  11  Prefactor     .15446E-03    .22387        .10832E-04** at limit **
  12  Prefactor     5.1288        1.0048         .0000         .0000    
  13  norm          6.1171        1.0034         .0000         .0000    
  14  Prefactor     .10659E-03    .22020        .12287E-04** at limit **
  15  Prefactor     4.1752        1.0074         .0000         .0000    
  16  Prefactor     .10015E-03    .20571       -.10156E-04** at limit **
  17  Prefactor     .10001E-03    .26953        .67556E-05** at limit **
  18  norm          7.9802        1.0020         .0000         .0000    
  19  Prefactor     1.8326        1.0431         .0000         .0000    
  20  Prefactor     3.2056        1.0127         .0000         .0000    
  21  Prefactor     2.5058        1.0214         .0000         .0000    
  22  norm          .10007E-03    .24134       -.62338E-05** at limit **
  23  norm          6.5566        1.0029         .0000         .0000    
  24  Prefactor     7.3878        1.0023         .0000         .0000    
  25  Normalizat    .10000E-01    .25505        .69132E-05** at limit **
  26  Prefactor     .63280        .98154       -.92653E-04   -.20472E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000137723
  Prefactor  = 0.0001
  norm       = 0.000154276
  Prefactor  = 0.000101699
  Prefactor  = 2.46756
  Prefactor  = 0.00012903
  Prefactor  = 2.13221
  Prefactor  = 1.84799
  Prefactor  = 3.61457
  Prefactor  = 0.000100172
  Prefactor  = 0.00015446
  Prefactor  = 5.12883
  norm       = 6.1171
  Prefactor  = 0.000106594
  Prefactor  = 4.17517
  Prefactor  = 0.000100153
  Prefactor  = 0.000100008
  norm       = 7.98016
  Prefactor  = 1.83259
  Prefactor  = 3.20562
  Prefactor  = 2.50582
  norm       = 0.000100073
  norm       = 6.55658
  Prefactor  = 7.38783
  Normalizat = 0.01
  Prefactor  = 0.632796
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   59.54664     FROM HESSE     STATUS=FAILED        17 CALLS      292 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13772E-03    138.78        .94985E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.598        .95730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .15428E-03    293.87        .10842E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10170E-03    39.686        .91450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     561.76        559.18         .0000       -1.5394    
   6  Prefactor     .12903E-03    .23660        .40844E-04   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.1322        1.0305         .0000       -1.5416    
   8  Prefactor     1.8480        1.0423         .0000       -1.5436    
   9  Prefactor     3.6146        1.0099         .0000       -1.5328    
  10  Prefactor     .10017E-03    .27256        .13201E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .15446E-03    .22387        .10832E-04   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.1288        1.0048         .0000       -1.5255    
  13  norm          6.1171        1.0034         .0000       -1.5213    
  14  Prefactor     .10659E-03    .22020        .12287E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.1752        1.0074         .0000       -1.5299    
  16  Prefactor     .10015E-03    .20571       -.10156E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    .26953        .67556E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.9802        1.0020         .0000       -1.5143    
  19  Prefactor     1.8326        1.0431         .0000       -1.5437    
  20  Prefactor     3.2056        1.0127         .0000       -1.5350    
  21  Prefactor     2.5058        1.0214         .0000       -1.5391    
  22  norm          .10007E-03    .24134       -.62338E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.5566        1.0029         .0000       -1.5196    
  24  Prefactor     7.3878        1.0023         .0000       -1.5164    
  25  Normalizat    .10000E-01    .25505        .69132E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .63280        .98154       -.92653E-04   -1.0622    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.78601e-09
Minuit parameter uncertainties:
  1  0.145047
  2  3.9904e-05
  3  0.253844
  4  0.0164322
  5  1.02216
  6  0.00524159
  7  1.03054
  8  1.04231
  9  1.0099
  10  0.000433641
  11  0.00698337
  12  1.00483
  13  1.00338
  14  0.00240993
  15  1.00736
  16  0.000354264
  17  9.05177e-05
  18  1.00198
  19  1.04314
  20  1.01271
  21  1.02144
  22  0.000266139
  23  1.00294
  24  1.00231
  25  1.46736e-07
  26  1.01028
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 59.546640595

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  1.545e-04  6.983e-03  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:  6.328e-01  1.010e+00  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.000e-02  1.467e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 177.603 24.302
Photon Flux Upper Limit: 1.67e-05 ph cm-2 s-1
Energy Flux Upper Limit: 1.28e+00 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/105765/likelihoodResults_560736001_560995201_4FGL_J1150.4+2418_daily_bin1240.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) = 59.5466698439
delta logL = -2.92489179259e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 59.5466410457
delta logL = -4.50710416544e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13591E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7042       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63307       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=   59.54664     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      270 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10689E-03    293.56        .75739E-02** at limit **
   2  Index         2.5674        8.2746        .50000        .23933E-05
   3  Normalizat    .10000E-01    .19744E-02    .14613E-02** at limit **
   4  Prefactor     .63280        .30024E-01    .12908E-03    .12068E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106887
  Index      = 2.56741
  Normalizat = 0.01
  Prefactor  = 0.632798
 **********
 **   18 **HESSE 
 **********

 FCN=   59.54664     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      299 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10689E-03    2216.3        .80735E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5674        5.1281        .50000       -.50810    
   3  Normalizat    .10000E-01    .16609E-01    .29226E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .63280        .87088E-01    .25815E-04   -1.0622    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.33553e-09
Minuit parameter uncertainties:
  1  0.257266
  2  2013.18
  3  1.67596e-09
  4  0.0871062
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/105765': 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) = 59.5466405863
delta logL = 8.6505522745e-09

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  1.069e-04  2.573e-01  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  2.567e+00  2.013e+03  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:  6.328e-01  8.711e-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.000e-02  1.676e-09  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/105765/cmap_HighResolution_560736001_560995201_4FGL_J1150.4+2418_daily_bin1240.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.28e+00', job_status='DONE', photon_flux_upper_limit='1.67e-05', time_completed='2021-09-04 13:02:21.827673', job_id='105765', GAL2='0.63', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630785741.83', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.63', dlogl='8.65e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1240' AND source_name='4FGL J1150.4+2418' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:02:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 105765: <4FGL_J1150.4+2418_daily_bin1240> in cluster <slac> Done

Job <4FGL_J1150.4+2418_daily_bin1240> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 12:56:37 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:56:39 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:39 2021
Terminated at Sat Sep  4 13:02:22 2021
Results reported at Sat Sep  4 13:02:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.4+2418_daily_bin1240 177.603 24.3016 560736001 560995201 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 :                                   324.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             421.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   343 sec.
    Turnaround time :                            345 sec.

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

