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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin536
RA = 150.294, Dec = 29.188
tmin = 378259201, tmax = 378518401
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='656397', job_status='RUN', time_executed='2021-09-01 09:53:55.637025', time_epoch_executed='1630515235.64' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='536'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/656397

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/656397/ft1_4FGL_J1001.1+2911_daily_bin536.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/656397/ft2_4FGL_J1001.1+2911_daily_bin536.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/656397/ft1_4FGL_J1001.1+2911_daily_bin536.fits outfile=/scratch/kocevski/656397/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin536.fits ra=150.294 dec=29.188 rad=12.0 tmin=378259201.0 tmax=378518401.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.62
user 4.23
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/656397/ft1_filtered_4FGL_J1001.1+2911_daily_bin536.fits" evtable="EVENTS" scfile=/scratch/kocevski/656397/ft2_4FGL_J1001.1+2911_daily_bin536.fits sctable="SC_DATA" outfile=/scratch/kocevski/656397/ltcube_378259201_378518401_4FGL_J1001.1+2911_daily_bin536.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/656397/ft2_4FGL_J1001.1+2911_daily_bin536.fits
.....................!
real 13.09
user 11.62
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/656397/ft1_filtered_4FGL_J1001.1+2911_daily_bin536.fits evtable="EVENTS" scfile=/scratch/kocevski/656397/ft2_4FGL_J1001.1+2911_daily_bin536.fits sctable="SC_DATA" expcube=/scratch/kocevski/656397/ltcube_378259201_378518401_4FGL_J1001.1+2911_daily_bin536.fits outfile=/scratch/kocevski/656397/expmap_378259201_378518401_4FGL_J1001.1+2911_daily_bin536.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/656397/ltcube_378259201_378518401_4FGL_J1001.1+2911_daily_bin536.fits
.....................!
real 191.81
user 185.62
sys 4.47

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/656397/ft1_filtered_4FGL_J1001.1+2911_daily_bin536.fits scfile=/scratch/kocevski/656397/ft2_4FGL_J1001.1+2911_daily_bin536.fits outfile=/scratch/kocevski/656397/cmap_378259201_378518401_4FGL_J1001.1+2911_daily_bin536.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.33
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2581       1.0000         .10000E-03   10000.    
     2 'norm      '    1.2507       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.492       1.0000         .10000E-03   10000.    
     6 'Prefactor '    36.565       1.0000         .10000E-03   10000.    
     7 'Prefactor '    40.056       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.4500       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .33833E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.4200       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .82515E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.7389       1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.587       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .92785       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0006       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=   5316.246     FROM MIGRAD    STATUS=CONVERGED    568 CALLS     2742 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2585        3.3482        .15420E-06    .98086E-05
   2  norm          1.2510        1.2523        .36059E-07    .46107E-04
   3  Prefactor     .10000E-03    41.982       -.19409E-05** at limit **
   4  Prefactor     .10000E-03    3.5380        .17529E-06** at limit **
   5  Prefactor     30.500        26.705       -.90989E-06   -.16178E-04
   6  Prefactor     36.544        53.291        .58657E-06   -.21800E-04
   7  Prefactor     40.053        45.015        .78053E-06   -.19604E-04
   8  Prefactor     .10000E-03    112.65       -.59568E-06** at limit **
   9  Prefactor     2.4517        6.3292        .65203E-05    .80071E-04
  10  Prefactor     .10000E-03    9.2102        .12039E-06** at limit **
  11  Prefactor     .10000E-03    .97922       -.32436E-06** at limit **
  12  norm          6.4204        5.7433       -.28747E-06   -.46914E-04
  13  Prefactor     .10006E-03    1.8274        .17570E-05** at limit **
  14  Prefactor     .10000E-03    13.692        .10137E-06** at limit **
  15  Prefactor     .10000E-03    2.4432        .61345E-07** at limit **
  16  norm          .10000E-03    2.0022       -.14365E-08** at limit **
  17  Prefactor     .10000E-03    34.277        .19793E-05** at limit **
  18  Prefactor     .10000E-03    7.0352        .23037E-07** at limit **
  19  Prefactor     .10000E-03    1.0241        .12655E-07** at limit **
  20  Prefactor     .10000E-03    5.0488        .95739E-07** at limit **
  21  Prefactor     1.7394        1.6925        .34593E-06    .48713E-04
  22  Prefactor     19.587        23.065        .14758E-06   -.30959E-04
  23  Normalizat    .92786        .16476       -.17141E-05   -.26695E-03
  24  Prefactor     1.0005        .18061        .23697E-06   -.19336E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.2585
  norm       = 1.25099
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.5
  Prefactor  = 36.5441
  Prefactor  = 40.0534
  Prefactor  = 0.000100003
  Prefactor  = 2.45165
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.42038
  Prefactor  = 0.000100062
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.73938
  Prefactor  = 19.5868
  Normalizat = 0.927856
  Prefactor  = 1.0005
 **********
 **   18 **HESSE 
 **********

 FCN=   5316.246     FROM HESSE     STATUS=OK           393 CALLS     3135 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2585        3.3309        .15749E-03   -1.5407    
   2  norm          1.2510        1.2682        .79355E-04   -1.5484    
   3  Prefactor     .10000E-03    42.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.6717        .26746E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     30.500        26.728        .72558E-04   -1.4603    
   6  Prefactor     36.544        53.304        .66277E-04   -1.4498    
   7  Prefactor     40.053        45.172        .63333E-04   -1.4441    
   8  Prefactor     .10000E-03    113.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.4517        6.3761        .13067E-02   -1.5395    
  10  Prefactor     .10000E-03    9.4306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.2553        .13870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.4204        5.7476        .15840E-03   -1.5201    
  13  Prefactor     .10006E-03    22.101        .17110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.4926        .22180E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.0025        .10076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    34.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.0380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.0262        .72057E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.1551        .15991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.7394        1.6779        .45378E-03   -1.5444    
  22  Prefactor     19.587        23.063        .90500E-04   -1.4823    
  23  Normalizat    .92786        .19076        .21948E-03   -.95488    
  24  Prefactor     1.0005        .21236        .24156E-03   -.92713    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.81769e-09
Minuit parameter uncertainties:
  1  3.33114
  2  1.26824
  3  0.000147214
  4  2.51795e-05
  5  26.7384
  6  53.3732
  7  45.2109
  8  0.00118177
  9  6.3779
  10  2.66334e-05
  11  2.77196e-05
  12  5.74809
  13  0.0023414
  14  1.49071e-06
  15  3.33211e-07
  16  1.13971e-07
  17  5.83501e-05
  18  1.75725e-06
  19  6.63436e-07
  20  1.56951e-05
  21  1.67797
  22  23.0735
  23  0.190898
  24  0.212533
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
542    Prefactor:  1.000e+00  2.125e-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:  9.279e-01  1.909e-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.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/656397/likelihoodResults_378259201_378518401_4FGL_J1001.1+2911_daily_bin536.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) = 5316.24657921
delta logL = -0.000772662474446

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5316.24581087
delta logL = -4.32222441304e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5316.246     FROM MIGRAD    STATUS=FAILED       105 CALLS      275 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10507E-03    45.040        .13072E-02** at limit **
   2  Index         2.4705        6.0966        .50000       -.22958E-04
   3  Normalizat    .92786        .90269E-02    .21948E-03    .12426E-03
   4  Prefactor     1.0005        .10332E-01    .24156E-03    .90879E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5316.246     FROM SIMPLEX   STATUS=PROGRESS     107 CALLS      382 TOTAL
                     EDM=   .83E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10189E-03    45.040        .47416E-03** at limit **
   2  Index         2.4693        6.0966        .37349E-03   -.22958E-04
   3  Normalizat    .92785        .90269E-02    .16086E-05    .12426E-03
   4  Prefactor     1.0005        .10332E-01    .23015E-05    .90879E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5316.246     FROM MIGRAD    STATUS=CONVERGED     76 CALLS      458 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    45.321        .10458E-04** at limit **
   2  Index         2.5408        7.2236        .50000        .58587E-06
   3  Normalizat    .92785        .18429        .17558E-05   -.17611E-03
   4  Prefactor     1.0005        .21079        .19325E-05   -.10472E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.54081
  Normalizat = 0.927855
  Prefactor  = 1.0005
 **********
 **   18 **HESSE 
 **********

 FCN=   5316.246     FROM HESSE     STATUS=OK            29 CALLS      487 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.6161        .20915E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5408        5.3008        .50000       -.51420    
   3  Normalizat    .92785        .18223        .35117E-06   -.95488    
   4  Prefactor     1.0005        .20997        .38650E-06   -.92713    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.89972e-11
Minuit parameter uncertainties:
  1  4.53848e-05
  2  35.9237
  3  0.182353
  4  0.210143
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/656397': 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) = 5316.24580399
delta logL = 2.54848146142e-06

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  4.538e-05  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.541e+00  3.592e+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.001e+00  2.101e-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:  9.279e-01  1.824e-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/656397/cmap_HighResolution_378259201_378518401_4FGL_J1001.1+2911_daily_bin536.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.29e-03', job_status='DONE', photon_flux_upper_limit='5.60e-08', time_completed='2021-09-01 10:04:35.121108', job_id='656397', GAL2='1.00', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1630515875.12', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='2.55e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='536' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:04:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 656397: <4FGL_J1001.1+2911_daily_bin536> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin536> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 09:51:09 2021
Job was executed on host(s) <bullet0187>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 09:51:11 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:51:11 2021
Terminated at Wed Sep  1 10:04:35 2021
Results reported at Wed Sep  1 10:04:35 2021

Your job looked like:

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

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

