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


Performing analysis on: 4FGL_J1150.4+2418_daily_bin92
RA = 177.603, Dec = 24.3016
tmin = 263174401, tmax = 263433601
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='99380', job_status='RUN', time_executed='2021-09-04 12:40:54.451057', time_epoch_executed='1630784454.45' WHERE source_name='4FGL J1150.4+2418' and cadence='daily' and bin_id='92'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/99380

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/99380/ft1_4FGL_J1150.4+2418_daily_bin92.fits


Retrieving the FT1 file...

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

Retrieving 42 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/99380/ft2_4FGL_J1150.4+2418_daily_bin92.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/99380/ft1_4FGL_J1150.4+2418_daily_bin92.fits outfile=/scratch/kocevski/99380/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin92.fits ra=177.603 dec=24.3016 rad=12.0 tmin=263174401.0 tmax=263433601.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.36
user 1.19
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/99380/ft2_4FGL_J1150.4+2418_daily_bin92.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/99380/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin92.fits evtable="EVENTS" outfile="/scratch/kocevski/99380/ft1_filtered_4FGL_J1150.4+2418_daily_bin92.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/99380/ft1_filtered_4FGL_J1150.4+2418_daily_bin92.fits" evtable="EVENTS" scfile=/scratch/kocevski/99380/ft2_4FGL_J1150.4+2418_daily_bin92.fits sctable="SC_DATA" outfile=/scratch/kocevski/99380/ltcube_263174401_263433601_4FGL_J1150.4+2418_daily_bin92.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/99380/ft2_4FGL_J1150.4+2418_daily_bin92.fits
.....................!
real 11.46
user 11.09
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/99380/ft1_filtered_4FGL_J1150.4+2418_daily_bin92.fits evtable="EVENTS" scfile=/scratch/kocevski/99380/ft2_4FGL_J1150.4+2418_daily_bin92.fits sctable="SC_DATA" expcube=/scratch/kocevski/99380/ltcube_263174401_263433601_4FGL_J1150.4+2418_daily_bin92.fits outfile=/scratch/kocevski/99380/expmap_263174401_263433601_4FGL_J1150.4+2418_daily_bin92.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/99380/ltcube_263174401_263433601_4FGL_J1150.4+2418_daily_bin92.fits
.....................!
real 190.65
user 185.59
sys 4.69

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/99380/ft1_filtered_4FGL_J1150.4+2418_daily_bin92.fits scfile=/scratch/kocevski/99380/ft2_4FGL_J1150.4+2418_daily_bin92.fits outfile=/scratch/kocevski/99380/cmap_263174401_263433601_4FGL_J1150.4+2418_daily_bin92.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.74
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/99380/ft1_filtered_4FGL_J1150.4+2418_daily_bin92.fits scfile=/scratch/kocevski/99380/ft2_4FGL_J1150.4+2418_daily_bin92.fits outfile=/scratch/kocevski/99380/cmap_HighResolution_263174401_263433601_4FGL_J1150.4+2418_daily_bin92.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.58
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.6020       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.782       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.9421       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.7330       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.4587       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.8239       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10521E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11279E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    4.1029       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.4467       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.3421       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.9458       1.0000         .10000E-03   10000.    
    22 'norm      '    .99214       1.0000         .10000E-03   10000.    
    23 'norm      '    .54747E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .89389       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .89129       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=   4459.635     FROM MIGRAD    STATUS=CONVERGED    610 CALLS     3088 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .92055        .86813E-09** at limit **
   2  Prefactor     2.6013        3.0850        .90950E-06   -.21266E-02
   3  norm          .10000E-03    6.6983       -.74560E-07** at limit **
   4  Prefactor     .10000E-03    3.0247       -.13040E-06** at limit **
   5  Prefactor     23.784        18.679        .11590E-05    .57888E-04
   6  Prefactor     .10000E-03    17.235        .34617E-05** at limit **
   7  Prefactor     4.9386        10.084       -.21127E-06   -.50217E-03
   8  Prefactor     .10000E-03    1.8944        .17497E-07** at limit **
   9  Prefactor     .10000E-03    4.6040       -.12950E-05** at limit **
  10  Prefactor     .10000E-03    8.2012        .33530E-05** at limit **
  11  Prefactor     4.7329        2.2099       -.51786E-07   -.58578E-04
  12  Prefactor     .10000E-03    21.600        .37918E-05** at limit **
  13  norm          3.4585        1.5519        .10704E-06    .90796E-04
  14  Prefactor     5.8221        4.8825        .11774E-06   -.27196E-03
  15  Prefactor     .10000E-03    24.405       -.64686E-05** at limit **
  16  Prefactor     .10000E-03    2.3495        .57529E-06** at limit **
  17  Prefactor     .10001E-03    1.7464       -.32195E-07** at limit **
  18  norm          4.1028        4.3516       -.47109E-06   -.13338E-03
  19  Prefactor     2.4467        2.5679        .69941E-06    .20853E-03
  20  Prefactor     8.3429        3.5673       -.10669E-05   -.45252E-03
  21  Prefactor     5.9485        6.0588       -.78262E-07   -.72719E-04
  22  norm          .99213        .34931        .10303E-08   -.55830E-03
  23  norm          .10000E-03    3.3074        .27318E-06** at limit **
  24  Prefactor     .10000E-03    10.342       -.41754E-05** at limit **
  25  Normalizat    .89397        .19555        .18007E-06   -.11095E-03
  26  Prefactor     .89121        .20992        .26440E-06   -.79469E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.60129
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.7841
  Prefactor  = 0.0001
  Prefactor  = 4.93863
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.73292
  Prefactor  = 0.0001
  norm       = 3.45854
  Prefactor  = 5.82209
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.00010001
  norm       = 4.10275
  Prefactor  = 2.44666
  Prefactor  = 8.34291
  Prefactor  = 5.94847
  norm       = 0.992129
  norm       = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.893974
  Prefactor  = 0.891209
 **********
 **   18 **HESSE 
 **********

 FCN=   4459.635     FROM HESSE     STATUS=OK           462 CALLS     3550 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .92636        .62560E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.6013        5.3880        .10777E-02   -1.5385    
   3  norm          .10000E-03    6.7319        .16877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.0280        .11343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     23.784        18.749        .82139E-04   -1.4732    
   6  Prefactor     .10000E-03    17.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.9386        10.503        .90457E-03   -1.5263    
   8  Prefactor     .10000E-03    1.9062        .89750E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.6106        .14001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.2772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.7329        2.2092        .65313E-04   -1.5273    
  12  Prefactor     .10000E-03    21.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.4585        1.5502        .53293E-04   -1.5336    
  14  Prefactor     5.8221        4.8117        .12583E-03   -1.5225    
  15  Prefactor     .10000E-03    24.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.3449        .19003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    22.445        .16612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.1028        4.3317        .12670E-03   -1.5303    
  19  Prefactor     2.4467        2.5714        .10034E-03   -1.5395    
  20  Prefactor     8.3429        3.5652        .75872E-04   -1.5130    
  21  Prefactor     5.9485        5.9761        .15733E-03   -1.5220    
  22  norm          .99213        .34820        .22025E-04   -1.5509    
  23  norm          .10000E-03    20.663        .22953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .89397        .22466        .24317E-03   -.96672    
  26  Prefactor     .89121        .24036        .26827E-03   -.96449    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.46927e-09
Minuit parameter uncertainties:
  1  7.8026e-07
  2  5.38897
  3  7.34133e-06
  4  2.70527e-06
  5  18.754
  6  8.8082e-05
  7  10.5065
  8  1.68687e-06
  9  1.87358e-05
  10  4.22861e-05
  11  2.20921
  12  9.65957e-05
  13  1.55027
  14  4.81206
  15  0.00020361
  16  0.00015506
  17  0.000932535
  18  4.33203
  19  2.57153
  20  3.56534
  21  5.97667
  22  0.348202
  23  0.000319178
  24  3.44643e-05
  25  0.224896
  26  0.240642
Done.

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

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  4.733e+00  2.209e+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:  8.912e-01  2.406e-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.940e-01  2.249e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.18
Ra Dec: 177.603 24.302
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 8.19e-08 +/- 3.82e-08
Energy Flux (Fixed Index): 3.49e-05 +/- 1.63e-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) = 4458.60934275
delta logL = 1.02555705572

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4458.59921972
delta logL = 1.0356800878

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5472       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7446       1.0000          .0000       10.000    
     3 'Normalizat'    .92304       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86965       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=   4458.599     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      225 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5472        3.8665        .39210E-02   -.34628E-03
   2  Index         1.7447        .36719        .11834        .87081E-05
   3  Normalizat    .92303        .18956        .45195E-01    .17109E-04
   4  Prefactor     .86965        .20924        .44617E-01    .24082E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.54715
  Index      = 1.74467
  Normalizat = 0.923034
  Prefactor  = 0.869648
 **********
 **   18 **HESSE 
 **********

 FCN=   4458.599     FROM HESSE     STATUS=OK            33 CALLS      258 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5472        3.0795        .77538E-04   -1.5196    
   2  Index         1.7447        .30824        .49558E-02   -.70899    
   3  Normalizat    .92303        .21646        .23972E-03   -.95655    
   4  Prefactor     .86965        .23927        .13555E-02   -.97210    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70412e-11
Minuit parameter uncertainties:
  1  3.07957
  2  0.308584
  3  0.216669
  4  0.239557
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/99380': 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) = 4458.59921971
delta logL = 1.03568008959

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  6.547e+00  3.080e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  1.745e+00  3.086e-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:  8.696e-01  2.396e-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:  9.230e-01  2.167e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.26
Ra Dec: 177.603 24.302
Photon Index (Free Index): 1.74 +/- 0.31
Photon Flux (Free Index): 5.80e-08 +/- 3.21e-08
Energy Flux (Free Index): 8.23e-05 +/- 6.72e-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/99380/cmap_HighResolution_263174401_263433601_4FGL_J1150.4+2418_daily_bin92.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.19e-08', energy_flux2='8.23e-05', photon_flux_error='3.82e-08', dlogl='1.04e+00', energy_flux='3.49e-05', photon_flux2='5.80e-08', job_status='DONE', time_completed='2021-09-04 12:50:31.425637', photon_index_error2='0.31', photon_index2='1.74', ts='13.18', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='6.72e-05', EG='0.89', time_epoch_completed='1630785031.43', return_code='0', job_id='99380', GAL2='0.87', EG2='0.92', return_code2='0', energy_flux_error='1.63e-05', photon_flux_error2='3.21e-08', ts2='15.26', photon_index='2.23' WHERE bin_id='92' AND source_name='4FGL J1150.4+2418' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:50:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 99380: <4FGL_J1150.4+2418_daily_bin92> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.4+2418_daily_bin92 177.603 24.3016 263174401 263433601 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 :                                   572.31 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             238.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            818 sec.

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

