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


Performing analysis on: 4FGL_J1001.1+2911_daily_bin397
RA = 150.294, Dec = 29.188
tmin = 342230401, tmax = 342489601
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='656183', job_status='RUN', time_executed='2021-09-01 09:53:25.615923', time_epoch_executed='1630515205.62' WHERE source_name='4FGL J1001.1+2911' and cadence='daily' and bin_id='397'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/656183

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/656183/ft1_4FGL_J1001.1+2911_daily_bin397.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/656183/ft2_4FGL_J1001.1+2911_daily_bin397.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/656183/ft1_4FGL_J1001.1+2911_daily_bin397.fits outfile=/scratch/kocevski/656183/ft1_filteredMKT_4FGL_J1001.1+2911_daily_bin397.fits ra=150.294 dec=29.188 rad=12.0 tmin=342230401.0 tmax=342489601.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 3.58
user 3.34
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/656183/ft1_filtered_4FGL_J1001.1+2911_daily_bin397.fits" evtable="EVENTS" scfile=/scratch/kocevski/656183/ft2_4FGL_J1001.1+2911_daily_bin397.fits sctable="SC_DATA" outfile=/scratch/kocevski/656183/ltcube_342230401_342489601_4FGL_J1001.1+2911_daily_bin397.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/656183/ft2_4FGL_J1001.1+2911_daily_bin397.fits
.....................!
real 13.20
user 11.35
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/656183/ft1_filtered_4FGL_J1001.1+2911_daily_bin397.fits evtable="EVENTS" scfile=/scratch/kocevski/656183/ft2_4FGL_J1001.1+2911_daily_bin397.fits sctable="SC_DATA" expcube=/scratch/kocevski/656183/ltcube_342230401_342489601_4FGL_J1001.1+2911_daily_bin397.fits outfile=/scratch/kocevski/656183/expmap_342230401_342489601_4FGL_J1001.1+2911_daily_bin397.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/656183/ltcube_342230401_342489601_4FGL_J1001.1+2911_daily_bin397.fits
.....................!
real 192.88
user 185.63
sys 3.80

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/656183/ft1_filtered_4FGL_J1001.1+2911_daily_bin397.fits scfile=/scratch/kocevski/656183/ft2_4FGL_J1001.1+2911_daily_bin397.fits outfile=/scratch/kocevski/656183/cmap_342230401_342489601_4FGL_J1001.1+2911_daily_bin397.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/656183/ft1_filtered_4FGL_J1001.1+2911_daily_bin397.fits scfile=/scratch/kocevski/656183/ft2_4FGL_J1001.1+2911_daily_bin397.fits outfile=/scratch/kocevski/656183/cmap_HighResolution_342230401_342489601_4FGL_J1001.1+2911_daily_bin397.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.58
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.7688       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0044       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.691       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.5757       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.0472       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.6183       1.0000         .10000E-03   10000.    
    14 'Prefactor '    72.185       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .22023E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    29.704       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .54370E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.1894       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .83394       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3102       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=   5777.615     FROM MIGRAD    STATUS=CONVERGED    561 CALLS     3164 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.2958        .18336E-06** at limit **
   2  norm          2.7695        1.9574        .18145E-07   -.12498E-03
   3  Prefactor     .10000E-03    19.125       -.30975E-05** at limit **
   4  Prefactor     1.0024        3.1534        .85458E-06   -.24020E-03
   5  Prefactor     19.698        20.747       -.42482E-06   -.52142E-04
   6  Prefactor     .10000E-03    22.065        .23898E-05** at limit **
   7  Prefactor     .10000E-03    14.455        .16364E-05** at limit **
   8  Prefactor     4.5748        117.03        .31197E-06   -.11606E-04
   9  Prefactor     6.0447        6.1505        .27602E-05   -.15128E-02
  10  Prefactor     .10000E-03    2.6129       -.32288E-08** at limit **
  11  Prefactor     .10000E-03    1.2804       -.61550E-07** at limit **
  12  norm          .10000E-03    8.7847        .11607E-06** at limit **
  13  Prefactor     1.6145        4.3008        .11122E-05   -.26978E-03
  14  Prefactor     72.210        43.838        .54073E-05    .66111E-03
  15  Prefactor     .10001E-03    2.5044        .14425E-07** at limit **
  16  norm          .10000E-03    2.6436        .16587E-08** at limit **
  17  Prefactor     .10000E-03    16.147       -.11234E-05** at limit **
  18  Prefactor     29.705        36.562        .27425E-06    .98490E-04
  19  Prefactor     .10003E-03    3.4448       -.53152E-07** at limit **
  20  Prefactor     5.1886        5.5469        .64234E-07   -.12708E-03
  21  Prefactor     .10000E-03    .73939        .12557E-07** at limit **
  22  Prefactor     .10000E-03    10.971       -.75127E-06** at limit **
  23  Normalizat    .83391        .17090       -.14496E-05   -.83388E-04
  24  Prefactor     1.3103        .19035       -.49642E-06   -.93527E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.76951
  Prefactor  = 0.000100004
  Prefactor  = 1.00242
  Prefactor  = 19.6975
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 4.57483
  Prefactor  = 6.04471
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.61449
  Prefactor  = 72.21
  Prefactor  = 0.000100013
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.7055
  Prefactor  = 0.000100033
  Prefactor  = 5.18856
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.833914
  Prefactor  = 1.31029
 **********
 **   18 **HESSE 
 **********

 FCN=   5777.615     FROM HESSE     STATUS=OK           403 CALLS     3567 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.0435        .26752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.7695        1.9453        .85842E-04   -1.5375    
   3  Prefactor     .10000E-03    19.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0024        3.1424        .22571E-03   -1.5508    
   5  Prefactor     19.698        20.738        .90261E-04   -1.4820    
   6  Prefactor     .10000E-03    22.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.5748        117.04        .18818E-03   -1.5280    
   9  Prefactor     6.0447        6.7069        .81637E-03   -1.5216    
  10  Prefactor     .10000E-03    2.6167        .11999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.3251        .16781E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    9.0193        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.6145        3.8503        .21402E-03   -1.5454    
  14  Prefactor     72.210        46.785        .47252E-04   -1.4006    
  15  Prefactor     .10001E-03    14.933        .20328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.6452        .12070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     29.705        45.198        .73512E-04   -1.4617    
  19  Prefactor     .10003E-03    12.577        .39705E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.1886        5.5478        .17647E-03   -1.5252    
  21  Prefactor     .10000E-03    .75708        .63805E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .83391        .19912        .24992E-03   -.98823    
  24  Prefactor     1.3103        .22411        .23816E-03   -.83001    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.37441e-09
Minuit parameter uncertainties:
  1  5.04318e-05
  2  1.94535
  3  0.0005265
  4  3.14294
  5  20.746
  6  0.000443532
  7  0.000246328
  8  46.3807
  9  6.70776
  10  7.74882e-07
  11  1.67277e-07
  12  8.01075e-06
  13  3.85086
  14  46.8091
  15  0.000889583
  16  1.18005e-07
  17  0.000172191
  18  45.2497
  19  0.00128339
  20  5.54834
  21  1.11359e-06
  22  9.18073e-05
  23  0.199295
  24  0.224276
Done.

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

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  1.673e-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:  1.310e+00  2.243e-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:  8.339e-01  1.993e-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.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/656183/likelihoodResults_342230401_342489601_4FGL_J1001.1+2911_daily_bin397.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) = 5777.6182447
delta logL = -0.00358729931486

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5777.6146576
delta logL = -2.04641764867e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2569       1.0000          .0000       10.000    
     3 'Normalizat'    .83397       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3103       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=   5777.615     FROM MIGRAD    STATUS=FAILED        89 CALLS      244 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10100E-03    40.254        .16883E-02** at limit **
   2  Index         2.1774        7.0588        .50000        .44588E-04
   3  Normalizat    .83391        .23117E-01    .24992E-03    .11081E-03
   4  Prefactor     1.3103        .27049E-01    .23816E-03    .11244E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5777.615     FROM SIMPLEX   STATUS=UNCHANGED    138 CALLS      382 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10100E-03    40.254        .21844E-03** at limit **
   2  Index         2.1774        7.0588        .17670E-03    .44588E-04
   3  Normalizat    .83391        .23117E-01    .39531E-05    .11081E-03
   4  Prefactor     1.3103        .27049E-01    .44586E-05    .11244E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5777.615     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      435 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    230.45        .33766E-03** at limit **
   2  Index         2.0530        7.0137        .50000       -.53251E-07
   3  Normalizat    .83391        .72533E-01    .99969E-05   -.33571E-03
   4  Prefactor     1.3103        .84531E-01    .47631E-04   -.34728E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.05305
  Normalizat = 0.833914
  Prefactor  = 1.31029
 **********
 **   18 **HESSE 
 **********

 FCN=   5777.615     FROM HESSE     STATUS=OK            29 CALLS      464 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.6641        .67533E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0530        6.2310        .50000       -.63030    
   3  Normalizat    .83391        .19070        .19994E-05   -.98823    
   4  Prefactor     1.3103        .22316        .95263E-05   -.83001    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3498e-10
Minuit parameter uncertainties:
  1  4.57676e-07
  2  73.9843
  3  0.190852
  4  0.223322
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/656183': 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) = 5777.6146554
delta logL = 1.99287387659e-06

Extracting fit parameters...

4FGL J1001.1+2911
   Spectrum: PowerLaw
259    Prefactor:  1.000e-04  4.577e-07  1.000e-04  1.000e+04 ( 1.000e-12)
260        Index:  2.053e+00  7.398e+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.310e+00  2.233e-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:  8.339e-01  1.909e-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/656183/cmap_HighResolution_342230401_342489601_4FGL_J1001.1+2911_daily_bin397.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.36e-03', job_status='DONE', photon_flux_upper_limit='5.70e-08', time_completed='2021-09-01 10:04:55.252021', job_id='656183', GAL2='1.31', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1630515895.25', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.31', dlogl='1.99e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='397' AND source_name='4FGL J1001.1+2911' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 10:04:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 656183: <4FGL_J1001.1+2911_daily_bin397> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1001.1+2911_daily_bin397 150.294 29.188 342230401 342489601 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 :                                   684.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   844 sec.
    Turnaround time :                            846 sec.

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

