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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin1037
RA = 150.294, Dec = 29.188
tmin = 508118401, tmax = 508377601
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='660782', job_status='RUN', time_executed='2021-09-01 10:05:39.918285', time_epoch_executed='1630515939.92' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='1037'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/660782

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/660782/ft1_4FGL_J1001.1+2911_daily_bin1037.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/660782/ft2_4FGL_J1001.1+2911_daily_bin1037.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/660782/ft1_4FGL_J1001.1+2911_daily_bin1037.fits outfile=/scratch/kocevski/660782/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin1037.fits ra=150.294 dec=29.188 rad=12.0 tmin=508118401.0 tmax=508377601.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.65
user 3.45
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/660782/ft2_4FGL_J1001.1+2911_daily_bin1037.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/660782/ft2_4FGL_J1001.1+2911_daily_bin1037.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/660782/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin1037.fits evtable="EVENTS" outfile="/scratch/kocevski/660782/ft1_filtered_4FGL_J1001.1+2911_daily_bin1037.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.69
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/660782/ft1_filtered_4FGL_J1001.1+2911_daily_bin1037.fits" evtable="EVENTS" scfile=/scratch/kocevski/660782/ft2_4FGL_J1001.1+2911_daily_bin1037.fits sctable="SC_DATA" outfile=/scratch/kocevski/660782/ltcube_508118401_508377601_4FGL_J1001.1+2911_daily_bin1037.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/660782/ft2_4FGL_J1001.1+2911_daily_bin1037.fits
.....................!
real 12.25
user 11.78
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/660782/ft1_filtered_4FGL_J1001.1+2911_daily_bin1037.fits evtable="EVENTS" scfile=/scratch/kocevski/660782/ft2_4FGL_J1001.1+2911_daily_bin1037.fits sctable="SC_DATA" expcube=/scratch/kocevski/660782/ltcube_508118401_508377601_4FGL_J1001.1+2911_daily_bin1037.fits outfile=/scratch/kocevski/660782/expmap_508118401_508377601_4FGL_J1001.1+2911_daily_bin1037.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/660782/ltcube_508118401_508377601_4FGL_J1001.1+2911_daily_bin1037.fits
.....................!
real 190.40
user 185.25
sys 4.68

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 173 point sources and 0 extended sources

Setting source of interest to:
4FGL J1001.1+2911 @ 150.294 29.188

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/660782/ft1_filtered_4FGL_J1001.1+2911_daily_bin1037.fits scfile=/scratch/kocevski/660782/ft2_4FGL_J1001.1+2911_daily_bin1037.fits outfile=/scratch/kocevski/660782/cmap_508118401_508377601_4FGL_J1001.1+2911_daily_bin1037.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=150.294 yref=29.188 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.56
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/660782/ft1_filtered_4FGL_J1001.1+2911_daily_bin1037.fits scfile=/scratch/kocevski/660782/ft2_4FGL_J1001.1+2911_daily_bin1037.fits outfile=/scratch/kocevski/660782/cmap_HighResolution_508118401_508377601_4FGL_J1001.1+2911_daily_bin1037.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=150.294 yref=29.188 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.55
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/660782/ft1_filtered_4FGL_J1001.1+2911_daily_bin1037.fits evtable="EVENTS" scfile=/scratch/kocevski/660782/ft2_4FGL_J1001.1+2911_daily_bin1037.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/660782/Model_4FGL_J1001.1+2911_daily_bin1037.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/660782/ft1_filtered_4FGL_J1001.1+2911_daily_bin1037.fits.....................!
real 48.08
user 46.80
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/660782/ft1_filtered_4FGL_J1001.1+2911_daily_bin1037.fits', '/scratch/kocevski/660782/ft2_4FGL_J1001.1+2911_daily_bin1037.fits', expMap='/scratch/kocevski/660782/expmap_508118401_508377601_4FGL_J1001.1+2911_daily_bin1037.fits', expCube='/scratch/kocevski/660782/ltcube_508118401_508377601_4FGL_J1001.1+2911_daily_bin1037.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/660782/Model_4FGL_J1001.1+2911_daily_bin1037.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1001.1+2911'

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.010e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.269e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  9.601e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/660782/ft1_filtered_4FGL_J1001.1+2911_daily_bin1037.fits
Spacecraft file(s): /scratch/kocevski/660782/ft2_4FGL_J1001.1+2911_daily_bin1037.fits
Exposure map: /scratch/kocevski/660782/expmap_508118401_508377601_4FGL_J1001.1+2911_daily_bin1037.fits
Exposure cube: /scratch/kocevski/660782/ltcube_508118401_508377601_4FGL_J1001.1+2911_daily_bin1037.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/660782/Model_4FGL_J1001.1+2911_daily_bin1037.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5628.68303854

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9154       1.0000         .10000E-03   10000.    
     2 'norm      '    1.3777       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .19586       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .34183       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.687       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10551E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.069       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11016E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11540       1.0000         .10000E-03   10000.    
    12 'norm      '    48.573       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9193       1.0000         .10000E-03   10000.    
    16 'norm      '    11.155       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10330E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.0311       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    25.792       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.3727       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.3099       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .75361       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1330       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5628.623     FROM MIGRAD    STATUS=CONVERGED    591 CALLS     2453 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9151        2.8574       -.95552E-07   -.22964E-03
   2  norm          1.3767        1.5410       -.14711E-06   -.70285E-03
   3  Prefactor     .14498        28.768       -.62481E-05    .49300E-03
   4  Prefactor     .34325        2.1100        .12293E-05   -.33901E-03
   5  Prefactor     16.699        24.781       -.20303E-04   -.63324E-04
   6  Prefactor     .10000E-03    19.489       -.11282E-05** at limit **
   7  Prefactor     28.050        33.110        .27703E-04    .29024E-05
   8  Prefactor     .10000E-03    12.337       -.18034E-05** at limit **
   9  Prefactor     .10000E-03    2.2616        .17209E-06** at limit **
  10  Prefactor     .10000E-03    11.025        .22298E-06** at limit **
  11  Prefactor     .11509        1.1111       -.13393E-06   -.59468E-03
  12  norm          48.570        13.621       -.27284E-05    .15240E-04
  13  Prefactor     .10000E-03    .87016       -.61748E-07** at limit **
  14  Prefactor     .10000E-03    13.015        .16745E-05** at limit **
  15  Prefactor     1.9199        2.8986       -.51729E-06   -.42819E-03
  16  norm          11.155        9.3903       -.61682E-06    .17592E-04
  17  Prefactor     .10000E-03    23.845        .10663E-05** at limit **
  18  Prefactor     6.0677        20.863        .70626E-05    .10660E-03
  19  Prefactor     .10000E-03    2.8949       -.10314E-05** at limit **
  20  Prefactor     25.799        9.9482        .34873E-07    .32137E-06
  21  Prefactor     1.3734        1.5956       -.31120E-07   -.41782E-04
  22  Prefactor     8.3110        20.591       -.19827E-05   -.13258E-04
  23  Normalizat    .75364        .16858        .15602E-05   -.81395E-05
  24  Prefactor     1.1328        .18649        .70063E-07    .12994E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.91511
  norm       = 1.37669
  Prefactor  = 0.144979
  Prefactor  = 0.34325
  Prefactor  = 16.699
  Prefactor  = 0.0001
  Prefactor  = 28.0499
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.115085
  norm       = 48.5697
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.91988
  norm       = 11.1546
  Prefactor  = 0.0001
  Prefactor  = 6.06775
  Prefactor  = 0.000100002
  Prefactor  = 25.7986
  Prefactor  = 1.37335
  Prefactor  = 8.311
  Normalizat = 0.753635
  Prefactor  = 1.13283
 **********
 **   18 **HESSE 
 **********

 FCN=   5628.623     FROM HESSE     STATUS=OK           417 CALLS     2870 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9151        2.8485        .12225E-03   -1.5366    
   2  norm          1.3767        1.5129        .94327E-04   -1.5473    
   3  Prefactor     .14498        30.358        .13831       -1.5632    
   4  Prefactor     .34325        9.3532        .19783E-02   -1.5591    
   5  Prefactor     16.699        24.818        .98045E-04   -1.4890    
   6  Prefactor     .10000E-03    19.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     28.050        33.073        .75618E-04   -1.4648    
   8  Prefactor     .10000E-03    12.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.2695        .11016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.361        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .11509        2.5129        .15242E-02   -1.5640    
  12  norm          48.570        13.618        .57537E-04   -1.4313    
  13  Prefactor     .10000E-03    .87359        .68282E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.9199        2.8786        .14992E-03   -1.5431    
  16  norm          11.155        9.3875        .11995E-03   -1.5040    
  17  Prefactor     .10000E-03    23.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.0677        19.838        .16349E-03   -1.5215    
  19  Prefactor     .10000E-03    6.6703        .23492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     25.799        9.9321        .78879E-04   -1.4692    
  21  Prefactor     1.3734        1.5849        .98579E-04   -1.5474    
  22  Prefactor     8.3110        20.590        .13907E-03   -1.5131    
  23  Normalizat    .75364        .19933        .24965E-03   -1.0181    
  24  Prefactor     1.1328        .22239        .24023E-03   -.88424    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.15336e-09
Minuit parameter uncertainties:
  1  2.8486
  2  1.51296
  3  4.19655
  4  3.58366
  5  24.8337
  6  2.12263e-05
  7  33.0947
  8  3.5075e-06
  9  2.87126e-05
  10  6.12345e-05
  11  1.07513
  12  13.6188
  13  1.2261e-06
  14  3.24935e-06
  15  2.87879
  16  9.38879
  17  3.80188e-06
  18  19.8598
  19  0.00025375
  20  9.93272
  21  1.58497
  22  20.6073
  23  0.19952
  24  0.222573
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.151e-01  1.075e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.269e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  9.601e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
542    Prefactor:  1.133e+00  2.226e-01  0.000e+00  1.000e+01 ( 1.000e+00)
543        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
544        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
541   Normalization:  7.536e-01  1.995e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 150.294 29.188
Photon Flux Upper Limit: 5.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/660782/likelihoodResults_508118401_508377601_4FGL_J1001.1+2911_daily_bin1037.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): 102
logL (Free Index) = 5628.57452176
delta logL = 0.0483701326875

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5628.50737564
delta logL = 0.115516254295

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .52205       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5938       1.0000          .0000       10.000    
     3 'Normalizat'    .75789       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1256       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5628.507     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      268 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .52149        1.2563        .14973E-02    .48540E-02
   2  Index         1.5939        .99027        .16103E-01   -.11153E-03
   3  Normalizat    .75786        .18804        .24899E-03   -.13697E-06
   4  Prefactor     1.1255        .21895        .24085E-03   -.37761E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.521488
  Index      = 1.59387
  Normalizat = 0.757862
  Prefactor  = 1.12555
 **********
 **   18 **HESSE 
 **********

 FCN=   5628.507     FROM HESSE     STATUS=OK            27 CALLS      295 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .52149        1.2615        .29947E-03   -1.5564    
   2  Index         1.5939        .99598        .32206E-02   -.74944    
   3  Normalizat    .75786        .18825        .99598E-05   -1.0165    
   4  Prefactor     1.1255        .21920        .96341E-05   -.88654    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13995e-11
Minuit parameter uncertainties:
  1  1.26155
  2  1.0087
  3  0.188409
  4  0.219377
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/660782': 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) = 5628.50737504
delta logL = 0.115516853234

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  5.215e-01  1.262e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  1.594e+00  1.009e+00  0.000e+00  1.000e+01 (-1.000e+00)
261        Scale:  9.601e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
542    Prefactor:  1.126e+00  2.194e-01  0.000e+00  1.000e+01 ( 1.000e+00)
543        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
544        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
541   Normalization:  7.579e-01  1.884e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 150.294 29.188

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/660782/cmap_HighResolution_508118401_508377601_4FGL_J1001.1+2911_daily_bin1037.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.06e-03', job_status='DONE', photon_flux_upper_limit='5.30e-08', time_completed='2021-09-01 10:16:01.930594', job_id='660782', GAL2='1.13', fit_tolerance='1e-08', EG2='0.76', EG='0.75', time_epoch_completed='1630516561.93', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='1.16e-01', ts2='0.24', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='1037' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:16:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 660782: <4FGL_J1001.1+2911_daily_bin1037> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin1037> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 10:05:23 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 10:05:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 10:05:25 2021
Terminated at Wed Sep  1 10:16:02 2021
Results reported at Wed Sep  1 10:16:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin1037 150.294 29.188 508118401 508377601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1001.1+2911 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   620.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             378.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   637 sec.
    Turnaround time :                            639 sec.

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

