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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin743
RA = 150.294, Dec = 29.188
tmin = 431913601, tmax = 432172801
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='659247', job_status='RUN', time_executed='2021-09-01 10:04:50.331600', time_epoch_executed='1630515890.33' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='743'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/659247

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/659247/ft1_4FGL_J1001.1+2911_daily_bin743.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/659247/ft2_4FGL_J1001.1+2911_daily_bin743.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/659247/ft1_4FGL_J1001.1+2911_daily_bin743.fits outfile=/scratch/kocevski/659247/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin743.fits ra=150.294 dec=29.188 rad=12.0 tmin=431913601.0 tmax=432172801.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 5.38
user 4.99
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/659247/ft2_4FGL_J1001.1+2911_daily_bin743.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/659247/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin743.fits evtable="EVENTS" outfile="/scratch/kocevski/659247/ft1_filtered_4FGL_J1001.1+2911_daily_bin743.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.54
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/659247/ft1_filtered_4FGL_J1001.1+2911_daily_bin743.fits" evtable="EVENTS" scfile=/scratch/kocevski/659247/ft2_4FGL_J1001.1+2911_daily_bin743.fits sctable="SC_DATA" outfile=/scratch/kocevski/659247/ltcube_431913601_432172801_4FGL_J1001.1+2911_daily_bin743.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/659247/ft2_4FGL_J1001.1+2911_daily_bin743.fits
.....................!
real 12.49
user 11.87
sys 0.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/659247/ft1_filtered_4FGL_J1001.1+2911_daily_bin743.fits evtable="EVENTS" scfile=/scratch/kocevski/659247/ft2_4FGL_J1001.1+2911_daily_bin743.fits sctable="SC_DATA" expcube=/scratch/kocevski/659247/ltcube_431913601_432172801_4FGL_J1001.1+2911_daily_bin743.fits outfile=/scratch/kocevski/659247/expmap_431913601_432172801_4FGL_J1001.1+2911_daily_bin743.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/659247/ltcube_431913601_432172801_4FGL_J1001.1+2911_daily_bin743.fits
.....................!
real 192.80
user 186.77
sys 5.42

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/659247/ft1_filtered_4FGL_J1001.1+2911_daily_bin743.fits scfile=/scratch/kocevski/659247/ft2_4FGL_J1001.1+2911_daily_bin743.fits outfile=/scratch/kocevski/659247/cmap_431913601_432172801_4FGL_J1001.1+2911_daily_bin743.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.31
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/659247/ft1_filtered_4FGL_J1001.1+2911_daily_bin743.fits scfile=/scratch/kocevski/659247/ft2_4FGL_J1001.1+2911_daily_bin743.fits outfile=/scratch/kocevski/659247/cmap_HighResolution_431913601_432172801_4FGL_J1001.1+2911_daily_bin743.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.21
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0292       1.0000         .10000E-03   10000.    
     2 'norm      '    .10131E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    49.723       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .25828       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    31.542       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    79.662       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.5921       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1670       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10341E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    46.164       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10099E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    36.918       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .20796E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    31.484       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.4911       1.0000         .10000E-03   10000.    
    22 'Prefactor '    33.130       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1897       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .91073       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=   5419.756     FROM MIGRAD    STATUS=CONVERGED    567 CALLS     2755 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0294        3.7600        .47684E-07    .20209E-04
   2  norm          .10000E-03    .93820       -.10478E-06** at limit **
   3  Prefactor     49.738        76.860       -.10210E-05    .11248E-04
   4  Prefactor     .27194        2.3671       -.44985E-07    .34896E-04
   5  Prefactor     .10000E-03    16.382       -.13072E-06** at limit **
   6  Prefactor     31.568        60.907       -.29552E-05    .10175E-04
   7  Prefactor     .10000E-03    10.444       -.40357E-06** at limit **
   8  Prefactor     79.606        54.761        .39627E-05   -.19942E-04
   9  Prefactor     5.5932        7.8306        .24788E-06    .72459E-04
  10  Prefactor     2.1675        9.2968        .66722E-05   -.83641E-04
  11  Prefactor     .10000E-03    2.2506       -.43287E-06** at limit **
  12  norm          .10000E-03    3.6762       -.58418E-07** at limit **
  13  Prefactor     .10000E-03    1.5305       -.41410E-08** at limit **
  14  Prefactor     46.209        57.973       -.38393E-05    .16231E-04
  15  Prefactor     .10000E-03    4.0914       -.83780E-07** at limit **
  16  norm          .10000E-03    8.3417       -.10623E-06** at limit **
  17  Prefactor     .10000E-03    15.408        .10739E-06** at limit **
  18  Prefactor     36.847        38.438       -.23996E-05   -.27507E-03
  19  Prefactor     .10000E-03    5.3925        .14455E-05** at limit **
  20  Prefactor     31.484        12.611        .21369E-06    .76265E-05
  21  Prefactor     5.4914        3.8174       -.13760E-07    .10655E-04
  22  Prefactor     33.129        25.786       -.10886E-06   -.18627E-05
  23  Normalizat    1.1896        .19191       -.20132E-06    .90816E-04
  24  Prefactor     .91074        .20126       -.53284E-07    .48439E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.02936
  norm       = 0.0001
  Prefactor  = 49.7377
  Prefactor  = 0.271936
  Prefactor  = 0.0001
  Prefactor  = 31.5682
  Prefactor  = 0.0001
  Prefactor  = 79.6062
  Prefactor  = 5.59318
  Prefactor  = 2.16754
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.2092
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.8471
  Prefactor  = 0.0001
  Prefactor  = 31.4841
  Prefactor  = 5.49141
  Prefactor  = 33.1288
  Normalizat = 1.18958
  Prefactor  = 0.910744
 **********
 **   18 **HESSE 
 **********

 FCN=   5419.756     FROM HESSE     STATUS=OK           401 CALLS     3156 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0294        3.7542        .13399E-03   -1.5306    
   2  norm          .10000E-03    1.6811        .13795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     49.738        76.680        .56870E-04   -1.4296    
   4  Prefactor     .27194        14.057        .21024E-02   -1.5604    
   5  Prefactor     .10000E-03    16.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     31.568        60.858        .71343E-04   -1.4584    
   7  Prefactor     .10000E-03    10.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     79.606        54.417        .22498E-03   -1.3921    
   9  Prefactor     5.5932        7.8078        .16988E-03   -1.5235    
  10  Prefactor     2.1675        8.8959        .13988E-02   -1.5414    
  11  Prefactor     .10000E-03    4.5197        .20969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.7110        .13784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.5408        .88898E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     46.209        57.875        .59012E-04   -1.4347    
  15  Prefactor     .10000E-03    4.1925        .29049E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    8.3803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     36.847        33.375        .65960E-04   -1.4493    
  19  Prefactor     .10000E-03    9.9643        .28113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     31.484        12.610        .71410E-04   -1.4585    
  21  Prefactor     5.4914        3.8134        .11124E-03   -1.5239    
  22  Prefactor     33.129        25.787        .69618E-04   -1.4556    
  23  Normalizat    1.1896        .22331        .23515E-03   -.86925    
  24  Prefactor     .91074        .23415        .28312E-03   -.95767    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.40196e-10
Minuit parameter uncertainties:
  1  3.75442
  2  4.58902e-06
  3  76.8322
  4  3.91057
  5  3.55443e-06
  6  60.9785
  7  1.29813e-06
  8  54.4506
  9  7.80919
  10  8.78435
  11  1.4825e-06
  12  2.9777e-06
  13  2.45737e-06
  14  57.9452
  15  1.15788e-05
  16  3.31969e-06
  17  5.27448e-06
  18  33.3922
  19  7.31686e-05
  20  12.6109
  21  3.8136
  22  25.7956
  23  0.223488
  24  0.234407
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  1.483e-06  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:  9.107e-01  2.344e-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.190e+00  2.235e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/659247/likelihoodResults_431913601_432172801_4FGL_J1001.1+2911_daily_bin743.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) = 5419.75741127
delta logL = -0.00105372873986

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5419.75635622
delta logL = 1.32790137286e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12656E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3613       1.0000          .0000       10.000    
     3 'Normalizat'    1.1899       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91046       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=   5419.636     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      261 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27738        48.390        .90712E-02   -.21008E-02
   2  Index         3.5286        6.1826        .16197        .10924E-03
   3  Normalizat    1.1536        .29469        .53912E-01    .70601E-04
   4  Prefactor     .92997        .14626        .45138E-01    .39039E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.277376
  Index      = 3.52861
  Normalizat = 1.15356
  Prefactor  = 0.929966
 **********
 **   18 **HESSE 
 **********

 FCN=   5419.636     FROM HESSE     STATUS=OK            33 CALLS      294 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27738        4.2199        .73606E-04   -1.5813    
   2  Index         3.5286        3.4445        .10013E-01   -.29870    
   3  Normalizat    1.1536        .22761        .23838E-03   -.88050    
   4  Prefactor     .92997        .23626        .28051E-03   -.95102    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.77322e-10
Minuit parameter uncertainties:
  1  2.16359
  2  3.84673
  3  0.227808
  4  0.236526
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/659247': 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) = 5419.63649406
delta logL = 0.119863488818

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  2.774e-01  2.164e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  3.529e+00  3.847e+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:  9.300e-01  2.365e-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.154e+00  2.278e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/659247/cmap_HighResolution_431913601_432172801_4FGL_J1001.1+2911_daily_bin743.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.85e-03', job_status='DONE', photon_flux_upper_limit='8.95e-08', time_completed='2021-09-01 10:15:39.957704', job_id='659247', GAL2='0.93', fit_tolerance='1e-08', EG2='1.15', EG='1.19', time_epoch_completed='1630516539.96', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.20e-01', ts2='0.26', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='743' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:15:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0181>
Subject: Job 659247: <4FGL_J1001.1+2911_daily_bin743> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin743> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 10:00:27 2021
Job was executed on host(s) <bullet0181>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 10:00:28 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:00:28 2021
Terminated at Wed Sep  1 10:15:41 2021
Results reported at Wed Sep  1 10:15:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin743 150.294 29.188 431913601 432172801 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 :                                   640.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            914 sec.

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

