/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 5 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 = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1150.4+2418_daily_bin571
RA = 177.603, Dec = 24.3016
tmin = 387331201, tmax = 387590401
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='102403', job_status='RUN', time_executed='2021-09-04 12:46:42.297345', time_epoch_executed='1630784802.3' WHERE source_name='4FGL J1150.4+2418' and cadence='daily' and bin_id='571'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/102403

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/102403/ft1_4FGL_J1150.4+2418_daily_bin571.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/102403/ft2_4FGL_J1150.4+2418_daily_bin571.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/102403/ft1_4FGL_J1150.4+2418_daily_bin571.fits outfile=/scratch/kocevski/102403/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin571.fits ra=177.603 dec=24.3016 rad=12.0 tmin=387331201.0 tmax=387590401.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.41
user 4.18
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/102403/ft1_filtered_4FGL_J1150.4+2418_daily_bin571.fits" evtable="EVENTS" scfile=/scratch/kocevski/102403/ft2_4FGL_J1150.4+2418_daily_bin571.fits sctable="SC_DATA" outfile=/scratch/kocevski/102403/ltcube_387331201_387590401_4FGL_J1150.4+2418_daily_bin571.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/102403/ft2_4FGL_J1150.4+2418_daily_bin571.fits
.....................!
real 11.68
user 11.30
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/102403/ft1_filtered_4FGL_J1150.4+2418_daily_bin571.fits evtable="EVENTS" scfile=/scratch/kocevski/102403/ft2_4FGL_J1150.4+2418_daily_bin571.fits sctable="SC_DATA" expcube=/scratch/kocevski/102403/ltcube_387331201_387590401_4FGL_J1150.4+2418_daily_bin571.fits outfile=/scratch/kocevski/102403/expmap_387331201_387590401_4FGL_J1150.4+2418_daily_bin571.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/102403/ltcube_387331201_387590401_4FGL_J1150.4+2418_daily_bin571.fits
.....................!
real 190.25
user 185.63
sys 4.22

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/102403/ft1_filtered_4FGL_J1150.4+2418_daily_bin571.fits scfile=/scratch/kocevski/102403/ft2_4FGL_J1150.4+2418_daily_bin571.fits outfile=/scratch/kocevski/102403/cmap_387331201_387590401_4FGL_J1150.4+2418_daily_bin571.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=177.603 yref=24.3016 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/102403/ft1_filtered_4FGL_J1150.4+2418_daily_bin571.fits scfile=/scratch/kocevski/102403/ft2_4FGL_J1150.4+2418_daily_bin571.fits outfile=/scratch/kocevski/102403/cmap_HighResolution_387331201_387590401_4FGL_J1150.4+2418_daily_bin571.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.54
user 0.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6060       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.774       1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.023       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14789E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .19340       1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.178       1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.835       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.2159       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.4387       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.3959       1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.609       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.8990       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.9788       1.0000         .10000E-03   10000.    
    18 'norm      '    7.1474       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.6904       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.8482       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.5576       1.0000         .10000E-03   10000.    
    22 'norm      '    .63777       1.0000         .10000E-03   10000.    
    23 'norm      '    .75008       1.0000         .10000E-03   10000.    
    24 'Prefactor '    14.281       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .92298       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .57389       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5588.649     FROM MIGRAD    STATUS=CONVERGED     70 CALLS     2552 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6076        2.9987       -.11319E-05   -.23159E-02
   2  Prefactor     13.778        2.6296       -.11818E-05    .52497E-02
   3  norm          .10000E-03    4.1085       -.16320E-05** at limit **
   4  Prefactor     .10000E-03    3.5851        .55635E-06** at limit **
   5  Prefactor     12.026        1.1221       -.22490E-06    .98944E-03
   6  Prefactor     .10001E-03    64.605       -.24013E-05** at limit **
   7  Prefactor     .10000E-03    5.3648       -.11913E-06** at limit **
   8  Prefactor     .19664        3.5891       -.65919E-05    .22350E-02
   9  Prefactor     34.185        1.1865        .92314E-07   -.13043E-02
  10  Prefactor     20.838        1.0590       -.12068E-06    .18057E-02
  11  Prefactor     2.2161        1.5123        .22871E-06    .77171E-04
  12  Prefactor     .10000E-03    3.6519        .11004E-05** at limit **
  13  norm          4.4391        1.3339        .80014E-07    .19464E-04
  14  Prefactor     4.3969        2.6037        .95557E-06    .51870E-02
  15  Prefactor     27.613        1.1903        .20158E-06   -.29612E-02
  16  Prefactor     2.8994        2.0465       -.23745E-06   -.74753E-03
  17  Prefactor     3.9792        1.7512        .64247E-06   -.18686E-03
  18  norm          7.1478        1.4055        .10497E-06   -.26750E-03
  19  Prefactor     2.6906        2.0559       -.55347E-06   -.15960E-02
  20  Prefactor     8.8489        2.5282        .86692E-06    .70954E-02
  21  Prefactor     7.5580        1.1418        .31607E-06    .26696E-02
  22  norm          .63787        .25050       -.75826E-07   -.78540E-03
  23  norm          .75036        1.9822        .30284E-05    .20273E-02
  24  Prefactor     14.283        1.1136       -.20634E-06    .21467E-02
  25  Normalizat    .92270        .19437       -.28123E-06   -.21824E-03
  26  Prefactor     .57401        .20025       -.42112E-05   -.17714E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.60762
  Prefactor  = 13.7775
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 12.026
  Prefactor  = 0.000100008
  Prefactor  = 0.000100001
  Prefactor  = 0.196638
  Prefactor  = 34.1851
  Prefactor  = 20.8375
  Prefactor  = 2.21613
  Prefactor  = 0.0001
  norm       = 4.4391
  Prefactor  = 4.39687
  Prefactor  = 27.6127
  Prefactor  = 2.89945
  Prefactor  = 3.9792
  norm       = 7.14778
  Prefactor  = 2.6906
  Prefactor  = 8.84888
  Prefactor  = 7.55805
  norm       = 0.637869
  norm       = 0.750361
  Prefactor  = 14.2829
  Normalizat = 0.922699
  Prefactor  = 0.574012
 **********
 **   18 **HESSE 
 **********

 FCN=   5588.649     FROM HESSE     STATUS=OK           528 CALLS     3080 TOTAL
                     EDM=   .94E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6076        3.0702        .63175E-02   -1.5385    
   2  Prefactor     13.778        7.7378        .26981E-02   -1.4965    
   3  norm          .10000E-03    4.0606        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.9778        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.026        14.518        .28882E-02   -1.5014    
   6  Prefactor     .10001E-03    64.096        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.3666        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .19664        2.4376        .65031E-01   -1.5619    
   9  Prefactor     34.185        18.590        .17136E-02   -1.4538    
  10  Prefactor     20.838        11.067        .21937E-02   -1.4795    
  11  Prefactor     2.2161        1.5467        .69071E-02   -1.5410    
  12  Prefactor     .10000E-03    7.0313        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.4391        1.3434        .47784E-02   -1.5287    
  14  Prefactor     4.3969        3.3657        .48022E-02   -1.5289    
  15  Prefactor     27.613        29.000        .19061E-02   -1.4657    
  16  Prefactor     2.8994        2.9644        .59664E-02   -1.5367    
  17  Prefactor     3.9792        3.1061        .50551E-02   -1.5309    
  18  norm          7.1478        3.5372        .37511E-02   -1.5173    
  19  Prefactor     2.6906        2.7952        .62099E-02   -1.5380    
  20  Prefactor     8.8489        2.7995        .33687E-02   -1.5113    
  21  Prefactor     7.5580        6.7163        .36470E-02   -1.5158    
  22  norm          .63787        .25338        .50336E-02   -1.5548    
  23  norm          .75036        6.2005        .12253E-01   -1.5535    
  24  Prefactor     14.283        10.398        .26497E-02   -1.4952    
  25  Normalizat    .92270        .17846        .45195E-01   -.95667    
  26  Prefactor     .57401        .17615        .69343E-01   -1.0869    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.41223e-08
Minuit parameter uncertainties:
  1  3.07038
  2  7.73836
  3  8.81389e-06
  4  0.000134701
  5  14.5223
  6  0.00141469
  7  0.000140847
  8  1.38439
  9  18.5929
  10  11.068
  11  1.54677
  12  7.04001e-05
  13  1.3434
  14  3.36584
  15  29.0149
  16  2.9645
  17  3.10627
  18  3.53727
  19  2.79529
  20  2.79956
  21  6.71697
  22  0.253385
  23  4.31429
  24  10.3998
  25  0.178575
  26  0.176315
Done.

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

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  2.216e+00  1.547e+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:  5.740e-01  1.763e-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.227e-01  1.786e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.37
Ra Dec: 177.603 24.302
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 3.83e-08 +/- 2.67e-08
Energy Flux (Fixed Index): 1.64e-05 +/- 1.14e-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) = 5588.53736211
delta logL = 0.11194592738

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5588.537282
delta logL = 0.112026033933

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5952       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9748       1.0000          .0000       10.000    
     3 'Normalizat'    .93139       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56832       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=   5588.537     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      263 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5945        48.822        .63318E-02    .10755E-03
   2  Index         1.9745        5.8672        .20652        .36118E-04
   3  Normalizat    .93138        .85663E-01    .45302E-01    .12204E-04
   4  Prefactor     .56835        .73660E-01    .69659E-01    .24536E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.59449
  Index      = 1.97455
  Normalizat = 0.931383
  Prefactor  = 0.568354
 **********
 **   18 **HESSE 
 **********

 FCN=   5588.537     FROM HESSE     STATUS=OK            33 CALLS      296 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5945        1.8758        .81270E-04   -1.5386    
   2  Index         1.9745        .52356        .71327E-02   -.64988    
   3  Normalizat    .93138        .18668        .22994E-03   -.95366    
   4  Prefactor     .56835        .19921        .30834E-03   -1.0894    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31472e-12
Minuit parameter uncertainties:
  1  1.87588
  2  0.525085
  3  0.186807
  4  0.199457
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/102403': 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) = 5588.53728168
delta logL = 0.112026359604

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  2.594e+00  1.876e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  1.975e+00  5.251e-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:  5.684e-01  1.995e-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.314e-01  1.868e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.58
Ra Dec: 177.603 24.302
Photon Index (Free Index): 1.97 +/- 0.53
Photon Flux (Free Index): 3.07e-08 +/- 2.68e-08
Energy Flux (Free Index): 2.26e-05 +/- 2.40e-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/102403/cmap_HighResolution_387331201_387590401_4FGL_J1150.4+2418_daily_bin571.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.83e-08', energy_flux2='2.26e-05', photon_flux_error='2.67e-08', dlogl='1.12e-01', energy_flux='1.64e-05', photon_flux2='3.07e-08', job_status='DONE', time_completed='2021-09-04 12:57:07.083379', photon_index_error2='0.53', photon_index2='1.97', ts='4.37', fit_tolerance='1e-08', GAL='0.57', photon_index_error='0.00', energy_flux_error2='2.40e-05', EG='0.92', time_epoch_completed='1630785427.08', return_code='0', job_id='102403', GAL2='0.57', EG2='0.93', return_code2='0', energy_flux_error='1.14e-05', photon_flux_error2='2.68e-08', ts2='4.58', photon_index='2.23' WHERE bin_id='571' AND source_name='4FGL J1150.4+2418' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:57:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 102403: <4FGL_J1150.4+2418_daily_bin571> in cluster <slac> Done

Job <4FGL_J1150.4+2418_daily_bin571> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 12:46:27 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:46:29 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:46:29 2021
Terminated at Sat Sep  4 12:57:07 2021
Results reported at Sat Sep  4 12:57:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.4+2418_daily_bin571 177.603 24.3016 387331201 387590401 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 :                                   623.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             356.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   638 sec.
    Turnaround time :                            640 sec.

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

