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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin988
RA = 150.294, Dec = 29.188
tmin = 495417601, tmax = 495676801
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='660709', job_status='RUN', time_executed='2021-09-01 10:08:12.660884', time_epoch_executed='1630516092.66' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='988'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/660709

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/660709/ft1_4FGL_J1001.1+2911_daily_bin988.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/660709/ft2_4FGL_J1001.1+2911_daily_bin988.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/660709/ft1_4FGL_J1001.1+2911_daily_bin988.fits outfile=/scratch/kocevski/660709/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin988.fits ra=150.294 dec=29.188 rad=12.0 tmin=495417601.0 tmax=495676801.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.92
user 3.53
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/660709/ft2_4FGL_J1001.1+2911_daily_bin988.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/660709/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin988.fits evtable="EVENTS" outfile="/scratch/kocevski/660709/ft1_filtered_4FGL_J1001.1+2911_daily_bin988.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 1.29
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/660709/ft1_filtered_4FGL_J1001.1+2911_daily_bin988.fits" evtable="EVENTS" scfile=/scratch/kocevski/660709/ft2_4FGL_J1001.1+2911_daily_bin988.fits sctable="SC_DATA" outfile=/scratch/kocevski/660709/ltcube_495417601_495676801_4FGL_J1001.1+2911_daily_bin988.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/660709/ft2_4FGL_J1001.1+2911_daily_bin988.fits
.....................!
real 12.27
user 11.51
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/660709/ft1_filtered_4FGL_J1001.1+2911_daily_bin988.fits evtable="EVENTS" scfile=/scratch/kocevski/660709/ft2_4FGL_J1001.1+2911_daily_bin988.fits sctable="SC_DATA" expcube=/scratch/kocevski/660709/ltcube_495417601_495676801_4FGL_J1001.1+2911_daily_bin988.fits outfile=/scratch/kocevski/660709/expmap_495417601_495676801_4FGL_J1001.1+2911_daily_bin988.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/660709/ltcube_495417601_495676801_4FGL_J1001.1+2911_daily_bin988.fits
.....................!
real 193.76
user 186.67
sys 5.52

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/660709/ft1_filtered_4FGL_J1001.1+2911_daily_bin988.fits scfile=/scratch/kocevski/660709/ft2_4FGL_J1001.1+2911_daily_bin988.fits outfile=/scratch/kocevski/660709/cmap_495417601_495676801_4FGL_J1001.1+2911_daily_bin988.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 3.23
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/660709/ft1_filtered_4FGL_J1001.1+2911_daily_bin988.fits scfile=/scratch/kocevski/660709/ft2_4FGL_J1001.1+2911_daily_bin988.fits outfile=/scratch/kocevski/660709/cmap_HighResolution_495417601_495676801_4FGL_J1001.1+2911_daily_bin988.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=150.294 yref=29.188 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.24
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.7287       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.548       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.448       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    55.750       1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.411       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.5964       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10786E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.168       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    15.302       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.204       1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.977       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.5135       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.900       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3535       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .69725       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=   6018.834     FROM MIGRAD    STATUS=CONVERGED    532 CALLS     2707 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.6316       -.13535E-05** at limit **
   2  norm          1.7288        1.3263       -.13327E-06    .10574E-03
   3  Prefactor     16.552        47.598        .60637E-05    .84204E-05
   4  Prefactor     .10000E-03    1.2195       -.70496E-07** at limit **
   5  Prefactor     .10000E-03    23.377       -.48310E-05** at limit **
   6  Prefactor     12.418        25.874       -.44275E-04   -.19450E-05
   7  Prefactor     .10000E-03    32.326        .95344E-05** at limit **
   8  Prefactor     55.750        44.766       -.44161E-06    .11181E-04
   9  Prefactor     22.411        8.6630       -.11889E-06    .76402E-04
  10  Prefactor     .10000E-03    3.3051       -.12426E-05** at limit **
  11  Prefactor     2.5962        2.9960       -.12361E-05   -.53335E-03
  12  norm          .10000E-03    2.7051        .10569E-05** at limit **
  13  Prefactor     .10000E-03    1.9293        .26545E-06** at limit **
  14  Prefactor     22.168        52.743       -.37960E-06    .43073E-05
  15  Prefactor     .10000E-03    3.2358        .12813E-05** at limit **
  16  norm          15.301        12.071        .29652E-07   -.32596E-04
  17  Prefactor     13.165        39.542       -.83286E-04    .19436E-05
  18  Prefactor     22.970        39.752       -.10075E-04   -.15266E-04
  19  Prefactor     6.5141        6.3270        .10164E-05   -.12283E-02
  20  Prefactor     .10000E-03    2.4488        .10892E-06** at limit **
  21  Prefactor     .10000E-03    1.3145       -.73989E-07** at limit **
  22  Prefactor     12.901        29.829        .13297E-05    .42404E-05
  23  Normalizat    1.3535        .18078        .10971E-05    .63311E-04
  24  Prefactor     .69723        .18868        .57135E-05   -.24887E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.72883
  Prefactor  = 16.5515
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.4178
  Prefactor  = 0.0001
  Prefactor  = 55.7498
  Prefactor  = 22.4105
  Prefactor  = 0.0001
  Prefactor  = 2.59617
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.1684
  Prefactor  = 0.0001
  norm       = 15.301
  Prefactor  = 13.1648
  Prefactor  = 22.9705
  Prefactor  = 6.51408
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.9011
  Normalizat = 1.35351
  Prefactor  = 0.697225
 **********
 **   18 **HESSE 
 **********

 FCN=   6018.834     FROM HESSE     STATUS=OK           399 CALLS     3106 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.6623        .12289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.7288        1.3297        .76122E-04   -1.5445    
   3  Prefactor     16.552        47.691        .98457E-04   -1.4894    
   4  Prefactor     .10000E-03    1.2281        .83643E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    23.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.418        25.885        .11354E-03   -1.5003    
   7  Prefactor     .10000E-03    32.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     55.750        44.762        .53724E-04   -1.4213    
   9  Prefactor     22.411        8.6665        .84611E-04   -1.4761    
  10  Prefactor     .10000E-03    3.3243        .13774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.5962        2.9884        .13516E-03   -1.5386    
  12  norm          .10000E-03    2.7109        .12460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.0423        .20649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     22.168        52.753        .85072E-04   -1.4766    
  15  Prefactor     .10000E-03    3.2759        .13588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          15.301        12.070        .10239E-03   -1.4925    
  17  Prefactor     13.165        39.567        .11023E-03   -1.4982    
  18  Prefactor     22.970        39.728        .83564E-04   -1.4749    
  19  Prefactor     6.5141        6.3309        .78625E-03   -1.5197    
  20  Prefactor     .10000E-03    2.4548        .11855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.3544        .17362E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     12.901        29.837        .11153E-03   -1.4989    
  23  Normalizat    1.3535        .21514        .22091E-03   -.81983    
  24  Prefactor     .69723        .22339        .30982E-03   -1.0364    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11081e-09
Minuit parameter uncertainties:
  1  1.61508e-05
  2  1.32971
  3  47.8015
  4  7.33817e-06
  5  3.10192e-05
  6  25.9082
  7  7.01096e-05
  8  44.7892
  9  8.66699
  10  5.67861e-06
  11  2.98862
  12  2.91722e-06
  13  5.43682e-05
  14  52.8638
  15  8.88064e-06
  16  12.0715
  17  39.6464
  18  39.7739
  19  6.33153
  20  5.54984e-06
  21  6.63762e-06
  22  29.8716
  23  0.21528
  24  0.223674
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  2.596e+00  2.989e+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:  6.972e-01  2.237e-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.354e+00  2.153e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/660709/likelihoodResults_495417601_495676801_4FGL_J1001.1+2911_daily_bin988.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) = 6017.65724071
delta logL = 1.17665838692

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6017.64605467
delta logL = 1.18784443394

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0038       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4516       1.0000          .0000       10.000    
     3 'Normalizat'    1.2798       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74699       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=   6017.646     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      247 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0033        9.0503        .10579E-01    .74426E-03
   2  Index         3.4517        2.5785        .12205        .13732E-03
   3  Normalizat    1.2798        .48364E-01    .51059E-01    .60435E-06
   4  Prefactor     .74697        .50568E-01    .67775E-01    .19877E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.00331
  Index      = 3.45175
  Normalizat = 1.27983
  Prefactor  = 0.746973
 **********
 **   18 **HESSE 
 **********

 FCN=   6017.646     FROM HESSE     STATUS=OK            33 CALLS      280 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0033        2.4719        .47739E-04   -1.5508    
   2  Index         3.4517        1.3458        .45464E-02   -.31483    
   3  Normalizat    1.2798        .21785        .22574E-03   -.84170    
   4  Prefactor     .74697        .22344        .29989E-03   -1.0171    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.9616e-11
Minuit parameter uncertainties:
  1  2.47218
  2  1.36447
  3  0.218004
  4  0.223715
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/660709': 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) = 6017.64605461
delta logL = 1.18784448911

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.003e+00  2.472e+00  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  3.452e+00  1.364e+00  0.000e+00  1.000e+01 (-1.000e+00)
261        Scale:  9.601e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
542    Prefactor:  7.470e-01  2.237e-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.280e+00  2.180e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.45
Ra Dec: 150.294 29.188
Photon Index (Free Index): 3.45 +/- 1.36
Photon Flux (Free Index): 1.01e-07 +/- 6.71e-08
Energy Flux (Free Index): 1.70e-05 +/- 1.17e-05

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/660709/cmap_HighResolution_495417601_495676801_4FGL_J1001.1+2911_daily_bin988.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.08e-03', comment='SUCCESS', energy_flux2='1.70e-05', dlogl='1.19e+00', photon_flux2='1.01e-07', job_status='DONE', time_completed='2021-09-01 10:19:29.978939', photon_index_error2='1.36', photon_index2='3.45', ts='0.95', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='1.19e-07', energy_flux_error2='1.17e-05', EG='1.35', time_epoch_completed='1630516769.98', return_code='0', job_id='660709', GAL2='0.75', EG2='1.28', return_code2='0', photon_flux_error2='6.71e-08', ts2='3.45', photon_index='2.27' WHERE bin_id='988' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:19:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 660709: <4FGL_J1001.1+2911_daily_bin988> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin988 150.294 29.188 495417601 495676801 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 :                                   654.15 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             276.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            852 sec.

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

