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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin1153
RA = 150.294, Dec = 29.188
tmin = 538185601, tmax = 538444801
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='660957', job_status='RUN', time_executed='2021-09-01 10:05:59.587878', time_epoch_executed='1630515959.59' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='1153'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/660957

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/660957/ft1_4FGL_J1001.1+2911_daily_bin1153.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/660957/ft2_4FGL_J1001.1+2911_daily_bin1153.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/660957/ft1_4FGL_J1001.1+2911_daily_bin1153.fits outfile=/scratch/kocevski/660957/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin1153.fits ra=150.294 dec=29.188 rad=12.0 tmin=538185601.0 tmax=538444801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.45
user 5.10
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/660957/ft1_filtered_4FGL_J1001.1+2911_daily_bin1153.fits evtable="EVENTS" scfile=/scratch/kocevski/660957/ft2_4FGL_J1001.1+2911_daily_bin1153.fits sctable="SC_DATA" expcube=/scratch/kocevski/660957/ltcube_538185601_538444801_4FGL_J1001.1+2911_daily_bin1153.fits outfile=/scratch/kocevski/660957/expmap_538185601_538444801_4FGL_J1001.1+2911_daily_bin1153.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/660957/ltcube_538185601_538444801_4FGL_J1001.1+2911_daily_bin1153.fits
.....................!
real 194.46
user 185.77
sys 5.72

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/660957/ft1_filtered_4FGL_J1001.1+2911_daily_bin1153.fits scfile=/scratch/kocevski/660957/ft2_4FGL_J1001.1+2911_daily_bin1153.fits outfile=/scratch/kocevski/660957/cmap_538185601_538444801_4FGL_J1001.1+2911_daily_bin1153.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.56
user 0.37
sys 0.15

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

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1641       1.0000         .10000E-03   10000.    
     2 'norm      '    .51751       1.0000         .10000E-03   10000.    
     3 'Prefactor '    74.551       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7526       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.5113       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10901E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.2426       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    45.778       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .32241E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    36.837       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.0901       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .18520E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.1108       1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.471       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0185       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .67053       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=   3298.321     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     2778 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1639        5.0621       -.76893E-07   -.38357E-05
   2  norm          .51855        1.4570       -.26596E-08   -.21719E-04
   3  Prefactor     74.550        81.995       -.66048E-05   -.49275E-04
   4  Prefactor     .10000E-03    2.0586       -.77703E-07** at limit **
   5  Prefactor     .10000E-03    10.039        .90999E-07** at limit **
   6  Prefactor     .10000E-03    25.394        .10150E-05** at limit **
   7  Prefactor     .10000E-03    20.161        .16621E-05** at limit **
   8  Prefactor     .10000E-03    17.268        .55761E-06** at limit **
   9  Prefactor     2.7528        7.7709       -.18990E-05   -.26830E-04
  10  Prefactor     1.5100        2.6366        .32878E-06   -.42387E-03
  11  Prefactor     .10002E-03    1.6175       -.30653E-06** at limit **
  12  norm          5.2418        7.0375        .30018E-05    .31851E-03
  13  Prefactor     .10000E-03    1.2381       -.15861E-07** at limit **
  14  Prefactor     45.789        55.278       -.62220E-05   -.67767E-04
  15  Prefactor     .43182E-01    2.7267       -.17255E-05    .15229E-02
  16  norm          36.844        19.555       -.21825E-05   -.11203E-04
  17  Prefactor     .87357        83.325       -.40102E-05    .79735E-04
  18  Prefactor     .10000E-03    55.171       -.10614E-04** at limit **
  19  Prefactor     7.1188        6.4524        .55433E-06    .45717E-03
  20  Prefactor     16.471        10.804       -.21454E-06    .23628E-04
  21  Prefactor     .10000E-03    1.0608       -.40541E-08** at limit **
  22  Prefactor     .10000E-03    12.989        .70747E-07** at limit **
  23  Normalizat    1.0185        .19856        .16090E-05    .37747E-03
  24  Prefactor     .67051        .21040        .22459E-06    .28009E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.1639
  norm       = 0.518546
  Prefactor  = 74.5497
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.75277
  Prefactor  = 1.51005
  Prefactor  = 0.000100016
  norm       = 5.24178
  Prefactor  = 0.0001
  Prefactor  = 45.7886
  Prefactor  = 0.0431815
  norm       = 36.8442
  Prefactor  = 0.873575
  Prefactor  = 0.000100002
  Prefactor  = 7.11875
  Prefactor  = 16.4709
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.01851
  Prefactor  = 0.670511
 **********
 **   18 **HESSE 
 **********

 FCN=   3298.321     FROM HESSE     STATUS=OK           407 CALLS     3185 TOTAL
                     EDM=   .56E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1639        5.0645        .52636E-03   -1.5173    
   2  norm          .51855        1.2230        .11260E-02   -1.5564    
   3  Prefactor     74.550        82.188        .46502E-04   -1.3979    
   4  Prefactor     .10000E-03    2.0749        .80407E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.045        .17773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    25.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.7528        7.7580        .24536E-03   -1.5376    
  10  Prefactor     1.5100        17.395        .17395E-02   -1.5462    
  11  Prefactor     .10002E-03    19.531        .13858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.2418        7.0376        .17078E-03   -1.5250    
  13  Prefactor     .10000E-03    1.2415        .62377E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     45.789        55.369        .59259E-04   -1.4354    
  15  Prefactor     .43182E-01    53.991        .17345E-02   -1.5666    
  16  norm          36.844        19.558        .66033E-04   -1.4493    
  17  Prefactor     .87357        90.992        .14278       -1.5521    
  18  Prefactor     .10000E-03    55.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.1188        6.4591        .13322E-03   -1.5174    
  20  Prefactor     16.471        10.841        .98686E-04   -1.4896    
  21  Prefactor     .10000E-03    1.0644        .57729E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0185        .23603        .20102E-03   -.92413    
  24  Prefactor     .67051        .24654        .26806E-03   -1.0469    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.59823e-08
Minuit parameter uncertainties:
  1  5.06478
  2  1.22302
  3  82.3131
  4  1.63323e-06
  5  4.7375e-06
  6  4.46937e-05
  7  5.5685e-05
  8  1.77607e-05
  9  7.76084
  10  10.2536
  11  0.00110304
  12  7.03867
  13  2.70434e-06
  14  55.4315
  15  3.053
  16  19.5615
  17  17.8581
  18  0.000698456
  19  6.45974
  20  10.8425
  21  8.61614e-07
  22  9.50857e-07
  23  0.236273
  24  0.246944
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  1.103e-03  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.705e-01  2.469e-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.019e+00  2.363e-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: 8.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/660957/likelihoodResults_538185601_538444801_4FGL_J1001.1+2911_daily_bin1153.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) = 3298.3209726
delta logL = -0.00024879349985

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3295.94503169
delta logL = 2.3756921144

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    8.0466       1.0000          .0000       10.000    
     3 'Normalizat'    .85234       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79540       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5450E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3295.945     FROM MIGRAD    STATUS=CONVERGED    136 CALLS      427 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .63431E-03   -.53710E-07** at limit **
   2  Index         8.0465        .27961       -.89548E-05    .16577E-04
   3  Normalizat    .85229        .23244        .11629E-04   -.33114E-04
   4  Prefactor     .79555        .25376       -.22860E-04   -.47901E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.04654
  Normalizat = 0.852293
  Prefactor  = 0.795553
 **********
 **   18 **HESSE 
 **********

 FCN=   3295.945     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      468 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .45186E-02    .22961E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.0465        2.7197        .84642E-01    .65519    
   3  Normalizat    .85229        .72092E-01    .44290E-01   -.98157    
   4  Prefactor     .79555        .77817E-01    .43657E-01   -.99892    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.962e-09
Minuit parameter uncertainties:
  1  1.2987e-08
  2  2.99709
  3  0.0720997
  4  0.0778282
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/660957': 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) = 3295.94503124
delta logL = 2.37569257036

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  1.299e-08  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  8.047e+00  2.997e+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.956e-01  7.783e-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.523e-01  7.210e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.16
Ra Dec: 150.294 29.188
Photon Index (Free Index): 8.05 +/- 3.00
Photon Flux (Free Index): 1.16e-07 +/- 7.23e-07
Energy Flux (Free Index): 1.35e-05 +/- 8.33e-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/660957/cmap_HighResolution_538185601_538444801_4FGL_J1001.1+2911_daily_bin1153.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.55e-03', comment='SUCCESS', energy_flux2='1.35e-05', dlogl='2.38e+00', photon_flux2='1.16e-07', job_status='DONE', time_completed='2021-09-01 10:14:49.584719', photon_index_error2='3.00', photon_index2='8.05', ts='-0.00', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', photon_flux_upper_limit='8.55e-08', energy_flux_error2='8.33e-05', EG='1.02', time_epoch_completed='1630516489.58', return_code='0', job_id='660957', GAL2='0.80', EG2='0.85', return_code2='102', photon_flux_error2='7.23e-07', ts2='5.16', photon_index='2.27' WHERE bin_id='1153' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:14:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 660957: <4FGL_J1001.1+2911_daily_bin1153> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin1153 150.294 29.188 538185601 538444801 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 :                                   524.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             309.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   549 sec.
    Turnaround time :                            554 sec.

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

