/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 8 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 = 7420
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1150.4+2418_daily_bin359
RA = 177.603, Dec = 24.3016
tmin = 332380801, tmax = 332640001
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='100889', job_status='RUN', time_executed='2021-09-04 12:41:54.708916', time_epoch_executed='1630784514.71' WHERE source_name='4FGL J1150.4+2418' and cadence='daily' and bin_id='359'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/100889

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/100889/ft1_4FGL_J1150.4+2418_daily_bin359.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/100889/ft2_4FGL_J1150.4+2418_daily_bin359.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/100889/ft1_4FGL_J1150.4+2418_daily_bin359.fits outfile=/scratch/kocevski/100889/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin359.fits ra=177.603 dec=24.3016 rad=12.0 tmin=332380801.0 tmax=332640001.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 3.26
user 3.03
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/100889/ft1_filtered_4FGL_J1150.4+2418_daily_bin359.fits" evtable="EVENTS" scfile=/scratch/kocevski/100889/ft2_4FGL_J1150.4+2418_daily_bin359.fits sctable="SC_DATA" outfile=/scratch/kocevski/100889/ltcube_332380801_332640001_4FGL_J1150.4+2418_daily_bin359.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/100889/ft2_4FGL_J1150.4+2418_daily_bin359.fits
.....................!
real 12.16
user 11.80
sys 0.31

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

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/100889/ft1_filtered_4FGL_J1150.4+2418_daily_bin359.fits scfile=/scratch/kocevski/100889/ft2_4FGL_J1150.4+2418_daily_bin359.fits outfile=/scratch/kocevski/100889/cmap_332380801_332640001_4FGL_J1150.4+2418_daily_bin359.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/100889/ft1_filtered_4FGL_J1150.4+2418_daily_bin359.fits scfile=/scratch/kocevski/100889/ft2_4FGL_J1150.4+2418_daily_bin359.fits outfile=/scratch/kocevski/100889/cmap_HighResolution_332380801_332640001_4FGL_J1150.4+2418_daily_bin359.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10684E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.4289       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.2666       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.5959       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .67183E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.544       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.2666       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.9618       1.0000         .10000E-03   10000.    
    12 'Prefactor '    30.703       1.0000         .10000E-03   10000.    
    13 'norm      '    4.2215       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .30591E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.6151       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.5183       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.5682       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.7299       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.7498       1.0000         .10000E-03   10000.    
    22 'norm      '    1.0625       1.0000         .10000E-03   10000.    
    23 'norm      '    3.2375       1.0000         .10000E-03   10000.    
    24 'Prefactor '    15.069       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .69458       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.3334       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=   5799.039     FROM MIGRAD    STATUS=CONVERGED    125 CALLS     2730 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.4021       -.47697E-06** at limit **
   2  Prefactor     8.4288        5.4434       -.77486E-07   -.39023E-02
   3  norm          .10000E-03    3.6913        .13768E-06** at limit **
   4  Prefactor     7.2675        3.3926        .19700E-06    .23988E-02
   5  Prefactor     6.5545        17.193        .38497E-05    .84500E-03
   6  Prefactor     .10000E-03    14.304       -.56297E-06** at limit **
   7  Prefactor     .10565E-03    734.02       -.32345E-05** at limit **
   8  Prefactor     .10000E-03    3.4436       -.80061E-06** at limit **
   9  Prefactor     22.527        5.4730        .42194E-06   -.78710E-02
  10  Prefactor     5.2743        11.604        .50938E-06    .41556E-03
  11  Prefactor     1.9631        1.6966       -.16197E-06   -.13657E-03
  12  Prefactor     30.698        1.8490        .23690E-07   -.23007E-02
  13  norm          4.2217        1.5134        .61287E-07    .19261E-03
  14  Prefactor     .10000E-03    6.4532       -.10205E-05** at limit **
  15  Prefactor     .10000E-03    8.5085        .55493E-06** at limit **
  16  Prefactor     4.6166        2.6748       -.34857E-07   -.11119E-03
  17  Prefactor     .10000E-03    .91198        .17706E-06** at limit **
  18  norm          2.5185        2.0773       -.59690E-07   -.74783E-04
  19  Prefactor     2.5681        2.0533       -.61349E-08   -.36550E-04
  20  Prefactor     1.7301        1.7265       -.10132E-06   -.70014E-04
  21  Prefactor     3.7497        3.5585        .85011E-07    .34099E-03
  22  norm          1.0626        .32165       -.32002E-08   -.22618E-03
  23  norm          3.2376        2.2175        .65024E-07   -.47397E-03
  24  Prefactor     15.067        3.0447        .14340E-06   -.46060E-02
  25  Normalizat    .69428        .22827        .31061E-06    .11799E-04
  26  Prefactor     1.3338        .24772       -.95235E-06   -.27789E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.42881
  norm       = 0.0001
  Prefactor  = 7.26755
  Prefactor  = 6.55453
  Prefactor  = 0.0001
  Prefactor  = 0.000105652
  Prefactor  = 0.0001
  Prefactor  = 22.5266
  Prefactor  = 5.27433
  Prefactor  = 1.96308
  Prefactor  = 30.6976
  norm       = 4.22167
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.61659
  Prefactor  = 0.0001
  norm       = 2.51845
  Prefactor  = 2.5681
  Prefactor  = 1.73011
  Prefactor  = 3.74974
  norm       = 1.06263
  norm       = 3.23758
  Prefactor  = 15.0671
  Normalizat = 0.694276
  Prefactor  = 1.33385
 **********
 **   18 **HESSE 
 **********

 FCN=   5799.039     FROM HESSE     STATUS=OK           536 CALLS     3266 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.8572        .33002E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.4288        5.8775        .34520E-02   -1.5127    
   3  norm          .10000E-03    3.6812        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.2675        10.473        .37199E-02   -1.5169    
   5  Prefactor     6.5545        20.032        .39063E-02   -1.5196    
   6  Prefactor     .10000E-03    14.296        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10565E-03    11.850        .93827E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.3956        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     22.527        19.761        .21090E-02   -1.4758    
  10  Prefactor     5.2743        12.009        .43786E-02   -1.5249    
  11  Prefactor     1.9631        1.7491        .74036E-02   -1.5428    
  12  Prefactor     30.698        25.180        .18078E-02   -1.4599    
  13  norm          4.2217        1.5263        .49031E-02   -1.5297    
  14  Prefactor     .10000E-03    1.8751        .53581E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.5010        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.6166        2.6966        .46839E-02   -1.5278    
  17  Prefactor     .10000E-03    .90602        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.5185        2.0582        .64361E-02   -1.5391    
  19  Prefactor     2.5681        2.0416        .63679E-02   -1.5387    
  20  Prefactor     1.7301        1.7651        .79800E-02   -1.5445    
  21  Prefactor     3.7497        4.1886        .52126E-02   -1.5321    
  22  norm          1.0626        .32303        .50522E-02   -1.5502    
  23  norm          3.2376        4.6702        .56279E-02   -1.5348    
  24  Prefactor     15.067        12.623        .25794E-02   -1.4931    
  25  Normalizat    .69428        .19885        .66492E-01   -1.0412    
  26  Prefactor     1.3338        .20876        .57044E-01   -.82306    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37938e-07
Minuit parameter uncertainties:
  1  9.94241e-06
  2  5.87794
  3  2.73424e-06
  4  10.4753
  5  20.0523
  6  1.16345e-05
  7  0.0163716
  8  2.36471e-05
  9  19.7664
  10  12.0149
  11  1.74913
  12  25.1883
  13  1.52627
  14  2.948e-05
  15  2.0824e-05
  16  2.69668
  17  2.58553e-06
  18  2.05821
  19  2.0417
  20  1.7652
  21  4.18892
  22  0.32303
  23  4.67069
  24  12.6257
  25  0.199053
  26  0.208892
Done.

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

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  1.963e+00  1.749e+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.334e+00  2.089e-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:  6.943e-01  1.991e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.06
Ra Dec: 177.603 24.302
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 3.40e-08 +/- 3.02e-08
Energy Flux (Fixed Index): 1.45e-05 +/- 1.29e-05

TS (Fixed Index): 2.06
Ra Dec: 177.603 24.302
Photon Flux Upper Limit: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/100889/likelihoodResults_332380801_332640001_4FGL_J1150.4+2418_daily_bin359.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) = 5798.93015906
delta logL = 0.108445215108

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5798.91001836
delta logL = 0.12858591325

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3679       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9132       1.0000          .0000       10.000    
     3 'Normalizat'    .70589       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3252       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=   5798.910     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      211 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3683        80.067        .66570E-02    .24460E-03
   2  Index         1.9132        5.2335        .17261        .24649E-04
   3  Normalizat    .70589        .11415        .65993E-01    .23765E-04
   4  Prefactor     1.3252        .10784        .57189E-01    .27334E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.3683
  Index      = 1.91316
  Normalizat = 0.705891
  Prefactor  = 1.32523
 **********
 **   18 **HESSE 
 **********

 FCN=   5798.910     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .37E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3683        2.0721        .98883E-04   -1.5400    
   2  Index         1.9132        .59877        .92642E-02   -.66539    
   3  Normalizat    .70589        .21411        .29199E-03   -1.0366    
   4  Prefactor     1.3252        .24672        .25288E-03   -.82560    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.67657e-13
Minuit parameter uncertainties:
  1  2.07216
  2  0.601107
  3  0.214364
  4  0.246938
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/100889': 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) = 5798.91001835
delta logL = 0.128585929723

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  2.368e+00  2.072e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  1.913e+00  6.011e-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.325e+00  2.469e-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:  7.059e-01  2.144e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.31
Ra Dec: 177.603 24.302
Photon Index (Free Index): 1.91 +/- 0.60
Photon Flux (Free Index): 2.58e-08 +/- 2.85e-08
Energy Flux (Free Index): 2.23e-05 +/- 2.87e-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/100889/cmap_HighResolution_332380801_332640001_4FGL_J1150.4+2418_daily_bin359.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.71e-03', comment='SUCCESS', photon_flux='3.40e-08', energy_flux2='2.23e-05', photon_flux_error='3.02e-08', dlogl='1.29e-01', energy_flux='1.45e-05', photon_flux2='2.58e-08', job_status='DONE', time_completed='2021-09-04 12:54:06.587286', photon_index_error2='0.60', photon_index2='1.91', ts='2.06', fit_tolerance='1e-08', GAL='1.33', photon_index_error='0.00', photon_flux_upper_limit='1.01e-07', energy_flux_error2='2.87e-05', EG='0.69', time_epoch_completed='1630785246.59', return_code='0', job_id='100889', GAL2='1.33', EG2='0.71', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='2.85e-08', ts2='2.31', photon_index='2.23' WHERE bin_id='359' AND source_name='4FGL J1150.4+2418' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:54:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 100889: <4FGL_J1150.4+2418_daily_bin359> in cluster <slac> Done

Job <4FGL_J1150.4+2418_daily_bin359> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 12:41:34 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:41:36 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:41:36 2021
Terminated at Sat Sep  4 12:54:07 2021
Results reported at Sat Sep  4 12:54:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.4+2418_daily_bin359 177.603 24.3016 332380801 332640001 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 :                                   730.37 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             340.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   750 sec.
    Turnaround time :                            753 sec.

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

