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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin170
RA = 150.294, Dec = 29.188
tmin = 283392001, tmax = 283651201
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='654718', job_status='RUN', time_executed='2021-09-01 09:48:30.301067', time_epoch_executed='1630514910.3' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/654718

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/654718/ft1_4FGL_J1001.1+2911_daily_bin170.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/654718/ft2_4FGL_J1001.1+2911_daily_bin170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/654718/ft1_4FGL_J1001.1+2911_daily_bin170.fits outfile=/scratch/kocevski/654718/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin170.fits ra=150.294 dec=29.188 rad=12.0 tmin=283392001.0 tmax=283651201.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.60
user 3.38
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/654718/ft1_filtered_4FGL_J1001.1+2911_daily_bin170.fits" evtable="EVENTS" scfile=/scratch/kocevski/654718/ft2_4FGL_J1001.1+2911_daily_bin170.fits sctable="SC_DATA" outfile=/scratch/kocevski/654718/ltcube_283392001_283651201_4FGL_J1001.1+2911_daily_bin170.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/654718/ft2_4FGL_J1001.1+2911_daily_bin170.fits
.....................!
real 12.08
user 11.16
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/654718/ft1_filtered_4FGL_J1001.1+2911_daily_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/654718/ft2_4FGL_J1001.1+2911_daily_bin170.fits sctable="SC_DATA" expcube=/scratch/kocevski/654718/ltcube_283392001_283651201_4FGL_J1001.1+2911_daily_bin170.fits outfile=/scratch/kocevski/654718/expmap_283392001_283651201_4FGL_J1001.1+2911_daily_bin170.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/654718/ltcube_283392001_283651201_4FGL_J1001.1+2911_daily_bin170.fits
.....................!
real 190.73
user 184.98
sys 4.79

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/654718/ft1_filtered_4FGL_J1001.1+2911_daily_bin170.fits scfile=/scratch/kocevski/654718/ft2_4FGL_J1001.1+2911_daily_bin170.fits outfile=/scratch/kocevski/654718/cmap_283392001_283651201_4FGL_J1001.1+2911_daily_bin170.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 1.64
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/654718/ft1_filtered_4FGL_J1001.1+2911_daily_bin170.fits scfile=/scratch/kocevski/654718/ft2_4FGL_J1001.1+2911_daily_bin170.fits outfile=/scratch/kocevski/654718/cmap_HighResolution_283392001_283651201_4FGL_J1001.1+2911_daily_bin170.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 1.42
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/654718/ft1_filtered_4FGL_J1001.1+2911_daily_bin170.fits', '/scratch/kocevski/654718/ft2_4FGL_J1001.1+2911_daily_bin170.fits', expMap='/scratch/kocevski/654718/expmap_283392001_283651201_4FGL_J1001.1+2911_daily_bin170.fits', expCube='/scratch/kocevski/654718/ltcube_283392001_283651201_4FGL_J1001.1+2911_daily_bin170.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/654718/Model_4FGL_J1001.1+2911_daily_bin170.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/654718/ft1_filtered_4FGL_J1001.1+2911_daily_bin170.fits
Spacecraft file(s): /scratch/kocevski/654718/ft2_4FGL_J1001.1+2911_daily_bin170.fits
Exposure map: /scratch/kocevski/654718/expmap_283392001_283651201_4FGL_J1001.1+2911_daily_bin170.fits
Exposure cube: /scratch/kocevski/654718/ltcube_283392001_283651201_4FGL_J1001.1+2911_daily_bin170.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/654718/Model_4FGL_J1001.1+2911_daily_bin170.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) = 5476.29612874

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    1.2321       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.3850       1.0000         .10000E-03   10000.    
     5 'Prefactor '    40.496       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.8269       1.0000         .10000E-03   10000.    
     8 'Prefactor '    30.200       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .82674       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .85550       1.0000         .10000E-03   10000.    
    12 'norm      '    13.392       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.6402       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10979       1.0000         .10000E-03   10000.    
    22 'Prefactor '    18.891       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2589       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .77411       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=   5476.273     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     2796 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.4660       -.20908E-07** at limit **
   2  norm          1.2316        1.4869       -.79354E-07   -.34754E-03
   3  Prefactor     .10000E-03    35.615       -.24607E-04** at limit **
   4  Prefactor     6.3834        4.5055       -.19449E-06   -.11064E-03
   5  Prefactor     40.484        34.715        .25184E-05    .60917E-04
   6  Prefactor     .10000E-03    39.011        .40956E-04** at limit **
   7  Prefactor     9.8197        27.220        .39956E-05   -.84398E-05
   8  Prefactor     30.032        50.891       -.24974E-04   -.11086E-04
   9  Prefactor     .80026        6.0421       -.98968E-06   -.29645E-03
  10  Prefactor     .10000E-03    3.4822        .18922E-07** at limit **
  11  Prefactor     .85296        2.4029       -.80792E-06   -.10173E-02
  12  norm          13.390        9.8806       -.10932E-05    .28513E-04
  13  Prefactor     .10000E-03    1.5331       -.48733E-07** at limit **
  14  Prefactor     .10000E-03    74.266        .48319E-04** at limit **
  15  Prefactor     .10000E-03    1.3339       -.16020E-07** at limit **
  16  norm          .10000E-03    2.3958        .18444E-07** at limit **
  17  Prefactor     .10000E-03    59.012       -.55668E-04** at limit **
  18  Prefactor     .10000E-03    10.434        .47257E-07** at limit **
  19  Prefactor     3.6393        3.4311       -.93116E-07    .71522E-04
  20  Prefactor     .10000E-03    14.500        .15485E-06** at limit **
  21  Prefactor     .99679E-01    1.2823       -.52809E-06    .40817E-03
  22  Prefactor     18.863        35.567        .12711E-04    .19082E-04
  23  Normalizat    1.2591        .17508        .56449E-06    .23088E-03
  24  Prefactor     .77416        .18110        .54685E-06    .13785E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.2316
  Prefactor  = 0.0001
  Prefactor  = 6.3834
  Prefactor  = 40.4843
  Prefactor  = 0.0001
  Prefactor  = 9.8197
  Prefactor  = 30.0323
  Prefactor  = 0.800261
  Prefactor  = 0.0001
  Prefactor  = 0.852963
  norm       = 13.39
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.63927
  Prefactor  = 0.0001
  Prefactor  = 0.099679
  Prefactor  = 18.8634
  Normalizat = 1.25912
  Prefactor  = 0.774159
 **********
 **   18 **HESSE 
 **********

 FCN=   5476.273     FROM HESSE     STATUS=OK           401 CALLS     3197 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.4748        .87498E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.2316        1.4510        .95628E-04   -1.5486    
   3  Prefactor     .10000E-03    35.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.3834        4.5086        .12382E-03   -1.5203    
   5  Prefactor     40.484        34.630        .62990E-04   -1.4435    
   6  Prefactor     .10000E-03    39.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.8197        27.227        .12783E-03   -1.5081    
   8  Prefactor     30.032        51.022        .72908E-04   -1.4611    
   9  Prefactor     .80026        11.795        .33118E-02   -1.5529    
  10  Prefactor     .10000E-03    3.4986        .13485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .85296        2.3759        .17931E-03   -1.5523    
  12  norm          13.390        9.8536        .10946E-03   -1.4976    
  13  Prefactor     .10000E-03    1.5582        .89435E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    74.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.3415        .83441E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.3964        .11187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    59.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.6393        3.4351        .12937E-03   -1.5326    
  20  Prefactor     .10000E-03    15.023        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .99679E-01    12.928        .16006E-02   -1.5645    
  22  Prefactor     18.863        35.563        .92150E-04   -1.4839    
  23  Normalizat    1.2591        .20462        .21392E-03   -.84795    
  24  Prefactor     .77416        .21214        .28483E-03   -1.0069    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01768e-09
Minuit parameter uncertainties:
  1  1.01101e-06
  2  1.45107
  3  2.45267e-05
  4  4.50886
  5  34.6472
  6  4.31053e-05
  7  27.2612
  8  51.0964
  9  6.14566
  10  2.61616e-06
  11  2.37618
  12  9.85484
  13  2.49277e-06
  14  0.00021208
  15  2.03244e-06
  16  9.39633e-07
  17  8.73269e-07
  18  4.3389e-06
  19  3.43526
  20  1.56337e-05
  21  2.26974
  22  35.6025
  23  0.20475
  24  0.212363
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  8.530e-01  2.376e+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:  7.742e-01  2.124e-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:  1.259e+00  2.048e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/654718/likelihoodResults_283392001_283651201_4FGL_J1001.1+2911_daily_bin170.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) = 5474.73543575
delta logL = 1.53716087223

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5474.58434873
delta logL = 1.68824789976

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    7.9977       1.0000          .0000       10.000    
     3 'Normalizat'    1.1449       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86171       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.

 FCN=   5474.584     FROM MIGRAD    STATUS=CONVERGED    237 CALLS      628 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .24524E-02    .30173E-03** at limit **
   2  Index         7.9977        2.4211        .11428        .13273E-03
   3  Normalizat    1.1449        .50961E-01    .36409E-01    .18083E-03
   4  Prefactor     .86185        .53825E-01    .44515E-01    .11154E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 7.99772
  Normalizat = 1.14485
  Prefactor  = 0.861849
 **********
 **   18 **HESSE 
 **********

 FCN=   5474.584     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      667 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .21666E-01    .11933E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.9977        7.3748        .47179E-02    .64293    
   3  Normalizat    1.1449        .12304        .22223E-03   -.88324    
   4  Prefactor     .86185        .13059        .27138E-03   -.97487    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.27064e-09
Minuit parameter uncertainties:
  1  2.27279e-08
  2  4.00539
  3  0.123068
  4  0.130633
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/654718': 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): 102
logL (Free Index) = 5474.58434614
delta logL = 1.688250483

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  2.273e-08  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  7.998e+00  4.005e+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:  8.618e-01  1.306e-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:  1.145e+00  1.231e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.80
Ra Dec: 150.294 29.188
Photon Index (Free Index): 8.00 +/- 4.01
Photon Flux (Free Index): 1.05e-07 +/- 8.71e-07
Energy Flux (Free Index): 1.21e-05 +/- 1.00e-04

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/654718/cmap_HighResolution_283392001_283651201_4FGL_J1001.1+2911_daily_bin170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.72e-03', comment='SUCCESS', energy_flux2='1.21e-05', dlogl='1.69e+00', photon_flux2='1.05e-07', job_status='DONE', time_completed='2021-09-01 09:59:32.965188', photon_index_error2='4.01', photon_index2='8.00', ts='0.15', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='8.77e-08', energy_flux_error2='1.00e-04', EG='1.26', time_epoch_completed='1630515572.97', return_code='0', job_id='654718', GAL2='0.86', EG2='1.14', return_code2='102', photon_flux_error2='8.71e-07', ts2='3.80', photon_index='2.27' WHERE bin_id='170' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 09:59:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 654718: <4FGL_J1001.1+2911_daily_bin170> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin170> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 09:45:54 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 09:45:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 09:45:55 2021
Terminated at Wed Sep  1 09:59:33 2021
Results reported at Wed Sep  1 09:59:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin170 150.294 29.188 283392001 283651201 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 :                                   649.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            819 sec.

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

