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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin1540
RA = 150.294, Dec = 29.188
tmin = 638496001, tmax = 638755201
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='662657', job_status='RUN', time_executed='2021-09-01 10:11:02.783248', time_epoch_executed='1630516262.78' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='1540'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/662657

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/662657/ft1_4FGL_J1001.1+2911_daily_bin1540.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/662657/ft2_4FGL_J1001.1+2911_daily_bin1540.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/662657/ft1_4FGL_J1001.1+2911_daily_bin1540.fits outfile=/scratch/kocevski/662657/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin1540.fits ra=150.294 dec=29.188 rad=12.0 tmin=638496001.0 tmax=638755201.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.14
user 4.24
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/662657/ft1_filtered_4FGL_J1001.1+2911_daily_bin1540.fits" evtable="EVENTS" scfile=/scratch/kocevski/662657/ft2_4FGL_J1001.1+2911_daily_bin1540.fits sctable="SC_DATA" outfile=/scratch/kocevski/662657/ltcube_638496001_638755201_4FGL_J1001.1+2911_daily_bin1540.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/662657/ft2_4FGL_J1001.1+2911_daily_bin1540.fits
.....................!
real 15.05
user 14.10
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/662657/ft1_filtered_4FGL_J1001.1+2911_daily_bin1540.fits evtable="EVENTS" scfile=/scratch/kocevski/662657/ft2_4FGL_J1001.1+2911_daily_bin1540.fits sctable="SC_DATA" expcube=/scratch/kocevski/662657/ltcube_638496001_638755201_4FGL_J1001.1+2911_daily_bin1540.fits outfile=/scratch/kocevski/662657/expmap_638496001_638755201_4FGL_J1001.1+2911_daily_bin1540.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/662657/ltcube_638496001_638755201_4FGL_J1001.1+2911_daily_bin1540.fits
.....................!
real 194.82
user 185.57
sys 4.41

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/662657/ft1_filtered_4FGL_J1001.1+2911_daily_bin1540.fits scfile=/scratch/kocevski/662657/ft2_4FGL_J1001.1+2911_daily_bin1540.fits outfile=/scratch/kocevski/662657/cmap_638496001_638755201_4FGL_J1001.1+2911_daily_bin1540.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.57
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/662657/ft1_filtered_4FGL_J1001.1+2911_daily_bin1540.fits scfile=/scratch/kocevski/662657/ft2_4FGL_J1001.1+2911_daily_bin1540.fits outfile=/scratch/kocevski/662657/cmap_HighResolution_638496001_638755201_4FGL_J1001.1+2911_daily_bin1540.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.61
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4583       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .84602E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.5115       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .18074E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .71180E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    88.819       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10127E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .57524       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.254       1.0000         .10000E-03   10000.    
    16 'norm      '    7.0905       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10498E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.806       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.3595       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.6246       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.000       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0906       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .97131       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.

 FCN=   5751.885     FROM MIGRAD    STATUS=CONVERGED    958 CALLS     3160 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4585        3.5464        .70319E-03    .12242E-03
   2  norm          .10000E-03    .43428        .48731E-03** at limit **
   3  Prefactor     .10040E-03    597.32        .41737E-03** at limit **
   4  Prefactor     .10000E-03    1.3766        .86185E-03** at limit **
   5  Prefactor     6.5121        20.576        .15727E-03    .45540E-05
   6  Prefactor     .10000E-03    149.94        .18142E-02** at limit **
   7  Prefactor     .10005E-03    38.248        .12861    ** at limit **
   8  Prefactor     88.837        54.133        .42634E-04   -.16901E-03
   9  Prefactor     .10000E-03    1.4029        .87675E-03** at limit **
  10  Prefactor     .10000E-03    9.7140        .18142E-02** at limit **
  11  Prefactor     .10000E-03    .95235        .71713E-03** at limit **
  12  norm          .10000E-03    8.5153        .18142E-02** at limit **
  13  Prefactor     .57895        9.2212        .26232E-02    .83692E-03
  14  Prefactor     .10000E-03    12.530        .18142E-02** at limit **
  15  Prefactor     21.245        7.4118        .86880E-04   -.60717E-03
  16  norm          7.0893        10.051        .75324E-03    .48947E-04
  17  Prefactor     .10000E-03    22.146        .18142E-02** at limit **
  18  Prefactor     10.808        27.164        .12188E-03   -.13712E-04
  19  Prefactor     .10000E-03    4.0681        .14819E-02** at limit **
  20  Prefactor     2.3599        5.0862        .24331E-03    .34436E-04
  21  Prefactor     3.6247        2.4230        .93159E-04    .32828E-04
  22  Prefactor     10.986        23.174        .12080E-03   -.74445E-04
  23  Normalizat    1.0906        .19921        .22824E-03   -.13884E-03
  24  Prefactor     .97127        .21557        .26685E-03   -.10127E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.45848
  norm       = 0.0001
  Prefactor  = 0.000100403
  Prefactor  = 0.0001
  Prefactor  = 6.5121
  Prefactor  = 0.000100002
  Prefactor  = 0.000100052
  Prefactor  = 88.8372
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.578949
  Prefactor  = 0.0001
  Prefactor  = 21.2447
  norm       = 7.08925
  Prefactor  = 0.0001
  Prefactor  = 10.8077
  Prefactor  = 0.0001
  Prefactor  = 2.35991
  Prefactor  = 3.62471
  Prefactor  = 10.986
  Normalizat = 1.09061
  Prefactor  = 0.971265
 **********
 **   18 **HESSE 
 **********

 FCN=   5751.885     FROM HESSE     STATUS=OK           387 CALLS     3547 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4585        3.5462        .28127E-04   -1.5336    
   2  norm          .10000E-03    .43429        .97463E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10040E-03    597.33        .83474E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.3768        .17237E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.5121        20.572        .62909E-05   -1.5198    
   6  Prefactor     .10000E-03    149.99        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10005E-03    37.200        .13116       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     88.837        54.132        .85267E-05   -1.3820    
   9  Prefactor     .10000E-03    1.4029        .17535E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.7189        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .95243        .14343E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    8.5214        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .57895        8.7621        .10493E-03   -1.5556    
  14  Prefactor     .10000E-03    12.530        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     21.245        7.2408        .34752E-05   -1.4786    
  16  norm          7.0893        10.049        .30130E-04   -1.5175    
  17  Prefactor     .10000E-03    22.147        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.808        27.152        .48751E-05   -1.5050    
  19  Prefactor     .10000E-03    4.0690        .29637E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.3599        5.0859        .97324E-05   -1.5401    
  21  Prefactor     3.6247        2.4229        .37263E-05   -1.5327    
  22  Prefactor     10.986        23.173        .48318E-05   -1.5045    
  23  Normalizat    1.0906        .19926        .45648E-04   -.90054    
  24  Prefactor     .97127        .21576        .10674E-04   -.93694    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10067e-09
Minuit parameter uncertainties:
  1  3.5464
  2  1.16748e-07
  3  0.0313457
  4  2.23463e-06
  5  20.5939
  6  0.00122739
  7  0.00277736
  8  54.1618
  9  1.41084e-06
  10  7.15028e-06
  11  1.96566e-06
  12  2.76867e-05
  13  4.50497
  14  1.26203e-05
  15  7.24111
  16  10.0513
  17  1.69114e-05
  18  27.1828
  19  3.02979e-05
  20  5.08684
  21  2.42297
  22  23.1918
  23  0.199398
  24  0.215948
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
542    Prefactor:  9.713e-01  2.159e-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.091e+00  1.994e-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.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/662657/likelihoodResults_638496001_638755201_4FGL_J1001.1+2911_daily_bin1540.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) = 5751.89008003
delta logL = -0.00495815080649

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5751.88512214
delta logL = -2.63318725047e-07

Fit tolerance = 1e-08

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

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

 FCN=   5751.885     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      230 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    80.501        .71730E-03** at limit **
   2  Index         2.2476        6.3355        .50000        .12676E-04
   3  Normalizat    1.0906        .43884E-01    .22824E-03    .15591E-04
   4  Prefactor     .97127        .48856E-01    .26685E-03    .36340E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100051
  Index      = 2.24765
  Normalizat = 1.09062
  Prefactor  = 0.971265
 **********
 **   18 **HESSE 
 **********

 FCN=   5751.885     FROM HESSE     STATUS=OK            29 CALLS      259 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    16.288        .14346E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2476        6.9967        .50000       -.58293    
   3  Normalizat    1.0906        .19197        .91295E-05   -.90054    
   4  Prefactor     .97127        .21358        .10674E-04   -.93694    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.38782e-08
Minuit parameter uncertainties:
  1  0.00182552
  2  311.252
  3  0.192094
  4  0.213766
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/662657': 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) = 5751.88512183
delta logL = 4.97566361446e-08

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.001e-04  1.826e-03  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.248e+00  3.113e+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:  9.713e-01  2.138e-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.091e+00  1.921e-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/662657/cmap_HighResolution_638496001_638755201_4FGL_J1001.1+2911_daily_bin1540.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.17e-03', job_status='DONE', photon_flux_upper_limit='5.45e-08', time_completed='2021-09-01 10:22:44.819683', job_id='662657', GAL2='0.97', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1630516964.82', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='4.98e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='1540' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:22:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 662657: <4FGL_J1001.1+2911_daily_bin1540> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin1540> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  1 10:10:42 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 10:10:43 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:10:43 2021
Terminated at Wed Sep  1 10:22:45 2021
Results reported at Wed Sep  1 10:22:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin1540 150.294 29.188 638496001 638755201 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 :                                   685.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   722 sec.
    Turnaround time :                            723 sec.

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

