/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 150 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7428
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1001.1+2911_daily_bin631
RA = 150.294, Dec = 29.188
tmin = 402883201, tmax = 403142401
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='657667', job_status='RUN', time_executed='2021-09-01 09:58:09.556511', time_epoch_executed='1630515489.56' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='631'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/657667

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/657667/ft1_4FGL_J1001.1+2911_daily_bin631.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/657667/ft2_4FGL_J1001.1+2911_daily_bin631.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/657667/ft1_4FGL_J1001.1+2911_daily_bin631.fits outfile=/scratch/kocevski/657667/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin631.fits ra=150.294 dec=29.188 rad=12.0 tmin=402883201.0 tmax=403142401.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.66
user 4.41
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/657667/ft1_filtered_4FGL_J1001.1+2911_daily_bin631.fits evtable="EVENTS" scfile=/scratch/kocevski/657667/ft2_4FGL_J1001.1+2911_daily_bin631.fits sctable="SC_DATA" expcube=/scratch/kocevski/657667/ltcube_402883201_403142401_4FGL_J1001.1+2911_daily_bin631.fits outfile=/scratch/kocevski/657667/expmap_402883201_403142401_4FGL_J1001.1+2911_daily_bin631.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/657667/ltcube_402883201_403142401_4FGL_J1001.1+2911_daily_bin631.fits
.....................!
real 192.56
user 185.87
sys 4.42

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/657667/ft1_filtered_4FGL_J1001.1+2911_daily_bin631.fits scfile=/scratch/kocevski/657667/ft2_4FGL_J1001.1+2911_daily_bin631.fits outfile=/scratch/kocevski/657667/cmap_402883201_403142401_4FGL_J1001.1+2911_daily_bin631.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.61
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/657667/ft1_filtered_4FGL_J1001.1+2911_daily_bin631.fits scfile=/scratch/kocevski/657667/ft2_4FGL_J1001.1+2911_daily_bin631.fits outfile=/scratch/kocevski/657667/cmap_HighResolution_402883201_403142401_4FGL_J1001.1+2911_daily_bin631.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8197       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    93.069       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.2412       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.4984       1.0000         .10000E-03   10000.    
     6 'Prefactor '    44.967       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .58822       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.2306       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.2919       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.0078       1.0000         .10000E-03   10000.    
    16 'norm      '    11.020       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10389E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .56058       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.4359       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .94013       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .95348       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=   5299.223     FROM MIGRAD    STATUS=CONVERGED    952 CALLS     3113 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8194        3.0860        .99631E-04    .91287E-05
   2  norm          .10000E-03    .39465        .44621E-03** at limit **
   3  Prefactor     93.059        62.479        .41658E-04    .32585E-04
   4  Prefactor     7.2398        4.3139        .11006E-03    .38013E-04
   5  Prefactor     5.4921        25.085        .17135E-03    .13800E-04
   6  Prefactor     44.961        58.746        .59789E-04    .14451E-04
   7  Prefactor     .51846        34.859        .12096        .14777E-03
   8  Prefactor     .10000E-03    19.894        .18142E-02** at limit **
   9  Prefactor     7.2306        6.3847        .14917E-03    .13566E-04
  10  Prefactor     .10000E-03    14.661        .36285E-03** at limit **
  11  Prefactor     .10000E-03    .88623        .66353E-03** at limit **
  12  norm          1.2910        12.963        .19475E-02    .25623E-03
  13  Prefactor     .10000E-03    2.1701        .10347E-02** at limit **
  14  Prefactor     .10000E-03    90.367        .18142E-02** at limit **
  15  Prefactor     2.0059        4.6301        .21957E-03    .12281E-03
  16  norm          11.019        9.8740        .12069E-03    .87606E-05
  17  Prefactor     .10000E-03    92.227        .18142E-02** at limit **
  18  Prefactor     .10000E-03    10.353        .18142E-02** at limit **
  19  Prefactor     .10000E-03    2.1899        .10487E-02** at limit **
  20  Prefactor     .10000E-03    2.1805        .10486E-02** at limit **
  21  Prefactor     .55927        2.1471        .19827E-03    .36984E-04
  22  Prefactor     2.4313        35.862        .13109E-02    .25905E-04
  23  Normalizat    .94028        .19438        .22305E-03    .24315E-03
  24  Prefactor     .95356        .20992        .24813E-03    .14717E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.81936
  norm       = 0.0001
  Prefactor  = 93.0591
  Prefactor  = 7.23977
  Prefactor  = 5.49206
  Prefactor  = 44.9614
  Prefactor  = 0.518458
  Prefactor  = 0.0001
  Prefactor  = 7.23058
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.29098
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.00594
  norm       = 11.0191
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.559267
  Prefactor  = 2.43128
  Normalizat = 0.94028
  Prefactor  = 0.953561
 **********
 **   18 **HESSE 
 **********

 FCN=   5299.223     FROM HESSE     STATUS=OK           387 CALLS     3500 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8194        3.0859        .39852E-05   -1.5269    
   2  norm          .10000E-03    .39465        .89242E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     93.059        62.477        .83315E-05   -1.3776    
   4  Prefactor     7.2398        4.3133        .44024E-05   -1.5170    
   5  Prefactor     5.4921        25.073        .68540E-05   -1.5239    
   6  Prefactor     44.961        58.730        .23915E-05   -1.4366    
   7  Prefactor     .51846        33.351        .12503       -1.5564    
   8  Prefactor     .10000E-03    19.895        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.2306        6.3817        .59668E-05   -1.5170    
  10  Prefactor     .10000E-03    14.662        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .88630        .13271E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.2910        12.909        .77898E-04   -1.5481    
  13  Prefactor     .10000E-03    2.1705        .20695E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    90.410        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.0059        4.6278        .87829E-05   -1.5425    
  16  norm          11.019        9.8735        .48275E-05   -1.5044    
  17  Prefactor     .10000E-03    92.241        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.354        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.1901        .20975E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.1806        .20972E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .55927        2.1467        .79308E-05   -1.5558    
  22  Prefactor     2.4313        35.847        .52434E-04   -1.5396    
  23  Normalizat    .94028        .19443        .44610E-04   -.95059    
  24  Prefactor     .95356        .21009        .99252E-05   -.94294    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.66523e-10
Minuit parameter uncertainties:
  1  3.08605
  2  3.22423e-07
  3  62.5209
  4  4.31347
  5  23.4853
  6  58.8058
  7  8.32052
  8  1.27744e-05
  9  6.38232
  10  1.29527e-05
  11  5.10228e-07
  12  8.16642
  13  1.3201e-05
  14  0.000354784
  15  4.62861
  16  9.87493
  17  0.000155492
  18  5.21627e-06
  19  3.19884e-06
  20  1.26529e-06
  21  2.14697
  22  18.6843
  23  0.194576
  24  0.210274
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  5.102e-07  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.536e-01  2.103e-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.403e-01  1.946e-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.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/657667/likelihoodResults_402883201_403142401_4FGL_J1001.1+2911_daily_bin631.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) = 5299.22878843
delta logL = -0.00533756703135

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5299.22345146
delta logL = -6.03138687438e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2610       1.0000          .0000       10.000    
     3 'Normalizat'    .94046       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95342       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=   5299.223     FROM MIGRAD    STATUS=FAILED        84 CALLS      228 TOTAL
                     EDM=   .96E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10059E-03    57.271        .66528E-03** at limit **
   2  Index         2.2033        6.9197        .50000        .54102E-04
   3  Normalizat    .94028        .35009E-01    .22305E-03    .81551E-06
   4  Prefactor     .95356        .39381E-01    .24813E-03    .33997E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5299.223     FROM SIMPLEX   STATUS=PROGRESS     131 CALLS      359 TOTAL
                     EDM=   .59E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10009E-03    57.271        .12552E-03** at limit **
   2  Index         2.2026        6.9197        .26002E-03    .54102E-04
   3  Normalizat    .94027        .35009E-01    .37794E-05    .81551E-06
   4  Prefactor     .95355        .39381E-01    .54456E-05    .33997E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5299.223     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      404 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.650        .13306E-03** at limit **
   2  Index         2.0430        5.8358        .50000       -.19173E-05
   3  Normalizat    .94028        .18385        .89220E-05   -.19878E-04
   4  Prefactor     .95356        .20681        .99252E-05   -.35738E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.04297
  Normalizat = 0.940279
  Prefactor  = 0.953561
 **********
 **   18 **HESSE 
 **********

 FCN=   5299.223     FROM HESSE     STATUS=OK            27 CALLS      431 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .95489        .26611E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0430        7.3842        .50000       -.63280    
   3  Normalizat    .94028        .18376        .17844E-05   -.95059    
   4  Prefactor     .95356        .20677        .19850E-05   -.94294    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.85677e-10
Minuit parameter uncertainties:
  1  9.69967e-07
  2  62.2756
  3  0.183878
  4  0.206938
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/657667': 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) = 5299.22344879
delta logL = 2.06497861654e-06

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  9.700e-07  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.043e+00  6.228e+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:  9.536e-01  2.069e-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.403e-01  1.839e-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/657667/cmap_HighResolution_402883201_403142401_4FGL_J1001.1+2911_daily_bin631.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.93e-03', job_status='DONE', photon_flux_upper_limit='5.13e-08', time_completed='2021-09-01 10:09:01.517633', job_id='657667', GAL2='0.95', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1630516141.52', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='2.06e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='631' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:09:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0181>
Subject: Job 657667: <4FGL_J1001.1+2911_daily_bin631> in cluster <slac> Done

Job <4FGL_J1001.1+2911_daily_bin631> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep  1 09:55:25 2021
Job was executed on host(s) <bullet0181>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 09:55:26 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:55:26 2021
Terminated at Wed Sep  1 10:09:03 2021
Results reported at Wed Sep  1 10:09:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin631 150.294 29.188 402883201 403142401 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 :                                   646.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            818 sec.

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

