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


Performing analysis on: 4FGL_J1150.4+2418_daily_bin1529
RA = 177.603, Dec = 24.3016
tmin = 635644801, tmax = 635904001
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='107331', job_status='RUN', time_executed='2021-09-04 13:02:05.132048', time_epoch_executed='1630785725.13' WHERE source_name='4FGL J1150.4+2418' and cadence='daily' and bin_id='1529'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/107331

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/107331/ft1_4FGL_J1150.4+2418_daily_bin1529.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/107331/ft2_4FGL_J1150.4+2418_daily_bin1529.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/107331/ft1_4FGL_J1150.4+2418_daily_bin1529.fits outfile=/scratch/kocevski/107331/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin1529.fits ra=177.603 dec=24.3016 rad=12.0 tmin=635644801.0 tmax=635904001.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 4.29
user 4.06
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/107331/ft1_filtered_4FGL_J1150.4+2418_daily_bin1529.fits evtable="EVENTS" scfile=/scratch/kocevski/107331/ft2_4FGL_J1150.4+2418_daily_bin1529.fits sctable="SC_DATA" expcube=/scratch/kocevski/107331/ltcube_635644801_635904001_4FGL_J1150.4+2418_daily_bin1529.fits outfile=/scratch/kocevski/107331/expmap_635644801_635904001_4FGL_J1150.4+2418_daily_bin1529.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/107331/ltcube_635644801_635904001_4FGL_J1150.4+2418_daily_bin1529.fits
.....................!
real 190.62
user 185.92
sys 4.33

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/107331/ft1_filtered_4FGL_J1150.4+2418_daily_bin1529.fits scfile=/scratch/kocevski/107331/ft2_4FGL_J1150.4+2418_daily_bin1529.fits outfile=/scratch/kocevski/107331/cmap_635644801_635904001_4FGL_J1150.4+2418_daily_bin1529.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/107331/ft1_filtered_4FGL_J1150.4+2418_daily_bin1529.fits scfile=/scratch/kocevski/107331/ft2_4FGL_J1150.4+2418_daily_bin1529.fits outfile=/scratch/kocevski/107331/cmap_HighResolution_635644801_635904001_4FGL_J1150.4+2418_daily_bin1529.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0495       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.1059       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.2993       1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.500       1.0000         .10000E-03   10000.    
    13 'norm      '    17.317       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.3268       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.2549       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.0250       1.0000         .10000E-03   10000.    
    18 'norm      '    5.5759       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.3556       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.3536       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .14835E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .25462       1.0000         .10000E-03   10000.    
    23 'norm      '    .10077E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    34.404       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1538       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0551       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=   4695.687     FROM MIGRAD    STATUS=CONVERGED    613 CALLS     3098 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0496        3.9324       -.78494E-06   -.68066E-05
   2  Prefactor     .10000E-03    5.4289       -.11912E-05** at limit **
   3  norm          .10000E-03    18.088       -.49433E-05** at limit **
   4  Prefactor     .10000E-03    5.8285        .21208E-05** at limit **
   5  Prefactor     .10000E-03    9.1197        .37201E-06** at limit **
   6  Prefactor     .10000E-03    31.567        .54801E-05** at limit **
   7  Prefactor     .10000E-03    13.694       -.18388E-05** at limit **
   8  Prefactor     2.1056        1.9205        .35968E-06   -.14464E-02
   9  Prefactor     .10000E-03    35.986       -.12262E-04** at limit **
  10  Prefactor     .10000E-03    7.1658       -.17684E-05** at limit **
  11  Prefactor     2.2978        2.8073        .13915E-06    .26323E-03
  12  Prefactor     27.500        35.045       -.14111E-06   -.17403E-04
  13  norm          17.316        3.0141       -.23672E-06    .10105E-03
  14  Prefactor     1.3264        3.8799       -.17530E-05   -.94919E-04
  15  Prefactor     .10000E-03    27.698        .10321E-04** at limit **
  16  Prefactor     2.2582        8.6030       -.11487E-06   -.23810E-05
  17  Prefactor     4.0206        9.4963       -.73335E-07   -.30420E-07
  18  norm          5.5760        4.9164        .39322E-06    .54079E-06
  19  Prefactor     7.3559        4.3350        .45774E-06    .14532E-04
  20  Prefactor     3.3542        2.9401       -.36656E-06   -.16560E-03
  21  Prefactor     .10001E-03    5.1288        .13438E-05** at limit **
  22  norm          .25461        .27719       -.24344E-08   -.31339E-03
  23  norm          .10000E-03    4.4262       -.36274E-07** at limit **
  24  Prefactor     34.404        18.992        .43266E-07   -.38065E-04
  25  Normalizat    1.1537        .24050        .80058E-06    .29020E-04
  26  Prefactor     1.0552        .25211       -.18472E-07    .42911E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.04961
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.10558
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.29782
  Prefactor  = 27.5004
  norm       = 17.3164
  Prefactor  = 1.32638
  Prefactor  = 0.0001
  Prefactor  = 2.25823
  Prefactor  = 4.02059
  norm       = 5.57605
  Prefactor  = 7.35592
  Prefactor  = 3.35417
  Prefactor  = 0.000100009
  norm       = 0.254613
  norm       = 0.0001
  Prefactor  = 34.4041
  Normalizat = 1.15366
  Prefactor  = 1.0552
 **********
 **   18 **HESSE 
 **********

 FCN=   4695.687     FROM HESSE     STATUS=OK           464 CALLS     3562 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0496        3.9393        .12815E-03   -1.5305    
   2  Prefactor     .10000E-03    5.4643        .15595E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    18.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.8382        .16158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.1362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    31.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.1056        6.0190        .13506E-02   -1.5418    
   9  Prefactor     .10000E-03    36.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.1971        .17908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.2978        2.7982        .11970E-03   -1.5405    
  12  Prefactor     27.500        35.343        .76395E-04   -1.4659    
  13  norm          17.316        3.0145        .46959E-04   -1.4875    
  14  Prefactor     1.3264        3.8185        .21785E-03   -1.5478    
  15  Prefactor     .10000E-03    27.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.2582        7.5606        .20046E-03   -1.5407    
  17  Prefactor     4.0206        8.3900        .16876E-03   -1.5307    
  18  norm          5.5760        4.9406        .12147E-03   -1.5236    
  19  Prefactor     7.3559        4.3618        .93786E-04   -1.5165    
  20  Prefactor     3.3542        2.9363        .10305E-03   -1.5342    
  21  Prefactor     .10001E-03    11.725        .29571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .25461        .26103        .35750E-03   -1.5607    
  23  norm          .10000E-03    4.4808        .14058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     34.404        18.978        .68321E-04   -1.4534    
  25  Normalizat    1.1537        .28990        .27664E-03   -.88047    
  26  Prefactor     1.0552        .30226        .31476E-03   -.90911    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.32221e-09
Minuit parameter uncertainties:
  1  3.93956
  2  4.62382e-06
  3  1.20449e-05
  4  3.68728e-06
  5  2.63767e-06
  6  2.30824e-05
  7  6.08198e-09
  8  6.02073
  9  6.0466e-05
  10  3.52266e-06
  11  2.79838
  12  35.3701
  13  3.01454
  14  3.8192
  15  4.38829e-05
  16  7.56382
  17  8.39247
  18  4.94095
  19  4.36203
  20  2.93647
  21  0.000649487
  22  0.261028
  23  1.46729e-05
  24  18.9809
  25  0.290298
  26  0.302754
Done.

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

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  2.298e+00  2.798e+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.055e+00  3.028e-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.154e+00  2.903e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.89
Ra Dec: 177.603 24.302
Photon Flux Upper Limit: 1.48e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.13e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/107331/likelihoodResults_635644801_635904001_4FGL_J1150.4+2418_daily_bin1529.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) = 4695.34636828
delta logL = 0.340763217603

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4695.32413433
delta logL = 0.362997167499

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .99041       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0580       1.0000          .0000       10.000    
     3 'Normalizat'    1.1038       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0912       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=   4695.324     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      244 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .99390        16.588        .13132E-01    .20710E-02
   2  Index         3.0571        3.2456        .11482        .23233E-03
   3  Normalizat    1.1038        .60433E-01    .63734E-01   -.75175E-04
   4  Prefactor     1.0915        .65679E-01    .70067E-01   -.43839E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.993902
  Index      = 3.05708
  Normalizat = 1.1038
  Prefactor  = 1.09147
 **********
 **   18 **HESSE 
 **********

 FCN=   4695.324     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      279 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .99390        38.066        .60000E-03   -1.5509    
   2  Index         3.0571        6.4182        .57536E-02   -.39909    
   3  Normalizat    1.1038        .32198        .28192E-03   -.89630    
   4  Prefactor     1.0915        .35763        .31000E-03   -.89740    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.70524e-10
Minuit parameter uncertainties:
  1  12.3096
  2  6.77217
  3  0.322554
  4  0.358417
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/107331': 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) = 4695.32412941
delta logL = 0.363002088866

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  9.939e-01  1.231e+01  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  3.057e+00  6.772e+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:  1.091e+00  3.584e-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.104e+00  3.226e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.64
Ra Dec: 177.603 24.302
Photon Index (Free Index): 3.06 +/- 6.77
Photon Flux (Free Index): 7.54e-08 +/- 8.36e-08
Energy Flux (Free Index): 1.47e-05 +/- 3.81e-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/107331/cmap_HighResolution_635644801_635904001_4FGL_J1150.4+2418_daily_bin1529.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', comment='SUCCESS', energy_flux2='1.47e-05', dlogl='3.63e-01', photon_flux2='7.54e-08', job_status='DONE', time_completed='2021-09-04 13:13:26.033205', photon_index_error2='6.77', photon_index2='3.06', ts='0.89', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.48e-07', energy_flux_error2='3.81e-05', EG='1.15', time_epoch_completed='1630786406.03', return_code='0', job_id='107331', GAL2='1.09', EG2='1.10', return_code2='102', photon_flux_error2='8.36e-08', ts2='1.64', photon_index='2.23' WHERE bin_id='1529' AND source_name='4FGL J1150.4+2418' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:13:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 107331: <4FGL_J1150.4+2418_daily_bin1529> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.4+2418_daily_bin1529 177.603 24.3016 635644801 635904001 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 :                                   673.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             333.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   696 sec.
    Turnaround time :                            699 sec.

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

