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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin616
RA = 150.294, Dec = 29.188
tmin = 398995201, tmax = 399254401
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='657644', job_status='RUN', time_executed='2021-09-01 09:58:12.746397', time_epoch_executed='1630515492.75' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='616'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/657644

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/657644/ft1_4FGL_J1001.1+2911_daily_bin616.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/657644/ft2_4FGL_J1001.1+2911_daily_bin616.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/657644/ft1_4FGL_J1001.1+2911_daily_bin616.fits outfile=/scratch/kocevski/657644/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin616.fits ra=150.294 dec=29.188 rad=12.0 tmin=398995201.0 tmax=399254401.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.44
user 5.16
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/657644/ft1_filtered_4FGL_J1001.1+2911_daily_bin616.fits" evtable="EVENTS" scfile=/scratch/kocevski/657644/ft2_4FGL_J1001.1+2911_daily_bin616.fits sctable="SC_DATA" outfile=/scratch/kocevski/657644/ltcube_398995201_399254401_4FGL_J1001.1+2911_daily_bin616.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/657644/ft2_4FGL_J1001.1+2911_daily_bin616.fits
.....................!
real 12.00
user 11.62
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/657644/ft1_filtered_4FGL_J1001.1+2911_daily_bin616.fits evtable="EVENTS" scfile=/scratch/kocevski/657644/ft2_4FGL_J1001.1+2911_daily_bin616.fits sctable="SC_DATA" expcube=/scratch/kocevski/657644/ltcube_398995201_399254401_4FGL_J1001.1+2911_daily_bin616.fits outfile=/scratch/kocevski/657644/expmap_398995201_399254401_4FGL_J1001.1+2911_daily_bin616.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/657644/ltcube_398995201_399254401_4FGL_J1001.1+2911_daily_bin616.fits
.....................!
real 190.81
user 186.43
sys 3.86

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/657644/ft1_filtered_4FGL_J1001.1+2911_daily_bin616.fits scfile=/scratch/kocevski/657644/ft2_4FGL_J1001.1+2911_daily_bin616.fits outfile=/scratch/kocevski/657644/cmap_398995201_399254401_4FGL_J1001.1+2911_daily_bin616.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.59
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/657644/ft1_filtered_4FGL_J1001.1+2911_daily_bin616.fits scfile=/scratch/kocevski/657644/ft2_4FGL_J1001.1+2911_daily_bin616.fits outfile=/scratch/kocevski/657644/cmap_HighResolution_398995201_399254401_4FGL_J1001.1+2911_daily_bin616.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6948       1.0000         .10000E-03   10000.    
     2 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    53.536       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.2638       1.0000         .10000E-03   10000.    
     5 'Prefactor '    33.970       1.0000         .10000E-03   10000.    
     6 'Prefactor '    49.407       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10430E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.7210       1.0000         .10000E-03   10000.    
    12 'norm      '    5.9804       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .29279E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.3979       1.0000         .10000E-03   10000.    
    16 'norm      '    14.064       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10213E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.5394       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .28496E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .23954       1.0000         .10000E-03   10000.    
    22 'Prefactor '    50.264       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2265       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .96830       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=   5888.514     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     3379 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6963        3.2951       -.12198E-09    .10024E-04
   2  norm          .10000E-03    .78426       -.93842E-08** at limit **
   3  Prefactor     53.529        45.836       -.24560E-06   -.82683E-04
   4  Prefactor     2.2635        4.4175        .65797E-06   -.82413E-04
   5  Prefactor     33.971        33.088       -.61296E-07   -.19037E-04
   6  Prefactor     49.402        48.633       -.19519E-06   -.54208E-04
   7  Prefactor     .10000E-03    12.797        .76590E-07** at limit **
   8  Prefactor     .10006E-03    140.25       -.65772E-05** at limit **
   9  Prefactor     .10000E-03    4.7042        .13647E-07** at limit **
  10  Prefactor     .10000E-03    5.8653        .23819E-07** at limit **
  11  Prefactor     1.7206        2.8842        .46887E-06   -.36049E-05
  12  norm          5.9804        5.8177        .57548E-07   -.28491E-04
  13  Prefactor     .10006E-03    3.1982       -.17039E-05** at limit **
  14  Prefactor     .10000E-03    22.317        .35655E-06** at limit **
  15  Prefactor     1.3959        5.3815        .39429E-05    .46915E-03
  16  norm          14.062        15.291        .74434E-06   -.26695E-04
  17  Prefactor     .10000E-03    23.268       -.24954E-06** at limit **
  18  Prefactor     .10000E-03    13.632       -.14448E-06** at limit **
  19  Prefactor     4.5399        4.2925       -.15289E-06    .95038E-04
  20  Prefactor     .10469E-03    8.6635        .24033E-05** at limit **
  21  Prefactor     .23650        1.8367       -.74610E-07   -.57203E-03
  22  Prefactor     50.261        31.594       -.29636E-07   -.35350E-04
  23  Normalizat    1.2265        .19074       -.69921E-06    .23531E-04
  24  Prefactor     .96823        .19051       -.39428E-06   -.23667E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.69631
  norm       = 0.0001
  Prefactor  = 53.5285
  Prefactor  = 2.26351
  Prefactor  = 33.9713
  Prefactor  = 49.4019
  Prefactor  = 0.0001
  Prefactor  = 0.000100057
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.72059
  norm       = 5.98036
  Prefactor  = 0.000100065
  Prefactor  = 0.0001
  Prefactor  = 1.3959
  norm       = 14.0624
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.53989
  Prefactor  = 0.000104694
  Prefactor  = 0.236501
  Prefactor  = 50.2607
  Normalizat = 1.22653
  Prefactor  = 0.968234
 **********
 **   18 **HESSE 
 **********

 FCN=   5888.514     FROM HESSE     STATUS=OK           405 CALLS     3784 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6963        3.2957        .11375E-03   -1.5275    
   2  norm          .10000E-03    1.3024        .13178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     53.529        45.902        .54818E-04   -1.4243    
   4  Prefactor     2.2635        4.3516        .20864E-03   -1.5407    
   5  Prefactor     33.971        33.068        .68755E-04   -1.4542    
   6  Prefactor     49.402        48.669        .28526E-03   -1.4301    
   7  Prefactor     .10000E-03    12.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10006E-03    145.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.8608        .32488E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.9200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.7206        2.8593        .15796E-03   -1.5446    
  12  norm          5.9804        5.8159        .16420E-03   -1.5219    
  13  Prefactor     .10006E-03    43.947        .22553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    22.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.3959        5.4545        .32341E-03   -1.5472    
  16  norm          14.062        15.170        .53401E-03   -1.4958    
  17  Prefactor     .10000E-03    23.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.5399        4.2920        .14919E-03   -1.5282    
  20  Prefactor     .10469E-03    125.31        .36517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .23650        6.8442        .18399E-02   -1.5611    
  22  Prefactor     50.261        31.609        .56565E-04   -1.4289    
  23  Normalizat    1.2265        .21937        .23609E-03   -.85787    
  24  Prefactor     .96823        .22158        .27981E-03   -.93796    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.67491e-08
Minuit parameter uncertainties:
  1  3.29583
  2  1.71396e-06
  3  45.9323
  4  4.35217
  5  33.0858
  6  48.708
  7  2.50835e-05
  8  0.00574474
  9  2.07684e-06
  10  2.27178e-06
  11  2.85954
  12  5.81645
  13  0.00338041
  14  0.000145941
  15  5.45646
  16  15.1744
  17  0.000122012
  18  4.43777e-05
  19  4.29225
  20  0.0486098
  21  2.54431
  22  31.6193
  23  0.219539
  24  0.221793
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.721e+00  2.860e+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:  9.682e-01  2.218e-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.227e+00  2.195e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.43
Ra Dec: 150.294 29.188
Photon Flux Upper Limit: 1.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/657644/likelihoodResults_398995201_399254401_4FGL_J1001.1+2911_daily_bin616.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) = 5888.08406584
delta logL = 0.429770623364

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5887.72535021
delta logL = 0.788486247546

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 'Index     '    7.9109       1.0000          .0000       10.000    
     3 'Normalizat'    1.1425       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0419       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=   5887.725     FROM MIGRAD    STATUS=CONVERGED    248 CALLS      618 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .27504E-02    .32469E-03** at limit **
   2  Index         7.9105        2.5688        .14990        .13792E-03
   3  Normalizat    1.1428        .46314E-01    .54992E-01    .26822E-03
   4  Prefactor     1.0418        .48766E-01    .61342E-01   -.22930E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 7.91048
  Normalizat = 1.14277
  Prefactor  = 1.04184
 **********
 **   18 **HESSE 
 **********

 FCN=   5887.725     FROM HESSE     STATUS=OK            31 CALLS      649 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .16221E-02    .88484E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.9105        .38987        .57662E-02    .62131    
   3  Normalizat    1.1428        .21682        .24317E-03   -2.2577    
   4  Prefactor     1.0418        .22762        .27129E-03   -.91347    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.67158e-10
Minuit parameter uncertainties:
  1  2.22731e-08
  2  0.390467
  3  0.216991
  4  0.227835
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/657644': 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) = 5887.72534833
delta logL = 0.788488130942

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  2.227e-08  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  7.910e+00  3.905e-01  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.042e+00  2.278e-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.143e+00  2.170e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.17
Ra Dec: 150.294 29.188
Photon Index (Free Index): 7.91 +/- 0.39
Photon Flux (Free Index): 8.70e-08 +/- 7.05e-08
Energy Flux (Free Index): 1.01e-05 +/- 8.15e-06

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/657644/cmap_HighResolution_398995201_399254401_4FGL_J1001.1+2911_daily_bin616.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.23e-03', comment='SUCCESS', energy_flux2='1.01e-05', dlogl='7.88e-01', photon_flux2='8.70e-08', job_status='DONE', time_completed='2021-09-01 10:10:18.629948', photon_index_error2='0.39', photon_index2='7.91', ts='0.43', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.07e-07', energy_flux_error2='8.15e-06', EG='1.23', time_epoch_completed='1630516218.63', return_code='0', job_id='657644', GAL2='1.04', EG2='1.14', return_code2='0', photon_flux_error2='7.05e-08', ts2='2.17', photon_index='2.27' WHERE bin_id='616' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:10:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 657644: <4FGL_J1001.1+2911_daily_bin616> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin616> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 09:55:23 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 09:55: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 09:55:25 2021
Terminated at Wed Sep  1 10:10:19 2021
Results reported at Wed Sep  1 10:10:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin616 150.294 29.188 398995201 399254401 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 :                                   720.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             269.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            896 sec.

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

