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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin982
RA = 150.294, Dec = 29.188
tmin = 493862401, tmax = 494121601
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='660700', job_status='RUN', time_executed='2021-09-01 10:05:35.040773', time_epoch_executed='1630515935.04' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='982'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/660700

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/660700/ft1_4FGL_J1001.1+2911_daily_bin982.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/660700/ft2_4FGL_J1001.1+2911_daily_bin982.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/660700/ft1_4FGL_J1001.1+2911_daily_bin982.fits outfile=/scratch/kocevski/660700/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin982.fits ra=150.294 dec=29.188 rad=12.0 tmin=493862401.0 tmax=494121601.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.65
user 3.39
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/660700/ft1_filtered_4FGL_J1001.1+2911_daily_bin982.fits evtable="EVENTS" scfile=/scratch/kocevski/660700/ft2_4FGL_J1001.1+2911_daily_bin982.fits sctable="SC_DATA" expcube=/scratch/kocevski/660700/ltcube_493862401_494121601_4FGL_J1001.1+2911_daily_bin982.fits outfile=/scratch/kocevski/660700/expmap_493862401_494121601_4FGL_J1001.1+2911_daily_bin982.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/660700/ltcube_493862401_494121601_4FGL_J1001.1+2911_daily_bin982.fits
.....................!
real 191.24
user 185.15
sys 4.73

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/660700/ft1_filtered_4FGL_J1001.1+2911_daily_bin982.fits scfile=/scratch/kocevski/660700/ft2_4FGL_J1001.1+2911_daily_bin982.fits outfile=/scratch/kocevski/660700/cmap_493862401_494121601_4FGL_J1001.1+2911_daily_bin982.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.69
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.6297       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.6667       1.0000         .10000E-03   10000.    
     5 'Prefactor '    48.621       1.0000         .10000E-03   10000.    
     6 'Prefactor '    117.74       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    28.342       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.4047       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.5775       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10900E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10727E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.063       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.0544       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.4285       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .72643       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10999E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .88753       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0169       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=   5058.193     FROM MIGRAD    STATUS=CONVERGED    541 CALLS     2722 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.4926        .14143E-06** at limit **
   2  norm          .10000E-03    .49462        .43174E-07** at limit **
   3  Prefactor     8.6072        84.991        .14778E-05   -.11493E-04
   4  Prefactor     4.6673        3.8428        .16836E-06   -.50733E-04
   5  Prefactor     48.621        32.198        .10412E-06   -.38679E-04
   6  Prefactor     117.75        76.164        .48676E-06   -.29532E-05
   7  Prefactor     .10000E-03    18.916        .23373E-06** at limit **
   8  Prefactor     28.246        45.105       -.31937E-06   -.11301E-03
   9  Prefactor     5.4051        4.8611        .43720E-07   -.56844E-04
  10  Prefactor     6.5829        10.132        .41499E-05   -.16782E-03
  11  Prefactor     .10000E-03    1.0810        .47007E-06** at limit **
  12  norm          .10000E-03    3.4406        .19730E-06** at limit **
  13  Prefactor     .10000E-03    2.2238        .54420E-06** at limit **
  14  Prefactor     23.050        47.271        .78384E-06   -.18329E-04
  15  Prefactor     .10000E-03    3.3222        .42984E-06** at limit **
  16  norm          4.0548        4.7378       -.16203E-07   -.28324E-04
  17  Prefactor     .10000E-03    24.626        .23435E-06** at limit **
  18  Prefactor     .10000E-03    18.285        .41393E-06** at limit **
  19  Prefactor     .10000E-03    3.9660        .60247E-06** at limit **
  20  Prefactor     8.4281        7.4921       -.32004E-06   -.13911E-03
  21  Prefactor     .72643        2.5287        .17506E-05    .11142E-05
  22  Prefactor     .10000E-03    36.290        .13930E-05** at limit **
  23  Normalizat    .88730        .17343       -.97705E-06   -.36291E-03
  24  Prefactor     1.0172        .18762       -.15220E-05   -.25357E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.60716
  Prefactor  = 4.66735
  Prefactor  = 48.6211
  Prefactor  = 117.751
  Prefactor  = 0.0001
  Prefactor  = 28.2462
  Prefactor  = 5.40506
  Prefactor  = 6.58288
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 23.0503
  Prefactor  = 0.0001
  norm       = 4.05482
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.42812
  Prefactor  = 0.726435
  Prefactor  = 0.0001
  Normalizat = 0.887301
  Prefactor  = 1.01719
 **********
 **   18 **HESSE 
 **********

 FCN=   5058.193     FROM HESSE     STATUS=OK           397 CALLS     3119 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.5003        .84874E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .49599        .48842E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.6072        85.168        .13645E-03   -1.5121    
   4  Prefactor     4.6673        3.8388        .12011E-03   -1.5276    
   5  Prefactor     48.621        32.218        .57508E-04   -1.4312    
   6  Prefactor     117.75        76.167        .37084E-04   -1.3533    
   7  Prefactor     .10000E-03    18.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     28.246        45.165        .75254E-04   -1.4645    
   9  Prefactor     5.4051        4.8612        .14275E-03   -1.5243    
  10  Prefactor     6.5829        10.091        .78237E-03   -1.5195    
  11  Prefactor     .10000E-03    1.8650        .14221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.4565        .12886E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.6749        .19885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     23.050        47.285        .83408E-04   -1.4747    
  15  Prefactor     .10000E-03    3.4239        .25189E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.0548        4.7369        .16327E-03   -1.5305    
  17  Prefactor     .10000E-03    24.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.1530        .27673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.4281        7.4385        .13808E-03   -1.5127    
  21  Prefactor     .72643        2.5478        .19549E-03   -1.5538    
  22  Prefactor     .10000E-03    37.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .88730        .19904        .22572E-03   -.96908    
  24  Prefactor     1.0172        .21686        .24211E-03   -.92159    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.33116e-10
Minuit parameter uncertainties:
  1  1.94051e-06
  2  5.13125e-07
  3  54.2502
  4  3.83902
  5  32.2296
  6  76.2303
  7  2.0034e-06
  8  45.22
  9  4.86155
  10  10.094
  11  3.72696e-05
  12  5.6856e-06
  13  0.0001649
  14  47.3622
  15  1.64521e-05
  16  4.73734
  17  2.98917e-05
  18  2.95477e-05
  19  4.70385e-06
  20  7.43932
  21  2.54822
  22  0.00012079
  23  0.199205
  24  0.217049
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  3.727e-05  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:  1.017e+00  2.170e-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:  8.873e-01  1.992e-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: 5.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/660700/likelihoodResults_493862401_494121601_4FGL_J1001.1+2911_daily_bin982.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) = 5058.19604058
delta logL = -0.00255905773429

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5058.19348163
delta logL = -1.06806510303e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2853       1.0000          .0000       10.000    
     3 'Normalizat'    .88732       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0173       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=   5058.193     FROM MIGRAD    STATUS=FAILED        90 CALLS      254 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10203E-03    28.525        .14149E-02** at limit **
   2  Index         2.3809        5.9918        .50000       -.56155E-04
   3  Normalizat    .88730        .15754E-01    .22571E-03    .28539E-03
   4  Prefactor     1.0172        .18070E-01    .24211E-03    .18884E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5058.193     FROM SIMPLEX   STATUS=UNCHANGED    115 CALLS      369 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10203E-03    28.525        .24052E-03** at limit **
   2  Index         2.3809        5.9918        .32990E-03   -.56155E-04
   3  Normalizat    .88730        .15754E-01    .26030E-05    .28539E-03
   4  Prefactor     1.0172        .18070E-01    .36121E-05    .18884E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5058.193     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      418 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.8559        .28299E-02** at limit **
   2  Index         2.6020        5.9714        .50000        .11174E-05
   3  Normalizat    .88730        .74941E-02    .45142E-04   -.24814E-02
   4  Prefactor     1.0172        .85958E-02    .48422E-04   -.23539E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.60201
  Normalizat = 0.887298
  Prefactor  = 1.01718
 **********
 **   18 **HESSE 
 **********

 FCN=   5058.193     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      447 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    224.29        .11320E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6020        8.4624        .50000       -.50020    
   3  Normalizat    .88730        .49281E-01    .90285E-05   -.96908    
   4  Prefactor     1.0172        .56190E-01    .96845E-05   -.92159    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.41851e-08
Minuit parameter uncertainties:
  1  9.57774e-05
  2  457.63
  3  0.0492835
  4  0.0561931
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/660700': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5058.19347825
delta logL = 3.27480393025e-06

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  9.578e-05  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.602e+00  4.576e+02  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.017e+00  5.619e-02  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:  8.873e-01  4.928e-02  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/660700/cmap_HighResolution_493862401_494121601_4FGL_J1001.1+2911_daily_bin982.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.24e-03', job_status='DONE', photon_flux_upper_limit='5.54e-08', time_completed='2021-09-01 10:15:52.249277', job_id='660700', GAL2='1.02', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1630516552.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='3.27e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='982' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:15:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 660700: <4FGL_J1001.1+2911_daily_bin982> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin982> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 10:05:18 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 10:05:19 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:05:19 2021
Terminated at Wed Sep  1 10:15:53 2021
Results reported at Wed Sep  1 10:15:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin982 150.294 29.188 493862401 494121601 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 :                                   611.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             376.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   633 sec.
    Turnaround time :                            635 sec.

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

