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


Performing analysis on: 4FGL_J1150.4+2418_daily_bin1458
RA = 177.603, Dec = 24.3016
tmin = 617241601, tmax = 617500801
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='107216', job_status='RUN', time_executed='2021-09-04 13:01:57.037573', time_epoch_executed='1630785717.04' WHERE source_name='4FGL J1150.4+2418' and cadence='daily' and bin_id='1458'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/107216

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/107216/ft1_4FGL_J1150.4+2418_daily_bin1458.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/107216/ft2_4FGL_J1150.4+2418_daily_bin1458.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/107216/ft1_4FGL_J1150.4+2418_daily_bin1458.fits outfile=/scratch/kocevski/107216/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin1458.fits ra=177.603 dec=24.3016 rad=12.0 tmin=617241601.0 tmax=617500801.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 2.96
user 2.73
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/107216/ft1_filtered_4FGL_J1150.4+2418_daily_bin1458.fits" evtable="EVENTS" scfile=/scratch/kocevski/107216/ft2_4FGL_J1150.4+2418_daily_bin1458.fits sctable="SC_DATA" outfile=/scratch/kocevski/107216/ltcube_617241601_617500801_4FGL_J1150.4+2418_daily_bin1458.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/107216/ft2_4FGL_J1150.4+2418_daily_bin1458.fits
.....................!
real 12.47
user 12.14
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/107216/ft1_filtered_4FGL_J1150.4+2418_daily_bin1458.fits evtable="EVENTS" scfile=/scratch/kocevski/107216/ft2_4FGL_J1150.4+2418_daily_bin1458.fits sctable="SC_DATA" expcube=/scratch/kocevski/107216/ltcube_617241601_617500801_4FGL_J1150.4+2418_daily_bin1458.fits outfile=/scratch/kocevski/107216/expmap_617241601_617500801_4FGL_J1150.4+2418_daily_bin1458.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/107216/ltcube_617241601_617500801_4FGL_J1150.4+2418_daily_bin1458.fits
.....................!
real 191.23
user 186.29
sys 4.60

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/107216/ft1_filtered_4FGL_J1150.4+2418_daily_bin1458.fits scfile=/scratch/kocevski/107216/ft2_4FGL_J1150.4+2418_daily_bin1458.fits outfile=/scratch/kocevski/107216/cmap_617241601_617500801_4FGL_J1150.4+2418_daily_bin1458.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/107216/ft1_filtered_4FGL_J1150.4+2418_daily_bin1458.fits scfile=/scratch/kocevski/107216/ft2_4FGL_J1150.4+2418_daily_bin1458.fits outfile=/scratch/kocevski/107216/cmap_HighResolution_617241601_617500801_4FGL_J1150.4+2418_daily_bin1458.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.984       1.0000         .10000E-03   10000.    
     3 'norm      '    1.7240       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .80085       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.2887       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.4169       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.846       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.0045       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0477       1.0000         .10000E-03   10000.    
    12 'Prefactor '    49.002       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10667E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .68108       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.8588       1.0000         .10000E-03   10000.    
    18 'norm      '    4.2770       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.0469       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.0485       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.1191       1.0000         .10000E-03   10000.    
    22 'norm      '    .10798       1.0000         .10000E-03   10000.    
    23 'norm      '    4.2030       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .81108       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2569       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6519.460     FROM MIGRAD    STATUS=CONVERGED    113 CALLS     2764 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.5261       -.12440E-06** at limit **
   2  Prefactor     14.985        1.0736       -.27315E-08   -.41104E-03
   3  norm          1.7304        1.5576       -.30467E-06    .14278E-02
   4  Prefactor     .10000E-03    9.6374       -.18103E-05** at limit **
   5  Prefactor     .10000E-03    7.1085        .15998E-05** at limit **
   6  Prefactor     1.3367        431.72       -.19807E-04   -.14150E-04
   7  Prefactor     3.2966        1.2639       -.20845E-06    .64121E-03
   8  Prefactor     2.4173        5.1102        .37110E-06    .51532E-03
   9  Prefactor     14.844        16.557        .28198E-06    .12943E-02
  10  Prefactor     2.0053        1.3653       -.12138E-06    .12174E-03
  11  Prefactor     1.0494        1.2713        .79567E-07    .39152E-04
  12  Prefactor     49.005        4.2593        .55279E-07   -.10529E-01
  13  norm          .10000E-03    .56550       -.29955E-07** at limit **
  14  Prefactor     .10000E-03    2.3206       -.22321E-07** at limit **
  15  Prefactor     .10000E-03    16.849        .33672E-05** at limit **
  16  Prefactor     .68206        2.2988       -.78697E-06   -.22654E-05
  17  Prefactor     3.8605        3.3914        .26172E-06    .89101E-04
  18  norm          4.2775        2.2072       -.85474E-08    .35613E-04
  19  Prefactor     1.0470        1.0688       -.80372E-07   -.62413E-06
  20  Prefactor     1.0489        1.5921       -.33578E-06   -.35048E-04
  21  Prefactor     3.1209        1.6952        .10979E-06    .26893E-03
  22  norm          .10803        .15395       -.22127E-07    .52253E-04
  23  norm          4.2039        3.2628        .17968E-06    .13077E-03
  24  Prefactor     .10000E-03    4.6600        .21456E-06** at limit **
  25  Normalizat    .81092        .20171        .20774E-05    .56657E-04
  26  Prefactor     1.2567        .21523        .21541E-07    .52500E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 14.9847
  norm       = 1.73042
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.33674
  Prefactor  = 3.29659
  Prefactor  = 2.41727
  Prefactor  = 14.8445
  Prefactor  = 2.00527
  Prefactor  = 1.04942
  Prefactor  = 49.0054
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.682058
  Prefactor  = 3.86053
  norm       = 4.2775
  Prefactor  = 1.04697
  Prefactor  = 1.04893
  Prefactor  = 3.12091
  norm       = 0.108033
  norm       = 4.20393
  Prefactor  = 0.0001
  Normalizat = 0.810916
  Prefactor  = 1.25675
 **********
 **   18 **HESSE 
 **********

 FCN=   6519.460     FROM HESSE     STATUS=OK           530 CALLS     3294 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.4954        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.985        8.8881        .25867E-02   -1.4934    
   3  norm          1.7304        10.873        .79965E-02   -1.5445    
   4  Prefactor     .10000E-03    9.5258        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.0923        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.3367        45.576        .15850       -1.5477    
   7  Prefactor     3.2966        11.260        .55818E-02   -1.5345    
   8  Prefactor     2.4173        5.4136        .65824E-02   -1.5397    
   9  Prefactor     14.844        16.744        .25987E-02   -1.4937    
  10  Prefactor     2.0053        5.9857        .73119E-02   -1.5425    
  11  Prefactor     1.0494        1.2745        .12128E-02   -1.5503    
  12  Prefactor     49.005        28.837        .14321E-02   -1.4307    
  13  norm          .10000E-03    .33317        .25102E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.2664        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.772        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .68206        2.3774        .11989E-01   -1.5543    
  17  Prefactor     3.8605        3.5059        .51357E-02   -1.5315    
  18  norm          4.2775        2.2161        .48703E-02   -1.5294    
  19  Prefactor     1.0470        1.0099        .17751E-01   -1.5503    
  20  Prefactor     1.0489        1.6573        .12113E-01   -1.5503    
  21  Prefactor     3.1209        4.8591        .57394E-02   -1.5355    
  22  norm          .10803        .17037        .81752E-02   -1.5642    
  23  norm          4.2039        3.6561        .49142E-02   -1.5298    
  24  Prefactor     .10000E-03    4.6242        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .81092        .18087        .43755E-01   -.99665    
  26  Prefactor     1.2567        .18442        .55253E-01   -.84602    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1607e-07
Minuit parameter uncertainties:
  1  9.70389e-07
  2  8.88891
  3  8.67721
  4  1.68487e-05
  5  1.32282e-05
  6  15.6231
  7  11.2676
  8  5.41466
  9  16.7493
  10  5.98749
  11  1.27457
  12  28.8451
  13  1.73366e-08
  14  1.00121e-07
  15  4.87982e-05
  16  2.37773
  17  3.50604
  18  2.21617
  19  1.00989
  20  1.65733
  21  4.85973
  22  0.170367
  23  3.65624
  24  3.81842e-06
  25  0.181002
  26  0.184516
Done.

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

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  1.049e+00  1.275e+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

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  1.257e+00  1.845e-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:  8.109e-01  1.810e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.27
Ra Dec: 177.603 24.302
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 1.82e-08 +/- 2.20e-08
Energy Flux (Fixed Index): 7.75e-06 +/- 9.41e-06

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

Saving results to:
/scratch/kocevski/107216/likelihoodResults_617241601_617500801_4FGL_J1150.4+2418_daily_bin1458.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) = 6519.29178642
delta logL = 0.168128146926

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6519.28648078
delta logL = 0.173433787214

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2612       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7843       1.0000          .0000       10.000    
     3 'Normalizat'    .81871       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2520       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=   6519.286     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      234 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2604        66.684        .99275E-02    .16977E-03
   2  Index         1.7841        5.0702        .27200       -.10010E-04
   3  Normalizat    .81850        .78633E-01    .43854E-01    .18531E-04
   4  Prefactor     1.2523        .75899E-01    .55325E-01    .78949E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.26043
  Index      = 1.78406
  Normalizat = 0.818498
  Prefactor  = 1.25226
 **********
 **   18 **HESSE 
 **********

 FCN=   6519.286     FROM HESSE     STATUS=OK            33 CALLS      267 TOTAL
                     EDM=   .21E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2604        1.4690        .10308E-03   -1.5483    
   2  Index         1.7841        .71251        .10739E-01   -.69865    
   3  Normalizat    .81850        .19059        .26544E-03   -.99386    
   4  Prefactor     1.2523        .21323        .24463E-03   -.84738    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08117e-13
Minuit parameter uncertainties:
  1  1.46899
  2  0.716688
  3  0.190745
  4  0.213381
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/107216': 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) = 6519.28647994
delta logL = 0.173434624119

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  1.260e+00  1.469e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  1.784e+00  7.167e-01  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:  1.252e+00  2.134e-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:  8.185e-01  1.907e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.62
Ra Dec: 177.603 24.302
Photon Index (Free Index): 1.78 +/- 0.72
Photon Flux (Free Index): 1.17e-08 +/- 1.76e-08
Energy Flux (Free Index): 1.47e-05 +/- 2.46e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/107216/cmap_HighResolution_617241601_617500801_4FGL_J1150.4+2418_daily_bin1458.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.83e-03', comment='SUCCESS', photon_flux='1.82e-08', energy_flux2='1.47e-05', photon_flux_error='2.20e-08', dlogl='1.73e-01', energy_flux='7.75e-06', photon_flux2='1.17e-08', job_status='DONE', time_completed='2021-09-04 13:15:00.739528', photon_index_error2='0.72', photon_index2='1.78', ts='1.27', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', photon_flux_upper_limit='7.64e-08', energy_flux_error2='2.46e-05', EG='0.81', time_epoch_completed='1630786500.74', return_code='0', job_id='107216', GAL2='1.25', EG2='0.82', return_code2='0', energy_flux_error='9.41e-06', photon_flux_error2='1.76e-08', ts2='1.62', photon_index='2.23' WHERE bin_id='1458' AND source_name='4FGL J1150.4+2418' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:15:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 107216: <4FGL_J1150.4+2418_daily_bin1458> in cluster <slac> Done

Job <4FGL_J1150.4+2418_daily_bin1458> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 13:01:38 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 13:01: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 13:01:39 2021
Terminated at Sat Sep  4 13:15:01 2021
Results reported at Sat Sep  4 13:15:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.4+2418_daily_bin1458 177.603 24.3016 617241601 617500801 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 :                                   780.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             301.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            803 sec.

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

