/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 27 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 = 7419
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1001.1+2911_daily_bin10
RA = 150.294, Dec = 29.188
tmin = 241920001, tmax = 242179201
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='654459', job_status='RUN', time_executed='2021-09-01 09:46:10.077907', time_epoch_executed='1630514770.08' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='10'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/654459

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/654459/ft1_4FGL_J1001.1+2911_daily_bin10.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/654459/ft2_4FGL_J1001.1+2911_daily_bin10.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/654459/ft1_4FGL_J1001.1+2911_daily_bin10.fits outfile=/scratch/kocevski/654459/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin10.fits ra=150.294 dec=29.188 rad=12.0 tmin=241920001.0 tmax=242179201.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 4.06
user 1.24
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/654459/ft1_filtered_4FGL_J1001.1+2911_daily_bin10.fits evtable="EVENTS" scfile=/scratch/kocevski/654459/ft2_4FGL_J1001.1+2911_daily_bin10.fits sctable="SC_DATA" expcube=/scratch/kocevski/654459/ltcube_241920001_242179201_4FGL_J1001.1+2911_daily_bin10.fits outfile=/scratch/kocevski/654459/expmap_241920001_242179201_4FGL_J1001.1+2911_daily_bin10.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/654459/ltcube_241920001_242179201_4FGL_J1001.1+2911_daily_bin10.fits
.....................!
real 191.51
user 185.38
sys 4.68

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/654459/ft1_filtered_4FGL_J1001.1+2911_daily_bin10.fits scfile=/scratch/kocevski/654459/ft2_4FGL_J1001.1+2911_daily_bin10.fits outfile=/scratch/kocevski/654459/cmap_241920001_242179201_4FGL_J1001.1+2911_daily_bin10.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/654459/ft1_filtered_4FGL_J1001.1+2911_daily_bin10.fits scfile=/scratch/kocevski/654459/ft2_4FGL_J1001.1+2911_daily_bin10.fits outfile=/scratch/kocevski/654459/cmap_HighResolution_241920001_242179201_4FGL_J1001.1+2911_daily_bin10.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    2.3920       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3556       1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.893       1.0000         .10000E-03   10000.    
     6 'Prefactor '    119.03       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.4538       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.1782       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.6172       1.0000         .10000E-03   10000.    
    12 'norm      '    14.925       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .47663       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.6759       1.0000         .10000E-03   10000.    
    16 'norm      '    5.3106       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.0731       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.187       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.3247       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .14439E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0317       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1782       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=   7918.336     FROM MIGRAD    STATUS=CONVERGED    560 CALLS     2733 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.3648       -.16764E-07** at limit **
   2  norm          2.3919        1.7277       -.47876E-07    .81592E-04
   3  Prefactor     .10000E-03    11.020       -.70124E-06** at limit **
   4  Prefactor     1.3570        3.3187       -.13412E-05   -.29926E-03
   5  Prefactor     20.865        30.531        .13558E-04    .48213E-04
   6  Prefactor     119.00        77.300       -.23283E-04   -.26684E-05
   7  Prefactor     3.1711        158.59       -.14751E-04   -.28552E-05
   8  Prefactor     .10000E-03    13.462        .41253E-06** at limit **
   9  Prefactor     1.1824        1.2361        .29152E-06   -.21802E-02
  10  Prefactor     .10000E-03    3.3912       -.40782E-07** at limit **
  11  Prefactor     1.6172        1.7705       -.28839E-06   -.13069E-03
  12  norm          14.923        7.2277       -.78144E-07    .62332E-04
  13  Prefactor     .47697        2.5116        .19792E-06   -.57783E-04
  14  Prefactor     .10000E-03    7.5791        .60570E-06** at limit **
  15  Prefactor     5.6743        5.0501       -.10034E-07   -.57950E-03
  16  norm          5.3100        10.738        .45190E-06   -.26537E-05
  17  Prefactor     9.0658        45.226       -.30956E-04    .31345E-06
  18  Prefactor     16.185        17.193       -.11720E-05   -.25569E-05
  19  Prefactor     .10000E-03    1.3520        .13347E-07** at limit **
  20  Prefactor     4.3235        5.4368        .24344E-05    .33445E-03
  21  Prefactor     .10001E-03    .90537       -.74911E-06** at limit **
  22  Prefactor     .10000E-03    8.3615        .22664E-05** at limit **
  23  Normalizat    1.0319        .16657        .68543E-06    .32744E-03
  24  Prefactor     1.1780        .17063        .16314E-05    .18173E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.39195
  Prefactor  = 0.0001
  Prefactor  = 1.35703
  Prefactor  = 20.8647
  Prefactor  = 119
  Prefactor  = 3.17115
  Prefactor  = 0.0001
  Prefactor  = 1.18241
  Prefactor  = 0.0001
  Prefactor  = 1.61716
  norm       = 14.923
  Prefactor  = 0.476971
  Prefactor  = 0.0001
  Prefactor  = 5.67435
  norm       = 5.30996
  Prefactor  = 9.06583
  Prefactor  = 16.1855
  Prefactor  = 0.0001
  Prefactor  = 4.32355
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Normalizat = 1.03192
  Prefactor  = 1.17801
 **********
 **   18 **HESSE 
 **********

 FCN=   7918.336     FROM HESSE     STATUS=OK           405 CALLS     3138 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.3784        .10151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.3919        1.7179        .95109E-04   -1.5399    
   3  Prefactor     .10000E-03    11.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.3570        3.2983        .23425E-03   -1.5475    
   5  Prefactor     20.865        30.699        .87627E-04   -1.4794    
   6  Prefactor     119.00        77.613        .18442E-03   -1.3522    
   7  Prefactor     3.1711        160.67        .21762E-03   -1.5352    
   8  Prefactor     .10000E-03    13.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.1824        6.2459        .20419E-02   -1.5490    
  10  Prefactor     .10000E-03    3.4010        .16000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.6172        1.7528        .11860E-03   -1.5454    
  12  norm          14.923        7.2374        .10368E-03   -1.4935    
  13  Prefactor     .47697        7.7551        .22276E-02   -1.5570    
  14  Prefactor     .10000E-03    7.5805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.6743        5.0498        .76349E-03   -1.5232    
  16  norm          5.3100        10.745        .17440E-03   -1.5247    
  17  Prefactor     9.0658        45.268        .13306E-03   -1.5106    
  18  Prefactor     16.185        17.183        .99548E-04   -1.4903    
  19  Prefactor     .10000E-03    1.3578        .10097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.3235        5.3655        .19371E-03   -1.5292    
  21  Prefactor     .10001E-03    7.8413        .15945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.3667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0319        .19599        .24830E-03   -.91969    
  24  Prefactor     1.1780        .20114        .26113E-03   -.87011    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.1885e-08
Minuit parameter uncertainties:
  1  2.40674e-06
  2  1.71792
  3  4.01546e-06
  4  3.29875
  5  30.722
  6  77.6798
  7  45.2725
  8  3.46786e-05
  9  5.43583
  10  5.2375e-06
  11  1.75283
  12  7.23778
  13  3.84673
  14  2.58062e-06
  15  5.05018
  16  10.749
  17  40.5651
  18  17.1887
  19  1.70972e-06
  20  5.3661
  21  0.000462866
  22  2.07241e-06
  23  0.196125
  24  0.201271
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.617e+00  1.753e+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:  1.178e+00  2.013e-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.032e+00  1.961e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.37
Ra Dec: 150.294 29.188
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 2.16e-08 +/- 2.34e-08
Energy Flux (Fixed Index): 8.59e-06 +/- 9.32e-06

TS (Fixed Index): 1.37
Ra Dec: 150.294 29.188
Photon Flux Upper Limit: 7.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/654459/likelihoodResults_241920001_242179201_4FGL_J1001.1+2911_daily_bin10.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) = 7918.20636077
delta logL = 0.129533031899

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7918.19455243
delta logL = 0.14134136951

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9061       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6167       1.0000          .0000       10.000    
     3 'Normalizat'    1.0440       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1696       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=   7918.195     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      204 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9061        4.0632        .75293E-02    .35645E-03
   2  Index         1.6193        1.0018        .28601       -.62406E-04
   3  Normalizat    1.0443        .15335        .40980E-01   -.24778E-04
   4  Prefactor     1.1693        .17068        .59230E-01   -.77414E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.90612
  Index      = 1.61926
  Normalizat = 1.04425
  Prefactor  = 1.16933
 **********
 **   18 **HESSE 
 **********

 FCN=   7918.195     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9061        2.0275        .12449E-03   -1.5432    
   2  Index         1.6193        .88098        .11582E-01   -.74252    
   3  Normalizat    1.0443        .17583        .24699E-03   -.91562    
   4  Prefactor     1.1693        .19677        .26194E-03   -.87280    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9253e-11
Minuit parameter uncertainties:
  1  2.02757
  2  0.889598
  3  0.175931
  4  0.196898
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/654459': 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) = 7918.19454653
delta logL = 0.141347266396

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
542    Prefactor:  1.169e+00  1.969e-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.044e+00  1.759e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.65
Ra Dec: 150.294 29.188
Photon Index (Free Index): 1.62 +/- 0.89
Photon Flux (Free Index): 1.18e-08 +/- 1.62e-08
Energy Flux (Free Index): 2.51e-05 +/- 5.74e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/654459/cmap_HighResolution_241920001_242179201_4FGL_J1001.1+2911_daily_bin10.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.98e-03', comment='SUCCESS', photon_flux='2.16e-08', energy_flux2='2.51e-05', photon_flux_error='2.34e-08', dlogl='1.41e-01', energy_flux='8.59e-06', photon_flux2='1.18e-08', job_status='DONE', time_completed='2021-09-01 09:58:55.507076', photon_index_error2='0.89', photon_index2='1.62', ts='1.37', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='7.81e-08', energy_flux_error2='5.74e-05', EG='1.03', time_epoch_completed='1630515535.51', return_code='0', job_id='654459', GAL2='1.17', EG2='1.04', return_code2='0', energy_flux_error='9.32e-06', photon_flux_error2='1.62e-08', ts2='1.65', photon_index='2.27' WHERE bin_id='10' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 09:58:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0166>
Subject: Job 654459: <4FGL_J1001.1+2911_daily_bin10> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin10> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 09:45:32 2021
Job was executed on host(s) <bullet0166>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 09:45:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 09:45:34 2021
Terminated at Wed Sep  1 09:58:56 2021
Results reported at Wed Sep  1 09:58:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin10 150.294 29.188 241920001 242179201 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 :                                   758.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             352.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            804 sec.

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

