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


Performing analysis on: 4FGL_J1150.4+2418_daily_bin1400
RA = 177.603, Dec = 24.3016
tmin = 602208001, tmax = 602467201
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='107122', job_status='RUN', time_executed='2021-09-04 13:04:12.705968', time_epoch_executed='1630785852.71' WHERE source_name='4FGL J1150.4+2418' and cadence='daily' and bin_id='1400'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/107122

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/107122/ft1_4FGL_J1150.4+2418_daily_bin1400.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/107122/ft2_4FGL_J1150.4+2418_daily_bin1400.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/107122/ft1_4FGL_J1150.4+2418_daily_bin1400.fits outfile=/scratch/kocevski/107122/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin1400.fits ra=177.603 dec=24.3016 rad=12.0 tmin=602208001.0 tmax=602467201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.40
user 4.97
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/107122/ft1_filtered_4FGL_J1150.4+2418_daily_bin1400.fits" evtable="EVENTS" scfile=/scratch/kocevski/107122/ft2_4FGL_J1150.4+2418_daily_bin1400.fits sctable="SC_DATA" outfile=/scratch/kocevski/107122/ltcube_602208001_602467201_4FGL_J1150.4+2418_daily_bin1400.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/107122/ft2_4FGL_J1150.4+2418_daily_bin1400.fits
.....................!
real 11.89
user 11.47
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/107122/ft1_filtered_4FGL_J1150.4+2418_daily_bin1400.fits evtable="EVENTS" scfile=/scratch/kocevski/107122/ft2_4FGL_J1150.4+2418_daily_bin1400.fits sctable="SC_DATA" expcube=/scratch/kocevski/107122/ltcube_602208001_602467201_4FGL_J1150.4+2418_daily_bin1400.fits outfile=/scratch/kocevski/107122/expmap_602208001_602467201_4FGL_J1150.4+2418_daily_bin1400.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/107122/ltcube_602208001_602467201_4FGL_J1150.4+2418_daily_bin1400.fits
.....................!
real 192.34
user 185.88
sys 5.64

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/107122/ft1_filtered_4FGL_J1150.4+2418_daily_bin1400.fits scfile=/scratch/kocevski/107122/ft2_4FGL_J1150.4+2418_daily_bin1400.fits outfile=/scratch/kocevski/107122/cmap_602208001_602467201_4FGL_J1150.4+2418_daily_bin1400.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.57
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/107122/ft1_filtered_4FGL_J1150.4+2418_daily_bin1400.fits scfile=/scratch/kocevski/107122/ft2_4FGL_J1150.4+2418_daily_bin1400.fits outfile=/scratch/kocevski/107122/cmap_HighResolution_602208001_602467201_4FGL_J1150.4+2418_daily_bin1400.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.59
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    3.7189       1.0000         .10000E-03   10000.    
     3 'norm      '    3.9319       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.5370       1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.348       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.8286       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10336E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.1769       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.8357       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.8461       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.8359       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .98888E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.2211       1.0000         .10000E-03   10000.    
    22 'norm      '    .18411       1.0000         .10000E-03   10000.    
    23 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.5418       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0832       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .71490       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=   5518.675     FROM MIGRAD    STATUS=CONVERGED    631 CALLS     3118 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.4105       -.21192E-08** at limit **
   2  Prefactor     3.7189        4.9131        .20471E-06    .89735E-04
   3  norm          3.9329        8.7815        .44425E-05   -.11632E-02
   4  Prefactor     8.5366        11.438        .11364E-06    .49746E-04
   5  Prefactor     26.357        18.518       -.40993E-05   -.78595E-03
   6  Prefactor     8.8182        34.791       -.52670E-05   -.10353E-03
   7  Prefactor     .10000E-03    7.8485       -.15543E-06** at limit **
   8  Prefactor     .10000E-03    3.5295        .65946E-07** at limit **
   9  Prefactor     .10000E-03    13.721       -.72956E-06** at limit **
  10  Prefactor     .10000E-03    2.0554        .13231E-07** at limit **
  11  Prefactor     2.1770        1.5273       -.44024E-07   -.74269E-04
  12  Prefactor     .10000E-03    15.788        .18558E-05** at limit **
  13  norm          5.8360        1.5946       -.27841E-08    .18967E-05
  14  Prefactor     .10000E-03    1.4943        .82667E-06** at limit **
  15  Prefactor     .10000E-03    18.303       -.10600E-05** at limit **
  16  Prefactor     .10000E-03    1.3558        .31745E-07** at limit **
  17  Prefactor     .10000E-03    1.4912       -.24663E-06** at limit **
  18  norm          8.8474        3.7268        .60156E-07   -.16152E-04
  19  Prefactor     5.8370        3.0663        .14541E-08   -.16005E-03
  20  Prefactor     .10065E-03    .98140        .12496E-06** at limit **
  21  Prefactor     5.2210        4.6267       -.86257E-07   -.65868E-04
  22  norm          .18406        .20388        .16567E-07   -.63922E-03
  23  norm          .10000E-03    1.4925       -.53461E-06** at limit **
  24  Prefactor     9.5476        11.232       -.18974E-05   -.46053E-03
  25  Normalizat    1.0830        .17237        .70950E-06   -.97885E-04
  26  Prefactor     .71517        .18004       -.10535E-06    .98404E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.71885
  norm       = 3.93286
  Prefactor  = 8.53658
  Prefactor  = 26.3565
  Prefactor  = 8.81822
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.177
  Prefactor  = 0.000100001
  norm       = 5.83599
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.84736
  Prefactor  = 5.83697
  Prefactor  = 0.000100653
  Prefactor  = 5.22097
  norm       = 0.184061
  norm       = 0.0001
  Prefactor  = 9.54762
  Normalizat = 1.08302
  Prefactor  = 0.715171
 **********
 **   18 **HESSE 
 **********

 FCN=   5518.675     FROM HESSE     STATUS=OK           468 CALLS     3586 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.4393        .86108E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.7189        4.8998        .18159E-03   -1.5322    
   3  norm          3.9329        11.294        .10172E-02   -1.5311    
   4  Prefactor     8.5366        11.436        .13720E-03   -1.5124    
   5  Prefactor     26.357        19.139        .78043E-04   -1.4681    
   6  Prefactor     8.8182        35.251        .13490E-03   -1.5114    
   7  Prefactor     .10000E-03    7.8775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.5867        .13621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.0565        .10401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.1770        1.5208        .74089E-04   -1.5413    
  12  Prefactor     .10000E-03    15.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.8360        1.5979        .46726E-04   -1.5225    
  14  Prefactor     .10000E-03    1.5193        .88712E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    18.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.3889        .16873E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.5349        .17719E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.8474        3.7492        .82934E-04   -1.5113    
  19  Prefactor     5.8370        3.0843        .83879E-04   -1.5225    
  20  Prefactor     .10065E-03    2.9690        .24381E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.2210        4.6198        .14530E-03   -1.5251    
  22  norm          .18406        .19301        .33341E-03   -1.5622    
  23  norm          .10000E-03    1.5056        .88693E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     9.5476        11.464        .12973E-03   -1.5090    
  25  Normalizat    1.0830        .20173        .21821E-03   -.90299    
  26  Prefactor     .71517        .20736        .28702E-03   -1.0294    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.73934e-09
Minuit parameter uncertainties:
  1  7.18812e-07
  2  4.90035
  3  11.3006
  4  11.4394
  5  19.1434
  6  35.2983
  7  9.17152e-05
  8  1.40462e-05
  9  7.99794e-05
  10  1.01622e-06
  11  1.52081
  12  0.000205983
  13  1.59793
  14  2.21052e-05
  15  0.00014771
  16  4.67084e-06
  17  1.32441e-05
  18  3.74933
  19  3.08437
  20  0.00278595
  21  4.6201
  22  0.193013
  23  1.73213e-05
  24  11.4666
  25  0.201872
  26  0.207586
Done.

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

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  2.177e+00  1.521e+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:  7.152e-01  2.076e-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.083e+00  2.019e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.95
Ra Dec: 177.603 24.302
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 3.77e-08 +/- 2.63e-08
Energy Flux (Fixed Index): 1.61e-05 +/- 1.12e-05

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

Saving results to:
/scratch/kocevski/107122/likelihoodResults_602208001_602467201_4FGL_J1150.4+2418_daily_bin1400.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) = 5518.66588124
delta logL = 0.00867198310789

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5518.6606796
delta logL = 0.0138736280569

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9953       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3288       1.0000          .0000       10.000    
     3 'Normalizat'    1.0791       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71787       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=   5518.661     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      234 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9952        1.8958        .70351E-04    .31124E-03
   2  Index         2.3286        .64105        .62442E-02    .28428E-04
   3  Normalizat    1.0791        .18891        .21855E-03   -.53632E-04
   4  Prefactor     .71792        .20496        .28653E-03   -.53484E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.99517
  Index      = 2.32864
  Normalizat = 1.07911
  Prefactor  = 0.71792
 **********
 **   18 **HESSE 
 **********

 FCN=   5518.661     FROM HESSE     STATUS=OK            25 CALLS      259 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9952        1.8147        .28140E-05   -1.5425    
   2  Index         2.3286        .61350        .24977E-03   -.56365    
   3  Normalizat    1.0791        .18893        .87419E-05   -.90425    
   4  Prefactor     .71792        .20503        .11461E-04   -1.0283    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54647e-11
Minuit parameter uncertainties:
  1  1.81478
  2  0.615672
  3  0.189045
  4  0.205246
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/107122': 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) = 5518.66067934
delta logL = 0.0138738876212

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  1.995e+00  1.815e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  2.329e+00  6.157e-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:  7.179e-01  2.052e-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.079e+00  1.890e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.95
Ra Dec: 177.603 24.302
Photon Index (Free Index): 2.33 +/- 0.62
Photon Flux (Free Index): 4.06e-08 +/- 3.30e-08
Energy Flux (Free Index): 1.47e-05 +/- 1.25e-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/107122/cmap_HighResolution_602208001_602467201_4FGL_J1150.4+2418_daily_bin1400.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.51e-03', comment='SUCCESS', photon_flux='3.77e-08', energy_flux2='1.47e-05', photon_flux_error='2.63e-08', dlogl='1.39e-02', energy_flux='1.61e-05', photon_flux2='4.06e-08', job_status='DONE', time_completed='2021-09-04 13:16:41.912145', photon_index_error2='0.62', photon_index2='2.33', ts='3.95', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', photon_flux_upper_limit='9.83e-08', energy_flux_error2='1.25e-05', EG='1.08', time_epoch_completed='1630786601.91', return_code='0', job_id='107122', GAL2='0.72', EG2='1.08', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='3.30e-08', ts2='3.95', photon_index='2.23' WHERE bin_id='1400' AND source_name='4FGL J1150.4+2418' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:16:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 107122: <4FGL_J1150.4+2418_daily_bin1400> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.4+2418_daily_bin1400 177.603 24.3016 602208001 602467201 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 :                                   743.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            912 sec.

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

