/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 3 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 = 7404
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1150.4+2418_daily_bin104
RA = 177.603, Dec = 24.3016
tmin = 266284801, tmax = 266544001
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='99398', job_status='RUN', time_executed='2021-09-04 12:37:09.075844', time_epoch_executed='1630784229.08' WHERE source_name='4FGL J1150.4+2418' and cadence='daily' and bin_id='104'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/99398

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/99398/ft1_4FGL_J1150.4+2418_daily_bin104.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/99398/ft2_4FGL_J1150.4+2418_daily_bin104.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/99398/ft1_4FGL_J1150.4+2418_daily_bin104.fits outfile=/scratch/kocevski/99398/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin104.fits ra=177.603 dec=24.3016 rad=12.0 tmin=266284801.0 tmax=266544001.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 1.48
user 1.24
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/99398/ft1_filtered_4FGL_J1150.4+2418_daily_bin104.fits" evtable="EVENTS" scfile=/scratch/kocevski/99398/ft2_4FGL_J1150.4+2418_daily_bin104.fits sctable="SC_DATA" outfile=/scratch/kocevski/99398/ltcube_266284801_266544001_4FGL_J1150.4+2418_daily_bin104.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/99398/ft2_4FGL_J1150.4+2418_daily_bin104.fits
.....................!
real 12.73
user 12.37
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/99398/ft1_filtered_4FGL_J1150.4+2418_daily_bin104.fits evtable="EVENTS" scfile=/scratch/kocevski/99398/ft2_4FGL_J1150.4+2418_daily_bin104.fits sctable="SC_DATA" expcube=/scratch/kocevski/99398/ltcube_266284801_266544001_4FGL_J1150.4+2418_daily_bin104.fits outfile=/scratch/kocevski/99398/expmap_266284801_266544001_4FGL_J1150.4+2418_daily_bin104.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/99398/ltcube_266284801_266544001_4FGL_J1150.4+2418_daily_bin104.fits
.....................!
real 190.25
user 185.27
sys 4.48

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/99398/ft1_filtered_4FGL_J1150.4+2418_daily_bin104.fits scfile=/scratch/kocevski/99398/ft2_4FGL_J1150.4+2418_daily_bin104.fits outfile=/scratch/kocevski/99398/cmap_266284801_266544001_4FGL_J1150.4+2418_daily_bin104.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/99398/ft1_filtered_4FGL_J1150.4+2418_daily_bin104.fits scfile=/scratch/kocevski/99398/ft2_4FGL_J1150.4+2418_daily_bin104.fits outfile=/scratch/kocevski/99398/cmap_HighResolution_266284801_266544001_4FGL_J1150.4+2418_daily_bin104.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2645       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.9805       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1596       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.1800       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.0951       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.9975       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5000       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4959       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.199       1.0000         .10000E-03   10000.    
    13 'norm      '    2.0558       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.3918       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.5381       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.9199       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.1163       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.6651       1.0000         .10000E-03   10000.    
    22 'norm      '    .48356       1.0000         .10000E-03   10000.    
    23 'norm      '    6.6424       1.0000         .10000E-03   10000.    
    24 'Prefactor '    20.222       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1212       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0747       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=   9172.396     FROM MIGRAD    STATUS=CONVERGED    617 CALLS     2696 TOTAL
                     EDM=   .95E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2644        1.7576        .17596E-06    .12951E-03
   2  Prefactor     .10000E-03    2.1687       -.28820E-07** at limit **
   3  norm          5.9804        6.6568       -.12794E-07   -.13856E-04
   4  Prefactor     3.1590        7.2554        .43721E-06   -.17022E-04
   5  Prefactor     .10000E-03    4.0377        .38553E-07** at limit **
   6  Prefactor     2.0909        153.94        .33649E-05   -.10015E-04
   7  Prefactor     .10000E-03    6.0423        .10815E-06** at limit **
   8  Prefactor     9.0952        4.8173        .42927E-07   -.11792E-03
   9  Prefactor     7.9928        13.938       -.12173E-05   -.79768E-04
  10  Prefactor     2.5000        5.8877        .51493E-05   -.11311E-03
  11  Prefactor     2.4962        1.4262        .11582E-06    .39522E-03
  12  Prefactor     11.199        26.030        .20481E-05    .59771E-05
  13  norm          2.0560        1.1309        .89992E-07    .19455E-03
  14  Prefactor     .10000E-03    1.2528        .37681E-07** at limit **
  15  Prefactor     .10000E-03    20.538       -.76926E-06** at limit **
  16  Prefactor     2.3918        1.9405       -.10217E-07   -.22609E-03
  17  Prefactor     1.5379        2.3274        .22764E-06   -.30211E-04
  18  norm          .10000E-03    .81641        .61492E-08** at limit **
  19  Prefactor     3.9198        1.6933        .50585E-08   -.22677E-04
  20  Prefactor     8.1161        2.5489        .30760E-07   -.12555E-03
  21  Prefactor     1.6648        4.7075        .54158E-06   -.83523E-04
  22  norm          .48355        .19375        .47106E-08   -.80123E-03
  23  norm          6.6423        3.8537        .10561E-06   -.66994E-04
  24  Prefactor     20.222        8.6874        .17400E-08   -.23430E-04
  25  Normalizat    1.1211        .15955       -.75661E-06   -.28924E-03
  26  Prefactor     1.0748        .16597       -.78269E-06   -.27822E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.26439
  Prefactor  = 0.0001
  norm       = 5.98042
  Prefactor  = 3.15901
  Prefactor  = 0.0001
  Prefactor  = 2.09086
  Prefactor  = 0.0001
  Prefactor  = 9.09522
  Prefactor  = 7.99279
  Prefactor  = 2.49996
  Prefactor  = 2.49622
  Prefactor  = 11.1993
  norm       = 2.05596
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.39185
  Prefactor  = 1.53795
  norm       = 0.0001
  Prefactor  = 3.91978
  Prefactor  = 8.11613
  Prefactor  = 1.6648
  norm       = 0.483554
  norm       = 6.64231
  Prefactor  = 20.2222
  Normalizat = 1.12114
  Prefactor  = 1.0748
 **********
 **   18 **HESSE 
 **********

 FCN=   9172.396     FROM HESSE     STATUS=OK           470 CALLS     3166 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2644        1.7295        .14447E-03   -1.5483    
   2  Prefactor     .10000E-03    2.1791        .13770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.9804        6.6505        .16419E-03   -1.5219    
   4  Prefactor     3.1590        7.2420        .22802E-03   -1.5352    
   5  Prefactor     .10000E-03    4.0437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.0909        154.64        .27883E-03   -1.5419    
   7  Prefactor     .10000E-03    6.1105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.0952        4.8147        .13290E-03   -1.5105    
   9  Prefactor     7.9928        13.947        .14178E-03   -1.5142    
  10  Prefactor     2.5000        5.8876        .12924E-02   -1.5392    
  11  Prefactor     2.4962        1.4233        .82538E-04   -1.5392    
  12  Prefactor     11.199        26.079        .11971E-03   -1.5039    
  13  norm          2.0560        1.1234        .71325E-04   -1.5421    
  14  Prefactor     .10000E-03    2.5457        .20699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    20.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.3918        1.9149        .11190E-03   -1.5399    
  17  Prefactor     1.5379        2.2943        .16632E-03   -1.5460    
  18  norm          .10000E-03    .84140        .16878E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.9198        1.6938        .79392E-04   -1.5312    
  20  Prefactor     8.1161        2.5485        .81271E-04   -1.5138    
  21  Prefactor     1.6648        4.6548        .32212E-03   -1.5450    
  22  norm          .48355        .19222        .25444E-04   -1.5569    
  23  norm          6.6423        3.8281        .13317E-03   -1.5192    
  24  Prefactor     20.222        8.6881        .89067E-04   -1.4808    
  25  Normalizat    1.1211        .19039        .25721E-03   -.89076    
  26  Prefactor     1.0748        .19761        .28652E-03   -.90276    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78345e-10
Minuit parameter uncertainties:
  1  1.72956
  2  2.05715e-06
  3  6.65136
  4  7.24401
  5  5.81857e-06
  6  36.0595
  7  2.03229e-05
  8  4.81491
  9  13.9522
  10  5.88894
  11  1.42336
  12  26.1052
  13  1.12339
  14  5.37989e-06
  15  0.000225748
  16  1.91492
  17  2.29446
  18  5.87434e-07
  19  1.69381
  20  2.54851
  21  4.65577
  22  0.192222
  23  3.82827
  24  8.68865
  25  0.190504
  26  0.197745
Done.

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

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  2.496e+00  1.423e+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.075e+00  1.977e-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.121e+00  1.905e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.99
Ra Dec: 177.603 24.302
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 4.32e-08 +/- 2.46e-08
Energy Flux (Fixed Index): 1.84e-05 +/- 1.05e-05

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) = 9172.32969893
delta logL = 0.0659493904859

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9172.32304481
delta logL = 0.0726035074422

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7450       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0542       1.0000          .0000       10.000    
     3 'Normalizat'    1.1293       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0698       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=   9172.323     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      243 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7451        39.645        .61431E-02    .15946E-03
   2  Index         2.0541        5.9469        .16461        .65847E-04
   3  Normalizat    1.1293        .11045        .57978E-01    .13057E-04
   4  Prefactor     1.0698        .83800E-01    .64904E-01    .15159E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.74511
  Index      = 2.0541
  Normalizat = 1.12931
  Prefactor  = 1.0698
 **********
 **   18 **HESSE 
 **********

 FCN=   9172.323     FROM HESSE     STATUS=OK            33 CALLS      276 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7451        1.6611        .88451E-04   -1.5377    
   2  Index         2.0541        .45239        .83207E-02   -.63004    
   3  Normalizat    1.1293        .17981        .25640E-03   -.88816    
   4  Prefactor     1.0698        .19610        .28709E-03   -.90438    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59582e-12
Minuit parameter uncertainties:
  1  1.66116
  2  0.453345
  3  0.179904
  4  0.196231
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/99398': 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) = 9172.32304476
delta logL = 0.0726035612806

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  2.745e+00  1.661e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  2.054e+00  4.533e-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.070e+00  1.962e-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.129e+00  1.799e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.12
Ra Dec: 177.603 24.302
Photon Index (Free Index): 2.05 +/- 0.45
Photon Flux (Free Index): 3.64e-08 +/- 2.71e-08
Energy Flux (Free Index): 2.21e-05 +/- 1.79e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/99398/cmap_HighResolution_266284801_266544001_4FGL_J1150.4+2418_daily_bin104.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.32e-08', energy_flux2='2.21e-05', photon_flux_error='2.46e-08', dlogl='7.26e-02', energy_flux='1.84e-05', photon_flux2='3.64e-08', job_status='DONE', time_completed='2021-09-04 12:50:57.135504', photon_index_error2='0.45', photon_index2='2.05', ts='6.99', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='1.79e-05', EG='1.12', time_epoch_completed='1630785057.14', return_code='0', job_id='99398', GAL2='1.07', EG2='1.13', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='2.71e-08', ts2='7.12', photon_index='2.23' WHERE bin_id='104' AND source_name='4FGL J1150.4+2418' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:50:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 99398: <4FGL_J1150.4+2418_daily_bin104> in cluster <slac> Done

Job <4FGL_J1150.4+2418_daily_bin104> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 12:36:55 2021
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:36:57 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:36:57 2021
Terminated at Sat Sep  4 12:50:57 2021
Results reported at Sat Sep  4 12:50:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.4+2418_daily_bin104 177.603 24.3016 266284801 266544001 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 :                                   824.18 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             379.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            842 sec.

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

