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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin719
RA = 150.294, Dec = 29.188
tmin = 425692801, tmax = 425952001
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='659204', job_status='RUN', time_executed='2021-09-01 10:04:41.127702', time_epoch_executed='1630515881.13' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='719'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/659204

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/659204/ft1_4FGL_J1001.1+2911_daily_bin719.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/659204/ft2_4FGL_J1001.1+2911_daily_bin719.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/659204/ft1_4FGL_J1001.1+2911_daily_bin719.fits outfile=/scratch/kocevski/659204/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin719.fits ra=150.294 dec=29.188 rad=12.0 tmin=425692801.0 tmax=425952001.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.57
user 3.37
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/659204/ft2_4FGL_J1001.1+2911_daily_bin719.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/659204/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin719.fits evtable="EVENTS" outfile="/scratch/kocevski/659204/ft1_filtered_4FGL_J1001.1+2911_daily_bin719.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.52
user 0.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/659204/ft1_filtered_4FGL_J1001.1+2911_daily_bin719.fits" evtable="EVENTS" scfile=/scratch/kocevski/659204/ft2_4FGL_J1001.1+2911_daily_bin719.fits sctable="SC_DATA" outfile=/scratch/kocevski/659204/ltcube_425692801_425952001_4FGL_J1001.1+2911_daily_bin719.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/659204/ft2_4FGL_J1001.1+2911_daily_bin719.fits
.....................!
real 12.20
user 11.81
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/659204/ft1_filtered_4FGL_J1001.1+2911_daily_bin719.fits evtable="EVENTS" scfile=/scratch/kocevski/659204/ft2_4FGL_J1001.1+2911_daily_bin719.fits sctable="SC_DATA" expcube=/scratch/kocevski/659204/ltcube_425692801_425952001_4FGL_J1001.1+2911_daily_bin719.fits outfile=/scratch/kocevski/659204/expmap_425692801_425952001_4FGL_J1001.1+2911_daily_bin719.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/659204/ltcube_425692801_425952001_4FGL_J1001.1+2911_daily_bin719.fits
.....................!
real 190.17
user 185.62
sys 3.90

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/659204/ft1_filtered_4FGL_J1001.1+2911_daily_bin719.fits scfile=/scratch/kocevski/659204/ft2_4FGL_J1001.1+2911_daily_bin719.fits outfile=/scratch/kocevski/659204/cmap_425692801_425952001_4FGL_J1001.1+2911_daily_bin719.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.83
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/659204/ft1_filtered_4FGL_J1001.1+2911_daily_bin719.fits scfile=/scratch/kocevski/659204/ft2_4FGL_J1001.1+2911_daily_bin719.fits outfile=/scratch/kocevski/659204/cmap_HighResolution_425692801_425952001_4FGL_J1001.1+2911_daily_bin719.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.67
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .76808       1.0000         .10000E-03   10000.    
     2 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    58.496       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10339E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    54.683       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.742       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.6138       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.4421       1.0000         .10000E-03   10000.    
    16 'norm      '    17.831       1.0000         .10000E-03   10000.    
    17 'Prefactor '    59.605       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11913E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10309E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.236       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .94732       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .98045       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=   5665.135     FROM MIGRAD    STATUS=CONVERGED    561 CALLS     2753 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .76855        2.6111       -.20086E-05    .17541E-03
   2  norm          .10000E-03    .83489        .84922E-07** at limit **
   3  Prefactor     58.498        43.694       -.23542E-06   -.12203E-04
   4  Prefactor     .10000E-03    2.7348        .23402E-05** at limit **
   5  Prefactor     54.685        27.020       -.53651E-07    .42932E-04
   6  Prefactor     .10000E-03    18.792        .11782E-05** at limit **
   7  Prefactor     .10001E-03    45.024       -.35414E-05** at limit **
   8  Prefactor     .10000E-03    12.797       -.12757E-05** at limit **
   9  Prefactor     11.742        6.4898       -.56571E-07    .95765E-04
  10  Prefactor     .10000E-03    7.8118       -.13931E-05** at limit **
  11  Prefactor     .10000E-03    .78853        .11115E-08** at limit **
  12  norm          .10000E-03    1.8631        .14313E-07** at limit **
  13  Prefactor     .10000E-03    1.8474        .12645E-06** at limit **
  14  Prefactor     3.6169        137.40       -.27588E-05   -.52916E-05
  15  Prefactor     2.4406        3.4792       -.35863E-06    .42954E-06
  16  norm          17.822        12.857        .17040E-06   -.96726E-04
  17  Prefactor     59.609        49.980       -.57609E-06   -.50035E-04
  18  Prefactor     .10000E-03    64.238        .41796E-05** at limit **
  19  Prefactor     .10000E-03    6.9645        .11201E-05** at limit **
  20  Prefactor     21.240        10.050       -.27933E-06    .38066E-04
  21  Prefactor     .10000E-03    7.8802       -.58066E-05** at limit **
  22  Prefactor     .10000E-03    6.1500       -.64612E-07** at limit **
  23  Normalizat    .94725        .16233        .47132E-06    .12686E-03
  24  Prefactor     .98044        .17944        .20757E-07    .83071E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.768552
  norm       = 0.0001
  Prefactor  = 58.4975
  Prefactor  = 0.000100003
  Prefactor  = 54.6845
  Prefactor  = 0.000100001
  Prefactor  = 0.000100005
  Prefactor  = 0.000100001
  Prefactor  = 11.7425
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.61687
  Prefactor  = 2.44055
  norm       = 17.8217
  Prefactor  = 59.6087
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 21.2404
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Normalizat = 0.947251
  Prefactor  = 0.980435
 **********
 **   18 **HESSE 
 **********

 FCN=   5665.135     FROM HESSE     STATUS=OK           395 CALLS     3148 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .76855        2.6245        .22289E-03   -1.5533    
   2  norm          .10000E-03    1.4248        .13195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     58.498        43.689        .52455E-04   -1.4177    
   4  Prefactor     .10000E-03    8.2222        .18482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     54.685        26.996        .54243E-04   -1.4228    
   6  Prefactor     .10000E-03    18.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    45.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.742        6.4872        .11691E-03   -1.5022    
  10  Prefactor     .10000E-03    8.0018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .79956        .65230E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.8658        .10033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.8794        .99653E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.6169        137.55        .21254E-03   -1.5328    
  15  Prefactor     2.4406        3.4637        .15923E-03   -1.5396    
  16  norm          17.822        12.839        .94850E-04   -1.4863    
  17  Prefactor     59.609        50.018        .51968E-04   -1.4162    
  18  Prefactor     .10000E-03    65.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.1556        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     21.240        9.7670        .86917E-04   -1.4786    
  21  Prefactor     .10000E-03    9.0676        .16054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.1508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .94725        .18630        .22741E-03   -.94819    
  24  Prefactor     .98044        .20684        .25245E-03   -.93385    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.72335e-10
Minuit parameter uncertainties:
  1  2.62487
  2  2.46854e-05
  3  43.7126
  4  0.000306104
  5  27.0018
  6  0.000202022
  7  0.000964661
  8  0.00018742
  9  6.48757
  10  0.000140362
  11  1.07301e-06
  12  3.02605e-07
  13  5.02214e-06
  14  44.7201
  15  3.46398
  16  12.8412
  17  50.0528
  18  0.000765322
  19  2.95503e-06
  20  9.7677
  21  0.000245311
  22  7.082e-06
  23  0.18643
  24  0.207005
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  1.073e-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.804e-01  2.070e-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:  9.473e-01  1.864e-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: 4.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/659204/likelihoodResults_425692801_425952001_4FGL_J1001.1+2911_daily_bin719.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) = 5665.14081973
delta logL = -0.00589998213945

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5665.13492018
delta logL = -4.36502887169e-07

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5665.135     FROM MIGRAD    STATUS=FAILED        84 CALLS      228 TOTAL
                     EDM=   .52E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10049E-03    28.390        .65490E-03** at limit **
   2  Index         2.2191        5.8771        .50000        .81789E-04
   3  Normalizat    .94725        .24703E-01    .22741E-03    .78138E-04
   4  Prefactor     .98044        .27997E-01    .25245E-03    .51249E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5665.135     FROM SIMPLEX   STATUS=UNCHANGED    133 CALLS      361 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10049E-03    28.390        .15160E-03** at limit **
   2  Index         2.2191        5.8771        .32825E-03    .81789E-04
   3  Normalizat    .94725        .24703E-01    .61910E-05    .78138E-04
   4  Prefactor     .98044        .27997E-01    .50887E-05    .51249E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5665.135     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      403 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    146.90        .13098E-03** at limit **
   2  Index         2.0300        8.8168        .50000        .16073E-06
   3  Normalizat    .94725        .75132E-01    .90963E-05   -.58941E-03
   4  Prefactor     .98043        .85056E-01    .10098E-04   -.52150E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.03
  Normalizat = 0.94725
  Prefactor  = 0.980435
 **********
 **   18 **HESSE 
 **********

 FCN=   5665.135     FROM HESSE     STATUS=OK            29 CALLS      432 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .97046        .26196E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0300        6.2660        .50000       -.63602    
   3  Normalizat    .94725        .18017        .18193E-05   -.94819    
   4  Prefactor     .98043        .20416        .20196E-05   -.93385    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54923e-10
Minuit parameter uncertainties:
  1  6.17927e-07
  2  48.3407
  3  0.180289
  4  0.204319
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/659204': 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) = 5665.13491683
delta logL = 2.91609649139e-06

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  6.179e-07  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.030e+00  4.834e+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:  9.804e-01  2.043e-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:  9.472e-01  1.803e-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/659204/cmap_HighResolution_425692801_425952001_4FGL_J1001.1+2911_daily_bin719.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.67e-03', job_status='DONE', photon_flux_upper_limit='4.80e-08', time_completed='2021-09-01 10:15:36.075728', job_id='659204', GAL2='0.98', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1630516536.08', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='2.92e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='719' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:15:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 659204: <4FGL_J1001.1+2911_daily_bin719> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin719 150.294 29.188 425692801 425952001 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 :                                   650.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             256.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            914 sec.

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

