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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin848
RA = 150.294, Dec = 29.188
tmin = 459129601, tmax = 459388801
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='659425', job_status='RUN', time_executed='2021-09-01 10:04:51.482194', time_epoch_executed='1630515891.48' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='848'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/659425

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/659425/ft1_4FGL_J1001.1+2911_daily_bin848.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/659425/ft2_4FGL_J1001.1+2911_daily_bin848.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/659425/ft1_4FGL_J1001.1+2911_daily_bin848.fits outfile=/scratch/kocevski/659425/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin848.fits ra=150.294 dec=29.188 rad=12.0 tmin=459129601.0 tmax=459388801.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.89
user 3.67
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/659425/ft2_4FGL_J1001.1+2911_daily_bin848.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/659425/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin848.fits evtable="EVENTS" outfile="/scratch/kocevski/659425/ft1_filtered_4FGL_J1001.1+2911_daily_bin848.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/659425/ft1_filtered_4FGL_J1001.1+2911_daily_bin848.fits" evtable="EVENTS" scfile=/scratch/kocevski/659425/ft2_4FGL_J1001.1+2911_daily_bin848.fits sctable="SC_DATA" outfile=/scratch/kocevski/659425/ltcube_459129601_459388801_4FGL_J1001.1+2911_daily_bin848.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/659425/ft2_4FGL_J1001.1+2911_daily_bin848.fits
.....................!
real 11.37
user 11.01
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/659425/ft1_filtered_4FGL_J1001.1+2911_daily_bin848.fits evtable="EVENTS" scfile=/scratch/kocevski/659425/ft2_4FGL_J1001.1+2911_daily_bin848.fits sctable="SC_DATA" expcube=/scratch/kocevski/659425/ltcube_459129601_459388801_4FGL_J1001.1+2911_daily_bin848.fits outfile=/scratch/kocevski/659425/expmap_459129601_459388801_4FGL_J1001.1+2911_daily_bin848.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/659425/ltcube_459129601_459388801_4FGL_J1001.1+2911_daily_bin848.fits
.....................!
real 189.71
user 184.88
sys 4.30

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/659425/ft1_filtered_4FGL_J1001.1+2911_daily_bin848.fits scfile=/scratch/kocevski/659425/ft2_4FGL_J1001.1+2911_daily_bin848.fits outfile=/scratch/kocevski/659425/cmap_459129601_459388801_4FGL_J1001.1+2911_daily_bin848.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.70
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/659425/ft1_filtered_4FGL_J1001.1+2911_daily_bin848.fits scfile=/scratch/kocevski/659425/ft2_4FGL_J1001.1+2911_daily_bin848.fits outfile=/scratch/kocevski/659425/cmap_HighResolution_459129601_459388801_4FGL_J1001.1+2911_daily_bin848.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.58
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .71285       1.0000         .10000E-03   10000.    
     2 'norm      '    1.7549       1.0000         .10000E-03   10000.    
     3 'Prefactor '    56.297       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    67.620       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0071       1.0000         .10000E-03   10000.    
     7 'Prefactor '    54.191       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.164       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.366       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .99377       1.0000         .10000E-03   10000.    
    16 'norm      '    .10410E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    73.400       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.0027       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11225E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2496       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .87415       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=   5798.496     FROM MIGRAD    STATUS=CONVERGED    570 CALLS     2748 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .70874        4.9871        .22308E-05   -.20138E-03
   2  norm          1.7545        1.6448        .18744E-07   -.98947E-04
   3  Prefactor     56.280        48.945        .40610E-06    .50864E-04
   4  Prefactor     .10000E-03    3.4143        .46215E-06** at limit **
   5  Prefactor     67.583        35.298        .38174E-05    .96194E-03
   6  Prefactor     .76445        79.236       -.67907E-05    .25027E-03
   7  Prefactor     54.240        55.475        .22286E-06   -.32969E-04
   8  Prefactor     .10000E-03    16.433       -.46796E-07** at limit **
   9  Prefactor     12.166        8.7238       -.63382E-07    .17215E-03
  10  Prefactor     10.365        8.8058        .23341E-06    .52701E-04
  11  Prefactor     .10000E-03    1.2604        .10696E-06** at limit **
  12  norm          .10000E-03    3.3452        .44909E-07** at limit **
  13  Prefactor     .10000E-03    2.1653        .49535E-07** at limit **
  14  Prefactor     .10000E-03    14.652        .15629E-07** at limit **
  15  Prefactor     .99380        5.0197       -.14173E-05   -.20554E-03
  16  norm          .10000E-03    32.480       -.85264E-06** at limit **
  17  Prefactor     73.351        62.409       -.23286E-05   -.25640E-03
  18  Prefactor     .10000E-03    21.642       -.64404E-06** at limit **
  19  Prefactor     6.0177        8.2814        .51417E-05   -.53106E-03
  20  Prefactor     .10000E-03    5.1645        .48020E-07** at limit **
  21  Prefactor     .10000E-03    .94767        .16146E-07** at limit **
  22  Prefactor     .10000E-03    45.816       -.32473E-06** at limit **
  23  Normalizat    1.2498        .19564       -.13608E-05    .38271E-03
  24  Prefactor     .87436        .19457       -.30546E-06    .20950E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.708744
  norm       = 1.75455
  Prefactor  = 56.2804
  Prefactor  = 0.0001
  Prefactor  = 67.5835
  Prefactor  = 0.764445
  Prefactor  = 54.2404
  Prefactor  = 0.0001
  Prefactor  = 12.1662
  Prefactor  = 10.3651
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.993797
  norm       = 0.0001
  Prefactor  = 73.351
  Prefactor  = 0.0001
  Prefactor  = 6.01774
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.24979
  Prefactor  = 0.874363
 **********
 **   18 **HESSE 
 **********

 FCN=   5798.496     FROM HESSE     STATUS=OK           399 CALLS     3147 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .70874        4.9857        .32794E-03   -1.5540    
   2  norm          1.7545        1.6377        .91645E-04   -1.5443    
   3  Prefactor     56.280        48.945        .53464E-04   -1.4206    
   4  Prefactor     .10000E-03    3.4825        .13715E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     67.583        37.105        .24405E-03   -1.4062    
   6  Prefactor     .76445        78.571        .17615       -1.5533    
   7  Prefactor     54.240        55.835        .54487E-04   -1.4234    
   8  Prefactor     .10000E-03    16.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.166        8.7377        .11486E-03   -1.5010    
  10  Prefactor     10.365        8.8056        .12445E-03   -1.5064    
  11  Prefactor     .10000E-03    1.3032        .16685E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.3566        .13600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.1767        .10882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .99380        8.4539        .29194E-02   -1.5509    
  16  norm          .10000E-03    33.409        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     73.351        63.190        .46862E-04   -1.3993    
  18  Prefactor     .10000E-03    21.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.0177        8.4654        .81943E-03   -1.5217    
  20  Prefactor     .10000E-03    5.2259        .16896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    .96052        .72367E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    46.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2498        .23429        .23396E-03   -.85078    
  24  Prefactor     .87436        .23425        .28951E-03   -.97043    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90192e-08
Minuit parameter uncertainties:
  1  3.75974
  2  1.63774
  3  48.9803
  4  1.07569e-05
  5  37.1174
  6  15.5201
  7  55.8894
  8  1.51136e-06
  9  8.73858
  10  8.80672
  11  7.32261e-07
  12  8.86602e-06
  13  8.87035e-06
  14  7.26477e-06
  15  5.79786
  16  0.000188805
  17  63.2478
  18  0.000138853
  19  8.46713
  20  1.32025e-05
  21  2.51501e-06
  22  2.52196e-05
  23  0.234492
  24  0.234523
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  7.323e-07  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:  8.744e-01  2.345e-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.250e+00  2.345e-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: 6.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/659425/likelihoodResults_459129601_459388801_4FGL_J1001.1+2911_daily_bin848.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) = 5798.49972384
delta logL = -0.00363648727762

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5798.49608744
delta logL = -8.44784153742e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2570       1.0000          .0000       10.000    
     3 'Normalizat'    1.2498       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87440       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=   5798.496     FROM MIGRAD    STATUS=FAILED        89 CALLS      246 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10054E-03    134.62        .16780E-03** at limit **
   2  Index         2.2164        6.5282        .50000        .56940E-04
   3  Normalizat    1.2498        .53568E-01    .23397E-03    .10308E-03
   4  Prefactor     .87436        .56774E-01    .28951E-03    .84742E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5798.496     FROM SIMPLEX   STATUS=UNCHANGED    140 CALLS      386 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10054E-03    134.62        .20269E-03** at limit **
   2  Index         2.2164        6.5282        .68311E-04    .56940E-04
   3  Normalizat    1.2498        .53568E-01    .14851E-05    .10308E-03
   4  Prefactor     .87436        .56774E-01    .20454E-05    .84742E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5798.496     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      427 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.8701        .33559E-04** at limit **
   2  Index         2.0727        5.2425        .50000        .27057E-07
   3  Normalizat    1.2498        .21620        .46793E-04   -.36264E-03
   4  Prefactor     .87436        .22914        .11580E-04   -.29530E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.07266
  Normalizat = 1.24978
  Prefactor  = 0.874364
 **********
 **   18 **HESSE 
 **********

 FCN=   5798.496     FROM HESSE     STATUS=OK            29 CALLS      456 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.3827        .67118E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0727        5.5314        .50000       -.62546    
   3  Normalizat    1.2498        .21625        .93586E-05   -.85078    
   4  Prefactor     .87436        .22921        .23161E-05   -.97043    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40118e-10
Minuit parameter uncertainties:
  1  1.99586e-06
  2  49.9512
  3  0.216401
  4  0.229465
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/659425': 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) = 5798.49608554
delta logL = 1.80948882189e-06

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  1.996e-06  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.073e+00  4.995e+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:  8.744e-01  2.295e-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.250e+00  2.164e-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/659425/cmap_HighResolution_459129601_459388801_4FGL_J1001.1+2911_daily_bin848.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.60e-03', job_status='DONE', photon_flux_upper_limit='6.00e-08', time_completed='2021-09-01 10:15:35.923642', job_id='659425', GAL2='0.87', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1630516535.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.81e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='848' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:15:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0012>
Subject: Job 659425: <4FGL_J1001.1+2911_daily_bin848> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin848 150.294 29.188 459129601 459388801 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 :                                   641.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             257.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            901 sec.

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

